Showing posts from March, 2010

Zigndog 3rd Session - Django

Hey guys and girls,    I have the screencast nearly ready, but it is hugely boring and very very long. Not only that, it's very impossible to download because of the large file size. So, if you're interested, what is the max file size that you can download? Ping in the comments, I'll try and make it smaller. Divye

The super duper not-so-secret recipe for a great Pasta

Pasta in White Sauce Okay, here goes the super duper ultra not-so-secret recipe to awesome indianized pasta created by the resident geek who writes on these hallowed pages. Part 1: Preparing the pasta 1. Take a huge kadhai and fill it with sufficient water (sufficient = enough to cover all the pasta you will put into it later completely). 2. Add enough salt to make the water quite salty. Exact quantity doesn't matter too much here.. 3. Start heating the water, put in the pasta (penne version preferably as it doesn't break easily) and bring to boil. The water will start frothing. 4. Keep the pasta boiling in the water till it grows in size and changes colour from hard, deep yellow to a lighter, softer, larger size (closer to off-white)     Acid test for this step: you are able to break the pasta easily with a tablespoon's edge. 5. Remove from boil and drain away all the water with a sieve. (you can taste the pasta to judge its saltiness if you like, it won't b

How to enable Compile and Run for C/C++ files in gedit

I never liked using gedit for programming because it needed extensive customization before it even came close to becoming a programming editor. However, those that are just starting out with linux will feel most at home in gedit. So here is how to enable "Compile and Run" functionality in gedit. 1. Enable the External Tools plugin by going to Edit -> Preferences -> Plugins as shown in the screenshot below 2. Go to Tools -> Manage External Tools and create a new Tool by clicking on the "new" icon near the Help button. 3. Name the new tool "Compile and Run" and press enter 4. In the coding area, paste the following script: #!/bin/sh cd $GEDIT_CURRENT_DOCUMENT_DIR g++ -Wall -g $GEDIT_CURRENT_DOCUMENT_NAME && xterm -e "sh -c './a.out; echo Press enter to quit... && read KEY'" 5. Put in a shortcut key (eg. Ctrl + F5 ) in the shortcut key area 6. Set the save setting to Current Document 7. In the applicab

Compile and Run For C/C++ programmers on vim

If the file is named file.cpp or file.c, in the vim command mode just type in: :!make abc :!./abc The first command compiles file abc.cpp to the executable file abc in the current directory. You can then execute it using the second command. Alternatively, you could use something like :!g++ -g -Wall file.cpp -o file if you want to specify your own compilation options. (Anything more complex and you should be using a Makefile anyway).

Reprint of Zigndog Certificate

This post should probably belong to the Zigndog site, but seeing that I have no time to update it, let me just post it here. I trust that most of you who are interested will be mailing me soon (common self-interest reasons) :) To get your rewritten certificates, you need to perform the following tasks: 1. Get in touch with me on my Zigndog id (divye kapoor (at the rate of) zigndog (dot) com 2. Send in a scanned copy of your old certificate along with your correct spelling and the address to which you want the certificates dispatched. 3. I'll acknowledge the receipt of your email and dispatch the revised certificate soon. 4. On receipt of the revised certificate, please mail back the original certificate via speed post. That's all folks! Looking forward to your mails...