Gosling sails away from Google

Liquid Robotics®, developer of the award-winning Wave Glider® unmanned ocean vehicle, and cloud-based data service provider, today announced that James Gosling, formerly of Google, has joined the company as chief software architect. The addition of Gosling comes at a time when the company is experiencing rapid growth in its customer base, adding strategic new hires, and expanding company operations.

The Wave Glider is the world’s first self-propelled marine robotic drone employing a multi-patented design that taps into the ocean’s inexhaustible supply of wave energy to “swim” indefinitely (no refueling, no emissions, no manpower). It can collect and transmit worldwide oceanic data in real-time on a continuous basis on missions that can last years and cover thousands of miles. Previous robotic ocean platforms spend the majority of their power on propulsion, yet the Wave Glider gets its propulsion directly from wave energy, thus all of its power can be dedicated to sensing and significant computation. In addition to providing Wave Gliders as a product, Liquid Robotics has also set up a Data-as-a-Service cloud that provides direct, real-time access to ocean information.

Posted in Founder, Startup | Leave a comment

XStream + UTF8 Character Set

To read XML in UTF-8 encoding through xstream.

InputStream is = ((BrandResource) resource).getResource().getURL().openStream();
Reader reader = new InputStreamReader(is, Charset.forName(“UTF-8″));
XLoader config = (XLoader) xstream.fromXML(reader);

Posted in Core Java | Leave a comment

Modern Mobile Redirect Using .htaccess

The following set of rewrite rules will redirect all Android, Blackberry, iOS, Windows and WebOS devices to a specific mobile directory on your website. Additionally, it will redirect Google’s mobile crawler – according to Google search spam czar Matt Cutts this is perfectly acceptable and even somewhat encourage.
Simple .htaccess Mobile Redirect

RewriteCond %{REQUEST_URI} !^/mobiledirectoryhere/.*$
RewriteCond %{HTTP_USER_AGENT} "android|blackberry|ipad|iphone|ipod|iemobile|opera mobile|palmos|webos|googlebot-mobile" [NC]
RewriteRule ^(.*)$ /mobiledirectoryhere/ [L,R=302]

To implement these rules:

  1. Replace “mobiledirectoryhere” with the path to your mobile site. If your mobile site is located in a subdirectory, use the full URL (including “http://”) and you can omit the first RewriteCond.
  2. Then copy & paste the ruleset into the site’s .htaccess file or the main apache configuration.
Posted in Web Hosting | Leave a comment

The enum constant reference cannot be qualified in a case label

Using non “enum” in a switch statement.
public enum CARS { gmc,ford,bmw,chevy,saab,hummer }
Where this…
switch(myCar)
{
case CARS.gmc:
break;
case CARS.buick:
break;
case CARS.bmw:
break;
}

Will give you this: "The enum constant CARS.buick reference cannot be qualified in a case label".
Just remove the qualifier, CARS:


switch(myCar){
case gmc:
break;
case buick:
break;
case bmw:
break;
}

Reason for this is documented in detail @

http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6191812

Posted in Core Java | Leave a comment

Java founder James Gosling joins Google

James Gosling, Java’s core creator, recently revealed that he was hired by Google. Although he said he did not know what he would focus on, he anticipated it as a “bit of everything”. The new position, although unnamed, became effective the same day. However, the hire will probably be centered on Android, with java being the core of the application system.

Google’s move has drawn attention because it came at the exact time the company was facing accusations of copied Java code from Oracle. Multiple instances of the Dalvik Java engine, which powers Android 2.2 and later versions, have code directly taken from Sun that is now owned by Oracle. If the lawsuit of Oracle was successful, Google would find itself forced to change the Java code, or search for a royalty deal. The worst case would be for Google to be banned on almost all Android devices. Such a situation could significantly affect its chances to compete with Apple.

It is not certain that Gosling has been hired to rewrite the disputed sequences of Java code. However, he would be uniquely qualified for such a task as he has the understanding of the deepest levels of the platform. Considering his experience, he could also help to improve Java code for future Android versions.

 

Posted in Core Java | Leave a comment