Categories
Uncategorized

Donations will now be accepted…

Donations will now be accepted...

Due to popular demand (one person asked for it) you can now donate money directly to RasterWeb!

What will this money be used for? To guilt me into posting more.

Yeah… that’s the brutally honest truth. Beyond that, I promise nothing.

Keep in mind, I’ve been doing this since 1997. How many other blogs have been publishing for that long, without giving up, quitting, going away, being deleted, getting “lost” on someone else’s hard drive or domain or whatever.

Also, I originally mistyped the title as “Donations will not be accepted…” which I think would have been a more amusing title.

Categories
Uncategorized

Twitter Kiosk Hacking

The year was 2007. Twitter was still fairly young, and was used by mostly the techie crowd. For BarCampMilwaukee2 I put together a bit of code using Perl, cron, HTML/CSS and ended up with this kiosk-sort of thing that we projected on the wall during the event.

tk000oldapp

Here’s a mock-up of what it looked like. I had just started testing it around August 2007 using the @web414 account on Twitter. Oh, keep in mind that there were some apps do to this sort of thing back then, but most were written in Flash, or AIR or something else that required specific hardware/software that I couldn’t use for whatever reason. Oh, and just a bit of history, I’ve been building kiosks out of old machines since 2002 or so. These are machines that would find no other use, so I do my best to put them to good use.

So for this particular modern-day kiosk experiment, I wanted to use the Eee PC 701 I got in 2007. It’s not my main portable since I got a MacBook, but I still find uses for it. The idea was to have it sit on my desk with a constant stream of Tweets rolling by…

tk001tweetdeck

I’m (currently) running EasyPeasy on the Eee PC, and it can run Adobe AIR apps, so I figured I’d give TweetDeck a try. Sure it’s in beta, but what isn’t, eh? Anyway, while TweetDeck is a nice app, it’s infuriating that it can’t display one really wide column. I know it’s infuriating because it’s a feature people seem to ask for in the support forums. TweetDeck wasn’t doing it for me.

tk002spaz

Next up was Spaz. I really like all the ideas behind Spaz, it’s a nice little application. You can even edit the CSS to tweak the interface. That’s a handy feature!

tk003spaz

I didn’t do much with the CSS tweaking, as I just wasn’t feeling it with Spaz. There was a lot of application UI to deal with, and I didn’t feel like tweaking an AIR app that much. Still, Spaz is nice for what it does. The developer’s blog has some Twitter gripes, but then, who doesn’t!?

tk004buzzbird

Next up was Buzzbird, an XULRunner-based application. If you’ve never hear of XULRunner, it’s basically a method of building applications the same way Firefox and Thunderbird are built, using XUL to create the interface. This is a technology I really wish we would have seen take off a bit more, as it’s great to work with.

tk005buzzbird

Giving the CSS a tweak in Buzzbird was simple. Inside the Buzzbird folder (under Linux) is a chrome folder, and in there is a skin folder, and in there is a classic folder. CSS and images live there.

tk006buzzbird

If you’re using a Mac, you just do the right-click ‘Show Package Contents’ trick and drill down a little bit. Also, if you are using Mac OS X 10.6 Buzzbird does not work (as of my writing this) though it does work on Mac OS X 10.5.

Buzzbird is a nice XULRunner-based application that is multi-platform and open source. The development seems pretty active on it as well. (And just like Spaz, the developer has some Twitter gripes…)

tk007firefox

Next up was… Firefox. I happen to really like Firefox, and one feature I really like is that (on Linux) it has a “kiosk mode” that let’s you hit F11 and it makes all the browser chrome go away, and leaves you with a full-screen view of your browser viewport – no controls – just content. I love that! Especially on the small screen of the Eee PC, which shows just 800×600 resolution. But this isn’t the normal Twitter view, and the normal Twitter view also doesn’t automagically refresh itself, so there’s work to be done. (Note: I finally did find a kiosk extension for Mac OS X, it’s Full Fullscreen.)

tk009addons

First off, we need the page to reload. Believe me, I dug through all sorts of Greasemonkey user scripts claiming to make a page reload, or specifically claiming to make Twitter reload. None of them worked. Maybe they used to, but they didn’t for me. What finally did work was an extension called ReloadEvery. It worked when nothing else would. (Be nice and don’t make it reload too often, remember, every page load uses someone’s resources.)

tk010stylish

So besides ReloadEvery we’ve also got Stylish installed, which lets us easily tweak the CSS for any web site. It’s pretty simple. So after just a little bit of CSS hacking (and I mean a little, I really didn’t spend much time on it) we’ve got a look that minimizes some of the stuff we don’t want to see, and emphasizes more of what we do want to see.

Here’s the CSS for “Twitter Kiosk” I put into Stylish.

/* Twitter Kiosk */

@namespace url(http://www.w3.org/1999/xhtml);
@-moz-document domain("twitter.com") {

#logo { display: none !important; }
#status_update_box { display: none !important; }
#header { margin-top: -16px !important; }
#heading { display: none !important; }
#side_base { display: none !important; }
#container { width: 100% !important; }
.subpage { width: 100% !important; }
#timeline { width: 100% !important; }
.status-body { width: 93% !important; }

tk008firefox

It’s not perfect. As you can see the page is still showing the notification of new tweets, and some of the links at the top. I didn’t bother trying to get rid of those bits, but it should be pretty trivial to hide them as well.

tk011eeepc

Anyway, this thing is ready to run, and can just exist on the Eee PC sitting on my desk, or be connected via VGA to a larger external monitor, projector, or television. And best of all, it works in Firefox, which is everywhere, and requires just two extensions, and a little bit of CSS.

So the big question is, can I run it on older hardware with older software? ReloadEvery claims to work as far back as Firefox 1.5, though Stylish claims to requires Firefox 3.0 or higher. Full Fullscreen (for your Mac kiosk) has older versions that should work with older Firefoxes. Firefox 3.x says it needs Mac OS X 10.4 or higher, so that tosses out a lot of older Macs unless you look at Firefox 2.x or older. Still, you can experiment if you wish and see what you can cobble together. Who knows, I just might do that myself. (Maybe even on Linux.)

No matter what you do, have fun and keep on hacking…

Note: This was all written before #newtwitter happened, so I’m not sure any of it will still work. If it does, let me know… thanks!

Categories
Uncategorized

Pressure Sensitive Web Apps?

I’m quite pleased with our latest input device, the Wacom Bamboo Pen and Touch Tablet, and while doing some browser maintenance, I noticed a plugin:

Wacom plugin

So, I set about looking for how I could use this, and found this Wacom page which was… pretty much useless. None of the examples worked. In fact, I get an alert saying the WacomPlugin could not be found. Which is odd, because, well, it certainly appears to be there. After a little testing it seems it doesn’t work in Firefox or Chrome, but does work in Safari. Some “OS Magic” may be sprinkled onto this plugin. Try using this page in Safari if you’ve got a tablet and you should see it outputting some nice numbers.

After a quick search the only example I could find was this amazingly fun drawing app called Harmony that Ricardo Cabello had created and added the Wacom Javascript API to. I managed to create this amazing masterpiece you see below:

harmony

But honestly, it’s really hard to tell if the pressure sensitive part works. It seems to sort of work. I do get different line widths from using the tablet versus using the mouse. I’d like to dig into the Wacom Javascript API stuff a bit more and see if I can get some simple example code to work. Of course it would be great to see it working in browsers besides Safari.

Categories
Uncategorized

0-3-swand

0-3-swand

Categories
Uncategorized

Happy Surgery Day!

It felt great back in May when I did the Guess The Photo… LIVE! thing at the Delafield Art Walk. That is, until a few days later when I was experiencing pain, saw a doctor, and found out I had a hernia. Most likely from doing all the lifting during the event. (Medical term: bilateral inguinal hernia – I actually had a hernia on both sides.)

But hey, with modern medicine being so advanced, and actually having insurance during this injury as compared to last time (See Dislocation) I wasn’t too worried. And then I was told I needed surgery. I learned back in 2000 when I was hospitalized that there are things doctors don’t joke about.

So I figured, let’s schedule this thing ASAP, and the surgeon is pretty accommodating, and I’m all set for June 16th. Two days before my birthday.

I’ve never had surgery before, so this was a whole new experience. I’ll keep it brief and not too gross (not until the end anyway.)

Hey Doc, it hurts when I do this... I got to the hospital, got a nice looking gown, and answered a lot of questions. The anesthesiologist shows up to talk to me, and I guess reassure me. They ask if anyone in my family has ever had a problem waking up from anesthesia. Not that I know of. I figure I’ll be the first. The surgeon was supposed to come and never did. Too busy I guess. Eventually they wheeled me into a waiting area outside the operating theater, and I think the surgeon stopped by to talk to me, but I’m not 100% sure. I then went into the operating theater and when the anesthesia was applied, I just drifted off quickly. I have sleep problems, and I guess that is what it feels like if you don’t have sleep problems. I feel asleep almost instantly. When I woke up, I was in another room. (I had asked where I would wake up, so I wasn’t completely surprised.) I looked around, and everything was blurry (I didn’t have my glasses on, but it probably would have still been blurry.) I was half out of it, and not really sure where I was. I think there were a bunch of other people on stretchers in the room, but I could have imagined that. Maybe I thought I was in the morgue.

So finally they wheeled me out, and stopped at the waiting room to grab the wife, and headed back to the first room they had me in. They gave me a small amount of fluids, and and crackers and pudding. They said I had to go pee before I could leave. I did that, and managed not to fall over even though the old legs were not working well. I then threw up, just a little bit, mainly liquid. I kept asking for a Jimmy Johns sub, but they kept telling me that was a bad idea. They were probably right. They gave me a bit more time to rest, and finally put me in a wheelchair and wheeled me out. I got wheeled around a lot.

I was at the hospital for maybe 5 or 6 hours total. Once we got home, I tried to sleep on the couch, but ended up going to the bathroom about 12 times during the night, which meant that best-case I got about 30 minutes of sleep between bathroom breaks. The next day (June 17th) I took it pretty easy, rested a lot, used the iPhone a lot, and the Macbook a little, pretty much staying on the couch the entire time. (At this point I sort of wished I had an iPad… something between the iPhone and the Macbook, for a better browsing experience.)

My Burgerthday Cake! So Friday, June 18th came. Happy Birthday! I again took it pretty easy. Hung out with the kids. Watched The Fellowship of the Ring. Opened some gifts, had some cake. I still took it pretty easy, but was able to do some things normally.

Saturday, June 19th… again, took it pretty easy, but did not spend the day on the couch. Actually left the house for dinner. Sitting upright or forward was uncomfortable (and would be for a while.)

Sunday, June 20th… I spent maybe two hours working at my desk, which was quite uncomfortable. Sitting with the Macbook on the couch was much more comfortable.

Monday rolled around and I went back to work. I wore shorts all week long and didn’t button them. Sitting back helped a lot, and I took a lot of breaks. (I used a piece of Mac software called Time Out .) The rest of the week was pretty much the same, with my comfort level improving daily. The one bothersome thing was that my right leg would get numb. I talked to a nurse and she said it was the nerves, and would take a little time to heal.

Oh yeah, what about the gross part!? Well, I was originally told that the camera they were going to put inside me could record what it saw, so I asked for a copy of the footage. In the end, they could not provide any footage, but did provide a few still photos. I couldn’t look at them for about a week… when I did, I didn’t know what was what, except that it was my insides, and it was very red. So here, transformed into black and white, and posterized so I can actually look at it, are four photos they gave me.

surgery

If you have any other questions about my bilateral inguinal hernia surgery… please ask me.