Late at Night When the Wires in the Walls

After my iBook problems last week, I tried to install Debian on the thing. I have narrowed down the problem to something with the hard drive inside, because the machine seems to run fine and go through most of the installation without any trouble, but once I start using the hard drive, it completely freezes. I successfully ran the hardware test disc which came with it a couple times in extended mode, but I’m not sure that it uses the hard drive in it’s tests long enough for it to exhibit the problem. The failure seems to be somewhat random in nature, occuring at different times in the install process. Now I have the unhappy decision of trying to save this laptop which is more than 3 years old, or to attempt to buy a new one. Right now I am leaning toward buying a new one.

Honeywell seems 1.5 times as long this week, mostly because I’m making up for a day which I missed a couple weeks ago. Things have settled down there in terms of software failure, so I’m back at the normal coding which I am doing. The code uses Ogre, which is a handy 3d engine, making it much easier than learning something like OpenGL, and as a bonus adding portability. I am considering building some play applicaitons with the toolkit at home just because it would be fun.

Tonight I need to build a couple presentations covering some papers which were in CVPR this year to present at a reading group at Honeywell. It would be fine except that I am completely unaware of any of the recent history of vision research, so it makes it much harder to build the presentations. I hope I can finish them in a reasonable amount of time so I can watch Eureka tonight.

The TiVo Diet is still working out as expected. I discovered that I don’t really have anything to watch on Sunday or Monday of the week. I’m getting much more productive work done than I used to. One downside of the diet is that I tend to not want to just sit and veg at the end of the work day - I think it frustrates [lj user=”ceilingsarecool”] a bit because I’m always going off to the office to do something on the computer.

I recieved and watched the Studio 60 on the Sunset Strip yesterday. Being an Aaron Sorkin fan, I am excited for another of his shows to broadcast. Judging by the pilot, it should be a decent show.

Sidenote: Planet Debian seems to like one of my weekend weeviews a little too much, and is regrabbing it for the front page every so often. I can’t figure out why this is happening, so any help would be greatly appreciated. Otherwise, in a couple more posts it should be off the RSS feed.

iBook Failure Recovery, and What Else I’ve Been Doing

Well, I discovered last night while I was writing a blog entry that my iBook G4 is somewhat broken. After ignoring it for most of the day today, I am currently working on getting my home directory off of it so that I can try installing Debian later tonight. I think that some piece of hardware has failed, because I haven’t seen OS X sieze up like this before. However, I haven’t yet had a freeze occur when I am in Linux of some kind. The symptoms of this failure vary between not being able to boot (blue screen before progress bar) to booting and then freezing completely, to the point of no mouse movement, to booting and freezing partially allowing for mouse movement but no interaction of any kind. I’m trying to view this as an opportunity to install Debian now that the Airport Express works in Linux, but the type of failure is very frustrating. rsync to the rescue, to restart backups where they left off before they froze.

It seems that software isn’t being nice to me lately either. When I tried to start Visual Studio .NET at work on Tuesday, it refused to start, including without a .sln being loaded up at all. This caused a complete work stoppage for me, spending about half the day trying to discover what was wrong and putting calls in to various help desks. The other half of the day and half of yesterday was spent attempting to setup a second system with the files needed for working. I think that when I return on Monday I will be in a state where I can just start working again. As a bonus, they should have my original machine (which is fairly beefy from a hardware standpoint) reimaged so I can start setting it up once more with the tools for work.

Other than the constant computer problems, I’ve been playing a fair amount of Battlefield 2. I’ve managed to get almost all of the basic badges, and I am quickly on my way to another promotion. The TiVo TV Diet is working out well, I am actually watching less TV than I planned for, mostly because I’m not really up for watching Jeopardy every day. That knocks me down to less than 2 hours a day. I seem to be getting a lot more personal work done, and watching more of my Netflix movies. I uploaded new packages for vgrabbj, codeville and bogosort. I am happy with the state of all of them excepting bittorrent, which is still a very old version due to the new license they switched to for the 4.X series. There has been some movement on that front lately however: apparently the Ubuntu people are bugging Bram and friends as well as myself about changes that the license needs. Crossing my fingers!

One Year Ago: The good part is that it does actually help you, well, get things done. Two Years Ago: Tuesdays have now become my TV night.

Work and Procrastination: A Six-hour Study of the (10+2)*5 Hack.

Recently I discovered the (10+2)*5 dash courtesy of Merlin over at 43 Folders, and I thought that I would give it a try. The concept is fairly simple: work for 10 minutes, screw around for 2 minutes, repeat 5 times, and voila! you have filled an hour with 5/6 productivity. The first thing that I did was download a Konfabulator widget which keeps track of the time and pops up a warning box when you should be screwing around and working.

I worked for approximately 6 hours under this regime today at my Honeywell job, even though I don’t use task lists as diligently as I should there. I found that tasks which I regarded as small were finishing in a snap, partly because I wanted to get them done before the next 2 minute break, and partly because if I didn’t finish for a break, my mind didn’t just stop thinking about the problem. It was very advantageous to think about something else for 2 minutes and then get back to the action because it was like taking a fresh start. I was using the dash to do some coding (the major portion of my hours right now) - finding bugs that normally would have me staring at the screen for a couple minutes seemed easy when I was just coming back from a break. The only issues which I had with it was when I got interrupted by Workrave rest breaks (I turned off microbreaks) or a coworker. I am definitely doing it again, the next time I have an hour uninterrupted.

Serendipity Plugin for LiveJournal Markup

Serendipity is my blogging software of choice lately, but in the past I was a happy user of LiveJournal. Fortunately, now my friends at LJ can keep up to date with my current blog, because of a great event plugin which mirrors posts here on LiveJournal (configurable of course). On LJ people use markup like [lj user=”jamuraa”] in order to make a handy link to the page of the livejournal user in question. I was missing that feature, so I coded up a small plugin for s9y which converts that into jamuraa. This is version 0.1, which only does the user tag. It also works in comments if you enable it. In the future, I hope to add code to detect the user type correctly (on LiveJournal there are other icons for different user types). I also probably should not hotlink to the .gifs on the livejournal servers.

To install, just unzip into the plugins/ directory of your s9y installation.

Download the LJ Markup Plugin 0.1 for Serendipity (Update: 2012 - I have lost this file, so I removed the link which was broken anyway. I suspect the plugin was broken in any case. I would like to get a copy of it for posterity, if someone has it, you can email me and I will be greatful!)

On the Varied Use of Free Time

Three things which I do with my free time which will have some impact or change this week: Gaming, Sleeping, Watching TV.

In gaming, I discovered a list of games which are available on computer and have AI opponents. This will probably kill some productivity as it means I discovered San Juan, a card game which I simply must buy a real life copy of. The game dynamics are perfect and it’s in the “learn once, play forever” category. Hope to play this at the next board gaming night.

In sleep, I am attempting to change my sleeping patterns so that I am an early riser. Generally I’m a late sleeper and late riser, but as I get older, I am finding that it is better to wake up early and get things done in the morning. I feel much more productive at the end of the day. To this end I am now sleeping at 10-11pm. ceilingsarecool also appreciates the new schedule because it lines up with hers much better.

In TV, I have concocted a plan to lessen the amount of TV that I watch per week. I have dubbed it the TiVo TV diet, and details are after the fold.

Weekend Weeviews: Omega Man, Conquest of the Planet of the Apes

A month between postings. Who needs regular updates? I’ve got a few of these weekend weeviews piled up, so I’m going to do them two at a time every couple of days.

Omega Man

Charleton Heston makes this post-apocalyptic world view quite the masterpiece. Considering his current stance on guns, it is easy to throw a couple of cheap shots at the movie in which he plays a gun-crazed doctor. Thinking you’re the only one left in existence has got to be pretty hard on the psyche, and it shows in the character. Robert Neville (Heston’s character) obviously doesn’t think he’s really alone, just the only one left who shouldn’t be shot on sight. The rest of the human race was hit by a crappy plague, 28 days later-style. This plague apparently doesn’t kill all brain functions, but only crams you into a religious sect which could only be described as luddite. Movies aren’t interesting without a love interest, so Heston finds out early about Lisa (Rosalind Cash) who is keeping a set of children who are immune. Robert is also immune, and hopes to create a serum from his blood. This 70’s end of the world is remarkably watchable, although it has it’s moments of Action Movie. The acting is well done, although the cult of luddites is somewhat overplayed and has strange overtones of vampirism for some reason. Omega Man gets a 7. (imdb, amazon)

Conquest of the Planet of the Apes

As a child of the 80s, I never saw any of the original Planet of the Apes movies, and always assumed they were campy and not well done. Imagine my surprise when I discovered that they actually have a plot and are interesting. This fourth movie in the series of 70s movies presents it’s moral message with a generous heaping of.. it’s moral message. Years after his parents travelled backward in time in Escape from the Planet of the Apes, Caesar, the only talking ape left, is incognito with the circus master who raised him and comes to the city for the first time. At this time the plague which killed all pets has already ravaged the nation, humans have decided that apes are more useful as slaves than pets, and already have a large monolithic “Ape Management” section of government. Caesar gets thrown through the system when his “owner” gets brought into questioning for.. questioning the treatment of an ape. Being highly intelligent, he quickly gets snatched up for his skills by a top government official. Starting an underground resistance movement is the next step, and dominos start to fall from there. Conquest.. then degenerates into a large-cast action film, with hundreds of extras in a street-level ape vs. human fight. It’s not the most interesting movie ever, but considering my expectations I can happily give it a 6. (imdb, amazon)

The Continuing Saga of the ML-2010

I upgraded my CUPS to 1.2 today, and had a bit of trouble with getting the ML-2010 to work with it. Given my other issues with this printer, I thought I would expound on how I fixed yet another problem with this semi-supported printer.

The Samsung printing uses the linuxprint system, which uses a configuration file in an XML format which isn’t specified. In the default install for the Samsung linux tool, it is installed in /usr/local/linuxprinter/linuxprint.cfg with a link from /etc/linuxprint.cfg to it. My file, after being setup, looks like this:

<?xml version=”1.0”?>
<linux root=”/usr/local/linuxprinter” system=”cups”>
<option name=”ghostscript” value=”/usr/bin/gs-esp”/>
<option name=”address” value=”localhost”/>
<option name=”port” value=”631”/>
<option name=”lpr” value=”/usr/bin/lp”/>
<option name=”llpr-default-printer” value=”lp”/>
<printer ppd=”ppd/C/ML-2010spl2.ppd” queue=”lp”>
<option name=”Resolution” value=”600”/>
<option name=”PageSize” value=”Letter”/>
<option name=”InputSlot” value=”AUTO”/>
<option name=”MediaType” value=”PRINTER”/>
<option name=”JCLJamrecovery” value=”RWJOff”/>
<option name=”JCLEconomode” value=”PRINTERDEFAULT”/>
</printer>
</linux>

I discovered the hard way that if this file isn’t there, the filter which is installed (ppmtospl2) doesn’t work that well. In this case, the printer queue is lp. If this file is setup correctly, you can setup CUPS yourself, using the ppd file which is referenced in the linuxprint.cfg file. If you have lost your linuxprint.cfg, I suspect you can just modify the above with the correct ppd - the Samsung package has many of them for different printers. If you don’t want to go that way, you can rerun the /usr/local/linuxprinter/bin/linux-config as before, but you will have to open your CUPS 1.2 server wide open while you are configuring it so that it can add the printer. Also, I had to have a printer existing in the CUPS 1.2 server in order to have the linux-config program work at all. I solved this by just adding a virtual pdf printer (using the package cups-pdf). Even when you get linux-config to add the printer, it will not add it correctly for CUPS 1.2 - the device is incorrect - so you will have to reconfigure it via the web interface and give it the ppd which is in the directory anyway.

At least I have my printer back again.

Refilling Laser Printer Cartridges

I have the pleasure to have a laser printer at home, which works great and is wonderful for printing everything from research papers to read to envelopes for sending. [lj user=”ceilingsarecool”] uses it for taking things for proofing and research. While it was a slight trouble to set up with my Linux server, but works great now. Unfortunately while it was cheap as hell after rebate, the starter cartridge that it came with only prints off about 1,000 pages. Recently it started printing very light and shaking the cartridge wasn’t working anymore, so I started looking for new toner. I found out quickly that one new toner cartridge costs as much as the whole printer itself, but my searches also turned up another option: refilling the cartridge that I have already. I figured I would take the chance, because it cost around $20 compared to the $80-90 for a new cartridge.

Yesterday I got the toner in the mail - it comes in a very small bottle with a small diagram and a little topper funnel. The process was fairly easy and straightforward. All I needed for tools that didn’t come in the package was a Phillips and flathead screwdriver. The steps which I had to take:

  1. Setup the area - I put newspaper down all around the area I was planning to do the work. I didn’t need that much space and I was very clean and didn’t spill, but I still got toner on the paper I put down.
  2. Remove the side of the cartridge - this was indicated to me on the diagram that came with the new toner. There was one little clip which I had to push in in order to get the side off, and I had to pry the side off slowly with a flathead.
  3. Remove the toner plug - the toner plug was under the side panel I pried off in the last step, and also took a little coaxing with my small flathead. Starting at this step, I also put on a set of latex gloves so I wouldn’t get toner all over my fingers.
  4. Open the toner - Open the top of the cap (mine came in a little bottle) and remove the safety seal (like on pill bottles). This got a little messy on my fingers to get all of the safety seal off. I also screwed the plastic funnel thing on.
  5. Pour the toner into the cartridge - If your cartridge is really empty it’s not a problem to turn it over so you can put the bottle in at a 45 degree angle and then turn both the cartridge and toner bottle so that the toner is pouring out. I had to tap the bottle a little and shake them (while still together) to get the toner into the cartridge
  6. Put the plug and side back on - replace the plug and screw the side of the cartridge back on.
  7. Shake the cartridge to settle the toner - shake it about 3-4 times, while it’s still over the paper. Some of the small dust-like particles came off for me when I shook the cartridge
  8. Clean up - throw away the toner bottle and the newspaper

I was thrilled to put the cartridge back into my printer and find that it printed just as good as before. Unfortunately this doesn’t work forever - eventually the fusing barrel will wear out and start producing some of those other laser printer problems like lines and repeating patterns. Everything that I have read suggests that one cartridge of mechanical parts will work for about 10,000 pages. That means that I have about 2 more refills before this one runs out. Saving $50-70 every couple of months will make a big difference in the long run. I suspect that some of the toner cartridges that you can buy on line are “re-manufactured” much like this one, or possibly slightly more complicated (replacing a drum that’s broken) so they might not work for as many refills as a new one.

Weekend Weeviews: Jawbreaker, Real Genius, Primer

There are three reviews this week, because I neglected to review one which I watched earlier. I’m also trying to decide whether the links at the end are of any use, and whether it’s useful to syndicate this to Planet Debian. Feedback is encouraged! ;)

Jawbreaker

The whole premise of Jawbreaker gets laid out right at the beginning - after a opening sequence in which we see the title candy being made, a couple of girls kill a friend by surprising her and using a jawbreaker as a gag. The movie then degenerates into a formulaic nerdy girl gets to be pretty storyline. Unfortunately Jawbreaker doesn’t pull it off as well as Mean Girls does, and ends up falling pretty flat. One saving grace of this movie is that it is very short at just 87 minutes. One small treat is that Rose McGowan is playing a decent role, although I do have a much older vision whenever I see her from her work on Charmed. One thing which keeps bugging me is how the movie reminds me of But I’m a Cheerleader, even though the plots and premises are very different. The soundtrack is very well done with good placement of good songs. Jawbreaker is bittersweet at a 5. (imdb, amazon)

Real Genius

I have always heard good things about Real Genius, but never saw it all the way through. Supposedly this is a tragedy. Apparently [lj user=”ceilingsarecool”] saw it before, but didn’t remember a bunch of the plot. A whiz kid enters college early and starts working for a professor. The premise is setup in the first 10 minutes or so, which is that Herr Professor is really corrupt and working to provide a laser weapon to the military. This leaves ample time for the comedy in the movie to play out, as Whiz Kid gets to experience all the wild antics of college with a high-IQ twist. Lasers are used fairly extensively in the movie (mostly as part of the plot) and get a nice chunk of credits in the end. The movie unfortunately doesn’t really age well with time, unless you’re a fan of 80’s movies. There are no less than 2 montages with music, and the ultimate 80’s end-of-movie song “Everybody wants to rule the world” by Tears for Fears is playing at the end. Real Genius still is smarter than many movies you’ll see nowadays, so it burns in a 7. (imdb, amazon)

Primer

Small budget films are usually interesting to watch, because either they are simple masterpieces, or they try to be way more than they can be and end up being a trainwreck which you just can’t stop watching. Primer is the rare gem which found a happy medium between complex and simple. At the start, a garage business is introduced with four tech friends making a bit of money selling to hobbyists. Apparently they have some sort of deal about who gets to pick the next thing they try, and one of them wants to try something related to physics. Two decide to attempt it on their own and they create a device which apparently lowers density, or gravity, or something. Then they discover it does much more than that - it can manipulate time. Fortunately there is still much of the movie left after this. The acting is not top notch by any means, and comes off as cardboardish, but it seems well-placed in this script because most techies that I know are not the best with social skills. It’s important to note that the main focus doesn’t lie on the device, but on the implications and ramifications. As the movie approaches it’s end, the pace and convolution increases quickly. A rewatch is in order for Primer - and even then you still may be missing parts in the giant puzzle which is laid out before you. Shane Carruth directs, writes, and produces an amazing film, especially considering the sub-10k budget. Primer scores e2.30258509. (imdb, amazon)

Random Technological Stuff

Programming, windows style

I’m now in the thick of a bunch of win32 programming at my Honeywell part-time job. I don’t mind it that much, but I continue to be amazed that Microsoft’s IDE is still the one used most often. The autocompletion is nice, but that’s about the only good thing about it. I am continually annoyed that the IDE doesn’t know which definition of a function I want to use, and only seems to pop up it’s hints when it decides. Add this to the fact that most win32 libraries aren’t apparently setup in a way so you can put their source in the repository, and I have a lot of admin work which I’m not particularly thrilled to do. 10% programming, 90% random crap. I’m beginning to understand why the average lines of code per day is so low. I can’t really complain that much though, I knew the tools we’d be using when I accepted the job.

Programming, rails style

I have been working with Ruby on Rails lately, mostly to make some new web applications which aren’t released yet. Things which are possibly in the works:

  • MoneyDelta - credit card and savings balance tracker - figures out how much money you are making (or losing) each day based on how the interest is actually calculated. In the end it will probably have a little graph and possibly small things you can do in order to avoid interest and how much you would save in the long run.
  • DeadSimpleCMS - CMS built mostly for Diana’s use. It lets you specify layouts (not done yet) and content which goes into the layouts. In a very very early stage of development, but it is actually live on a site right now. As the name would imply, the point is to be very simple.
  • Gathr - scholarly conference management software. Accepts papers, assigns reviewers based on degrees of connection to avoid conflicts of interest, generally tries to make the whole conference thing easier.

I also have a couple of smaller applications which won’t really go anywhere, and an internal application upgrade from php. I really enjoy building web applications in the Rails framework, and I have honed my skills at Ruby enough that I actually use it for small scripts when I get frustrated with bash. I tend to do my Ruby Coding in TextMate and with Locomotive on the iBook, although I may do some on the Debian machine soon.