I started seeing a black spot or splotch on pictures previewed on the LCD screen of my digital camera (Fuji FinePix F30). This was ruining all my pictures since the white or light-colored portions of my photographs would show this black splotch. It appears that this is due to dust on the camera’s sensor and [...]
Posted in Uncategorized | Tagged camera |
One day, I decided that I wanted to get into stock photography. This blog post inspired me to consider this. So I went through the hundreds of photographs I had taken over the last few years and picked out what I thought were a few great photographs. Then I signed up on iStockPhoto and uploaded [...]
` The iPhone and the iPad (as also the Motorola Droid and all the other Smartphones with their fancy virtual keyboards on the touch screen) do not support all possible keys in their virtual keyboards. A case in point is the backtick character. This makes it a problem when you need to enter the character [...]
Though in general it is true that you should simply leave C code optimization to the compiler, it sometimes is useful to provide hints to the compiler. This is because when optimizing the compiler has to make a few basic global assumptions so as to generate correct code in all situations, but these assumptions may [...]
Something from the New York Times… I’d finally managed to exile the voices in my head that told me my personal happiness was only as good as my outward success, rooted in things that were often outside my control.
Posted in Uncategorized | Tagged quote |
I use the excellent ConnectBot SSH client on my Motorola Droid to SSH into Linux/Unix boxen. Subsequently, I make the mistake of using Vim. Once I enter insert mode in Vim, I realize that the Droid keyboard (and probably every other smartphone keyboard) doesn’t have any key representing the Escape key (that is used in [...]
Posted in Uncategorized | Tagged droid, vim |
In normal mode, press the key sequence q followed by a. This starts the recording mode (and you should see the word “recording” on the mode-line at the bottom). Then enter or exit the insert-mode as many times as you wish, editing text using the keyboard. All the time, vim will keep recording all your [...]
Posted in Uncategorized | Tagged vim |
Use C-x ( to start the macro (start recording keystrokes) …Perform whatever keyboard actions… Use C-x ) to stop the macro (stop recording keystrokes) Playback the recorded macro anytime using C-x e You can also assign different hot-keys for convenience: (global-set-key [f1] ‘start-kbd-macro) (global-set-key [f2] ‘end-kbd-macro) (global-set-key [f3] ‘call-last-kbd-macro) Check out the KeyboardMacros Emacs Wiki [...]
Posted in Uncategorized | Tagged emacs |
By grok2 | April 21, 2010
Text files created on Microsoft Windows usually use a combination of Carriage-Return and New-Line (CR-LF or \r\n) to separate lines. When such text files are opened in Windows using Vim (usually in the Unix mode), the Carriage-Return’s will show up in the file as ^M (CTRL-M) and can be annoying specially when you are going [...]
Posted in Uncategorized | Tagged vim |
By grok2 | March 10, 2010
“How much did you have to drink?”…”More than a little, less than enough”. Dialogue on Psych on USA. Nice. Either that or I am sleepy. It’s 11.22pm.
Posted in Uncategorized | Tagged etc |