Monday, November 26, 2012

Box and Whisker Plots on Excel

http://peltiertech.com/WordPress/excel-box-and-whisker-diagrams-box-plots/

Thursday, July 26, 2012

Reset customized property values in Matlab

In Matlab, property values such as 'ColorOrder' can be customized using the set command. This is applicable to most property commands.

>> set (0, 'ColorOrder',[0 0 0; 0 0.5 0.5; 0 1 1];

In order to go back to the default Matlab settings, use to 'remove' tag. This will reset the property value to pre-defined Matlab values.

>> set (0, 'ColorOrder','remove');

Thanks to Maria for this nugget!


Friday, March 16, 2012

Inserting equation numbers in Word 2010

http://blogs.office.com/b/microsoft-word/archive/2006/10/20/equation-numbering.aspx

Wednesday, November 9, 2011

Store directory contents into text file in Windows

To store the directory contents with full path into a text file in Windows:
dir /s /b /o:N "Path" > "text filename"

Sunday, July 17, 2011

Create a Matlab figure without any borders or box around the figure

set(gca,'visible','off')
    set(gca,'visible','off')
    set(gca,'xtick',[])
    set(gca,'ytick',[])
    set(h,'InvertHardcopy','off')
    box off

Saturday, March 19, 2011

Expense splitter

I found a very nice website to calculate trip expenses shared among a group of people. The link is here. I like this website for its easy to use interface, ability to use without a login and ability to move around expenses to minimize number of transactions.

Wednesday, February 16, 2011

Xcopy command on Windows

I used xcopy today to copy merely the file structure of one directory without having to copy the files within the subdirectories. xcopy also has a number of other features for copying files, and it is cool that Windows comes preloaded with this function, without having to install a third-party application. The Windows help page for this utility is here.

Thursday, February 10, 2011

Full screen figures in Matlab

When I make images of my results in Matlab for publication in papers or showing in presentations, I like to control the size and properties of my figure. However, Matlab does not do a very good job of displaying the images in the correct size while outputting the figures. This post gives an elegant solution to display Matlab figures in full screen mode, which is exactly what I want most of the times.

Baggage & Airlines

Airlines and baggage do not sound like an ideal couple. Here's a very nice post which details what to do in case you leave something on an airplane.

Friday, October 30, 2009

Windows XP Recovery CD + ISO Recorder

I wanted to start the Windows XP Recovery Console from a CD, but I did not have the original Windows XP installation CD, neither did I have the i386 folder in my Windows installation folder. I found that in order to create a bootable CD, the rc.iso can be downloaded from here. The *.iso file cannot be copied directly on to the CD, instead it has to be extracted and burnt on to a CD. Any standard CD burning software such as Nero or Roxio can be used to do this. In case any burning software is not available, a free software to burn *.iso files is ISO Recorder.
Once the boot CD is available, the steps to boot the computer using this CD are as follows:
1. As soon as the power button is pressed, press the F12 key to access the boot list. This is the order in which the BIOS uses devices to boot. Ensure that the CD-ROM is selected to be above the hard drive in the boot list. Insert the boot CD into the CD-ROM drive. Save changes and restart the machine.
2. The computer should now boot using the Windows XP Recovery CD. Once the recovery menu is reached, press R to select the "Repair with Recovery Console" option.
3. Select the Windows installation that you want to access from the Recovery Console.
4. Type the administrator password when you are prompted to do so. NOTE: If no administrator password exists, just press ENTER. This will provide access to the Windows XP Recovery Console.

Creating Numbered Equations in Microsoft Word 2007

I was trying to create numbered equations in Microsoft Word, so that the equation numbers would automatically update as I keep adding more equations. I found a very nice post on the MSDN website (link), which gives a step by step procedure for creating a customized equation type known as "numbered equation". Writing equations in MS Word is much more tedious than writing them in LaTeX, but if the report has to be made in MS Word, this is a worthwhile thing to know about.

Sunday, October 11, 2009

Opening *.eps files with GIMP

I installed GIMP on my system and needed to edit *.eps files. On trying to open an *.eps file, I got an error which did not allow me to open these files since I did not have Ghostscript installed on my system. Even after installing Ghostscript, I saw the same error on trying to open the file. The solution to this was to add an environment variable in Windows to tell GIMP where to look for Ghostscript to open these files. The procedure for this is:
1. Right click on "My Computer" and select "Properties".
2. In the tab "Advanced", select "Environment Variables".
3. In the window on the top, click "New".
4. Variable name: GS_PROG
5. Variable value: C:\Program Files\gs\gs8.64\bin\gswin32.exe (This is the path of the Ghostscript variable on your system).
6. Restart GIMP.

Update (07/19/2011):
In Windows 7, there are 2 types of environment  variables - System variables and User Variables. System variables apply for all users, while User variables only applies for the current user.

Thursday, April 30, 2009

Engauge

Engauge is a free software which is useful to pick out data points from a published graph / figure. This is particularly useful while trying to superpose older published data with new results, when the original data files are not readily available. The software interface is pretty straighforward and the help files are decently elaborate. It also has an automated utility to try and detect data points or you can go the manual way by clicking each point that you need. All in all, a very useful utility for technical writing.
Update : I also found a few other alternatives, but I have not used / tested them. Here they are in any case - Plot Digitizer and g3data (this works only for Fedora OS).

Wednesday, April 22, 2009

Quick & tasty grad student food

At my sister's request, I will deviate from the usual theme of this blog, and post a recipe. Disclaimers include : I do not claim this to be my original recipe, its simply something I find easy to make. I do not claim to be an expert chef, instead I hope this can help a few grad students make a quick meal.
Ingredients:
1. Frozen mixed veggies -  1 packet
2. Onion - 1 medium sized
3. Tomatoes - 2 medium sized
4. Ginger - garlic paste - 1 tsp
5. Salt - to taste
6. Chilli powder - to taste
7. Coriander powder - 2 tsp
8. Yogurt - 2 tsp (optional)
9. Lemon concentrate (optional)
10. Oil - 2 tsp

Procedure:
1. Microwave the veggies, so that they are 75% cooked. 
2. Heat the oil in a tava. Cut the onions into decent sized pieces (about half an inch on each side) and sautee them in the oil until they look golden-brown.
3. Cut the tomatoes in decent sized pieces, add them to the onions and sautee them too.
4. Add the ginger-garlic paste to this mix and let this cook for a 3-4 minutes.
5. Let the mixture cool down for 5 minutes, and then grind them into a gravy.
6. Meanwhile, take the microwaved veggies and put them in the earlier tava.
7. Add coriander powder, salt, chilli powder and the gravy to the veggies and let it cook for sometime, until the veggies are fully cooked. 
8. If the dish is too spicy, add the yogurt and lemon mix. Be careful at this step, as adding too much of either will make the dish taste sour.
9. If you want to get fancy, add a garnish of cilantro / spring onions at the end.
8. The dish should be ready in a total of 25 minutes or so.

Suggestions:
1. Use canned beans / tofu / paneer instead of veggies. In that case, skip the microwaving step. For a higher calorie meal, fry th tofu / paneer in the oil before sauteeing the onions.
2. If using tofu / paneer, it has to be slow cooked, or else the tofu / paneer will taste raw. 
3. For variety, I replace the coriander powder with cumin powder or garam masala interchangeably. Even better, get one of the Everest masala / MTR powders from the Indian store. Or the best I have found is to use the Patak masala pastes, which can also be found in the Indian stores.

Two requests for all readers:
1. If you have any suggestions / comments about this recipe, let me know.
2. If you have any other quick recipes / links to the same, please post these in the comments too.

Let me know if any of you find this useful !

And now Reliable Calling

Close on the heels of Airtel's 1cent/min deal to call India, Reliable Calling has come up with a similar offer. For 8$, you pay 4$ as fees, and for the remaining 4$, you get 400 minutes. So, effectively it works out to 2c/min, but they like to advertise it as 1c/min! In any case, these 400 minutes have to be used within 14 days, as opposed to the 30 days of Airtel. All in all, I feel the Airtel deal is better, but if someone has a born hatred to Airtel, and would like an alternative, Reliable Calling seems to be the answer!

Saturday, April 11, 2009

PDF Hammer

This is in some sense a follow up post to an earlier post dated 03/13/2008. PDF Hammer is an excellent web-based utility to manipulate PDF files. Obviously the best part is that it is web-based, so no software has to be installed. It has a very nice graphical interface to manipulate PDF files to merge, rearrange and delete individual pages from multiple documents. The makers of this software also have a more advanced, but paid version of this software, but I think this free version is pretty handy too.

Friday, April 10, 2009

Civic Musical Road

I saw this Honda Civic ad today where a section of road has grooves cut into it. The result of this is as the car drives over it at 55 mph, a preset musical tone plays from the grooves. I thought that was pretty cool! There are also a whole bunch of other videos of youtube with handheld cameras of people going along this section of road. What I was able to learn from the web was that lots of residents who lived close to this section complained that it was being a disturbance, so the road was paved over. However, this was remade on another section of road farther away from homes, so if anyone is visiting Lancaster, CA, which is about 70 miles N of Los Angeles, you should try this out! Check this news article for some more info.
However, such musical roads are already present in Holland, Japan and South Korea. Here's the Wiki on this too. Here's hoping these roads are made in lot more places!

Thursday, April 9, 2009

Design the symbol for the Indian Rupee

The Ministry of Finance, Government of India has an open competition to design a symbol for the Indian Rupee. Surprisingly the Indian Rupee does not have a symbol, on the lines of $ for the Dollar. The details of the competition can be found here. The contest closes on April 15th, so all you budding designers need to work fast. The winner gets Rs. 250,000 and the final five shortlisted participants get Rs. 25,000 each. Not bad money I must say!

Airtel Calling Card

Although my fellow blogger at ramakrompers beat me to this, I still think this is worth posting. Airtel is offering calling to India at 1 cent/min, which is ridiculously cheap. I currently use Reliable Calling, and pay 3.5 cent/min. The relevant fine print for the Airtel deal:
  1. It costs the same to call either landlines or mobile phones.
  2. Pay $10 and get 600 minutes talk time, because they charge $3.99 as rental fees. It works out to a little more than 1 cent/min, but it is still much cheaper than any other calling card.
  3. The talk time expires in 30 days, so this would work mostly for people who call India every day and talk for hours at a stretch! Any unused credit at the end of 30 days is lost.
  4. It costs more to call toll-free. The cheaper way is to use the local access number. Unfortunately Minneapolis does not have a local access number.
Let me know if there is any other catch, the offer sounds too good to be true!

Wednesday, April 8, 2009

Engineering Stimulus Packages

The makers of AutoCAD and SolidWorks, have each announced an "Engineering Stimulus Package", where free copies of AutoCAD and SolidWorks can be downloaded and installed for a period of 90 days. They also provide free online training tools and the opportunity to become certified users of these software, which implies that the user has attained a certain level of expertise with the software. This is a good opportunity for most engineers to get certified and add on their resumes.
The links are provided here: