Friday, October 17, 2008

WSO2 Mashup Server - The Movie

Well, not exactly, but for those of you who skip the book and wait for the movie, this is as good as it gets! Jonathan has done a trilogy of screencasts, and the first of these, Hello World is on air now!

If you always wanted to get started on the WSO2 Mashup Server, but never got around to reading through our user documentation or articles, this is probably the easiest way to get going.

If you're on a slow line and don't mind low-res, you can watch the you tube version here.


Watch this space for links to the sequels.

Friday, October 3, 2008

Windows to Linux

First time I tried running Linux at home was around 2002, with Red hat 7.1. I really can't remember what finally convinced us to revert to Windows, but I remember it was a little too alien to my wife, who loved the games that shipped with the distribution, but missed Windows/IE/Office. There was no Firefox back then and Open Office wasn't really hot either, so I don't really blame her for wanting Windows back at the time.

I've been using Linux at office for quite some time now; created a partition for it on day 1 itself and installed 'Gutsy' a few days later, but switched to using it full time only this year. My primary goal at the time was to learn some Linux Administration, but now I only boot Windows when I have to fix and test IE or Windows specific defects in code and switch back to Linux as soon as I'm done because everything just takes so much longer to do! I can't explain why a maven build takes a fraction of the time in Linux as it does in Windows, but that is the easiest to compare because maven actually prints the time taken at the end of a build!

About two months back, the XP on my home system started acting up and instead of reinstalling I decided to switch to Hardy. The switch over was quite smooth, with the partition tool in 'Hardy Heron' doing a great job of moving stuff around to make space for root and swap partitions. I created a separate home partition later and moved my home there, using instructions I found on a blog post. I'm sure I could've lived with everything on root, but separating out the home directory is apparently the way to go as you can quite easily upgrade or replace the OS in it's own partition without actually affecting your data in the home directory.

Since then it's been a journey of discovery so I thought I'd put down my experiences in case someone else is considering the same move.

1) If you're using Firefox and Open Office in Windows right now, you're already halfway there. My wife is affected by the switch because she's been using MS-Office until now and Open Office feels different to her. My daughter is hardly aware that things have changed because Firefox is the same and that's all she uses.

2) Use Ubuntu or some other distribution that's not too 'geeky'. You're used to doing everything via wizards, so starting off with an operating system that needs to be compiled first would not be a good idea! Canonical has the right idea, pop the CD in the drive, reboot and install if you like what starts up.

3) GParted is pretty good at moving and resizing partitions, but be aware that any change you do may make your existing Windows installation unusable! I wanted to have my XP available as a boot option, and I've done previous installations which left Windows intact, but I think I messed things up when I deleted a secondary Windows partition while in Linux. Anyway, my XP hasn't worked since then.

4) Some of your peripherals may not work on day one, but some work surprisingly well with the drivers that ship with Hardy. My camera (a Canon A550) can just be plugged into a USB port and Hardy recognizes it, launches FSpot and prompts me to select and download pictures. My webcam (a GE MiniCamPro) on the other hand pretends to be OK; even the red 'active' light on top turns on at PC startup itself, but that's it, no pictures yet! I've found a Google group of users with cams from the same vendor; let's see if this 'support group' will help me to get the drivers sorted out. I found the GNU/Linux Compatible Hardware List which I will use when buying peripherals in future.

That's about it for advice, really. Hardy works fine out-of-the-box, comes with almost all the software you'll need for home or office use and anything else is just an 'apt-get install' away. The only thing I actually downloaded and installed separately was Skype, and that was accomplished with just a few clicks.

Now a few observations.
a) Why does the ls command have a non-default -h argument to list file sizes in 'human readable format'? If the default setting's for Cylons, it's wasted; they interact with computers by either putting their arms into litte tubs of liquid or sticking wires straight into their forearms!

b) Why is it so difficult to share a directory using samba? It can't be just me because I see a lot of very smart Linux users pulling out USB drives when they want to copy stuff from one PC to another.

Actually, to resolve #4 and b, I need to stop whining and start writing code; I've got two itches so I should start scratching!

Monday, September 29, 2008

Rotten Tomatoes Completely Rotten?

We've been shipping the Tomato Tube as a sample on the WSO2 Mashup Server since before 1.0, but I think I'm going to try and convince Tyrell, the author, that maybe an IMDB based Mashup would be better. Why this sudden loss of credibility in my eyes I hear you ask? Rotten Tomatoes published a countdown of the Best Animated Films and there was not a single movie from Studio Ghibli in the top 10!

Now I'm perfectly fine with people not liking some of the books and movies I enjoy; I'm actually quite used to it because Sri Lanka isn't full of Science Fiction fans (I walked the length and breadth of the Colombo Book Fair last week and couldn't find a single book by Iain M. Banks, though there was a whole shelf full last year). I'll also be the first to admit that I'm not qualified to be a movie critic in any way, I just love watching them and know when I've enjoyed one more than another and why.

I'm not saying I didn't enjoy Toy Story 2, or any of the other movies in the top 10, because 'Finding Nemo' and 'Wall-E' would actually be in my top 10 too, but movies like Spirited Away, Grave of the Firefly or Howl's Moving Castle not making it in there is strange to say the least. If you read through the wiki pages, IMDB or just Google the titles, you'll see I'm not the only one who thinks they're great.

If the list was titled 'Best English Language Animated Films', I would have no issues with the selection. I should ideally run through the other 40 movies in the list and see if this is simply a mistake in the title of the list and there ARE only US/UK movies there, but I really don't think I should risk it. If I see Castle in the Sky ranked lower than, say, 'Barbie Fairytopia' I might just throw something at the monitor or whatever and be the ultimate loser!

Tuesday, September 23, 2008

Pressure sales vs. open source...

There was this vacuum cleaner salesman who managed to 'gain entry' to our apartment while we were living in Dubai, under the pretext of giving us some gift we had won in a raffle. The adage about vampires also applies to commission driven door-to-door salesmen - you DO NOT invite them into the house! He seemed so passionate about what he claimed to be the greatest vacuum cleaner in the world, which used space age technology and had a few hundred attachments, one of which would even give me a back rub or foot massage!

Now explaining the features of a product is good, but every time I asked him how much it cost, just to find out whether it was within our budget, he kept telling us about another feature or attachment! It was getting to a point where I would have to start being openly rude to him because I knew that there was no way I could afford all the 'free accessories' included and this guy just wasn't going to leave until we had committed to buying the product. Fortunately Navindee was 1+ at the time and when she got hungry nothing stood in her way - including our mafia salesman. He finally told us how much it cost (a little more than what my first car was worth) and we said 'no thanks' - obviously.

Why am I ranting about this now? It's apparently this approach to sales, where people are paid to push crap with no interest in the customer's actual needs or a long term relationship that's screwing up the world economy! The salesman I spoke about spent more than an hour doing his pitch and had I given in, I would have been holding onto an electric fan with a filter and 300 accessories I would never use, feeling like a sucker, while he would have been laughing all the way to the bank!

The typical open source way of doing business is the diametric opposite of this, where there is no sale or money made up front - we only make money if the customer wants a relationship. The customer downloads the product, tries it out and if it suits his or her needs, pays for support and/or services.

Open source products depend on actually providing value because we can't depend on hype and a cool marketing campaign to get the customer to pay us - there is no shrink wrapped box that we can push someone to buy. We're paid only if we deliver a great product that actually meets the customer's needs. Now everyone could figure out a formula that makes it mandatory to think of long term benefits to the customer, I'm sure we could prevent future financial meltdowns!

I've heard the open source movement being labeled as not being capitalist, but I say it is; the person with the best product and services offering will ultimately get paid. It just doesn't reward pressure selling and hype, which screws the customer and ultimately the supplier as well, which I think is capitalism gone mad!

For further reading, Jonathan wrote a post that will give you an idea of how a user of open source software can reward the creator without spending a cent, and this article talks about Open Source SOA offerings out there, including ours.

Thursday, September 18, 2008

How to upgrade your WSO2 Mashup Server and why

The past month has been fairly fruitful in terms of publications related to the WSO2 Mashup Server, with Keith, Tyrell and Ayanthi doing an article each and Jonathan running a webinar. That's the 'why'; to see the features Jonathan talks about and try the examples provided by Keith and Tyrell, you need to be running version 1.5! There's also a bunch of other cool new features in 1.5 that we're yet to write about, that you can discover by using the product or reading the documentation - consider them a bonus!

Now the 'how'. If you've not got any data in your existing WSO2 Mashup Server that you want to preserve across an upgrade, it's a simple matter of uninstalling/deleting the old and installing the new, just backing up your old Mashups and adding them to the new server. If, however, you have user info, ratings or comments that you want to preserve, you need to follow these instructions.

Have fun with 1.5!

Monday, August 18, 2008

Memories

Getting a toy car that turns when it hits an obstruction and has a passenger that turns around to take flash-photographs one birthday, a Meccano set the next year and a bicycle which he needs to hold right at the start as it didn't come with training wheels, the year after. Does life get any better?

Trips to the beach, Mt Lavinia or Wellawatta on a Sunday morning, being a little scared of the sea, but not enough to spoil the fun.

Getting a whack because I put a car headlamp bulb into a mains socket, thereby learning the difference between AC and DC; being consoled later on.

Waking up to be told he'd gone to buy us a TV, getting a 12" Black and White set, which was was still the bleeding edge of technology at the time. Letting all my friends in the neighborhood come over to watch; so many, right at the start, that some sit outside on the wall and watch through the window.

Getting out first VCR later on, along with the option to rent 5 tapes a week and being taken to chose the selection for the week on Saturdays. Watching 'Aliens' about once a month because the guy at the video shop keeps recommending it to him every time he goes alone and enjoying it every time!

Borrowing a book from a friend on how to build my own radio one evening, in tears the next morning because he wouldn't take me into town to get the diode and tuning condenser I needed to get going. Finally being taken to Nugegoda, getting the stuff, building the radio and enjoying the barely audible sounds of SLBC so much on the crystal set that, in reality, he built for me.

Seeing a Sinclair ZX81 on a bus, finding out how much it costs, asking for one and being so surprised when we set off for Kirullapone to actually buy one; finding out later on that everybody else has a Spectrum with 16 or 48 K RAM, but not minding anyway, knowing that this is the best he could afford!

Asking for a basic Origami book as a birthday present, going to the bookshop in the rain, picking the book I want and being asked if I'm sure it's enough! Keeping it safe from the weather on the trip home and feeling contented making paper animals after a shower and hot coffee!

Buying Blakes' 7 and 2001 for me, even though he can't stand science-fiction himself; how he was so irritated by programs like 'Dr. Who' and tried to convince me that I'd benefit a great deal more if I watched the news instead.

Always asking for a turn at the wheel, getting short practice runs with an 'L' board, and him pulling aside one evening and letting me drive home all the way from Dehiwala.

Going on trips in the Austin, different breakdowns on each trip; broken axel on one, silencer leaks another time and engine mount failure on a third. Learning how clean spark plugs, change tires and how to cut-out a carburettor gasket from an old file cover in the process.

Most school concerts or prize givings being followed by dinner at a Chinese restuarant, getting an order of 'firework prawns' if he's in a very good mood!

Being taken to watch 'Tron' followed by dinner, then getting to watch 'Missing in Action' aftewards becuase he thought Tron was boring!

Being driven to a job interview and having to insist that I can manage from there on, that he doesn't need to come and sit at the reception with me.

Trips to Kataragama, where we would stop at Hambantota rest-house. Sea baths during the day, reading in the evening with the sound of the sea and fishermen as background music, fried fish course for dinner on the last evening of the trip. Sometimes returning to Colombo via Nuwara-Eliya or Kandy - that's taking the scenic route!

Getting home early Saturday morning, barely sobered up after a night out clubbing, to find him up watching TV; getting a cup of tea to drink before I go to bed.

On a hospital stretcher, after a pretty serious car accident that is undoubtedly my fault as the other party is a wall, finding out that he is actually more scared and relieved than angry, then realizing that everybody else will have the same reaction!

On weekend visits he watches F1 Racing with me, even though he isn't really a great fan of the sport.

Our trip to India for a PET scan and squeezing in a bit of shopping as he says he feels fine. Me remarking after we return home that a security guard at the airport was the only REALLY pretty girl I saw on the whole trip; being surprised to learn that he noticed too and agrees!

Wednesday, July 23, 2008

WSO2 Mashup Server 1.5 Released

We took our time doing this release, more than five months, but in that time we managed to squeeze in a bunch of features big and small, that we felt were really critical when creating Mashups for Personal, Enterprise and Community use. Of these, I would say data services, security, gadget and OpenID support are the coolest 'big' features we added.

As far as I'm concerned, just getting data service creation into the Mashup Server doubled it's usefulness for almost everybody out there! Now, with mostly mouse clicks and just by stepping through a wizard, you can expose information from a database, spreadsheet or CSV file as a web service! We always had the ability to create and expose data services using the underlying WSAS, but now data services are first class citizens on the Mashup Server, so I can create, edit, delete, tag, comment and rate them from the UI, just like any other Mashup!

I keep remembering projects in a past life, where reading some data from a few tables, applying some business logic to make it a little more useful and then exposing the result as a web page and/or service was such a complicated task that took up days of my time. Using the Mashup Server, I can pretty much achieve the same result in minutes! Mashups you always dreamed of, that combine data from a text file on your desktop and you company's ERP with information on the web and write the results to a database, are now a few clicks away!

Another feature we always felt we needed, especially for the enterprise user, was the ability to secure services. Now all it takes is a few clicks, because you just need to chose one from a list of common security scenarios to be applied to your service! On the other side, you can also call secured services now, using our new and improved WSRequest object.

We also added another another ultra-cool pair of features, a gadget interface for Mashups and a dashboard on which to host them! This would be pretty useful in enterprise scenarios for the manager who wants to see an overview of his or her business in a single page, but it's also loads of fun for everybody else! You can add any Mashup to your own dashboard or iGoogle, create your own custom gadget interface starting with a default template and even import external gadgets into your dashboard. Tyrell wrote about having fun with gadgets here!

OpenID has been the hot new buzzword in the security space and we've got full support in the Mashup Server now. You can just login with your OpenID and if you haven't got an account on the server, you'll be registered, verified and allowed to login, without ever needing to fill a form or key in a password. Jonathan blogged about what WSO2 has been up to on this front.

Besides these, there are a quite a few other improvements that we made since 1.0; over 300 in all! If you really want the details, it's all in our Issue Tracker where everyone logged everything, bugs, improvements, new features and wishes. It wasn't easy getting everything into the release (and we finally had to postpone a few items) but it was fun, educational and something we can look back to with pride!

If you've already downloaded 1.5, taken it for a spin and have a compliment, complaint or wish, please do let us know!