Pages

Saturday, December 15, 2012

SpringOne India 2012

I attended the Spring One conference in Hyderabad yesterday. There were lots of good speakers like @chanezon , @jeremyg484, @jencompgeek who briefed about the new Paas solution CloudFoundry.

2012-12-13 09.13.52

 

I signed up and could deploy my first app within minutes in clound using their command line tool vmc.2012-12-14 22.30.49

Earlier I had evaluated some other Paas solutions but some of them were either costly  or proprietary so one could not deploy generic war files.

Other PaaS solutions



I am also looking forward to Oracle Java Cloud.

 

 

Geminid Meteor Shower 2012

I  did not capture the streaks of shower but this was one of the darkest sky I had ever seen at Pocharam Lake.



DSC06555


Following is the annotated version of the above photo created using Astrometry.net


annotated


Check out my some more photos taken by Joy which includes one with a meteor streak as well.

Monday, December 10, 2012

Spotted ISS

Few months back I registered at NASA's sport the station website which sends me an email reminder every time ISS (International Space Station) is visible from my city and visible through naked eye. Though I have seen it earlier accidentally, I have always missed the timings send through the reminder. Either I was too lazy to wake up early or late from work in the evening. Yesterday I got the following email reminder.
SpotTheStation! Time: Sun Dec 09 6:21 PM, Visible: 4 min, Max Height: 40 degrees, Appears: W, Disappears: NNE

It was not very dark at this time but it rose from the western as predicted and was bit reddish as compared to the other bright stars visible at that time. It was probably as bright as Venus.



I was not well equipped so just managed to click this quickly moving object at 16X zoom and got the following image. One can notice the wings in it.


Probably next time I will carry a tripod and capture a trail. Even my binocular should be enough to reveal the wings.

Monday, December 3, 2012

Moon through telescope

Last time I posted about the video of Jupiter I took using my telescope and a webcam. On 28th November there was a partial eclipse of the Moon but I was lucky enough to get a glimpse of it because of my geographic location. However because it was a full moon , it was very bright and I manage to capture some videos and tried to chop and stack the frames using registax.



I did some quick and dirty processing to get this image out of the video but I promise, it will get better when I learn more about registax

Wednesday, November 28, 2012

Folding Cloths using FlipFold

Remember Dr. Sheldon Cooper from The Big Bang Theory  folding his T- Shirts perfectly using a plastic cloth folder ?


I got mine :) and tried first on my The Big Bang Theory Tee shirt of mine :) Its a really handy tool and time saver :)


You could buy one in FlipFold.com or Amazon.

Monday, November 19, 2012

Guest post about Java Links Of The Week

Last week my colleague was at Devoxx so I volunteered to write a guest post for his blog and fxexperience.com

Following are the links

JavaFX links of the week, November 12

Java desktop links of the week, November 19

I would like to thank him for the opportunity.

Jupiter Video

Last year during Leonid Meteor shower we had gone out to a place bit away from the city lights and spotted some of the objects in the sky. This year I stayed back at my home and waited till the dawn to watch some meteors. The numbers were very disappointing because of the city light's but I managed to capture Jupiter up high near the zenith. It was very bright. Following is the video I shot using my 1.3 mp webcam connected to the 90 mm table top telescope.


I could only capture 18 second clip the telescope was alt-Azimuth mounted. Probably next time I would use my 5 inch one with EQ mount using which I can manually track it for longer time tough I don't have motor tracker yet.

I also tried to use Registax for the first time to chop the frames of the video and stack them. After some wavelet adjustment I managed to get the following sharper image.



I could see the great red spot just below the equilateral aria. May be better image processing would lead to sharper image.

I probably over did a bit during wavelet processing. This was first time I used this software. Thanks Mike Rector and the YouTube video for telling me how to use this software. Now I am dying to capture Saturn with this. Unfortunately most of the planets are now almost in a single direction near the sun which makes it very difficult to see and capture. Here is another picture of sky including Orion, Jupiter , Sirius , Aldebran and M45

Friday, November 9, 2012

Revival of Rabindra Sangeet

Ever since childhood I have been of Rabindra Sangeet. Recently I came across couple of Bangla movie songs based on vary famous songs written by Nobel Laureate Rabindranath Tagore. One can say it is kind of revival of traditional Rabindra Sangeet. Both are sang by famous Bengali singer Somlata

.




Also not to forget the famous video Where the Hell is Matt? 2008, in which the music was given by Garry Schyman based on lyrics of Rabindra Sangeet.

Tuesday, November 6, 2012

Google Devfest 2012 at Hyderabad

Featured post in Google Developer Blog

I got an invitation to speak at Google Devfest 2012 at Hyderabad last Saturday. I was supposed to speak on HTML5. Google is a leading company who promote HTML5 and implement features in Chrome much ahead of time before specifications are freezes.

Photo Credit : Abhinav Saxena.

I created some html slides with the help of html5rocks.com slides using impress.js. Advantage of this over conventional powerpoint/open office was that I could embed the demos inline as these slides were also running on HTML5 compatible browser. Though Mozilla Firefox is my personal favorite , I used chrome to display the slides because a. I was going to a Google community event b. APIs like speech recognition works only in chrome.

Some of the demo did not run in chrome when the html page was run locally with file:// protocol in the URL as chrome though this is not a valid domain. For geolocation and webworker demos I had to host the html slides in a local webserver. The simplest way to start a webserver in windows I found was to use Python's built in http server. I just typed the following
python -m http.server

And that's it. It started a html server at port 8000. I also hosted the slides in dropbox and my own domain for backup and to allow the audience to use it later.

I had got only 30 minutes to speak but again asked to reduce to 15 to 20 minutes as event was running late and there was a hard stop time from the logistics prospective. I have never seen any Indian event running on time even if it is organized by a big corporation. Usually the time is compensated by trimming the break time which is sometimes very important in events like this from the developer's networking perspective. I have seen some of the events like JavaOne Hyderabad had dedicated hangout time which was very productive.

Anyway while I understand the devfest organizer had no choice but to cut short the last session which was unfortunately mine . However I managed to start the session early at the scheduled time without waiting much for the audience to come back from the tea session. I also ran through the slides quite fast to make few minutes available for the vote of thanks :)

I am really thankful to Bharat (Community manager of Google Developer group Hyderabad ), Bhumika Kaushik and Uttam Tripathy from Google for the opportunity and fix my slot according to my convenience.

I wish I could attend the other sessions in the morning and afternoon but I was caught up with some work. All other speakers were very young (much younger than even me :) ) and talented in their areas. I also met a lot of students from the colleges around Hyderabad whom I had interacted before during IEEE events.

I received a cute Android thumb drive and a nice T-shirt. Looking forward to more activities from the local GDG.



Related links

Saturday, November 3, 2012

Creating simple HTML5 slide presentation with impress.js

With the recent growth of HTML5 adaption, I have seen many people using HTML slides instead of traditional Power Point/Open Office presentation.

You can download the impress.js and save in the "js" directory.

[sourcecode language="html"]
<html lang="en">
<head>
<title>Impress Demo</title>
</head>
<body>
<div id="impress">
<div class="step slide" id="start">
<p style='width:1000px;font-size:80px;
text-align:center'>Creating Stunning Visualizations</p>
<p>Impress.js </p>
</div>

<div class="step slide" id="slide2" data-x="-1200" data-y="0">
<p style='width:1000px;font-size:80px;'>
First Slide Moves From Left To Right</p>
<p>Impress.js </p>
</div>
</div>
<script type="text/javascript" src="js/impress.js"></script>
<script type="text/javascript">impress().init();</script>
</body>
</html>
[/sourcecode]

For more sophisticated slides can refer the code of this page.

Thursday, November 1, 2012

Interactive map of movements of trains running in India.

One more master piece by traininquiry.com. Rail Radar is a interactive Google Maps based application which shows all the train moments through out the huge Indian railway network. The density of train is so much that at some important junctions one really have to zoom in to see individual train information.
http://railradar.trainenquiry.com/

Live running status of Indian Trains in Mobile

Previously I had posted about spotting your train on Google maps using Indianrailinfo.com and later from the official source. I was recently traveling and used another mobile website by National Train Enquiry System by Indian Railways. I used the  following mobile site in my Android mobile browser through out the journey and found that it was getting updated very frequently, some times after couple of minutes after leaving a station , which is the least lag I have ever seen in any Indian railway related site. Moreover you don't have to really wait till an official  stoppage comes to know how much late the train is running. It updates the passing by the stations ( even if it is a small one) also which comes very frequent.
http://railyatri.in/l

Thursday, October 18, 2012

GVD 2012 - Bird Watching Awareness

Like last year I got involved in a GVD (Oracle Global Volunteer Days) project this time . This project was about taking out children to one of the largest park ( Sanjeevaiah Park ) in Hyderabad and make them aware of common Indian birds and facts about them. It was led by some of my colleges who are very passionate about birds and their conservation. The preparation had stared weeks before the event.  One of the remarkable achievement during the preparation was the beautiful booklet [ PDF ] which contains most of the common Indian birds with beautiful pictures. Sayantan Chatterjee did an excellent job designing the booklet and the professional quality photographs were contributed by some of our colleagues who are very good at photography. You have to look at those photos to appreciate.
Photobucket

Around 20 children from the NGO called "Desire society" participated in this event. They were divided into groups and each group was led by somebody who has knowledge about the birds and how to spot them. Every children was give a booklet to find more about the birds they are spotting. Each groups also were accompanied by other volunteers. We spotted a lot of birds throughout the park and photographed them as well. Afterwards all the groups shared their knowledge about what they saw and volunteers showed the photos and explained about the birds they just saw. Kids were asked to draw (we provided the drawing boxes to all) the birds they like and later they were also served breakfast. Kids were also given a bird feeder and demonstrated how to use it.

Finally kids were dropped back to the NGO and some of the volunteers stayed back for a bird awareness session by Sreya who is extremely passionate about birds and very inspiring. She also spoke about the vultures whose numbers are getting lower and lower day by day and without them the natural cycle is disturbed.More at www.save-vultures.org
neilghosh's GVD 2012 Bird watching awareness album on Photobucket

Features Photo

Saturday, October 13, 2012

JUG Hyderabad talk by William Louth

Last month JUG Hyderabad had a session by William Louth. He introduced a really new paradigm of optimizing JVM performance in his session with title "JVM Performance - Past, Present and Predicted". This session was hosted in Oracle India's Hyderabad development center. Not to forget that the snacks were sponsored by JUG leader Ravi Ravi Buddharaju and tea by me. Unfortunately like last time most of the people who RSVP'ed Yes were not professional enough let us know that they weren't coming. As a result some of the logistics effort went for a toss. Meetup.com has a option to mark "no shows" which ultimately effects the credibility of the person's RSVP, which can be used to decided if they should be allowed in the events where they are in wait list. Anyway I am thankful to all the attendees who too their time out and reached the venue in time. Looking forward to a growing JUG in Hyderabad. Last but not the least thanks a lot to William who came all the way to India and spoke in thsi event. Somehow he reminds me Brendon McCullum :)
JUG Hyderabad

Saturday, October 6, 2012

Handling Keyboard Sortcuts in JavaFx

A lot of times you need to to assign some functionality to some keyboard shortcut like F5 or Ctrl+R  in your application. It can be done as follows

[java]
scene.setOnKeyPressed(new EventHandler&lt;KeyEvent&gt;() {
public void handle(final KeyEvent keyEvent) {
if (keyEvent.getCode() == KeyCode.F5) {
System.out.println("F5 pressed");
//Stop letting it do anything else
keyEvent.consume();
}
}
});
[/java]

JavaFx also provides KeyCodeCombination API for handling multiple key events.

[java]
final KeyCombination keyComb1 = new KeyCodeCombination(KeyCode.R,
KeyCombination.CONTROL_DOWN);
scene.addEventHandler(KeyEvent.KEY_RELEASED, new EventHandler<KeyEvent>() {
@Override
public void handle(KeyEvent event) {
if (keyComb1.match(event)) {
System.out.println("Ctrl+R pressed");

}
}
});
[/java]

Monday, September 24, 2012

IEEE Talk on HTML5 at VBIT, Hyderabad

Last Saturday I got an opportunity to speak on HTML5 at Vignana Bharathi Institute of  Technology at Hyderabad. They have an active IEEE Student branch in the college and keep organizing tech events like this.

Photobucket

I borrowed slides from html5rocks.com where they have a lot of interactive slides with inline demos and keep updating very frequently with news features and demos.

My version of the slides were a subset of the original ones and modified on top of the ones used in SREC early this year.


It was very good to see students paid a lot of attention during the talks and had a lot of interest in html5 and web in general. It was very easy to communicate as they has a very good understanding of fundamentals of HTML already. Photos are also posted in the Facebook album of the student branch.

Event Report

Monday, September 17, 2012

IEEE CS Colloquium at JITS, Warangal

Last Sunday me and few of my colleagues from Oracle visited Warangal , Andhra Pradesh to deliver talked on IEEE CS Colloquium at JITS, Warangal. I went to Jayamukhi Institute of Technological Sciences to deliver talk on "Introduction to JavaFx and HTML5" . Thanks to my colleague Steve who allowed me to borrow all his slides for this session. The slide credits also goes to Mike and Kevin I inserted some of my slides to keep the session introductory level. This event was actually organized on the occasion of 45th engineers day in India.





Some of the photos are here


Tuesday, September 11, 2012

Aerial view of cricket stadiums in India

I was comparing size of cricket stadiums in Google maps satellite view and thought of putting them in one place with a consistent zoom level. Here are few of my favorites

Brarabati Stadium, Cuttack, The home ground



This has been the center of Orissa Cricket Association where my cousins used play for state.

Rajiv Gandhi Stadium, Hyderabad, Nearest Ground



This is the city where I live now, have watch many IPL matches here , tough it has been a bad ground for home IPL team.

Chepauk, Chennai

View Larger Map

Reminds me Matt Hayden and 2001 AUS tour of India

Chinnaswami, Bangalore


View Larger Map

Home for Dravid, Srinath, Prasad, Kumble. Reminds me 1996 world cup quarter final when India trashed Pakisthan.

Feroz Shah Kotla, Delhi


View Larger Map

Remind me Kumble's 10 wickets in an innings.

Mohali, Chandigarh



Unconventional low lights , 18 in numbers due to proximity with airport

Wankhade, Mumbai


View Larger Map

India won world cup here in 2011

Eden Gardens,  Kolkata. 


View Larger Map

Biggest ground in India , with capacity more than 1.2 Lakhs , more than double of any other ground in India.

I have not included many other test ground like Ahmadabad, Kanpur etc. to void the post to be very lengthy.

Saturday, August 25, 2012

g|days Hyderabad 2012

Last year Google hosted Dev Fest and this year it was g|Days. Here are some links and notes

Photobucket

Update on 30 AUG 2012 :

All presentation at g|India Hyderabad

Tuesday, August 21, 2012

Modularizing XSLT code (extract file name from path)

Few days back I came across a requirement where I had to determine the name of a file given the absolute path. Had it been java or any other popular programming language I could just tokenize the path with the directory separator character ("/" or "") and taken the last token. However doing it in XSLT 1.0 was bit tricky. A recursive function (templates in case of XSLT 1.0 ) call was required."substring-after" function gives the part of the string after the first occurrence of a given delimiter.

[sourcecode language="xml"]
<xsl:template name="fileName">
<xsl:param name="path" />
<xsl:choose>
<xsl:when test="contains($path,'')">
<xsl:call-template name="fileName">
<xsl:with-param name="path" select="substring-after($path,'')" />
</xsl:call-template>
</xsl:when>
<xsl:when test="contains($path,'/')">
<xsl:call-template name="fileName">
<xsl:with-param name="path" select="substring-after($path,'/')" />
</xsl:call-template>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="$path" />
</xsl:otherwise>
</xsl:choose>
</xsl:template>

[/sourcecode]



And to call above code , we have to write the following fragment
[sourcecode language="xml"]
<xsl:call-template name="fileName">
<xsl:with-param name="path" select="D:codetest.txt"/>
</xsl:call-template>
[/sourcecode]

If XMLT 2.0 is available the above job is much easier using base-uri()

Monday, August 6, 2012

Curiousity landing on Mars Live at NASA TV and Live Hangout


Full TV Schedule for the landing
Tomorrow 10.30 AM IST, Curiosity is scheduled to land on Mars after the famous 7 minutes of terror. Looking forward to Pamela Gay and Fraser Cain hosting the Google+ hangout which will start at 8.30 AM IST. I hope everything goes right, not just because we will be able to do so many experiments in the SUV sized lab sent to mars but also because successful landing will increase the success ratio of mars landing.

You can also simulate the while landing process in 3D using NASA Solar System Eyes.

Sunday, August 5, 2012

Visit to Dhyanahita Schools

Yesterday I visited Prof Ghanta Subbarao's Dhyanahita Schools. Apart of excellent teaching facility I saw so many Vegetable and fruit plants in the campus that it could feed all the children and staffs. There were huge solar panels providing power to the street lights and guest houses.  Construction material were manufactured in the campus itself. There was a cowshed with cows and  bio gas plant as well.

 

Sunday, July 29, 2012

Rooted my Android

After almost one and half  years of buying my second android phone (Samsung Galaxy ACE) I finally decided to root my phone which I always wanted to do. A shell with root access, what else do you want in a Linux based system ? One of the reason which provoked me to do so yesterday itself was that the power button stopped working suddenly. I suspected that it might have got some rain water inside  but later decided to try the factory reset  option once before taking it to service center.  The chances were low because I thought I was trying to solve a hardware problem by just resetting the software.

However it worked ! I don't know why. In this process I lost all my call logs and list of apps installed.I backed up all my SMS in Gmail tough.  I was expecting the Google Play to remember the list but it did not. I remember said that all the apps and WI-FI password etc will be backed up when I signed in with a Google account last time. Moreover lately my GPS seemed to be working with a lot of delay. Especially while running the GPS used to get fix after I run half a kilometer and I had to manually enter the points in runkeeper. After this reset the GPS also seems to be working quicker. I am yet to test it while running. I remember GPS used to take only few seconds to get fix , even inside the car/train when I bought the phone last year.
Photobucket

  1. I downloaded the  DDKQ8 Gingerbread 2.3.6 Rooting Package zip file as my phone was already running Android 2.3 (it was shipped with 2.2 but got the upgrade few months back ).

  2. Transferred the file to the SD card , which was also newly formatted after factory reset.

  3. Checked the "Allow Installation of non-market applications" options in Settings-> Application Settings.

  4. Enabled the "Debug Mode when USB is connected" in Development sub-menu.

  5. Re-started the phone in recovery mode. Usually the recovery mode should come after pressing  and holding Volume Up Key and OK button while powering on. But of my model it did not work.I found that  you have to hold Home + Power till and device starts and shows Samsung symbol then, let go. Holding it till Samsung appears was important.

  6. After booting in recovery mode I selected the "Install from SD card" option and chose the zip file I downloaded in step 1.

  7. Restarted the phone. The phone booted normally but I was not sure if it is rooted or not

  8. I downloaded the Root Checker app to test and it showed me that phone has been rooted.


After successful rooting I want to get my VPN working in my phone and install custom ROMs like CyanogenMod and Ubuntu . I will probably try this next weekend when I don't need the phone much.

Wednesday, July 25, 2012

Fishing at Ameenpur Lake

After childhood adventures of fishing in the family pond with cousins using home grown sticks and wheat flour paste as bait, this one was first opportunity to do some fun fishing. This was first time in this season as well, so expectation was not much high but was pretty excited about it. Thanks to Hyderabad Adventure and Trekker's Club, for organizing a beginners fishing meetup.





Photo Courtesy : Ravi K  || Fish Courtesy : Monika

Key lessons were

  • Best place to catch earth worms is at the root of the small plats on a soft soil.

  • Keep the earth worms alive by putting some wet soil in the plastic you are collecting the worms in and letting some air come inside the packet.

  • Take thread of length little more than 1.5 times of the length of the stick.

  • Tie one end of the thread at the narrower end of the stick, preferably near the first joint  to avoid slipping of the thread.

  • Take the other end of the thread , leave 1 feet and tie one end of the sol stick.

  • Take the extreme end of the thread (we had left 1 feet) and tie the metallic hook there.

  •  Insert worms longitudinally along with the curvature of the hook and keep the worm compressed. You might need to insert more than one worm to cover the whole length of the hook. Ideally no metallic part of the hook (specially the pointed end) should not be visible and whole length should be covered with worm body.

  • Now swing the stick from your back top to the water (may be right side-ish if not exactly from top)

  • IMPORTANT ! - Keep distance from others and never stand immediately next to the guy who has the stick with hook because he would swing the stick from the right-ish side according to the above guideline.

  • You can use small thermocol block if sol stick is not available. In my case one of the local professional fisherman tied the thread at the both end of the sole and it was always lying horizontal to the water.

  • Sit down silently next to the water when the hook is in the water so that your shadow and noise  do not alert the fishes  .

  • Once the sol start moving up and down pull out the stick immediately with a swing making a loop on the top right side. Make sure nobody is near/behind you before pulling out because the hooks are so sharp that it can only be removed surgically from the body in case of any accident.

  • Finally the most important point is fishing needs a lot of patience, so keep trying. Its fun even if you don't catch one.


At the end of the session few people really caught some small fishes. Hoping for some bigger ones in the next event.



Photo Courtesy : Ravi K

Sunday, July 22, 2012

IEEE STEP at Hyderabad 2012

In April this year we organized the IEEE STEP program at Warangal.on behalf of GOLD (Graduates Of Last Decade ) Affinity group of IEEE Hyderebad section.

Since this program is for the graduating students and most of the engineering  colleges in the state of Andhra Pradesh is in the capital city Hyderabad, we wanted to organize the season 2 of the STEP (Students Transition and Elevation Program ) in Hyderabad and make it big. IEEE HQ and the local section has been supporting us enough financially to organize both of them.

Photobucket

The planning started couple of months back with long trailing email chains among the GOLD volunteers and students volunteers. Volunteers like Arif and Raheem came forward to offer their university seminar hall and other facilities in the campus. MJCET (Muffakham Jah College of Engineering and Technology) is situated in the heart of the city and turned out to be the most convenient location for students around the city. Also the seminar hall was very well equipped with audio/video facility.

From the inception, GOLD vice chair Preeti took the lead and co-ordinated with other volunteers to get all the arrangements done.  We approached speakers who were from the top companies and they agreed to spend their Saturday among graduating students motivating them and showing the way how to make a transition to professional life.

Weeks before the event we created the following flyer and also spread the word using our Facebook Page

On the day of event , the number of audience was very encouraging. Section chair Dr.Atul Negi addressed the audience and speakers started giving their talks. Ashish Daniel talked about how to do the home work before appearing in the interview and how important goal setting is success. Kavita Lal shared her experience how professional and college life style is different and what is expected from an employee by an organization. Lavanya Menon shared a very inspiring presentation with so many practical points which were essential to balance work and life. I would try to share last 4 slides of her and play over and over to inspire and get inspired. All her slides has some interesting note with examples.  Finally Harish Krishan talked about what it takes to do what someone really like doing and eventually to be an entrepreneur . All the talks were super quality and every one had something unique to offer. It may be mere luck that we got all the such fine speakers together in an event. Section chair presented mementos to the speakers and wrapped up the session with final remark.

I really want to thank all the speakers, volunteers and audience for executing the event successfully inspite of rain and  traffic.


http://fb.me/goldhyd

More on this event details can be found in IEEE Hyderabad Section's website.

Monday, July 16, 2012

Run JavaFx without any prerequisite runtime installation

JavaFx 2.2 recently added the native packaging option during build and can be deployed as executable files  anywhere. This opens up the whole new way how java developer can ship their program to the computers where the latest JRE is not installed.

One of my friend was trying to come up with the Windows GUI program which could run directly from the CD or USB drive in most of the computers. In Indian institutions like schools , the computers are mostly out dated and only has IE 6 browser. HTML5 was not a good idea because it needs the latest browser and it can expose most of  the code and resources on a commercial product. .NET licence was costly considering the small budget project and it was very difficult to find programmers with Delphi and Python (tinka) skills.

Java being so popular language, its very easy to code the GUI quickly, especially in JavaFx. JavaFx have mp3 audio file playing support. Now the big problem was any JavaFx program (jar) needs JavaFx runtime to be installed. This installation could not be expected to be done by school students or people who were new to computers without help of a system administrator. People might not have the correct version of runtime installed and may run into various compatibility issues.

Native packaging allows JavaFx programs to be shipped as exe wrapper file and its own runtime JRE directory.

Since JDK 7 Update 6 , JDK and JavaFx has been merged and there is no separate runtime directories.

One can get get the latest JDK 7u6 beta build(build 14 or later is recommended) On Windows/Mac/Linux it comes with JavaFX 2.2 SDK as part of JDK installation. the "Getting started with native bundles" section of  Java Deployment blog can be referred for the detailed step.

JafaFx_Native
For Netbeans JavaFx project , NetBeans 7.2 is required to support the latest JavaFx 2.2.

  1. Create a new JavaFx project and do you coding.

  2. Locate the project folder (mouse over the project node in the navigation pane ) and open the build.xml

  3. Add nativeBundles="all" attribute in the deploy tag

  4. Right click on the project tag and select "clean and build"

  5. Go back to the project folder and you can find the "bundles" folder in the usual "dist" folder.

  6. Inside the "bundles" folder there will be another folder with the project name and the executable will be inside it.

  7. Now you can double click and run the program.

  8. The "app" directory would contain the jar distribution archive.

  9. The folder called "runtime" contains the whole JRE (that includes the JavaFx runtime in the latest version)

  10. The whole bundle is portable to most of the computers, I have tested it in a computer where no Java is installed.


It is always recommended to have Java installed in all the computers for better performance and running other application but native packaging is very useful for light weight programs and a greater outreach.


More Help



Alternatively once can convert the jar files to windows executable and bundle with its own JRE with Launch4J. It worked fine for JavaSwing programs but got JavaFx runtime error in some computers.

Sunday, July 15, 2012

Playing mp3 audio with JavaFx

Java had audio support since ages but there was no direct way play mp3 files in java.

Thanks to JavaFx , you can now directly play mp3 files from your program. In this way you can avoid storing .wave audio files which are huge in size.

In your JavaFx project you need to put the following lines of code

import java.io.File;
import javafx.scene.media.Media;
import javafx.scene.media.MediaPlayer;
String source = new File("audio.mp3").toURI().toString();
Media media = null;
media = new Media(source);
MediaPlayer mediaPlayer = new MediaPlayer(media);
mediaPlayer.play();

Note that this will play audio file from the current working directory. Usually the same directory where the above code file exists or the final executable jar directory. You can confirm the directory using the following code.
System.out.println(new File(".").getCanonicalPath());

There are many other ways to add mp3 capability to Java but I felt using JavaFx is the easiest way specially because of the fact that since the JDK 7 update 6 contains JavaFx 2.2 .

Wednesday, July 11, 2012

Video : Astronomy at Pecha Kucha Night Hyderabad Volume 9

Last week I participated at Pecha Kucha Night Volume 9 as a speaker. Finally the video is out. Thanks to Nikhil for some of the photos which made the slides very impressive. Also many thanks to Vishal, Sharath and Karthik and HandsMedia team for wonderful execution and editing of this video.



You can watch the rest of the videos in that event in the Pechca Kucha Hyderabad's YouTube Channel.

Update 12/02/2013:

The presentation has been featured in pechakucha HQ website.

http://www.pechakucha.org/presentations/for-the-love-of-astronomy

Tuesday, July 10, 2012

After Life

I don't believe in after life, I think human body is a biological machine which stops functioning after death , that's it.

But there are lives around us who continue.  One of my colleague shared a blog on a real experience how disastrous can life be after an unexpected death of a family member. The author mentions few lessons she learned after loosing her husband and all information with him.

My friend  shared the following an article about claiming money stuck at various investments.

On a lighter note of you are worried about your Facebook status after death, there is an article for you :)

Monday, July 9, 2012

Right to Information Act

Recently I filed my first Right To Information (RTI) application against Election Commission of India and it showed result.

Few years back when I shifted to Hyderabad, applied for registration of my name in electoral roll manually by submitting forms and photographs but it never got listed at Chief Election Officer's website . Every time I gave a call , I got a response that name will be listed next month but it never happened. Even the acknowledgement copy of the application did not have any status tracking number to follow up. Only way was to search by Name and House Number. From my friend's experience I knew that that letters in my name will be defiantly  jumbled up and I will not be able to search even if it comes up in the list

Finally when 3 years passed, I filled up the E-Registration form and submitted my photo and personal details in February 2012. Again the status remained as pending for months. I got no response to the email of Chief Election Officer of local constituency.

Now I was forced to file an RTI  (Right to Information ) at the Central Information Commission's website. As per the website RTI stands for Right To Information and has been given the status of a fundamental right under Article 19(1) of the  Constitution. Article 19 (1) under which every citizen has freedom of speech and expression and have the right to know how the government works, what role does it play, what are its functions and so on. I also had both  tracking number and RTI complaint number this time to follow up with election office.

Finally after filing the RTI the chief election officer of state instructed the district collector and election officer of the constituency to let me know that status of the application ASAP. In next few days I got a call asking the address proof document, photo identity proof and color photo. I had uploaded the photo in the e-registration portal already but they asked for color photo again for preparing the Voter ID Card.

After giving all the required document I checked the status of my application online after couple of weeks  and found that my application is accepted and an EPIC ( ELECTORS' PHOTO IDENTITY CARD) number has been generated. I knew that e-seva centers could print the card for me if I quote the  number but I got a response from e-seva that they do not information about the  list of voters in my constituency. Hence I followed up again with my district's election officer and got to know that there are different branches of e-seva [MS Word DOC] who could print my card.

Today I visited my nearest branch of e-seva centre and got my Voter ID Card printed for Rs 10/-. Surprisingly it has the photo which I had given in the online application, then what did they do the new photos I have later ?

However status of my RTI application says "Signed Copy Awaited", there was no instruction in the RTI website while submitting the complaint to send the hard copy to anywhere. I think its just the power of the act which expedited the process.

 

IEEE SAGM 2012

The Hyderabad section of The Institute of Electrical and Electronics Engineers (IEEE, read I-Triple-E) had their Special Annual General Body Meeting (SAGM) on 8th July 2012 at Family World Club, Hyderabad. As GOLD (Graduates Of Last Decade) Chair I presented the activity summery till now with following slides.

 

We are looking volunteers, both IEEE members and non-members to be part of our events. Drop me an email if you are interested.

Friday, July 6, 2012

Venus Transit Video

Exactly one month ago I captured this Venus Transit video during the sunrise , when we first witnessed the planet Venus in front of the Sun. There were cloud cover but we got a glimpse.
Make sure you change the quality to 1080p/720p and watch it full screen to spot Venus.

Monday, July 2, 2012

PechaKucha Night Volume 9

I got an invitation to talk in PechaKucha Night Hyderabad volume 9, last week. I spoke about basics of Astronomy and how it evolved as my hobby. I also got to meet a lot of talented and creative people. The video recording is going to be released after sometime. Till then let me share some photos taken by my friends.

Some of the pictures of mine are below and other pictures can be found at the Facebook album and earlier videos can be found in their YouTube channel.

 


Following are the 20 slides are presented

Rough transcript of the talk is as follows

  1. This is the sky you can see right now if you look up (given there is no cloud). Several bright stars, Moon, Saturn, Mars etc.As a kid I always wondered of stars are random or has some meaning. Before I could invent I discovered that thousands years ago people have already charted it and imagined different animals and objects by connecting the stars, called constellations. Some look like as they are name after and some really don't.

  2. I had idea about solar system but real sky observation started when my uncle gave me this book in late 90s and parents gifted me this binocular. I could recognize any portion of the sky and I could look into the bright nebulae and star clusters.

  3. Later on I gathered some hi-quality and binoculars and medium powered telescopes. I could look into faint objects and features of other planets.

  4. There is always some astronomy around us in the name of astrology. I was surprised the astrologers were fairly correct not in prediction but in calculation.Out of total 88 constellations they ignored all and only considered 12, through which the Sun, Moon and other planets pass and gave some random prediction based on their position.

  5. There were no astronomy column in newspaper and journals but I took advantage of the astrology section of it. I spotted the planets correctly in the sky using horoscope charts. I am a Scorpio and if they say Saturn is in my zodiac now, I will just spot the planet in the constellation in the sky.

  6. But some planets really affect us , not the way astrologers say but giant planet Jupiter's gravity is so massive it protects the planet earth from many meteor or comets which could hit us and wipe human race like they did to dinosaurs 56 million years ago.This picture is of 1994 when a comet  broke apart and collided with Jupiter.

  7. People may say Saturn is evil in Astrology but its the most beautiful object in sky with its shining rings.This picture was taken by Cassini spacecraft along the edge of the ring which is just a kilometer thin. Largest moon titan and ring's shadow can be seen. This gaseous giant is so light that it can float in water.This small picture in the bottom was taken by me through my telescope.

  8. Going father away in the solar system these pictures are of Uranus and Neptune taken by Voyager spacecraft.Uranus almost has no feature but can be seen in naked eye in fairly dark sky but Neptune is very far away and faint as seen of earth. It just completed one round of sun since its discovery.

  9. The closest of the planet to sun is Mercury and very hard to spot due to its proximity with Sun.It is even smaller than the largest Moon in the solar System Ganymede.

  10. The morning star is actually a planet Venus. It has so dense cloud that its hotter than mercury due to green house affect and does not let us see the surface with any telescope. It has phases like moon when seen through telescope.This picture of surface is from Soviet craft Venera 13 which managed to land after several failure attempt.

  11. Most of the movies showed the aliens comes from Mars but we did not find any trace, however we found a lot of water in the polar area as ice.The picture is taken by me when it was in constellation Leo few months back and brightest.In the right bottom a typical sun set as it looks like from Mars.

  12. A typical Earth rise looks like this from Moon and creates can be seen through my telescope easily especially.Right side one is an eclipse photo montage create by my friend Nikhil during Lunar Eclipse on 15th Dec 2011. Lunar surface look reddish copper color during totality due to diffracted sun light through earth's thin atmosphere.

  13. Pluto is now categorized as   dwarf planet because its size and  awkward revolution around sun. Above is the best resolution we could get from Hubble space telescope revolving around earth. The first ever space craft with fly by Pluto is the new horizons in 2015 and may look like this artist's impression.

  14. This shows the scale of size of each planet and sun, earth being so tiny , the scale of distances are also incredible. The bottom image is a family portrait of solar system taken by Voyager in 1990.

  15. Going beyond solar system all the stars we see in night sky belongs to our own milky way galaxy of which sun is a constituent star. But we have neighboring galaxy called Andromeda which is the farthest and the only objects we can see in naked eye in dark sky.

  16. Voyager is one of the most successful space craft sent in 1977 , now sailing at the edge of solar system so far away that one signal takes around 13 hours to reach earth. Its the farthest object we have ever sent.

  17. This is Solar Eclipse in Jan 15 and me and my colleague made a pin hole camera to project's sun on to one of the side of the box. It was an annular eclipse where moon was bit close to earth could not cover sun totally.This was longest eclipse of this millennium.

  18. Recently we witnessed the transit of Venus, Nikhil stacked his photos to generate the awesome image in the left side. The right side one is from my camera , you can see some sun spots which are a bit lower temperature are on Sun's surface

  19. We also occasionally go out for stargazing, especially during winter. Top picture was taken with Amgonna friends , you may see some known faces in this.Bottom one was taken during leonid meteor shower on 17th Nov, this is a long exposure of ten minutes where people were moving around.

  20. I will leave with you a picture of earth which may not be very interesting taken from a vintage point near Saturn when Voyager turned its camera back towards us. Its just a pixel of dust suspended in the sun beam but every one you love , hate or ever known and every one who ever lived were in it. This is just attempt to show our place in this corner of the  universe and solitude. We have to deal with each other more kindly , preserve and cherish, as this pixel is the only place ever harbor life known yet.



Update 2nd July

Pechakucha Hyderabad Night Volume 9 featured in the Hans India article.

Photobucket

Google IO 2012

Like last year Google broadcasted the keynotes of the annual developer event (Google I/O) at their local offices . I came down to their office on 27th and 18th June night despite EURO semifinal matches scheduled right after that.

Most amazing part of the Keynotes were the featured video if Virtual Start Party , which I am regularly part of.It was an awesome idea from Fraser Cain and Pamela Gay , who started recording their podcast from Google hangouts . Later many astronomers joined them in Hangout on Air and used their telescopes to broadcast live images from Sky. Following is the full length video from which some clips were shown in the keynote. I think Virtual Star Party is the best use case of Google Plus  hangout till now.



Following are my notebook pages on both the days

Day 1 (Android)

  • Offline voice search

  • Google now

  • Incremental app update

  • Free Google cloud messaging for developers

  • Movie for sale I play

  • TV shows in Google play

  • Magazines 14 days free trial

  • Nexus 7 inch tablet 12 core GPU , fonts didn't look good ??

  • chrome as the default browser for first time.

  • Compass mode.

  • Offline maps for entire city.

  • Nexus q, port port port, speaker

  • Multi user playlist and hangout

  • Plus event


Day 2 (Chrome)

  • Google drove OCR and picture recognition  iOS

  • Tools docs offline

  • IAAS from Google (Compute Engine)


Apart from this following are the tweets I posted during the events

https://twitter.com/#!/search/realtime/%23io12%20from%3Aneilghosh

All the IO videos can be found at their youtube channel

Friday, June 8, 2012

Gallery : Venus Transit 2012

Venus TransitBlack drop effect during Venus Transit on 06th June 2012 from HydVenus Transit on 06th June 2012 from Hyd.Sun 3 days before the Venus transitVenus TransitVenus Transit
Venus TransitVenus TransitVenus Transit with the clouds :)Venus Transit with RG filterSunrise with Venus transitVenus Transit
Venus TransitSunrise with Venus transitSunrise with Venus transit

Venus Transit 2012, a gallery on Flickr.

Finally I managed to put all the flickr photos of my friends who shot photographs of the transit with me. The gallery will grow in future as they upload more photos.

Thursday, June 7, 2012

Photos : Venus Transit

Finally witnessed the long awaited Venus transit. Few of my Astronomer and Photographer friends gathered together before sunrise and enjoyed the rare view. The view was initially bit blocked by the clouds adjacent to east horizon but it became crystal clear afterwards. Following are some of the pictures taken by my friends.

Venus Transit on 06th June 2012 from Hyd.

Venus Transit
Black drop effect during Venus Transit on 06th June 2012 from Hyd

There are few awesome pictures taken by Harsha as well . Photo 1, Photo 2

Finally here are pictures of the session  taken by me.


Also watch the Ultimate Transit Video by Nasa

Tuesday, June 5, 2012

Upcoming Venus Transit

As most of you would know tomorrow's sunrise will be special. No, the sunrise will still happen in the east direction :) but it will rise along with planet Venus, right in front of it. Sun will rise in Hyderabad around 0542 Hours, the transit would have begun by that time. The transit will continue till 1001 Hrs. Me and few of my friends are will be hoping for clear sky so that we can view through out solar glasses and capture photos using solar filters.
Sun filter glasses for safe viewing

Following is the schedule of this transit

Sunrise on the venus transit day

In the above simulated picture it is assumed that the horizon is clear but actually the sun will start appearing just before 6 AM.

first contact | 3:39 am IST | Wednesday, June 6, 2012
second contact | 3:57 am IST | Wednesday, June 6, 2012
maximum | 6:59 am IST | Wednesday, June 6, 2012
third contact | 10:01 am IST | Wednesday, June 6, 2012
fourth contact | 10:19 am IST | Wednesday, June 6, 2012
sunset | 6:50 pm IST | Wednesday, June 6, 2012
Venus transiting out of the sun

Source : http://www.wolframalpha.com/input/?i=Venus+transit+at+Hyderabad

While its highly recommended that you gather a pair of working solar glasses and go out
and watch the transit as it is last of our life time. The last was in 2004 and next one
will be in 2117, there will be some virtual ways to watch it as well in case you are traveling or do not find any gears in this last moment.

I leave you with a picture of sun taken with my camera of course with solar filters gifted by my colleague and fellow astronomer Nikhil Tungare , who himself shot couple of beautiful images of sun with very prominent sunspots just few days before the transit event.
Sun through solar glass

Event information source : http://cosmoquest.org/blog/2012/06/the-venus-transit-is-coming/

Update: Just found the 1882 Venus transit video animation