Showing posts from 2013

Bioruby...presentation in RubyConf Miami 2013

"Bioruby"...understanding the intricacies of 'Life' using Ruby Learn about the genes, which controls everything you do and find out how you can ease the task of your similarity with a salamander using Bioruby! Bioruby is great Bioinformatics tool which helps to process biological data and analyze it. 5 years after ruby programming language came into vogue(1995), bioruby came into existence in 2000, both developed in Japan. BioRuby project provides an integrated environment in bioinformatics for the Ruby language. This project is supported by University of Tokyo (Human Genome Center), Kyoto University (Bioinformatics Center) and the Open Bio Foundation.Welcome to the ruby in the living world, integrating ruby with the Bioinformatics and have fun. On one hand we have the Bioinformatics, the large database of the huge genome sequences, the search algorithms to search the gene similarity between different organisms, gene-mutations using the popular search tool Blast, Fa…

Different layouts for different android phones and tablets

If you are developing a mobile app which for  both phones and tablets, sometimes you may be confused by the way the html pages with the fonts, images are rendered. Though the number of pixels in the higher end android phones shows 768pixels (or webkit-device-pixel-ratio =2) and for an android tablet 600pixels, so you must be thinking I should be using larger images and fonts for the 768 pixels rather than the tablet.


Here lies the concept of webkit-device-pixel-ratio.
As per this documentation,  A screen with low density has fewer available pixels per inch, whereas a screen with high density has more pixels per inch

So, even if the number of pixels in Nexus4 is 768, but the web-device-pixel-ratio is 2, hence for a lower end android device(320pixel) and a higher end android device with device-pixel-ratio=2 should use same css files.

In order to render different css/html pages for an android app, you can check whether the app is opened in Tablet or phone. Based on that render the html…

Responsive deign for single app in mobiles, tabs, desktops

If you like to have your app run in different devices viz. desktop, mobile, tablets without rewriting the app there are various ways to do so. There is nothing like wrong or right, each app has it's own specification and requirement to adopt.

Following are some of the ways, though in mobile platforms like android/iOS different methods can also be adopted. 
Twitter bootstrap is a nice framework for doing so

Second option, If you don't want framework, can try with media queries.attaching a sample index,html page, where 3 diff css files, which are called based on the device-pixel-ratio / max-device-width of the device....

<!DOCTYPE html>
<meta http-equiv=\"Content-type\" content=\"text/html\" charset=\"utf-8\">
<meta name=\"viewport\" content=\"width=device-width, target-densitydpi=device-dpi,
initial-scale=1.0, minimum-scale=1.0, maximum-s…

How to install a apk file in android emulator

Download the android client Save it to a local directory. Install the Android SDK : Open Android/sdk directory
.Run the SDK Manager.exe ·From Extras dir at the bottom of the SDK Manager, Download Intel x86 accelerator (HAXM) ·The IntelHaxm.exe file will come inside such a location ·Run the .exe file to install it.

Install Android API
From the upper Panel, click on Tool à Manage AVDs..

Create a AVD (android virtual device), by clicking on New Button, on the right

Once AVD is created, it should come in the list of AVD Virtual Devices

    Start the AVD, from the right panel 1      1.Open the platform-tools dir within Android dir, from the command prompt ·Run the command:                 adb devices ·It should list the started emulator.

RubyConf India 2013 BioRuby... Ruby in the Living World by Doel Sengupta...

Bioruby Presentation

Last weekend, me and my friend Manu presented "Bioruby..Ruby in the Living World" in ruby conference India 2013, in Pune.

Bioruby is great Bioinformatics tool which helps to process biological data and analyze it. One of the greatest contributions from Bioruby is Biogems, which like any other rubygems helps to perform modular approaches  in order to perform specific functionality. One such gem is bio-ucsc-api gem, which helps to fetch record from UCSC DB and the best part is the gem has been implemented using the Actice Record Framework thereby easing the record fetch, instead of complex sql queries. We explained the basic concepts of Gene, DNA. RNA, Amino-acids, Human Genome Project and how these huge data are stored and analyzed by the famous Bioinformatics tools like BLAST, Fasta and how Bioruby interacts with the different biological databases like Genbank, Swissprot etc.

Here are the slides for the Presentation:


Blackberry Webworks phonegap build issue with Windows(64bit)

In order to build a BB build using phonegap, provides a great guide. There are some issues which I faced and wanted to share the fixes, in cases you face the same :)

'ant' is not a recognized command After Apache Ant installation remember to add the ANT in your system's path variables.
There should not be any place in between the ; and the starting of the path.
Check 'ant -version' in the command prompt.
Buildfile: build.xml does not exist!
Build failedType in the command prompt 'ant -version'. There is no problem with ant installation.
bbwp.exe [ERROR] Failed to run launch java.exe.Downgrade the java from 6u-45/java7 to 6u-29. Add the newly installed java in environment variable's path. Open a new command prompt and check java -version. It should point to 32bit java version installed within the Program Files(x86).The 64bit java and java version (6u45/java7) causes this problem in a Windows(64bit) machine. For details refer here.Not able to …

Culinary experiments

My Culinary experiments with various dishes, like cantonese style chicken noodles, biriyani, peas-kachori. Look out for this section for some more, coming soon.

Adding some more delectable recipes to enchant your taste buds!