Installing PHP 5.4 on Centos 5.7

I am not what one would consider a sys admin. I do enjoy running my own VPS and mucking about with things like installing the newest version of PHP, but my knowledge doesn't extend very far past yum and rpm. So using only those 2 tools I set out and succeeded in installing PHP 5.4.

After what seemed like too much time trying to find a Centos 5 compatible package I found remi's repository and installed the package

rpm -Uvh http://rpms.famillecollet.com/enterprise/5/test/x86_64/php-5.4.0-1.el5.remi.x86_64.rpm

Those of you following along will see that there are some dependencies involved here. You could add the repo and yum should handle all the dependencies

rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-5.rpm
yum --enablerepo=remi-test install php php-cli php-common php-gd php-pdo mysql ...

I chose to use the rpm command one at a time, using pkgs.org/ to locate all the packages in order to have a better handle on what exactly I had to rip out of my system in order to get 5.4 to work. It turns out I had to rip out a lot, including any remnants of php, mysql, and curl. Remi has all the updated replacements right in his repo, so I thought I would be adventurous and go for it. So, I worked my way down the dependency chain one package at a time - call me crazy, but it was kind of fun.

The bad news is that along the way I had to rip out curl and install an updated version from Remi's repo

rpm -Uvh http://rpms.famillecollet.com/enterprise/5/test/i386/libcurl-7.21.7-5.el5.remi.i386.rpm

and this resulted in Phusion Passenger as well as Thin blowing up because of their reliance on libcurl.so.3. So I may just spin up another node on my VPS for rails-only (which I probably should be doing anyway). There may be other consequences as well - Drupal is throwing what appears to be benign errors, but who knows what other dangers are lurking. I sure wouldn't push this on any mission critical applications.

Sending Emails with PDF attachments in Drupal 7

I wrote my first blog post on the company blog the other day. It was about the frustratingly poorly documented problem of sending emails with attachments in Drupal. I also add on a neat little trick for hijacking the print module to print pdf versions of content on the site, and pipe it directly into the attachment - no saving a copy of every pdf you generate on the site. Head on over there for the full text.

Tags: 

The End of an Era - Good Riddance

So this is one of those personal blog entries that is really written more for myself than for any audience. I have not posted in a while and have been thinking that I really should put something up here. I have a couple interesting code things that have been rattling around in my head, and those will make it here or to Rapid Development Group's Blog in the near future. However today I will talk about how my life has changed drastically in 2011, <sarcasm>and provide some advice for those of you who haven't quite gotten it all figured out yet like I have </sarcasm>.

The change that has had the biggest impact on my sanity is that I sold my racquetball e-commerce business. Racquetball Factory was the reason I learned how to build websites. I have always been a computer geek - but I had never considered computer science as a career path. I was going to focus on more fundamental science: Chemistry, Physics, and Math. However, I discovered those things were hard, and I never felt connected to anything real, or relevant. So I relied on being a bright jack-of-all-trades and relished in getting a new job every 6 months for the past 4 years. During my time at these various business' I discovered something extraordinary - the bar is extremely low for starting your own business! So, at the ripe old age of 23 I took my chemistry degree, my $25,000 AMEX card and 0 formal business training and started my own e-commerce business. I had built a Zen-Cart e-commerce site for one of my previous employers and figured I could take that knowledge and build an awesome Zen-Cart site for Racquetball Factory - alas, I was unaware that building an awesome Zen-Cart site is impossible. But, my site was very good, and had an objectively superior user experience to all but one or two other racquetball e-commerce sites.

I continually improved the site in my spare time while working and going back to school for Information Systems (half business/half computers). I learned a lot about SEO during this time, and for a while I thought that was what I wanted to do - but it is just so much more fun to actually build a site! Though I thoroughly enjoyed building the site and being "Master of my own Domain" - I disliked things like inventory, shipping out orders, stringing racquets, and all that other crap. So I found a business partner who was in a good position to take over those things, and take advantage of many synergies since he ran a local tennis store. It went OK, and only OK and so I ended up selling the whole thing. Racquetball Factory was stuck in the limbo between being not enough for one person to do full-time, and too much for someone to take over who is not able to dedicate enough time to it. If I had really wanted to invest in it I could have built the business up to the point of living off of it within 2-3 years. That would have been awesome - except for I hate stuff like inventory, shipping out orders, stringing racquets, and all that other crap.

I was sad to see it go, but more excited to not have to worry about it anymore. I also made pretty good money on the deal, but if I were to calculate an hourly rate based on the 1000's of hours I put into building the business I would probably cry. However it was an amazing learning experience, not only for what I learned about business and technology, <cheese>but for what I learned about myself</cheese>. I was able to put a hefty down payment on a house and I plan on settling down with my wife and not moving every 6 months like we have been. I am trying to have more free time, while at the same time be more productive. I am working on narrowing my focus and getting rid of things I don't need. I am in a better place than I was last year.

So this has become quite rambly so I am going to end with how my mindset has changed over the course of 2011 with 2 closely related points

Time is Money/The Division of Labor: I am a good web developer, my skills are worth a lot of money on the open market right now. I am extremely happy with my employment situation and am not looking to move, but I do enjoy doing a small amount of side work when an opportunity presents itself - and I charge enough to make it worth my time. I used to want to learn how to do everything and be able to be self-reliant and that I would be saving money. As mentioned previously I am a pretty smart guy and am quick to pick things up. This can lead to the delusion that I can save money by doing things myself instead of paying a specialist. I still think that being a broad person is a great benefit and I enjoy variety. But suddenly all those economics classes describing the benefits of trade are starting to make sense to me. Instead of trying to move some cabinets around in my new house and install a dishwasher I paid someone to do it who is really good at that. In order to pay for it, I helped my wife's cousin put up a website, which is something I am very good at. So now I have professionally installed cabinets and a dishwasher instead of the hack-job that I would have thrown together. The builder is happy, I am happy, and my wife's cousin is happy.

TL;DR
Have someone else do it. Focus on your competitive advantage.

</rant>
Happy New Year!

Fixing Macfusion / MacFuse for Snow Leopard - Mount SSH Drives in Mac OS X

This is just a quick heads up to anyone trying in vain to get MacFuse and Macfusion to work with the new 64 bit versions of Snow Leopard in order to mount an SSH drive. Don't listen to anyone but this guy. I have been searching for a while and following all the "fixes" that fixed the myriad problems with MacFuse coming to Snow Leopard. However, those have all been mostly fixed in the latest version of Macfusion. The thing that hasn't been fixed in even the latest beta version of MacFuse is 64 bit Kernel support.

The version of MacFuse found in the link is an unofficial beta that fixes the problem. I am not sure why it hasn't been taken into MacFuse proper (which doesn't seem to have been updated since 2008). So as a public service I am making a giant button, since it took me forever to find.

Click here to fix MacFuse for 64-bit Snow Leopard

Pages

Subscribe to Front page feed