Predictive Text assignment

Just before we broke for Spring Break, we were given our end of year assignment for my Data Structures & Algorithms module. We were given a fully implemented keyboard interface, as shown below, and we had to design and implement a class that takes the input from the keyboard and creates a predictive text system which anticipates what you want to say based on what type using the keypad. Basically the T9/Dictionary/Predictive Text system you use on your phone when you text someone.

When I saw the project outline I started to get excited, finally a proper (or what I would call proper) programming project in college. Last year we had an Alice assignment, which to be honest, was pants! But this project really piqued my interest. And subsequently, I’m 5 days into my spring break, and I’ve nearly finished it. This thing is due for the end of the semester, which is another 7 weeks away.
Considering I’ve worked 2, 8 hour days at work in that space of time, I consider that quite an achievement. I’ve only got to implement one more method, and do some refinement & commenting of the code and it’ll be ready for submission. Everything seems to work perfectly, and I even managed to find a file of about 60, 000 English words to use as a starting dictionary.
I’ve rather enjoyed doing this project, it was like a sex. Great fun while while you’re doing it, but once it’s over you just want to go back for more….. given a 30min rest and a sandwich of course.
Now I suppose its onto the WikiGolf Graph Traversal game….. But thats for another post.

I don’t know what to make of it…

Other than to laugh. But I got a good 20mins of enjoyment out of this post - http://www.27bslash6.com/5pm.html. Please read it all the way through to the end. I particularly liked the following:

Despite your assumption, I have the highest amount of respect for authority. I actually wanted to become a police officer but failed the IQ test when I arrived on time at the correct building
It is a fairly large job as one of the backpackers is American and will therefore require a hole several sizes larger than normal. On the plus side, the other is from England which obviously means no dental records.

Brief Summary: Blogger in Australia gets a letter from the police stating that one of his blog posts violates the law. Blogger writes back. Hilarity ensues.

It’s all over this post – http://www.27bslash6.com/guaranteed.html

Enjoy

Happy Hallmark Day!

Sierpinski Valentine

Sierpinski Valentine

Or better yet. Just ignore today go on with it as you would any other Sunday. Why not just do something next week. Make it a surprise, make it special. But don’t just do it because Hallmark tells you to.

Google. Big or too big?

I like Google. I really do. They make some great products and they do some wonderful things, such as Gmail, Search, Maps, Chrome, Picasa, Grants, Google.org, Youtube, Google Earth, and their latest go at the universal translator and so on. Some of those products there were acquired, but they managed the steward them well after they were bought

I also dislike Google. They do some really bad products and some really crappy things. They censor results in China (about to stop, but they still did it for about 4 years), Dodgeball, Jaiku, Video, Orkut (outside of Brazil/India), Notebook, and so on.

As you can see I’m in two minds about the company. On the one hand I feel that they are a good force in the world. They’re using their position to create competition and spur innovation. They’re using their money to fund worthwhile projects and goals. In general they seem to be the gentle big lumbering behemoth with only good intentions, and when they do something bad, you can generally see it in their eyes that they didn’t mean it.

However at the same time, Google is becoming a bit of an overlord. They are so big that they have their finger in almost every pie. Search, email, photos (Picasa), social networks, video (Youtube), translation, phones (Android), browsers (Chrome), computer OS (Chrome OS), location based services (Latitude), health records (Google Health), blogs (Blogger), hardware (helping design the hardware of the android phones), Fiber connections to the home etc. The list goes on and on and on.

I had my first Holy Shit! moment with Google a little while back after they had launched a few things, with the second 3 being launched at the same time. They launched Chrome OS, Chrome browser, and Android, Google translate as you type, automatic transcription/captioning on Youtube videos and translation of Youtube videos. When I saw all these releases I realized what a force Google is in the world. These are only sideline projects. Google makes over 90% of its revenue on Ads, and most of that comes from search ads. All these other things are just periphery and while you could argue that the reason Google is so successful is because they host this range of other products, the point still remains that these aren’t money spinners and aren’t likely to contribute majorly to Google’s overall income so they should stay classified as sideline projects.

When you consider that they released such well formed and featured projects, with such direct impact on people. Which featured a major bound towards universal translation, (via speech-to-text, text translation, and then text-to-speech), and this isn’t even their main aim. It really hit home for me that Google is truly a force to be reckoned with.

But even if we assume that Google is good, and all they touch is gold, and they’re guided by Larry and Sergey’s loving care as well as their motto ‘Don’t be evil‘. What happens in 10 years when Google is not so divinely guided? What happens when the founders have left and the businessmen start to get in? Or people with a different vision and purpose take the reigns. Google will still have their fingers in all these pies. They’ll still have so much of our information that they could hold it hostage.

Even if we trust Google today, why trust Google tomorrow, or next week, or 10 years from now?

And yet even after all of this, I still use Google services. Gmail, Search, Wave, Apps, Translation to name but a few. I know it a cliche. But in this case only time will tell! I still have my hopes that Google will stay in our good books, but I’m also very wary of what changes are going on, in and around Google, and how they react to them.

(All sources and references are linked to in the text above)

Stackoverflow is great!

For the programmers out there, the title may seem like a bit of a misnomer. A Stackoverflow Error is one an error whic “occurs when too much memory is used on the call stack”,  to quote Wikipedia. In short this is not a good thing.

Why do I like stackoverflow then? Well because its the name of a great forum for asking and answering programming related questions. I’ve been using it for a little while now, mainly for little onesey-twosey type questions. But today I decided to ask a more difficult question about exceptions in Java. I’d spent a while researching it online and I couldn’t find a simple clean answer. Everywhere seemed to give conflicting reports, and none were specific to my problem.

However when I asked my question on stackoverflow I got about 7 direct, appropriate responses within an hour. A couple of which then lead to informed discussions on the topic. I learned more in that hour than I did in about 3 hours of searching. That’s why I love it.