Jun Kit's Tumblr |
Hello there. I'm a graduating Economics and Information Systems student based in Singapore. I get excited over iOS development and architecture and scalability issues. |
We had to work with MySQL Cluster for our midterm assignment in AA class. Most of my group members were on Macs, and we found out that there were no precompiled Mac binaries for MySQL Cluster. Furthermore, the instructions given by MySQL were misleading. Their documentation stated that
Mac OS X users should download the Quick Start Guide for Linux.
But said nothing about the fact that the Linux binaries were incompatible with Mac OS X. So after a few false starts, we realized we had to compile MySQL Cluster from scratch. Luckily, the compile was not that complicated. Here’s how we got MySQL Cluster running on our Macs.
Downloading
Since we’re compiling source code, we need our toolchain to be installed first. The Mac doesn’t come with development tools like compilers and headers by default, but you can install them by downloading and installing Xcode from the Mac App Store. Do note that Xcode is a two-step install. After the download finishes from the Mac App Store, Xcode isn’t actually installed yet. You have to look for an Install Xcode in your Applications folder, that’s the installer for Xcode. Run that and Xcode will install along with all the development tools.
The latest version of MySQL Cluster (7.2.4) as of this writing requires a more complicated build process. Thus, we’re going to use the previous version which suited our needs fine. Download the MySQL Cluster source code from http://dev.mysql.com/downloads/cluster/7.1.html#downloads. For Platform, you should select Source Code and then download Generic Linux (Architecture Independent), Compressed TAR Archive.
Compiling
Open Terminal and navigate to where the file was downloaded. In this case, it went into the Downloads directory. Then execute the following commands line by line to unpack the archive, configure the build to enable ndbcluster, compile and install the binaries.
Do note that the compile will take some time. On my Core i5 MacBook Air, it took about 10 minutes to fully compile the source.
Post-compile steps
The final step will install the MySQL binaries into /usr/local/bin and the Cluster-specific binaries into /usr/local/libexec. For most people, /usr/local/libexec is not in their path, so we should add it now. There is a file called .profile in your home directory, if you don’t have it, create it by running touch ~/.profile in the command line.
Open the file, and add the following line to the end of the file.
export PATH=$PATH:/usr/local/libexec
Save the file, and you’re done!
Play! is a spankin’ new Java web framework that looks a lot like Ruby on Rails, but in Java, of course. It’s cool and refreshing and exciting because it does away with complicated J2EE stacks and throws the concept of servlets out of the window. However, for not being able to deploy a Play! app in a traditional way, you get many awesome things that eluded Java web development for ages, including
amongst other niceties. I’m excited to be trying it out for a few questions for my SingPath API assignment this midterm break.
Hello SMU world.
It’s the time of the term again where people make mass bookings to secure GSRs for the study break. Which means, there’s bound to be a lot of cursing and swearing at the decade-old Facility Booking System which CIT (now IITS) doesn’t care to fix for modern web browsers like Safari, Chrome and Firefox.
So here’s something which I wrote to maybe help alleviate this year’s collective suffering a little.
By the way, this is tested on Safari 5.0.4 and Firefox 4.0 and Google Chrome 10 ONLY. But I would appreciate feedback on whether this works on Internet Explorer though. :)
Update: Doesn’t work on IE8. IE8 complains about an “error on page” and hangs there. Sigh. I’ll try and look into that when I get bored of mugging.
1) I’ve provided a bookmarklet which contains all the juicy Javascript code. The bookmarklet is here:
Don’t click it, but drag the entire [Make FBS Better] bookmarklet to your bookmarks bar for easy access.
2) Access the Facility Booking System from the direct link here, and not from OASIS. This is very important. We don’t want no OASIS on our browser.
3) Make a booking. Get to the page with the orange color calendar view, as per my screenshot below.

3) Click the bookmarklet! You should see the content expand to fill up the available space in your browser window. Now it should look like this…

So now, you don’t have to keep scrolling left and right and all to make your facility bookings. As a result, you get to see more of the calendar view now, which should make choosing empty rooms to book much, much easier.
That being said, this comes with no warranty whatsoever. If it doesn’t work for you, please make sure you are using either Safari or Firefox or Chrome. If you are and it still does not work, drop me an email at mohawk.riceball at gmail and I’ll try to help.
All the best for your exams!
Much Love,
Jun Kit
Despite my unbelief and doubt My Jesus He has sought me out In my weaknesses He’s strength That leads me on
For no one else can comprehend My thoughts and fears not known to man (but) it’s His perfect love that Casts out all my fears That casts out all my fears
Modulate.
"New Creation Church - Love’s Come Down (the Christmas album)
I finally got round to googling the lyrics of 钉在十架 Nailed On The Cross, the 10th track on New Creation Church’s Justified Hokkien album. I don’t understand Hokkien, and when I saw the words, it just blew me away.
有一个人 根本无罪
但这个人 为我流血
看他得刺的身躯
看他受伤的脸
耶稣的性命 和我罪人对换
为拿去我罪 替我钉在十架
是怎样的人 有那么大的爱
是代罪羔羊 天父的最爱
我无法完全了解 主耶稣的爱
为拿去我罪 替我钉在十架
I like the 有一个人 根本无罪 但这个人 为我流血 and 是怎样的人 有那么大的爱 part. It’s beautiful.
What kind of man is this, with such great a love?
“Yes, sometimes we make plenty of seemingly unappreciative and ungrateful comments about the place we call home, but deep down, once we’re outside these shores, we’re almost always proud to tell others that we’re from Singapore.”
For all the reasons we call this home. (via TotalDefenceSG, and Rediscover.sg, and Lizzy)
You know I thought about it, an offhand thought. Bruno Mars is so popular because someone is finally writing positive songs. Not about some rap dirrrrty girl or about some hot mamaohyeahohyeah that completely objectifies and degrades women, making them believe that they are only valued…
(I’m a guy, but I really agree with this too. And that’s how my God, my Jesus loves me too!)
God sees the Saviour
then He sees me.
I’m in the beloved
accepted and free.
:)
"
Lunch at home today! (Taken with instagram)
Haha!
(Source: tonsofphotographyxox, via tonsofphotographyxox)