A cake for a huge Star Wars geek’s 40th. Rum and Raisin Chocolate cake, 3×6 inch cakes and 1×5 inch carved. All accents are gumpaste or fondant.
“utini!” is the only legible word said by the Jawa in Star Wars and everybody at the party knew exactly what it was.
Geeks and Nerds Rule 😉
Not Java. 😉
So, Java, huh?
It’s not so bad, actually.
As a first language, Java is okay – especially when it is taught right (inside joke there).
Anyway, hot on the heels (somewhat cold, actually), of the Windows Shutdown Crapfest, comes the X Character Finder crapfest, courtesy of yours truly.
First, a little background to this – at Uni I’m doing a subject called programming and problem solving. It involves Java.
Our first assignment was to calculate some variable. Or something. Anyway – one of the things we had to do was find out if the user’s name had the ‘x’ character in it – in either upper or lower case.
This is what I managed to come up with – I’ve commented the code so you understand what it does. I’ve also used Pastie to embed the code, because this is the one time WordPress has failed me. Right, everything seems to be failing hard on me tonight, so I’ve just linked the Pastie… 🙁
If you don’t really get what’s going on, I wouldn’t worry. Here’s the english explanation: Get a username. Count the letters in that username. Look at the first character – if it’s an X or an x, then we have an x in the username. If it’s not an X or an x, then we look at the next character in the username, and perform the same “Is it an X or and x check” again. We keep doing this until we either find an X, or we’ve run out of characters in the username. If you just want to know why this is the X Character Finder crapfest, well, it’s just because I’m re-inventing the wheel here, man – there’s a heaps easier way to find if a particular word/string has a particular character in it, and that’s via use of methods.
The real code that I submitted looks like this. Thanks again to Pastie. 🙂
See? Much easier.
This was the X Character Finder Crapfest, brought to you by Benny Ling.
LOLCODE is an esoteric programming language inspired by the language expressed in examples of the lolcat Internet meme. The language was created in 2007 by Adam Lindsay, researcher at the Computing Department of Lancaster University.
The language is not clearly defined in terms of operator priorities and correct syntax, but several functioning interpreters and compilers already exist.
“Hello World” in LOLCODE:
HAI CAN HAS STDIO? VISIBLE "HAI WORLD!" KTHXBYE
“HAI” introduces the program.
“CAN HAS <file>” acts as the includes statement.
“VISIBLE <message>” prints a message to the screen.
“KTHXBYE” exits the program.
See? Far, far easier than Java.
About the game:
Left 4k Dead was made by Markus Persson,
for the 2009 Java 4k Competition.
The entire game is less than 4kb.
The game is inspired by Left 4 Dead by Valve Software.
via Left 4k Dead.
It’s actually quite good. Nothing compared to the real Left 4 Dead, but fun nevertheless.
Well, it’s officially the holidays now – and if you’re wondering why I just have to post this, it’s because my holidays are all set!
I’ve got three books to finish off:
- Dreamweaver CS3 with CSS, AJAX, and PHP
I’m mainly reading this for the AJAX and PHP parts – while I have a working knowledge of CSS, I couldn’t write my own CSS from scratch. Not without a WYSIWYG editor, anyway.
PHP is HUGE in the webdesign world. If I want to be serious, or at least semi-serious about Web stuff, I want to learn PHP.
And Ajax, well, that’s just cool 😀
- Physics of the Impossible
This is an awesome book by one of my all-time favourite authors, Michio Kaku, the author that “built a 2.3-million-electron-volt betatron particle accelerator, which consumed 6 kilowatts of power an generated a magnetic field 20,000 times that the earth’s magnetic field.” – all while he was in high school!
It covers everything from the technology that is impossible today, but does not break physics as we know it (such as force fields, death stars, telepathy and teleportation, antimatter), to technology that sits on the boundary of our technical knowledge today (such as a speed faster than light, time travel, and alternate universes) to things that are just plain impossible – things such as perpetual motion and precognition – things that violate known laws of physics.
It’s a really good read – if you’re thinking about doing something in Physics, then I highly recommend that you read this book – you’re welcome to read my copy, but only when I’m finished with it 😛
- Cocoa Programming for Mac OS X
Regarded as “the Bible” for Cocoa programming on OSX, for OSX, Cocoa programming is a minor hobby of mine. I started it way before we started Java at school, and compared to Java for GUI stuff, it is so much easier!
For those special few of you that have worked with a Java GUI interface, the way that I’ve been taught it just plain sucks.
With Xcode’s Interface Builder, I don’t have to write the code for each radio button, write yet more code for where I want it to go, or even what I want to do – all this can be done using a GUI. Easy, no? Objective-C is great.
This book is a little hard to acquire in Australia, though, so I’d be looking to your closest bookshop to see if they can order it in. Mine certianly did, and I”m so glad for it…
Yep, I’m all set. So I might have to do a little work, but I’m cool with that, I’ve got plenty of time for that kind of stuff… Take, for instance, the Steam Weekend Deal – this week, it’s 50% of all ID games, you know, like Commander Keen, Quake, Doom, etc. I bought the super pack for $35 – you can check it out here if you have Steam and are interested.
So, what are YOUR holiday plans? Shout out in comments.
If Microsoft, Apple, or any other software company can make decent pieces of software, why can’t the Australian Government?!
Etax is _the_ most horrible piece of software I have ever had the pleasure of using – no wonder I decided to lodge my tax return over the phone last year!
If you’re like me and have a job, you’ll be wondering how to lodge your tax return. A word of advice – don’t use Etax. The ATO said they were going to support Macs – they don’t. Even so, it’s still a totally crap piece of software, even under it’s native platform! Just generally buggy, and far too complicated.
If it were to be improved, it would have to have a massive UI facelift – currently it looks like we’re still in the old Win95 days – and we’re not, really. Vista is crap, but that’s another topic for another day 😛
Besides a major UI redesign, it would also need to be improved code wise. How about you make it cross platform, by BUILDING it in a cross platform language. I’m hesitant to say Java at this point in time because I know how good (and BAD! very, very BAD) Java programs can turn out – but programming languages such as Realbasic, a BASIC variant, are truly cross platform. Of course, this was the very first time I have ever heard of Realbasic, but hey – if it’s cross platform, it’s cross platform. Obviously.
Another thing they should add to Etax 2009 is the ability to have two modes: “Simple” and “Advanced”. Just like the Short Tax Return for those of us with less complicated monetary status’, it’d be just as easy as the online form. Advanced, however, would just be the current iteration of Etax – all the bells and whistles, all the questions, all the forms. I shudder to think of people that actually have to think about, and fill in, al that stuff. Don’t even talk to me about me filling it out in ten or so years time – I’m not looking forward to it at all! But hey, that’s what accountants are for 😛
Apologies for the totally non-inventive heading for this post – if you can think of something else (that is more creative), leave it in comments.
Either I fail at Java, or Java just simply fails.
To me, it’s as simple as that – no ifs, ands, or buts.
Today in Computer Science I was trying to create either a Fibonacci sequence generator/recursion experiment (Input nth term of Fibonacci sequence, program then spits it back out the correct number in the Fibonacci sequence) or a stopwatch/number incrementer (press start to start incrementing, press stop to stop incrementing, press restart to reset counter) – none of which worked!
Sure, I didn’t have all the necessary skills (how DO you differentiate between different buttons?), but for something to be considered good (therefore, not fail), I run it past this rule: if it’s sufficiently complicated enough for me to have to refer back to the textbook or included manual, then the developer/creator has made it too complicated. To be honest, those projects weren’t outside the scope of my knowledge, but they were challenging enough to make me think.
If I ever get those projects working, I’ll post back here.
Either that, or Cocoa/Objective-C for the win.