Monday, May 30, 2011

homelite 24v cordless is a failure

In 2008 I bought a Homelite 24v cordless lawn mower. It worked beautifully and would often cut my yard twice per charge. That was even with the mulcher in, so it was mulching the whole yard without any problems.

Then in 2009 it wouldn't even charge up far enough to cut the yard once. So I got warranty service on it, and got a free battery out of it. Oh, but they decided it wasn't the battery, it was the battery charger which somehow wasn't covered in the warranty. Replacing the charger and battery cost me 80% of the original cost of the mower when it was new, but of course I didn't find that out until after the work had been done. I put in all of the complaints about that I reasonably could, and just hoped the mower would work for a while.

But no...even the same summer I'd had it replaced the new battery didn't work as well as the original. But it worked well enough to cut the yard. In 2010 I got the blade sharpened and figured out that if I took the mulcher out and was very careful about how I mowed and made sure to mow often and when it was as dry as possible, the mower would reliably cut the entire yard.

Now it's 2011. The first time this year I mowed, I noticed that the mower lost power much more quickly than it should. But it made it all the way through the yard before giving out. So I thought maybe just the first charge of the year was the problem. Unfortunately it rained pretty much all of May and I didn't get a chance to mow, so today when I tried to mow the grass it was a foot high and while I waited as long as I could for it to dry out, it was still pretty wet. The mower wouldn't even finish the front 1/8th of the yard. Now admittedly this is a worst case scenario and would have been a problem even for a gas mower, but I don't think there is any chance it'll work much better later in the summer when it's dry but hopefully it'll get me through this summer.

Next year I'll go get a corded electric mower. I really don't want a corded electric mower, I hate using my corded snow thrower it's such a pain in the ass. but I don't see that I've got much choice since I hate gas mowers even more. I certainly won't be buying a homelite mower again regardless...their service is absolute shit.

Sunday, May 29, 2011

SMIT tensile solar

Flexible cloth-like solar. I'd be interesting in finding out how it attaches to the grid, or what it uses for level regulation, etc. Didn't find that information in a quick search though.

Friday, May 13, 2011

Some horrible horrible clues for php with pdo support on solaris

I have a drive going bad in one of my servers. Well, in the jbox attached to it. It's part of a mirror so as long as the other half holds until the new drive gets here, this is the swap plan.
Physically swap the drives.
Use the prtvtoc -> fmthard trick to push the vtoc from the other drive to the new drive
metareplace -e d50 c2t2d0s0

And then wait for it to sync. I can use the vtoc from the other half of the mirror since they are identical so I don't have to do that before the physical swap.

--------------
Now here's another horrible problem I worked through with Al Marti yesterday.

I needed php5.3.6 compiled with pdo and the extensions for it built. I grabbed the latest sfw package and installed it, but it didn't have options for enabling pdo in the php.ini. Sure enough, taking a look at the compile line used for the package, it didn't have pdo enabled. That means I have to compile php. I hate compiling php.

Compiling php is an amazingly annoying process for me. It never goes right, and the things that fail are things that should be problems in a big popular package. For the versions of 5.2 that I worked with before, I had to edit the makefile after running configure but before running make because of a typo in the makefile that wasn't in the configure line.

For 5.3.6 I had to cross link a library into /usr/lib even though the configure found the right directory with the file in it during the exploration phase of configure. Anyway...once I got configure working I ran into a problem with the system being unable to find libfontconfig.la. Sure enough, I couldn't find it either. Googling around produced nothing useful for me. Happily while Al was here, he caught a small misunderstanding. I had thought that on SunFreeWare if there was not a specific version number listed for a dependency for a package, then any reasonably recent version of that package would work. I was wrong, so I had missed some of the dependencies because the newer versions of the packages had different libraries. So that solved the libfontconfig.la problem.

Now on to the horrible...
So I get php compiled. It's got pdo enabled in the build. I can confirm that. Still no extensions for it. Al is looking around, I'm looking around. My brain fails so I decide to take a short break and build the apc module. Al sees that and asks about it, and suddenly we wonder "Could the pdo extensions be a pear/pecl module, not something built with the software?" So we try it.
pecl install pdo
Pdo exists! It starts to build! Yay! It fails! Boo!
pecl install pdo_mysql
Exists! Fails!
So we go back to googling around. After quite a while we both find the same bit of information pretty much at the same time. It seems ridiculous. Surely this isn't a reasonable solution just to get a module to build from a well known well used software package. But no...it is. We have to modify the code of the php package in order to get it to work.

From http://pecl.php.net/bugs/bug.php?id=18837
// /usr/include/php5/Zend/zend.h:320 add lines

#define refcount refcount__gc
#define is_ref is_ref__gc

// /usr/include/php5/Zend/zend_API.h:52 add lines

#define object_pp object_ptr


Completely ridiculous, but it works. The pdo package builds.

Now onto getting pdo_mysql to build. It fails because it can't find mysql_config. It finds the directory in which mysql_config exists, but fails to find the file. The file is right there. Baffling! More googling around turns up other people with the same problem but not a lot of solutions until we find this:
http://www.spiration.co.uk/post/1332/install%20PDO_MYSQL%20-%20mysql_config%20and%20header%20files%20problem

Which tells us to create a link from where it exists to another place, and the build will find it. Even though it's already finding the correct directory. Is that reasonable? NO! But we can't find anything else, so we try it. Sure enough...it works.

ln -s /usr/local/mysql/bin/mysql_config /usr/bin/mysql_config

Absolute madness. I hate building php. I really do. So far with us trying to use drupal I've been able to use a pre-built package successfully exactly once on 3 brand new machines when the installed version of php for Solaris was the newest, and we hadn't yet moved on to the newest version of drupal.

Wednesday, May 11, 2011

solaris drive info

Why can I never remember this kind of stuff? It's very frustrating.

To find out all drives attached to a solaris box and their sizes/serial numbers/etc
iostat -E