Facebook Embed

29 April 2014

Thought for the day:

Here is a thought for today:
People will try to use every feature of a product to be "cool".
Therefore, any build tool which permits circular dependencies is a broken tool.
What does the interwebs think?

24 April 2014

Internet and net-neutrality.

I think that the word, internet, should be restricted to mean networks which allow free and equal access for packets from other networks... As in an "inter-network network".
Networks which do not permit free and equal networks should be named for their controlling interest. So company owned and moderated networks, like Comcast, which limit bandwidth or filter content are not "internets" but are, in Comcast's case, Comcast's network which has a moderated gateway to the internet. Similarly, people in China or Turkey don't have internet service providers: they have "turknet" or "chinet" service providers which has a moderated gateway to the internet.
I think we do need to make this distinction so that users are not misled.

21 April 2014

I don't care for Gradle.

I could vote for GRADLE-2496 but to be honest, I don't like Gradle enough to create an account just to vote for this issue. Given that the bug was first reported in 2012, few others care enough, too.

Useless error messages

From the annuals of useless error messages:
Executed 0 tests: 0 succeeded, 0 failed, 0 skipped.
Unexpected exception thrown.
:integration-test-impl -- Executed 0 tests: 0 succeeded, 0 failed, 0 skipped.
:compileJava FAILED

11 April 2014

10 second thoughts: Gradle

In my opinion, Gradle is a bad idea, implemented poorly. It should never take dozens of gigabytes of RAM and many tens of minutes, just to load its config files and determine that the command asked was mistyped.

17 March 2014

H41-08U: Caravan of Ignorance

Amazing how people like to celebrate their stupidity and parade their ignorance as a virtue.

02 January 2014

colordiff trailing whitespace again

Why do I keep on having to do this?

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.

As +Eric Idle says; always look at the bright side of life. There were a few very minor victories:
  • 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

Obligatory wish-list for the new year which contains some duplicates from last year. As always, these aren't resolutions but wishy-washy objectives which may or may not be met, blah, blah...
Perhaps a little shorter list than last year.
  • 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!

It's always nice when applications give notifications which are useful and informative. In this example, I present a picture of a terribly useful notification from the FaceBook app on an iPad mini...
#iPad #Facebook

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.

I posted this text in a comment on Facebook. Perhaps I had heard it from somewhere or perhaps it is totally original. I don't know. I post this tiny story here for more people to enjoy:
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.

So I came up with the following variant:
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:
Creative Commons License
This work is licensed under a Creative Commons Attribution 3.0 Unported License.

24 July 2013

Modern electronics...

Modern electronics is so tedious to solder by hand. Here is a successful attempt to solder an extension to a microphone.

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

Apple Yawn.

Apple iButt Yawn! Didn't their old Dot-mac, MobileMe do this years ago?


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

This is mostly just a post for my personal reference:
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.