h1

Enable Develop (Debug) Menu on Safari 4 for Windows

February 1, 2010

Safari doesn’t come out with the developer’s menu enabled by default. To enable it on window, you’ll need to edit C:\Program Files\Safari\Safari.resources\Default.plist add add the following into the list of key – boolean values.

<key>IncludeDebugMenu</key>
<true/>
<key>WebKitDeveloperExtras</key>
<true/>

Initially I thought of only enabling IncludeDebugMenu but any attempt to show the Error Console or the Web Inspector would not show those windows at all.

h1

Reset MySQL Root Password (for Windows)

August 8, 2009

If you happen to lose your root password to a MySQL Server for Windows. Here are the step you’ll need to reset it.

Step 1: Stop MySQL Service

Stop the MySQL Service from Control Panel -> Administrative Tools -> Services or simply just run services.msc from the run command dialog (I personally prefer the later as it’s faster to get there.)

Step 2: Run mysqld without checking for priveleges

Note: You might want to block the mysql port for this step as it leaves your db server vulnerable for the duration of the procedure. SHEILDS UP, SCOTTY!!!


Open a Command Prompt (shortcut is to run cmd from the run command dialog).

Note: if you have the MySQL bin directory on your PATH you can just execute the following commands immediately else you’ll need to cd to the bin directory before doing so. (or add it to your PATH, your choice)


Run this command:

mysqld-nt --skip-grant-tables

Note: You’ll not be able to use this command prompt after running the command above until the MySQL server is stopped again.


Step 3: Reseting your password

Open a new Command Prompt (shortcut is to run cmd from the run command dialog).

Note: if you have the MySQL bin directory on your PATH you can just execute the following commands immediately else you’ll need to cd to the bin directory before doing so. (or add it to your PATH, your choice)


Run this command:

mysql –u root mysql

You’ll now be in the mysqld command prompt execute the following to reset the password:

UPDATE USER SET PASSWORD=PASSWORD('newpassword') WHERE USER='root';
FLUSH PRIVILEGES;
quit;

Step 4: Stop MySQL from Step 2 and Start the MySQL Service again.

Now that you are back at the prompt again from the last step of Step 3, run this command:

mysqladmin shutdown

Note: The command prompt window from Step 2 will be back to the prompt.


Start the MySQL Service from Control Panel -> Administrative Tools -> Services or simply just run services.msc from the run command dialog (I personally prefer the later as it’s faster to get there.)

TA DA!!!!…


Note: This article was written based on information from http://www.mydigitallife.info/2006/06/06/change-and-reset-mysql-root-password/ to illustrate changing the mysql password on windows.


h1

Linux again. Oo la la. :D

October 27, 2007
Okay, after a period of linuxless computing at home due to the loss of the HDD which it resides on, I’m back again to being able to mess around with linux. Especially that now they have a 3D window manager. Compiz, Beryl, and now the merged version called Compiz-Fusion.

So, since I was hooked to OpenSuSE 10.2 before the disaster, I thought I’d just see what OpenSuSE 10.3 can do now, since it’s got compiz-fusion and most softwares are readily available through YaST (that’s the tool which handles the system configuration of OpenSuSE). And me, being a cheapskate, didn’t want to get a DVD-RW drive and so ended up downloading just the bare minimum of a single mini CD.

OpenSuSE 10.3 (First Attempt)
Managed to download the ISO, double checked it with the MD5SUM, managed to burn it to my CD-RW, as usual, I’m a cheapskate, and I don’t want to generate too much rubbish just by burning another CD-R. Rebooted the PC got it all nicely loaded and then got it to do a check on the media, … and found that it’s corrupted somehow. :( . So I got back to burning it again on different CD-RW and got the same problem again. So I mounted the ISO this time instead and check the MD5SUM of all the rpms on the ISO. And it checked out OK. So got the CD-RW loaded and did the same thing, lo and behold, I’m getting checksum failures. So I tried to burn it again, and this time the failures are on different rpms. So I guess my CD-RW is kaput.

Sabayon Linux 3.4
Okay, let’s leave OpenSuSE aside for the time being go go for Sabayon instead. Went the www.distrowatch.com and found it’s actually climbing up the chart of page hits ranking. It’s derived from Gentoo and is suppose to work almost out of the box, err…. in my case would be out of the ISO into the CD, so it’s out of the CD :D . Downloaded the ISO, md5sum it, burned it and tried installing it. Hey it works and without any corruption on the burned CD.

Got it all installed without a hitch and got it up and working, sweet! :D Got myself a nice red motif desktop. I didn’t even need to be bothered about mp3 drivers, etc. Okay, almost not bothered, since I’ve only downloaded the mini version (single CD) so I’ve gotta start downloading other stuff their servers. Since it’s basically derived from Gentoo, the package management is also like Gentoo’s using ebuild, emerge, unmerge commands. It’s got a nice tool call Portato, which is suppose to be what Portage is to Gentoo.

Now here’s the “not for the faint hearted” portion. Since it’s derived from Gentoo it means that when you try to install additional programs, it’s actually the source code that you download and then the tool will then compile that source code for your machine. So do expect this to take much longer than installing programs in deb or rpm based distros. Sabayon, like Gentoo, deals with source tar balls. And it seem that in order to make the mini edition possible, there are a lot of programs and most source code missing. Programs like vi and man, could not be found on the installed system, it has to be downloaded and installed with Portato.

Here’s the happy part, you’ll be sure that the binaries are actually all optimized for your processor, because normally in most deb or rpm distros they’d compile it against a standard i586. Some of these distros even compiled their binary for i386. So you can see how unoptimized those binaries are. On top of this, the installation disk of Sabayon has this nice little option to install the Boot Loader only, but it’s a little lame as it does not allow you to specify the image to load especially if you have another Linux distro installed on the same box.

So here I was happily Portato’ing’ away, and one of my installs actually maimed Portato itself. Me being not so familiar with Gentoo, temporarily gave up at this stage. So I’ve decided to give it a go with OpenSuSE again.

Burning ISO to CD-RW with K3B
This time instead of burning the ISO with Nero (as that came with the CD burner I got), I used k3b instead. It’s a CD, DVD buring tool from KDE. Yippie!! Burned it, checked the md5sum on all those rpms on the disk and it all came out OK. So now I’m wondering whether Nero is as good as people say it is.

OpenSuSE 10.3 (Second Attempt)
This time during installation, I’ve selected to get updates from the openSuSE repository servers as yet and wan to get the installation done first. It all installed without a problem, except that there is one thing that I didn’t quite like this time. There wasn’t an option to install the Boot Manager during the installation this time. Now it’s up to you to go through YaST to the Boot Loader configuration and install it there.

Mp3 on OpenSuSE is a real pain though, since it practically a patented codec and xmms is no longer around in their repository either and it seems that their default audio player now is Amarok which even after manually installing LAME (which stands for Lame Ain’t an MP3 Encoder), Amarok still won’t be able to play mp3s. So I ended up downloading RealPlayer instead, which was available on the OpenSuSE repositories. Sad thing is that it doesn’t have the nice UI that one would see on Windows, and I don’t see a playlist on it either.

One nice feature that’s been added in which I like is their ‘One-click Install’. Basically it’s their *.ymp files which tells YaST what to install. So the user would just click on the *.ymp file which would run YaST, which you’ll need to enter root’s password, and your package is installed.

For those who have Nvidia cards, Nvidia actually has a OpenSuSE repository set on their ftp server which make installation of their proprietory driver much more simpler.

h1

Harddisk Replacement

October 21, 2007

Just like the death throws of a monster you’ll read about in fantasy books which brings along one of the good guys. Yeap, that’s what happened to my old harddisk a few months back. The power supply gave way, belching smoke, it brought along my 40GB Western Digital HDD along with it.

Okay, he HDD isn’t exactly that important because it’s an aging HDD and the irony is that my older 10GB Quantum HDD actually survived, but wait, there are some photos which are in there which can’t be taken again. That’s when I started looking for people who does data recovery on HDD and to my surprise there are about 3 of them here in Malaysia. Well to weigh it between a few thousand RM to recover my old data or just to pay RM185 for a spanking new 160GB HDD…. you do the math.

So here it is, my spanking new 160GB Seagate HDD for RM185 complete with a 5 year warranty. On the flip side, there’s gonna be more eggs in this basket to loose this time.

The note on the HDD says that in order to get it to utilise the ATA (yeap, I’m still at this old stuff), I’ve got to place the jumper on CS and set LBA on the BIOS, which if you leave it to the BIOS to handle it automatically it’ll just choose CHS for you.

Next step is to install my old faithful to it’s former glory as I normally work on Linux and it was sitting on the old HDD that died.

Stay tuned for my next entry on Linux installation…. (I’ve got my eye on OpenSuSE 10.3 and Sabayon 3.4)

Follow

Get every new post delivered to your Inbox.