Archive for the ‘Open Source’ Category

Source Code Management – Not just for teams

Posted on November 12th, 2007 in Open Source, Programming, Software | View Comments

I’ve been meaning to write about the subject of Source Code Management for a while now. The reason for this is that I’m very surprised about the amount of software developers I personally know who don’t use any type of Source Code Management tool at all. The main reason of this is because these people don’t even know such a tool exists. The very few who do know about these tools just know how it works, but never use it themselves. It’s shocking, to say the least.

When I got this VPS, I immediately installed Subversion for my own personal projects, even though I’m the only one working on said projects. This is where those very few people I mentioned above think wrongly about these tools. Their basic response was “If you’re the only one working on the code, why do need to share it?” Very big misconception, to say the least.

The reason I originally started learning about Source Code Management tools (first started with CVS, then move to Subversion, where I have stayed ever since) because there was an additional programmer in my company who was beginning to modify the software where only I had previously worked on before. So yes, I used SCM tools to ‘share’ code and make sure our changed didn’t conflict with each other. But then I realized that I was only using probably less than 5% of its true power.

When I did a major screw-up and pushed some bad code into the repository and then into production by mistake (it was actually incomplete code I had mistakenly committed to the repository), I was grateful that I could roll back almost immediately. Then when I needed to have a separate copy of the code, I learned the wonders of branches and tags.

After these experiences, I wondered how I ever did any serious programming work without any Source Code Management. Right now, whenever I start a new project, I immediately create the basic folder structure for the SCM before doing anything else. I think it’s crazy to go forward with a new project without any SCM in place, which makes the fact that a lot of programmers aren’t using any SCM just insane.

For those of you not using any SCM right now, shame on you! Allow me to redirect you to a couple of interesting articles for my preferred SCM tool of choice, Subversion. Please note, there are a lot of different SCM options out there, both commercial and open-source. I would recommend doing some research first on these different tools before deciding to go with one.

Subversion Book – Version Control With Subversion – Excellent resource not only for finding out how Subversion works, but how SCM tools work in general.
Software Branching And Parallel Universes – Great blog post from Coding Horror that explains how branching works visually, along with some reasons when not to use branching.

http://www.codinghorror.com/blog/archives/000968.html

I want everything!

Posted on October 12th, 2007 in Open Source, Programming, Ruby, Ruby On Rails, Software, Web Development | View Comments

The past two weeks I’ve been totally separated from all of my learning and reading processes I’ve established to myself, and I felt terrible for doing that. It’s not like I’ve been totally disconnected from everything. I’ve still read all my favorite programming-related blogs, as usual. Still, I haven’t just sat down to absorb everything or practice.

These past two days I decided to get back on track. However, I found myself with the same problem I’ve had for a while now. Whenever I sit down to learn something, I want to learn everything. I don’t mean “learn everything of something“. It’s more like “learn something from everything“.

For the past months, I’ve had a hundred different interests. I’m interested in learning Adobe AIR. Microsoft Silverlight sounds like something I could use in the future. I was sold on Test-Driven Development and ever started to adopt its practices to my daily usage, yet recently I’m liking the sound of Behavior-Driven Development more and more and would like to test that road. I want to learn other web frameworks in different programming languages, like Django and CakePHP. And of course, I’m still totally into Ruby and Rails.

I know a lot of people who don’t mind knowing about everything. But the deal is that by learning (or having the desire to learn) about so many things, you don’t fully learn it all. You only learn a bit about each thing, but never a whole lot. There simply isn’t enough time in the world to do so, especially with a full-time schedule. So to say it’s frustrating is an understatement to me.

One technique I’m finding useful to juggle these interests is to create a necessary project in your mind to learn along the way. This should keep your interests level high during the learning process, while making you stay focused with one or two things at a time. For example, my next project is a web application, where I’ll strictly try to use the practices of Behavior-Driven Development while learning to use RSpec. This way, I’ll be learning a lot of different, yet related, subjects at the same time. After this project is done, I’ll see where Adobe AIR has headed, since it’s still in Beta. If it still piques my interest, I’ll create a new project for one of my current needs, and learn from there.

Being in this world of programming and technology, where it seems like time is always on fast-forward, it can be tough to keep up with what you like. But at the same time, it’s just fun. Even though I get frustrated at times, I’m having a ball learning these things. I guess it all boils down to that for now.

RailsPR.com – A Ruby and Rails community for Puerto Rico

Posted on October 1st, 2007 in Open Source, Ruby, Ruby On Rails | View Comments

Note: Unfortunately, I had to take this site offline, due to its inactivity, and due to the fact that I have moved to New York City. I had plans for this site to be a starting point for me to start my own Ruby and Rails User Group in Puerto Rico, but I obviously can’t do that now. Hopefully someone in the near future in Puerto Rico will want to do something similar.

Although I finished this project a while back, I hadn’t announced it anywhere, so here it is. I just finished RailsPR.com, a site which I hope generates some much needed attention to the Ruby programming language and Rails framework here in my native land of Puerto Rico.

The main reason I started this site is because the IT industry in Puerto Rico is currently just centered on Microsoft products. I’ve said in a previous post that I really don’t mind Microsoft, and I think some of their products are great. However, with so many stable and useful open-source alternatives in the market, from operating systems to programming languages, I don’t see why it should be this way.

I’ve been learning and using Ruby for most of this current year, along with Rails. And it still baffled me whenever I talk to other programmers, they don’t even know what Ruby is. They’re still stuck with the same Visual Basic teachings they had in college. There are even some still using COBOL.

So my mission with this site is to create a community where interested programmers from Puerto Rico can be together in one place, sharing their knowledge and experiences, which is really what open-source is all about. It would make me proud to have my site be one of the main reasons people got into Rails.

Capistrano – Like that person you hate, yet end up falling in love with

Posted on September 3rd, 2007 in Open Source, Ruby On Rails, Software | View Comments

One of the reasons I went exploring into Rails was because of Capistrano, a utility that greatly helps deploying Rails sites into production servers, by automating many of the tedious setup steps needed to deploy new changes into production. I know I can’t be the only one who has once or twice pushed some new change into production, only to discover (by myself or an angry user) that I forgot to bring the database schema up-to-date as well. Capistrano (actually, migrations are the key component here) will never allow that to happen again.

In a nutshell, Capistrano does the following:

  • Logs into your server via SSH
  • It creates a directory structure that’s useful in case you want to rollback some bad code you mistakenly pushed unto the server
  • Uses Subversion (or other SCM) to checkout the latest code committed into the repository and downloads it
  • Automatically runs all migrations to make sure the database is up-to-date
  • Runs other scripts, like making sure your FastCGI processes are restarted and running correctly, or restarting your web server

After nearly finishing my first public Rails site (coming soon, I promise!), I wanted to learn how to use this tool by deploying the first version into my VPN space using Capistrano. I thought this would be a daunting task, and at the beginning it was thanks to some minor errors, but after that, it was total bliss. After a few hours of tweaking my settings, I finally got it to work, and all deployments from here on out should be as simple as writing cap deploy without and remorse.

I’m going to write how I set up my deployment environment, so if anyone has had similar problems to mine, they can hopefully get past them.

First off, let me write about my app and server environment:

  • Operating System: CentOS 4.5
  • Webserver: Lighttpd 1.4.15
  • Rails Version: 1.2.3
  • Mongrel: 1.0.1
  • Capistrano: 2.0.0

After installing Capistrano on my development computer (simply using gem install capistrano --include-dependencies), I was ready to “capify” my application. To create the files used for deployment, just issue capify . at the root directory of the Rails application. This creates two files: Capify, which points to the second file, config/deploy.rb, which is the actual deployment configuration file.

The configuration is pretty straight-forward. There are some default settings that can e easily changed to reflect your production server setup. I did just that, and that’s where the ‘gotchas’ started pouring in.

After I changed the default values to my own, I wanted to set up the directory structure in my production server. To do that, simply run cap deploy:setup in the root directory of your application. That should prompt you for your SSH password to create all the directories needed in the directory specified in the deployment file (using the :deploy_to variable). However, when I did that, I got a nice error message: no such file to load — openssl.

After searching a few minutes in Google, I found my problem: I had compiled Ruby from source without the openssl-devel libraries installed in my system. Without the header files, Ruby compiled without OpenSSL support. So after installing the OpenSSL header files and recompiling Ruby (don’t forget to run make clean before recompiling), I was faced with another error message: It stated that my server didn’t exist. Then I remembered I’m running SSH in a non-standard port. Capistrano assumes it’s running on the default port, which is 22. After a few more minutes of searching, I found an option that needed to be added to the deployment file: ssh_options[:port] = xx, where xx is your SSH port number. After these changes, I was golden, as Capistrano asked for my SSH password.

After entering it in and seeing some progress in the directory creation process, I was faced with yet another error message, about a user not existing. I was assuming Capistrano was using the user name from my development box to log into the production server. In any case, this was fixed by adding another option in the deployment file: set :user, "production_user", where production_user is the user name with the appropriate permissions to create the directories and files in the production server. I ran cap deploy:setup once more, and all my directories were created. Success! Little did I know that would be only the first steps, and more troubles were looming ahead.

Once I verified the directory structure was created correctly on my production server, I went ahead and ran cap deploy:cold, which deploys my latest working version to the server, runs all migrations, updates all symlinks to the current code, and runs all remaining processes, like respawning all FastCGI processes, for the very first time. I once again ran into a small snag, as I was having permission problems running some scripts on the production server. After some more minutes of searching, I found that there’s a variable that needs to be set to make sure Capistrano runs the scripts as a specific user with adequate permissions. After adding set :runner, "production_user" (once again, where production_user is the user with the correct permissions to run your application scripts) to my deployment file, I was able to pass the permission parts, but then I hit yet another snag: I was missing a file – script/spin.

I found it odd that Capistrano was looking for this file, as it’s not automatically generated either by Rails or Capistrano. But after calmly reading the Capistrano installation instructions (instead of skimming over most of it), I saw that this file is used to recreate (or create) the FastCGI processes in your production server, to ensure that the users will get served the latest version of your app. There are many different ways to set up your FastCGI processes, depending on what the web server you’ll use. Since I use Lighttpd, I’ll be writing about that here. But you can find tons of useful information on the Internet if you use Apache, nginx or any other web server.

To remedy this problem, all I needed to do was to create the script/spin file (with executable permissions – chmod 0755 script/spin) with the following line (where /root_of_app/ is the path you described in the set :deploy_to: variable in the deployment file):

/root_of_app/current/script/process/spawner -a 127.0.0.1 -i 3 -r 5

This script calls another script called spawner (included in current versions of Rails), which verifies if there are FastCGI processes currently running. If the processes exist, they’re recreated to show the new version of the app. If the processes don’t exist, they’re created. The -a switch indicates the IP address used to direct the FastCGI processes. If you don’t use this switch, it will default to 0.0.0.0, which was causing me problems later on. The -i switch tells the script to create three FastCGI processes in sequential ports. Finally, the -r switch tells the script to verify if these scripts are still active every five seconds. This makes sure that all processes are running smoothly. One switch I didn’t use was the -p switch. By default, the spawner script creates all FastCGI processes starting with port 8000. Using the -p switch, you can specify which is the first port. In my case, the three FastCGI processes are creates using ports 8000, 8001 and 8002. You can change that default if you wish.

After you create the spin script, you’ll need to commit it to your SCM so Capistrano can find it in the production server. Once committed, I re-ran the cap deploy:cold command, and I was greeted with success at the end. My latest version of the application code was sent to the server, all migrations ran, and the spin script created three FastCGI processes on my server. Awesome! My work here with Capistrano was done. After hating Capistrano for a good while, I fixed all the kinks and can now never live without it. I love you, Capistrano.

Feeling good for myself, I immediately fired up my browser and entered my site’s URL. Too bad only 500 – Internal Server Error appeared when I went to the site. Curious, I entered the URL once again, appending :8000 at the end of the URL, and lo-and-behold, the site appeared in all its glory. So the FastCGI processes created with Mongrel were working well. But my web server wasn’t transferring the requests to one of the three processes.

After looking around for more information, I saw how FastCGI processes, Mongrel and Lighttpd work together. In a nutshell, the request for the site is sent to Lighttpd, the web server. Lighty then needs to process this request and send it over to one of the FastCGI processes, which then displays the site on the user’s screen. Lighttpd is simply used in this case as a proxy, and lucky for me, it already has some basic proxy functionality built-in. However, it needs to send the the request somewhere. I saw some tutorials online that set this up, but it seemed to always send the request to only one of the three processes, which wasn’t efficient at all.

Here is where Pound comes into play. Pound is reverse-proxy and load balancer for web servers. Basically, it takes all requests from the web servers and passes it along to the processes running the site, making sure that all processes aren’t over-worked by load-balancing all requests. After installing Pound on my production server, I had to create a configuration file, by default stored in /usr/local/etc/pound.cfg (your location may vary, depending if you compiled and installed the program from source, or just installed a package):


ListenHTTP
Address 127.0.0.1
Port 7999
Service
HeadRequire "Host: .*site.com.*"
BackEnd
Address 127.0.0.1
Port 8000
End
BackEnd
Address 127.0.0.1
Port 8001
End
BackEnd
Address 127.0.0.1
Port 8002
End
End
End

This configuration will make Pound listen to the requests on port 7999 in the local machine (my production server), and forward the site’s requests to one of the three FastCGI processes created by the spawner script I talked about previously. I was surprised at how something so powerful could be easily implemented.

Now all I needed to do was to configure my web server to direct all site requests to Pound, which in turn passed them along to one of the three FastCGI processes. Skipping all the other default settings and changing all sensitive info that may compromise my site, here are my current Lighttpd settings for the site in question:


$HTTP["host"] =~ "(^|.)site.com$" {
server.document-root = "/home/production_user/railsapps/app_name/current/public"
server.error-handler-404 = "/dispatch.fcgi"
server.errorlog = "/var/log/lighttpd/site.error"
accesslog.filename = "/var/log/lighttpd/site.access"
proxy.server = ( "" => ( "site" => ( "host" => "127.0.0.1" , "port" => 7999, "check-local" => "disable" )))
)

Make sure you load the mod_proxy server module so you can use the proxy.server option mentioned above.

Once I restarted Lighttpd, I entered my site’s URL, crossed my fingers, and… success! I finally had a working site, load-balanced and all. What set out to be a learning process in Capistrano in turn made me use load balancing techniques in my site, which was something I planned on doing, but on another day, thinking it was super-complicated.

From here on out, every time I make a change I want to push to my site, all I need to do is run cap deploy on my development box, and that’s it. Everything will be updated with a simple command. It’s truly worth the time I spent getting it to work. Now I will never have an angry user again because I forgot to update the database schema.

In all, I spent a few hours fixing all the small kinks I encountered along the way. But as all good things go, you need to bust your ass to get things working like you want to. I don’t mind at all, as I learned a whole lot in one day. I hope someone finds some solutions in this writeup.

In case you’re curious, here’s my deployment file, with all the sensitive info changed for obvious reasons:


# Application Name - Anything you want to describe your application
set :application, "app_name"
# The URL of your source code repository, pointing to the latest version
set :repository, "http://svn_repo/trunk"
# Set the user name to connect to the server via SSH
set :user, "production_user"
# Set the user name of the user with permissions to run the application scripts
set :runner, "production_user"
# Set the path where you want your application to be stored
set :deploy_to, "/home/production_user/railsapps/#{application}"
# Option to change the SSH port
ssh_options[:port] = xx
# The URL or IP Address where your application will be stored - Multiple sites can be specified
role :app, "xx.xx.xx.xx"
# The URL or IP Address where your application will be served - Multiple sites can be specified
role :web, "xx.xx.xx.xx"
# The URL or IP Address where your database lives - Multiple sites can be specified
role :db, "xx.xx.xx.xx", :primary => true
# Task to restart the web server
task :restart_web_server, :roles => :web do
sudo "/etc/init.d/lighttpd restart"
end
# Restart the web server once the deployment is finished
after "deploy:start", :restart_web_server

OpenID – The login of the future?

Posted on August 18th, 2007 in Open Source, Programming | View Comments

Following my small rant yesterday about not logging enough programming time, I cleared my schedule completely this afternoon and evening (with a rest or two to catch the awesome G4 show Code Monkeys) to catch up with some things. It also didn’t hurt that Hurricane Dean passed rather close to Puerto Rico, meaning that my plans were all washed out, but that’s okay, I don’t blame freak forces of nature for any of that.

The first thing I did was read some news around the ‘Net, as I usually do, and I saw a rather interesting article about OpenID, which piqued my curiosity. In case you don’t know, OpenID is (according to the main site) “an open, decentralized, free framework for user-centric digital identity”. In nicer terms, it’s basically a place where anyone can validate their identities in websites around the universe, by storing your allowed sites in a single place. This means you can be able to login any OpenID-enabled site by simply entering your own OpenID URL, logging into your OpenID account, allow the site, and that’s it. No more remembering multiple passwords ever again, only your OpenID URL and password.

At first, I thought this was simply a glorified password-saving system, or something similar to the ill-fated Microsoft Passport / Live system. I didn’t think it was going to be a great idea. But after reading more about it, I realized the true strength of this system over proprietary systems like Microsoft’s: It’s available for everyone who wants to use it. And I don’t mean that in the sense of creating accounts. I mean it in the sense that any developer can add OpenID functionality to their own web applications for free. That’s the beauty of the system.

Although very few sites I frequestly visit don’t have this functionality yet, I went ahead and created my own OpenID account over at MyOpenID. They’re one of the first OpenID providers, and they make the process rather easy. You simply go to their website, go through their short sign-up process, and once you have the account ready, you can go to any OpenID-enabled site (they also include a directory with sites that have this functionality enabled), and you’re ready to log into that site with the URL you created. It’s a simple, yet powerful tool.

The site I’m creating right now has a forum powered by the awesomely simple Beast forum app, and it has OpenID support right out of the box, thanks to the ruby-openid gem that you can easily install on your server. After installing the forum I’m going to test on my server, I immediately used my OpenID to create the account, and it just worked without a hitch. I’m sure everyone loves it when things work on the first try as intended.

If you haven’t read about OpenID, I suggest you click that link above to go to OpenID’s website, and read all you can about it. I believe this will cause an impact in the Open Source industry, and more applications will start to have this included. I know that whenever I can, I’ll be adding this functionality to my websites. I already found a tutorial that helps integrate OpenID functionality with the acts_as_authenticated plugin. I’ll be sure to look into that, and post my results of that experiment soon.

Site Redesign… With WordPress?

Posted on August 8th, 2007 in Linux, Open Source | View Comments

If you’ve been to this site before, you’ll notice a whole lot has changed since the past week. I decided to make some changes, not only to the site, but to the entire architecture running the site as well.

The first major change I made was to switch from a regular hosting service to a VPS. It’s made a world of difference. I don’t want to name my previous hosting company, since the service is pretty good, especially for what I paid for it (not too much). However, I felt it was a bit too slow for my tastes. Also, I’m sort of a control freak when it comes to controlling my work. So I scoured the web, and found a company that offers cheap VPS service, so I signed on.

While I do have system administration experience in Linux and am very comfortable working from the command line, it took a while for me to learn how to set up a domain to resolve in your own DNS, how to set up E-Mail accounts with different domains, and other random things. I’ve learned a lot this past week, and for now, my domains are working correctly. It’s fun when you have to bust your ass to get something working, and it finally does. The hard work makes you appreciate it more.

Since my VPS service is limited to 128 MB of RAM (this is just a test VPS to see how it’ll work for my needs, so maybe I’ll spring for more RAM later on), I immediately shut down the Apache Web Server that’s automatically run by default, and grabbed a copy of Lighttpd. After compiling it, learning how to configure it, and making it run, it’s also made a world of difference, as far as speed and ease of administration goes. Although it has some quirks to get some software working (especially WordPress), it’s not to difficult to figure out on your own.

FInally, my old site ran on Rails. After running it here, I noticed that it consumed too much RAM for my tastes. So I set out on rewriting the page again using PHP, but saw that my WordPress installation is more than adequate to run the few pages I’ve had for now. I was also convinced to use this because I fell in love with this theme, called Hemingway. So I decided to make it easy on myself and just drop everything in WordPress. I know WordPress is used for blogging, but for a simple site as I have now, it’s more than okay to have a few additional non-blog pages around. It just looks good and it was quick to do, and that’s what I wanted all along, since I need to focus my energy on another task that I’ve been doing for the past two weeks.

So, after this switch to a VPS and the redesign, I’m happy with what I have for now. Not only do I have a good-looking site, I not only learned a lot more about Linux, I also have a nice little virtual server running smoothly. Right now, I’m running the server with a web server (Lighttpd), mail server (Postfix + Dovecot), a database server (MySQL) and it’s only consuming 57 MB of RAM. Go Linux!

If you’ve been here before, or even if you haven’t, tell me what you think about the site now, about his it looks, how it runs, whatever you want to comment about. I’ll appreciate any feedback.

Firebug – The best tool any web developer can have

Posted on July 5th, 2007 in Open Source, Programming, Software | View Comments

During these past months, as I’ve been learning Rails and getting my feet more and more wet with all the integrated AJAX goodness that’s inside Rails, I’ve found it increasingly frustrating to debug erroneous AJAX code. With regular web development, most of the times you can plainly see if you have an error in your code. Sometimes the results are incorrect, or some aspect of the page is displayed wrong, and other times there’s a big, fat error page letting you know something is seriously wrong. However, with AJAX, whenever erroneous code is executed, most of the times you get nothing. The page stays the same, nothing changes, except that feeling of doom inside the pit of your stomach. Then it’s time to hit the code again, trying to see if something’s wrong.

Luckily for us, there’s a very awesome tool made to debug these types of errors quickly and efficiently. Firebug is simply a godsend for anyone who works with web development of any kind. It can help you debug your web apps so easily, this is certainly one tool that I don’t know how I lived without these past couple of years. It’s a Firefox extension, so you need the Firebox browser installed to use it, no matter if it’s on Windows, Linux or Mac. But I wonder, why the hell wouldn’t you not have Firefox installed in your computer already? That’s a no-brainer.

Firebug helps you debug HTML, CSS and JavaScript. Since it’s a browser extension, it does all the debugging right in the browser, while you’re executing your page. You don’t need to load any other tool, it’s all at the touch of your fingertips. It can be used with any programming language. I’ve used it while developing in PHP, Python with Django and, of course, Ruby on Rails. Not only can you debug the code, you can even make Firebug do some neat things, like edit the HTML, CSS or Javascript code directly in the browser to see the changes immediately, and it even has a profiler that can tell you where your site is slow.

Oh, I forgot to mention the best part of Firebug: It’s 100% free. You just have to love Open Source projects. It’s still difficult to believe that people out there can put out such a quality and life-saving tool for everyone’s use without asking for a single cent in return. That’s the beauty of Open Source. I don’t know if there are any commercial tools that do what Firebug does, but I wouldn’t trade this tool for anything.

If you’re a web developer, and haven’t heard of this awesome tool, I suggest you click the link I set above for Firebug and get it as soon as possible. Unless you like torturing yourself with debugging the old-fashioned way.

Going to the “Dark Side”

Posted on June 17th, 2007 in Open Source, Programming, Software | View Comments

It’s been ages since I last updated this blog. I’ve been pretty busy for the past month or so, ut it’s due to something that I didn’t want to do in the first place. Let me tell you a quick story about it.

Earlier this year, I convinced my boss to rewrite our current (and, admittedly, buggy) software from PHP to Ruby on Rails, which would be better suited for the job at hand. Since the boss wants everything to be done fast, good and cheap, obliterating the Project Triangle, then I thought that Rails would do well. I could complete the rewriting task fast (thanks to Rails and its plugins doing almost anything with ease), good (thanks to me starting to love Test-Driven Development) and cheap (less time coding and fixing bugs = more time to implement new features). It seemed like a good fit, and he agreed.

However, a few months later, he hired someone to help me with the programming and database tasks. I desperately needed help, so I agreed to this. The person he hired, a young woman with a Masters Degree in Computer Science who teaches at a local community college, then proceeded to evaluate the current system. After proposing various changes, the boss decided that since so much work needed to be done, he might as well profit out of it, so he wanted to have the program rewritten not only for our internal use, but for commercializing the program as well. His language of choice, due to recommendations from the new employee? Visual Basic.NET. Ugh.

I pleaded with him to reconsider, but his mind was set. He wanted to transfer a PHP web application into a Windows-only desktop app. And his understanding was that since Visual Basic.NET has a nice little form designer, it would be much faster to rewrite the program. I countered these points, but he didn’t want to listen to it. He wanted a Windows application he could sell, and the only programming language the other employee knew enough was Visual Basic.NET (yep, even with a Masters Degree in Computer Science, that was her strong point). I was, simply put, screwed.

I have absolutely nothing against Microsoft tools. In fact, I think they’re great. I even suggested using C# instead, as it would be a more robust platform to do this type of project. It’s simply that I think Visual Basic is something that I used in college to learn the ropes of programming, and nothing more. I ditched Visual Basic the first chance I got, immediately after I graduated from college. I hadn’t used Visual Basic for anything since late 2004. I was surely going to need some time to get up to speed in mid-2007. It’s been a while, but I’ve gotten to a point where I can program once more using this language, even if I don’t want to.

However, from my last conversations with my boss, it seems that he doesn’t want me to program much, since I had told him I was way too rusty with Visual Basic. He seems to want me to manage the entire project. I accepted, as it’s more of a challenge than to sit down and develop an application with a programming language I simply wouldn’t use if it were my project.

So, for the past couple of weeks, I’ve been getting my head into .NET programming. While I still am against choosing Visual Basic.NET as the programming language of a rather large software development project, I’ve been entertained with some things that I hadn’t used in a large-scale project with PHP. I’ve learned a lot about Continuous Integration for the automatic build and testing process. I’ve learned how to use NAnt enough to build and test my projects automatically. I’ve even learned the finer points of creating installers that will work on all systems, no matter the dependencies needed. It’s been a change of pace for me, but I’m making the best of it.

Still, I’m very disappointed in my job and this decision that was taken. My heart is with open-source and web-development projects. Sadly, I need to do that on my own time now, but most of my spare time is used learning these new tools I need for .NET development. I’m still looking for work outside of Puerto Rico (I’m 0 for 2 with companies that have contacted me after sending in my resume), so hopefully this changes soon. In any case, I’m making the best out of this situation, and at least I’m learning new things once again. But one day, I can achieve my dream and be part of a team where I know my heart is.

San Francisco, here I come… Hopefully!

Posted on April 28th, 2007 in Open Source, Programming | View Comments

Before starting this post, I want to thank whoever posted my previous post about using the Digg API with Ruby and Rails to dzone. It recently made their front page, and a good amount of traffic headed this way. I hope someone found a good use on that small beginner tutorial.

Anyway, after working a while on this blog and my main site, I would like to tell the story on why this site is here today. I decided to take a look at some Rails hosting, as I wanted to start learning and actively using Ruby on Rails, so I got this small website to just experiment with different things. I had never gotten any type of web hosting before (well, outside my awful Geocities pages back in 1998 while learning HTML with Frontpage, but I hope those remain buried forever), so it was nice to finally have my own little space on the web, with a nice-sounding domain name.

However, after a while, what else was I going to do with this web space? So, I decided to start a blog, and use the main site as a way to post my resumé, my work and what I do for a living. Granted, I still don’t have too much stuff going, but that’s something I hope to change in the coming months. But the real reason of this site’s existance? I want to move to San Francisco and get a job over there.

Don’t get me wrong. I love Puerto Rico, and all of my family and friends are here, who I’ll certainly miss a lot if I leave. However, I find my chances of career advancement very limited here. The entire programming landscape, like most everywhere, is dominated by Microsoft products. And at this moment in time, I have no interest in learning .NET, C# or any other Microsoft-based language. I’m not anti-Microsoft at all, but I think my time will be better spent with what really interests me at this time, which is virtually all about open-source.

That’s the biggest difference between Puerto Rico and the United States, particularly San Francisco. There’s just many, many more opportunities for me to work with Linux, Ruby, Rails and any other open-source software available. Every time I search for job openings here in Puerto Rico, it’s pretty much all the same: System Administrators need people with MSCE certifications to work with Windows 2000/2003, or web developers who need to know ASP.NET. I’ve never seen an opening that needs someone who knows how to work with Red Hat Enterprise Linux servers, or web developers who know Rails, Django or any other open-source programming language.

Searching in different websites and job boards, it seems that California has many jobs that fit my interests. And while I’m still a relative ‘newbie’ in many programming languages, I know that if I find work in something that I would totally do for free if given the chance, I would give the proverbial 110% to that job, instead of viewing it as simply a paycheck. While I’m currently a bit happier at work due to what I’m doing now, I’ve been down that road at my current job, and it’s not really a good feeling to just go to work simply to pay the bills. I want to accomplish something. I know I won’t do that here, at least at the moment. I want to go somewhere and be part of a team that does something great.

I’ve been planning most of this year on what I need to do. I really don’t need to worry about family, as they’re all very supportive of me, and with no girlfriend or spouse, nothing is really tying me down here. I’m just saving money to be able to go later this year, hopefully before my 27th birthday this November. If all goes well, I’ll be a San Francisco resident by the time in 2008.

I’ve done a lot of research about the city and the Bay Area in particular. I’ve seen a lot of job openings, and I imagine it’s very competitive to land a good job there. But the thing that’s really holding me back now is that it’s expensive. I mean, at my current apartment, I’m paying a mere $200 per month; The cheapest one-room apartments over there are at least $750. So that’s a pretty scary thought, going over there without a job will be tough. I guess I’ll have to get used to Ramen noodles. I hope they’re as cheap as they are here!

So, any recommendations? I really hope someone from the Bay Area gets to read this and can leave a comment to set the record straight as to how life is over there, especially as far as job openings and the cost of life is. And if by any small chance you’re an employer (or are close to one), feel free to browse my resumé. I’m completely available to move to the Bay Area is needed. Hopefully this blog leads to the change I need for my career.

Lots of Rubies around

Posted on February 19th, 2007 in Open Source, Programming, Ruby | View Comments

I recently came across this blog post, where someone compared various implementations of Ruby, specifically to check the speed of each. When I read this post, I wasn’t surprised at the results. I was totally surprised at how many different Ruby implementations there are. I hadn’t realized how many there were.

Now, my question is, why are there so many different implementations that run Ruby code? I haven’t read about the others, such as Rubinius or Cardinal, so I still don’t know. I would imagine that there’s different needs for each (such as Gardens Point Ruby .NET, as the name suggests). But unless there’s a reason to have all these different ports, I wonder why there are so many.

Why don’t these developers focus on the original Ruby language and strive to make it better, instead of forking off to a different road and possibly confusing new users? Like I said, I haven’t read about these other implementations, so there may be something behind this. I’ll take the afternoon to read about the other implementations, and try to find out why there’s so much interest in making different Ruby implementations instead of focusing on the original.