Ben Lobaugh Online

I think, therefore I am. I am, therefore I sail

Author: Ben Lobaugh (blobaugh) Page 3 of 141

Burien House repainted master bedroom

Repainted bedroom

Alix first ever paint stroke

First strokes

Alix first ever paint stroke

Alix patching them walls

Last night, as she prepped a room for painting, Alix learned the fine art of patching holes in drywall. Pretty in pink!

 

Kitchen sink plumbing update

Kitchen sink plumbing update

A couple weeks ago I noticed the kitchen sink seemed to be draining slowly. It has a garbage disposal and I figured the previous owner had left something in there without chopping it up. I flipped on the disposal switch, instead of a satisfying grinding noise all I heard was a low hum, then a pop and acrid smoke filled the room. The disposal had given up the ghost. 

Now I had a non-draining sink and a bad garbage disposal. I was already working on the floors and did not have time to worry about the sink, so it sat, for a week, half full of water. Boy did it stink when I finally got a hose to siphon the water out. 

The city of Burien has a strong composting policy, in fact they require you to compost and provide a second bin in the driveway, next to the garbage can, just for compost. So I ripped the disposal out, removed the sink drain, and re-plumbed it all into a straight drain. Food scraps go in the compost, not the sink. Simpler, less moving pieces to break, and one less potential fire hazard in an already overloaded electrical system. 

Happy sink drain. 

Kitchen sink plumbing update - annotated

Total cost: $25

Cookies disappear after adding Set-Cookies in .htaccess? Here is how to get them back

I needed to set a cookie via .htaccess, to ensure it was always in the browser, regardless of what the website was doing. Setting a cookie is rather easy, it will look similar to:

Header set Set-Cookie "cookieName=value; Expires=Wed, 15 May 2222 07:28:00 GMT"

The next morning I attempted to login to the site and could not. It turned out the login cookies were not being set. The issue was insidious. Re-read the line above, at first glance it seems fine when you want to set a cookie, however if there are other cookies that need to run you need to add the cookie.

This three letter change resolved the issue and allows all the other cookies to operate properly:

Header add Set-Cookie "siglock=hello-world; Expires=Wed, 15 May 2222 07:28:00 GMT"

Page 3 of 141

Powered by WordPress & Drip City Coffee