Category Archives: Uncategorized

Removing Dust from Digital Camera Sensor

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 [...]

Share
Posted in Uncategorized | Tagged | Leave a comment

Choosing and Buying the Best Digital SLR (DSLR) Camera for Stock Photography — Canon vs. Nikon vs. Sony vs. Olympus vs. Pentax

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 [...]

Share
Posted in Uncategorized | Tagged , | 5 Comments

` Backtick Character on iPhone / iPad

` 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 [...]

Share
Posted in Uncategorized | Tagged , , | Leave a comment

C Optimization Tips – Dealing with Aliasing

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 [...]

Share
Posted in Uncategorized | Tagged , , | Leave a comment

What exactly is the source of your happiness again?

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.

Share
Posted in Uncategorized | Tagged | Leave a comment

Problem Using Vim on the Motorola Droid

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 [...]

Share
Posted in Uncategorized | Tagged , | 2 Comments

Creating and Using Keyboard Macros (Record Macro, Play Macro) to Record and Playback Keystrokes in 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 [...]

Share
Posted in Uncategorized | Tagged | Leave a comment

Creating and Using Keyboard Macros (Record Macro, Play Macro) to Record and Playback Keystrokes in Emacs

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 [...]

Share
Posted in Uncategorized | Tagged | 1 Comment

Getting rid of ^M (Ctrl-M) characters in Windows text using Vim

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 [...]

Share
Posted in Uncategorized | Tagged | 4 Comments

More than a little, less than enough…

“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.

Share
Posted in Uncategorized | Tagged | Leave a comment