Thursday 23 January 2014

Google Chrome as a Media Player

Ever had the problem of using so many different programs simultaneously on your laptop that it doesn't like to respond? Well, that's a common feature for computer science and bioinformatics people. You may have  a browser with dozens of tabs, a music player, an R console, your favorite IDE (text editor), a word document maybe (if you are writing a manuscript/report), probably an excel sheet too.
A nifty feature of Google Chrome browser is that it can double up as a media player for you. I have not yet tested other browsers which may be able to do this but since I am a heavy chrome user, I will focus exclusively on that.

Chrome as a music player-
it ca easily play mp3 files ( i have tested this). Saves me from opening another application (music player) on an already burdened system. I think it might be able to play other formats too (wma, wav etc). If you test/have tested, please add those in comments section.

Chrome as a video player-
I was just wondering if chrome can also double up as my video player? Lo and behold, yes it can. I tried mp4 files downloaded from coursera, an online educational MOOC. It played the files easily. It could also run mkv files but failed in case of avi files. Not too great since most videos we (rather I) have, might be in avi format but pretty good for smartphone/ipod videos (mp4 format).

Try it and let me know !

Update:
1. I forgot to mention that although a good feature of chrome to play media files, it lacks the additional functionality which some of us may want like playing in loop, playing and making a playlist etc.
2. Chrome can also be used to view common image files (JPG, GIF etc).
3. You can use chrome for viewing your text/XML files.

Thursday 16 January 2014

Stages of a PhD progression

This is a fun take on how PhD progression occurs, mainly in Indian context (more specifically my grad institute), but I presume similarities may occur worldwide. This is in context of giving your ideas or discussing/arguing/contesting what the mentor suggests. (Take it with a pinch of salt).

Generally, it is 5 year duration here- mentors won't allow 4 years easily nor would you be able to complete the work in that time. Sometimes, even 6 or 7 years can pass by without you noticing.

So here are the Stages of the PhD progression-

1st year - You are naive and don't know what is good or not (scientific project wise). You work on all ideas of mentor even if they are trash. You don't know when to speak up.

2nd year- You have started to feel you should speak up against some of the (silly) ideas but don't know when. And whenever you do, you get trashed.

3rd year- Having had enough of side tracks, you get bold and start speaking at (against?) all (almost) ideas the boss suggests. Not knowing when to say what, you always argue (not good for getting a PhD in the long run).

4th year- You develop tact and know when to say what but its too late, the damage has been done last year. Now that you want a PhD, you try to play ball using the new found wisdom to just get it done. Adviser also realizes this and never fails to mention you need to do XYZ before you can graduate.

5th year- Both of you understand each other like husband and wife. No pretenses work. Conversations are less animated and most talking is done by body language only. Both are in "you don't kill me I won't kill you" mode. Mentor is sharp enough to know you can't take that risk anyway. Tries to get done a few things you were always avoiding but now can't refuse.

6th and 7th year- You are still here? Either you haven't seen it coming or(bad planning/tough project) or your mentor is plain greedy. Why hire a post doc when you can get the work done through a miserable student who will do anything to get a PhD. You think I don't have an idea what to do next, let's get anything done to graduate. You do almost everything you are asked of, and arguments are as much as in 1st year again.

Tab to Search in Google Chrome

Imagine you are a Google Chrome user (of course you are! What? Still using the browser that should not be named here? Please leave my blog immediately !).

You want to do a you tube search for your favorite music video, let's assume PSY gangnam style1.
So you open Google chrome and write youtube in the omnibox, press enter. Then you click on youtube site from results and search for PSY gangnam style there. Alternatively, you write Youtube PSY gangnam style or just PSY gangnam style in the omnibox, click on search results to goto the page. Sounds familiar?

Google Chrome has a unique feature to cut down on the number of clicks you make here. It has a feature (of course it's not new, not now at least) called Tab to Search which helps you search a specific site directly from the omnibox. All you need to do is write the site name (youtube), when the name appears in suggestions, press the tab button. If chrome recognizes its search API, you will see a "Search Youtube" sign. Replace the site name (i.e youtube) for linkedin, scholar, pubmed, uniprot, NCBI, yahoo or whatever site you want to search. Type your query and you directly reach youtube search results instead of having to goto google results followed by site and then searching there.

It will not recognize any site at first for Tab to search feature. Once you visit the site a few times, chrome will recognize its API and you can search it easily.

I thought this feature might be well known but have been recently surprised that I was wrong. Though, most computationally inclined people may know it already.

For in-depth details - visit chrome's page explaining this feature.


References-
1. Here is the link in case you still can't search it that way :- http://www.youtube.com/watch?v=CH1XGdu-hzQ

Thursday 2 January 2014

New Year Resolution

What is a New Year Resolution?  - the name says it all, resolutions taken in the new year and forgotten soon afterwards. Why can't we resolve at other times? 
Wikipedia says - New Year's resolution is a secular tradition, most common in the Western Hemisphere but also found in the Eastern Hemisphere, in which a person makes a promise to do an act of self-improvement or something slightly nice, such as opening doors for people beginning from New Year's Day.
The name implies that it's intricately connected to New Year and that's why I do not like this idea too much. For one, this implies that we all have new year resolutions in the first week of January every year. If people really followed their resolutions resolutely (pun intended), they may not need to resolve the same thing year after year. You might argue that we do change our new year resolutions, but in such cases how many of those do you really fulfill. Well that's my next point of contention. Do not make a resolution for the sake of having one. Do act on those. Most people I know keep waiting for 1st January to embark upon their new mission which sounds ridiculous to me.

Few of my thoughts on this I shared on my social networks -
  • If u need to get something done in the first 10-15 days of January, make it your new year resolution. That's how long the resolutions generally last !
  • Stand up and raise your hands (both) if u are waiting for new year to do what u must. Now keep standing like that !
  • I resolve not to resolve !
Well I am not alone in thinking like this, few days later, Chess Grand master Garry Kasparov also echoed something similar in a series of tweets -



I am not against a New Year's Resolution, but only advocating that try to follow good habits irrespective of day/date other such constraints as far as possible. On that note, I wish you a very Happy New Year and may your resolutions be true and fruitful for you ! There's a saying in Hindi - "Jab jaago tabhi savera", which roughly translates to - Morning starts whenever you wake up !

Share your views in the comments sections.