Ruby Console Underscore Shortcut _

Here’s a nifty ruby console trick I just learned.  The underscore character _ can be used to get the last returned value.  Here’s an example in the Terminal:

Screen Shot 2013-12-27 at 8.42.16 PM

Credit to Charles Wood

Advertisements

Transparent Background in Fireworks

There are probably many other ways, but this worked for me.  Open your file, click ‘Save As’, then choose .gif as the filetype.  Click on the ‘Options’ button

Screen_Shot_2013-12-21_at_5.03.17_PM

 

Then select ‘Index Transparency’ in the dropdown box on the lower left.

Screen Shot 2013-12-21 at 5.06.52 PM

 

Save your file and done!

If anyone has a better method that deals with anti-aliasing better, please let me know!

Quick search other sites in Chrome omnibar

Nifty little trick.  If you want to search for something on Amazon, YouTube, or any other major site, here is a shortcut.

Start typing the name of the site you want to search in the Chrome omnibar:

Screen Shot 2013-12-21 at 9.58.54 AM

 

As the instructions say, press tab and you get this prompt:

Screen Shot 2013-12-21 at 9.59.52 AM

Now simply type your query and you’ve saved a few steps!

Oftentimes I would google ‘amazon’, then click on the first link to go to amazon.com, then do my search on amazon. This is way faster!