Fixing an HP Chromebook

February 22nd, 2016, by Ryan H.

I bought my wife an HP chromebook, and almost a year after we bought it, the right side of the keyboard would randomly stop typing. It was the 1, 4, y, u, h, j, n. and m keys, as far as I know. Looking into the problem, I found that I was not the only one with this issue. Then I found a hidden gem on the HP support site. A user by the name of gediger figured out that the kink in the ribbon-cable was the culprit, and by bending it somewhere else, the problem is resolved.

I have this exact problem and after HP and Woot where I bought it were unhelpful, I dug into it myself. It’s not a problem with the keys at all, it was the ribbon cable connecting it to the motherboard. After re-seating the large ribbon cable it would work for a bit until I snapped the keyboard back into place. Then, no worky again. After fiddling with it while having the keyboard off, I found that the fold in the cable was the problem. When straightened out, it worked, when folded tight (like when the keyboard was snugged down) it quit working. I re-folded it in different places while reinstalling the keyboard and it’s been working for about a week. If it stays working, awesome, but who knows.

In the end, No help from HP on this but every once in a while a blind squirrel finds a nut. Hope this helps someone else!

Source: HP Support Site


SugarCRM Timezone Errors

February 1st, 2016, by Ryan H.

[FATAL] Configuration variable date.timezone is not set, guessed timezone America/Chicago. Please set date.timezone="America/Chicago" in php.ini!

If you set that in your php.ini and are still getting that error, it’s likely getting thrown from you cronjob, which is calling the cli version of PHP. Make sure you add date.timezone="America/Chicago" to /etc/php5/apache2/php.ini and /etc/php5/cli/php.ini


The Zen of [Programming]

January 29th, 2016, by Ryan H.

Beautiful is better than ugly.
Explicit is better than implicit.
Simple is better than complex.
Complex is better than complicated.
Flat is better than nested.
Sparse is better than dense.
Readability counts.
Special cases aren’t special enough to break the rules.
Although practicality beats purity.
Errors should never pass silently.
Unless explicitly silenced.
In the face of ambiguity, refuse the temptation to guess.
There should be one– and preferably only one –obvious way to do it.
Although that way may not be obvious at first unless you’re Dutch.
Now is better than never.
Although never is often better than *right* now.
If the implementation is hard to explain, it’s a bad idea.
If the implementation is easy to explain, it may be a good idea.

-Tim Peters

Originally written for Python, I think it encapsulates good programming technique and methodology for any language.

Programming is a form of writing, and the better you express yourself in clear, concise terms, the better code you can write.