Category / Uncategorized

Insane in the membrane April 12, 2016 at 7:26 am


Amusing, but is still understating the issue March 10, 2016 at 11:15 pm


What is wrong with our country? March 1, 2016 at 11:45 pm

We must be largely mentally ill. Are we seriously considering Donald J Drumpf as the leader of our country? I know that many of our politicians have issues, but I really think we need to draw a line. On one hand A Drumpf/Palin run would take us a long way towards the prophecy of Idiocracy. What is even funnier? I typed ‘Idiocracy’ into ‘the Google’ to make sure I had the spelling correct and that association was already made. At least some people are starting to think, but I was more than a bit nervous about McCain/Palin, but (IMO) our country woke up before it was too late.


The Kindle is dead, Long live the Kindle! April 20, 2015 at 7:45 pm

Sometimes ya just gotta wonder ’bout things.

2015-04-20 19.20.11

This is the third Kindle I have murdered. I don’t THINK I am especially evil to my hardware, but wow.

On one hand this was a Gen 1 Paperwhite AND I had considered getting a Voyage when it was announced, however the Paperwhite was just fine and I really didn’t NEED a new device. (Not like that has really ever stopped me in the past!) I had put off dealing with it for a while and last night the ‘watershed moment’ happened. I launched that puppy off of a towel I set the device on. Something about hitting the corner on a tile floor from at least 5-6 feet in the air didn’t agree with the touch screen. Like previously destroyed devices this shattered the touch screen enough to render it unusable.

Last week Apple did me a solid and replaced a battery on my iPhone 5 under warranty. I was ‘kinda’ hoping that I would ‘have’ to buy an iPhone 6, but alas instead they just made me a more loyal customer. In all fairness, Amazon did the same with the second of 2 K3’s that got killed too. Something tells me that an assisted launch of a Kindle isn’t really a warranty event. :-) At least this one lasted a couple of years.

I am not all that unhappy about it, and I REALLY didn’t do it on purpose. :-O


10 Years to the Day … Weird April 13, 2015 at 1:20 pm

For some reason today I was going ‘back in time’ reading over my BLOG. This whole thing has started / stopped / started / sputtered, and has mostly been ‘Meh’ overall. There really isn’t a coherent theme, and other than ‘bot traffic’ AFAIK I am really the only person that pays it much attention. I know it gets indexed and I know every now and then someone spends a little time here, but not overly so.

So I REALLY didn’t plan this AND I went ALL the way back in time (as far as THIS BLOG is concerned). Wow, 10 years ago I was sitting in Miami (Most likely Miami Beach ~and~ most likely at my desk in my SOON to fail business, the writing WAS clearly on the wall, but it wasn’t long after I started the blog when the final decision was made by me to pack it in.)

This blog was more or less ‘started on a whim’ (as I remember it) because some ‘folks that I knew’ had basically rolled out a blogging service many months prior and I figured, what the heck. (I actually DID ~know~ a few of the people that worked on it, as in like personally met them, but couldn’t tell you who they are NOW. Sad really, but that is life.)

During ‘its’ life, the blog has transitioned between (I am fairly sure it ~was~ originally MSN, as that would have put me in contact with ‘folks that worked on it’) at least 4 different groups at MS, and another host when MS shut down. I ~think~ the last iteration was called ‘Live Spaces’. I didn’t make notes on all of that so reality is that I am likely wrong.

Wow. Something that has some fairly interesting (to me anyway) key focal points of my life preserved. I didn’t really BLOG about most of my ‘failures’ but I can see the initial cracks that started the avalanches.

Nor have I written about ALL of my successes either, but I can see some of those obliquely preserved too! (It is ALL about context.)

The weird part? Todays entry wouldn’t even EXIST unless I was triggered to look at the content by an exceptionally weird confluence of butterfly wings flapping. Even then, deciding to LOOK AT my very first entry wasn’t a conscious decision! That to me is THE MOST odd part. Completely unplanned.

Weird. (And Wow, 10 friggin’ years TO THE DAY. Kinda neet?) Weird.

I wonder right this minute what the future holds. I have noticed more than one subtle observation that has turned out to be ~major~ themes in my life AND I didn’t understand the ramifications of the observations AT THE TIME. I am loath to make any other observations right now because of that. You know, ‘jinx’ things, because THAT would be science. ūüėČ


The “Hope Monkey” is dead, long live the “Hope Monkey” January 28, 2015 at 4:17 pm

I recently re-read the first book of the “Star Force” series Swarm by B.V. Larson. In that book the main character talks about how his “Hope Monkey” grabbed a hold of him various times in the book.

I just went through a similar emotional situation (thankfully NOTHING ~AT ALL~ like the events in the book, JUST the emotional reactions). I tried REALLY hard not to even consider giving into the hope and I failed miserably. In both regards. For that which I had hope, and for letting the hope give me energy. It is a massive come down. I went from feeling on top of the world, to another place entirely.

You never WANT to ‘give up all hope,’ and I ‘hope’ that the gross death of the last “Hope Monkey” can be cast asunder and a new one can take its place. I am old enough to know that I am a “passionate individual” and that is a sword that has two edges and is many times as dangerous to the wielder as it is to the obstacles my passions can help me overcome.

Don’t take any of the analogies to seriously. Followed beyond the mere surface likeness, would make them exceptionally scary.

OK, so back to that book. :-) I would not say “Mr. Larson is the worlds best producer of great literature.” It is enough for me to say that I enjoy his work and my kindle account is loaded with a good percentage of his product. Swarm is one of the most memorable (and the first) of the series, but all have been enjoyable. IDK if it would appeal to you. My tastes are “fairly pedestrian” apparently.


Grumble June 10, 2014 at 6:03 pm

I have had crummy “luck” with power supplies. (Better them, than some of the alternatives!) I was in the middle of using my “big boy” Linux box today (remotely via XWindows and SSH) and “things” just ground to a halt. (All my VM’s that had network mappings to various resources hung, and the host OS wasn’t happy either.)

Took me a while to track down that problem. I always favor local over remote for trouble (mainly because I didn’t want to trapse over to the room my Linux box was in). When I finally figured out the problem I had to pull apart a bunch of wiring to get at the box. Then I had to start diagnosing issues by pulling likely culprits out of the box. In the end by the time I figured out it was the PSU, Corsair tech support was gone for the day. Sigh. Even ~IF~ they honor the warranty (it is registered and under a year old) that means at LEAST a week without my (big) computer. The AX1200 seems to be discontinued these days and I loath wiring. That is one of the reasons when I built this beast that I picked the modular Corsair. MUCH easier to deal with cable routing. Looks like the replacement AX1200i doesn’t use the same connectors so even if I jaunt over to FRYS and pick up something local, I am likely to have a “fun time.” rewiring everything. (I don’t trust their web site, but they say the AX1200 or AX1200i isn’t available in store.)

I suppose there is ~something~ to say about the Macbook Pro Retina that leaves almost everything beyond user intervention. Over all I use that machine (at least as a front end) more than any other. (Typically with the lid down, external mouse and keyboard too.) If it wasn’t for the few times I need to pull it and work with the machine remotely, I would likely be happier with something like a powerful Intel NUC device “glued” behind my monitors. The specs are getting fairly decent. Some will even support two 30″ monitors via Displayport 1.2 multi-streaming.


I need to dig up my copy of the interview mentioned… June 6, 2014 at 6:52 pm

Reading these quotes from Bjarne Stroustrup today made me very happy.


“There are more useful systems developed in languages deemed awful than in languages praised for being beautiful–many more”. Yes, in MIT Technology Review interview and elsewhere. There, I [Stroustrup]¬†also said:

“I think we should look for elegance in the applications built, rather than in the languages themselves”. I [Stroustrup] should have said “more than” rather than “rather than”.

“To use C++ well, you have to understand design and programming technique”.

“C++ is designed to allow you to express ideas, but if you don’t have ideas or don’t have any clue about how to express them, C++ doesn’t offer much help”.

Stroustrup a hero? Naw… But I probably agree with more of his ideas than¬†disagree.¬†


Mmm… Tastes Like Chicken. April 15, 2014 at 1:03 pm

This is almost complete. I still need to add the “murder circuit.” And I was wondering if I ~should~ route the “culled” chicken into the ovens. Hmmm….

On a clock, a pulse of water collects stuff in the pen.


Perpetual Redstone Repeater loop circuit that sends the pulse. Initialized by hitting a button twice. With a little more room (I have a couple more layers!) I could initiate the pulse automatically.

Output is sorted…

base64 encoding in Lua par duex January 13, 2014 at 10:54 am

Sleep. Helps the brain. After getting a decent nights sleep, I considered the algorithm I used (which was considerably faster than anything I previously found) and figured it¬†could be better after finding another version on github. Re-thinking my main conversion routine doubled the performance. Natural Lua code is still orders of magnitude slower than optimized and compiled “native” code, but these routines are “usably fast-enough” for the purposes I had in mind.

base64 (GNU 8.21) base64.lua (github/ErnieE5) base64.lua (github/paulmoore) Lua wiki
0.055s 0.555s 0.916s 2.586s

When I optimize code I like to figure out what is redundant. (A good optimizing C/C++ compiler can make you lazy at times.) Any optimization is about understanding the platform and usage. With natural Lua (i.e. Not LuaJit or a binary c library) there are a few main factors for optimization.

  • function calls
  • variables
  • branching

These optimizations apply to very tight loops. Most of the time, I prefer to have “lots” of functions and keep code as reusable as possible. (The functional programming aspects of Lua are very handy at times.)

Every function call is going to incur the ¬†overhead of stack management. If the routine is fairly small, the overhead of the management code can add significant time to a routine. This applies for all programming languages, but with a “scripting” language that doesn’t have deep algorithmic analysis you need to keep this in mind. It adds up when millions of iterations call a method.

Variables in Lua are all reference counted. Tables and strings can have significant impact to runtime performance if a loop creates and discards these elements for each iteration. (One of the reasons table.concat is much better for large string assembly over using s=s..”more” in a loop.)

Branching can have significant performance implications on tight loops. A specific case of a branch that will slow Lua down (in comparison!) is the idea of ‘if not end then … else … end’. If the main loop of a routine has this type of logic for every iteration and the branch only fires the end routine at the very end, it very well could shave many cycles off the routine. If possible, have the loop end ~before~ the “special” condition and then handle the special condition at the end. (e.x. in base64 encoding all inputs are 3 bytes and the tail has special padding for inputs that are not evenly divisible by three)

The moral to this story? No matter HOW good you ~think~ you are, in most cases you can do better. (Also, no matter how much time you spend searching for something “in the cloud” you are going to miss something.)