Elgg 1.8 Tidypics Group Fix

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

<br />

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

to

Read more →

BackupPC ping too slow

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

<br /> $Conf{PingMaxMsec} = 20;<br />

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.

Read more →

List Contents Of An RPM Package

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!

<br /> rpm -qlp<br />

e.g.

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

Read more →

Chili Burger With Cheese at The Royal Pavilion Tavern

Chili Burger With Cheese at The Royal Pavilion Tavern

The Royal Pavilion Tavern, aka Pav Tav, is a pretty popular student venue in the evenings, but lunch time, on a Saturday, it’s mostly OAPs, but they do beer and a burger for £4.99 so it had to be tried, especially as I’m working today!

I opted for the Chilli Burger with Cheese and a beer, at £5.59, and upgraded to curly fries for an additional 69p, so all it all it came to £6.28, and of course soda and lime instead of a beer 🙂

Read more →

Beer and a gourmet burger at the Wetherspoons

Beer and a gourmet burger at the Wetherspoons

It’s a Friday and traditionally everyone goes to the pub for lunch as a precursor to what will be a fantastic weekend! A new Wetherspoons opened up near us recently and I was looking forwards to trying a Gourmet Burger from them as I’d had one of their normal burgers before and quite enjoyed it!

It’s a 6oz burger, made from British beef, and from their description:

<br /> Topped with two bacon slices and a Stilton, Shropshire blue and spring onion sauce. Includes six beer-battered whole onion rings.<br />

Read more →

Changing A DRAC Password On The Command Line With racadm

All Dell DRACs come with a default account set up as root / calvin which is a huge security risk if left!

The web interface doesn’t let you change the password but the firmware does when you boot the server.

A second way to change the password is with the racadm tool, if installed, at the command line! This means you don’t have to reboot that precious production server!

In DRAC 4, the first index slot is root by default. In DRAC 5 and 6, index 1 is Administrator, index 2 is root.

Read more →

SVN Rolling Back A Commit To A File

I needed to roll back an SVN commit done recently to an init script for one of our daemons, it’s a very easy process!

First we need to see what the latest revision number of the file that we want to roll back is

<br /> Chill:files idimmu$ svn info slee<br /> Path: slee<br /> Name: slee<br /> URL: https://svn.idimmu.net/msu/trunk/puppet/modules/jnetxslee/files/slee<br /> Repository Root: https://svn.idimmu.net/msu<br /> Repository UUID: 573313b0-15b8-499c-acf0-a5a26a3c7166<br /> Revision: 1517<br /> Node Kind: file<br /> Schedule: normal<br /> Last Changed Author: idimmu<br /> Last Changed Rev: 1256<br /> Last Changed Date: 2010-08-12 10:51:15 +0100 (Thu, 12 Aug 2010)<br /> Text Last Updated: 2010-08-12 10:50:57 +0100 (Thu, 12 Aug 2010)<br /> Checksum: 8940fdf3ed6ee8281b94f55c2fe7880a<br />

Read more →