Tips for my future self

For the last six years, I have worked in IT filling positions as software developer, project leader, freelance and contractor. Personally I enjoy working in any kind of technological challenge. I like to push myself to learn everyday something new. Learning new technologies is something that I really love. I have a BS in Applied Mathematics, so I'm pretty good solving problems.

June 23, 2011 3:48 pm

askerquestioner

tumblrbot: WHAT IS YOUR FAVORITE INANIMATE OBJECT?

You

3:36 pm

Ruby 1.9.1 and Rails 3

I installed ruby 1.9.1 and things didn’t go as smoothly I’d have liked.  

Error loading gem paths on load path in gem_prelude can't modify frozen string

So I decided to install ruby 1.9.2 and everything works perfectly. 

February 8, 2011 10:48 am

Taking screenshots on Android using Mac

1. Download a copy of Android SDK here.

2. Extract the file to /Developer (or whatever path you want)

3. Download an IDE such as Eclipse here. If you’re running Mac OS,  IDE for Java Developers  Mac Cocoa 64bit version.

4. Extract the IDE to /Applications

5. Enable USB Debugging (Menu button > Settings > Applications > Development, check USB debugging)

6. Open up a terminal window, type “/Developer/android-sdk-mac_86/tools/ddms” (if you follow the install path I mentioned or use you’re own path.) This opens up a window “Dalvik Debug Monitor”

7. In the top left window select your device

8. Either hit ^S or on the menu bar select Device > Screen capture

9. Viola! Off you go. Click on Refresh to reflect changes on screen.

Via (http://blog.lichiwu.com/2010/06/this-is-tested-on-both-os-x-10.html)

December 10, 2010 11:06 am

ranged GET

GET with specific byte positions so you can continue a download, for example.

December 9, 2010 12:31 pm

— is “here is the end of all -options”

— is standard unixese for “there are no more fucking options”

For example:

gem install mysql -option1 — —with-mysql-config=/123

12:22 pm

Fix Command

onethingwell:

fc is a shell builtin command that lets you do some cool stuff with your shell history.

Run it without any arguments, and you can edit the previous shell command in your text editor of choice1. To run your freshly-edited command, just save and quit.

fc -l returns a numbered list of recent commands (just like history).

fc followed by one of those numbers will open that command in your editor.

If you follow fc with a string, it’ll open up the last command starting with that string—eg. fc mpl will open the last mplayer command.

That’s just the basics—you can do all sorts of crazy command editing gymnastics with fc, but the details vary from shell to shell. For details, see: bash, ksh and zsh.

Thanks, @gummo!

See also:


  1. As in $EDITOR. If you’d rather use something else, you can set $FCEDIT in your shell profile. If neither one is set, fc defaults to ed, which doesn’t stand for ‘extremely difficult’, but probably should. 

12:19 pm