HelloBirthday Grows Up, Goes Private
It must have been two years ago that I missed my friends birthday and she was super upset with me. Naturally, I devoted 48 hours to building an app that would never let me forget a birthday. (I think this may have pissed her off even more...)
Fast forward... I've decided to change HelloBirthday so that as of January 25th, 2012 new users will only see a forecast of birthdays and wishing will not occur. This only affects new users; current users you're OK.
HelloBirthday still has the capabilities to automate wishing and I'm letting friends, family, and people who know me to continue to use it. If you want to use HelloBirthday please add it and then e-mail me (mike@thinkeffect.com).
I hope you’re surfing
The Rush
I've been thinking about how thrilling life can be. One minute you're in a comfort zone without realizing it and then in a flash you're paddling your heart out head-on for a large body of water that's trying to crash down on you. And as you paddle into this wall of a wave your instinctual response, to the sheer amount of fear amongst other things, is to paddle, kick, and dive into the belly of the beast. Just barely scraping past the wave you and your board flop down onto the hard surface water only to keep paddling because you know there is another wave coming; the set had just begun.
A freezing chill runs down your spine but you realize it's just some of the water from that last wipe out. Fuck, it's freezing cold.
But you continue because the feeling of this challenge has never felt better. It's why you put yourself in situations you're never comfortable in, and why you know the devil in comfort intimately. These waves don't care about anything except providing you challenge after challenge with no end in site.
Ride a Wave
Surfing is a lot like entrepreneurship. It's fueled primarily by you and your own will, and encouraged by that group of people in the water with you. It's still somewhat of a dog-eat-dog world but that bond between soloists is stronger than one might think. It's incredibly rewarding. It takes an immense amount of time to do it well but you can start and feel empowered immediately.
Good luck. Have fun. And remember, the company you work for does not define you.
What’s New in Rails 3 & What I’m Excited About
Rails 3.1.0 was released on 8/31/2011, and as such marks a great day for the Rails community. For a while Rails felt stagnant (think 2.3.11 to 3.0.1RC) and so this is something I've been looking forward to. As I've been using Rails 3 for over a year now, and I've been following along in the change sets, I wanted to point out some of the features I think are really going to be game changers.
Sprockets, and the Asset Pipeline
Previously done through third party libraries, the Asset Pipeline is a built-in framework for managing your assets and writing these assets in other, some say more friendly languages, like CoffeeScript for JavaScript and Sass for CSS style sheets. It's a very large change to Rails because it introduces a new mix of options for how you can write your JS/CSS and it moves the serving of these components to the Rack middle-ware. Your asset resources now can be pre-processed, minified, and compressed in one swoop. This process is done by Sprockets. I won't go into any further detail but you should know this is worth reading up on, so go check out the Asset Pipeline introduction by the RoR team. (You can disable this feature if you don't want to use it. So don't freak out!)
Streaming
Although it requires Ruby 1.9x to run, HTTP streaming has finally been added. Part of the confusion I often hear about Rails is why this feature was not there from day one. To be honest, I'm not sure but my hunch is that it didn't make sense in a prototyping stage to have to stream content. Further, it's very very error prone compared to building your response and then shipping it over (i.e. if computational errors occur mid stream you're dead in the water and the page will never finish loading). Further, Ajax helped mitigate this need by loading a light HTML shell and then using asynchronous calls to fetch your users' data. At any rate, I'm very excited for this feature because the last two years of PHP coding has had me used to buffering output and I really do see the value in being able to use streaming to show progress without making lots of asynchronous calls.
JSON
ActiveResource now defaults responses to JSON, as opposed to XML.
jQuery
Is now the default JavaScript library bundled with Rails 3. Further, RJS has been factored out as a gem.
Basic Authentication
Rails 3 comes with a quick and easy way of doing Basic Authentication (Username/Password) in your Controllers. Read up on Base.http_basic_authenticate_with - Check out the example here
Pluralize Names for Models
Yup! You can now set, on specific models, whether you want them pluralized or not. From within your controller class you'd set: self.pluralize_table_names = false
BCrypt Passwords
You now have a model attribute has_secure_password that will take care of password hashing/encryption.
State of the Union
It's been some time since my last post. Yeah, I know, that may be a good thing for some of you and bad for others! Either way, I'm back in school temporarily to finish up my last class to get my undergraduate degree. What this really means is that I'm now throwing a new ball into my juggling routine. Will I survive? Eh, most likely. But for those who have been bitten by curiosity here is what I'm up to now-a-days:
I'm still working full-time for Yahoo! as a software developer/advertising analyst. I'll continue my night-time hacks; but these will slow down. I'm completely immersed in my computational models & theory course at UC Santa Cruz. I recently picked up an Ipad2 to begin developing on the mobile platform and have begun working on a game. And last but not least I continue to eat, sleep, and surf.
So there you have it. A breakdown of all that is important to me right now and why this blog may just experience a pause for silence. Who knows, I just might have some interesting things to say when I resurface in a few weeks. Surely, you can expect some exciting news towards December
You should follow my twitter account @smasher5 for snippets of interesting (and uninteresting) things.
Katt Williams said life is too fucking short. Yeah Mr. Williams I agree with you. Therefor I say to all of you reading this post, "go outside." (And make your paper booboo)
Visualizing Subversion’s Commit History
Yeah, it's Friday! Woohoo. Yup, that's right people, it's time to kick off your shoes and code...
I have not posted in like two weeks. Lemme tell ya, One of those weeks I spent in Vegas on a much needed vacation without a laptop. It was pretty spectacular. This week has just flown by. But today I felt like doing something fun; I felt like being a movie producer, director, composer, etc. However, I don't really like to get off the couch just to film a movie when I have a at least 25 storylines wandering around my computer.
Without further pause here is my story of the main Subversion repository I contribute to at work:
[ By the way, dots (or nodes) are directories or files. As the two people-icons run around the screen they are making subversion commits. Explosions typically occur when a big check-in happens. ]
Enjoy? Let's make you a video. Visualizing Subversion commit activity is crazy simple. Dayum! I'm running Mac OS X 10.6.8 so all of following was done on that environment.
You'll want to get ffmpeg and some codecs. I use Darwin Ports to manage packages like these so if you're like me here's the quick fix
sudo port install ffmpeg +gpl +lame +x264 +xvid
Next, we're going to need Gource, and ffmpeg.
Download gource. unzip it and head into the directory. once in the gource directory go ahead and
sudo ./configure sudo make; sudo make install gource --help
Alright we're pretty much ready to go. Head over to one of your subversion root directories. Add this file to your directory: summerfun.conf
and in it put
[gource] bloom-intensity=0.25 colour-images=true hide=filenames,dirnames path=my-project-log.xml seconds-per-day=0.1
You'll see the my-project-log.xml is nowhere to be found. Let's create it:
svn log -r 1:HEAD --xml --verbose --quiet > my-project-log.xml
That will make the video play a little faster. You can remove or muck with all of the settings; just read the README for available options. Now here is the command I executed:
gource --load-config summerfun.conf -1280x720 -o - | ffmpeg -y -b 10000K -r 60 -f image2pipe -vcodec ppm -i - -vcodec libx264 -vpre default -threads 0 -bf 0 gource.x264.mp4
This command launches a video; watch it & interact with it. Give it a try. All interactions get recorded in the video output. So zoom as you wish, to entertain your watchers. Let me know how it goes and post your videos.
Reference:



