Welcome to my blog !

A blog devoted to all things geeky, including PHP, Web Development, Photography, Design, Gadgets and Gizmos.

December 14 2008

Slowing Googlebot

Tagged Under : , ,

If you have a relatively large blog on a shared host, sometimes you get performance issues from Googlebot hitting your website.  The fix is now relatively simple thanks to google webmaster tools.  Go sign up at http://www.google.com/webmasters/tools/ (or use your existing Gogle account).  Add your website to webmaster tools then verify it.  Click on settings and you will see the crawler speed slider at the bottom of the page.  Set it to want you want, if you have crappy hosting like me, dial it way back.

Slowng googlebot

November 25 2008

Dreamhost Sucks

Tagged Under :

Yes, I got bitten by Dreamhost, as many others have been. Regular blog readers may have noticed my site exploded and stay dead for the last 1.5 weeks.  It seems dreamhost thought some of the content on the blogs in the same hosting account were objectional (a few large blogs with pictures of celebrites).

So they immediate closed the account without warning.  All up, about 35 domains went dead immediately.  No warnings.  No dialogue to inform me to shut down the offending blog.  I had to BEG them to get access to the files on the server.  Eventually I got access to the databases and files via ftp for a few days.

I have no problem with a web host specifying what kinds of sites they host, they claim that the offending blogs took too many CPU resources because of their large size (thx googlebot).  But the way dreamhost did it was ridiculous.  I would have happily shut down or moved the offending blogs, pulling down 35 sites immediately then not giving me access to any of the websites (until numerous emails) was just insane.

Never, ever host with dreamhost if you value your data. You can certainly find a much better web hosting provider by searching and reading reviews on a specialized web hosting guide.

October 23 2008

Slow SSH to Dreamhost on OS X

Tagged Under : , , ,

For some strange reason I had been getting delays when connecting to Dreamhost via SSH.  Basically after typing in my password I’d be looking at 30-45 seconds waiting, then after typing a first command..,.  say ls -al, I’d have to wait 30-500 seconds for anything to appear.  After running a few commands, it would start to speed up and function normally.

Very annoying when I wanted to quickly log in and change 1-2 things on a file.  After some investigations, I think I have found the solution (I believe it is related to stored ssh private keys).

rm ~/Library/Preferences/com.apple.terminal.plist

To remove your terminal preferences (in case you have some funky preference causing issues, you may or may not need to do this).  Then:

rm ~/.ssh

October 10 2008

Using VIM to edit PHP

Tagged Under : ,

I’ve bee through a number of different editors for coding PHP, including PHPStudio, Dreamweaver, Eclipse, Zend Studio for Eclipse.  The quality of those editors ranged from great (eclipse) to terrible (Zend studio for eclipse, crashing buggy nightmare). I had some kind of negative issue on each of those platforms, generally things not working properly or certain functionality missing.

So I’ve made the leap to using Vim fulltime as a PHP editor.  The main advantage with VIM is that it can be found on pretty much every UNIX/OS X server on the internet.  I can log in and with some VIM knowledge continue editing a file quickly and easily.  No need to depend upon platform specific and expensive editing software.

To get started in vim on OS X the quickest way is to open a terminal window and type vimtutor and you’ll be presented with a pretty simple tutorial.  I just burned through that to make sure I had the basics down, then moved onto the help section and looked into creating new windows in vim (very cool) and search commands and patterns (very powerful).  In about 4-5 hrs you can go from VIM noob to vim intermediate.   Even if you don’t want to make it your fulltime editor and prefer something like dreamweaver, it’s a handy skill to have for editing files efficiently on UNIX boxes.

September 24 2008

Google seeking more innovation

Tagged Under : , ,

Google is fostering innovation again, not by simply ecouraging their workers to spend a day per week thinking of new projects in a wide variety of niches, but also encouraging the public to innovate.  Project 10 to the 100th is a competition aimed at taking some great ideas from people around the world and realising those ideas.

The categories Google is accepting ideas in:

  • Community: How can we help connect people, build communities and protect unique cultures? Opportunity: How can we help people better provide for themselves and their families?
  • Energy: How can we help move the world toward safe, clean, inexpensive energy?
  • Environment: How can we help promote a cleaner and more sustainable global ecosystem? Health: How can we help individuals lead longer, healthier lives?
  • Education: How can we help more people get more access to better education?
  • Shelter: How can we help ensure that everyone has a safe place to live?
  • Everything else: Sometimes the best ideas don’t fit into any category at all.

Check out out

September 17 2008

Google buying Valve!!

Tagged Under : , , , ,

Rumours abound that Google might be buying game maker and distributor Valve in the next few days.  Various media sources have indicated that it is a pretty substantial rumour and should go ahead shortly.

Why would an Internet giant like Google buy a gaming company you ask?  Well it has something to do with the fact that Valve also operates ‘Steam’, one of the best online game distribution networks around (..well probably the best).  I use steam everyday to play online games including Team Fortress, Call of Duty 4 and ET: Quake Wars.

With Google’s power behind the great idea/implementation that is Steam we could see buying/playing games online becoming even more popular and widespread over the coming years.

September 14 2008

Jerry Seinfeld and Bill Gates Ad Part 2

Tagged Under : , , , , , ,

Ok this advertising campaign is getting weirder still.  Again I got a few chuckles over the absurdity of the situation Gates/Seinfeld are in, however I’m not sure it will do anything for Microsoft’s products or image.  MS need to release a new feature rich and fast operating system with medium hardware requirements (not the buggy intrusive mess that is Vista).  OS X and linux distros are continually ripping away market share and this ad campaign doesn’t assure me MS will hit back with good products.

September 14 2008

Doubt trailer looks awesome!

Tagged Under : , ,

Doubt is a film starring Meryl Streep and Phillip Seymour Hoffman.  The trailer looks incredible, great to see these 2 high quality actors together!

September 11 2008

Widget Crazy!

Tagged Under : ,

I’ve added more widgets to the blog…

Feedjit Map widget, which shows the general area where visitors are from, and a blog catalog recent visitors widget (similar to the yahoo mybloglog one I added a while back).  Hopefully I won’t add too many more or the page will become a behemoth!

September 11 2008

US Elections

Looks like McCain has been up to a few dirty tricks in his advertisments.  Maybe he has Karl Rove on board his advertising campaign?