New leader in Australia creates breaks records

by John Email

The morning that Kevin Rudd lost his leadership to fellow party member Julia Gillard has reportedly caused the largest news related traffic spike ever.
I noticed a number of news sites were having trouble handling the load presenting users with server errors and time out messages.
One major news site also apparently got 3 days worth of traffic in a number of hours.

This just another in the long list of records broken on a single day.


Center DIV using CSS

by John Email

A simple method for centering divs that I usually use is:

The CSS

#content {
   width: 800px;
   margin: 0 auto;
}

The HTML

something here

What this does is creates a div 800 pixels wide then sets the top and bottom to 0 pixels then sets the left and right margins to be auto. This makes the browser give the div equal spacing on either side.

This should work in all major browsers including IE7, IE8, Firefox, Chrome and Safari.

 


How to take screenshots on Mac OS X

by John Email

Mac OS comes with in built short cut keys similar to the Windows Print Screen button system.
Its a bit harder to use but a lot more flexible.

There are 3 different types of screenshots you can take using the shortcuts.

1. Capture the entire desktop

Apple ( Command ) Key + Shift + 3

2. Use your mouse to select a region of your desktop

Apple ( Command ) Key + Shift + 4

Follow this key combination by selecting the region you wish to capture with your mouse

3. Capture a specific window

Apple ( Command ) Key + Shift + 4 followed by Spacebar then use your mouse to select the window to capture

 

All these commands save the screenshots do your desktop with the current date and time
eg Screen shot 2010-03-15 at 5.20.33 AM.png



TweetDeck Ubuntu 64bit.

by John Email

 

I started using TweetDeck recently. It seems to work rather well but there were a couple problems after the installation on my 64bit Ubuntu system.

I was getting the following error when running from the command line

Error loading the runtime (libadobecertstore.so: cannot open shared object file: No such file or directory)

To fix this error you should just need copy the libadobecrtstore.so to the lib32 directory

$ sudo cp /usr/lib/libadobecertstore.so /usr/lib32

If you still get other problems you may also need to install a couple other libs.

The best way to do this is to use a package called getlibs. This system automatically resolves 32bit lib problems on 64bit systems.

You can download the deb package from http://frozenfox.freehostia.com/cappy/getlibs-all.deb

Then run the following command to download and install all the libs

$ sudo getlibs -l libnss3.so.1d libnssutil3.so.1d libsmime3.so.1d libssl3.so.1d \
libnspr4.so.0d libplc4.so.0d libplds4.so.0d libgnome-keyring.so \
libgnome-keyring.so.0 libgnome-keyring.so.0.1.1


TweetDeck should now be ready to go.

 


Old Articles

by John Email

 

I have been emailed by a few people to post some of my old articles on my site again.

One concern I do have though is that some are nearly 10 years old so I want to say, I will post them but a lot of the information may not be relivant anymore and there are probably new and better ways of doing things.
Also I will not be editing these at all, they will just go up as I find them. I seem to recall there were a few corrections that were made on the live site. These will not be included as I only have the original Word Documents.

That said, there still seems to be interest so I will attempt to get them up over the coming days.


Stop Mac OS from searching for a Keyboard and Mouse

by John Email

My current computer setup uses Synergy to move between my Ubuntu and Mac OS boxes. This allows me to seamlessly use them both as if they are one computer with only one mouse and keyboard.
The mac is a mac mini and I don't really have space to leave a keyboard plugged in so I leave it unplugged unless Synergy has a problem where I need direct keyboard and mouse access.
This makes the mac complain every time its turned on saying there is no mouse or keyboard plugged in.
To stop your mac from searching for input devices every time it turns on follow these steps

Select System Preferences


Select Bluetooth

Select Advanced

Uncheck "Open Bluetooth Setup Assistant" and select OK

You may also need to disable the keyboard assistant, especially if your also using a KVM.
I am not sure if there is a better way but this has worked for me.
Open a Terminal window and type the following at the prompt

$ cd /System/Library/CoreServices
$ sudo mv KeyboardSetupAssistant.app/ KeyboardSetupAssistant-OFF.app

A couple reasons why Windows annoys me.

by John Email

I know Windows Vista is older now and Windows 7 is supposed to fix problems that Vista had. But Vista has left a sour taste in my mouth I can't get rid of.
When Windows Vista came out I rushed off to the store on launch day to get myself a copy.

From memory it was about AU$320 for Ultimate.

I got home and installed it. There were a few problems at first, somethings didn't work but overall I was happy with the installation experience.

As I started using the system things started annoying me. A few days later the system died forcing me to re-install.
I re-installed, the same annoying problems came up and the system was just not performing like you would expect with a brand new top of the line custom built box.

After a few months I got sick of the problems and went with Ubuntu. Best thing I have ever done.

On my Ubuntu box I setup Windows Vista in a Virtual Machine and ran it in seamless mode. It worked well for what I needed it for.

A few days ago I needed Windows Vista again so I went with a Virtual Box install.

Windows installed fine, then complained that I had already activated so it wouldn't let me do it online.
I called the number provided, typed in all the numbers then it said I have activated my copy 3 times so I couldn't do it via the phone system. Hang on, what, wait? My full version $320 copy is only allowed to be activated 3 times?
I got transferred through to a person where she asked a few questions and confirmed my number. Then she gave me the confirmation code which activated it. So it wasn't too bad. But still annoying.

The system was up running for a few days when the system suddenly popped up saying it detected a hardware change and was deactivating itself. Wtf??

I hit activate again, it ran through and reactivated the copy.

With Microsoft software it just feels like you have to try so hard to prove who you are even though you have done the right thing. Even though I could go out, get a pirate copy and not have to suffere any of these activation or licensing issues. As a programmer though, I won't pirate software, so I am stuck suffering.

This brings me to Linux and Mac OS X which I have never had problems with activation :)


1 2 3 4 5 6 7 8 9 10 11 12 >>