Interactive git add

I’ve been using git a lot more (its become my personal favourite; though on a daily basis I have to context switch between Bazaar and SVN as well – glad that I’ve stopped using CVS and BitKeeper) and am really liking it. Recently, I found out that git add has an interactive mode!

You can add a whole bunch of files real easily. Ditto with reverting changes. You can also add certain lines of a file (this is seriously useful).

Go give git add -i a twirl. Any other good git tips?

Last chances to submit your MySQL Conference talk!

The O’Reilly MySQL Conference & Expo 2010 will be closing the Call for Participation at the end of the 27th January 2010. You have less than 48-hours – so get submitting already.

Take a gander at some of the shortlisted presentations, look at all the amazing tutorials, and what’s keeping you waiting from registering?

MySQL with yaSSL vulnerability

It’s worth noting that if you’re using MySQL 5.0/5.1, with SSL enabled, and you’re using yaSSL as opposed to OpenSSL, you’re vulnerable to CVE-2009-4484. Its a buffer overflow, that works over TCP, via the MySQL port, 3306. Lenz furnished us with some information, and the patch is available. You’ll see this rocking when MySQL 5.1.43 gets released.

It affects Debian (presumably, it will also affect Ubuntu). Red Hat/CentOS is spared, because instead of using yaSSL, OpenSSL is used.

MariaDB 5.1.41-rc (based on MySQL 5.1.41) which was just released a few days ago, naturally is also affected. The next release candidate might potentially be rebased against 5.1.42 (the builds are already ready, from what I understand), and will include this patch.

Some yaSSL trivia: did you know that one of the two co-founders of the project, is actually Larry Stefonic? Larry was an early MySQL Ab employee, holding quite a few positions at MySQL Ab; he was the President of MySQL KK (the Japanese branch), and was also SVP for worldwide OEM sales!

Pompous Malaysian Minister discourages immersion in Western-created sites such as Facebook, Twitter

“The man who reads nothing at all is better educated than the man who reads nothing but newspapers.” – Thomas Jefferson

A lazy Saturday, I’m taking a break from most things, and I figured I’d fire up Twitter and see what’s on. Many people pointed me to: Malaysians advised against being immersed in Facebook, Twitter (a href=”http://malaysiakini.com/news/122094″>Malaysiakini picked this up too). It features Rais Yatim, being more pompous than he usually is (yes, please watch that video – its highly amusing).

He added that facilities like internet could not be accepted wholly because it was a form of business introduced by the West and “Malaysians were just users.”

Don't read newspapersMalaysians were just users. Why were they not the creators of sites like Facebook and Twitter? After all, with organisations throwing money away in the form of grants, so readily to companies, why haven’t we created the next Facebook or Twitter? Ping.fm had only two employees, picked up some angel funding, and have recently been acquired by Seesmic. RM150k for a year, is enough for two founders to hack on something, and make it worthwhile, yet, we see higher amounts of folk gaming the system. What about Twitpic? This list can go on, but that’s not going to be the focus of this post – Malaysian’s can create, if they put their mind to it. To boot, there are also funds that they can have access to.

He goes on to talk about how one must upkeep religious values and be mindful of them when using social networking services. Wow, whatever he’s smoking, I want some.

“We must be strong in our believes and culture because the identity and image of our country depends on us.

Yes. The image of the country today, largely depends on what the people say. Politicians can go overseas and lie to others, but what do people do before the want to visit a country? Invest in a country? Move to a country? They check up on the prospective new place on the Internet. They use Google search. They’ll read Google News. Heck, they might even go read Google’s Blog Search. Others will check out Flickr and Picasa to find good photos, some will check out YouTube. Others will look at TripAdvisor to find a good hotel. Others will check out the newspapers. The list goes on. However, what citizens do, is they speak their mind, when online – so the government clearly lacks control of their old one-way-mediums.

His next statement makes absolutely no sense at all. Maybe he should have spoken in his native Bahasa Malaysia?

“They are just selling Facebook, Twitter, L-Band and various other services, even through space, as a product but we do not do such business. We accept all this in a state of cultural shock,” he said.

Culture shock, eh? Seriously. He continues…

“We should not be quick to condemn or look down on those who do not use Facebook. Newspapers are still relevant, so is Facebook, but do not be carried away with everything and disregard the old system,” he said.

Of course. That would be plain wrong, and ageist. Not everyone needs to be on Facebook. Or Twitter. Or read online media. Its fine that people have a choice. Today, if one chooses to go “old school”, all one has to do is wake up in the morning, buy a dead tree edition of your favourite newspaper, read it, then go over to the boob tube, watch the myriad of programming available on free-to-air channels, and suck in all the propaganda. However, as a society matures, they do tend to disregard the old, and check out the new (for example, if I’d had followed the old system, I’d be seeing this silly media article in the dead tree edition of The Star – I saw it half an hour after it was published because I was on Twitter). Societies mature, and their needs mature, so they do outgrow the old (same applies to political regimes).

It continues, in where he says things about how one shouldn’t use Twitter, Facebook and SMS messaging for the wrong reasons. He tells us that we cannot escape from the law for our actions. And that most people understand the whole 1Malaysia concept. Drivel, in general.

Anyway, newspapers in their dead-tree form are losing relevance. We have two that are free now – The Sun and The Malay Mail. The Star has pretty much all its content online. And Malaysians can read The Malaysian Insider (Malaysian creation) for free, or subscribe to Malaysiakini (Malaysian creation). As the Internet penetration rate goes up, we’ll see more of this. The magazine industry in Malaysia has been suffering for a couple of years (no eyeballs, no advertising ringgit).

So, there are Malaysian creations, used by people, where Malaysians are not just users but creators. I’m sorry Rais, you’re so out of it.

Some MySQL-related links

Check out how Linden Labs, creators of the popular game Second Life, upgraded their MySQL database. The MySQL they use? Straight out of Debian! Of course, now, they’re running with the Percona patchset, against MySQL 5.0.84. Definitely a good read.

Its good to see Lars post about contributing to the MySQL replication & backup codebase. It sounds like the replication & backup team have decided that mentoring is the way to go – you get a “coach developer” if the idea is accepted. I like this very much, and sincerely hope it spreads to the rest of the server; it will help decentralise development of MySQL, and the endgame is a larger community.

While I know Christmas is over, The 12 Days of Christmas (MySQL Edition), is actually quite a fun watch :)

Happy New Year all!

StarOffice no longer on the SIA’s Airbus A380?

Going to and from London, I flew on Singapore Airlines’ Airbus A380 and loved every bit of it. The last time I got on one of these planes was when I flew to Sydney.

It used to be that the in-flight entertainment allowed for you to play with StarOffice 8, opening and saving documents via the (powered) USB port. That generally gives me a kick, since its nice to see your name 38,000ft in the air.

According to this, it’s also available on the Boeing 777-300ER. However, I noticed that you don’t have this option any longer – it has since been removed.

There’d a PDF viewer, a media player (connect your iPod, be impressed), but no StarOffice in sight. I wonder if a licensing deal with Sun Microsystems had something to do with it? After all, no need to license StarOffice, just go forth and use OpenOffice.org!

Yes, it took some 30 seconds to start up StarOffice the last time I played with it. Could it be due to that, customer complaints got rid of it? I sincerely hope not. Suddenly, the QWERTY keyboard on the gamepad seems a lot less useful…


i