jQuery Image Resize Plugin v2.1.2

This has been long time coming. This small update fixes a very weird bug in IE9. For some odd reason, IE9 does not fire load event regardless of image load state. A simple solution was to set the image’s src property again.

As usual:

Download the latest version: https://github.com/adeelejaz/jquery-image-resize/releases
Report any bugs: https://github.com/adeelejaz/jquery-image-resize/issues

Flattr this!

Postfix not sending mails after installing and uninstalling Sendmail

I got bitten today, really bad! My story starts when postfix stopped working for me (after the update last night). All I had to do was re-install postfix but in desperation I ended up installing Sendmail and that’s how it all started! I found my mistake, uninstalling Sendmail and then reinstalled Postfix. But it was too late. Now the server wasn’t sending emails. I quickly jumped to /var/log/mail.log which read:

postfix/master: fatal: bind 0.0.0.0 port 25: Address already in use

A big of Googling to see what was using port 25, I had to install sockstat as it gives you the process ID of the process running on that port:

socket | grep :25

The output I got was very interesting:

root     sendmail-mta    17059    tcp4    127.0.0.1:25     *:*    LISTEN

Aha! I thought I had uninstalled Sendmail! Well I have, but the process is still running(!) and holding the port 25 at bay!

A quick kill command:

kill 17059

(replace the number with the process id you got in the previous command)

Give Postfix a reboot and viola! It works!

If this works for you, please leave a comment 🙂

Flattr this!

How to sync your iPhone to multiple computers using iTunes 10

I tried Google for solution and found a solution that made you copy an ID across but that didn’t work for me on iTunes 10. So I started messing about and came up with my own solution:

  1. Create a backup of your whole iTunes on your second computer (the one which needs to be synced with iTunes).
  2. Make sure iTunes is closed on both computers. Start by copying the whole iTunes folder from the first computer and pasting it in the second computer replacing any files and folders (if you have music in second computer, don’t worry, you can re-run iTunes lookup to get them back in).
  3. Open iTunes on the second computer and plug-in your iPhone. (all your settings would have been copied over with the songs. Re-run the lookup if you have songs missing).
  4. Sync away…. you can right-click on the iPhone and click “Transfer purchases” to authorize the second computer. (Please note you can only authorize 5 computers.)

I still don’t understand why Apple can’t do this themselves!!

Flattr this!

jQuery Image Resize Plugin v2.1.1

The latest release for jQuery Image Resize Plugin fixes a nasty bug and as the following updates:

  • Fixed: Plugin stops working if height parameter was left out.
  • Optimised the whole plugin by reducing excessive function calls.
  • Improved code structure for quick execution.
  • Smaller minified version.

Download the latest version: https://github.com/adeelejaz/jquery-image-resize/releases
Report any bugs: https://github.com/adeelejaz/jquery-image-resize/issues

Flattr this!

jQuery Image Resize Plugin v2.1

The latest version of jQuery Image Resize plug-in is out and includes the following updates:

  • The plugin doesn’t need both height and width parameters anymore. The plugin caters for just one parameter e.g. if width parameter is supplied, the plugin works out the height and vice versa.
  • Fixed a weird IE6 bug.
  • Chainability – The plugin now returns the jQuery object. So, now you can do stuff like $(".resizeme").aeImageResize({width: 250}).css('color', '#000');
  • More optimised.
  • Minified using Google Clousure (like jQuery).

Download the latest version: https://github.com/adeelejaz/jquery-image-resize/releases
Report any bugs: https://github.com/adeelejaz/jquery-image-resize/issues

Flattr this!