How to Update Ubuntu Hardy to PHP 5.2.9
April 24, 2009
Categories: IT & Administration, Web & Software Development
Tags: Linux, PHP, Ubuntu
First upgrade your software as is.
>> sudo apt-get update
>> sudo apt-get upgrade
Then add the following to your /etc/apt/sources.list file.
>> sudo nano /etc/apt/sources.list
deb http://http.us.debian.org/debian stable all deb http://security.debian.org/ stable/updates main contrib deb http://packages.dotdeb.org/ stable all
Finally
run the update to install PHP 5.2.9.
>> sudo apt-get update
>> sudo apt-get install php5-cli
>> sudo /etc/init.d/apache2 restart
How to increase or decrease your Boot Camp partition
August 19, 2008
Categories: IT & Administration, Software
Tags: Boot Camp, Mac OS X, Winclone, Windows
If you’re running Mac OS X and Boot Camp you may need to increase or decrease the size of your Microsoft Windows Boot Camp partition, depending on what great videos games are out for Windows at the time.
To accomplish this task without losing all your Windows data you need 3 things.
- Mac OS X 10.5 (Leopard)
- An HFS+ Mac-formatted external drive
- Winclone
To decrease the size of your Windows partition use the following steps.
- Make a backup of your Boot Camp partition from Windows. (optional)
- Run Winclone.
- In the “Tools” drop down click “Shrink Windows (NTFS) file system.”
- Follow the onscreen instructions.
- Wait… it takes awhile.
- In Winclone create an “Image” to your Mac-formatted external hard drive.
- Use Boot Camp Assistant to return your drive to a 100% Mac-formatted partition.
- Use Boot Camp Assistant to make a new Boot Camp partition larger than the file size of your “shrunk” Windows partition image, but smaller than your original Boot Camp partition size.
- When it asks for Windows disk, quit Boot Camp Assistant.
- Run Winclone again and “Restore” your Windows image to the new partition.
To increase the size of your Windows partition use the following steps.
- Make a backup of your Boot Camp partition from Windows. (optional)
- Run Winclone.
- In Winclone create an “Image” to your Mac-formatted external hard drive.
- Use Boot Camp Assistant to return your drive to a 100% Mac-formatted partition.
- Use Boot Camp Assistant to make new Boot Camp partition larger than your original partition size.
- When it asks for Windows disk, quit Boot Camp Assistant.
- Run Winclone again and “Restore” your Windows image to the new partition.
Kind of a pain, but it’s doable. I’ve altered my Boot Camp partition numerous times using the methods above.
Why is “Content-type: text/html” displayed at the top of my CGI pages?
April 2, 2008
Categories: IT & Administration, Web & Software Development
Tags: IIS, Perl, PerlIS
Recently one of my clients was having some issues with a CGI script they purchased. They’re running IIS on all of their servers, and oddly, this purchased script worked on one of their servers but not the other. On the server where the script wasn’t running correctly, IE displayed “Content-type: text/html” at the top of the CGI page. If I remember correctly FireFox displayed the entire markup of the page in text.
After quite a bit of research I found this excellent Perl for Win32 FAQ and learned that when you setup Perl for IIS you have two options, you can use “Perl for Win32″ or you can use “PerlIS.” In my client’s case, they were running Perl for Win32 on the server with the working script and PerlIS on the server with the broken script.
Perl for Win32 = perl.exe
PerlIS = perlis.dll
They are both the same version of Perl, and both come included when you download Perl for Windows. However, even though they are the same version of Perl, they are different “interpreters.”
Perl for Win32 and PerlIS are mostly alike, but PerlIS requires that your scripts include the HTTP response status line as well as all headers for the response. Using Perl for Win32 you only need to specify the headers.
PerlIS is about two times faster than Perl for Win32. However, most CGI script that you purchase, or download for free, do not specify the HTTP response status line. This is because most scripts are not written for PerlIS. (Ok, I can’t backup that claim, but that seems to be the case in my experience.)
If your Perl scripts are displaying the content-type at the top of the page, try configuring your IIS server to run Perl using perl.exe instead of perlis.dll.
How to delete an entire directory via SSH
March 31, 2008
Categories: IT & Administration, Web & Software Development
Tags: Linux, SSH, Unix
I know this is probably common knowledge to Linux and Unix geeks. But every time I need to remove a directory with files in my NearlyFreeSpeech.Net SSH terminal I end up having to google for the command. So here it is for anyone else who’s out there googling!
rm -r -f YourDirectory
rm = remove / delete
-r = recursively deletes the directory and all files in it, including subdirectories
-f = will not ask for confirmation before deleting
A Windows Genuine False Positive!
July 9, 2007
Categories: IT & Administration, Software
Tags: Windows Vista
So this evening my $300 genuine copy of Windows Vista Business decided it was no longer genuine. But my favorite part is I have lots of work due in the next few days and I’m paid by the hour. That means I am now losing money and face! So needless to say I’m a little upset.
But hey, surely Microsoft has some mechanism to get me back in the game right? Not after 6:00pm! Nope. I have to write them a pleasant email and kick back and wait for a response in the next 24 hours. Of course this should be fine. It’s not like I shelled out $300 big ones for the privilege of running Windows Vista Business. And hey, who uses Vista Business for business right? And even if it was for business purposes, who works after 6pm? Yes, a 24 hour turnaround email is the PERFECT solution. *That’s sarcasm Microsoft!*
I must admit, I was able to “chat” with a Microsoft rep. He was a tremendous help providing me with a link to the webpage I initiated the “chat” from, that also contained the support email address. He also ensured me Microsoft would respond to my email within the next 24 hours and he informed me that the email support is absolutely FREE! Can you believe it!? Bless my lucky stars, it’s FREE! *That’s sarcasm again Microsoft!* Free… humph. Give me a break. I should be billing Microsoft my time spent dealing with WGA.
If it wasn’t for Visual Studio Microsoft would have one less developer. Hell, maybe I’ll migrate over to Mono and run Linux and OSX.
