Christmas has come early!

Posted in Geeky Tech Stuff on May 30th, 2006 by Coffee

Yippee! Look what arrived for me today! A whole heap of electronic bits and pieces to play with from Digikey. I love the Digikey catalogue. I don’t understand what half the bits are, but it’s still fun to pour through the 1200 or so pages.

components.jpg

Now I just have to work out what to do with it all, and how they all can work together to do interesting things. Like flash a light, and tell me what the temperature is and vital things like that. But it’s going to be a fun winter! Just have to wait for summer to finish first, I guess. Unless we’ve already had it, that is.

The 1Wire Adventure Begins

Posted in Geeky Tech Stuff on May 2nd, 2006 by Coffee

Tonight was the first chance I got to play with my new toys. I got iButton and 1Wire starter kits from Dallas-Maxim and have been itching to see if they all work. And they seem to!

What is all this stuff? It’s little chips and button thingees that can be put on a very simple network that can do things like measure temperature etc. And eventually, if I can find, remember, or learn enough electronics, control things as well. They can also act as electronic keys too. One small step on the home automation highway.

The first “experiment” will be to see if I can get things sorted out enough to be able to record temperatures from around the house and get the web server to print out nice little graphs of it all. Shouldn’t be too hard, I hope. Not much in the way of other electronics or fancy software required. I’ll post a link when I finally get it all working.

Now that it’s all nice and warm outside, that may be longer than I had originally planned though…

Superbox Upgraded

Posted in Geeky Tech Stuff on February 19th, 2006 by Coffee

The superbox got an upgrade last week. A version bump up to .19.

The new mythweb is great, and jumping forward now seems a lot crisper.

I’m still not sure that I’m making the best use of the box by running it at 1280×768 when all the video is at 720×576, but I’m too lazy to change it to see what happens. It runs fine anyway though, so I guess I’m worrying over nothing….

The Porsche Arrived Today!

Posted in Geeky Tech Stuff on January 27th, 2006 by Coffee

Well, ok, it’s not a car, more’s the pity, it’s only an external USB hard drive that I can now use to transfer files between the superbox and the faster computer upstairs so I can edit the recordings and burn them to DVD there. But it apparently was designed by Porsche. Made by LaCie. I have to say I can’t quite see all the design work has come in. It’s pretty basic, and was cheap, but seems to do the job.

One small thing about it is that the drive activity LED is orange for idle, and, errrr, yet another orange for working. It would be a little more helpful if they were a little more different. Maybe that’s was the design feature.

Waiting for a 2 gig recording to come across a 14Mbs network was doing my head in. Let alone what it would be like to wait for 5 of them! Life’s too short. A 160 gig drive means I can fit all the recordings to transfer on if I want to. I can see that one day I’m going to have to upgrade the drive in the superbox too.

Setting it up on Linux was a doddle, with the help of several web pages. How did we ever do this stuff without the friendly web?!

Setting it up on the box upstairs was a pain in the butt though, as it just would not work. I tried (almost) everything, but it just would not connect properly. After about an hour I finally decided to try using the USB connections on the back of the box, rather than the front. And guess what? It worked first time. So now I know not to bother with the front ones… Hey ho. Who knows why.

That was almost as bad as trying to put printable DVDs through the printer. I was trying for about an hour, and nothing was working. Even reinstalled the printer driver and everything. No luck. The printer would error every time.

And then I worked it out. The printer was too close to the wall, and the DVD tray could not go back far enough for the printer to get to the front of the disk. Did I feel stupid?! Well yes. Quite. But now I know…

Time, gentlemen….

Posted in Geeky Tech Stuff on January 23rd, 2006 by Coffee

Finally got around to another little system admin job that I should have done ages ago. All the system clocks on the Linux boxes should now be all syncronised to the “real” time from an internet server.

They all connect to one box on the network that gets it’s time from central net servers. I thought that was a nicer way to do it than to keep bugging them for every box.

One box gave me a bit of giref though. For some reason it just wouldn’t sync right, and the time daemon would just disappear without a trace. Finally worked out that it was due to the system being an hour fast, and so it was too far out of sync to allow it to automatically fix itself. I don’t know how long I stared at the apparent time before I actaully saw what was right in front of me.

Probably a good job I got around to this if it was that far out!

Mythweb

Posted in Geeky Tech Stuff on January 22nd, 2006 by Coffee

And yet more interactivity between the boxes. Now I’ve set things up so that the programme schedule and control of recordings on the superbox shows up on the other web server. At least to anyone on the internal network currently with a bit of .htaccess goodness.

Seems to work pretty well, although I suspect there is still a bit of configuration missing on the web server for it to work perfectly.

But then I know that I can set it up to allow me to record shows from wherever I happen to be in the world if I’ve forgotten to programme it all before we go anywhere….

A Mailserver That WORKS!

Posted in Geeky Tech Stuff on January 4th, 2006 by Coffee

Finally! I’ve managed to get a mailserver set up that actually works!

When I had to reboot the server so that they could replace the electricity meter downstairs (which annoyingly made me miss the target of having the server up for a whole year with no kernel issues) I had a small surprise. Appearing in my gmail account were some emails from this blog system about users and posts. How the hell were they appearing?!

Investigation showed that on the reboot the mail programmes were back up and running, after I’d given up and turned them off a while ago, and in the meantime some parts of the system had been updated and sending mail to the outside world worked.

Getting the receiving of mail to work took quite a lot longer, and a few more hairs being pulled off the head, but I think I’ve finally cracked it. Even with anti-virus and anti-spam measures in place too. Yippee!

And I can even collect it from the server using the Thunderbird email client over an encrypted connection too.

Finally, all up and running, and all from an accident!

Syslog-ng and a final flag

Posted in Geeky Tech Stuff on December 13th, 2005 by Coffee

Finally worked out how to stop lircd messages from filling up all logs except the one I want. Simple really if you know how (or RTFM)….

Putting flags(final);at the end of the log line like log { source(src); filter(f_lircd); destination(lircd); flags(final); }; stops that filtered line from passing to any other destination logs, regardless of their filters.

Voila. One more annoyance down….

Rewriting slashes

Posted in Geeky Tech Stuff on December 1st, 2005 by Coffee

Well, I finally managed to crack a small but annoying problem on the webserver.

When anyone was requesting a web site directory URL like www.coffeehouse.co.nz/wordpress without the trailing /, then there would be an error,and not a redirection to the index page of that directory like it should.

Setting UseCanonicalName off in the Apache server settings seems to have fixed this without having to worry about any strange rewrite rules using regular expressions. Which I find still just a bit tricky to even sit down and try to learn, though I really should do.

Still, one more small problem dealt with…. Should have got around to that one a long time ago.