Musings from an east coast software developer, writer and reader.

From the Blog

Jun
19

My buddy, and fellow NJIT graduate, noble prize laureat, open source developer, Kenny Katzgrau wrote up a great post on How To Get A Job As A Programmer.

Anyone that may be interested in computer science as a major in college (or if you are already sitting in classes) that thinks they want to be a programmer may want to go read his little tidbit. If you’re in college to become a programmer I am personally of the opinion that you’ve already missed your calling. Switch majors immediately. You should love this craft before you decide to make it a career.

Jun
19

After work each night for the past couple of months I have been getting my hands dirty with Ruby/Rails development. I can imagine that most developers out there grow to love rake, but for the life of me I literally hate executing a series of commands on a regular basis. The programmer in me loves automation, and while in development I find myself dropping, re-creating and migrating the database constantly. Why should I have to issue three commands?

rake db:drop
rake db:create
rake db:migrate

After a little bit of searching I found that this can be accomplished in two commands.

rake db:reset
rake db:migrate

Welp, that’s not enough for me because I am just that damn lazy. So, a simple rake task to bounce a database.

namespace :db do
  desc "Drop, create and migrate the current database"
  task :bounce => :environment do
    Rake::Task['db:reset'].invoke
    Rake::Task['db:migrate'].invoke
  end
end

I hope you enjoy it as much as I do.

rake db:bounce
Jun
11

Unless you’ve been under the rock for the past couple of weeks, by now you should have heard about AT&T killing the unlimited data plans for both the iPhone and iPad, then grandfathering in the iPad plans for people who buy theirs before the deadline and finally caving in and allowing a 30 day “grace” window until the deadline. If have been following that news then you most certainly have heard about the release of the iPhone 4.0 on the AT&T network and Apple’s change of tune on mobile advertising as soon as they decide to start their own ad network built in natively into the operating system. The big news obviously is the caps on data, 200MB and 2GB respectively, and how many people are rather irritated because the iPhone is built around connectivity. There has been continuous coverage on podcasts and blogs regarding how the 200MB plan is essentially crap and the 2GB plan is a necessity, but what people are not talking about is Apple is now going to be delivering advertisements to your iPhones and iPads which are going to consume quite a bit of bandwidth that you will now be paying quite a pretty penny for.

Of course one could argue that mobile advertisements have always been on the applications that are available through the App Store, but Apple themselves are toting these media rich advertisements that allow for running video, interactive games and streaming audio which out of all the possible digital mediums consume the most bandwidth. So not only are we now going to have advertisements pushed upon us, but the cheaper bill that AT&T is waving around in our faces will most likely be non-existant if these iAds push us over our bandwidth limit.

Of course Apple neglected to mention this little tidbit in their press conference earlier this week. Even though I am eligible for an upgrade on my account I think I am going to wait to see what happens with this whole bandwidth fiasco that AT&T is pulling, and more off, hoping that Verizon will get an iPhone this time next year coupled with an unlimited data plan that I can actually use in the New York City metro area. Here’s to dreams.

At certain points in my life I tend to take long breaks from writing as it generally takes a good deal of time for me to get into the mood to pen something, anything, after a long day of work. I understand how you feel: the whole week seems to be filled with work; after your day job maybe you volunteer, go to classes or even have siblings or children to take care of. These responsibilities, even if minor, add up during the course of the week and you are left with, at best, mere hours a week to dedicate to hobbies. What I find unfortunate is serious writing takes effort. You must be in a creative state of mind, relaxed and focused all at the same time. For some of us this zen-like state is nearly impossible to get to late at night when all you want to do is go to sleep an hour early.

I have personally solved this problem in two steps. The first step is to always carry around something to write with. For me most of my creative ideas come when I least expect it. I may be zoning out on the train ride into the city, listening to a friend ramble on about their day during lunch, or even waking up in the middle of the night with a brilliant idea for a chapter or short story. The point is to always be able to jot these ideas down when they are fresh on your mind, in their most lucid form, because attempting to recall them later will be much harder than you may think! I suggest a cheap pocket-sized moleskin notebook that is available from Amazon or your local Barnes and Nobles store for under ten dollars. These notebooks tend to last being jostled around inside a jacket pocket, purse or sat on when in the back of your pants pocket.

The second suggestion I could give is to make a rule about writing. Every Wednesday, for example, add an appointment or notification on your phone to remind you to sit down and write for two hours. Be sure to add a reminder two hours before your writing period so that you can finish dinner, reading or studying. A notebook (or more likely, a computer) should be close at hand on this particular day, so be sure to choose a day when you are for sure most likely to be home from your other engagements.

A half hour before you are to write make sure you get yourself in the mood. Put in some relaxing music, distance yourself from any distractions like other people, television or instant messenger applications, and the most important piece to the equation – review the notes that you have been taking in your handy-dandy notebook. If they are related to a story that you are already working on be sure to refresh yourself with the previous couple of pages that you have written. Don’t get hung up on any spelling or grammar mistakes that you may have made, this is not the time to edit, but focus on the structure and layout of the story. A good editor will always go through your piece with a fine-toothed comb.

Remember that the most important thing is to enjoy what you are writing. Even though it helps to make writing a timed event, do not turn it into a chore, because it will that much harder to sit down at your computer desk and type away for hours. Get lost in what you are working on and enjoy the world that you are crafting. If you feel yourself getting bored with the story, do not be afraid to work on another chapter or entirely different story. Sometimes it helps to come back to a piece later to refine it.

I was reading a blog post today about how you’ll never become a full-time writer and even though I disagree, I find myself not enjoying the idea of needing to force myself to write hours on end in order to make a paycheck. For me writing is a hobby, it is something that I enjoy as it gives me a creative outlet, but I far more enjoy writing software as a day job. As the post points out many bloggers are “corporate suits” by day and “smartass bloggers” by night. Is this really a bad thing?

Sure you may have a small portion of yourself that wishes you could ditch your corporate job, sit at home all day and write opinion pieces for an online publication, but would you really be happy? For some of you that answer is a resounding yes, but for myself, the only way that I seem myself being able to be a full-time writer is if it were to be a novelist. As a blogger you are forced to have a shtick, either it being able to come up with witty one-liners for each and every post, be a complete and utter asshole to the point where people laugh at the obsurd shit that you put out, or be able to write a complete story that flows beautifully.

I am not a person that is consistant at any of those to be even considered an adequate candidate as a professional blogger. Of course I cannot say that I have ever tried doing so, but I think if that were my job I would end up falling back on writing software because that’s what I enjoy to do. For some people blogging (and writing in general) is a dream that may eventually become more than a hobby, but for others, it is something that we enjoy in addition to our daily work grind. If it becomes more than that then we may decide to go with the flow, because really, that is all we can ever do anyway, right?

After years of waiting for Hulu.com to smarten up, it finally looks like we will be getting an embedded Xbox application capable of streaming Hulu to our televisions. With the success of the Netflix streaming applications on the Xbox, Playstation 3, Wii and now the iPad, it was only a matter of time before the big networks caved and allowed their content to be available through on demand. For a little over a year now I have completely dropped my cable television subscription and have barely batted an eye – the only television that I miss includes late night comedy and live sports.

Earlier this year Hulu has been rumored to be moving towards a paid subscription model where the cost would be $9.95 per month for access to more content. Of course, there was no direct word on if this content would be advertisement free, but you can bet your bottom dollar that you will most likely be hearing those thirty second advertisements on your paid account. Personally, I would absolutely pay $9.95 a month for Hulu if it included a streaming disc for my Playstation 3, and the development this week has brought that one step closer to reality.

For those of you that do not remember a couple of months after Netflix announced support for the Xbox 360, last November they went and sent out Playstation 3 Blu-ray streaming discs out to participating instant view subscribers. Just a couple of months ago they begun sending out Wii streaming discs as well. I believe the last piece to an amazing media center experience is Hulu streaming on the Playstation 3, which is capable of DLNA streaming from your Mac, PC or Linux machine. That, included with a hopeful Google TV integration, will make a truly cheap alternative to big cable.

I was reading Engadget.com today and I came across this tidbit about AT&T deciding to allow iPad orders before July 7th to continue to have the unlimited data plan. For those of you that read my iPad vs. AT&T blog post it highlights all of the points that AT&T seems to have forgotten when they first decided to change how they are going to handle their data plans. The facts are simple – most iPhone users consume between 200-500MB worth of data, and (from AT&T’s metrics) the 98% of all iPhone subscribers use less than 2GB of data per month. But what they did not include is the metrics from the month long usage of the iPad. Due to streaming applications such as Netflix the iPad itself is absolutely going to use more data.

The major data consumption on the Internet is audio and video, both of which applications on the iPad are designed specifically for, whether it be watching a movie streaming from Netflix, a baseball game through the MLB application or television through your Slingplayer – it is very clear that this device is going to overall trump the usage of a standard iPhone. You can bet your wallet that the widely popular service Hulu.com will be eyeing up developing an application for the iPad as well.

With all of these data heavy applications that 2GB cap is going to be quickly approached. Of course the AT&T suggestion is to use WiFi as often as you can, but why should you have to? This device was designed to run on battery for roughly ten hours, so why should I be tethered to my apartment, office or coffee shop? Most people purchased this device because they planned on reading, listening to music or watching movies on their daily commute into the office. Others may have picked it up to placate their children on long car rides. You’re telling us now, after we purchased the device, to not use it for what we purchased it for?

I am still on the edge about whether or not I will purchase a 3G iPad before July 7th. Part of me cannot justify spending this much money on a device that I do not see myself using all too often, but the other part of me, the commuter, sees all the ways that I can use this thing to keep my mind busy on the train into work. Yet still another half of me wants to develop some cool games for this beast. So the real question is, do I wait until later or purchase it now to take advantage of the unlimited 3G data offer? I think the answer is pretty obvious, how about you?