Pure Magic!

I am an American web developer living in Southern Spain. I am very wise and very, very humble.

March 14, 2013 at 5:39pm

101 notes
Reblogged from whenyouliveinberlin

When you do your best to speak German but the person answers you in English

whenyouliveinberlin:

image

Thanks to trustno1butthedoctor!

I felt this way in Vienna many, many times

February 20, 2013 at 12:32pm

15,608 notes
Reblogged from videohall

(Source: youtube.com, via animalsconfusedbythings)

December 22, 2012 at 9:05pm

14,918 notes
Reblogged from 4gifs

(via 4gifs)

September 17, 2012 at 1:04pm

313 notes
Reblogged from bigtitznlilnipplez

(Source: bigtitznlilnipplez, via merlin)

August 27, 2012 at 12:29am

29 notes
Reblogged from lazenby

July 11, 2012 at 4:49pm

827 notes
Reblogged from theworstthingsforsale
theworstthingsforsale:

“Fuck it,” the president of Vicks Nyquil says, tossing a stack of papers onto the conference table. “Let’s just make purple drink.” He gets up from his chair and is almost out of the room before someone speaks up. “Um… sir? What should we call it?”
“I don’t give two shits what you call it. Call it Zzzquil. Who fucking cares.” The door slams, and work begins on Zzzquil.

theworstthingsforsale:

“Fuck it,” the president of Vicks Nyquil says, tossing a stack of papers onto the conference table. “Let’s just make purple drink.” He gets up from his chair and is almost out of the room before someone speaks up. “Um… sir? What should we call it?”

“I don’t give two shits what you call it. Call it Zzzquil. Who fucking cares.” The door slams, and work begins on Zzzquil.

July 10, 2012 at 6:20pm

1,344 notes
Reblogged from instagram-engineering

Instagram Engineering: What Powers Instagram: Hundreds of Instances, Dozens of Technologies →

instagram-engineering:

One of the questions we always get asked at meet-ups and conversations with other engineers is, “what’s your stack?” We thought it would be fun to give a sense of all the systems that power Instagram, at a high-level; you can look forward to more in-depth descriptions of some of these systems in…

July 6, 2012 at 9:49am

2 notes

Speed up your Rails development start time

Automation is awesome

I have been using a gem called terminitor (no, that’s really how it’s spelled) for a while now.  The project has recently been replaced with consular.

What consular does

Consular automates your terminal window and tab setup.  You create yaml or ruby config files and with

consular start my_app

Consular opens tabs, panels and windows, running your different app servers or tailing your development log files.

I have taken it another step and aliased

start

and

edit

in my .zshrc to

consular start

and

consular edit

Installation

If you don’t have Ruby installed, install it.  Then just run

gem install consular

You will need to install an engine based on whatever terminal emulator you are using.  I am using iTerm2 so I would type

gem install consular-iterm

You need to create the initial config files with

consular init

Then add your engine to the newly created ~/.consularc file.  This is explained in the readme for your engine.
Then type

consular edit my_app

with my_app as whatever you want to name this project.  Your editor will be launched and you will see a dummy project config file.

My Default Project

Here is a link to a sample of my basic Rails consular setup.  It opens a new window with two tabs.  The first tab has 3 panels: unicorn running on port 3000, tailing my log/development.log file and a rails console instance.  The second tab opens vim (I have aliased vim . to v.) with my project’s directory as the root directory.

Conclusion

This is one of those great tools that really can save you a ton of time.  I really just open my terminal and type

start project

and I am in my editor with my app server running.  Another useful tip is that you can add something like (if you’re on a Mac)

run "open http://localhost:3000"

which will open a tab of your default browser, running your app.
This is not just for Ruby or Rails either (though Ruby must be installed on your system).  It would be just as simple to set up Python or Nodejs apps.

Happy Hacking. 

July 3, 2012 at 11:46am

0 notes

Show your Rails model attributes from the shell

I was playing around with bash scripts this morning

May 28, 2012 at 1:13am

143 notes
Reblogged from theworstthingsforsale
theworstthingsforsale:

After a long day, I love to relax with a nice cold glass of 48 FLASHING LED ICE CUBES!!!
The product listing insists these plastic hellcubes will impress my friends, but none of my friends are raccoons or babies, so I don’t think it’ll work.

theworstthingsforsale:

After a long day, I love to relax with a nice cold glass of 48 FLASHING LED ICE CUBES!!!

The product listing insists these plastic hellcubes will impress my friends, but none of my friends are raccoons or babies, so I don’t think it’ll work.