Monday, April 30, 2007

Auto Mount NTFS/FAT23 in Ubuntu

This how you can mount windows partitions in ubuntu. You can only read NTFS but you can read and write on FAT32.

1. Run this command to see what partitions are NTFS/FAT32: sudo fdisk -l
you will get something like: /dev/hda1 ... HPFS/NTFS

2. Create a new directory to mount the partition to: sudo mkdir /mnt/windows

2. Backup fstab (which is the file to configure partitions): sudo cp /etc/fstab /etc/fstab_backup

3. Run this command to edit fstab using gedit (you can use any editor) : gksudo gedit /etc/fstab

4. Copy this line to the end of the file and change hd1 with the correct windows partition from step 1:
For NTFS: /dev/hda1 /media/windows ntfs nls=utf8,umask=0222 0 0
For FAT32: /dev/hda1 /media/windows vfat iocharset=utf8,umask=000 0 0

done!

The next time you restart ubuntu, it will mount automatically.

Java Smiley Face

Java Smiley Face Home Page

Sunday, April 29, 2007

Java Tic Tac Toe

X O ... simple, easy and fun!

This version of the game allows you to play with somebody else - say a human or any other creature :p - or play against the computer.
The computer doesn't just throw moves at you, it learns from its mistakes so the next time you try to play the same move it stops you.
The computer learns as you play so the longer you play the harder it gets to beat it. Give it a try.

J2SE 5.0

Still under development so if you find a bug please add a comment.

Java Tic Tac Toe Page

Comedy Now! Russell Peters LIVE

Java Checkers

The popular game checkers. It's one of my Object-Oriented Programming course projects.
Created by Tarek Nasser and Jason Hines, we used Java SE 5.0.

Java Checkers Page

Where's My Money?

Java SE Code Names

From SDN J2SE Code Names

Since 1.2.2, major releases 1.3, 1.4.0, 5.0 and 6) are named after birds or mammals, while minor releases are named after insects, given that they are bug-fix releases. (Hopper is short for grasshopper and ladybird is another term for ladybug.)

VERSION CODE NAME RELEASE DATE
JDK 1.1.4 Sparkler Sept 12, 1997
JDK 1.1.5 Pumpkin Dec 3, 1997
JDK 1.1.6 Abigail April 24, 1998
JDK 1.1.7 Brutus Sept 28, 1998
JDK 1.1.8 Chelsea April 8, 1999
J2SE 1.2 Playground Dec 4, 1998
J2SE 1.2.1 (none) March 30, 1999
J2SE 1.2.2 Cricket July 8, 1999
J2SE 1.3 Kestrel May 8, 2000
J2SE 1.3.1 Ladybird May 17, 2001
J2SE 1.4.0 Merlin Feb 13, 2002
J2SE 1.4.1 Hopper Sept 16, 2002
J2SE 1.4.2 Mantis June 26, 2003
J2SE 5.0 (1.5.0) Tiger Sept 29, 2004


The current version is J2SE 6.0 Mustang

The Making of 300

300 Teaser

Java Mastermind

Mastermind, another Object-Oriented Programming course project.
Created by Tarek Nasser and Jason Hines, we used Java SE 5.0.

Java Mastermind Page

Web Developer for Firefox

Another handy extension for web development for Firefox. Web developer allows you to edit CSS, outline frames, blocks and tables, manage images and forms on a web page. What makes it useful is that it applies the changes on the fly so you don't have to reload or save the file. It has other cool tools to help you develop web pages.

Web Developer extension home page: http://chrispederick.com/work/webdeveloper/
also at Firefox add-ons site: https://addons.mozilla.org/en-US/firefox/addon/60

Fasterfox for Firefox

I'm a Firefox guy, like the extensions and themes. I found this extension called Fasterfox, installed it and now using it.
It makes browsing a lot faster. The page loading is faster than before and I'm only using predefined settings but you can customize the extension and probably make page loading even faster.

Here is the home page of Fasterfox: http://fasterfox.mozdev.org/ also can be found at Firefox add-ons site: https://addons.mozilla.org/en-US/firefox/addon/1269

Adblock Plus

Finally a real ad blocker. Adblock Plus is a Firefox add-on which comes with a predefined online list of ads. Once the add-on is installed select the US - English - list and all the ads are gone.

Home page:
http://adblockplus.org/en/

Firefox add-on site:
https://addons.mozilla.org/en-US/firefox/addon/1865

I Need More Cowbell

Finally found it, it's one of my favorite SNL sketches with Christopher Walken.

Link prefetching

Tutorial from Mozilla Developer Center on link prefetching. Trick to speed up page loading.
http://developer.mozilla.org/en/docs/Link_prefetching_FAQ

Earth Day

svchost.exe using 100% CPU

Happens when Windows tries to use Automatic Update. This problem happened to my pc which I fixed after a couple of days googling and yahooing for a fix.

The !@#$ problem also happened during my final exam, the database programming course, I had to restart - yeah RESTART THREE TIMES not by shutting down but by pressing the power button because I couldn't save my files or quit the application. I lost my data three times.

So before I continue I would like to thank the ITSS at Saint Mary's University for the fantastic support and quality of work. Really! to lose my data three freaking times in the final exam and waste about 30min trying to get the damn thing to work. What a !@#$ lab is that?!

Anyway, I found this "fix" which is easy and actually works! cuz the other fixes I found either didn't work or messed up the registry. This fix from Microsoft Windows Live OneCare forum.

Here we go:

1. Click Start->Run, type "services.msc" (without quotation marks) in the open box and click OK.
2. Double click the service "Automatic Updates".
3. Click on the Log On tab, please ensure the option "Local System account" is selected and the option "Allow service to interact with desktop" is unchecked.
4. Check if this service has been enabled on the listed Hardware Profile. If not, please click the Enable button to enable it.
5. Click on the tab "General "; make sure the "Startup Type" is "Automatic". Then please click the button "Start" under "Service Status" to start the service.
6. Repeat the above steps with the other service: Background Intelligent Transfer Service (BITS).

Now re-register Windows Update components and Clear the corrupted Windows Update temp folder:
1. Click on Start and then click Run.
2. In the open field type "REGSVR32 WUAPI.DLL" (without quotation marks) and press Enter.
3. When you receive the "DllRegisterServer in WUAPI.DLL succeeded" message, click OK.
4. Please repeat these steps for each of the following commands:
REGSVR32 WUAUENG.DLL
REGSVR32 WUAUENG1.DLL
REGSVR32 ATL.DLL
REGSVR32 WUCLTUI.DLL
REGSVR32 WUPS.DLL
REGSVR32 WUPS2.DLL
REGSVR32 WUWEB.DLL

After the above steps are finished. Since temporary folder of Windows Update may be corrupted. We can refer to the following steps to rename this folder that:
1. Click Start, Run, type: cmd and press Enter. Please run the following command in the opened window: net stop WuAuServ (note, you might need to reboot before the net stop command will work)
2. Click Start, Run, type: %windir% and press Enter.
3. In the opened folder, rename the folder SoftwareDistribution to SDold.
4. Click Start, Run, type: cmd and press Enter. Please run the following command in the opened window: net start WuAuServ


DONE!

As always with Windows, it's good to reboot when you're done just to make sure it works.

Microsoft Office Calendar Templates

I created two calendars in Excel and thought other people might like them. I submitted the templates to Microsoft and since a lot of people downloaded and rated them, Microsoft promoted the templates to trusted status :)

You can find my templates here.

Fix Master Boot Record

You can't start Windows? I had this problem after removing Linux partitions.
If you have Windows and install Linux on another partition, Linux will overwrite the master boot record of the boot disk. If you remove the Linux partitions you won't be able to load windows.

Here's how you can fix it:
1. Insert Windows CD.
2. Restart.
3. Make sure the CD starts up.
4. Let Windows setup - blue screen - loads.
5. Once done, it will show three options, choose Repair.
6. Select the Windows directory from the list - most likely it's 1 if you have one copy of Windows.
7. Enter the Administrator password.
8. Type: fixmbr
9. Type: yes, to confirm.
10. Type: exit

The computer will restart and Windows will load just fine.

I Don't Recall

This is what attorney general Gonzales' answers were:



and Bush comments on Gonzales' answers:



and finally John Stewart's: