Controlling a YouTube video from emacs
How to control a YouTube video playing in the browser from emacs using keybindings (on Linux)
How to control a YouTube video playing in the browser from emacs using keybindings (on Linux)
About the tagref tool and my recent patch that makes it play nicely with org-mode files
What I wish I had known earlier about some of Rust's convenience features for elegant error handling
An open source library to map lookup/reference tables in db with Rust enums in code
How to initialize app context in Vue.js app using promises
How to configure projectile in emacs to fix the sluggishness on Windows
When and why I prefer checklists over automated scripts
How I manage recurring checklists in org mode using a hidden gem from the org-contrib package
Lessons learnt from getting my emacs config to work on Windows
Tapestry versions 0.2.0 and 0.2.1 released with fixes and new features
A practical example to understand the concept of lifetimes and lifetime specifiers/parameters in Rust
PostgreSQL provides the timestamp type in two variants - with time zone and without time zone. How to decide which one to use?
An overview of emacs packages for Python, including a mild rant about confusing package names.
Trying to revive this blog yet again
Podcast recommendation
A command line tool to quickly plot histograms based on matplotlib
I have been playing with Clojure on the side for a few months and these days I am trying to build a simple webapp using compojure, enlive and korma. One problem I faced early on was getting postgresql's enum type to work with korma. Insert and select queries using strings for enum type values failed. In the end, I could get it working but finding help online or from the docs wasn't easy. So I…
.. with examples and use cases
Adding NaturalDocs support for JS in emacs
A post/tutorial on Python generators with examples
Moved the blog to Pelican from Octopress
On why I decided to learn Erlang instead of Clojure
On getting the most out of the editor of your choice
Switching from Wordpress to Octopress
Ok. Finally a new emacs trick. Actually I had come across this a while back but then I went on a short vacation and later picked up a John Grisham book (one of the hard-to-put-down types) and so the delay. This one is about adding stuff vertically in a line in the buffer. It might seem to be a bit vague and useless at first but it perfectly fits a problem I face everyday in php-mode. Now php-mode…
Emacs allows bookmarking inside buffers so that you can quicky visit those at a later time. And by later time I mean any time later, even if its a new emacs session. The commands are as follows : Set bookmark C-X r m <bookmark_name> View bookmarks in the minibuffer C-X r b <up/down arrow> or C-s to I-search (Sounds familiar?) View a list of all bookmarks C-X r l Delete bookmark C-X r l (to view…
In emacs, as we open files, a lot of dired buffers get accumulated. I personally find them a nuisance after a while specially during longer emacs sessions. Killing them one by one using C-X k would be quite tedious. Fortunately there is better way to kill many buffers at a time. For this we list all the buffers using C-X C-b . The list opens in a new buffer so we need to switch to this buffer…
Just learnt how to set and use Keyboard Macros in emacs. This looks pretty useful and something I feel will come in handy while refactoring code. Firstly, to set a keyboard macros means recording a sequence of actions (keystrokes) and saving them. Later you can ask emacs to just repeat them for you whenever you want using a single command. Setting macros is quite simple, C-X ( ......begin a macro…
Okay. So here goes the first one. Very often I find myself searching for a line of code in the same file so that I can copy it over into some other function or a method. This whole process of moving to the desired line of code, copying it over, coming back to where you started the search and yanking it can be done unbelievably fast in emacs. This is because emacs keeps setting marks for you…
Using Poor man's TDD techniques
And if you thought I would mention the channels of master guitar players then you got it wrong. We all know they are brilliant and it is very easy to find their videos by typing in the search box. But here is a list of players you might not be knowing of but definitely can't afford to miss if you are a guitar player or a music lover. These are guitar players from around the world whose channels I…
I remember when the first time I tried to learn some Javascript for accomplishing basic form validation, it wasn't as simple as HTML and CSS or even PHP for that matter. Plus being unfamiliar with stuff like Firebug in the early days of programming, doesn't help. So there was a time when, having not realized the power of the language yet, I looked to avoided JS wherever possible. Then Jquery…
Last month I spent some hours coding the popular game minesweeper in javascript. It was a fun project. And as it has always been, fun projects are the best ways to learn something new. Add to that the universal reach of web applications. So apart from coding, putting it up on the server and getting your friends and their friends to play the game while frequently checking the analytics was an…
Last week was one of those few weeks in which a lot of learning happens. Not very uncommon if you are in a profession that needs you to constantly keep pace with something as dynamic as the world wide web. But this time it made me understand what makes useful learning more enjoyable than compulsive learning. And the answer is simple - Because the we actually end up using the former. Ever tried…
Step by step guide to setting up Windows7-Ubuntu dual boot
Guitar Pro tabs for Warren Mendonsa's "Nights in Shining Karma"
"The subject is fully clear but why does the text lack clarity? But in general your blog is great." - gualetar "I fully agree with the author." - Accounting "Thanks the author for article. The main thing do not forget about users, and continue in the same spirit." - ZAREMA "My opinion is a bit another how it is possible to talk to the author, for example on an e-mail?" - biomedtalk "Am. hope to…
Important note before you read further: The other day i found out that this wasn't quite the solution. But in case you are desperately trying to get rid of this thing, this article might still give you some clues. Please find explanation at the end of this post. In case you encounter the problem of redirection to a website called searchportal.information.com then this article is for you. I was…
Following is an excerpt from a conversation between two developers - dev1 : Hey! all web technologies just got owned by this super cool programming language developed by Facebook. Its called FBlang! dev2 : ?? never heard .. Whats so cool about it? ..wait! AFAIK FB uses lamp, python among others.. are you sure ? dev1 : yeah man .. facebook sure uses FBlang. Its awesome you know! a scripting…
I came upon a method for filtering records using jquery and php. I am sure there must be plugins available to do this but this one is super easy. Particularly for problems where the elements are to be filtered by multiple criteria and each element falls in more than one criteria at a time. Consider the following problem. An e-commerce app (a typical online store) has 10 products in 4 categories…
Tweaking Eclipse for the good
We all know how good Firefox is and if something works in FF and doesn't work in other browsers, we generally blame the others for not being as good. Recently I have started to discover a downside of using FF. I came across a few situations where FF was too lenient and I could realize my mistake only upon (accidently) checking the code in CHROME. Let me give a few examples where FF covers your…
Very often it happens that more time goes into testing than writing code. Particularly when ajax is involved. For example, imagine this scenario.. you are working on an online store and you want to allow a user to remove items from the cart using ajax. ie. when the 'remove from cart' button is clicked the item must disappear from the cart... When the code is run for the first time, nothing…
Now this post has been in the drafts section for quite some time.. infact some posts which I started to write later made their way to the blog before this one.. Anyway, here it is! When one of our clients asked for a slider to show featured products on his online store, I felt before going for the ready made plugins available on the internet, I could try to create one on my own. Although it would…
It happens so many times that I need to code something to make the UI fool proof. While I have the logic clear in my mind, i often find that javascript is of little or no help at all.... Whats amazing is that 99% of the time jquery does the trick with minimum code and the 'why-didnt-i-look-up-the-docs-first' feeling strikes!! Jquery can be used as follows to check if at least one checkbox (any…
Note: This post exists for historical reasons! The website I had built is no longer up and I gave up the domain name. I may have lost the source code too :-( Finally I managed to put a substantial work online. My first website Noise OK Please (broken link) has just been launched. This is an online community for musicians and their fans. One special thing about this particular project is that no…
Problem: Some browsers show links in the default color in spite of being styled in CSS. On hover the CSS styling works. Problem faced in: Google Chrome and IE6. No problem in FF Solution: It is pretty simple by the way. There are two ways to resolve this .. Dont use a:link ie. instead of 1 . menu a : link { ... } just use, 1 .menu a {...} And the other way is declare the colors for all the states…
Ah relieved!... finally my website works on IE6. A big problem solved Problem: Login and signup script not working in IE6. (works fine in FF & Crome). On clicking the submit button, nothing happens, not even an error msg. **What was wrong? ** The problem was that I was using images as submit buttons in the HTML forms and not checking form submission as per IE6's liking! **Solution: ** HTML allows…
Imagine a scenario, For past one and a half month you have been working hard on your website, creating graphics in Ps, accurately positioning them along with all the other components using CSS and adding 100 lines of new code everyday... and then one day you read something about cross browser compatibility issues and open the website in IE6 just to see how it works there. The feeling will be…