Monthly Archives: March 2007

DigiPro Tablet And Linux

March 18, 2007 » Geek

A few days ago I finally gave in to the two-for-one tablet deal at geeks.com. On a side note, I’ve always had very good luck with geeks.com, good stuff, right price, no problems. Anyway, I gave in and bought myself two of the DigiPro 5.5″x4″ drawing tablets, Model No. WP5540. I tried to find some compatability information about the tablet and linux, but couldn’t.

I got it yesterday, hooked it up and its working just fine. I don’t know about the “512 Pressure Levels”, since I’m not sure what app on my machine would take pressure levels anyway. The GIMP didn’t seem to act any different however. I did uncomment the information for a wacom tablet in my xorg.conf and restarted my X server, but I haven’t tried it without that change, so it may not be necessary.

5.5″x4″ is about as small as it sounds, but it really isn’t that big of a deal. There is plenty of fine control on the tablet, and it’s more than big enough for me. I intend to use it when I’m working in the gimp, for fine control of the lasso tool, etc. If it had a scroll wheel on it, I think I’d replace my mouse, it’s that comfy. Plus you can roll the pen between fingers and type just fine. No more grabbing the mouse every few seconds.

For the record I’m on Mepis, whatever is current there, with kernel 2.6.15-26-386.

OurUNO & mod_rewrite

March 17, 2007 » Geek

Over the last day or so I’ve spent some time restructuring OurUNO to fix it up in time for the end of the semester. One of the biggest and most visible things I’ve done is to start using mod_rewrite to make super-slick URLs for everything. For example, in the old system to view Robert Fulkerson’s information and get reviews, you would have to go to “http://www.ouruno.com/instructors.php?action=view&id=1”. With the new system you can simply go to “http://www.ouruno.com/instructor/fulkerson/robert/”. mod_rewrite is darn cool.

Along with that is a shift in the design paradigm, setting apart the actions on the site into 3 sets, (View/Edit/Create) and 3 sections (Course/Instructor/Review) with a deeper backend and wiki style rollbacks on edits. Also, at Dave’s suggestion, I’m adding in the ability to generate a review or other content without signing up. You just have to enter it, got to your UNO email, and click through on the link to validate your address. Rad.

Peguin Swap

March 12, 2007 » Geek

I didn’t write about it, but I changed from Ubuntu to Mepis a few days ago. I’m going to be honest, I really liked gnome, but I’m actually liking KDE more so far. My main complaint is I have to make everything smaller in KDE, all the defaults are stinkin huge.

I figured Mepis was a safe bet from Ubuntu, they’re related and Mepis has the Ubuntu repo’s included. Plus, I had used Mepis before, and I happen to like pyramids.

Tags: ,

Facebook Spam

March 12, 2007 » Geek

I’m pretty sure I just got my first facebook spam. Thus begins the final stages of facebook’s descent into myspaceism.

Tags:

Bitwise Operators And Blowfish

March 8, 2007 » Geek

I wrote a while back about writing my own Blowfish/Twofish implementation in JavaScript, but lamented that I didn’t know enough about JS to pull it off. Well, I still don’t know enough about JS to do it, but it turns out I don’t know enough about C++ to do it either. Yesterday I tried writing my own blowfish encrypt, and got very stuck after my third iteration.

What was I missing that I needed to get it done? Bitwise operators and data type knowledge. I spent some time today writing a few programs to test bitwise operators and try to understand whats going on. The ones that gave me the most trouble were the shift operators. For some reason I had it firmly in my mind that they acted like shift registers (think hardware). I kept trying to shift one number into another bit by bit.

Only when I set up some runs and included a binary printout after each step did it actually click what was going on with those operators. I felt silly.

Anyway, here’s a link to the source of my little bitwise operator (mostly shifts) example. I didn’t write that binary printer BTW. I did, however, write that code highlighter system using GeSHi, which rocks.

bitwise.cpp

Blowfish Version 1
version001.cpp

Blowfish Version 2
blowfish.cpp
blowfish.h
tester.cpp

Blowfish Version 3
blowfish.cpp
blowfish.h
tester.h