Archive for the ‘Website’ Category

Weather Station more stable…

Tuesday, January 8th, 2008

The weather station software stopped working a couple of times in the past 24 hours, so I tried another Serial to USB converter I had available. I’m pretty sure the converter that shipped with the La Crosse WS-2316 was the culprit because I could get things working by stopping the software, removing the USB device, reinsert it, and reenabling the software. The symptoms seem likely to be a driver issue with the original adapter. I guess I’ll know if that is true after this new adapter runs for a while.

I wonder if the protocol for the WS-2316 is published anywhere… It would be interesting to see what it provides and perhaps create some different software to process the data. After a bit of searching, it appears there is a little information on the protocol here and here. Maybe if I can find some free time, I’ll try to put together an application to get the data from the unit. I’m using the WUHU software right now, and it works ok, but I’d like to optimize the data I collect for what I am interested in.

Weather Station activated…

Monday, January 7th, 2008

Yesterday was another adventure with the aluminum extension ladder. Normally, it comes out when I need to clean the gutters, put up the Christmas lights, and remove the lights again. Occasionally, I use it to retrieve a stuck rocket, ball or airplane that somehow “accidentally” gets launched up on the roof. Yesterday was an all together different beast. This year, I got a weather station as a gift. Installing the rain gauge and sending unit was a piece of cake. The anemometer, and wind vane was a little more work. The manual suggested that it should be located three to four feet above the peak of the roof. It came with a 30 foot cord to connect to the sending unit, which made the whole configuration a little tricky. I decided the best thing to do was mount it on a mast on the chimney. This is where the adventure begins. I found the parts I needed on the Radio Shack website: the mast, and a mounting kit. The mounting kit comes with two stainless steel straps. Or should I say eighteen foot razor blades. Those things are sharp. I ended up working with gloves on to get them in place. The straps also have a lot of memory, which makes some things easier and some things more difficult. The difficult part is that our chimney is on one side of the house, so wrapping the straps around it involves spanning the area that you can’t stand next to. My wife is uncomfortable with heights, so I ended up having to do most of it by myself. The ratchets were not the best. The metal they are made of it quite soft, which makes them a little hard to get tight. Creative use of duct tape to hold the strapping in place temporarily, and a few choice swear words later, and the mast is mounted on our roof.

I’ve been having a problem with the USB->Serial adapter that came with the unit, as it seems stop responding occasionally, and I have to reboot the host computer. I’m guessing the Vista driver isn’t all that great. When it is working, you can see what the data looks like here. I added a Weather Underground widget on the right that displays information from it. If I can’t get the USB->Serial connection working consistently, I may have to make a host computer out of a machine with a dedicated serial port. It sounds like I could make the host machine Linux based too. That’s an adventure for another day.

Upgrading the Gallery with Gentoo

Wednesday, January 11th, 2006

I recently upgraded the gallery installation we have on our server using the gentoo webapp-config package. All in all, it was relatively painless. There were a couple of pain points, which I would have been easier if I had understood them better. First, upgrading from gallery 1.5X to 2.X involved importing the entire set of images in the gallery. All 7000+ of them. This meant that the drive that houses the images had two copies of them. Unfortunately, the images occupy about 49% of the drive. By the time I was done with the import, the drive was at near capacity.

The second issue was the thumbnails and alternative sized images. The importing process has the option of creating them at import time. I opted not to do that. Instead, I had to do it through the administrator page, through one of the maintenance tools. It took over 18 hours for it to complete.

Lisa uses Gallery Remote to upload images to the server. I have noticed that it doesn’t cause the gallery to generate the thumbnails or middle sized images either.

It seems there isn’t feature parity between Gallery 1.5x and Gallery 2.x, either. For example, in the old gallery, we had a link at the top of the main page that showed the most recent additions to the gallery. I haven’t found a way to do that with the new installation. The new installation is so much faster than the previous installation that it is worth the loss of the features in my mind.

The Great Reconstruction

Tuesday, November 15th, 2005

The webserver that hosted this site was also recently hosting (albeit temporarily) the Lupper worm. That has been rectified, but it wasn’t simple. There was an installation of awstats on the old server setup that I had mostly forgotten about. While I believe the firewall I had setup on the box prevented any of the backdoors the worm opened from being useful, I couldn’t be certain. I decided to rebuild the box. I chose to use a new gentoo install. After some initial pains with booting the LiveCD (because my CD-ROM doesn’t support DMA), I was off to the races. Slowly. I started on Wednesday of last week, and just managed to turn on the blog again last night.

During the process, I managed to lose all the content to the blog. Luck was on my side, and I managed to recovery it. Wordpress uses MySQL as its backend database. Before I wiped the main drive of the server, I had exported the contents of the database and stored them on a separate drive. After getting gentoo up and running, I “emerge”d apache, MySQL, Wordpress and other stuff I needed. (The virtual hosting in gentoo is well done, btw.)

I was in the process of restoring my database and made a one character error. Instead of using ”< " to redirect the text file to the mysql command I used ">“ and redirected the output of the mysql command over my text file. One slip of the finger and two years worth of postings were gone. Ouch. I wasn’t pleased.

I managed to figure out that I could dump the unused blocks on the drive using debugfs. I let that go for a while and ended up with an 800MB+ file. A few greps later, and I confirmed my hope: the data was still on the drive. A little more investigation and I found the data was relatively contiguous in the dump file, AND because I hadn’t compressed the mysql dump, I could actually piece it back together. I threw together a couple of C programs. The first chopped out the stuff before my data and the second chopped out the stuff after my data. I ended up with a few megabytes of mostly text data that needed to be cleaned up, and as you can see, it worked.

What have I learned?:

  1. Understand your system
  2. Keep up to date on releases if you are going to have a public website
  3. Make sure backup files are read-only
  4. Don’t make major changes to your setup while tired, or if you do, triple check before hitting “return”

I’m confident managing this system will be much easier now that I am using gentoo. The old server had been running RedHat 8 with lots of stuff hand upgraded by me. Now it is running a 2.6.x kernel, and a sane packaging management solution. Kudos to gentoo. Hooray for being able to go to bed at a sane time again.

Creeps Everywhere

Wednesday, September 28th, 2005

I had to remove some of the pictures from the gallery because some mal-adjusted asshole posted links to a few of Morgan’s pictures on a little-boy fetish website. This is quite disturbing to both myself and Lisa. If this continues, I’ll be forced to password protect all of our images.

I’m not a violent person by nature, but the notion of someone using Morgan’s pictures that way makes me want to be.