Elgg 1.8 Tidypics Group Fix November 21, 2011

Posted by idimmu in php.
I'm creating a new community site using the Elgg 1.8 platform, but a lot of the widgets are still using the old 1.7 CSS for their displays so it means a lot of fixing.

The existing tidypics/views/default/tidypics/groupprofile_albums.php suffers from this problem but is simply fixed by changing


<?php

/***********************************************
*
* This is used on the group profile page
*
***********************************************/

if ($vars['entity']->photos_enable != 'no') {
echo '<div class="group_tool_widget photos">';
echo '<span class="group_widget_link"><a href="' . $vars['url'] . 'pg/photos/owner/' . page_owner_entity()->username . '">' . elgg_echo('link:view:all') . '</a></span>';
echo '<h3>' . elgg_echo('album:group') . '</h3>';
echo elgg_view('tidypics/albums', array('num_albums' => 5));
echo '</div>';
}
?>


to


<?php

/***********************************************
*
* This is used on the group profile page
*
***********************************************/

if ($vars['entity']->photos_enable != 'no') {
echo '<li>';
echo '<div class="elgg-module elgg-module-group elgg-module-info">';
echo '<div class="elgg-head">';
echo '<span class="groups-widget-viewall"><a href="' . $vars['url'] . 'pg/photos/owner/' . page_owner_entity()->username . '">' . elgg_echo('link:view:all') . '</a></span>';
echo '<h3>' . elgg_echo('album:group') . '</h3>';
echo '</div>';
echo '<div class="elgg-body">';
echo elgg_view('tidypics/albums', array('num_albums' => 5));
echo '</div>';
echo '</div>';
echo '</li>';
}
?>

BackupPC ping too slow October 25, 2011

Posted by idimmu in linux.
Whilst adding a new remote server to our BackupPC configuration, it threw the following error


Contents of file /Volumes/2TB/backuppc/pc/www.server.co.uk/LOG.102011, modified 2011-10-25 13:10:23

2011-10-25 12:00:00 ping too slow: 22.21msec
2011-10-25 13:00:01 ping too slow: 49.63msec
2011-10-25 13:10:23 ping too slow: 47.79msec


and refusing to back up the server! After browsing the documentation I discovered the following configuration option


$Conf{PingMaxMsec} = 20;

Maximum round-trip ping time in milliseconds. This threshold is set to avoid backing up PCs that are remotely connected through WAN or dialup connections. The output from ping -s (assuming it is supported on your system) is used to check the round-trip packet time. On your local LAN round-trip times should be much less than 20msec. On most WAN or dialup connections the round-trip time will be typically more than 20msec. Tune if necessary.


After altering the host's config file and adding that parameter with a value of 200 the server then started to back up!

Linux Command Line AVI Repair September 8, 2011

Posted by idimmu in linux.
Recently I had an avi file with a broken index that needed to be repaired. After a quick search and read of some man pages I discovered these handy flags for mencoder to get the job done!


mencoder -idx homemovie.avi -ovc copy -oac copy -o homemovie-repaired.avi


bamo!

List Contents Of An RPM Package March 30, 2011

Posted by idimmu in linux, redhat.
Often when building RedHat RPM packages I want to make sure that the package built correctly and all the files are present before I actually install the RPM, but I do keep forgetting the command to do this, so here it is for prosperity!


rpm -qlp <packagename>


e.g.


root@build:/usr/src/redhat/SPECS# rpm -qlp ../RPMS/noarch/servicemap-0.16-1.noarch.rpm
/var/www/html/servicemap
/var/www/html/servicemap/amq.png
/var/www/html/servicemap/amqfail.png
/var/www/html/servicemap/amqreportingprov1prov1.png
/var/www/html/servicemap/amqreportingprov1prov2.png
/var/www/html/servicemap/amqreportingprov2prov1.png
/var/www/html/servicemap/amqreportingprov2prov2.png
/var/www/html/servicemap/amqsdrprov1prov1.png
/var/www/html/servicemap/amqsdrprov1prov2.png
/var/www/html/servicemap/amqsdrprov2prov1.png
/var/www/html/servicemap/amqsdrprov2prov2.png
/var/www/html/servicemap/amqslee1fail.png
/var/www/html/servicemap/amqslee1prov1.png
/var/www/html/servicemap/amqslee1prov2.png
/var/www/html/servicemap/amqslee2fail.png
/var/www/html/servicemap/amqslee2prov1.png
/var/www/html/servicemap/amqslee2prov2.png
/var/www/html/servicemap/amqvqeprov1prov1.png
/var/www/html/servicemap/amqvqeprov1prov2.png
/var/www/html/servicemap/amqvqeprov2prov1.png
/var/www/html/servicemap/amqvqeprov2prov2.png
/var/www/html/servicemap/amqwebserviceprov1prov1.png
/var/www/html/servicemap/amqwebserviceprov1prov2.png
/var/www/html/servicemap/amqwebserviceprov2prov1.png
/var/www/html/servicemap/amqwebserviceprov2prov2.png
/var/www/html/servicemap/checks.php
/var/www/html/servicemap/config.php
/var/www/html/servicemap/hash.png
/var/www/html/servicemap/index.php
/var/www/html/servicemap/nagios.php
/var/www/html/servicemap/script.php
/var/www/html/servicemap/sleevipactivenotok.png
/var/www/html/servicemap/style.php
/var/www/html/servicemap/ttprov1.png
/var/www/html/servicemap/ttprov1prov2.png
/var/www/html/servicemap/ttprov2.png
/var/www/html/servicemap/ttprov2prov1.png
/var/www/html/servicemap/ttprovfail.png
/var/www/html/servicemap/ttslee1.png
/var/www/html/servicemap/ttslee1slee2.png
/var/www/html/servicemap/ttslee2.png
/var/www/html/servicemap/ttsleefail.png
/var/www/html/servicemap/ttvipactivenotok.png
/var/www/html/servicemap/ttvipactiveok.png

Cheese and Bacon Burger at The Victory March 4, 2011

Posted by idimmu in food.
Recently I went to The Victory with some mates and watched as they ate an epic burger in front of it, so when I went back recently I had no choice but to investigate!



I opted for the bacon and cheese accessories, of course, and it comes with a massive portion of straight cut fries on the side and a small pot of bbq sauce too!



This was the first burger I've tried in a long time that I actually had to eat with a knife and fork. It was completely impossible for me to get any of it in my mouth, so I opted for the cutlery option rather than the messy option, I don't feel this impaired my experience at all.

The bread was delicious, and the salad was fresh, there was lettuce and tomato involved. The burger was delicious, very flavourful, and it was huge. The chips were entirely unnecessary and I would have been very happy with out them, but being the person that I am, I pretty much ate them all anyway even though just the burger filled me up. The chips weren't great, typical thin fries, and let the burger down a little, but again not really a problem.

Would I eat there again? Definitely, but I'd take a crew of people with me to palm the chips off to :)
  1  2  3  4  5  6  7  8  9  10  Last 

Tags

Friends

twitter

  • @jooli2 I just wanted to see what @dpashley looked like after a pint of the black stuff, turns out he looks ugly!
  • looking forwards to performing at Burning The Clocks next Wednesday :o Come all and come watch!
  • @journoannie are they giant sad puppy eyes, as that could be kind of cute? Although the whole self pity thing is a bit of a turn off!
  • Elgg 1.8 Tidypics Group Fix http://t.co/C2D56UsH
  • BackupPC ping too slow http://t.co/9Na2PxKs

lastfm

  • Bogart Shwadchuck – Bitch Go Buy Me A Hot Dog (I'll Be Waiting Here, Doing The Robot)
  • Ill Nillas – What Up Bitches
  • M9 – Mental Prison (Feat. Phoenix Da Icefire) (Produced By Chemo)
  • Therapy? – A Moment Of Clarity
  • Therapy? – Unbeliever
  • Therapy? – Die Laughing
  • Finger Eleven – Swallowtail
  • Equilibrium – Mana
  • Equilibrium – Dämmerung
  • Equilibrium – Ruf In Den Wind

IdleRPG Stats

  • 1 webvictim 56
  • 4 HRH_H_Crab 56