Category Archives: code

So, I took my GRE …

… and scored pretty well. 1520, to be exact.
For most of the people I know, the biggest hurdle to getting a good score in the GRE was our vocabulary. Most of us have our own way of learning the various word lists available in the market. Mine involved a book, a software made in Visual [...]

Using javascript to avoid the mouse and page scrolling

Here’s the problem. It is not very easy to scroll a document when you’re inside an input element. Arrow keys don’t work, and Page Up/Page Down jump in big increments. What if you want to see just a few lines below the current element? Our clients hate to scroll. And they hate having to use [...]

Tuning LINQ performance with Mr. P and Mr. S

I thought I’d take a second look at the Mr. P and Mr. S problem, which I’d posted more than a couple of years ago. The last time I tried it, I wasn’t successful. I had a strategy to solve it, but somehow I just couldn’t translate it into code.
I’ve been programming a lot with [...]

`calculable’ textboxes using jquery

Here’s some code to make your textboxes calculable. Demonstration here.
(function($) {
$.fn.calculable = function() {
return this.each(function() {
[...]