Posts By: jonny

Firefox New Tab button left

On Ubuntu to move the the Firefox new tab button to the left rather than the right (replace the ‘me’ and ‘profilename’ bits below with the appropriate settings for your own system): cd /home/me/.mozilla/firefox/profilename/chromecp userChrome-example.css userChrome.cssgedit userChrome.css Add the following lines under the @namespace line: /* Tab bar: buttons */.tabs-newtab-button        {-moz-box-ordinal-group: 1 !important}.tabbrowser-arrowscrollbox {-moz-box-ordinal-group: 2… Read more »

Mounting FTP on Ubuntu

Install CurlFtpFS with: sudo apt-get install curlftpfs Mount an FTP site with: sudo curlftpfs -o user=myuser:mypass ftp://ftp.domain.tld ./mylocaldirsudo ls ./mylocaldirsudo fusermount -u ./mylocaldir Or add it to the fstab: mkdir /media/myftpsite && chown myuser:mysuer /media/myftpsitevi /etc/fstab Add the following line at the end of the file: curlftpfs#ftp.domain.tld /media/myftpsite fuse rw,uid=1000,user,noauto 0 0 Then under the… Read more »

Convert bin/cue to iso with bchunk

On Ubuntu install binchunker with: sudo apt-get install bchunk Then create the iso at the command-line with the following: bchunk myfile.bin myfile.cue newfile.iso More info here

Internet Explorer 8 CSS Issues

I had a brief issue with a quickly thrown together website. Specifically the margin:auto; centering was not working in IE8 and jQuery scripts were not behaving. I found out that this was related to the lack of a DTD e.g. <!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Strict//EN” “http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd”> More explanation of doctypes is here.

IntegraTUM Web Disk

I decided to test IntegraTUM Web Disk which can provide a web interface to Samba shares, and just to get a demo working I did the following – these are not necessarily the best options for actual deployment.The first problem I had with this app was setting the tmp directory and I eventually used:                <param-name>uploadpath</param-name>               … Read more »

certwatch

Certwatch checks for Apache certificates which are due to expire. By default on Red Hat / Centos there is a cron job in /etc/cron.daily which runs and sends its output to root. To configure it: vi /etc/sysconfig/httpd Add a line such as: CERTWATCH_OPTS=”–period 30 –address my.user@domain.tld” It is also possible to switch it off with:… Read more »

Pancakes

Half a pint of buttermilk8 oz Plain Flour2 oz Caster Sugar1 dessertspoon of Golden Syrup1 Egg1 teaspoon Baking Soda1 teaspoon Salt Mix together and cook in a buttered pan until bubbles appear then flip to do the other side.

Red Hat up2date Subscription

If the Red Hat subscription expires. Edit the following file: /etc/sysconfig/rhn/sources Comment out the following line: up2date default Then add this line: yum dag http://apt.sw.be/redhat/el4/en/$ARCH/dag

MS Office 2007 Formats in Apache

In Apache 2 I added the following to stop Internet Explorer trying to open these formats as compressed archives (which they actually are) and to open them using the MS Office appliations: AddType application/vnd.ms-word.document.macroEnabled.12 .docm AddType application/vnd.openxmlformats-officedocument.wordprocessingml.document docxAddType application/vnd.openxmlformats-officedocument.wordprocessingml.template dotxAddType application/vnd.ms-powerpoint.template.macroEnabled.12 potmAddType application/vnd.openxmlformats-officedocument.presentationml.template potxAddType application/vnd.ms-powerpoint.addin.macroEnabled.12 ppamAddType application/vnd.ms-powerpoint.slideshow.macroEnabled.12 ppsmAddType application/vnd.openxmlformats-officedocument.presentationml.slideshow ppsxAddType application/vnd.ms-powerpoint.presentation.macroEnabled.12 pptmAddType application/vnd.openxmlformats-officedocument.presentationml.presentation pptxAddType application/vnd.ms-excel.addin.macroEnabled.12… Read more »

HTC Hero Speed Symbols

Connection speed symbols on my HTC Hero. There are 4 symbols (shown below in order of speed) displayed in the top bar when using mobile network: G    GPRS ~ 56 kbit/s (171 kbit/s theoretical max)E    EDGE ~ 240 kbit/s (473 kbit/s theoretical max)3G  3G ~ 348kbit/s to 2Mbit/s H    HSPA ~ 3.6-7.2 Mbit/s with current… Read more »