Thursday, January 29, 2009

Good Vs. Evil or How to Avoid Flaming Death for your Children

I realize that when you think about the battle of Good Vs. Evil, power strips are probably not the first thing you think about. They were not the top of my list either. Then again, when the transformer in the back of my house decided that 50 years of reliable service was more than sufficient, power strips suddenly became far more important in my life.

Fried Transformer on PoleFried Transformer on Pole in Backyard

It was 11:30 at night and I was minding my own business. The kids were asleep, we were ready for bed. Right before going to sleep, I was compulsively^H^H^H^H^H^H^H^H^H^H^H^H performing one last check of my email from my iPhone. Right when I hit the email application button, all of the lights went out, there was a loud buzzing sound, followed by a really loud thunk, a bright flash of light, and three battery backups starting to scream at alternating intervals. The timing was so perfect, that I did not want to touch my iPhone for a few seconds. After making sure that this was a localized issue and not a major calamity, we went to sleep. By the way, battery backups on network connections are very cool. I was browsing at over 30Mbps during a neighborhood blackout. Go Comcast!

In the morning, the power was still out. I placed a quick call to the power company and they were in front of my house in less than 5 minutes. They quickly identified that the transformer was indeed past its prime, installed in a very inconvenient way, and was adding a physically uncomfortable amount of live power to the pole (did I mention the rain already). As a side note, the person describing the live power situation, who had just climbed down from the transformer on that pole, may not have used the term "physically uncomfortable" when letting HQ know that they had to bring a team out to replace the transformer.

After a very short while longer, and someone putting a set of wires bridging our wires to the transformer a few houses down, we had power again.

Man Climbing Pole to Give us PowerMan Climbing Pole to Give us Power (Jumper to the Rescue)

Mostly. It took a little while to notice, but there were three areas of the house without power still. After a little investigation I found out that three of the circuits had been tripped at the circuit breaker. I am very glad that I had the system changed a few years ago. The old one would not have tripped. Two of the circuits went back on right away, the third, tripped again immediately.

For those of you following at home, we are finally going to talk about power strips. It turns out that during the power spike, the power strip in my daughter's room had a rather large surge go through it. In fact, it was more than the power strip could handle. When I moved out the bookshelf and flipped it over, you can see the damage.

Fried Power Strip With Scorch Marks on WallsPower Strip Flipped Over After Outage

It was busy trying to light my daughter's bookshelf on fire. You can see the little scorch marks where heat was starting to light the bookshelf and some minor scorch marks on the wall. After all was safely unplugged and the devices were checked (they actually all made it), I took the fried power strip back to my office and opened it up.

What Fried Power Strip Looked Like On InsideWhat Fried Power Strip Looked Like On Inside

I was pretty impressed. If you look closely, you can see that the fuse appeared to have been bypassed by the capacitor exploding and shooting out fire (roasting the fuse). I wonder how hot it was. It was bad enough, if I am correct, for the whole fuse area to get completely roasted and have heat to shoot out the holes. I don't know how long it was frying, the circuit tripped quickly and I did not smell smoke from the device and it did not trip the smoke detector in the room, so I don't think it was frying for long. I will now officially designate this power strip as Evil. Sorry to the sympathizers out there, but if you try and bring flaming death down on my children while they sleep in their beds, you are Evil.

Ok, now that we have covered Evil, you must be wondering what is good. Well, all of the APC power backups and the Belkin power backup came through just fine. I was sitting at my desk trying to work the next morning and I plugged in my iPhone to charge it. Nothing happened. I looked at the power strip on my desk. Only one of the three lights was on. No reset button. It turns out that this power strip was fried as well. Here is a picture of it:

A Good Power StripA Good Power Strip

This power strip was sitting on my desk, next to my computer, under my monitor. It was sitting inside a pile of nice flammable receipts (really need to categorize and file those). No damage was visible, nothing was scorched. It was plugged into a much larger 20A circuit with a new direct line back to the fuse box. If anything should have fried, it was this power strip. It turns out that the manufacturers thought of what would happen in an overload and built the thing to burn itself out, instead of burning your house down. Not a bad trade off. I now dub this power strip Good. I am going to happily order a few more. They have models that offer surge protection and ones that don't. Please make sure you get the surge protected version if you want it.

Power Sentry 5-Outlet PowerSquid Surge Suppressor

The new transformer is properly installed more than two houses away. This took less than 4 hours and I had power the entire time. I love Silicon Valley Power. Santa Clara utilities are the best I have ever experienced.

I am pleased to say, that at least in this instance, Good triumphed over Evil.
Jacob

Tuesday, January 27, 2009

What would you like at your Fingertips?

Happy Lunar New Year!

I would like to start out this Lunar New Year with a simple question. What would you like at your fingertips? I have pondered this question for a while. I have come up with all kinds of visions of things I would like, and submitted comments and suggestions to vendors and the world. A couple of days ago, I realized, I can actually make a lot of it happen. Today's cell phones are a little bit better than the older ones used to be.

I have started to follow the Beginning iPhone Programming Tips posted by TimesToCome. Learning a new language seems like a relatively high price to pay. That being said, I remember lots of really cool things that I would have loved to have handy earlier. There were lots of things that I kept close, checked often, and worried about more often.

Now, I am planning on implementing some of those. I would also be happy to have any suggestions. What kinds of information are you looking for? What kinds of information do you check often? What would you like your phone (iPhone at first) to do? How long do you think it will take me to have my first application?

Jacob

Tuesday, January 13, 2009

Her Stroke of Insight

In the later part of last year, I was working on improving my presentation skills. I was reading about presentations and great presenting. I cannot remember if it was Guy Kawasaki or a talk on Presentation Zen
by Garr Reynolds. Guy turned me on to Garr and an author's talk he did at Google on Presentation Zen. Along the way, several people have also pointed me towards TED (Technology, Innovation, Design). One of the best talks that I have watched on TED was "My Stroke of Insight" by Jill Bolte Taylor:


After watching this presentation, I purchased and read the book under the same name, My Stroke of Insight: A Brain Scientist's Personal Journey. She has turned something that most people would find very crippling into a source of knowledge and strength. Along the way, she also used her education as a brain researcher to help gain better understanding about how the brain works. I find this particularly interesting.

She found out how hard it is to build a plan and stick to it when the narrator in the brain is not working. When your inner voice, that helps plot and plan, is no longer available. This would be a lot like how my Artificial Life forms live. I am not yet sure how to incorporate that inner voice into my creatures, but wow, it would be great to have them.

Right now, without that narrative, my creatures are living in the moment. At each moment, they need to make a plan, analyze the situation, and take a course of action. At the next moment, they don't really have much information about the plan that they were following previously. There are some clues, but they are pretty weak.

One thing I picked up from the book is the length of time for a physiological response. After something happens or you first become aware of it, your body physically responds for a bout 90 seconds. You are afraid, or angry, or happy, or whatever for 90 seconds. After that period, you can choose your reaction again. You can choose how you feel. You can ignore your initial physical reaction to something for 90 seconds and then it gets easier. This is very good to keep in mind when your child does something particularly harsh or someone does something that sets you off for some reason. Just wait 90 seconds, pretend it is all good, and in 90 seconds, it will be easier to let it go. I have used this insight to get past some really painful or frustrating things, and also to help change what I think about.

Jill described telling her brain something on the order of "yes, that is very nice, we are going to stop having that kind of thought now" and having it work. I have had a decent amount of success with this technique. Why did it take reading a book about someone's experience during and recovering from partial brain death for me to consider talking to my brain? I know it sounds weird, but have you tried it? Ask your brain to do something or not do something. Really ask it. You might be surprised.

Another thing that I found really scary was Jill's description of what it was like to be in the hospital after a stroke. She wanted people to speak slowly and quietly. She needed a lot of time to form a response to a question. The doctors or nurses ended up thinking that she was incapable due to her reaction to bright lights and loud questions or the amount of time it took her to come up with a response.

It still amazes me how adaptive a human body and human brain are. She lost a lot. By working on getting back pieces and stretching a little bit more each day, she gained a lot of it back. Yes, in the end, she is not the same person. But, if she had listened to common wisdom, she would have been an invalid for life with never expanding horizons. Believe in what your body and brain can do. Give them a chance.

To Jill, who went through a massive breakdown and turned it into genius: Thank You!

Jacob

Amazon Kindle Review and Feature Requests

I have been spending way too much time on the Kindle. I just read this Kindle Review and had a few comments on it. Basically I agree with the review. The Kindle is a relatively early product with a few odd issues. The price is relatively high and it mostly makes sense for the impatient, frequent travelers, and/or avid book readers. Hrm, sounds like Americans to me (with the possible exception of the avid book readers part). There are now over 200,000 books available for the Kindle.

The fact that it does not have back lighting makes the display require far less power, as mentioned in the review. It also does another thing though. The lack of backlighting decreases eye strain. I used to print lots of stuff in order to be able to read it without my eyes getting tired. Now, I can send it to my Kindle with a simple email message and read it there without having to burn more paper. One nice way to make up for the lack of backlighting is to purchase a clip on light for it. Here is a simple clip on light that works pretty well. It is a bit bright though, so if you want to read next to a very light sensitive person, this may not be the one for you.

There are a few things that I would love to see the Kindle and/or Amazon support:
  • Please let me share documents with my family. I would love to be able to share a book with a friend or family member, temporarily giving up my right to view it. My preference would be to still allow for searches, still show it in the list, and give me the ability to request it back from the other person. I am fine with waiting until it is removed from my device for them to be able to get it and removed from their device before I can get it back. DRM is secure and I can share books.
  • Allow for Kindle focused reviews. People say all kinds of wonderful things in the reviews for a book that is available in the Kindle store, but sometimes, when you get the book, the formatting or images are terrible. I have noticed (and blogged) that there is a huge difference in the quality and usability of the books based on the formatting effort put in by the publisher. I would love to be able to say this book was a hit, wish I could read the diagrams.
  • It would also be nice to have a glow option for the kindle (like the Timex Indiglow(TM).)
Jacob

Friday, January 9, 2009

Seven Things Meme...

Thanks to Jason Sweat, I was tagged with the "Seven Things" meme.
  1. My first computer was a Commodore Vic 20.
  2. I learned basic with my brother. We miss-typed the commands needed to load a program we had typed in and the error message was not consistent. Eventually, we started to figure out the key commands through trial an error. We were as far as peek and poke when we went out and purchased a book. Yes, we randomly tried words and actually found peek and poke. Really.
  3. My first paid programming job was when I was 13 or 14. It was with a partner that was facilitating the hardware needed to build and deploy the system.
  4. My first online ID was Wishmaker. I was put on the spot and the owner of the site asked me what I liked to do. I like making people's wishes come true, hence "wishmaker". I am still known as wishmaker or TheWishmaker on many sites.
  5. I cringe whenever scenes in movies mention torture, pliers, and finger or toenails, from personal experience.
  6. Finding more people to tag is actually possibly going to be harder than coming up with the facts to share. (and no, I am not counting this fact)
  7. An off duty police officer in the US can get from his house all the way to squealing his tires in pursuit in about 30ish seconds. One of my friends, named Jason, but not related to the tagger above, thought it would be a good idea to "salute" said officer with both of his middle fingers. One a positive note, while he and his friends pursued us for over 30 minutes, they did not catch us.
  8. Sun described my architecture as having "near linear scalability". Their tests actually showed what the architecture was designed for, linear scalability.

I would like to tag:

Oh, and the rules: Mention the person who tagged you, post seven things people might not know about you, then tag seven more people and let them know via post to their blog or mention on twitter.

Jacob

Kindle Takes a Dive and Publishing Quality Books

I have been surprised at how much I use the Kindle, and the kinds of issues that I find. Some of the issues are good, some are bad. First, let me start out on a positive note. The other day, I was paying for something and managed to drop what I had in my hands and in a reflex action, drop my Kindle as well. I quickly picked it up and looked at it. It looked fine at first glance and was showing what I had been looking at. I finished up at the register and sat down to take a closer look. It turned out that when hitting the tile from about 4 feet up it had popped part of the case open. A slight bit of pressure snapped the case closed again. If you look really closely, you can see a small bend in the seam. I was quite happy and figured that the Kindle took the fall quite well. Then, I tried to turn the page. To my horror, the UI did not change. At this point, I remembered that the Kindle did not require any power to keep the UI looking the same. I was now worried that it was completely dead. I tried the lock/unlock keys. That did not work. At one point, it occurred to me that I might be able to hold down the lock/unlock keys. When I tried this, nothing seemed to happen. Then I noticed that the menu slider was growing up the side. I let go of the keys and it went back down. This time, I pushed the keys down and waited until the line made it to the top. A few tense seconds later, and my Kindle was perfectly happy and working normally. I do not, in any way, fault Amazon for those tense moments. I am quite happy that my device managed to make it unscathed through the drop. Modern product engineering for tech toys seems very good compared to the older products I remember.

As I have previously discussed, some of the books available on Kindle are well formatted and some of them are not. I have looked a little further in a few books that I have read. I have also looked a little bit online. It appears that the Kindle eats source code when processing contents. I think it is the Kindle's built in support for HTML at play. Anything that looks like an open tag is suspect. In one of the two books I have just completed: Clean Code: A Handbook of Agile Software Craftsmanship (Robert C. Martin Series) I noticed that many sections of code would not compile. I started to pick up the pattern pretty quickly. In source code, you have to be very careful to tell the Kindle to not apply formatting to it. If you don't, you will get odd results.

In section G33 at the end of the book, there is a piece of code:
if(nextLevel tags.length)
I believe this should have a '<' but it was stripped out:
if(nextLevel < tags.length)
This is not a big thing, but when you start to encounter tables and images that you cannot zoom, hyphens where they should not be, and missing pieces of code in a book about clean code, it starts to get a little frustrating.

Since I am working on a book that I would like to publish and have available soon, I started to look into what it would take to get the book formatted correctly on the Kindle. I did find this quick overview of Kindle Formatting. I guess this answers one of the questions that I had earlier. Why aren't all books available for Kindle? It is probably really easy for most companies to publish their books to Kindle. Making the book look good on the Kindle might require some effort.

I have also just finished reading "Aiming at Amazon", which is a self publishing guide for publishing books for the Amazon market. This was a really good book. I look forward to finding out if the tips and techniques still apply today. Did you know, that if you are updating a print-on-demand book, it will show up as "out of stock" while you are proofing? Has anybody out there setup a self-publishing operation?

Jacob