TIps
Convert O’reilly Stand-Alone iPhone Books to epub Format
O’reilly are a great publisher of books related to technology/programming. They offer their books in a few formats besides the classic print. PDF, epub, or as a standalone iPhone App.
The great thing about the standalone option, is that it much cheaper than the epub or PDF version (why?). Still, you don’t want your iPhone screen full of book icons scattered everywhere (especially if you have a large number of books).
The trick is to buy the book @ AppStore as a standalone app, unpack it, pack it again as epub, and upload to any eReader (e.g. Stanza). Now you’ll have all your books centralized in one location, and you’ll keep free space on your screen for other applications.
Here’s how to do it:
› Continue reading
Bash Tip – Separate a Bash Variable From Surrounding Letters
Sometimes, you might find yourself needing to concatenate the value of a bash variable with a string.
I think it’s best demonstrated with (a somewhat artificial) example:
1 2 3 | y=h echo $yome #won't work. will print the value of the variable "yome" which is a null string (since it's not set) echo ${y}ome #works. will print "home" |
That’s it, the trick is to use the curly brackets ${var} to separate the variable from its surrounding.
Have fun
source: @bashcookbook
About Me
Tags
Categories
- Algorithms
- Bash
- BlackBerry
- Collaboration
- Command Line
- Cool Tricks
- Easter Eggs
- Ebooks
- Firefox
- Hardware
- Humor
- iPhone
- Linux
- Linux Development
- Linux Kernel
- Networks
- Open Knowledge
- Other
- Productivity
- Programming
- Regular Expressions
- Science
- Security
- Shell Scripts
- Short Posts
- Social Networks
- Thoughts
- Tools
- Vim
- Web Development
- Websites
Popular Posts
Archives
- September 2010 (1)
- August 2010 (2)
- July 2010 (5)
- June 2010 (1)
- May 2010 (1)
- April 2010 (3)
- March 2010 (1)
- January 2010 (1)
- December 2009 (2)
- September 2009 (13)
- July 2009 (1)
- June 2009 (6)
- May 2009 (4)
- March 2009 (18)
- February 2009 (10)
- January 2009 (10)
- December 2008 (7)
- November 2008 (8)
- October 2008 (1)
- August 2008 (1)
- July 2008 (1)
- June 2008 (2)
