Du är besökare 20175
-
The Future of Grids
Our friend Emil Björklund has just published his third tidbit about CSS Grids. The future of web layout looks bright. Don’t miss part 1 and part 2.
-
Mandatory reading for PHP devs
I just wanted to give this site I stumbled upon some credit: http://www.hackingwithphp.com/. I’ve been developing with PHP for about 15 years, but still the part about performance taught me quite a lot. isset() is apparently faster than array_key_exists() and $i++is slow compared to ++$i. These are micro-optimizations, sure, but there’s no reason to rub PHP the wrong way… /Peder
-
Finding out sentiment
Say you want to find out if a user generated text is happy, sad, upbeat or hateful. Not so easy is it? We were given this task as a part of a recent project. And to make things even more challenging we needed to do this in both Swedish and English. After a bit of research…
-
NFC + Krautmilen + Android
We needed to make something to measure timings during the running event Krautmilen. Equipment: Make a fugly Android app which could relay runners NFC keyring blips to a server API. Make a server API to handle the basic running logic (ie pair up names of runners with their start and finish times) The application is…
-
Hooking up the voice intercom to Slack
The intercom from the street to our office was connected to an old GSM phone, and letting people in required us to pick up the phone and press the digit 5. Simple, sure, but it doesn’t feel like 2015. I had also been meaning to try the Twilio API for some time. Task: Connect the…
-
Figurerunning a corgi
I like running, and figurerunning makes it even more fun. Don’t know what figurerunning is? Oh! Basically it’s just GPS tracking helping runners draw dicks on maps while running. What’s not to like? We made a tool helping runners being creative while planning their routes. In this proof of concept we let users draw figures which automatically snap to roads…
-
How to make a wind chime door bell
Our doorbell was already connected to the Internet via an Arduino, but we couldn’t stand the sound it made. We needed a warmer sound, a sound that didn’t make us want to kill the doorbell users (mostly clients). Step 1: Buy an old Wind Chime, preferably with a coconut base (because awesome). Step 2: Pick up a…
-
Integrera Swish i egna tjänster
I’ll write this in Swedish because it only applies to Swedes. Swish är ju en väldigt lyckad tjänst. Den har, liksom t.ex. Uber, förändrat ett beteende. Över 2 millioner svenskar använder appen. Självklart borde man göra något smart på Internet med detta, nu när nästan hela Sverige har appen i fickan. Dock har Swish inget publikt API,…
-
Why doesn’t all my Instagram embeds in WordPress look the same?
Well, Instagram changed the response on their Oembed service sometime in December 2014. And WordPress caches all oembed lookups the first time they’re displayed. This means that all of your little blog posts which had an Instagram image or video (and more than 1 pageview) before December 2014 will look different than all your new posts.…
-
An API for Faking Swedish user details
Lorem Ipsum is great for generating place holder texts, and Placehold.it (and our own Place-A-Pet!) does the same job for images. Sometimes though, you need to create fake Swedish users. Say you want to generate dummy comments or fake forum users. What to do? I just created a little webservice for this. Get a HTML-table by going…
-
Let Slack nag you that it’s time to return that commuter pass
Another week, and yet another Slack integration here at Earth People. This time we’ve added an integration to the public transport system here in Stockholm. At Earth People we like to use public transportation when going to meetings with clients. That’s why we have bought a couple of commuter passes that we can use whenever we…
-
Let Slack tell you what songs are currently playing in the office
At Earth People, there’s always music in the air (and the birds sing a pretty song). Most of the stuff we play is fairly unknown to most of us, and in many cases only played once, ever. To get rid of all the “Hey what’s this song”-chatter or Slack, I made a litte script which we…