Monday, June 3, 2013
http://tldp.org/LDP/Bash-Beginners-Guide/html/sect_07_01.html
http://tldp.org/LDP/Bash-Beginners-Guide/html/sect_07_01.html
Shell script: IF file/string operators
comment multiple lines in vim
- keep the cursor on the first letter of first line to comment
- in command mode, press ctrl + v
- move cursor down until last line to comment
- press I (you may not see vim going to insert mode, don't worry, you will see cursor moving to first line)
- press # (you may not see # inserted yet, don't worry)
- press Escape ( you should see lines commented out, otherwise, press escape two times)
Wednesday, May 29, 2013
"For example, I...
"For example, I was taught in college that one ought to figure out a program completely on paper before even going near a computer. I found that I did not program this way. I found that I liked to program sitting in front of a computer, not a piece of paper. Worse still, instead of patiently writing out a complete program and assuring myself it was correct, I tended to just spew out code that was hopelessly broken, and gradually beat it into shape. Debugging, I was taught, was a kind of final pass where you caught typos and oversights. The way I worked, it seemed like programming consisted of debugging.
For a long time I felt bad about this, just as I once felt bad that I didn't hold my pencil the way they taught me to in elementary school. If I had only looked over at the other makers, the painters or the architects, I would have realized that there was a name for what I was doing: sketching. As far as I can tell, the way they taught me to program in college was all wrong. You should figure out programs as you're writing them, just as writers and painters and architects do. "
"Universities and research labs force hackers to be scientists, and companies force them to be engineers"
- Paul Graham
"For example, I...
"For example, I was taught in college that one ought to figure out a program
completely on paper before even going near a computer. I found that I did not
program this way. I found that I liked to program sitting in front of a computer,
not a piece of paper. Worse still, instead of patiently writing out a complete
program and assuring myself it was correct, I tended to just spew out code that
was hopelessly broken, and gradually beat it into shape. Debugging, I was
taught, was a kind of final pass where you caught typos and oversights. The way
I worked, it seemed like programming consisted of debugging.
For a long time I felt bad about this, just as I once felt bad that I didn't hold my
pencil the way they taught me to in elementary school. If I had only looked over
at the other makers, the painters or the architects, I would have realized that
there was a name for what I was doing: sketching. As far as I can tell, the way
they taught me to program in college was all wrong. You should figure out
programs as you're writing them, just as writers and painters and architects do.
"
- Paul Graham
Monday, May 27, 2013
Ubuntu: youtube downloader
To download youtube videos or any embedded videos from websites,
- Install firfox if you don't have it on your system.
- open firefox web browser
- go to Tools->Add Ons
- search for video downloadHelper
- the "video downloadHelper" add on will appear in search results.
- install the add on.
- restart the firefox.
- open youtube.
- click on some video.
- to the left of address bar in firefox, you will see one animated bubbles playing, which means the particular website has an embedded video to download.
- click on it and download the video.
- DONE.
Wednesday, December 19, 2012
configure exchange global address book on thunderbird 17
steps:
- on thunderbird, go to Tools->address book
- a new window pops-up. go to File->New->LDAP Directory
- a new small window pops up.
- name =
- hostname = check in outlook. Else, most probably if your mail server is ..com, your hostname for address book will be .com
- BASE DN = dc=y,dc=com
- port number = 3268 ( default port 389 did not work for me)
- bind DN = domain\username
- do not check "use secure...."
- click OK
- right click on the address book you have created, click properties, go to 'offline' tab
- click "Download Now"
- you should get a 'replication succeeded" message.
- To test, compose a mail. go to view->contacts sidebar
- type some half name in search bar that it shows. suggestions should pop up. Now its working for you!.
- If you would thunderbird to auto-search names form global address book while you type name in "To" list, go to edit->preferences->composition->addressing, check "Directory server" option and chose the global address book that you just created from the drop down menu. click OK.
- now open a new mail window, start typing some name, observe suggestions that thunderbird shows up!!! Works wonderfully!