World Cup notes

WC

Messi at WC 2010

Not being a particular fan of football or the FIFA world cup, I’m now a convert. My reasons are voiced lucidly by tbray’s take on it:

..The sense of occasion, and the widespread joy it brings to so many around the world. Something that causes this much intense shared feeling just can’t be a bad thing. On balance, I’d say the World Cup is one of the good things about being a member of Homo sapiens.

Wavin’ Flag

I love the song. It is uplifting, and the choice of the song is courageous. These times are well known for political correctness, so the choice of a song on “Freedom” at the world stage is good.

However, the spirits came down a bit when I looked in the history of the song. Wavin’ Flag was originally released in March ’09. The song is powerful, and the lyrics hard hitting. Excerpts :

Born to a throne, stronger than Rome
But Violent prone, poor people zone
But it’s my home, all I have known
Where I got grown, streets we would roam

So we struggling, fighting to eat and
We wondering when we’ll be free

Read it in it’s entirety here. I was saddened to learn Coca-Cola, who selected the song as the WC anthem got rid of the “darker lyrics”. The PR blurb is :

It’s about the one time that we all get together and the world forgets its conflict and its problems and we focus on this unity and celebration. That moment is connected now to ‘Wavin’ Flag.

I thought Coca-Cola missed the mark here. Selecting the original song for all of it’s power would’ve been a better choice. Acknowledging, rather than setting aside, these “dark” issues would’ve been the bolder thing to do. Hear the actual song, and compare it with the “Celebration Mix”.

Of course Fifa and K’Naan are all happy with this. Who am I to complain!? I do wonder what N.Korea, China, etc think of the song.

The Games

  • The refereeing has been silly in many games. Not sure if this is the norm.
  • Messi is sublime with his tackling. Deservedly the best player in the world right now. The Sachin of football right now (or Federer.. take your pick).
  • Spain looks in very good form. They get a lot of hits on goal, but fail to convert. If this improves, they are at the top of my list to win the cup.
  • Argentina at the top of that list as well.
  • Cristiano Ronaldo seems to be the only one in Portugal with some flair. Their match against Brazil dragged.
  • USA/Slovakia/Ivory Coast showed guts. Bravo.

Other Notes

  • Shakira’s moves! Waka Waka is one hell of a catchy tune!
  • Is the reason to not use TV cameras to help referee decisions idealistic? I hate watching bad actors getting fouls their way, and blatant offenses go unnoticed.
  • I also hate the delaying tactics by the winning team during the last minutes of the match. Are you that scared?
  • Nice to see Italy go! Their sportsmanship from last WC still has a bad taste.
  • Give more red cards to intentional tripping of attackers. Encourage good football.

India?

Which brings me to the end of the post. When will this country with 1/6th the population of the world produce a dozen good footballers?! I like all the hype behind football right now. It gets pages of newsprint, compared to cricket’s quarter page. I hope this is not a passing fancy with the game, but rather reflects the birth of interest in a non-cricket game. We sorely need it.

An important milestone in space travel

Falcon 9 Maiden launch

Falcon 9 Maiden launch

About a couple years ago, in an argument on space and science, I took the position that the government should invest more in science, and space travel. I lost the debate.. the government has no business using public funds for endeavours like these, and that it’s only true calling should be maintaining liberty. Everything else would follow.

I’ve since watched the evolution of SpaceX, through it’s many failures, rallied on by  it’s gritty founder and chief Elon Musk.

“We’re not going to cut and run if we have a few issues. We’re not going to cut and run if we have a lot of issues. We’re going to see this through.”

Elon’s been called “a Renaissance man in an era that needs them.”. Read a very-well written profile of him at GQ.

Yesterday, SpaceX successfully launched it’s indigenously built Falcon 9 into orbit.

Congratulations, Elon Musk. Many more successes to you.

Apple vs Adobe

Apple 1984

Big Brother from Apple's 1984 Ad

It’s time to take a stand on the battle between Apple vs Adobe.

Short Answer : Adobe. Read on for the long answer

Apple’s position in the debate is that Adobe’s Flash is closed, a battery hog, performs badly on mac/iphone, not touch oriented and that it will create developer fragmentation (developers would be at Adobe’s mercy to pick up new features provided by iPhone OS). Read this in much more detail on apple’s site, but I think I’ve covered the major points of the argument.

Adobe responded to this with a public “We Love Apple” campaign. That got a +1 from me for sheer wit, passive sarcasm, and a poetic counterattack. But do the various points it’s founders make hold up?

Let’s look at Apple’s points, and Adobe’s reply to them.

Openness

Apple’s contention is that Flash is closed, while their little-boy HTML5 (an industry open standard) is Open.

I think Joe Hewitt captured the point I want to make quite well:

I’ve been hard on Flash, but we should all thank Macromedia/Adobe for 10 years of picking up the slack of the W3C, Microsoft, and Mozilla.

I’ve worked on Flash (back at version 5). It was a wonderful tool, and being interested in Animation and Programming, allowed me to create various things very easily with some drawing and ActionScript. It had no competition. From what I hear from respectable sources, the technology has only improved since.

HTML5 is a nascent technology. For all these years Adobe’s (ex-Macromedia’s) technology kept the more-dynamic-content needs of the web filled. While I abhor the jumpy, stroke inducing Flash ads on the net, I recognize them as only being a small part of the role it played on the web. It allowed the creation of beautiful content, like you can see at Orisinal.com.

The web was quite happy to accept Flash when there was no alternative. Adobe respected this, and provided groundbreaking tools to create flash content. As it states in it’s reply, the file formats and specifications are open. So .fla, .swf, etc could potentially be created via other tools. No competitor could match the power of Adobe’s Flash IDE. Sure, the formats were Adobe’s and they had a head start, but it’s been a decade since these technologies were born.

I’m OK with proprietary tools, when the underlying file formats are open. You can create a bitmap with Gimp or Photoshop. What I admire is Adobe didn’t employ Microsoft-esqe owning of both the format and the tool, as the latter did with their document formats. Adobe won on their tool’s technical merits, and that should be commended. Apple is looking to win this argument simply on business tactic of blindly rejecting competing technology. This is a shitty (and bone-headed) move.

Battery Hog, Bad Performance

Apple claims Flash is a battery hog. There’s no reason not to accept this. Adobe, via it’s reply, agrees, by pointing out that performance has improved, as it now uses hardware acceleration.

Adobe also points out that Apple did not provide necessary APIs until recently to make hardware acceleration possible. If this is true, and I don’t see a reason otherwise, Adobe did alright in my books. How can Apple complain about the lack of a feature, when they didn’t provide the means for implementing it.

Of course, another point to note would be Adobe’s reply rings hollow. Mac has only recently gone primetime.. it was delegated to a sub-5% market share until the recent Mac OSX releases. Adobe perhaps saw no need to invest in such a small part of the pie. Linux has API to access HA, and Flash on my Ubuntu x64 still sucks. Could it be that Linux has too small a market-share for Adobe to care?

Security

This is judgment call. Yes, Flash has had many vulnerabilities published. However, I don’t think it’s on a scale to warrant it’s elimination from a platform. It’s advantages far exceed the negative of the vulnerabilities.

It should also be noted that exploiters go after the big fish. Microsoft suffers with Windows. So does Adobe with Flash. Adobe has maintained a good record of fixing issues, and issuing updates. This is as it should be.

Not Touch/Multitouch oriented

This is just a silly argument. Of course Flash content hasn’t been written for multitouch. Here’s some news.. so wasn’t HTML and AJAX content prior to Iphone and Android. The web evolves. So do interfaces and tools.

Adobe announced they would make “the best tools in the world for HTML5″. Adobe better. It’s in their interest to do so, and their argument on building the best tools on open standards gains more weight. They seem to have bet on technical innovation so far on all products they make, and there’s no reason to change direction. The practice works.

If Flash were on iPhone, you can bet the content written on it would support, and indeed be optimized, for touch.

Will Fragment Developers, and put them at Adobe’s mercy

This is is most telling of all of Apple’s points. Apple, by this argument, accepts that Adobe has very good tools, and a huge community that depends on these tools. They’re scared Adobe would attract more developers than their own. In effect, developers for it’s platform would generate business for a different vendor.

I think Apple is wrong here in their assumption that Adobe would not pick up new features. With millions of developers buying your tools, a good way of selling more tools would be to implement features developers want. The market would take care of this. Apple seems to think it wouldn’t.

So what’s Apple’s move? Outright ban of non-Apple tools. That should be enough right?

Unfortunately, this move by apple is by far the biggest “bad thing” in all of the above. It shows their openness arguments were paragraph-fillers. They proped openness up an altar, only to take a big dump on it afterwards.

Imagine if Intel only allowed developers to write for their chips on Assembly and C. “That’s the only way you’ll get access to all underlying features”, they would say. “Those Pythoners have not yet implemented this cool new stack counter we added. You want to use our shiny new stack counters, right?”

Free and open specifications and standards are more important than open software. The former will lead to the latter, and competition would be on technical merit alone. I dont grudge Adobe the massive amounts of money it makes by producing wonderful tools that make creating content easy. I love open source, but I can live with a technically better solution, when an open source solution doesn’t cut it.

Apple’s letter, constantly sprinkled with ideas that don’t stand introspection, reads like a call to arms. Adobe’s response is a far more rational and level-headed take.

Jon Stewart said it right. Apple, go take a look at your 1984 Ad. Then take a look at your iPhone store, look at your dev SDK, look at the guy whose porn app you blocked, look at a competing app by google you were too scared to accept, and tell me: Are you the girl in red shorts, or “The Man” on the screen?

Seen on Craigslist

Unnecessary Detail?

Are special keyboards made for “naughty” kids? Is there a discount?

The Cabbage seller

I stepped out of my office. The power cuts were getting worse, and the heat had gotten to me. I needed a breath of fresh air.

As I stepped out, a vegetable-seller was going past in his cycle. A bamboo container filled with cabbages was placed behind the bicycle seat.

He motioned to me.. asking if I wanted to buy cabbages. I shook my head. He continued looking (perhaps pleadingly, but he had a face that suggested he was always in this state).. and asked if he could speak. I went to him.

“Kannada baratta”, he asked. (“Do you speak Kannada”)
“Swalpa”, I replied (“Yes, a little”)
“Do you speak English”
“Yes”
“I need help with my daughters’ education”

I shrunk back. This is one of those money grabbing stunts, I thought. Something else told me to continue listening, and not walk away. He pulled out a sheet of paper.. it had a list of textbooks and authors.

“She got 92% in her finals.. and is now preparing for her MBA”. I don’t exactly recall what he said next, except that it was genuine pleading (atleast sounded genuine). The gist was that he needed help with getting those books for her daughter.

What struck me most was his English. I have friends who abuse the language and grammar, what is termed locally as Hinglish (a mixture of Hindi and English). Yet this wretched man seemed to speak in an almost perfect grammar. He didn’t use big words, but what he said was simple and correct.

I now looked at the numbers on the list.. books listed at 275, 300, 150. The college asked for the “latest editions”, he said. This could be construed to mean he’d rather have cash, than the books themselves, in case I had any. But having experienced this “latest edition” gimmick in college myself, I gave him the benefit of the doubt.

The suspicion that I was being suckered never fully left me as I stood there listening to him. Perhaps the previous experienced with being cheated still left a bad taste.

Then I mulled, So what if I was being tricked. The man stood there.. in worn-out clothes. He was educated (by his good English). He was going from door to door, on a dilapidated cycle, trying to trick people by pretending to be a cabbage seller. Isn’t that a bad enough state to be in? To be forced to seek charity as a way of life. Where begging, rather than being a state of last resort, is instead the common state.

I’d decided to give him 100 Rs (I spend that on coffee with friends). He didn’t thank me.. but said something else. I think it was in Kannada, to the effect “can it be 200?”, but I’m not sure. I answered “Sorry, that’s it”. His expression said “Thank you”. He handed me a cabbage. We both knew that was not a fair trade. Was it a gesture of thanks, or simply a ploy to convert the act that took place from charity to a trade. What misery was his, to be put in such a position?

I refused the cabbage, asking him to keep it. He cycled forward, looking for the next person to sell to. I went back into the office, back to being concerned about the summer heat.

NCP3 Beta2 released

We released beta2 of the NCP3 distribution today. The release notes are here.

As seen in the release notes, we have a new pricing policy for NCP3.

Fee Structure
—–
Starting with this release of NCP3, there will be a small charge for all users of NCP. This is required for security upgrades, and usage of apt-clone functionality.

Developing and maintaining a distribution the size of NCP takes a lot of resources, and we need your help to sponsor continued development of your favourite OpenSolaris distribution.

To learn more about the upcoming pricing policy, visit,
http://www.nexenta.org/projects/site/wiki/Pricing

This change has garnered widespread reaction from the community members.. but I hope the users see why we did this.

Grab the latest iso here.

Nexenta Core Platform 2 released!

I’ve been neglecting my blogging duties, but I’m back on track. Lots of things have happened in the recent times, but the big news today is the release of the Nexenta Core Platform 2. This release has been a year in the making, and took a lot of hard work.

We’ve also produced a short comic, with our very own hero, Nexentaman, to walk you through NCP. Click below to read the comic.

The Adventures of Nexentaman

The Adventures of Nexentaman

Links

Nexenta homepage: http://www.nexenta.org

Artwork and Wallpapers: http://www.nexenta.org/os/SpreadTheWord

IRC : #nexenta on freenode

Go ahead, test drive Nexenta, and spread the word

Oracle acquires Sun

Oracle has aquired Sun.

There were weeks of speculation of a buyout by IBM, which generated loads of discussions on the opensolaris forums. The biggest fear was IBM buying Sun, and killing off competing products. Sun and IBM competed on many fronts.. Opensolaris vs AIX, Eclipse vs Netbeans, Mysql vs DB2, Power vs Sparc, etc.. not to mention the server hardware market.

Sun’s price-tag was nothing to IBM.. it could’ve bought Sun out with a week’s revenues. The talks fail, Oracle swoops in, and grabs Sun. A /. comment sums it up..

Sun = Poorly run company with great products
Oracle = Masterfully run company with shitty products

I wonder how that DNA is going to come together…

I wonder too.

Sun’s range of technology and products dont overlap with Oracle, atleast not to the extent it did with IBM. This means that Oracle is looking to expand to have hardware solutions, and provide a complete stack (or the less probable alternative where it does not expand, and simply blew billions.)

Sun has had issues with marketing their amazing range of technologies.. Linux (and brands like RedHat/IBM/Ubuntu) are still considered the face of free software.. an arena where the majority of the code, by a large margin, has been contributed by Sun. Oracle seems to have a marketing department that seems have a clue.

My personal interest is in Opensolaris’ future. Things looked bleak with IBM who would prefer AIX and/or linux, given their investment into those technologies. Oracle, on the other had, has a very good track record on Opensolaris, and an integrated Oracle/Opensolaris solution would be powerful indeed.

Oracle’s presentation on this can be found here. Quoting points relevent to Opensolaris:

Slide 4

Consistent with Oracle’s strategy to provide complete, open and integrated systems
Optimize Solaris and Oracle for better performance, reliability, and manageability
Open Storage built with industry standard servers and components
Expands Oracle’s range of products, including servers and storage
..

Slide 5
Sustain Solaris as an industry standard OS for Oracle software
Continue Open Storage and Systems focus and innovation

That should quell any fears of Opensolaris going kapunk. Here’s looking forward to a bright future, and continued innovation in Opensolaris land.

[Of course, bigger pundits than me have had to eat their hats on their predictions.. all of the above is pure personal speculation.. don't buy stocks based off this]

Cassini shots

I dabble a bit with astronomy and like to discuss it. The latest series of pictures in the Big Picture blog are breathtaking.

Shadow of the rings

Shadow of the rings

The cool thing about this particular picture is not the big shadow running down on the rings. It’s the shadow of the smaller particles that form the white ring towards the center.. if you notice closely, thay cast a shadow on the next set of rings.

Watch the entire series of images here.

On a related note, I’m reading Arthur C Clarke’s Rama series..

Nexenta iSCSI with COMSTAR/ZFS integration

[I've made a few small updates correcting typos and inserted additional information to turn off any existing shareiscsi=on zfs volumes]

Opensolaris has had the capability to share an iscsi target for sometime. This was done in the userland via the iscsi target daemon.

The COMSTAR project on opensolaris was started to build a fast scsi target on the platform. From the project page:

COMSTAR is a software framework that enables you to turn any OpenSolaris host into a SCSI target that can be accessed over the network by initiator hosts. COMSTAR breaks down the huge task of handling a SCSI target subsystem into independent functional modules. These modules are then glued together by the SCSI Target Mode Framework (STMF).

COMSTAR provides

  • Extensive LUN Masking and mapping functions
  • Multipathing across different transport protocols
  • Multiple parallel transfers per SCSI command
  • Scalable design
  • Compatible with generic HBAs

With intergration of COMSTAR to ZFS, Nexenta Core Platform provides for very easy setup as an iSCSI target. These latest changes to ZFS are available both in the latest beta2 release of NCP, as well as the commercial NexentaStor v1.1.5.

How to setup a NCP2 box as an iSCSI target

First, shutdown older iSCSI target service, and start the new one

svcadm disable -s iscsitgt
svccfg delete -f iscsitgt

Also if you have any zfs volumes with shareiscsi=on, set them to shareiscsi=off. This is required to setup the new zfs integrated scsi correctly.

Enable iscsi/target and it’s dependency

svcadm enable -s stmf
svcadm enable -s iscsi/target

Install the switch by creating the file:

touch /etc/shareiscsi.conf

Now create a dataset (volume) which is to be shared via iSCSI

zfs create -V 500m tank/zvol1

Using -V creates a volume type dataset, and it reserves the given amount of space on the pool for it’s data. In our case we reserved 500 Mb of space for our volume zol1. To create an SCSI target using this, simply run.

zfs set shareiscsi=on tank/zvol1

And we’re now set :) . To confirm that the target has been configured, check that output of

itadm list-target -v

Performance gain

This implementation of an iSCSI target provides 2-3 times the performance of the older userland implementation in opensolaris. The numbers stack up as follows:

Parameters:  4 workers x 8 outstanding IOs

COMSTAR iSCSI target

50000 IOPS, 512B, 97% CPU, 24MB/sec  <- Reads
40000 IOPS, 512B, 92% CPU, 17MB/sec  <-Writes

OLD UserLand iSCSI target

17000 IOPS, 512B, 98% CPU, 8MB/sec  <- Reads
15000 IOPS, 512B, 98% CPU, 7.5MB/sec  <-Writes

The tests were conducted with IOMeter, using a 100M zvol with zil disabled. Also these were done over a 1G network between the target and the initiator.

More information on COMSTAR can be found on it’s project page, and the changes can be found in the nexenta-on package in NCP2.