Museumnacht & iPhone Tech Talk

Going to club two recent events into one post.

First, Museumnacht 08! This annual event is the best way to cover at least some of Amsterdam’s many museums. Depending on your planning and speed, you can visit as many as 45 places covered under the plan. Travel on the trams, night-buses and the metro are covered on the ticket as well. The whole thing lasted from 7 p.m. on Nov 1 until 2 a.m. on Nov 2. For just 13 Euros, it was a steal :-)

Given that we didn’t know much about the museum scenario and are relatively new to Amsterdam, we still managed to cover 7 places in one night, an impressive feat IMO. We started off at the Filmhuis, and the theme of the night was Bollywood! They picked out the cheesiest scenes from the 80s to screen, posters of films from the 40s to the 90s and a dressing room for folks to try out traditional Indian costumes. Though it was enjoyable, I didn’t want to spend a lot of time rediscovering Bollywood in Amsterdam :-P

After a small walking mishap (Damnit iPhone, would it be so hard to include a compass on your maps so we know which direction we’re moving in?!), we found our way to the sound museum. Sounds fun, right? It was: plenty of interesting exhibits, some were even interactive. At this point, hunger caught on, and we got some “Wok to Walk” – that’s right – the stereotypical chinese food in a square box. Next up on the list was FOAM: The Photography Museum. This was the first one we had to stand in line for, but it was worth it, because inside there was a lot of free candy and some really nice photographs to look at. We decided to walk towards a tram station, but were attracted by the National Archives on the way. This place housed some really historic documents from the old dutch days, and couple of interactive exhibits.

A quick (free) ride on the tram later, we wound up at the Rembrandt House, which is a modern reconstruction of the famous 17th century painter’s home. There was a queue for this too, but again, was definitely worth it. There were paintings from a few other modern artists in addition to some of Rembrandt’s works (couldn’t tell if they were original or not). We heard there would be some live Jazz music around this time (it was 11:30 PM by now), so we started wandering around looking for it until we wound up at this really cool Portuguese Synagogue. It was entirely candle-lit, and was very pleasing to the eye. A nice place to sit down and relax after all the walking-around. Last place we visited was the Jewish Historical Museum, which was possibly the best place we visited all day, because we spent a little more than an hour here. There were multiple floors within this place covering all topics ranging from the foundation of the state of Israel to the stories of Jews in the Netherlands during WWII. An excellent collection of paintings, photographs, books, videos, documents, you name it.

We could have visited one more place, it was still just 1 a.m., but we were all extremely tired (I had just returned from Volos the same day), so we decided to just walk towards centraal for the nightbus – all the trams had stopped because it was late. Overall, a fairly satisfying trip: Amsterdam is a city so much more than its general perception, I am loving it!

Next up: the iPhone tech talk. Apple had advertised a series of talks on iPhone development around the world, and there was to be one at “Amsterdam”. But it turns out that the actual venue was at the Technical University in Delft, which is about an hour away from here. I was just happy to be invited, so a friend and I took the trains (which rock in the Netherlands, BTW). After a little wandering around, we managed to find the place. The event was “confidential” so apparently we’re not allowed to blog about it, so I’ll just say that it was rather interesting. Coming from a FOSS background however, I must say that writing applications for the iPhone is not the most lucrative option. In any case, as a Grad student there was no way I was going to give up the opportunity for free food and a free T-Shirt ;) Thanks Apple!

When innovation doesn't reach the people…

…you know something is wrong.

This is a rant I’ve been wanting to do for a long time. It costs cell phone operators practically nothing to deliver an SMS within their own network, and maybe a little to deliver it to another network – so why do they charge the end user so much? Would a broadband internet subscriber agree to paying 10 cents for transferring 160 bytes of data? That’s how much data is in a single SMS, and everytime you send one, your cellphone company enjoys profit margins of close to 98%.

We’ve got even better technology reaching the mobile market – 3G networks can offer data speeds of upto 7.2Mbits/sec (the theoritical limit is 14.4Mbits/sec). Combined with VOIP systems, that should mean cheap telephony and communication for everyone. It means you could reduce your mobile phone bills to 10% of what you’re paying now.

But no. You’re not allowed to use VOIP on your smartphone unless you’re in a WiFi hotspot. Why not? Because the cell phone operators don’t want you to – that would be bad for business wouldn’t it? I thought the whole point of technology was to make things cheap and easier for the end users. Apparently not.

This situation is a bit like when the old vinyl record companies tried to push back the compact disk revolution just because it would be “bad for business”. This is what happens when you put technology into the hands of giant corporates whose only reason to exist is profit. It’s like all the cell phone operators all over the world have an unspoken agreement to fleece the consumer collectively.

What we need is just one company to take a bold move forward by breaking this pact. It’s not like they have to invest huge amounts of money, the technology and infrastructure is here and now. Please, just charge the consumer how much it actually costs to make a call or send an SMS, with a reasonable profit margin. The rest will follow suit, as the free market dictates. That’s how the cell phone rates in India dropped drastically, and it’s our only ray of hope.

It’s not enough if we have open mobile phones, we need operators that are as honest and open as the handset. Communication simply doesn’t cost as much as the cell phone operators tell you it does, and it’s about time more people realized it.

Leopard: A first look

I couldn’t help but notice that close to 70% of developers who attended foss.in had Macs with them. And half of them had even upgraded to Leopard, giving me a few glimpses of what Apple’s new operating system looked like.

I decided to upgrade to Leopard too, and got myself a copy from the iStore on M.G. Road. It cost me Rs. 6,200 which is (suprisingly?) a little more than the dollar-converted rate. Anyway, I decided to do a clean install after backing up all my data – it was the perfect chance to remove all the cruft in the system.

The installation went smoothly and the traditional multi-lingual ‘Welcome’ was simply stunning. Now I began installing the applications one by one:

  • QuickSilver: The first app that anyone would need. It worked with all the standard plug-ins on Leopard without any glitches. I did notice, however, that it wouldn’t launch any applications that you just installed (specifically, those that you downloaded; yes, Leopard keeps track of that!). You have to manually launch the application once (you get a dialog asking you whether you really want to) before it appears in QuickSilver’s catalog. Mildly irritating, but it’s a one-time thing for every app.
  • Macports: I compiled this one, also worked out-of-the-box without any problems. All the ports I used so far work fine, although I will expect some of them to fail (which isn’t a macports, but rather an upstream problem).
  • Adium/Colloquy: Clean install, no trouble. Imported old logs just fine.
  • iScrobbler: Version 1.5.2 wouldn’t post to last.fm for some reason, version 2.0beta works great (and has a bunch of new features).
  • VMWare Fusion: Works great, but it looks like you’d need some small tweaks to get the tools for Linux to work fine. I’m going to give Fusion a try for sometime to see how it measures up to Parallels (which is what I was using earlier).
  • Poisoned: This one doesn’t work on Leopard. It starts up fine, and gIFT appears to start but none of the networks connect. After searching the forums for a bit, I settled for FrostWire which works fine.

Let’s take a look at all the new features that caught my eye:

  • Tabbed Terminal.app! There’s no need to use iTerm now. I did, however, have to spend a couple of hours in trying to get the key combinations to work in a sane manner. This post proved to be very helpful, DoubleCommand didn’t.
  • Uniform interface. Finally. I was getting sick of the varied brushed-metal/grey/what-not styled interfaces. Leopard finally has a smooth grey across all applications. No need for UNO anymore.
  • Spaces. Eliminates the need for VirtueDesktops (Notice the pattern here?). Really nifty if you run a Fusion virtual machine in full-screen on every space and assign sane keyboard shortcuts to switch.
  • Stacks: Snazzy looking way of representing Downloads and Documents. You can add your own folders to ‘stack’. I like the new Downloads directory, I used to create one in Tiger anyway :)
  • dtrace. The all-encompassing debugger from OpenSolaris made easy. I haven’t used it for anything useful yet but I like what I see.
  • Mail 3.0. Slicker interface, and I really love the Mail Activity area which tells me exactly what Mail is upto – Mail 2.0 always left you wondering!

I haven’t had a chance to look at Quick Look yet, but that should be another thing to look forward to. All-in-all a good experience so far, but was it worth the 6 grand? I’ll wait and see.

Unholy Union of the Big Three

ZOMG. Parallels‘ latest build brings along with it some nifty features. Which ultimately leads your desktop to look something like this:

Unholy Union of the Big Three

No, that’s not some fabricated image made in GIMP. It’s for real; you can now run all the big 3 OSes side by side, just as if they’ve known each other for years ;)

Here’s how you do it:

  • Get yourself a powerful Intel Mac with 2Gigs of RAM (okay you may not really need this, but it’s always a good idea)
  • Buy a copy of the latest Parallels Desktop. More than worth it!
  • Install your favourite Linux Distro and Windows on two Parallels VM’s
  • Or, if you already have BootCamp and want to use the native Windows already installed, Parallels allows you to boot from that too! I already had a native Windows running on Boot Camp, and I was up and running in no time with the useful guide you can find here
  • Fire up the Linux VM, start the X server bundled with OS X. SSH to your Linux VM with X forwarding enabled, and start your favourite desktop: I chose XFCE, but Gnome/KDE will run equally well
  • Fire up your Windows VM and enable the “Coherence” mode
  • Start using Windows/OS X/Linux applications side by side, all within the comfort of your OS X desktop :)
  • If you’re really insane create virtual machines for FreeBSD and Solaris too…

This has got to be the most coolest thing I’ve ever done with a computer :)

(In the screenshot: Windows Start menu just below the Apple menu; XFCE-Terminal on Linux; Safari on OS X; IE on Windows; XFCE-Panel (on Linux) just to the right of the OS X Dock. Windows applications even have their own Dock items; All Linux apps will be shown as only one X app though)

Swollen Batteries

The batteries of my Macbook Pro suddenly swelled up today. I haven’t a clue in the world as to why it had to happen all of a sudden today but it did. :(

Swollen View 2
Swollen View 1

Maybe because I gave a hand at programming on the Mac for the first time today. We now have an installer for PHP-GTK. Intel Mac users only. Was also having a look at Metisse; sounds great. Anyone for a HCI research project?

Macnix

One of my new year resolutions was to use Mac OS X more often. I was very comfortable with my Gentoo installation; but spending $2800 on a Macbook Pro and then not using OS X is kind of stupid. I did try to “migrate” to the Mac several times in the past; but it never lasted more than 2 days. Gtk looked bad on the Mac, and GNU Parted wouldn’t run. Something or the other kept pulling me back to Linux (the latest reason was the ability to use Java 6). Well, the new year was a good opportunity to change my attitude and I decided to whole-heartedly attempt the move.

After 3 days of endless reboots; installations and configuration, I’m now the proud owner of what I’d like to call the “Macnix” :-D

The first thing I did was to get myself a copy of Parallels. There really isn’t any other decent virtualization solution available for the Mac as of now; VMWare did release a beta but it’s really really slow. I ran through the Gentoo install process on a new Parallels virtual machine, taking care not to bloat the installation more than necessary. Gnome or KDE were definitely overkills; I decided to go in for the lean-and-mean XFCE instead. My laptop has 2 Gigs of RAM; so Parallels was doing good with the 512MB it was allotted.

As for equivalent applications for all my day-to-day tasks; I didn’t face any trouble at all; except the fact I had to compromise by using non-free software in some instances. Firefox and Thunderbird are available for OS X; migrating my old Thunderbird profile to the Mac installation was a no-brainer; as well as my old Firefox bookmarks. Although there’s no decent single application that could replace Gaim; the Adium + Colloquy combo delivers quite a punch. (Gaim does run on the Apple X11 server, but if you love your eyes you would never try that). Amarok was replaced by its original inspiration: iTunes, and F-Spot with iPhoto. Eclipse worked out-of-the-box and so did all the plugins (Thank God for JARs!). Azureus runs on OS X effortlessly.

On the command-line front; the Apple Terminal was seriously lacking; but iTerm proved to be an excellent replacement. After fiddling with the .bashrc a bit; I felt right at home with the classic Gentoo’ish colored BASH prompt. Okay, I still needed a lot more of the *nix stuff. There are only 2 good options you have here: Fink and MacPorts. A quick look at the different versions that they offered immediately shows that MacPorts is way ahead in terms of offering bleeding-edge version. And me being an avid Gentooer, MacPorts was the obvious choice :)

I had Gtk+ 2.10 up and running in no time, along with Python 2.5 and the wxPython bindings. That’s not all; I also got the latest and greatest versions of Apache 2 (OS X offers only httpd-1), PHP, Git, mySQL, PostgreSQL, SQLite and Subversion thanks to MacPorts. PHP-GTK also compiled without hitches. Although all Gtk apps looked really bad in the beginning, getting the gtk-engines2 and gtk-chtheme packages helped a lot.

One thing that really bugged me was the fact that I had to start the X11 server manually everytime I needed to run an X application; and the gross XTerm would appear. Thankfully, these tips helped a lot; X11 now starts automatically on login, no dock icon, no ugly XTerm; and I can run all my X applications from the comfort of the iTerm. I also made the VNCServer (I used TightVNC), mySQL, PostgreSQL and the Gentoo VM start automatically.

You ain’t seen nothing yet. After my Gentoo installation went of smoothly on the Parallels VM; I enabled for X11Forwarding enabled on both ends. Now I can all my Linux GUI applications, again from the comfort of the OS X environment and iTerm. Pick a decent Gtk theme; and it won’t even look bad!

The real icing on the cake is MacFUSE. The absolutely wonderful folks at Google ported the FUSE kernel module from Linux to Darwin. What does this mean? We can now write to NTFS (ntfs3g), mount SSHFS, CryptoFS, WebDAVFS and a dozen other filesystems in OS X. Sweet! I’m exploting sshfs to the fullest; OS X and Gentoo (on Parallels) share the same htdocs, home folders and distfiles.

All of this did take considerable amount of effort to setup though; ntfs3g wouldn’t compile cleanly; configuring X on Gentoo took quite a while; Getting Apache2 to integrate itself with OS X, stuff like that. Nothing that a search in Google couldn’t solve though. If any of you do have any trouble in installing any of the applications I’ve mentioned so far; I’d be glad to help. If you’re already a Linux Guru, you’ll face no trouble whatsoever ;)

Ah, the perfect union of yin and yang. I think I’ve successfully migrated to OS X now; a whole day has passed and I haven’t missed my native Gentoo installation at all; and none of my work on Linux has been curbed thanks to all this amazing software. I love my Macnix!

(P.S.: I initially wanted to give detailed instructions on preparing this perfect “recipe” and also give some awesome screenshots, but I guess I’m too lazy for all that :-p)

Follow

Get every new post delivered to your Inbox.