Sun SPOT Friends
Canon Vixia HF21
  • 65G Flash memory
  • NTSC
  • HDMI output
  • USB Connection
  • multi-click/shutter photo capture
  • remote control
  • MAC-OSX support - will let you know :-)
  • ImageBrowser 6.3
Just starting a new Blog tonight that can be found HERE.

Who Sang "Let's Go Sunning"?
Ever have your Mighty Mouse stop scrolling in one direction (up or down). It's probably dirty and it's pretty easy to resolve:

By turning it upside down and moving around the ball.





Many thanks to starlina for pointing me to this new type of PCB transfer paper.

http://www.dipmicro.com/store/PULSAR-TRANSFER-PAPER



http://www.flickr.com/photos/nasadesertrats/show/
Just pulled Muse's newest work "The Resistance" from Amazon.

There is a song called "United States of Eurasia" that sounds a lot like Queen. It sounds like they added some Chopin to the end of the piece. Listen for yourself.

In the song Uprising there is a section seemingly pulled directly from Blondie's "Call Me".
YUI Events and Events in general found HERE.
Found HERE.

Release Repository

<repository>

<id>spring-milestone</id>

<name>Spring Portfolio Milestone Repository</name>

<url>http://repo1.maven.org/maven2</url>

</repository>



Milestone Repository

<repository>

<id>spring-milestone</id>

<name>Spring Portfolio Milestone Repository</name>

<url>http://s3.amazonaws.com/maven.springframework.org/milestone</url>

</repository>




Snapshots:


<repository>

<id>spring-snapshot</id>

<name>Spring Portfolio Snapshot Repository</name>

<url>http://s3.amazonaws.com/maven.springframework.org/snapshot</url>

</repository>


If you are a Mac user and you make a lot of movies you probably find yourself running long on content but short on drive space.


What if you could off-load your information to an external drive? The folks at CNET have some help:


How to move an iTunes library to an external drive



If you are not a fan of Internet Explorer (IE) do not run away just yet.

IE 8 comes equipped with an EXCELLENT tool called the "Developer Tools". It is accessible from the Tools menu.

It is amazing in how it allows you to:
  • Debug javascript (yes, step by step, method by method)
  • View CSS styles
  • Edit CSS Styles in-place
  • Other things yet to be discovered.

I will continue to use, and love, Firebug, but for some web applications, especially those that run on IE only, the IE Developer Tools are excellent. Try them out.

See article HERE.


Did you ever go into a nice restaurant where you're greated by a suave host who graciously takes you to your table? The waiter promptly comes with water and a wine list? Then the waiter takes your order? And then the waiter KICKS YOU IN THE TEETH?

Well, that's what it felt like when I recently tried to register for the YUI Library forums.

I am a big fan of YUI Development. But if you want to join their forum you'll have to work for the NSA for a while in order to decrypt their confirmation codes.

Maybe I am the visually impaired, but I tried several times to input the code and was unsuccessful EVERY time.

Then to add insult to injury, after too many attempts:
You have exceeded the maximum number of registration attempts for this session. Please try again later.

Here are a few sample codes for you puzzlers out there. Let me know what you think the actually decoding is:

I guessed (wrongly): 1N3P5Z



I guessed (wrongly): 4ADPN


I guessed (wrongly): 4G4F
Tomcat 6.0.20
java version "1.6.0_14"

There was a message that would show up in catalina.out on a new

Cause: another web application had servlet-api-2.4.jar loaded from its WEB-INF/lib directory.

Simply deleting this file cleared the error!


SEVERE: The scratchDir you specified: /opt/apache-tomcat-6.0.20/work/Catalina/localhost/examples is unusable.



drwxrwxr-x 2 tomcatuser tomcatuser 4096 Aug 5 12:07 _
drwxrwxr-x 2 tomcatuser tomcatuser 4096 Aug 5 12:07 examples
drwxrwxr-x 2 tomcatuser tomcatuser 4096 Aug 5 12:07 docs
drwxrwxr-x 3 root root 4096 Aug 5 12:55 gs



Here's a weird one. If I launch Tomcat 6 from the catalina.sh script everything is happy.
If I launch Tomcat 6 using jsvc (daemon) on redhat I get the following error:



INFO: Starting Servlet Engine: Apache Tomcat/6.0.20
Aug 2, 2009 2:03:50 PM org.apache.jasper.EmbeddedServletOptions
SEVERE: The scratchDir you specified: /opt/apache-tomcat-6.0.20/work/Catalina/localhost/manager is unusable.
Aug 2, 2009 2:03:50 PM org.apache.jasper.EmbeddedServletOptions
SEVERE: The scratchDir you specified: /opt/apache-tomcat-6.0.20/work/Catalina/localhost/docs is unusable.



Why? I am launching both scenarios as user 'root'.

So I ended up modifying the permissions on the web-application specific directories under the work area of Tomcat.

What I did:
cd ${TOMCAT_HOME}/work/Catalina/localhost/
chmod 775 Deploy

Was:
drwxr-xr-x 2 root root 4096 Aug 2 14:37 Deploy

Now:
drwxrwxr-x 2 root root 4096 Aug 2 14:37 Deploy


Duane at RoboRocketry had a great post on sanding sealers, et al.


If you use Ubuntu or another Linux distribution you may be familiar with a simple utility called wget. wget is used to pull the contents of a webpage or web resource.

def addr = args[0]
println "You want to get ${addr}"
URL url = new URL(addr);
URLConnection uc = url .openConnection()
BufferedReader br = new BufferedReader(
new InputStreamReader(
uc.getInputStream()))
String inputLine=null

while ((inputLine = br.readLine()) != null)
println(inputLine)
br.close()

Usage:
groovy wget.groovy http://java.sun.com

Output: the contents of that pagee

Getting righteous with Tomcat

Using instructions HERE.

Download tomcat as a gzipped (apache-tomcat-6.0.20) file. Once expanded gives you about 9.7 MB of raw Tomcat POWER made up of some 576 files.




DAEMON Time:
  • jsvc.tar.gz (74398) holds the source for building the Java Server Daemon (jsvc)
  • unpack it with tar -xvzf jsvc.tar.gz (42 files, 372 KB)
  • NOTE: since we are on a MACOSX we need to apply some patches
Launch at Startup:
To make use of our jsvc we need to add a Daemon plist file to /Libary/LaunchDaemons directory. The one below works for us:


















commandoutput
sh support/buildconf.shsupport/buildconf.sh: configure script generated successfully
sh ./configure
*** Current host ***
checking build system type... i386-apple-darwin9.7.0
checking host system type... i386-apple-darwin9.7.0
checking cached host system type... ok
*** C-Language compilation tools ***
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for ranlib... ranlib
*** Host support ***
checking C flags dependant on host system type... ok
*** Java compilation tools ***
checking for javac... /System/Library/Frameworks/JavaVM.framework/Versions/1.6/Home/bin/javac
checking wether the Java compiler (/System/Library/Frameworks/JavaVM.framework/Versions/1.6/Home/bin/javac) works... yes
checking for jar... /System/Library/Frameworks/JavaVM.framework/Versions/1.6/Home/bin/jar
gcc flags added
*** Writing output files ***
configure: creating ./config.status
config.status: creating Makefile
config.status: creating Makedefs
config.status: creating native/Makefile
*** All done ***
Now you can issue "make"
make
make -C native all
gcc -g -O2 -DOS_DARWIN -DDSO_DLFCN -DCPU=\"i386\" -I/System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Headers -Wall -Wstrict-prototypes -c jsvc-unix.c -o jsvc-unix.o
gcc -g -O2 -DOS_DARWIN -DDSO_DLFCN -DCPU=\"i386\" -I/System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Headers -Wall -Wstrict-prototypes -c arguments.c -o arguments.o
arguments.c: In function ‘arguments’:
arguments.c:251: warning: unused variable ‘temp’
gcc -g -O2 -DOS_DARWIN -DDSO_DLFCN -DCPU=\"i386\" -I/System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Headers -Wall -Wstrict-prototypes -c debug.c -o debug.o
gcc -g -O2 -DOS_DARWIN -DDSO_DLFCN -DCPU=\"i386\" -I/System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Headers -Wall -Wstrict-prototypes -c dso-dlfcn.c -o dso-dlfcn.o
dso-dlfcn.c:51: warning: function declaration isn’t a prototype
gcc -g -O2 -DOS_DARWIN -DDSO_DLFCN -DCPU=\"i386\" -I/System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Headers -Wall -Wstrict-prototypes -c dso-dyld.c -o dso-dyld.o
gcc -g -O2 -DOS_DARWIN -DDSO_DLFCN -DCPU=\"i386\" -I/System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Headers -Wall -Wstrict-prototypes -c help.c -o help.o
gcc -g -O2 -DOS_DARWIN -DDSO_DLFCN -DCPU=\"i386\" -I/System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Headers -Wall -Wstrict-prototypes -c home.c -o home.o
gcc -g -O2 -DOS_DARWIN -DDSO_DLFCN -DCPU=\"i386\" -I/System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Headers -Wall -Wstrict-prototypes -c java.c -o java.o
java.c:49: warning: function declaration isn’t a prototype
java.c: In function ‘java_init’:
java.c:122: warning: implicit declaration of function ‘dso_error’
gcc -g -O2 -DOS_DARWIN -DDSO_DLFCN -DCPU=\"i386\" -I/System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Headers -Wall -Wstrict-prototypes -c location.c -o location.o
gcc -g -O2 -DOS_DARWIN -DDSO_DLFCN -DCPU=\"i386\" -I/System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Headers -Wall -Wstrict-prototypes -c replace.c -o replace.o
gcc -g -O2 -DOS_DARWIN -DDSO_DLFCN -DCPU=\"i386\" -I/System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Headers -Wall -Wstrict-prototypes -c signals.c -o signals.o
ar cr libservice.a arguments.o debug.o dso-dlfcn.o dso-dyld.o help.o home.o java.o location.o replace.o signals.o
ranlib: file: libservice.a(dso-dyld.o) has no symbols
ranlib: file: libservice.a(signals.o) has no symbols
ranlib libservice.a
ranlib: file: libservice.a(dso-dyld.o) has no symbols
ranlib: file: libservice.a(signals.o) has no symbols
gcc jsvc-unix.o libservice.a -o ../jsvc

mv jsvc ..this results in the jsvc executable being moved to the $TOMCAT_HOME/bin directory
commandoutput
commandoutput
commandoutput
If you have been to any of the No Fluff Just Stuff (NFJS) conferences you know they are usually full of helpful information. I attended my first NFJS last year at the 2008 Desert Southwest Software Symposium in Phoenix, AZ. It was tremendous!

As this year's Desert Southwest Software Symposium approached I was eager to attend. Unfortunately I was unable to attend so I encouraged a colleague to go.

The '2009 Desert Southwest Software Symposium was this past weekend. On Monday (yesterday) I came to the office excited to hear about the conference.

What a difference a year makes. Let's start with the pros, then we'll get to the cons. Remember this is all second-hand information but I think it is useful.

PROS:
Scott Davis - this guy has an incredible gift of communication.
CONS:
  • Java Bashing - I was told that Venkat gave a talk on Effective Java but it turned out to be a ruse to bash Java and promote Groovy and Scala. Don't get me wrong, I am a big fan of Groovy (my experience in Scala is insufficient to comment). But luring developers into a session, presumably, on how to use Java more effectively only to discover that the speaker thinks you're an idiot for doing things in Java in the first place seems a bit disingenuous. Java has its flaws, agreed. If the intent of a session is to expose those flaws and introduce alternatives then advertise accordingly. Apparently, when an attendee called Venkat on the piling on of Java, there was a general consent of nodding heads in agreement - at which point Venkat backed off a bit.
  • GWT Bashing - here you have a conference with sessions on GWT and at the same conference you have Experts unloading on GWT. The premise "maintaining state on the browser is stupid". Oh really.
  • Expert Panel - apparently on Sunday there was an Expert Panel made up of, among others, Neal Ford and Ted Neward. In a room filled with paying customers interested in learning from the "Experts" only a handful mustered up the courage to actually ask a question. Perhaps it was due to the way the few who did ask questions were treated by the "Experts". I just don't get it. NFJS has experts to help educate developers. Developers pay good money and sacrifice their time to see these experts. To be ridiculed?

So what does this mean for the next NFJS? I have to admit that I am less enthusiastic.


Marvin Robot based on Leaf Project


MoonDiggers



http://www.telestream.net/flip4mac-wmv/overview.htm

http://www.microsoft.com/downloads/thankyou.aspx?familyId=915d874d-d747-4180-a400-5f06b1b5e559&displayLang=en









Bummer!

Why would you announce an incredibly cool and useful feature such as Internet Tethering and then have it NOT BE AVAILABLE!!!!

Apparently, AT&T is the culprit...and won't have it available until the end of the summer.

See article HERE.








We have compiled a small video to demonstrate what Sun SPOT is and what work we are doing to find out its utility as an environmental sensor. We are working with organizations like ATREE and UNESCO for the same. Hope you like it! Special thanks to Tejaswini Kelkar and Vasusen Patil for making such a nice video!

 

 

Ahem Ahem! 

Was I dreaming??  No certainly not!!!

Come February 20 @ Sun Tech Days Hyderabad..  I entered the huge seminar Hall, and was straightaway taken by Ganesh Sir to meet Joe Hartley, Vice President of Global Education, Government and Healthcare at Sun Microsystems!

Wow!!  Here I am...  A student, then a campus ambassador, who dreams of working with a company like Sun Microsystems one day..   and I am talking directly to JOE HARTLEY, because he liked our project and wants to talk about it on stage!

I also called up Vasusen and then we both interacted with him, and believe me he was simply awesome! He quickly told us in brief about what how was going to ask us about our project on stage..   he asked if I was nervous!  Was I? AAha AAha!!! ;)

He took a hell lot of a time remembering Vasusen's name...   He promised hell screw it up on stage..  Practicing.. Practicing..  VAASSU SAIN..  VAASSU SAIN,,,  VASSSUUU SAIN...  He looked at Vasu's batch and practiced it again..

The Vasusen tried to make it easier for him.. He said..  just call me VASU!

Again he mumbled  right before his talk began..  VASSU VASSU!! OK!

The Keynote!                                                                                                                    THE BIG STAGE

Now he talked about the Sun University Relations, what the campus ambassador program meant to Sun, how it profited from it.. and how students can benefit from it..Then he went on to show what some campus ambassadors are doing.. inculcating Sun Technologies in curriculum..  etc.  

Now came our project!  The slide had my picture (right next to this post!)  And he called us on stage...

Joe:  "Now I would like to call Jay, the Campus Ambassador of SRKNEC, and his colleague - AASU" - Agrhh! He screwed it up big time!

He went on to say he really liked our project and asked how we got motivated to do this...

 Vasusen answered saying..  "We were looking for a project idea for the Code for freedom contest.. and we happened to meet our friend Nachiket who is an environmental scientist and showed the Sun SPOT technology to him..  He was amazed and suggested to put it to real-time use and linked us up with ATREE!"

"So the main motivation was money!!" Said Joe swiftly!!  I wonder how these great men keep their humor intact on the big stages...

Next he asked whats the current progress and future plans..

I answered that saying.. "We have gone through the requirement analysis phase and on site prototype testing. We have also hosted the project at Canopee.dev.java.net  and everyone is free to come and join! Next step would be to build a working model and do testing again on field".

He thanked us and we came back, my heart still beating!!  Wow.. I was just on stage during the Keynote at Sun Tech Days with Joe Hartley!!!   The most memorable experience of my life!

Whoosh!!  It took a long time for the feeling to sink in...

A Little Get-together                                                                                                JOE HARTLEY WITH THE CAs

 Then we also had a cool get together sort of a thing with Joe Hartley at afternoon .. with all the Campus Ambassadors interacting with him.. He asked us very nice questions about the program and seemed very interested to know our experiences.  I was overwhelmed with his modesty and enthusiasm in interacting with students and  teachers and his interest in knowing their views and difficulties. He listened to us very sincerely and jotted down important points. 

The overall day which started like a fairy-tale turned out to be really inspirational and quite a lesson.. one that I will always remember! That's the beauty of Sun Tech Days..  It gave me the opportunity that I could not have dreamed of!

Ok.. Thats all what happened when Jay met JOE!

PS:  I should have posted the title as - "When Jay met Joe Sir"  and I am really sorry for that. Its just that "Jay met Joe" sounds more alliterative.

 Hi!  We were asked to give a small talk of 15 minutes at the Opensolaris track about our project. It was a great opprotunity for us to demonstrate out project in front of a quality audience.

What we learned during the first day at the booth was that, not many people knew what a sun spot is at the Tech Days!!!  So, at the talk, firstly I gave a short intro of a Sun SPOT to the audience. I went on to explain how easy it is to program using our favourite JAVA.

 Then we demonstrated the wireless feature of Sun SPOT by demo-ing a Sun SPOT controlled Pin Ball Game! 

It was a instant hit and there was a great applause as Vasusen moved around the hall playing pinball with his remote SPOT. Then we also allowed some of the audience to play the game. It was really exciting to see the response.

Next we showed a small video of our project and  again we got a great applause!!

Then Vasusen went on to explain what work we have done with the sun spots and the overall scope and future of project Canopee.

It was great to be able to talk in front of such audience and recieve such warm response! Sun Tech Days Rocks! 

As the part of Sun University relations, Mr. Ganesh Hiregoudar had asked some selected students to demonstrate their projects. We were invited to display the Sun SPOT and Project Canopee

We had a nice booth to display our just besides the coffee counter! And we had a real blast for the 3 days...

The booth was crowded forever.. with people flooding around and really interested with the Sun SPOT technology!  We had many students bursting with new ideas as well as professioinals from different companies coming in who really liked the SPOT technology and our project!

From SunTechDays

I was like a tape-recorder.. playing the same tape ( Description scope and use of SPOTs) over and over.. and over again! But it was great fun to see the interest of people.. 

We also had many people interested in buying the SPOTs...   Sun Labs - Look out! Lots of potential customers in India!

All in all the SPOT booth SPOT-ted by one and all! 

From SunTechDays
From SunTechDays
From SunTechDays

Whoa!!  I had been to Sun Tech Days Hyderabad!

Well...  You see, I have been trying to put into words my Sun Tech Days experience since last hour or so..  I am sitting in front of my laptop, typing in something, then again erazing it, again typing in..  trying to find the right words, frame the right sentences.. that would.. you know.. completely describe my experience.. 

Finally ive realized that the experience was..

while(true)  
{ 

 amazing++;

 unbelievable++;

 supercool++;

 getAllGoodAdjectivesInEnglish()++;  //I hope you get this!

} 

Agrhhh!  This seems to be the worst start of any blog I have written till date!

 

Hmmm....  Frankly speaking..  The Sun Tech Days Hyderabad was amazing experience for me! I went there with 25 colleagues, and a faculty member and we had a blast.

Our project Canopee rocked at the Tech Days! We had a booth which was always crowded, we had a chance to speak about our project at lightening talks in the Opensolaris track, and guess what...  We were called on stage by Joe Hartley, Vice President of Global Education, Government and Healthcare at Sun Microsystems! We also had a cool interaction with him.  

I will blog about all this and more in the coming entries.. So stay tuned!

PS: I love Sun Tech Days!!  

 

From SunTechDays