Categories
Computers

The Search is Over

Quote my brother regarding picking a new computer:

I figured as much, but no matter how long you wait, if you give it another month, there will be another option. So, basically, you have to figure out what is good enough, and then pull the trigger. If it is on the market, it has already been hacked, that is just the way those guys work. So, if you find one that seems to be powerful enough and have a relatively universal compatibility interface, like USB or Bluetooth, then roll with it. Again, time is only going to create more options, and that is a blessing AND a curse of technology.

After reading this, I realized there wasn’t much point in waiting. I’m not going to get the “new hotness” because it will be overpriced and have no track record for reliability. The netbooks I’ve been considering have been around awhile and thus are known commodities. Plus, they’ve come down in price. There’s really no point in delaying for the “next best thing” when it really isn’t an option, from my point of view. The ones I’m looking at are as good as can be had in the form factor I want.

So I’ve ordered the Asus EEE 1015PN (Yes- in blue). I also got the memory upgrade because it was cheap ($25). So there it is.

Categories
Admin Computers

Website Backup Over SSH

I recently enabled ssh shell access to my Hostmonster hosted website account. Previously, I’d relied on cPanel for all my maintenance. With shell access comes all the power of shell commands and scripting to your fingertips. I’ve come up with a nice, for me, automated backup process for the site which I present after the jump. But be gentle, my bash scripting foo is weak.

Categories
Computers

USB Camera Automounting

Another reference post for me about Linux configuration stuff. Details after the jump, proceed at your own peril.

Categories
Computers

Intrigued by Transformer

I’ve been keeping my eye on the soon to be released EEE Transformer from Asus. It looks like it could be the best of both worlds for me- a simple tablet for when I’m just hanging around or a netbook-ish computer I could do a little work on.

Unfortunately, my main hangup is one of its big selling points- Android. It’ll be outfitted with the Android Honeycomb release, so I don’t know how well it will fit into my style of computing. Pricewise, the tablet itself looks to be at a good target of $400, but the added cost of the docking station ($150 according to the link) pushes the price out there a bit.

I also wonder about these docking stations- how likely is it to be forward compatible with future versions of the tablet? I’d think that a Bluetooth version would be a better long term buy, but then perhaps the device is meant to be “disposable,” with only a 2 or 3 year expected service life. If that’s the case, then I think the price point may need to come down farther.

I doubt I’ll be an early adopter, but I’ll be interested to see if the device gets hacked by Debian or Ubuntu somewhere along the way. Having a package based OS on a tablet could be damn near irresistible.

Categories
Computers Programming

CSS and PNG File Icons

I’m sure this is basic web developer stuff, but I have zero web developer training. Anything I know, I’ve gleaned on my own by reading and modifying source code. Yesterday, I figured out a little (but important!) detail regarding the use of PNG image files for displaying icons on a web page. I’m jotting it down here as a reference for myself.

Categories
Computers Programming

git rebase and merge strategy ours

I created an interesting problem for myself last night while working on some code for personal use. I’ll state upfront that the code is not public so I didn’t have to worry about screwing things up for other people. Just myself, though the goal was not to. Following is a description of the circumstances and how I used git to rectify the situation.

Categories
Computers

A New NetBook

I’ve been looking into possibilities for a new netbook. Part of me is surprised to find that there really aren’t a lot of good choices out there. Part of that is my own criteria for a netbook- basically a small sub-$400 laptop with limited resources. By small, I’m limiting it to anything smaller than a 10″ screen. Of course, with the explosion in the tablet market I guess I shouldn’t be totally surprised. Netbooks are slowly getting replaced by these lighter, slightly less traditional computer machines.

I was very intrigued by the Acer AO521, but it seems to be made of unobtanium and it doesn’t look like that’s going to change any time soon. After that, the only other manufacturer I’ve seen that I’ve liked is Asus and the 1015PEM and 1015PN models. Both have dual core Intel Atom processors. The big difference is that the 1015PN has Nvidia Ion2 for the graphics, giving it a considerable performance boost. Not surprisingly, the extra performance comes at the cost of battery life.

Between the two, my preference is for the 1015PN. But I’m still kind of curious to see what else might come along this year. So far, there doesn’t appear to be much though.

Categories
Computers

If Your iPod Touch Won’t Turn On

Having dealt with this issue twice now, I can safely assuage some fears immediately- no the device is not necessarily beyond hope, there is a means for recovering it.

The procedure is simple-

  1. Plug the iPod Touch into your computer via the USB cable.
  2. Start-up iTunes manually.
  3. Press and hold the ‘HOME’ button on the face of the iPod touch and the ‘Sleep/Wake’ button on the top edge simultaneously for several seconds.

This is a Hard Reset and normally shouldn’t be done. But then, if you can’t get it to do anything anyway, what’s there to lose?

Shortly thereafter you should see the familiar, and comforting, Apple Logo appear on the screen. Then just let everything finish up.

If that doesn’t work, then you might have reason to panic…

Categories
Computers

Technical Problems

Sometime around 3 yesterday afternoon, our router upped and died. It was an old Linksys model router/ firewall from before Cisco bought them out. It’s at least 7 years old and had served us faithfully that whole time, though not without the occasional glitch. It always managed to recover.

I wasn’t able to nail it down as the culprit until well after the initial problems were discovered. We’ve had issues before and previous experience had taught me that such problems were usually traceable back to our cable modem. This time proved the exception to the rule. In a nutshell, the router has a 4-port switch which became unable to maintain a hardware link for longer than a second or so. The LED’s were flashing wildly. I allowed it time thinking it might settle out; however, such was not to be.

This is the bugger I’ve enlisted to replace the Linksys model. I chose it because of the 8-ports; making my hookup a little cleaner. Previously, I had a second 4 port switch connected in order to give myself enough hookups. I also have one less power adapter to plugin. The reviews I’m reading aren’t all that positive, so I’ll have to keep an eye on it. Think I’ll be holding onto the box and stuff just to be safe.

The reviews not withstanding, I’ve been able to duplicate the setup from my Linksys, including DynamicDNS, port forwarding and so forth. I’ve also modified the admin username and password, so no mischief out there. Besides, the setup app isn’t available from the web.

For the now I have internet connectivity again. Hopefully this unit proves as reliable as the one it replaced.

Categories
Computers

iPad2 “Smart” Cover

Says the folks at Engadget:

By now you’ve seen Apple’s Smart Cover, right? The mind blowing cover (don’t call it a case) pretty much stole the show during yesterday’s iPad2 press event, causing children to weep at the sight of our exploded bodies.

And now John Gruber:

If you do nothing else, watch the video for the Smart Cover. Seriously, it’s amazing.

You’d think he’d invented WonkaVision.

The Engadget link has a video of the cover. My mind is most decidedly not blown and, while I’ll certainly admit it’s clever, it isn’t within a lightyear of “amazing” by my reckoning.

What is amazing is that Apple (and Steve Jobs) can get people (presumably fully-grown and mature adults) who deal with technology on a regular basis to react like this to a magnet in a cloth with a couple of folds. Seriously, if Jobs announced tomorrow that he ate his bread butter-side down, I’d expect to be living in the Butter Battle Book 5 minutes later.

I mean, after reading Mr. Gruber’s head-through-the-sphincter description I was expecting maybe something made out of the memory cloth from Batman Begins. Or perhaps something (not sure what) from Under Armour. They make lots of cool stuff as glorified seamstresses- have you seen that shirt with the data collector built into it? Very cool.

The iPad2 Cover by Apple? Meh. Besides, someone else already makes a better version of it. The video for that is also at the Engadget link.

Categories
Computers

Opera 11 and Java

I guess this shows how little I actually go to sites that use java. When I finally encountered one yesterday, I learned that java was broken on my computer where my browser was concerned. I use Opera and anyone who has used it for any time knows that this happens regularly with Opera. Especially when it comes to updates. It’s annoying, but the advantages of Opera over other browsers makes it worth the minor hassle.

I’ll spare the blow-by-blow and get right to the solution. Assuming that the sun-java-plugin is installed and linked to properly, there is one system setting that needs to be adjusted. In the /etc/sysctl.d/bindv6only.conf file the net.ipv6.bindv6only setting should be 0 instead of 1. (I suppose I should mention that I’m running a 64-bit debian/testing setup.) Networking had to be restarted after making the change.

See here for details.

Categories
Computers

Yay Printing

I’ve got an HP Deskjet printer attached to my computer that inexplicably stopped working. Since the printer is housed on a sliding shelf inside my desk and the power light was still on, I immediately began trying to figure out what might have gone wrong with the software. So I turned debugging on and somewhere in the middle of the debug stream, was a line that basically read “Unable to open device.”

Hmmm. What could that mean? I had initially thought the problem was with one of the many layers of software between my on-screen page and the device driver. This error message indicated something much more fundamental. Well, I’d had an issue with the fan and there had been some power blips recently, perhaps the USB cable had disconnected from the computer or I had a bad USB port.

So I check the back of the computer and the USB cable is connected. Next, I switch the cable to another port. But I still getting the same error. Now, I figure I’ll just delete the printer from CUPS and try to reinstall it (This is not the recommended way to fix a printer connected to a Linux box. But it wasn’t working anyway, so I figured I had little to lose.) Now I discover that CUPS can’t find the printer, so I restart cups and try again.

Still nothing.

How can that be? Toggle the printer power; restart CUPS; try to find the printer again.

Same result.

Alright, time to look at the back of the printer.

The USB cable came unplugged from the back of the printer. Grrrr. Stupid bad assumptions. From there, I had everything running properly again in less than 5 minutes.

I’m blaming the kids for this one. They did … something … somewhere along the way. I know it.

Categories
Computers

Holy Spam-Buckets Batman!

I was cleaning my spam folder out just now and noticed that I had upwards of 10000 pieces of spam. The number seemed hard to believe because I typically keep about a year’s worth of spam around in case I need to retrain my spam filter. Usually, that means I’ve got around 4000 spam mails.

So I checked things out: for the 11 months from January 2010 thru November 2010, I had about 4000 spam mails. Since then, I’ve had almost 6000. So in less than 3 months time, I’ve received over a typical years worth of spam.

Guess the spam generators have kicked into high gear.

Categories
Computers

No More Christmas Shoes

I was able to really capitalize on my Pandora subscription.

That stupid, insipid song The Christmas Shoes started to play on a Christmas station that the Wife had created. I banned it from the station before it got to the second note. I’ll be equally diligent with any other versions of that song the server tries to slip in.

Totally made paying for the Pandora One subscription worth it. In fact, the prospect that I can escape a Christmas without having to listen to that stupid shop owner get conned by the little kid over a pair of Christmas pumps makes me all “tingly” inside. Oh, and after the kid got those shoes off of that shop owner, he went down the street and scored some candy canes from the shop down the road for his “sick sister.” Then he went to the corner, lit up a cigarette and had himself a good laugh. That’s in the unrated version of the song.

Anyway, now I can have a Merry Christmas.

Categories
Computers

Chrome OS

I’ve been hearing a lot of rumblings related to Google’s Chrome OS, but I really didn’t understand what all the hub-bub was about. I figured it was a minimal sort of software OS, but beyond that I really didn’t know much more and hadn’t seen anything to offer clues.

Here’s the first article I’ve seen giving a reasonable high-level view of Chrome. The idea is really simple- the browser becomes the UI.

Google has also made a lot of other decisions. For instance, there is no hard drive, therefore no local storage. All storage is online. This takes away most, if not all, of the customizations associated with computers. All computing is accomplished via cloud computing- funny how computing is going back to its roots as essentially dumb terminals hooked up to a mainframe. Obviously, there isn’t a mainframe involved here- rather some server and the terminals are a smidge brighter than “dumb terminals.” But not by much.

The article also mentions current problems with Chrome applications. More specifically that more are needed. Though if Chrome catches on in any kind of way, I expect that problem will take care of itself.

There’s currently no pricing info available. With the reduced hardware requirements, I expect it will be cheap- at least netbook cheap. Chrome could push entry level computing below the threshold the current crop of netbooks has established. Especially with the likes of Acer involved. I’d expect to see it in tablet computers as well, possibly even higher end cell phones though at this point no touch-interface UI functions are available.

Based on this reading, Chrome isn’t something that I’d be interested in. I like being able to make the computer do what I want it to do. In my world view, computers are supposed to be flexible. Chrome to offers flexibility on it’s own terms. But apparently that’s considered a feature, not a bug. Google might be right- I’m under no illusion that I’m representative of the computing population. It will be interesting to see if it catches on.

Categories
Computers Lua Programming

luaimap4

I just created a repository on Gitorious for a client-side IMAP4 library. The project is luaimap and I’ve published it under the MIT license. The project consists of two files: imap4.lua is the actual library and checker.lua is a sample program that checks an IMAP account for new mail using the library. The library minimally requires luasocket to establish a basic connection. To establish a TLS connection luasec is also required.

The library implements all IMAP commands except ‘AUTHENTICATE.’ I’ve only tested it against a Dovecot server, so consider it very green. For now, it is a synchronous implementation: commands are sent and return a response from the server for the command. Going forward, I intend to add support for the AUTHENTICATE command and look at trying to take advantage of command pipelining.

Anyone intending to use it should read RFC3501, the document on which the library is based. The intention of the library is to handle the protocol related details of IMAP4rev1, not to enforce IMAP4 client side design practices.

To use it, simply install the file in a project directory and use a line like:

local imap = require("imap4")

To make it available on the system, copy the file in a path that exists in lua’s package.path variable. On my system, a debian/testing setup, I’ve installed it to /usr/local/lib/lua/5.1/.

Categories
Computers Lua Programming

Case Insensitive lua Methods

I’ve been working on a lua library to support IMAP4Rev1 command exchanges with an IMAP server. Towards that end, I’ve created a lua object. Now, I’d known a little about using lua and the flexibility of lua table since my window manager uses it as a configuration language. Until this project; however, there has been no reason for me to delve into the deeper depths of lua tables.

Now that I have, I’m not sorry as I’ve learned quite a bit of interesting techniques. Below the fold is a rather simple trick to make lua methods case insensitive.

Categories
Computers

Early Reviews- iPod Touch a Hit!

The Wife has been enjoying her iPod touch. She’s purchased a calendar app and it’s already synced with the online version. In fact, as long as she has network access she can even modify the calendar from the iPod. Upon discovering this unexpected piece of functionality, she actually exclaimed “COOL!” Since then, she’s added a variety of free apps.

Categories
Computers

Super Wi-Fi

This may be the answer to the cell phone monopoly. There’s certainly some exciting buzz about the prospects of it. Perhaps if it were paired with mesh networking, we’d have a real competitor to cell technology.

It’s only speculation at this point, since there are no devices that can use these new bands. But the fact that there’s more unlicensed spectrum to play with isn’t a bad thing.

Categories
Computers Programming

Command Line Internet Radio Streaming

A radio station I like to listen streams over the internet using StreamTheWorld. Unfortunately, my computer has an amd64 processor and currently, flashplayer doesn’t support that processor. Plus, I don’t particularly care for the browser only interface. After a little googling, I found a nice command line solution using mplayer and a script.

Here’s the python script. I just had to append an ‘FM’ to the station callsign when using it. Kudo’s and thanks to the author for a nice solution.