Facebook Embed
17 March 2014
H41-08U: Caravan of Ignorance
02 January 2014
colordiff trailing whitespace again
I think I shall leave this version of the patch right here for future reference.
--- /usr/bin/colordiff 2010-06-01 12:47:41.000000000 -0700 +++ colordiff 2014-01-02 13:29:03.954751310 -0800 @@ -61,4 +61,5 @@ my $diff_stuff = $colour{magenta}; my $cvs_stuff = $colour{darkyellow}; +my $trailing_whitespace = "\033[0;41m"; # Locations for personal and system-wide colour configurations @@ -311,4 +312,5 @@ foreach (@inputstream) { + my $added_line = 0; if ($diff_type eq 'diff') { if (/^</) { @@ -317,4 +319,5 @@ elsif (/^>/) { print "$file_new"; + $added_line = 1; } elsif (/^[0-9]/) { @@ -337,4 +340,5 @@ elsif (/^\+ /) { print "$file_new"; + $added_line = 1; } elsif (/^\*{4,}/) { @@ -379,4 +383,5 @@ elsif (/^\+/) { print "$file_new"; + $added_line = 1; } elsif (/^\@/) { @@ -406,4 +411,5 @@ elsif ($sepchars eq ' >') { print "$file_new"; + $added_line = 1; } else { @@ -426,4 +432,5 @@ $_ =~ s/(\{\+[^]]*?\+\})/$file_new$1$colour{off}/g; } + s/(\s+)$/$trailing_whitespace$1/ if $added_line; s/$/$colour{off}/; print "$_";
kthxbai!
01 January 2014
Goodbye 2013... Hello 2014.
That was one fast year... Zoom!
When it comes to personal objectives, not a particularly successful year.
Retrospective
As a courtesy, the link to last year's retrospective is right here.As with last year, lets start with the notable flubs:
- Failed to spend enough time to relearn the piano.
- FOSS flubs - failed to get code out there and adopted.
- Continued to fail to maintain fitness... I end this year at 211lbs vs last year's 206lbs.
- 400KHz I2C on Raspberry Pi to a PIC16 microcontroller slave.
- Managed to test OQGraph3 with TokuDB on MariaDB.
- Reduced by 20% the reading list backlog.
- Did manage to get together for a few meetups with other Blizzard alumni.
Wish list for 2014
- Free and Open Source Software projects
- Dedicate some hours to help polish OQGraph by March.
- Split the WL#820 project into lots of separate commits.
- Personal development:
- This time, really do set aside some time to relearn the piano.
- Complete at least one large project (electronics, pi, etc).
- Organise the office, really! It's a dump!
tldr?
2013 was a forgettable year except for time with my daughter.16 October 2013
Accurate notifications: 249,561,088 Invitations!
08 October 2013
Kickstarter: Smoothieboard
http://www.kickstarter.com/projects/logxen/smoothieboard-the-future-of-cnc-motion-control
29 September 2013
I like modern phones
I really do like our modern era of customisable smart phones... The HTC One is truly the best phone I have ever owned.
The point if this posting: The recent Android 4.3 upgrade also upgraded the system apps. This meant that it came bundled with Google Hangouts and Google Maps 7. Both of these apps are a UI nightmare and so, I have removed them and installed the older Google Talk 4.1.2 and Google Maps 6.14.4 apps.
Much nicer!
#HTCOne #Android
05 September 2013
Google Contacts UI fail
There is clearly enough room to not truncate the name if the name was shifted up.
#google #android #fail
The flute makers and the rebellious child.
Imagine a happy functioning society of flute makers, who spend their time toiling the fields, making beautiful flutes with intricate carved patterns and playing music which is a joy to listen to. However, they are all born blind but to them, this is completely normal.
One day, a child is born but she could see: She learned growing up to pretend to be as blind as her brethren but in her rebellious teens she decided she wanted to paint the colours she saw.
Such blasphemy! Colours! Her parents were so sad that they gave birth to such a deformed and mentally insane child that did not want to make flutes and play music but instead she wanted to paint imaginary "pictures" that no one can feel and she talked about "colour" nonsense that no one can hear. How does one hear the colour "red"?
The child was obviously insane.
However, the village elders know a cure. They can put out her "eyes", obviously a physical defect, and she would be just like everyone else: Normal.
01 September 2013
Battle for the post smart-watch era...
I was considering how there are many players in the space, with Google acquiring a player, Samsung about to launch a product, there is also Pebble, Sony already entrenched and even Apple looking like it's interested in playing.
One of the biggest criticisms I have seen with several reviews of products is over integration and battery life. Random neurons fired and I recall reading that there was already a fuel cell developed that could generate electricity from blood plasma.
So, here is the idea: A subcutaneous implant with an OLED display, a digital smart tattoo, fuelled by the wearer's blood, Bluetooth connectivity to a phone and maybe a bunch of medical applications, like monitoring blood glucose, etc.
03 August 2013
Twinkle, twinkle, little star...
While on FaceBook, I had encountered the following take on Twinkle Twinkle Little Star and it didn't seem to flow right for me and didn't feel adequate, scientifically.
Twinkle, twinkle, little star;
how I admire what you are!
Giant ball of incandescent gas,
Compressed under its own mass.
Twinkle, twinkle, little star;
how I admire what you are!
Glowing bright, nuclear fusion:
Hydrogen to helium, C-N-O!
Billions of years of fuel to burn
until the iron cools the core.
Red dwarf, white dwarf, Supernova!
Infinite universe, full of awe.
Twinkling star, far away:
Distorted by our own atmosphere.
Scientists with their adaptive optics,
study the night sky, beauty abound.
Twinkle, twinkle, little star;
Science tells us what you are.
I give it to the world under the following license:
This work is licensed under a Creative Commons Attribution 3.0 Unported License.
24 July 2013
13 July 2013
Recording ideas
Being conscious of the weird ways that our minds work is a useful thing. One if the more interesting studies in recent years revealed that our minds scrub some information when passing through doorways. Recently, I have adopted the policy of not passing through a doorway if I am incubating a new idea and will try to record the idea before I leave the room. For this, I have found that the Google Keep app is really quite useful.
10 June 2013
20 May 2013
A tale of two Pis
Since I have two different Raspberry Pis, both model B but one is made in China, the other is made in the UK, I may as well post a picture of them side by side.
11 May 2013
HTC One charging oddity
After mucking around with the phone, plugging in and unplugging things from its USB port, the port may suddenly stop working and the phone won't even initiate charging when the charger is plugged in. Soft reboots or soft power-down/power-up doesn't appear to fix it and the phone won't appear when plugged into a computer's USB port.
The solution is somewhat simple: Force a hard reboot by holding down the power button for 10 seconds. The following reboot, it appears to work again.
01 January 2013
Goodbye 2012. Hello 2013.
It's that time of year again: Reflect on the year's successes and flubs... Of which some were "resolutions" and some were merely wish-list items.
Notable flubs:
- Practically all work-related items were flubs but there again, I didn't seriously expect Blizzard to give me the "pink slip".
- Most FOSS project items were flubs but there again, changing job and relocating puts a serious crimp on one's free time.
- Failed to maintain the fitness improvement - Finished 2010 at 235lbs, 2011 at 198lbs and I'm finishing 2012 at 206lbs. Could be worse, I suppose.
Anyways, on to non-work wish-list for 2013... Not solid resolutions because, meh.
- Would be nice to get back to under 200lbs again.
- I am going to make time for Free and Open Source projects:
- OQGraph for MariaDB
- Cleanup the v3 work
- Get it merged into trunk.
- External Stored Procedures for MariaDB
- Cleanup the current work.
- Include the proof-of-concept work to split the parser so that the stored procedure parser is plugable.
- Get it merged into trunk.
- Playing with Raspberry Pi
- I plan to outfit my Pi with more IO using cheap PIC16 parts and make all the source and schematics open.
- I want to make a small bipedal robot, powered by a Pi or two.
- Is it possible to use I2C as a Transport for NDBCluster?
- Just for fun:
- Participate in more get togethers with other Blizzard alumni who are now in the SF Bay area.
- Personal development:
- I'm planning to relearn the piano.
- Read more books. I have a backlog of books, including fiction books, that I want to read.
- Eventually get my home office organised.