blogs.sun.com

Syndicate content
Welcome to Blogs.sun.com! This space is accessible to any Sun employee to write about anything.
Updated: 1 hour 13 min ago

New projects - New things to learn

1 hour 36 min ago
I recently was tasked with a new project -- to work on awareness and training around some technologies that help students learn the Java programming language. The projects are Alice.org, BlueJ, and Greenfoot. I've been spending several hours for the past few weeks trying to learn more about these technologies. I had fun using these tools to learn more about Java! I have learned to program a skater in Alice and worked on a maze in Greenfoot.  Students who use these tools find them fun as well!  Here's a blog entry from a college student who has been using Alice 3 in her programming classes.  I'm looking forward to learning more about these technologies and sharing them with others.

5 Years @ Sun

1 hour 51 min ago
5 years ago, Oct/8th/2003, I joined Sun China ERI, worked in Asian Globalization Center. It's really amazing time for me to stay at Sun and AGC. I love the open culture, awesome teammates and colleagues, comfortable and beautiful working environment, coffee and tea-times ...

It's a new start for me, I'm expecting my 10-years, 15-years, 20-years anniversaries

Note to Google: I Drink Too Much

1 hour 54 min ago

Dear Google,

Please help me. I'm prone to bouts of drunken foolishness. They usually end with me sending a string of ill-advised and highly embarrassing emails.

I feel good about sharing this with you, since you're already handling information about my health conditions, sexual preferences, and financial concerns.

Sincerely,
John Doe

1975 Elm Avenue
New York, NY 10041
Ph: 212-555-1278
SSN: 123-45-6789

Sound like a good idea? Then you're going to love Gmail's new feature.

OpenSolaris Print Manager

2 hours 36 sec ago

This is something I should have blogged about earlier, it is always very hard for me to do something that I have stopped doing for a little while and under time constraints. Better late than never...

The Phase II of the Presto project as detailed in section 4 of the paper had finally integrated into Solaris Nevada build 97 in mid August. A HUGE THANKS to Norm , Wendy, Calum for sticking in through phase I and II of the project. Though the greatest honors should be bestowed on Evan and Halton who resolved more than 90 bugs between them over the last few weeks before integration! Of course, they would be so great without all the bugs logged by Conny Cheng .

So what are the features in this release:
o A shinning brand new Print Manager which supports Auto Detection of local USB printer.
o It also auto-discover network printers when this service, svc:/network/device-discovery/printers:snmp is turned on
o Added queues are automatically reflected in the Print Manager Queue window.
o The Print Manager also provides a Printer Group view and a job view.
o The print system supported is LP, no CUPS yet (just to disappoint a few, sorry)

Details of the Printer Group is described in the paper above and also in my previous blog

Thanks to Juanita and Calum, we also integrated the Online Help into Nevada 99. Thanks go to Matt for dealing with the yelp required format. This has been truly a team worked project! It has been GREAT experience when there were times when I thought I would never see the end it

Yup, I Won!!!

2 hours 4 min ago


So we as CAs are taught so many things from Sun folks .I am yet to see people more humble than them!! (If they even exist)
.Now that I was (And still am) doing my Internship as a CA I got an opportunity to work with
Moinak Gosh (The architect of Belenix) over the last Summer.

The project aimed at providing a "RAM based boot for Belenix0.7" . The complete details can be found a few posts down.!
But when the "Opensource Community Innovation awards" was announced, it was like a hot cake  thats was too good to let go.And so I sent my works on Belenix .
And what do you ,I WON!!                                                                                                                        The Winning contest entries are announced here . (perhaps it was the best day yet)
A brief Intro of all the Award recipients are here.

PS: Well that day was beyond belief .What followed in the evening and all through the night was perhaps "pure delight of Insanity" (If you know what i mean ) 
A hearty Thanks to everybody who helped me!

SUN Rocks!!!!!

OpenSocial 0.9 Input

2 hours 23 min ago

Do you have input to improve OpenSocial? If so, you're in luck. Dan Peterson sent out a call to start the ball rolling on the OpenSocial v0.9 Specification. For newbies he discusses the specification process. He also gives a recap of likely changes in v0.9.

He's looking to gather all ideas by this Friday (October 10th). So if you've been itching for a feature, now is the time to send your ideas in!

Blastwave and OpenSolaris Mirror in Tokyo

2 hours 23 min ago
Nice to see demand growing for a local Blastwave and OpenSolaris mirror here in Japan.

Final Review for GlassFish v3 Prelude Documentation Starts Now

2 hours 32 min ago

The final drafts of the GlassFish v3 Prelude documentation are available now from the GlassFishDocumentation Comments Wiki. For a list of documents to review, consult the section Guides and Tutorials - Ready for Review on the wiki page.

As the review is starting a day late, the deadline for comments is now end of day Monday, 13 October 2008.

Members of the GlassFish documentation team have asked subject matter experts individually to review sections of the documentation that apply to their area of expertise.

If you have been asked by a member of the GlassFish documentation team to review a particular section of the documentation, or are interested in the GlassFish v3 Prelude documentation, please set aside some time this week to review the documentation. The quality of your reviews has a major effect on the overall quality of the documentation.

Thank you

Paul Davies,
GlassFish Documentation Team

セミナー「川口耕介、メトロを語る」残り20席です

2 hours 49 min ago

ご本人が既に告知済みですが、10月14日(火)に「川口耕介、メトロを語る」と題して Project Metro のセミナーを実施します。

月に一度の Java Hot Topics セミナーの特別編です。

2 時間で学ぶ今月の Java ホットトピック (10月特別号) :川口耕介、メトロを語る

川口耕介、メトロを語る

と言っても地下鉄の話ではありません。GlassFish コミュニティで活躍中の 川口耕介が今が旬のフレームワーク Metro を連れて日本にやってきました。 最初はシンプルなサービスから始めて、高度なセキュリティやトランザク ション、.NET 連携といった機能は必要に応じて追加、という Metro の特徴 をアーキテクト自らがデモを交えて紹介します。Web サービスは難しそう、 使いどころがわからない、とお悩みの皆さまはもちろん、バリバリの Web サービスエンジニアの方も奮ってご参加ください。

Project Metro の「コアのアーキテクチャの設計と実装を担当していた」という川口さんに直接質問をぶつけてみたい方、参加登録お待ちしております。

早くも残り 20 席です!

Blogs, Bloggers & Blogging

2 hours 57 min ago

We hosted Word Camp New York in our offices on Sunday - Matt Mullenweg spoke about the "State of WordPress" and in a word, it's strong. That was clearly visible from the crowd in the offfice, we had nearly 140 people spend their day with us listening, talking, participating. I heard a lot of good things from how to make your blog more effective to video in blogs. I really enjoyed hearing about how WordPress is being used and meeting a lot of the participants.

Special thanks to Jonathan Dingman to getting this organized and Hal & the Divas for getting it going. The presentations and a video will be posted on the website as soon as they're available.

Provisioning With iSCSI and Solaris ZFS in 10 Minutes

2 hours 59 min ago

This Sun BluePrints article describes how to quickly provision an iSCSI array with ZFS in both Solaris 10 and OpenSolaris environments. 

Can't wait...

3 hours 3 min ago
...to play around with the new VirtualBox Version. In the next version hopefully it will be possible to use SATA disc images with a OpenSolaris client. Then I could test ZFS with several disc images...Useful? no - but fun. To play around with hotspares, delete disc images on the host, RAID-Z, RAID-Z2, test thumper disc configurations (which does not make sense I do not have to think about hot spots, where to position disc :-))

Taxation Without Representation

3 hours 5 min ago
Some absolutely devastating videos from David Walker, the former Comptroller General of the United States and head of the Government Accountability Office from 1998 to 2008. He comes right out with the taxation without representation bit in the first clip. I seem to remember a little revolution around that phrase, don't you? It was a while back. You know Obama, McCain, Palin, and Biden wouldn't last 30 seconds in a debate with this dude. Not 30 seconds. But he's not debating the pols, though. He's trying to press for change using every available tool he can find. And, sadly, he recognizes that politicians need "cover" to make any serious movement in reforming the financial system of the United States. Cover. I'm going to keep an eye on this guy. He seems, oh I don't know, several billion times more credible than any leader I've seen messing things up the last two decades in Washington.

Dynafaces Plugin Renamed

3 hours 15 min ago

Hi all,

One thing that was brought to my attention these past few days is that the Project Dynafaces plugin has been renamed in the Plugin Manager. It's new name is:

Project Dynamic Faces Ajax Components and Samples

I realize that this is a small change, but it could affect search results if you enter part of the old title.

Cheers!

--James

New Nokia S60 Touch Enabled Emulator

3 hours 15 min ago
Few days ago Nokia has released new version of Symbian S60 emulator. It has many improvements but what is really important touch screen support is one of it. We should see first device from Nokia based on this OS soon (Nokia 5800) but before it is aviliable on the market everyone can try it by installing S60 Platform SDKs for Symbian OS. This platform has implementation of Java ME and it was really interesting to see how Nokia deals with touch enabled MIDP components. I have to say I'm positively surprised. All MIDP components are "touch-enabled" and what is very important easy to use. Also I really like Look and Feel of these components. I've made a few test and it looks like all components are big enough to operate them using fingers so no need for stylus :). First screenshoot shows MIDP UI in Landscape mode. All changeable/editable elements of this UI can be operate using touch screen.

Landscape

Normal

Second screenshot shows same UI in "normal" mode.

Application based on Canvas in landscape mode.

One annoying thing about this platforms is strange keypad in applications which use Canvas. I understand that most of the current Java ME apps based on canvas does not support touch screen but on the other hand it is very ugly and breaks composition of the UI. I hope it is possible to switch this keypad off somehow if support for touch screen is available in particular application. If you'd like to try this new cool platform with Netbeans Mobility all you have to do is to add it to the list of Java Platforms in Netbeans using "Tools > Java Platforms > Java ME MIDP" then point folder with installed S60 Platform SDK and you ready to go.

More information about new S60 Symbian platform

Sun Microsystems and GigaSpaces Break 1.3 Million-Messages-Per-Second Benchmark on Sun Server with CoolThreads Technology

3 hours 24 min ago

New Benchmark in High Performance Computing Meets the Needs of Capital Market Customers


NEW YORK, NY High Performance on Wall Street, September 22, 2008 Sun
Microsystems, Inc. (NASDAQ: JAVA) and GigiSpaces today announced new
benchmark performance results that address the scalability needs of
capital market customers. In rigorous performance tests, the
energy-efficient Sun SPARC Enterprise T5240 Server
processed 1.3 million transactions per second with 60 concurrent
clients to achieve an improvement of up to 40 percent over competing
multi-threaded platforms. The average throughput per client thread was
sustained at about 21,000 transactions per second. When matched against
comparable x86 systems, users get up to five times higher performance
in half the space and 2.5 times better performance per watt

Bar Camp in München (11-12.10.2008)

3 hours 31 min ago

 

Willkommen zum BarCamp München 2008 am 11-12.10.2008!

Schauen Sie doch mal rein. Es wird viele Diskussionen zum Thema Internet und Startups geben. Es sind noch einige Plätze frei. Die Sun Microsystems GmbH in Heimstetten ist "Location Sponsor" und freut sich auf viele interessante Diskussionen. Der ganze Event ist äusserst dynamisch. Wir (Sun) werden gerne Internetadrchitekturen diskutieren. Ihre Erfahrungen sind genauso wichtig. Bis zum Samstag

- Stefan Schneider

Mems Gyro

3 hours 41 min ago





So I'm catching up on some of my "Stupid SPOT Tricks" and figured I should post this one. A long time ago now I got a couple of the IDG300 Dual Axis Mems Gyros from Sparkfun. Awesome little part. As usual, frighteningly easy to work with.


I wired it up to the Sun SPOT as follows:





Gyro Wiring



Gyro Breakout Board

Sun SPOT Pin


3.3V

+3


GND

GND


Yout

A0


Xout

A1


Vref

None




For those of you that do better visually:




The wiring, as you can see, was simple and straightforward. The code, as usual, is as well.

Upon running the code the first time, I noticed that the gyro has a small amount of 'jitter.' The readings vary by a small amount even when the device is perfectly still. So I had to account for the jitter and quiet it somewhat. The basic class is very small:


public class MemsGyro extends MIDlet {
private static final int C_SLEEP = 100;
private static final int READ_SLEEP = 100;
private ITriColorLED [] leds = EDemoBoard.getInstance().getLEDs();
IScalarInput yout = EDemoBoard.getInstance().getScalarInputs()[EDemoBoard.A1];
IScalarInput xout = EDemoBoard.getInstance().getScalarInputs()[EDemoBoard.A2];
private int xDiff, yDiff;


protected void startApp() throws MIDletStateChangeException {
System.out.println("Hello, world");
new BootloaderListener().start(); // monitor the USB (if connected) and recognize commands from host
ISwitch sw1 = EDemoBoard.getInstance().getSwitches()[EDemoBoard.SW1];
calibrateGyro();
int x=0,y=0;
try{
while (sw1.isOpen()) { // done when switch is pressed
leds[0].setOn(!leds[0].isOn()); // Blink LED
int tx = xout.getValue();
if(tx > x+xDiff || tx < x-xDiff){
System.out.println("X Rotation: " + tx);
x = tx;
}
int ty = yout.getValue();
if(ty > y+yDiff || ty < y-yDiff){
System.out.println("Y Rotation: " + ty);
y = ty;
}
Utils.sleep(READ_SLEEP);
}
} catch (IOException ex) {
ex.printStackTrace();
}
notifyDestroyed(); // cause the MIDlet to exit
}

And the method I added to account for the jitter is:


private void calibrateGyro(){
int xMax = 0, yMax = 0;
int xMin = 100000, yMin = 100000;
leds[0].setRGB(100,0,0); // blink red while calibrating
try {
for(int z = 0; z<100;z++){
int y = yout.getValue();
int x = xout.getValue();
if(y > yMax)
yMax = y;
else if(y < yMin)
yMin = y;
if(x > xMax)
xMax = x;
else if(x < xMin)
xMin = x;
leds[0].setOn(!leds[0].isOn()); // Blink LED
Utils.sleep(C_SLEEP);
}
xDiff = xMax - xMin;
yDiff = yMax - yMin;
System.out.println("X Variation: " + xDiff + " Y Variation: " + yDiff);
} catch (IOException ex) {
ex.printStackTrace();
}
leds[0].setRGB(0,100,0); // otherwise blink green
}

And that just samples the Gyro for a few seconds, and determines what the maximum variation is while the Gyro is 'quiet' and then uses that later to tell us if the Gyro is actually on the move.

Now, what you use this for is entirely up to you!


[ Down with categorical imperative! ]

Editing Help, Please!

3 hours 42 min ago

I just saw this news article:

    Police say Kentucky woman kills self, daughters

A tragic occurence to be sure.

But, my first thought was this was a joke lifted from a M*A*S*H episode... the one where Major Burns he'd commit suicide and then kill Hotlips O'Houlihan if she ever cheated on him.

For crying out loud, this is from the AP appearing on a Forbes website.

Voting in California

3 hours 47 min ago

We recently became citizens, so this was the first election in which we'd be eligible to vote. Probably somewhat enthusiastically I sat down with the thick set of documents and tried to figure out what to vote for.

What was surprising to me, voting for the first time, was that did I not only get to pick the President (well, I guess they'll let some other people have a say too , together with various Senators etc. They also have a bunch of propositions which I can be for or against. So it's not like I just get to put a tick in one box; I have to read a fair sized telephone directory of arguments, then try to make sense of which argument is most convincing.

Most of the arguments are, unfortunately, just that. Here's some quotes both for and against one of the propositions "Don't believe the scare tactics.", "[Proposition]... over time saves California $2.5 billion.", "[Proposition]... will massively increase costs to taxpayers.".

Anyway I do not blog to discuss politics. But I figured it might be useful to provide a table showing the various propositions and the positions adopted by some of the political parties.

The Republican and Democratic parties just give out a list of the propositions and whether they are for or against them. I've included a link to the Green party which includes some analysis behind their decisions and a link to Pete Stahl who came up first when I searched for other discussions of the propositions. PropositionDemocratic Republican Green Pete Stahl 1A Safe, Reliable High-Speed Passenger Train Bond Act for the 21st Century. YesNoNo positiontbd 2 Treatment of Farm Animals. Statute. YesNoYesYes 3 Children’s Hospital Bond Act. Grant Program. Statute. YesNoNoNo 4 Waiting Period and Parental Notification Before Termination of Minor’s Pregnancy. Constitutional Amendment. NoYesNoNo 5 Nonviolent Offenders. Sentencing, Parole and Rehabilitation. Statute. YesNoYesYes 6 Criminal Penalties and Laws. Public Safety Funding. Statute. NoYesNoNo 7 Renewable Energy. Statute. NoNoNoNo 8 Limit on Marriage. Constitutional Amendment. NoYesNoNo 9 Criminal Justice System. Victims’ Rights. Parole. Constitutional Amendment and Statute. NoYesNoNo 10 Bonds. Alternative Fuel Vehicles and Renewable Energy. Statute. NeutralNoNoNo 11 Redistricting. Constitutional Amendment and Statute. NoNo positionNoYes 12 Veterans' Bond Act of 2008. YesYesYes, with reservationsYes

There are some other political parties which I've not included. The peace and freedom party is broadly in line with the Green party. The Libertarian party basically recommends voting No for those that it actually cares about. Neither of these gives any information about their motivation.