Archive for November, 2005

Frugality doesn’t always pay – Just buy Dell

November 6th, 2005 Tony No comments

ChaintechAfter my business bought several Dells in the past few months I decided that I would try and save a few bucks and just do an upgrade on the couple of home machines that were lagging. Bad idea.

What I bought:
Chaintech motherboard

AMD Athlon 3200+

• 1GB of DDR 400Mhz

These were purchased in combos with multiple rebates from TigerDirect so the total cost was only $120.

However, I have spent about 12 hours of pure frustration as this setup would only post about 50% of the time. Finally I believe I narrowed down the problem to a simple jumper setting and some BIOS settings that were absolutely unintuitive.

Yes I probably saved $700 per machine but I’m not sure if it was worth it. I wouldn’t recommend Chaintech primarily because their documentation is pretty lousy. Not to mention I don’t have the beautiful Dell 24″ LCD at home. :(

Categories: Computers Tags:

Copy an Entire Directory in Linux

November 4th, 2005 Tony 35 comments

Yeah, this is simple but I’m forgetful so heres how you copy an entire directory, its subdirectories, and files:

cp -R dirtocopy/ newdir/

Categories: Linux Tags:

Ruby on Rails – Could it Replace my PHP Java Mixture?

November 3rd, 2005 Tony 5 comments

It must have been the code God trying to tell me something this week. First Brian on Tuesday and then Mike on Thursday asked me if I had looked into into the Ruby on Rails yet. I had read a few articles about the framework… well, to be honest I only scanned them. My first impression was that it was a lot of hype over a glorified hack to a version of perl. But now that I’ve actually spent a bit of time reading over the beautiful site and and watching the 15 minute intro video I’m very entrigued.

A few months ago I forced myself to spend some time with Python because I had read one too many blogs agreeing that Python cuts development time by 75% over Java. The thing that turned me away from Python was the lack of a good web application (like JSP for Java).

I’m still very wary of switching to Ruby for reasons such as a lack of pre-configured webhosts. My current dedicated host ships all servers configured for php. Thats not such a big one because I already have to install Resin. I’m still not convinced that I could give up the power of Java for a scripting language. For instance, I currently use PHP extensively for quick, simple, dynamic interaction with the end user. It is extremely fast, its quick to develop, it runs on every platform, and it scales big time. However I recently spent a few days trying out the PHP port of Jakarta Torque known as Propel. (Torque and Propel are a object database mapper persistence layer). While Torque performs extremely well, Propel does not. The problem is that the code generated by the Propel generator is quite large. Most classes are 800+ lines. This is no problem for a language like Java that is compiled into bytecode but for a script language like PHP the overhead of simply including one class file is 400 milliseconds. Ugg.

Will Ruby suffer the same constraints? Will Ruby be difficult to adapt to SEO practices? I doubt it. The simple fact that it plays nicely with Apache tells me that mod_rewrite should be no problem.

Categories: Ruby on Rails Tags:

Create a tar file of an entire directory and its sub-directories

November 2nd, 2005 Tony 7 comments

To create a tar archive of an entire directory including all files and sub-directories:

tar -cvf mytarfile.tar mydir/

Categories: Linux Tags: