Gmail-Unread-Count First
Lifehacker has a great Firefox plugin for Gmail ("BetterGmail"). Behind the scenes, the plugin actually runs GreaseMonkey scripts.
I have my taskbar on the left hand side of the screen. When I get an email, this means that I can't tell I have unread messages (because the title says "Gmail - Inbox(1) - [email address]"). What I needed was a script to change it to something like "1 unread - Gmail Inbox". Nothing against the Lifehacker plugin, but I just like having a minimal number of Firefox plugins. I already have Greasemonkey installed - so I just needed the script:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 | // Google Inbox Count Display // $Id: google.cache.user.js 33 2005-12-29 16:54:00Z jon $ // Copyright (C) 2005 by Jonathon Ramsey (jonathon.ramsey@gmail.com) // Modified by Gina Trapani (ginatrapani@gmail.com) 6/27/2007 // to accomodate Google Apps for your domain inboxes // This file is free software; you can redistribute it and/or modify // it under the terms of the GNU General Public License as published // by the Free Software Foundation; either version 2, or (at your // option) any later version. // This file is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // General Public License for more details. // You should have received a copy of the GNU General Public License // along with this software; see the file COPYING. If not, write to // the Free Software Foundation, Inc., 59 Temple Place - Suite 330, // Boston, MA 02111-1307, USA. // ==UserScript== // @name Inbox Count First // @namespace htt://babylon.idlevice.co.uk/javascript/greasemonkey/ // @description See unread message count first on Gmail tab title. // @include http://mail.google.com/* // @include https://mail.google.com/* // @homepage http://userscripts.org/scripts/show/10253 // @author Jon Ramsey, Gina Trapani // @tab General // @enabledbydefault true // ==/UserScript== unsafeWindow.document.watch('title', function(prop, oldval, newval) { if (matches = newval.match(/Inbox \((\d+)\)/)) { names = newval.match(/\w+/) newval = matches[1] + ' unread - ' + names[0] + ' Inbox'; } return (newval); }); |
Performing WordPress upgrades (Linux)
Note: Remember to always refer to the official upgrade guide. This is by no means official, but it has worked for me. I've tried to keep it as short and easy as possible.
Another Note: WordPress 2.7 comes out on November 10th. It will have an automatic updater module - so you probably won't have to worry about this kind of thing again after that!
Versions tested with:
- 2.6.3
- 2.6.2
- 2.6.1
- 2.6.0
Obtain the path to your wordpress installation, we'll assume it's
1 | /home/user/www/blog |
Safety first. Always.
So make a backup of your WordPress installation folder:
1 | cp -rp /home/user/www/blog /home/user/www/blog.backup |
Next, you'll want to make a backup of your MySQL database associated with it.
Refer to my Simple MySQL backup script to see how to do it.
You're good to go now - you'll be able to revert any changes you've made if you have to. (And that's a nice fuzzy feeling)
Let's get busy:
- Make an update directory to copy new files from
- Get latest WordPress zip file
- Unzip
1 2 3 4 | mkdir /home/user/www/blog/update cd /home/user/www/blog/update wget http://wordpress.org/latest.zip unzip latest.zip |
Just to keep things clear, we have 2 directories at this point:
New files:
/home/user/www/blog/update/wordpress
Original files:
/home/user/www/blog
Delete your old wp-includes and wp-admin directories (I rename them here, which has the same effect).
1 2 3 4 5 | mv wp-includes wp-includes.old mv wp-admin wp-admin.old mkdir wp-includes mkdir wp-admin |
Copy over the new files (NOTE that I haven't used the '-rp' flag for the last copy command):
1 2 3 4 5 | cp -rp /home/user/www/blog/update/wordpress/wp-includes/* ./wp-includes/ cp -rp /home/user/www/blog/update/wordpress/wp-admin/* ./wp-admin/ cp -rp /home/user/www/blog/update/wordpress/wp-content/* ./wp-content/ cp /home/user/www/blog/update/wordpress/*.php ./ |
Log-in to your admin-page. If WordPress needs to perform a database upgrade, it will do it for you.
Check that all your plugins are enabled and in proper working condition.
Optional: After you've tested everything and you're happy with the upgrade, you should delete all the extra files:
1 2 3 4 | rm -r /home/user/www/blog/wp-includes.old/ rm -r /home/user/www/blog/wp-admin.old/ rm -r /home/user/www/blog/update/ rm -r /home/user/www/blog.backup/ |
Funny old school videos
The Jan Terri one is my favourite.
Haddaway - what is love?
Jan Terri - Losing you
Technotronic - pump up the jam
DJ Jazzy Jeff & The Fresh Prince
embedding disabled, click here to view
David Bowie & Mick Jagger - Dancing In The Street
Lionel Richie - All Night Long
Thanks Gmail (for adding more rubbish emoticons)
First, we had these humble smileys:

Then gmail decided to give us a little more "eye-candy". This was really "cute".

I think the square-faces were actually implemented at the same time. Thanks for the variety!

Now we have these ones. Thanks again! I can express my individuality now!

Why? Enough already.
Flickr modifies start page – and makes life harder
There used to be a "Recent activity" and "Comments you've made" link, which has since been replaced with a recent activity page which merges the two pages.
Here are 2 solutions.
If you have Firefox, and you prefer having the two separate links:
- Install Greasemonkey. This allows you customise the way a webpage displays using Javascript
- Install the Greasemonkey script (the link directly to the JS file is in the image-description)
Now you should have something like this:

In fact, all this script does for you is create 2 links right next to the Flickr logo with the following links (this will work without Firefox):
For recent activity
For comments you've made
So you could just bookmark those and avoid the Greasemonkey script all together.
Packer – Javascript compressor
I tried 'packing' an already minimized version of JQuery (which was about 55KB) and this compressed it to about 30KB (almost 50% less). My advice - don't publish any javascript without pumping it through this first!
http://dean.edwards.name/packer/
Some tips:
- Packer obfuscates code, so it makes things very difficult to debug. If you end up having problems with compressing the code, try compressing sections at a time to find out what's causing the problem.
- Write code so that it doesn't rely on whitespace or line-breaks. Use braces instead.
- Don't forget your semi-colons. (Especially when declaring anonymous functions for example)
Mozilla project naming scheme
I'm not ranting about this (I love Mozilla), and I know about products like Camino and bugzilla, but:
- Firefox
- Thunderbird
- Seamonkey
- Sunbird
- Songbird
What's next? Moondonkey?
