March 2002

PHP-GTK: Time to Find Out How Much I can Chew

One of the crucial parts of learning a new programming language (or aspect of it) is having a practical application for it.



Like PHP-GTK; now that I've got a nice GTK-based environment set up I'm ready to start developing GUI apps in GTK... the biggest obstacle (aside from the time factor) has been settling on a project to get started with. (I'm setting aside my original plans for a Blog Management GUI for the time being, since I'm also planning the site format in the forseeable future.)



Since I'm also interested in getting used to working with raw TCP/IP sockets, I've decided to build a PHP-GTK based FTP client, based on the skeletal FTP class I wrote last month (I won't be using PHP's built-in FTP functions, that's how much of a masochist I am.)



I've been getting back into the PHP-GTK mindset (Widgets, Packing, Connecting Signals, all that fun stuff) this afternoon, and now that I begin to think about how a nice FTP client should behave, I'm wondering what I've gotten myself into. I suspect the program will wind up being a crufty kluge by the time I'm done with it, but I'll be too proud of having creating a useful GUI app at all to mind.

Also

This Program is Free?!

TikiI've played around with the GIMP before, but until I sat down with my Wacom Graphire tablet last night, I'd never actually tried to produce a finished graphic with it. This tiki is that graphic. (Apologies to Shag. I know it's terribly derivative, right down to that nifty wood texture technique. But you gotta start somewhere.)



The interface takes some getting used to; after 6 years of Photoshop I'm used to having all of the pulldown menus across the top of the main program window- with GIMP they're accessible with a right click on top of the image you're working with. It's a usability tradeoff; it's an extra click, but you don't have to move the cursor all the way to the top of the screen. There are lots of little things like that.



But overall, it is an amazingly full-featured program. as open source advocates always like to add, "And it's 100% FREE!".

Also

Bob Mould: Modulate

DISCLAIMER: If there's one thing I can't stand, it's people who write crap album reviews on their websites (or Amazon.com). More often than not a self-styled reviewer will take a song or album by one of their favorite artists personally when they don't like it. Or at the opposite end of the spectrum, they'll have nothing to say but "Dude, Thermous RAWKS!!!!" I'm trying to keep these things that annoy me in mind here, but when all is said and done, I'm just some shmuck whose web site you found when searching for 'Bob Mould' and/or 'Modulate'.



ModulateBob Mould is probably best known (by those who know him at all) as the guitarist/vocalist of the seminal 80's Punk/Pop band H?sker D?, but although I dimly remember seeing promotional posters for Candy Apple Grey at record stores in the late 80's the first time I heard anything by Bob Mould was the fall of 1994, when Sugar's last regular studio album, File Under: Easy Listening was released. I was living in the dorms then, and my neighbor played the disc constantly. The first track, Gift, had me hooked the first time I heard it, and after that there was no turning back... I soon owned all of Sugar's recordings, and once again found myself lamenting my poor timing; I never got to see them live.



Seven years after my first exposure, I would say that Sugar is still just about my favorite band of all time. Never was there a more perfect balance between ass-kicking rock and pop sensibility. As I began to explore H?sker D? and Bob's Mould's earlier solo albums, it became clear that that ass-kicking/pop thing is something he really excels at.



The first time I saw Bob Mould in concert was at a solo show he did at the Water Street Music Hall (The bar formerly known as the Horizontal Boogie Bar) in Rochester, NY. The man rocked the house with nothing more than an acoustic guitar and the same ferocious energy that can be heard on the live H?sker D? album The Living End, and on the live bonus disc The Joke Is Always on Us, Sometimes that came with early copies of Besides.



So, I reacted with sadness and consternation when he announced in 1998 that he was through with the electric band thing he had been doing for the better part of 20 years. Fortunately, I caught the Los Angeles leg of the Last Dog and Pony Show tour, and to my amazement one of my fondest wishes came true - I got to see Bob play Man on The Moon live, with a band. (He began to play it as an encore at the acoustic show, but stopped after breaking a couple of strings. And no, I'm not talking about the REM song about Andy Kaufmann.)



One of the tracks on the second half of the 1998 album, Megamanic, gave some indication of the direction in which Bob was heading. It wasn't my favorite tune on the album, but I didn't write it off as crap the way many fans and critics did. I would much rather see a favorite artist move in the directions that interest them than stagnate or adapt to the musical zeitgeist of the times the way KISS and Alice Cooper did in the 80's.



Which brings me, of course, to the new album, Modulate. It came out today, and I picked up a copy on my way home. I'm on my second listen as I write this, and I'm still trying to find my way into it; I'm not an electronica fan, so I can't really speak to Modulate's merits as an electronica album. Although the ass-kicking element is largely absent, Bob's familiar, comfortable songwriting isn't. In a way, that's probably one of the things I'm getting hung up on; my immediate inclination is to imagine each track as it would have sounded had Sugar recorded it. Long-time fans take note: The electric guitar becomes much more of a presence a few tracks in, and makes things a little more accessible. I think this is probably by design.



This is going to be one of those albums that I like better each time I listen to it; as I said, I'm all for a favorite artist doing something they're really into, even if it's not something I'm into. Modulate demands to be listened to on its own terms, and I hope that people who actually review albums for a living are willing to do that.

Also

Graphire USB and XFree86 4.2.0

This last weekend was another adventure in "Configuring Linux The Hard Way", as I finally made a serious effort to get my Wacom Graphire USB tablet working under XWindows. (and subsequently, the GIMP)



It's not working yet, but I feel as though I'm getting pretty close. The problem is that there are about 5 different Wacom tablet HOWTO documents kicking around the internet, and all of them seem to be at least a year old, and all of them recommend using a different driver.



The Kernel stuff seems to be fairly consistent - I had to compile a few new things:

  • Support for the usbdevfs in the kernel (I spent Friday evening trying to figure out why /proc/bus/usb was missing - this was why.)
  • The evdev module
  • The mousedev module


I already had the wacom module in place.



Next came the search for a workable X driver for the Graphire... I had no success with the older xf86Wacom and xf86WacomUSB drivers, so I decided to give the alternative xf86GraphireUSB driver a try. I tried a compiled binary first, without success - X successfully loaded the driver and initialized the stylus, eraser, and tablet mouse devices, but when I try to use the tablet the X log fills with lines and lines like:

Graphire: Huh? (2,0,-100)

You know you're in trouble when a Google search for a particular error like that only results in about 5 matches, and all of those matches are dead-end mailing list threads of other people asking

"What the hell does this mean? Anybody?"

I am encouraged, though, because those messages mean that X is getting some kind of response from the tablet, even if it's not the one it's expecting.



Before going to bed last night I copied the xf86GraphireUSB source into the X source tree and started recompiling everything from scratch.



The driver compiled correctly, but I'm getting the same errors. This morning before work I installed the xinput utility, which will hopefully help in the debugging process. I'll find out tonight.

Also

Worst... Site... Ever

So I'm surfing around for IceWM themes, which has naturally led me to themes.org. (No link, because they piss me off)



Every time I follow a Google search result link to a themes.org page, I wind up in the middle of a big messy page with crap navigation and a useless search engine. And if you actually find a theme you might want to download, they're still chock full of little navigational annoyances... like a little "Download" graphic that looks for all the world like a clickable button. It's not - you can't click on it. To download the theme you have to click on its filesize, which appears under the download graphic.



Few sites evoke such an instant negative reaction from me- the frustrating thing is that they have a lot of content generated by a lot of talented, dedicated people... it's just impossible to get to it thanks to the crappy site design. And the other annoying thing is that the site graphics are very well done, as one would expect from a site devoted to skins and window manage themes... so you have an attractive yet useless site.



Blah. Back to theme hunting.

Also

Why Doesn't it Sound This Good in Windows?

Well, it nearly killed me, but I got my sound chip working on my Linuxfromscratch system using the ALSA 0.5 driver, and installed a pretty good audio player that will play stuff from my IceCast server on the other box. I haven't gotten around to trying an audio CD yet... having sound at all is enough of a novelty right now.



I think I still have some startup script finagling to do if I want to get the sound driver to load automagically, but again, having the sound working at all is such a pleasure right now that I'm not going to worry about it.



My "Etower 566 i2" handles sound on the motherboard, thanks to the Intel 810 chipset and an AC97 controller. It's never sounded that great in Windows; turn the master volume up much past 33% and it distorts horribly.



I expected about the same level of performance under Linux, but to my pleasant surprise the 810 chip sounds great with Freeamp... cleaner and fuller than anything in Windows ever has.



Which is rewarding, because I was up until about 1:30 this morning trying to get the ALSA drivers working... I initially installed the 0.5 drivers, since the 0.9 package is still marked Beta. The problem was that I had installed XMMS as my audio player, and I needed to compile the ALSA output plugin, which demanded the 0.9 drivers and header files. To make matters worse, I had initially compiled the drivers without specifying a specific sound card, so it built all of the drivers, not just the ones specific to my machine. I finally gave up on XMMS and gave Alsaplayer a try - and it worked! I like the reverse-play and speed control options in Alsaplayer, but otherwise it's a fairly minimal app with an unfriendly interface.



Where I really got into trouble was when I went to remove those unneeded modules by hand.



To make an already long story shorter, today I finally got everything working after completely wiping my /lib/modules/2.4.16 directory, rebuilding the kernel (taking the opportunity to add the input core and Wacom tablet modules while I was at it), rebuilding the ALSA 0.5 drivers and libraries, and making sure to update my /etc/modules.conf file.



If anyone else out there is pulling their hair out trying to get the snd-card-intel8x0 driver compiled on their E-machines 566 i2, make sure you also add the via686a driver to your configure line, I.E.:

../configure --prefix=/usr --enable-shared --with-cards=intel8x0,via686a.

Otherwise you're going to wind up with a bunch of infuriating 'unresolved symbol' errors - and searching Google won't do you much good.



Anyway, I'm pretty psyched - my Linux desktop is shaping up to be nice and slick, and very usable. I still need to get the hang of ROX-Filer, but I already love its MIME and icon handling. I got GIMP installed yesterday, and my next adventure in Linux configuration will probably be trying to get my Wacom tablet working with GIMP.



Other than that, I need to get a good CVS GUI client so I can get back to working on the site.

Also

Syndicate content

Twitter

  • Score! http://t.co/KVDyULXM 4 years 31 weeks ago
  • @ComcastBill Thanks. 4 years 31 weeks ago
  • @wstites Thanks. @comcast is making it awfully hard for me to give them more money. 4 years 31 weeks ago
  • @comcastbill(have called 4 or 5 numbers so far. Am told I don't qualify as existing customer, no way to track who it was who called me.) 4 years 31 weeks ago
  • @ComcastBill I received a call with a bundle offer yesterday, but I lost the rep's contact info. I get the runaround calling the main #. 4 years 31 weeks ago

Older

Contact

Andy Chase
(978) 297-6402
andychase [at] gmail.com
GPG/PGP Public Key