Serving HTTP from your Linux terminal

There is a very useful python module called SimpleHTTPServer that lets you create a webserver instantly. Say you have a huge file (50-60gb) and you want to send it to someone across the campus, then you have a use for SimpleHTTPserver.

First get to know the hostname of your server, just type hostname and press enter, it will return yourhostname

Then type,

python -m SimpleHTTPServer

That’s it! you can now access all your files in that directory through browser using this url:

http://yourhostname:8000/

It will stay as long as you let that command run (to kill it just type Ctrl + C).

Mapping network drive in Windows 8 (and 7)

I have connections to so many servers and it is painful to transfer files from those servers to local drive to edit/modify them. So I normally map them to my computer so that I can directly open them without saving them first. But yesterday while I was helping my colleague to map her drives to her computer we noticed that we could map only one drive from a server. When attempted to map another drive it gave an error: Image

The network folder specified is currently mapped using a different user name and password. To connect using different username and password, first disconnect any existing mappings to this network share”

It was clearly an erroneous error message because she had never connected that drive before. Finally, we figured out that it was a bug that didn’t let us map. The solution was easy, if you have signed in using different credentials for the server, you don’t have to sign in every time you map another drive from the same server. It was as simple as that!

I hope if any of you had the same problem, this might help!

Blog!

This is my first blog!

My plan is to update this blog about everything that I find interesting. Since I work as bioinformatician I mostly update this blog about my experiences with working with some projects, some tips and tricks or even some programs and scripts! If you are a biologist working with NGS data, you might actually like it 🙂

I might also update things like:

  1. Highlights of research papers that I read.
  2. Experience using some programs/software packages related to bioinformatics
  3. Anything of scientific interest
  4. Personal life stories.

I will soon update my blog!

Thanks!