Pages

Monday, March 28, 2011

IEEE Tutorial on Webservices at BITS Hyderabad

We ( Me, Bhaskar Ghosh and Alosh Bennett ) again got opportunity to represent IEEE computer society , Hyderabad section to give a tutorial on webservice at BITS Hyderabad on 26 March 2011.
The institute is situated about 50 KM from HI-Tech City and campus is spread across nearly 250 acres of land and surrounded by beautiful eucalyptus forest.

https://picasaweb.google.com/s/c/bin/slideshow.swf

Following Tutorial videos are bit dark due as we wanted to the slides to be visible in the projector and turned the stage light off
http://www.youtube.com/p/8DD80E62741A29CA?hl=en_US&fs=1

Here is the slides used

IEEE Tutorial on Webservices at BITS Hyderabad

We ( Me, Bhaskar Ghosh and Alosh Bennett ) again got opportunity to represent IEEE computer society , Hyderabad section to give a tutorial on webservice at BITS Hyderabad on 26 March 2011.
The institute is situated about 50 KM from HI-Tech City and campus is spread across nearly 250 acres of land and surrounded by beautiful eucalyptus forest.



Following Tutorial videos are bit dark due as we wanted to the slides to be visible in the projector and turned the stage light off



Here is the slides used

Monday, March 21, 2011

The Super Moon

Lately I was busy explaining people that

  1. Earthquake in Japan has nothing to do with the supermoon. Here is Phil Plait's blog explaining everything.

  2. The size of the moon won't be so so big on that day that naked human eye can distinguish. The size of the moon varies like this every month but this time it happened to be a full moon when moon was closest to the earth. Here is an article covering all details.


Here is the video I shot from my tarrace with my handy with 50x optical zoom at 8.30 PM Indian time on 19th march 2011

[youtube http://www.youtube.com/watch?v=2uj1i7Co4RM?rel=0&w=640&h=390]

The Super Moon

Lately I was busy explaining people that
  1. Earthquake in Japan has nothing to do with the supermoon. Here is Phil Plait's blog explaining everything.
  2. The size of the moon won't be so so big on that day that naked human eye can distinguish. The size of the moon varies like this every month but this time it happened to be a full moon when moon was closest to the earth. Here is an article covering all details.

Here is the video I shot from my tarrace with my handy with 50x optical zoom at 8.30 PM Indian time on 19th march 2011

]

IEEE talk on Webservices at SNIST

Today we (Me, Bhaskar Ghosh and Mohan Soundarajan ) had an opportunity ( Thanks to IEEE Hyderabad CS Chairman Aditya Rao  ) to visit Sreenidhi Institute Of Science & Technology for a talk on Webservices Web Services: Architectures, Design and Deployment. . Thanks to Ram  Sharma from SNIST who escorted us throughout and finally arranged delicious lunch at the end .Below is the  embedded picture album.
https://picasaweb.google.com/s/c/bin/slideshow.swf

Ravi Teja from NIST also helped us shooting video the entire session which I will upload soon because they were initially very large in size but I managed to compress using this technique them to some extent.I am embedding first few ones please check out later when I upload all of them
http://www.youtube.com/p/DC400D1492105FBE?hl=en_US&fs=1

Here is the Slide

IEEE talk on Webservices at SNIST

Today we (Me, Bhaskar Ghosh and Mohan Soundarajan ) had an opportunity ( Thanks to IEEE Hyderabad CS Chairman Aditya Rao  ) to visit Sreenidhi Institute Of Science & Technology for a talk on Webservices Web Services: Architectures, Design and Deployment. . Thanks to Ram  Sharma from SNIST who escorted us throughout and finally arranged delicious lunch at the end .Below is the  embedded picture album.




Ravi Teja from NIST also helped us shooting video the entire session which I will upload soon because they were initially very large in size but I managed to compress using this technique them to some extent.I am embedding first few ones please check out later when I upload all of them


Here is the Slide

Converting video from ameg to avi with ffmpeg

I have been using my Sony SCR SX 20 for quite a some time now. One of the the problem I see is that even though it does not record in High Definition (HD) , it consumes a lot of space.In fact for 22 Minutes of High Quality video it creates a .MPEG file with size 1.5 Gb. This is too large for uploading in any video sites like YouTube. I tried Linux GUI Tools like WinFF and Avidemux  but they elongated the video vertically and also sometimes conversion failed because of some library missing issue.

I found it can be done with ffmpeg and desired optimal quality can be achieved gaining some free space.

For best quality
ffmpeg -i 1.MPG -sameq 1.avi

For desired quality
ffmpeg -i infile.MPG -qmax 4 outfile.avi

Here the number 4 indicates that I need a moderate quality , higher the number lower is the quality and smaller is the output file size. You can hit and trial with a small file and choose your desired number. Same is applicable while converting MOV file to avi.

For Batch processing one can try
??for f in *.MPG; do ffmpeg -i "$f" -qmax 4 "${f%.MPG}.avi"; done

Converting video from ameg to avi with ffmpeg

I have been using my Sony SCR SX 20 for quite a some time now. One of the the problem I see is that even though it does not record in High Definition (HD) , it consumes a lot of space.In fact for 22 Minutes of High Quality video it creates a .MPEG file with size 1.5 Gb. This is too large for uploading in any video sites like YouTube. I tried Linux GUI Tools like WinFF and Avidemux  but they elongated the video vertically and also sometimes conversion failed because of some library missing issue.

I found it can be done with ffmpeg and desired optimal quality can be achieved gaining some free space.

For best quality
ffmpeg -i 1.MPG -sameq 1.avi

For desired quality
ffmpeg -i infile.MPG -qmax 4 outfile.avi

Here the number 4 indicates that I need a moderate quality , higher the number lower is the quality and smaller is the output file size. You can hit and trial with a small file and choose your desired number. Same is applicable while converting MOV file to avi.

For Batch processing one can try
for f in *.MPG; do ffmpeg -i "$f" -qmax 4 "${f%.MPG}.avi"; done

Wednesday, March 16, 2011

SSH without a password

Assume you have to shh to targethost with a user without using password every time from the machine myhost-lap and user myhost

First generate a public key as follows
myhost@myhost-lap:~$ ssh-keygen -t rsa
Generating public/private rsa key pair.

Enter file in which to save the key (/home/myhost/.ssh/id_rsa): Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /home/myhost/.ssh/id_rsa.
Your public key has been saved in /home/myhost/.ssh/id_rsa.pub.
The key fingerprint is:
ec:f5:f5:4a:af:9d:e8:82:1a:76:1d:f9:04:4d:4f:cb myhost@myhost-lap
The key's randomart image is:
+--[ RSA 2048]----+
|                 |
|              o  |
|             o o |
|       . .....o. |
|       o..... ...|
|      . o. . ..+.|
|       ..   ooooo|
+-----------------+

myhost@myhost-lap:~$ ssh user@targethost mkdir -p .ssh
user@targethost's password:

Then add the entries into the target host's autherized keys
myhost@myhost-lap:~$ cat .ssh/id_rsa.pub | ssh user@targethost 'cat >> .ssh/authorized_keys'
user@targethost's password:

Finally you could login like following without a password
myhost@myhost-lap:~$ ssh user@targethost

Reference http://linuxproblem.org/art_9.html

SSH without a password

Assume you have to shh to targethost with a user without using password every time from the machine myhost-lap and user myhost

First generate a public key as follows
myhost@myhost-lap:~$ ssh-keygen -t rsa
Generating public/private rsa key pair.

Enter file in which to save the key (/home/myhost/.ssh/id_rsa): Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /home/myhost/.ssh/id_rsa.
Your public key has been saved in /home/myhost/.ssh/id_rsa.pub.
The key fingerprint is:
ec:f5:f5:4a:af:9d:e8:82:1a:76:1d:f9:04:4d:4f:cb myhost@myhost-lap
The key's randomart image is:
+--[ RSA 2048]----+
|                 |
|              o  |
|             o o |
|       . .....o. |
|       o..... ...|
|      . o. . ..+.|
|       ..   ooooo|
+-----------------+

myhost@myhost-lap:~$ ssh user@targethost mkdir -p .ssh
user@targethost's password:

Then add the entries into the target host's autherized keys
myhost@myhost-lap:~$ cat .ssh/id_rsa.pub | ssh user@targethost 'cat >> .ssh/authorized_keys'
user@targethost's password:

Finally you could login like following without a password
myhost@myhost-lap:~$ ssh user@targethost

Reference http://linuxproblem.org/art_9.html

Sunday, March 13, 2011

Generate Test data for programming and demo

I have been looking for a decent amount of test data for giving a demo of my test program and I came across this website

I hosted this data generator in my website at the following location , one can make use of it for free

http://neilghosh.com/util/datagen/

This is capable of generating sample data (name , phone number , email , address etc ) in XML, HTML, CSV, SQL, Excel formats.
Do drop a note as comment to this post if you find it useful.

I also found the this  page describing some other data generator tools.

Generate Test data for programming and demo

I have been looking for a decent amount of test data for giving a demo of my test program and I came across this website

I hosted this data generator in my website at the following location , one can make use of it for free

http://neilghosh.com/util/datagen/

This is capable of generating sample data (name , phone number , email , address etc ) in XML, HTML, CSV, SQL, Excel formats.
Do drop a note as comment to this post if you find it useful.

I also found the this  page describing some other data generator tools.

Saturday, March 12, 2011

Determining Local IP address

I just wrote a small script to determine local IP address of a machine

http://neilghosh.com/util/ip/

I have tested this only in firefox and working on the other browsers.

Determining Local IP address

I just wrote a small script to determine local IP address of a machine

http://neilghosh.com/util/ip/

I have tested this only in firefox and working on the other browsers.

Tuesday, March 8, 2011

Converting DOM object to String

Here is a piece of code to convert org.w3c.dom.Document object to string
Transformer transformer = TransformerFactory.newInstance().newTransformer();
transformer.setOutputProperty(OutputKeys.INDENT, "yes");
StreamResult result = new StreamResult(new StringWriter());
DOMSource source = new DOMSource(doc);
transformer.transform(source, result);
String xmlString = result.getWriter().toString();

Following needs to be in the import
import javax.xml.transform.OutputKeys;
import javax.xml.transform.Transformer;
import javax.xml.transform.TransformerFactory;
import javax.xml.transform.dom.DOMSource;
import javax.xml.transform.stream.StreamResult;

Converting DOM object to String

Here is a piece of code to convert org.w3c.dom.Document object to string
Transformer transformer = TransformerFactory.newInstance().newTransformer();
transformer.setOutputProperty(OutputKeys.INDENT, "yes");
StreamResult result = new StreamResult(new StringWriter());
DOMSource source = new DOMSource(doc);
transformer.transform(source, result);
String xmlString = result.getWriter().toString();

Following needs to be in the import
import javax.xml.transform.OutputKeys;
import javax.xml.transform.Transformer;
import javax.xml.transform.TransformerFactory;
import javax.xml.transform.dom.DOMSource;
import javax.xml.transform.stream.StreamResult;

Monday, March 7, 2011

Finally my Face in Space

Last year NASA started Face in Space initiative where they wanted to put a picture of people on one of two remaining space shuttle missions and launch it into orbit. Finally after a  lot of delay STS-133 was launched 4:53:24 p.m. EST - Feb. 24, 2011 from Kennedy Space Centre.









From neilghosh.com

Hurray ! Today I got my certificate from NASA that face of mine has flown in space aboard the Space Shuttle Discovery. Thanks a lot NASA for giving me chance to be part of the history,

Finally my Face in Space

Last year NASA started Face in Space initiative where they wanted to put a picture of people on one of two remaining space shuttle missions and launch it into orbit. Finally after a  lot of delay STS-133 was launched 4:53:24 p.m. EST - Feb. 24, 2011 from Kennedy Space Centre.









From neilghosh.com

Hurray ! Today I got my certificate from NASA that face of mine has flown in space aboard the Space Shuttle Discovery. Thanks a lot NASA for giving me chance to be part of the history,