Category Archives: Software

Visual Studio debugger unable to debug asp.net code

things to check: 1. Project properties -> Build tab. Optimize code should be unchecked 2. Project properties -> Build tab -> Advanced. Debug info should be set to full. See this: http://stackoverflow.com/a/7713781/147530 in .csproj look for following (yes i wanted … Continue reading

Posted in Software | Leave a comment

Using python to inspect pixel values

install PIL if you don’t have it installed already >>> import Image >>> filename = ‘test.png’ >>> im = Image.open(filename) >>> print im.format, im.size, im.mode PNG (256, 256) RGBA >>> im.getpixel((247,160)) (229, 224, 219, 239)

Posted in Software | Leave a comment

Mercator Projection Notes

To calculate (mercator meters per latitude) is simply

Posted in Software | Leave a comment

Git Notes

Set default editor: git init initilaizes empty repository..gitignore file contains folders and paths that Git will ignore. Example: To stage and commit your changes: To see your config settings: If you modify a file after you run git add, you … Continue reading

Posted in Software | Tagged | Leave a comment

Windows Scripting Basics

To iterate through files in a directory and modify attributes, create following bat file: echo off for %%1 in (*.txt) do attrib -r %%1

Posted in Software | Leave a comment

Track Active Item in Solution Explorer

Posted in Software | Leave a comment

Concatenating pdfs

I need to do this every once in a while, and then forget how to do it. Instructions for Windows 1. Install Ghostscript. Get it from http://www.ghostscript.com/. On my machine it got installed under C:\Program Files\gs\gs9.05 2. Run: gswin64c -dBATCH -dNOPAUSE -q … Continue reading

Posted in Software | Tagged , , , , | Leave a comment

Developing Android Applications with Notepad and Windows Command Line

1. Install JDK. The latest version is 1.7 and it gets installed at C:Program FilesJavajdk1.7.0_02 on my machine 2. Install Android SDK. It gets installed at C:Program Files (x86)Androidandroid-sdk 3. Install Apache Ant. It gets installed at C:Program Files (x86)apache-ant-1.8.2 … Continue reading

Posted in Software | 1 Comment

File I/O in java

Recently I had to read a hindi text file in java. I learnt a couple of lessons in the process: 1. First, eclipse kept raising a FileNotFoundException even though the file existed. Turns out if you put the ctor of … Continue reading

Posted in Software | Leave a comment

Hangman Strategy

Problem: Devise strategy for a computer to play hangman. Details: The computer needs to guess a word using as few guesses as possible, and make no more than maxWrongGuesses incorrect guesses. At end of the game, calculate the score for … Continue reading

Posted in Software | Leave a comment