### Create Virtual Host on Mac OSX

Whenever you are developing different websites or testing same website with different versions, having virtual hosts become useful. Here’s the simple procedure how you can create such hosts on your local system.

### How to import MySQL Database from dump file

Here’s very simple way to import MySQL database from any MySQL dump file with few easy commands.

### Ultimate HTML5 Cheatsheet

All new useful HTML tags and attributes in one simple infographic.

### Classifying LaTeX symbols

LaTeX is powerful language for typesetting. It’s very flexible, too. But many times, the writer is stuck with certain symbols, which he/she doesn’t know how to typeset in LaTeX. There’s a wonderful long list of symbols available as PDF file (you can download it from the sidebar of this blog), which is mostly helpful in finding the required symbols. You must have learnt about it in my earlier post. The symbols in the PDF file are sorted after packages.

### Zero padding for outputs in IDL

The coordinates of any objects in astronomy is given in right ascension and declination, sort of latitude and longitude for the sky. For example, for Altair, one of the brightest star in the sky, it has RA of [19 50 46.99] and DEC of [+08 52 05.95]. Only declination needs plus or minus sign, like latitude on Earth’s surface. So I save these information in IDL in variable such as, RA1, RA2, RA3, DEC1, DEC2, DEC3. Of course, I save last part of RA and DEC in floating number, whereas other variable are of integer. When I want to print it with following command:

### Astronomical symbols in LaTeX

I was looking for Astronomical symbols in LaTeX, esp. for the Sun. And I thought probably there’s only one package available for it. As it seems there are quite a few many of them. I found them in the huge LaTeX symbol list available as PDF online. Here’s the snapshot of the astronomical symbol page:

### Continuous table in LaTeX

I have been away for long time, since I was busy with my research and presently I’m writing my thesis to the end. Well, I’m working on large number of stellar objects and, of course, I have to provide basic information about them in tabular form at the end of the thesis. So I needed not a simple tabular form usually used in LaTeX, but I have to use another package to make it seamless over many pages. And I think longtable package is perfect for it. Here I tell you how to do it.

There are many IDL routines available for reading FITS file, a standard for astronomical data, but I have never been happy with their use for pretty simple thing of displaying the spectrum of the object. fits_read gives you the header and flux, but never the wavelength scale. readfits can also be useful, but it does so many other things, that I decided to write reading routine on my own.