June 4th, 2009
There is a really annoying issue with IE7 when using the toggle effect in jQuery. Once the toggle transition is complete, IE7 does not apply Windows ClearType rendering. Even more annoying is Microsoft’s decision to not class this as a bug.
Luckily, there is a workaround.
If your code for the toggle effect is:
$(this).toggle("slow");
then by removing the filter attribute in IE browsers, you can force IE to apply ClearType again. Here is an example:
$(this).toggle("slow", function() { if(jQuery.browser.msie) { this.style.removeAttribute('filter'); } });
This should also work for other effects such as show, fadein etc.
Thanks to Ben Novakovic and Matt Berseth.
Posted in General, javascript | No Comments »
March 18th, 2009
An annoying issue when using the Automatic Node Titles module in Drupal 6 is that when you create a node you have no access to certain tokens which require the node to be saved first. In my case, I was trying to include a taxonomy term in the node title.
The solution is to access the form data using the PHP $_POST variable. This variable contains all the form data.
<?php
$term = '[term]';
if (empty($term)) {
$tid = $_POST['taxonomy'][2];
$termobj = taxonomy_get_term($tid);
$term = $termobj->name;
}
return $term);
?>
You must change the number in this line “$_POST['taxonomy'][2]” to your taxonomy number. Thanks to tanoshimi for this post.
Posted in General | No Comments »
November 2nd, 2007
I’ve just about finished a website for people who like books. It’s still a bit rough around the edges but hopefully with a couple of people using the site I can get rid of the major bugs.
You can sign up at http://www.bookwormr.com.
The site was written using the symfony framework which I can highly recommend.
Posted in General | 3 Comments »
April 2nd, 2007
I recently switched from using Ladbrokes Poker Client to using Party Poker. I use linux and so I have installed it using Wine. Here’s how I did it.
- Install wine
- Configure wine
- Install Mozilla
- Install Mozilla ActiveX Control
- Install Shockwave plugin
- Install Party Poker Client
1. Install wine
I have installed wine version 0.9.29. My distribution is Gentoo and so as root I simply typed
emerge -av wine
2. Configure Wine
Wine has a new configuration tool since the last time I used it.
winecfg
This launches a gui and sets up a folder structure under ~/.wine. You can choose the correct sound drivers at this point and which version of Windows you want to emulate. I chose Windows XP.
3. Install Mozilla
Download the latest version of the Mozilla browser (I used version 1.7.13) and install this in wine.
wine mozilla-win32-1.7.13-installer.exe
4. Install Mozilla ActiveX Control
Before installing Mozilla ActiveX Control we must first install runtime60.zip. Unzip the contents of this file and put them in .wine/windows/system32.
unzip runtime60.zip
cp MSVC* ~/.wine/drive_c/windows/system32/
Now we can download the Mozilla ActiveX Control and install using wine.
wine MozillaControl1712.exe
5. Install Shockwave plugin
Download the latest version of the Shockwave plugin amd install it using wine.
wine Shockwave_Installer_Slim.exe
6. Install the Party Poker Client
wine PartyPokerSetup.exe
And that is it. You can now login and play Party Poker on linux. Here’s a screenshot. It works quite well although sometimes it’s not possible to play on more than one table at a time due to the main Party Poker window not refreshing.
Useful Links
Posted in General, Gentoo, Linux, Poker, Wine | 2 Comments »
March 22nd, 2007
If you have to run a server, having Putty installed on your mobile phone can be invaluable. Before you begin, it is worth making sure you have the latest firmware version of the N73 from Nokia. You can check which version you are using by typing *#0000#. My current version is V3.0638.0.0.1. Unfortunately you need to use Microsoft Windows to do this. Putty may work with the older firmware version but I can’t check this.
- Download the correct version of Putty for Symbian OS
- Deactivate Signed only applications
- Install Putty
1. Download the correct version of Putty
I have installed Putty version putty_s60v3_1.4beta1_20070303. The previous version did not work on my phone. Unzip and transfer the .sisx file to your phone. I copied it to my mini SD card but you may be able to use bluetooth wizardry.
2. Deactivate Signed only applications
This version of Putty is unsigned and so we must make sure your phone will allow the installation of unsigned applications. This can be done by going to the Menu->Tools->App.Mgr, pressing Options and then pressing Settings. Change the Software installation tab from “Signed Only” to “All”. That’s it.
3. Install Putty
Now just use the File Manager to go to where you saved the .sisx file and click on it. Putty will then be installed.
Useful Links
Posted in General, Nokia N73 | No Comments »