Profile

Cover photo
Henrik Danielsson
Works at Volvo
Attended School Of Future Entertainment, Karlshamn
Lives in Tibro
132 followers|179,080 views
AboutPostsPhotosVideosReviews

Stream

Henrik Danielsson

Shared publicly  - 
 
To paint or not to paint?

#planetaryannihilation #miniatures
1
Add a comment...

Henrik Danielsson

Shared publicly  - 
 
Nice use of a wiki for storing solved programming tasks:
http://rosettacode.org/wiki/Rosetta_Code
Rosetta Code is a programming chrestomathy site. The idea is to present solutions to the same task in as many different languages as possible, to demonstrate how languages are similar and different, and to aid a person with a grounding in one approach to a problem in learning another.
1
Add a comment...

Henrik Danielsson

Shared publicly  - 
 
Some perspective on things: http://math.ucr.edu/home/baez/timeline.html
A Brief History of the Universe. John Baez. August 28, 2012. Note: all figures here are approximate! I have left out lots of exciting incidents in the history of the universe, but it's still fairly interesting. You can see three views of history: counting backwards from now; counting down to the ...
1
Henrik Danielsson's profile photo
 
Ja, det finns mycket att fundera på, synd bara att det kostar så mycket tid/pengar att testa sådana teorier...
 ·  Translate
Add a comment...
 
 
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  
1
Yuriy Galanter's profile photoHenrik Danielsson's profile photoTim Mayville's profile photo
3 comments
 
I have used something similar for quite some time to "hide" my SMS and missed call notification icons. Then when one comes in, it "unhides" them. I create a text box that is blank, with a black background, and set it to dynamic to have it cover the icon, which is actually part of my whole-watch background image to cut down on number of elements. Then I use this formula for the dynamic sizing to uncover when there is a SMS (or missed call for that notification, though formula is slightly different of course because it uses the MC variable):
{100#%S=0#0}/100
Add a comment...

Henrik Danielsson

Shared publicly  - 
 
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  
1
1
Henrik Danielsson's profile photo
Add a comment...
In his circles
167 people
Have him in circles
132 people
Rob Brown's profile photo
Olof Brickarp's profile photo
Henric Sjörén's profile photo
Mikael Danielsson's profile photo
Noah Benzing's profile photo
Piratpartiet's profile photo
André Fohlin's profile photo
Arya C's profile photo
Jonas Pettersson's profile photo

Henrik Danielsson

Shared publicly  - 
 
 
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
4 comments on original post
1
Add a comment...

Henrik Danielsson

Shared publicly  - 
 
Introversion software is known to be one of the few software companies to have supported Linux from the early stages, even before Steam for Linux existed officially. You may remember games such as Uplink (a kind of hacker simulator), Darwinia (an abstract RTS), Defcon (a strategy/board game ...
1
Add a comment...

Henrik Danielsson

Shared publicly  - 
 
So glad I backed this!
#kickstarter   #kungfury   #hasselhoff  
2
Add a comment...

Henrik Danielsson

Shared publicly  - 
 
<3
 
Unreal Engine Is Now Free, Including Access To The Source Code http://buff.ly/1DwRxoD #Linux #Gaming
Today became a pretty good day to be a developer! Unreal Engine has dropped the monthly subscription, so anyone can jump in and tinker!
14 comments on original post
2
Add a comment...

Henrik Danielsson

Shared publicly  - 
 
Very useful to have all these in one place!
 
The most comprehensive list of command line tools, network related monitoring, and log and infrastructure monitoring tools for Linux SysAdmins.
8 comments on original post
1
Add a comment...

Henrik Danielsson

Shared publicly  - 
 
3D printed machine gets "12W output from 3W input". Your ALL CAPS description must be true, I'm in!

Not...

#kickstarter   #freeenergy   #capslock   #perpetuummobile  
THERE WILL BE FREE ENERGY! THE OVER-UNITY CONTINUOUS MOTION ELECTRIC GENERATOR IS REAL!
1
Add a comment...
People
In his circles
167 people
Have him in circles
132 people
Rob Brown's profile photo
Olof Brickarp's profile photo
Henric Sjörén's profile photo
Mikael Danielsson's profile photo
Noah Benzing's profile photo
Piratpartiet's profile photo
André Fohlin's profile photo
Arya C's profile photo
Jonas Pettersson's profile photo
Education
  • School Of Future Entertainment, Karlshamn
  • Volvogymnasiet, Skövde
Basic Information
Gender
Male
Relationship
In a domestic partnership
Work
Occupation
Programmerare, CNC-operatör
Employment
  • Volvo
    Programmerare, CNC-operatör, present
Places
Map of the places this user has livedMap of the places this user has livedMap of the places this user has lived
Currently
Tibro
Previously
Hjo - Karlshamn - Malmö
Bra pizzor, men standardstorleken är mycket mindre än för några år sedan. Finns tre storlekar att välja på, medium motsvarar den tidigare normalpizzan men kostar desto mer. Största pizzan går lös på nästan 200:- men då blir ett par personer rejält mätta.
Public - 2 years ago
reviewed 2 years ago
1 review
Map
Map
Map