January 28, 2009
CS100 is history!
I am not very pleased with the results of the final. Considering that all the possible multiple choice and short essay questions were published on the web beforehand, I was expecting a higher average. It appears, some students are willing to take the course for a second (or third?) time. Maybe they just like to be in my class, who knows? :)
To all who got a passing mark: BIG CONGRATULATIONS! You worked hard and deserved every point of it. I hope the things you learned in this course will help you in your life. I would love to help you in the future whenever you have a problem about computers in general. So, don't hesitate to drop by my office next term. Yes, I will have an office in the university next term. Don't forget to check my web page to hear about it.
Take care, and have a happy and relaxing holiday!
January 16, 2009
End of the Term
"Best" Free Windows Software of 2008
last.fm and Rhythmbox
I am guessing that most of you geeks out there already know this simple trick, but for the less Web 2.0 aware community out there: last.fm is the ultimate online music experience! Just sign up with them for free and start listening to the best music on the planet. What makes this creme de la creme is its absolutely easy integration with Rhythmbox (default music player in Ubuntu). Once you sign up for an account at last.fm, open Rhythmbox, go to Edit/Plugins and choose and configure the last.fm plugin. That's it! You can now start listening to your favorite music from within Rhythmbox. You can search based on artists and tags or you can join one of the groups. Your search results will be immediately turned into a radio that you can listen to. And cheer up, all of this for free! [Assuming you are being nice and using Linux, that is]
I started working on Zindan
I finally gave start to my first Java Roguelike: Zindan. With my currently bloated schedule, I don't know how much time I will be able to spare to work on this project, but I had to start it at some point. Considering that in the next term I will be teaching an IE course, I may fast drift away from the world of programming unless I hone my skills frequently with this kind of toy projects.
Well, actually this is not 'planned' to be a toy project, but a real, very playable roguelike at the end. I have been playing roguelikes for years by now. Clearly, the beauty of a roguelike is not the interface but the inner game mechanics. How items interact with each other, how creatures behave, how players survive in unexpected ways are the key elements of success for a roguelike. Therefore, my goal will be to produce a very flexible game core which allows even unexpected actions to be realized both by the player and the NPCs. Ofcourse, this is not a simple task. And even I don't know how I am going to do that. But in time, each piece will fall into place and things will be more clear. My first goal is to create the skeleton of the project, including all base classes for creatures and items, IO classes and level generators.
This is going to be one hell of a quest to complete!
Fixing Wireless Transmission Rate in Ubuntu Intrepid Ibex
Apparently, the problem is a faulty transmission rate assignment by iwconfig. If you observe extremely bad browsing performance, open the terminal and type
iwconfig
You will most probably see something very similar to the following:
wlan0 IEEE 802.11bg ESSID:"Burkay"Here, wlan0 is the name of your wireless device, and Bit Rate is the maximum transmission speed your card can realize. However, unless you have an ancient system and a prehistoric network, your card can support at least 54 Mb/s. You can see that at the moment the card seems to support only 1 Mb/s, an obvious trouble. In order to fix this problem, you simply have to force iwconfig to use 54 Mb/s as the bit rate. To do this, first open /etc/network/interfaces in gedit:
Mode:Managed Frequency:2.437 GHz Access Point: 00:12:BF:67:8C:75
Bit Rate=1 Mb/s Tx-Power=27 dBm
Retry min limit:7 RTS thr:off Fragment thr=2352 B
Power Management:off
Link Quality=69/100 Signal level:-63 dBm
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:0 Missed beacon:0
sudo gedit /etc/network/interfaces
Now add the following line to the end of the file:
pre-up iwconfig wlan0 rate 54M
If your card has a different name than wlan0 then don't forget to fix the above line by using the proper name. This makes sure that after the next restart your wireless interface will be forced to run at 54 Mb/s. At least this fixed my card and now, once again, I can browse at full speed.
Fixing Mouse Mapping in Ubuntu Intrepid Ibex
gedit .xmodmap
and type the following into your file:
pointer = 1 8 3 4 5 6 7 2 9
Then, save, exit and restart. As you can guess easily, this makes button 2 behave like button 8, and button 8 behave like button 2. Button 2 is my wheel click and button 8 is my first left side button. So, after this change the left side button click corresponds to a middle click. Bingo!
