What I did on my vacation from reality

July 12, 2008

Fun with military ID

Filed under: Code, Geek, Linux, Stuff, perl, usmc — cuervo @ 6:11 pm -- Popularity: 2% [?]

So, being in the military, I get one of these nifty little dealies. I never bothered to look into them, but I saw a USB reader for $25 when they shipped us out for training, so I figured, what the hell.

I haven’t bothered to get really into smartcard hacking (yet?), but I have got it locking and unlocking my screen (and other assorted fun things when my friends plug their cards in).

Source - requires Chipcard::PCSC

Popularity: 2% [?]

February 27, 2008

Found it! WTF, Twitter? And the new RTL8187B driver

Filed under: Code, Geek, Linux, laptop, twitter, usmc — cuervo @ 8:16 pm -- Popularity: 9% [?]

Okay, I finally found a decent picture of me in that parade. Yay.

(That’s me in the back.)

Twitter’s fucking down again, which is too bad, because I just wrote a mail handler to tell me who’s following me. Woot, looks like it just came back up.

And, finally, I need reports on the new version of the RTL8187B driver that Mister Adams sent me, please. Does it compile? Does it work? Does it turn your computer into Oprah?

Popularity: 9% [?]

RTL8187B update; Miscellany

Filed under: Code, Geek, Linux, Misc, laptop, usmc — cuervo @ 10:08 am -- Popularity: 8% [?]

I’ve put up the contributed version of the RTL8187B driver I received from a Mister Adams that supposedly works with the 2.6.24 kernel. Note I haven’t tried it yet (I’m not in a hurry to upgrade from 2.6.22, even with that local exploit going around), and the only other person I sent it to reported a kernel panic. Use at your own risk.

Also, I was lucky enough to get called up to be in the Holiday Bowl Parade in San Diego in 2007. This was pretty much the only picture I could find (that’s me in the back):

If anyone else happened to be there and snap a couple, think you could send ‘em my way?

Popularity: 8% [?]



December 19, 2007

More fun with spam

Filed under: Code, Geek, Linux, perl — cuervo @ 2:41 pm -- Popularity: 5% [?]

[UPDATE] I cleaned up the source a bit, so it’s suitable for human consumption.

I was adding more bells and whistles to my mail system — this time, a command-line program to parse through SpamAssassin’s configs and tell you about rules, and one to add headers as such — when I realized that all that data I was basing the pointless little graphs in my earlier post on was a little rough, and SpamAssassin already has the data on what I consider ham and spam. D’oh!

So, here’s another one, based on sa-learn --dump magic. (Here’s source.)

Popularity: 5% [?]

December 17, 2007

Fun with spam

Filed under: Code, Geek, Stuff, perl — cuervo @ 5:52 pm -- Popularity: 4% [?]

I was tweaking my email system when I started wondering: what are the most popular hits against SpamAssassin?

So, I wrote a program to find out. :-)

Popularity: 4% [?]

December 3, 2007

T-Mobile haxx0ring

Filed under: Code, Geek, Linux, perl — cuervo @ 11:20 am -- Popularity: 5% [?]

I’ve increased the nift factor of the cam system: I can post with my phone once again.

Popularity: 5% [?]



November 26, 2007

Tips: Google adsense

Filed under: Code, tips — cuervo @ 10:14 pm -- Popularity: 5% [?]

One of the recent improvements to my little blog has been moving Google ads from the sidebar to every third post on the main page. In attempting to detect whether a full-size leaderboard ad would fit, versus a banner ad, I’ve found that loading a responseText object from createXMLHttpRequest doesn’t parse Javascript.

Since there really isn’t any good way to get window resolution from PHP, I hacked around it a bit. See, I have one adsense.php that serves up all the ads. I just do a global $adtheme; ‘checkres’ is a special case that includes some Javascript to detect the window’s internal area.

It basically works like this.

if (window.innerWidth >= 980)
{
  google_ad_width = '728';
  google_ad_height = '90';
  google_ad_format = '728x90_as';
}
else
{
  google_ad_width = '468';
  google_ad_height = '60';
  google_ad_format = '468x60_as';
}

And then the rest of the Google adsense variables.

Popularity: 5% [?]

November 7, 2007

HAL is a pain in the ass.

Filed under: Code, Geek, Linux, Stuff — cuervo @ 12:23 am -- Popularity: 4% [?]

Irony is screwing with udev for a while, finding it’s too much of a pain in the ass, and writing a Perl program to interface with HAL instead.

Anyway, I wrote a program to run commands whenever anything (USB drive, SD card, joystick, whatever) is inserted or removed a while back, and I spiffed it up a bit so anyone can use it. I’m still making it pretty, but I’ll post source in a bit.

Oh, yeah. In my hacking, I noticed that ssh-agent is incapable of deleting an identity when the (public?) key file is no longer accessible — e.g., mount removable media with ssh key, load ssh key, unmount media, and you can’t delete it. Bug in ssh-agent?

[UPDATE] Source is here.

Popularity: 4% [?]

September 27, 2007

Linux on the Toshiba Satellite A215-S7407

Filed under: Code, Geek, Linux, Misc, Stuff — cuervo @ 1:13 am -- Popularity: 4% [?]

Yes, I finally broke down and bought a new laptop, with my <in-joke>fat Marine Corps paycheck</in-joke>.

It’s running Ubuntu Edgy, after a seemingly endless series of forced dist-upgrades from Feisty. I’ll be posting my experiences with it in a seperate section, since I seem to be the first Linux user to have bought the damned thing.

So far: ethernet works out of the box. The wireless card, a Realtek 8187B, needs a quick hack to the driver source, which I’ve detailed here. Sound and the modem are big question marks. I get 1280×800 with Xorg and the fglrx module. Synaptics touchpad works as expected.

More to come.

Popularity: 4% [?]



September 26, 2007

No more Vista!

Filed under: Code, Geek, Linux, Main, laptop — cuervo @ 2:49 pm -- Popularity: 35% [?]

I got the drivers for the RTL8187B straight from Realtek, who was nice enough to respond to my email. However, when I compiled it and insmodded it under the Ubuntu live CD, it barfed out with an “Unknown RF chip” error.

After a bit of trial and error, I figured out how to get it to work: my card’s USB product ID is 0×8197, and it’s functionally identical to product ID 0×8189. All you have to do is go into rtl8187/r8187_core.c, and around line 2837, change

case 0x8189:

to

case 0x8197:
case 0×8189:

Works like a champ.

That said, why, WHY would you make the onboard NIC in a laptop a USB device? Why?

[EDIT] Drivers are at http://www.datanorth.net/~cuervo/rtl8187b/. Please read the README there, since I’ve made further changes since writing this post.

Popularity: 35% [?]

Next Page »
YOUR TROOPS LIKE YOU, TOO