I went through a lot of crap before I figured this one out. Many of the forums that I went through had solutions where registry settings needed to be changed, and internet connection sharing needed to be turned off. None of that worked for me.

I finally figured out that I was using client version 3.0. This version allowed me to initially connect to the vpn server, but after the connection handshake something always went wrong. The 3.0 anyconnect client was given to me by my customer, but their server was really only compatable with a 3.1 version if it was running on a new version of Windows 7. Complicated huh?

Cisco won't allow you to download a 3.1 client unless you're a customer, but there are many places on Google that have it. Anyway, once I upgraded to 3.1, the problem went away.

 

0 Comments Read full post »

Irrigation Valve Repair

Posted by admin on July 22, 2014

So we came home from San Diego after being there for a week, and saw that our front yard had turned into a national park with geysers sprouting everywhere. At first I just thought some drip valve heads had popped off, so I replaced those right away. 

When my wife went out the next morning, one of the heads had popped off again. That's odd, why is the system still on? It's still on because the damn valve had blown. So I figured it was the solenoid over the valve, and I had an extra one and replaced it. No dice, the valve was still stuck on, and I couldn't turn it off. What the hell?

I called a repair guy and he said they couldn't come out for a couple of days and it would probably be $200. So I told them I'd call them back.

I took apart the irrigation valve under the solenoid, after watching a youtube video on it. I examined the diaphagm carefully, and noticed that it was perforated. Bingo!

Went down to the local irrigation store and bought another diaphragm for $13. So, if you have the same problem, and you own a screwdriver (cause that's all it took to fix) and $13 I highly recommend you try doing the same, it will save you $200. Make sure no debris gets into the valve when you take it apart.

 

 

0 Comments Read full post »

Knoppix HD Install on VMWare

Posted by admin on May 13, 2014

Some peculiar details on installing Knoppix 7.0 on VMWare

 

1) When configuring the vm, you must custom configure the hard drive type to IDE, or else the boot will hang


2) Tthe partition auto configure doesn't work right, you need to make at least two partitions, with gparted. One a swap partition with five gigs for swap memory. The rule of thumb for swap size is 2x the size of the ram you are using. Format as swap-linux. 


3) Set up a second partition for root. I used thirty-five gigs, but I'm using a portable hard drive for the vm so you may not want to part that much.The root partition needs to be formatted as reiserfs before Knoppoxwill agree to install it.

4) Close the Gparted screen and Knoppix should stop complaining. Follow the rest of the defaults, including installing a grub loader on mbr.

If you have a better way to do this, then you shouldn't even be here. Just kidding, leave a note in the comments, and I'll put it in here. A better way isn't you trolling tech boards and telling people to read the docs. If you do this (and you know who you are) I suggest you move out of mommy's basement, stop drinking wine and change to whisky, and join a fight club or something.

0 Comments Read full post »

I have a A&A Low profile infloor pool cleaning valve, and noticed while I was cleaning the pool today that the pool nozzles were stuck in one position, and the pool was filthy. I looked through the clear plastic cover of the valve and noticed that the wheel assembly was turning in the current from the pool pump like it should, but the gear assembly wasn't. The gear assembly turns a wheel at the bottom of the valve, and this wheel rotates around and lifts up these T-valves one by one, and pressured water flows to each infloor cleaning head, rotating pressured water around the pool.

I had to disassemble the valve before when an incompetent boob of a leak detector plumber broke it last year. And he didn't figure out where the leaks were, but enough about him. The gear assemble in the valve is a cheap plastic set of compound gears that turn the assembly. When I examined the gear assembly and tested it for functionality, I noticed that the smaller compound gears were worn away on the fourth gears, on both sides. The fact that both of them were damaged indicates a design flaw, although the whole thing was so cheaply made, it's hard to label anything on it a 'design flaw.'

 

guilty.jpg

The valve replacement cost is over $300, and the gear assembly replacement with shipping over $119. For a cheap set of plastic gears that probably cost about 20 cents a piece, this is theivery, pure and simple. And they don't sell the compound gears seperately, of course. Why would they? They can juice you for a least a hundred bones for this piece of garbage.

As I started to take some measurements to cast my own gear in polymer, with a kit, I noticed that they used five compound gears on each side. But only four of the gears used both large and small components of the compound gears. The outer gears don't use the smaller componants of the compound gear. But in their quest to be cheap-asses, A&A decided that they would use the same gear for all five. 

So the solution was, disassmble the gear mechanism using needlenose pliers to remove the snap washers carefully. Swap the outer, and position four compound gears, so the worn out smaller gears are in the outer position. Notice that the snap washers allow a little play in the gears, and position three gears have no snap washers. Now the worn out smallers are in the outer position where they aren't being used.

0 Comments Read full post »

Convert SAS Datetime to [R] Datetime

Posted by admin on March 24, 2014

Suppose I import a bunch of SAS dates into R. How well does that work?

Not very. First is the import itself. If you use read.csv, R will try to import the datetime field as factors, which creates a big ol mess. Let's fix that first. When you use read.csv, remember to include this phrase:

stringAsFactor=FALSE 

 

in the read.csv function as a parameter. That will import the SAS datetime field as a string. OK, now lets do our conversion:

 

datetime.field=strptime(SAS_DATE_TIME, "%d%b%Y:%H:%M:%S.%s")

And you're done. Problem solved.

 

 

0 Comments Read full post »

My Windows 7 laptop went haywire this morning, suddenly unrecognizing my USB devices. A short googling of the problem showed it wasn't uncommon. The solution was quite easy, and worked:

 

Unplug the power supply from the laptop and reboot.

That's it. Don't reinstall a bunch of drivers, reinstall your operating system, or any other craziness. Try this first.

0 Comments Read full post »

So I decided to make this web application that a user could create a legal form in Microsoft Word (docx) format, and since my web site is in PHP, and I wanted to learn PHP better. Just a few issues:

1) PHP can't make a Word - .docx document easily. Sure, you can do your bits and bytes and try to decode the entire format. Docx is just an archive, and you can zip up the components, but then you can't get your compression ratio right, and Word tells you the document is malformed when your browser calls it and blah-blah fricken blah. 

OK, so I figure, Java has libraries to do this, and do it easily. So I'll just make a Java program that will take the form data from the PHP generated form and make the docx. No problem at all, did this in a few hours with no knowledge of the java library that I used (docx4j). 

OK, so I jar up the program, make a properties file for paths and so forth, and deploy said jar to the Apache server on a windows system where I'm developing. Now, all I gotta do, is call the Java program from the php.

Whoops.

Calling a java program from php over the host operating system is about as easy as calling the international space station from a tin can with a string on it. To make it worse, I have to deploy on a Linux system making whatever Windows solution I come up with totally worthless. Now I find out about JavaBridge, which my zend php server tells me that it doesn't like, or home made solutions by changing the apache configuration settings which blows up apache and blah blah fricken blah.

OK, then it came to me. Talking to java over the operating system, isn't the only way to talk to java. You can talk to java through the file system. How? Just add a java listener to your java program, leave a marker on the file system from php...a text file with the docx's id number which I had already set up. Have the java listener make the docx, have the php sleep until it sees it. Bada bing bada bang...we have our solution. I wrote the listener in under an hour from scatch. Clean up by deleting the files with a sweep utility after generation. Works faster that any other way too.

 

 

 

12 Comments Read full post »

While downloading a skin for rainmeter, I picked up a nasty little trojan called GorrillaPrice. First off, don't go to this page if you are trying to get BlueVision for Rainmeter:

 

http://g3xter.deviantart.com/art/BlueVision-V0-2-Alpha-RAINMETER-162478234

DO NOT DOWNLOAD ANYTHING FROM THIS PAGE!

Because if you use the link there, BLAM! Trojan! No more internet. The idiot that set up the trojan was trying to set it up so all web transmissions go through a proxy that sets up in your internet connection settings. He screwed that up, so when you try and surf the web and click on a link Chrome tries to download to the page instead of navigating to it.

I read all kinds of crazyness about how to fix this, some people wiped their OS and reloaded it. After a few times trying to reset the connection settings on my Windows 7 x64 box, I figured out the Trojan wasn't going away quietly.

After digging around on my hardrive for a while, I discovered two files

C:\Program Files\GorillaPrice\GorillaPrice.exe

And another one newly added by the trojan at the same time. I deleted them both, reset my internet connection to not use the proxy anymore, and that's it. Everything started working again. That's it. No need to download a thousand adware removal tools, no need to reload the whole damn computer. That's all you need to do.

 

0 Comments Read full post »

Hunter ceiling fan to remote receiver wiring

Posted by admin on February 2, 2014

Wiring up a hunter ceiling fan to a remoter receiver can be a painful mess. I found all kinds of confusing guides on how to do it. Here are some clarifying instructions.

The box in my ceiling has a white wire, a black wire, a red wire, and a green for ground. The black is hot, the red is hot when the wall switch is in the on position, and the white is neutral.

The remoter receiver has black and white wires in, black ,white, and blue out.

The hunter ceiling fan has two black, one white, and one green. All part of the harassment package my friend.

Ok, we're going to wire up the whole fan to the switch on the wall.

1) Pull the circuit breaker to the fan so you don't shock yourself and die. Dying is bad, and you might go to hell. If you're an enemy of the United States, go ahead and leave it on.

2)  Cap off the black wire from the ceiling. We're not going to use that.

3)  Connect the green wire from the ceiling, to the green wire from the fan. This is your ground. You'll know if you didn't connect it right, because if a bulb blows out under the fan all the lights in the house will go out.

4)  Connect the red wire from the ceiling into the black wire into the fan remote receiver. This is the hot wire from the wall switch.

5) Connect the white from ceiling to white into fan remote receiver.

6) White out from remote receiver into white into fan.

7) Blue out from remote receiver into black wire with white stripe. This is the hot into fan light.

8) Black out from remote receiver into black into fan. This is the fan hot.

 

Button up the fan, circuit breaker on, fan wall switch on, remote swith on, and hopefully you got it.

 

 

 

 

0 Comments Read full post »

Excel VBA to find and replace chart title strings

Posted by admin on November 20, 2013

 

Sub changeChartTitles()

Dim c As Chart

ws_count = ThisWorkbook.Worksheets.Count

 

For i = 1 To ws_count

Set ws = ThisWorkbook.worksheets(i)

For j = 1 to ws.ChartObjects(j).Chart

Set c= ws.ChartObjects(j).Chart

c.ChartTitle.Text= Replace(c.ChartTitle.Text, "OldStuff", "NewStuff")

Next 'j

Next 'i

End Sub

 

0 Comments Read full post »