Explicitly and without apology a marketing vehicle MaryMaryQuiteContrary

Friday Oct 29, 2004



Get ready.

If you're a Sun Certified Professional for the Solaris Operating System you're about to feel the MaryMary love!

I don't just talk the talk, people. I walk the walk.

Ask Dave K.

He got a brand new Java bomber jacket from me.

Why?

Because he's Sun Certified.

And because he's got a totally awesome story.

And because, as we've said before, I personally love and adore Sun Certified Professionals.

Here we go.

Paging all Sun Certified Professionals for the Solaris Operating System.

I'd like to give one of you lucky guys or gals...

a Sony PlayStation2 (!!)

playstation 2

Can you even believe it?!

I had to do a little negotiating to convince the power(s) that be to let me give this thing away in the blog. (All I have to say is that I go to the wall for you people.)

See, somebody gave us this thing. And since I'm your crazy Type-A mother, I don't let my kids watch TV. Much less play video games. So we've got this PlayStation2 and we're never going to use it. I figure, it's a nice present. I bet it's worth a chunk of change. So I worked my magic. And voila, we've got a really hot prize for Friday Free Stuff!)

So, what do you have to do for your chance* to win* this fabulous prize*?

Take this test

Question 1. Are you a Sun Certified Professional for the Solaris Operating System?
If you answered yes, go to question 2. If you answered no, you're out of luck. Come back next week. We'll have a puzzler. maybe.

Question 2. Would you like to tell me how being Sun Certified for the Solaris Operating System has saved your bacon; got you the job/raise; made you smarter; impressed the ladies (or gents) ;-)
If you answered yes to the question, read on. If you answered no, game over. No PlayStation2 for you. Come back next week for your chance at a T-shirt.

Post your responses to Question 2 to the comments section of this blog entry for your chance* to win*.

REALLY IMPORTANT: By playing this week, you are consenting to letting me verify that you really are a Sun Certified Professional for the Solaris Operating System, and not some schmuck out to score the PlayStation2.

I will award the prize on Monday, November 15.

Because I have a feeling that that's going to be a very special day for Sun Certified Professionals for the Solaris Operating System. And all the rest of us.

have a great weekend!

mary

p.s. full disclosure: we do own a gameboy because on trans-Atlantic flights with the kids, all rules go out the window. it too was a gift. i don't buy stuff like that. i buy my kids books and software. and when they get bored, i tell them to go outside and play. my family and friends (who feel sorry for my boob-tube deprived children) buy them stuff like gameboys.

p.p.s. sorry for lifting the picture from the net. i know that's a little lame-o.  i'll take a pic of the playstation i'm giving away in the box as soon as i can. not this weekend, though. it's Halloween and i've got three kids under age of 6. we're going to be very busy. but i've got it on my list of things to do... will get to it as soon as i can...


*Friday Free Stuff is not a contest. It's me giving away stuff that I personally own to somebody I choose. I pay for postage with stamps that I buy at the post office.




There is a very interesting and provocative commentary in LinuxInsider....
I assume this is Paul Murphy
...written by Paul Murphy about technology and the ballot box.

So let's turn back the clock about four years -- we're at my house. Thanksgiving dinner. It's my immediate family... about 15 people... lots of kids running around... nobody's really watching them and at the same time everybody is. We're done eating. But everybody is still sitting at the table. (except the kids, who are running all over the place) Very heated discussion going on. We got both sides of the political fence in my family. We're discussing the presidential election. And everybody feels passionately about their point of view. But unlike all our other Thanksgiving, Christmas, Easter, etc. etc. big family dinners, we weren't talking about the merits/failings of one side or the other.

We were talking about the integrity of the voting system itself.

And frankly (if you want my personal point of view) that's when we get into really scary territory.

So that's what Murphy's column is about. Technology and the ballot box. It's really fascinating.

I'd like to do a little re-print-without-permission here.

Ideal E-voting Technology (the Murphy view)

Imagine a system that has Sunrays in the voting booths, connected directly to state level data centers, with two national data centers linking the state centers. Within each state, voters can go to any polling place, identify themselves and their place of residence, and see only the ballot appropriate to their home address. When they use the software to vote, three things happen: a paper ballot is printed and automatically dropped in the right ballot box; their votes are added to the totals at the state and national levels; and the combination of name and address used is marked as "already voted" in the database.

(I forgive you for spelling Sun Ray wrong, buddy.)

You know what, I favor that. I vote for Sun Rays at the polls.

I'm Sun Ray Girl.

And I know for a fact that the candidate I'm in favor of  would support...

duke on a sun ray
(photo courtesy Thin Guy)

... as he's already got a position paper about putting Sun Rays in the White House.

On November 2, vote Duke for president.

(and don't leave any hanging chads.)

mary

p.s. Friday Free Stuff coming in a few hours. Please stay tuned.

p.p.s.  I've have a new friend -- a fellow named Thin Guy, who is my new favorite blogger. ( Hal's still my favorite too. So it's a shared title.) In the precious hours that I've known him, Thin Guy has put Duke (and my mug) on a Sun Ray. And a song in my heart. Welcome, Thin Guy to that exclusive and tightly-knit fraternity of Techno Celebs who are my close personal friends.



Thursday Oct 28, 2004



coutdown.

we're just seven working days from this season's singular must-attend event for Java developers on the eastern seaboard of the United States of America.

Sun Tech Days -- NYC

It's November 9 and 10 at the Javitz Convention Center in New York City.

James Gosling is going to be there.

Along with a who's who of techno celebs extraordinaire(s).

Including Rags.

my pal rags

And I managed to score a trip to go too, if you can even believe that!

I'm going to be doing live event coverage for you, people. Via the blog.

But there's nothing like being there in person.

Register today!

So in addition to a jam-packed curriculum, attendees have the opportunity to participate in hands-on labs.

Here's an overview of the sessions (delivered to you using my most favorite marketing technique which has taken years to hone -- copy; paste):

Session 1: Day 1, 10:50am to 12:55pm (Self-paced - Development Tools)
Building Real-life Web Applications Quickly and Easily With Sun Java Studio Creator (120 minutes)
Discover and Play with new features of NetBeans 4.0 Beta 2 (90 minutes)
Develop J2ME applications using NetBeans 4.0 Beta 2 (30 minutes)
Building Enterprise Applications using Sun Java Studio 6 Enterprise (60 minutes)

Session 2: Day 1, 10:20am to 12:30pm (Self-paced - Desktop and Mobility)
The Tiger Roars! Learn The New Functionality of J2SE 5.0 (90 minutes)
Monitor your application through the "jconsole" utility of J2SE 5.0 (60 minutes)
Instrument your application through JMX (90 minutes)
Rapid Client Construction with JDNC (60 minutes)
Advanced Wireless Java Platform Development Using MIDP 2.0, Wireless Messaging APIs and Mobile Media APIs (120 minutes)
Build a complete End-to-End Application using J2ME and J2EE Technologies (45 minutes)

Session 3: Day 2, 01:10pm to 03:00pm (Self-paced - Web Application Frameworks and Web Services)
Basic JavaServer Faces Programming Level 1(90 minutes)
Basic JavaServer Faces Programming Level 2(90 minutes)
Basic Struts Programming (90 minutes)
JavaServer Faces and Struts Integration (60 minutes)
Web Services Programming using Sun Java Studio Enterprise Edition (120 minutes)

space is limited, people.

register today to secure your spot.

mary

p.s. i think i forgot to mention it's FREE!




halloween header

a coup.

a stinkin' coup.

guess whose blog java.sun.com is pointing to from the front page this very minute, even as we speak??

seems you lucky bumper sticker winners ...

image of the bumper sticker

aren't the only ones who find Duke For President wire story mildly entertaining.

oh happy day!

mary

p.s. guess who got a voicemail from Spiderman?? that's right, me. Spiderman actually called me and left me a voicemail, people! you can be darn-tootin' sure I "touched 3 to save this message." we'll be listening to that one over and over and savoring the reality that a techno celeb actually called me and left me voicemail.

p.p.s. bumper stickers, along with all of the other huge massive quantities of Free Stuff that I had sitting in my office is on its way to you. I sent all of it yesterday.

all the free stuff i just mailed

I'm not going to tell you how much it cost because the love of my life occassionally reads this blog and he'd be appauled to learn how much of our personal money we're spending on sending you guys free stuff. i'm gong to try to manage that reaction by positioning it as a tax write-off. i'm a marketing girl. i've made a career out of "positioning" stuff. i don't think it's gonna fly, though. wish me luck.




Wednesday Oct 27, 2004



here's your news digest for today. please note i've included (second item)  a perspective written by a certain individual who happens to be a bookmarked blogger of mine.

berlind in glasses

(between you and me, my man Berlind could use a new look in the eye glasses department. nice teeth though.)

Sun Aims Virtualization at SMBs
InternetNews.com, 10/26/04; Clint Boulton
http://www.internetnews.com/ent-news/article.php/3426531

Sun enhances its mid-range storage server portfolio with its new StorEdge
6130 array geared toward small and medium-sized businesses. Sun Network
Storage Marketing VP James Whitemore says the core value proposition of the
6130 lies in providing data services previously only offered in high-end
machines. The 6130 is billed as the "baby brother" to the StorEdge 6920
launched last month. Whitemore adds, "We are a systems company and we
believe that the true advantage of Sun in the storage world is from our
approach to systems and the ability to design and implement systems which
enable data management from the creation of data all the way through the
storage and deletion of data."

--------------------------
Why Sun's JDS Deserves a Try
ZDNet, 10/26/04; David Berlind
http://news.zdnet.com/2100-3513_22-5427026.html

In an opinion piece, Berlind reviews the recently released Solaris-based
version of Sun's Java Desktop System (JDS) Release 2. Berlind writes, "At a
subscription price of $50 per year, any software product that includes an
operating system, a full-blown productivity suite, Exchange-compatible mail
and calendaring, a complete suite of Java development tools and upgrade
protection via automatic updates, is a bargain." He concludes, "Now is a
good time to bring both the Linux and Solaris versions (of JDS) in for
evaluation. Not only will you get to experience an upgrade cycle in the
next six months, but you'll get a better sense of the value that JDS can
deliver if the list of supported hardware expands. Will it be more of Sun's
hardware or will the company finally recruit some OEMs? The next six months
will be telling."

--------------------------
Products Unveiled at Storage Networking Show
InfoWorld, 10/27/04; Bob Francis
http://www.computerweekly.com/articles/article.asp?liArticleID=134590&liArti
cleTypeID=1&liCategoryID=1&liChannelID=5&liFlavourID=1&sSearch=&nPage=1

Sun is among several companies announcing deals and introducing new products
at the Storage Networking World trade show in Orlando, Fla. Under an
agreement between Engenio Information Technologies and Sun, Engenio will
provide Sun with new modular storage technology and will co-develop future
Sun storage products.
_________________________________________________________________

Tuesday Oct 26, 2004



every blogger and their mother is getting into the whole "i-know-who-you-need-to-vote-for-in-the-US-presidential-election."

so let me just go ahead and jump on that band wagon.

image of the bumper sticker

:-)

mary

p.s. did you see that the Java Everywhere party is running radio ads? and that there's a wire story on Duke's candidacy.  I tell you it's a full-on get-out-the-vote push.


halloween header

We're starting a new feature here at the MaryMaryQuiteContrary blog.

In the news.

This is where I give you (gratis) a regular briefing of the top news stories. Just think of me as your finger on the pulse. ;-)

Here's today's top stories:

Vodafone Makes Sun Its Preferred IT Vendor 
eWeek, 10/26/04; Peter Galli
http://www.eweek.com/article2/0,1759,1683370,00.asp

Sun and Vodafone sign a global framework agreement that gives Vodafone
access to Sun's hardware, software and services product line. Sun VP for
Java Web Services and Development Platform Strategy Joe Keller says, "The
global purchasing agreement makes it easier for Vodafone operating companies
around the world to evaluate, acquire and deploy Java Enterprise System and
Java Desktop System. Vodafone signed this deal with Sun to pay one fee,
upfront, and can then deploy as much software, depending on needs, over
time."

--------------------------
Sun: RFID Deal with SeeBeyond Puts It 'Way Ahead'
eWeek, 10/25/04; Jacqueline Emigh
http://www.eweek.com/print_article/0,1761,a=137949,00.asp

Sun aligns with SeeBeyond to create an RFID middleware solution that is
targeted at the retail market. The new solution will combine Sun's
directory and identity management services with SeeBeyond's capabilities in
areas ranging from business process management (BPM) to back-end Web
services integration. Roger Nolan, Sun senior director of Web services
integration, comments, "We're way ahead of IBM, HP and Microsoft on RFID,
because we already have the products."

--------------------------
Sun Delivers NetBeans 4.1 Access Release
InfoWorld, 10/25/04; Ed Scannell
http://www.infoworld.com/article/04/10/25/HNnetbeans41_1.html

Sun ships an early access release of its NetBeans IDE 4.1 to developers.
The release includes the Sun System Application Server Platform Edition 8.1
beta that can be used as a runtime and with NetBeans to help guide the
developer and to automatically build the underlying J2EE-compatible
infrastructure.

--------------------------

your welcome. it's my pleasure.

mary






three things to talk to you about today.

1.

makeover graphic
check that out, people!!! i got an incremental make over.

you'll recall that i've got a backpack on the table...

picture of backpack

... it goes to the person who gives my blog a make-over. i've got certain (pretty straightforward) "design requirements." and i know with certainty that some of you are actually thinking about hooking me up (which would in turn lead to my hooking you up with a back pack. maybe. if i like your design best).

anyway, in the meanwhile, my close personal friend Bruce, who happens to also be a celebrated author, former Friday Free Stuff winner and techno celeb extraordinaire hooked me up with an interum fix.

he trimmed my figurative bangs here.

and i LOVE it. makes me feel all goooooooogle ish, you know.

puts me in the spirit of the season.

so i'd like to formally (and publicaly) thank Bruce. You too can express your gratitude and appreciation by buying his widely acclaimed book.

Issue 2: All I know is that there is nobody on this unwashed Internet who hooks up blog readers like I do. Nobody.

I deliver, people.

Evidence:

all the free stuff i've got to send

check out what i've got to take to the post office and get mailed (hopefully today).

which brings me to this last call.

Paging the following Sun Certified Professionals: (whom I personally love and adore, because I personally love and adore all Sun Certified Professionals and I will prove it on Friday so keep that on your radar)

  • Bob
  • Jeff Dillon
  • Nikita
  • Lasse
you need to send me your mailing address so that i can get your stuff to you.

And also paging:
  • Balakumar
  • Motasem
  • Ed
You're not going to get your bumper stickers in time for Election Day if you don't send me your mailing address.

i'm going to make a run to the post office this afternoon, people. this train is leaving the station. get onboard if you want this stuff soon. otherwise, it's going to be the next time i get to the post office in a couple weeks or so.

use the following formula to send me your mailing address: first.last@sun.com. My first name is Mary. My last name is Smaragdis. I will use your personal info for the singular purpose of copying it down onto the envelope that's got your stuff in it. I won't share your info with anybody. I won't use it for any other purpose whatsoever. I delete the mail after I've copied it down.

(don't even think about impersonating a winner, people. it won't work. and i'll black list you if you try.)

3. Have you read Jonathan Schwartz's blog lately? it's so good, you guys. you gotta bookmark it. or if you're one of those sophisticated types, add it to your RSS feed. Jonathan (we're on a first name basis) is our Chief Operating Officer. And he's got a blog. (Which means he and I have something in common, if you can even believe that -- aside from being Sun employees, that is.)

Anyway, the take-away here is that his blog is very interesting and provocative. And you get some serious scoop if you're a Jonathan blog reader. So I would highly recommend that one to you.

(trying to help the man out here. I know what it feels like to be eating John Clingan's dust. The Clingan Zone unseated Jonathan this week as the most popular blog on blogs.sun.com. i'm a distant third :-( Just trying to give Jonathan a hand here.  ;-)

And that concludes our official business for today.

In closing, I'd like to tell you guys that I am married to the most fabulous man on the face of this planet who rocks my world. I should stop buying lottery tickets because I already hit it big. If you only knew how good I've got it, ladies. If you only knew. But I keep that a closely guarded secret ... for the obvious reasons. You know, it's really a lot of fun being MaryMary.  I'm one really, really lucky girl.

:-)

mary

Monday Oct 25, 2004



The mother of all techno celeb sightings is going to happen on November 9. (and 10th)

That's when none other than Dr. James Gosling himself will be keynoting at Tech Days New York at the Javitz convention center.

It's a two-day techno celeb fest, featuring a curriculum so crammed with technical content it will make your figurative (virtual) bookshelf creak under the weight of it all.

and get this.

it's free!

(at least I think it is; I registered for it and nobody asked me for a credit card. so i call that free. better get in now while the getting's good, people.)

but wait, there's more... because i'm an insider and i have mastered the art of getting inside scoop, i happen to know with certainty that the list of speakers at this thing is a who's who of who's hot.

including a certain techno celeb extraordinarie ...

my pal Rags

who's got an afternoon session on Wednesday you won't want to miss.

and that's a world exclusive, people. you heard it here first.

register today!

:-)

mary

p.s. can you guess who else is going to be there taking lots of pictures and blogging about the whole thing?

So if James and Rags aren't incentive enough... you get to meet me if you go to this thing.

not that that's incentive, actually. maybe just the opposite.

how's this: go so that you can ignore me, like all the other techno celebs do! i'll publish my schedule of what sessions i'll be attending on the blog. so you'll know precisely when/where to go if you want to ignore me. ;-)


Friday Oct 22, 2004



(or at least the first 35 of you)

check out what just moved across the JP wire:

SANTA CLARA (JP) -- As the US presidential race swings into high gear, a surprise newcomer has joined the ranks of the political front-runners -- Duke. Campaigning on a platform of recalling cost and complexity and eliminating the desktop tax, Duke is gaining significant support in the nation's must-win states.

Though a newcomer to the national political scene, Duke -- the lovable mascot of Java technology -- is the official candidate of the Java Everywhere party. He cut his political "teeth" in the California gubernatorial election where he mobilized an impressive grassroots organization.

His momentum in the presidential race is raising eyebrows in the war rooms of other mainstream candidates.

"We are closely monitoring developments," said one high ranking major party official who was quoted on the condition of anonymity.

Duke, who can trace his lineage directly to Dr. James Gosling, has been spotted on the campaign trail pressing the "flesh."

While the candidate is enjoying considerable momentum given his late entry into the race, his campaign is grappling with a high-profile controversy surrounding a radio ad that was created by a Sun Microsystems employee on company time.

The spot, which touts the freedom and momentum of the Java platform, is a thinly-veiled endorsement of Duke's presidential candidacy, detractors charge.

The Federal Election Commission is evaluating whether the spots violate the McCain-Feingold act.

Copy-all-right 2004 The Java Press. No rights reserved. This material may be published, broadcast, and redistributed

Can you even believe that?

It gets better.

I happen to have in my possession 35 Duke for President bumper stickers ...

picture of the bumper sticker on my car

... which I will send to the first 35 people who post a comment to this blog entry telling me why they are voting for Duke. (you don't have to be a US national to vote in this election ;-)

fun, fun, fun.

bon weekend!

mary

p.s. Friday Free Stuff is not a contest. it's me giving away stuff that I personally own to people I choose. I pay for shipping with stamps that i buy at the post office.

p.p.s. extra points (and probably extra stuff) if you listen to the radio ad and tell me how much you love it.

p.p.p.s. i love you too.

The Jacket!

We're giving away the jacket as part of this extra special MaryMaryQuiteContary Friday Free Stuff extravaganza!

You might recall that I personally love and adore Sun Certified professionals for Java technologies. In fact, I love Sun Certified professionals for Java technologies so much that I ponied up my brand new, never-been-worn, super specacular Java jacket to prove my love. In a "contest*" that I hosted, I invited all Sun Ceritifed professionals to tell me how being Sun Certified for Java Technology has saved their bacon; got them the job/raise; made them smarter; impressed the ladies (or gents) ;-)

Well, people the response was pretty staggering.

(You gotta read comments, people. There's so much that happens in the comments. It's the back room at the party where all the cool people hang out.)

And so, it is my great pleasure to award the jacket to Dave K, whose story about how being Sun Certified saved his house brought tears to my eyes (and made the rounds big-time on the internal email circuit). We reprint it here (without permission):

  • My Sun Java Certification saved my house! ...Seriously, it did!

    In April of 2002, I joined the ranks of the (far too) many computing professionals who suddenly found themselves out of a job when their employer realized the bubble they were riding on had popped. Being the sole income for the family, I was "a bit" stressed, however, I was still pretty upbeat because I had (what I thought were) marketable skills, an excellent work ethic, and well... dang it, I'm just cute.

    As you can probably guess, cute don't cut it in the real world. I spent five and a half months looking for a job and watching my bank account get smaller and smaller. Eventually, we got to the point that we decided to sell the house, move back to Nebraska and have my wife and kids live with my parents in the country while I sleep on my brother's couch in the city and look for work. My wife and I decided that on Friday we would talk to a realtor and put the house on the market. And then...

    Flashback: 2 months earlier.

    With my ego effectively reduced to the size of a tadpole, I started trying to figure out what "they" were looking for that I wasn't providing. I knew I interviewed well, but the problem was that I simply wasn't getting past the resume screening to even have a chance at the interview. I had heard that having a certification on your resume would NOT get you a job but it might get you an interview. Sounded like exactly what I needed.

    I immediately began studying for the Java Programmer certification and quickly found out that there was much more Java than I had yet run into. It still wasn't helping me in my job search but I felt like I was at least DOING something to make progress. Plus, I was actually learning... ...A LOT! Finally, after many I-haven't-studied-this-hard-since-college weeks, I felt I had filled in the critical gaps in my knowledge and took the leap to schedule the exam.

    The day of the exam came, and my days of NOT being Sun-certified went. I passed the exam and prepared myself to wade through the job offers that were due to start pouring in. When I walked out the front door, I found... ...no line of prospective employers waiting to swoop down on me and my certification. "Man, this economy is messed up. I guess I'll just have to..."

    Flashback: 2 weeks before Exam Day

    I had an interview for a contract Java position and really did well. During the interview, certification was mentioned in passing and I dropped in that I was scheduled to take the exam soon. After the interview, I was told that it was down to me and one other person and could expect to hear back soon. I checked back periodically (frequent enough to appear enthusiastic but not so frequent that I would appear deranged) but still got the same answer: it's a tie, nobody wins yet. Fine. I had studying to do anyway.

    Flash-forward: Newly-certified

    I called the company I had interviewed with and left a polite professional message wherein I calmly informed the hiring manager of my recent certification and carefully avoided using the word "Yippee!"

    Flash-forward: Wednesday (2 days before meeting with the realtor)

    The phone rang and I got offered the job! It was only a six-month contract, but it was enough to let us keep the house! Furthermore, on my first day working, my boss told me that the Java certification (and the fact that I called to let him know about it) was what pushed me into the lead and into the job.

    Since then, that six-month contract got extended to last 18 months and eventually became a permanent position with the company.

    So... My Sun certification helped me get a job that saved me from having to sell my house.

    But, even more important than all that, it made my daughter think I was really smart. :)

But wait, there's more!

We've got a second-runner-up prize! A voucher for any Sun Educational Services exam beginning with a 310 prefex. (value: a lot but i'm too busy to look it up right now).

It is my great pleasure to award this voucher to Kurt Magoon! Kurt won the judges (me) over with his "almost zealot-like" affinity for Java.

  • Mary,

    I've been a software developer for over 15 years and written programs in many different computer languages. Back in 2000, my project team decided to develop a new application using Java (Swing) for the user interface and J2EE for our server components. I learned and enjoyed working with Java and writing Swing UIs. After a while, my team leader complained that I had pigeonholed myself as "just" a Swing developer. I did two things in the spring of 2002 in attempt to appease him. I got him to send me to JavaOne to help understand all of the different forms of the Java platform and I studied for and passed my Sun Certified Programmer for the Java 2 platform exam.

    Although I was initially trying to get my team leader off my back, those two events changed my view of the Java platform. I became excited about the language and the platform. I was amazed at all the things that could be done in Java. Studying for the test allowed me to obtain an understanding of the language that bled over into the day-to-day project work developing both Swing and J2EE components. I was able to help out co-workers with language questions.

    Did becoming “certified” help me get onto some better projects? I believe so. Did having it on my resume when I switched jobs help? It probably did. More importantly, I developed an almost zealot-like affinity for Java. I now seek out information about how Java is being used and how I can use.

But wait, there's even more.

Everybody else gets a t-shirt! (Yes, of course you too, Luke). Everybody except for Michael. Because I just gave Michael a t-shirt minutes agao for being so smart (see previous blog entry). So Michael gets a Sun Developer Network hat. (in addition to his previously won t-shirt).

And soooooo...... if you're one of my lucky winners (and you know who you are), send me email using the following formula: first.last@sun.com. firstname: mary; lastname:smaragdis. i need your mailing address. copy it down so that i can send you the free stuff. i won't use your personal info for any other purpose whatsoeve.r i won't share it. i'll delete the mail after i've copied it down

And if you can even believe this, there is even more to come as this special MaryMaryQuiteContrary Friday Free Stuff Extravaganza continues! Stay tuned...

mary

p.s. i think i'm starting to feel a little love for Sun Certified for Solaris professionals... just a vauge aching deep within.. who knows how that will manifest iteslef ;-)

p.p.s. i reserve the right to substitue the t-shirt with some other nice prize. because i didn't actually count to make sure i've got enough t-shirts. super busy. no time.

*i don't do contests. i use the word euphemistically. what's happening here is that i am personally giving away something that i personally own to somebody i personally choose. in this case, it's a very special Sun Certified professional somebody.  i pay for shipping with stamps that i personally buy at the post office.

The Friday Free Stuff extravaganza is about to begin.

first installment: the solution to last week's puzzler which comes to us straight from the personal (!) email accounts of techno celebs extraordinarie(s) Dr. Josh Bloch and Dr. Neal Gafter:

In last week's puzzler, you were given a library class:

public class Foo { 
   public Foo(int i) {
       ...;
   }
   ...
}

Because it's a library class, you have no access to its internals and you can't modify it. Suppose you want to write a subclass:

public class Bar extends Foo {
   private final int j;

   public Bar() {
       super(j = SomeOtherClass.f());
       ...
   }
}

Unfortunately this isn't legal. If you try it, you'll get this error message:

Bar.java:13: cannot reference j before supertype constructor has been called
       super(j = SomeOtherClass.f());
             ^

You were asked to refactor the program to achieve the desired effect, subject to the following constraints:

  1. Class Foo does not have an accessor to return i.
  2. You can't call SomeOtherClass.f() twice, as there is no guarantee that successive calls will return the same value.
  3. Your program must be thread-safe: multiple threads may invoke the constructor Bar() concurrently.
  4. Elegance counts.
  5. Don't code like my brother.

You did very well indeed! The winner was Chris Nokleberg who posted a correct, complete, elegant solution 26 minutes after Mary posted the problem. Twenty-six minutes! Can you believe it?

The basic idea of Chris's solution was to interpose a private constructor in between the public parameterless constructor and the superclass constructor

public class Bar extends Foo {
    private final int j;

    public Bar() {
        this(SomeOtherClass.f());
    }

    private Bar(int f) {
        super(f);
        j = f;
    }
}

This is exactly the solution that we were looking for. It's easy if you see it, impossible if you don't.

Second place goes to Michael Nascimento Santos, who came up with the following solution, in which the result of invoking SomeOtherClass.f() is stashed in a static thread-local variable prior to invoking the superclass constructor. The value can then be copied into the instance variable after the superclass constructor is invoked:

public class Bar extends Foo {
   private static class ThreadLocalCachedValue {
      private final ThreadLocal threadLocal = new ThreadLocal();

      public int setValue(int value) {
         threadLocal.set(new Integer(value));
         return value;
      }

      public int getValue() {
         return ((Integer)threadLocal.get()).intValue();
      }
   };

   private static ThreadLocalCachedValue cachedValue =
         new ThreadLocalCachedValue();
   private final int j;

   public Bar() {
      super(cachedValue.setValue(SomeOtherClass.f()));

      j = cachedValue.getValue();
   }
}

Michael submitted his solution a mere eight minutes after Chris. You guys are unbelievably fast! Michael's solution was, however, less elegant than Chris's. Kris Schneider submitted a similar solution to Michael's that avoided the use of a nested class by wrapping the ThreadLocal.set call in a static method on Bar. The ThreadLocal solution can be made a bit more elegant by using the new ThreadLocal.remove method added in JDK 5:

public class Bar extends Foo {
    private final int j;

    private static ThreadLocal<Integer> sleaze = new ThreadLocal<Integer>() {
        protected Integer initialValue() {
            return SomeOtherClass.f();
        }
    };

    public Bar() {
        super(sleaze.get());
        j = sleaze.get();
        sleaze.remove();
    }
}

This solution is still a good deal less elegant than Chris's. There's a reason we called the ThreadLocal variable sleaze.

A crate of rotten halibut goes to Ron Yang and Ka-Hing Cheung, who didn't check to see whether their programs compiled before posting them. Hint: they don't.

Tom Hawtin proposed a solution wherein he interposed a class between Foo and Bar, and stashed the results of SomeOtherClass.f() in an instance variable of the enclosing class. This works, but arguably it violates the conditions of the problem. Similarly, Tom proposed the use of a static factory, but the problem states (albeit subtly) that Bar must have a public parameterless constructor. Normally we're big fans of static factories, but occasionally you don't have that option. Sometimes you need your class to be extendable. The same restriction rules out Tom's inner-class based solution. However, Tom gets an honorable mention for submitting three (!) solutions.

Bob Lee corectly points out that if you're writing JVM byte code rather than Java source code, you can simply set the instance variable before invoking the superclass constructor. This is, in fact, how the compiler initializes the enclosing-instance field for instances on non-static nested classes.

Nikita Tovstoles submitted a convoluted by correct solution in which a single static variable was used to stash the results of SomeOtherClass.f() as the superclass constructor was executed. Hairy synchronization code was required to make it work in the presence of concurrency. Click and Hack characterize this solution as ingenious-but-yucky.

So the big prize package...

... goes to Chris Nokleberg!

But wait, there's more.... Michael, Kris, Tom, Bob and Nikita all get t-shirts because Click and Hack said nice stuff (to varrying degrees) about each of you!!!

If you end up looking as cute in your t-shirt as Vanessa does...

... send me a picture and maybe I'll post it.

Ron and Ka-Hing: if I had any rotten halibut I'd send it to you. Lucky for you I'm fresh out.

So that closes out last week's puzzler. But we're not done yet. More Friday Free Stuff is on your way as this MaryMaryQuiteContary special Friday extravaganza continues... stay tuned.

:-)

mary

p.s. bookmark. shift. reload.

p.p.s. i kindly ask that you lucky winners send me email with your mailing address using the following formula: first.last@sun.com. my firstname is mary. my lastname is smaragdis. i will use your personal info for the singular purpose of copying it down onto an envelope (or in Chris' case, a box) so that I can send you the free stuff. I won't share your personal info with anybody. I won't use it for any other purpose whatsoever. After I copy it down I'll delete the mail.

p.p.p.s. Don't get any ideas about impersonating a winner, people. It won't work. And if you try I will black list you.

Thursday Oct 21, 2004



you developer types.

you are my target demographic and i've got your profile nailed.

you may not own any designer handbags.

but you've got a designer Mac.

a sleek, beautiful, Mac.

that you love and adore.

that you feel all technologically superior about.

wait a MacMinute. Didn't Sun just announce that Java Studio Creator is going to be availalbe on OS X?

(drag and drop java technology development on the platform that gave the world drag and drop. how terribly appropriate.)

News of this development is all over the place. (each word goes to a seperate link; i know that's not intuitive. sorry)

all this for US$99 with a standard subscrition to the Sun Developer Network.

(Bao likes it when you join the Sun Developer Network)

pic of bao

so do i.

but we all know that if you're getting a standard subscription to the Sun Developer Network to impress the girls at Sun Microsystems, it'd be Bao's favor you'd be trying to curry. not mine.

;-)

mary

p.s. i know you're not even going to believe this but my pageviews go up whenever i publish a picture of Bao.

bao in front of a car

especially when she's near a car.

i know this anecdotally. because we don't yet have the ability to get any fine-grain visiblity to blog traffic data. or am i mistaken about that, mr. newly-hired-techno-celeb-who-put-the-r-in-roller? just (quietly) expressing some pent up demand here. in a friendly way.

p.p.s: first Bao fan to post a comment to this blog entry telling me to send them this fabulous prize

bao w/the gumball machine

gets this gumball machine shipped to them. free of charge.

because i love you so.

and because, like i said, i've got you all figured out.

i know you love free stuff as much as i do.

:-)

i wonder what else we've got in common?



Wednesday Oct 20, 2004



big JXTA developer kitchen happened yesterday at Sun's Santa Clara, California campus. I'm telling you people. you want to do techno celeb watching. just go to a Sun campus. it's blow-your-mind unbelievable how many techno celebs you'll see.

anyway,  you'll recall an open invitation went out to JXTA developers, inviting them to come on by and bring their JXTA applications. Sun engineers and other JXTA developers would all work together on the apps folks brought in. and then they'd join hands and sing koom-ba-ya.

;-)

guess what?

pictures! (don't ask me where I got them; let's just say i've got my sources...)

Bernard

There's Bernard Traversat taking about architecture and saying something really insightful (in that delightful accent of his)...

Alexis

and there's Alexis Smirnov of Pi Corporation leading a discussion...

Bernard again

look! it's Bernard again. making another point. this time with his fist. Spiderman is totally having another conversation. busted. Can we have one meeting here, people?

lunchtime working

the discussions continued...

working lunch

... over lunch.

and here's one last shot...
spiderman with Fred

Fred Janon of neScience Spaces and Spiderman...

I'm told (by people who know) that it was a lively, interactive day.

People came from as far away as Canada.

I'm told Spiderman had people downloading the myJXTA chat application from the new JXTA demos page. (do you think if I downloaded it I could chat with Spiderman?? i might just give that a try.)

so that's the story.

mary

p.s. see the code they wrote on the whiteboards? ok, so let me tell you what happens the next day when the marketing people have their meeting in this same conference room... and nobody erased the white boards... some marketing smart ass who tells everybody he's an engineer by training but got into marketing for "a change of pace" looks at what's on the whiteboard and draws some kind of obscure conclusion about what problem the people who wrote on the white board were trying to solve. which he vocalizes. then he says something vague about they should have tried another approach. and believe it or not, some of the marketing people (generally kids right out of college) in the room are actually impressed by this display. i just roll my eyes. and since i'm remote, and i'm on the phone nobody ever sees me.

the take-away: you know how the most annoying non-smokers are people who used to smoke and quit and now feel morally superior. the most annoying marketing people are those who pretend to have some kind of technical background.



you guys, check this out.

MaryMaryQuiteContrary is publically traded in a fantasy blog shares market called BLOGSHARES.

and would you look at that....

$4.04 a share.

how terribly appropriate.

mary

p.s. it's amazing what you find out when you do a google search on yourself.