Backup Your Facebook Data
This post includes “Thoughts about Facebook and You”, and a link to a great tool to backup your Facebook data.
If you use Facebook, the first thing you should know is: Never trust these bastards! They don’t give a shit on your privacy, they want (and do) own YOUR data, they can “deactivate” your account without a warning, without an explanation, and even without a good reason.
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
Vim Tip – Convert Code To HTML
If you wrote some elegant code, and want to publish it as a HTML page, you can easily do that in vim:
In command mode, type this:
:TOhtml
A new buffer will be opened with the HTML source, just save it:
:wq
If the original file name was “mycode.c”, you’ll find a new file in the same directory named “mycode.c.html”. Open it with your favourite web browser.
Wow, not?
Have fun
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
Array Indexing in C
I found this interesting thing about array indexing in C somewhere in the web:
Suppose that “a” is an array. Then, a[5] and 5[a] are quivallent. Both are interpreted as *(5 + a) or *(a + 5) which is the same
Also: “Hello World”[3] and 3["Hello World"] are the same. Try and C
Infinite zip File
A nice idea: How to build an infinitely recursive zip file. Details and resulting file here:
http://www.steike.com/code/useless/zip-file-quine/
Have fun
Blogging From BlackBerry
Posting from BlackBerry using WordPress app for BlackBerry.
You can install the application to your BalckBerry from here: http://blackberry.wordpress.org/install
Have fun
Wisdom by Python (Easter Egg)
An easter egg by python displays a list of quotations, useful in programming and in many cases in life as well.
In your shell, type this:
1 | python -c 'import this' |
You’ll get this:
The Zen of Python, by Tim Peters
Beautiful is better than ugly.
Explicit is better than implicit.
Simple is better than complex.
Complex is better than complicated.
Flat is better than nested.
Sparse is better than dense.
Readability counts.
Special cases aren’t special enough to break the rules.
Although practicality beats purity.
Errors should never pass silently.
Unless explicitly silenced.
In the face of ambiguity, refuse the temptation to guess.
There should be one– and preferably only one –obvious way to do it.
Although that way may not be obvious at first unless you’re Dutch.
Now is better than never.
Although never is often better than *right* now.
If the implementation is hard to explain, it’s a bad idea.
If the implementation is easy to explain, it may be a good idea.
Namespaces are one honking great idea — let’s do more of those!
via commandlinefu
Have fun
Fix Facebook Chat in Firefox 3.5 (Shiretoko) in Ubuntu
Since I upgraded Firefox to 3.5 (Codename : Shiretoko), I noticed that Facebook chat does not work anymore, moreover, in order to get notifications for new events, I had to refresh the page manually.
After a search at Google, I found the problem, and the way to fix it: Looks like Ubuntu had decided to rename the user-agent into “Shiretoko” which is the codename of firefox 3.5, instead of “firefox”.
Because of the new user-agent name, Facebook does not recognize the browser as firefox, and thus disables some features that are browser dependent.
In order to fix the problem:
1. In the URI bar (that’s the place where you type the URLs of websites you want to visit), type “about:config” (without the double quotes).
2. Click the funny button “I’ll be carefull, I promise”.
3. Now look for “general.useragent.extra.firefox”, right click it, and choose “Modify”.
4. Instead of “Shiretoko”, type “Firefox”. (e.g. if you had “Shiretoko/3.5.4pre” it should become “Firefox/3.5.4pre”.
That’s it, now the world should be a better place
via vimtips.
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
Calendar
| S | M | T | W | T | F | S |
|---|---|---|---|---|---|---|
| « Sep | ||||||
| 1 | 2 | 3 | 4 | |||
| 5 | 6 | 7 | 8 | 9 | 10 | 11 |
| 12 | 13 | 14 | 15 | 16 | 17 | 18 |
| 19 | 20 | 21 | 22 | 23 | 24 | 25 |
| 26 | 27 | 28 | 29 | |||
Archives
- September 2010 (2)
- 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 (1)
