Profile cover photo
Profile photo
Henrik Danielsson
137 followers
137 followers
About
Henrik's interests
View all
Henrik's posts

Post has attachment
To paint or not to paint?

#planetaryannihilation #miniatures
Photo

Post has shared content
Air-Powered Star Trek Style Door #SciFiSunday
https://blog.adafruit.com/2015/07/12/air-powered-star-trek-style-door-scifisunday/


Impressive Star Trek inspired build from uiproductions via instructables.

I always wanted a piece of Star Trek and the Disney Monorail in my house, and one thing they have in common is that they both have automatic sliding doors. It would be the perfect, most geek-ified entryway for my bedroom.


Read more https://blog.adafruit.com/2015/07/12/air-powered-star-trek-style-door-scifisunday/
https://www.youtube.com/watch?v=FVtB2Lrd1vg#action=share

Post has attachment

Post has shared content
Beautiful work and for a good cause.

Post has attachment
So glad I backed this!
#kickstarter   #kungfury   #hasselhoff  

Post has attachment

Post has shared content

Post has attachment
Some perspective on things: http://math.ucr.edu/home/baez/timeline.html

Post has shared content

Post has shared content
Found a useful hack for my Pebble today!

I'm using Pebble Canvas to create custom watchfaces on my phone, but showing images only when charging has been a problem for a few reasons:

1) Image layers can't be set to have a dynamic size (can't be shrunk to nothingness based on some dynamic value).

2) The "Watch Battery Plugged In" status is "0" when not charging and "1" when charging, making it difficult to use a second dynamically sized layer to cover up the image when not charging (the needed logic is reversed).

3) The string evaluated to get the resize value must be in the form of a fraction ("x/y") once tokens have been replaced, and no math expressions or conditionals can be used.

But, the hack I found today works around these issues!

Set an image layer to always display, but have it normally covered up by another Time/Date/Pebble status layer with no contents and a non-transparent background. I call this extra layer the "blinder".

Then set the blinder to be dynamically sized in some direction and using the format "1/%o01". That is the letter o (Watch Battery Plugged In) followed by a zero and a one.

This string parsing hack toggles the size between "1/001" and "1/101", effectively hiding or showing the blinder layer or the image below.


One curious thing is that if you instead set the format to "1/%o00" (a zero instead of a one at the end), the blinder layer will disappear when plugging the Pebble in, but it won't reappear when unplugging it. Switching watchfaces brings shows the blinder again.
This could be a division of zero issue which for some reason isn't triggered on the initial parsing of the format.

This also works with "%O" (Watch Battery Charging) instead of "%o" (Watch Battery Plugged In). Once the watch has reached 100% and stayed there for a little while, the image will be hidden again.

#Pebble   #PebbleCanvas  
Wait while more posts are being loaded