Pietari Heino's personal website

  • Sample Page
  • About me
  • Reading
  • Watching

GCS Service Account private key not working from env?

03/12/2017 / 3 Comments

The sole purpose of this post is to help people who are googling for the same issue. It took me quite a while before finding the answer. TL;DR: check out this answer. If you’re trying to initialize gcloud, google-cloud-node, or whatever Google Cloud related npm package on your NodeJS project using secrets stored in environment … [Read more…]

Posted in: random Tagged: env, gcloud, gcloud node, gcs, gcs service account, pem routines error, pem_read_bio: no start line, private key environment variable, service account private key

Introducing TabJump, a Chrome extension to … jump between your tabs!

21/11/2017 / Leave a Comment

I have the habit of keeping multiple Chrome windows filled with more than a hundred tabs. As of late I’ve become very frustrated at finding a specific tab since it can take a bit of time. Also, I hate it when a website opens slowly (eg. Gmail, Google Drive, Facebook, Slack, Twitter etc.) and most … [Read more…]

Posted in: random Tagged: chrome extension, tabjump

Wicked cool neural network video primer

05/11/2017 / Leave a Comment

One of those people who have heard about neural networks and machine learning n+1 times but don’t really understand the actual fundamental basics behind it? I surely am. Well, of course I know that there are some ways of training a network with pre-labeled data and then discovering similarities in never-seen data and yada yada … [Read more…]

Posted in: Fascinating engineering, random Tagged: 3blue1brown, machine learning, neural networks, video series

My first talk [Mistä Nyssetutka on tehty]

12/10/2017 / 1 Comment

I had my first talk! Juhuuu! Very nice. Super. Great feeling. And what’s best, from the feedback I received I’m pretty sure the audience liked it 🙂 I presented a 30-minute talk about the architecture of my child of 2017, Nyssetutka.fi. The presentation was part of the now annual Tietotekniikan yö, IT-night, organised by students … [Read more…]

Posted in: Talks Tagged: nyssetutka, talks, tietotekniikan yö

Service Workers are coming to Safari

03/08/2017 / Leave a Comment

Service Workers are coming to Safari, it seems. This is my most anticipated and waited web platform feature (or whatever). Really. I’ve known the technology, played with it and deployed it into production on two web apps but it has always irritated me to not have it available for all users. Of course, the platform … [Read more…]

Posted in: random Tagged: pwa, safari, service worker, sw, webkit

E2E testing with headless Chrome and Nightwatch

05/07/2017 / 1 Comment

Setting up End-to-End testing (for Nyssetutka.fi) using Nightwatch.js, Selenium and ChromeDriver and running the tests in a headless Chrome instance was super easy. Update 12/2017: since many people are arriving here from Google, please do share any and all ideas you have if you think this post could be improved somehow. Thanks! Since I didn’t … [Read more…]

Posted in: random Tagged: chromedriver, e2e, end-to-end testing, headless chrome, nightwatch, selenium

Acer Games Chrome extension pushed to my Chromebook

19/06/2017 / Leave a Comment

I’m not happy. Some party, maybe Acer through Google somehow, I don’t know, has pushed a Chrome extension called Acer Games to my C740. Never had any of that Windows-like OEM crapware on the Chromebook/ChromeOS platform, didn’t even know that existed. But it seems it’s a thing now. This is not nice.

Posted in: Uncategorized Tagged: acer games, chromebook, crapware, wtf

“node build.js” hangs on production server

06/06/2017 / Leave a Comment

Very short version: check that you’re not running out of RAM and/or swapping really works. Notice that swapping is completely off on EC2 Ubuntu AMIs even if it’s on everywhere else. Longer version below. Notice the gap on the graph. That’s the time when my AWS micro instance went completely janky and stopped responding to … [Read more…]

Posted in: random Tagged: ec2 hangs, memory, nyssetutka, pm2, webpack build

Be explicit

02/06/2017 / Leave a Comment

I’m just going through and grading students’ code from an exercise where they had to implement barrier synchronization in C++ using condition variables and what not. Someone wrote this: if ( ++finished_threads_ == threads_ ) { … } This pains me. It was a group of three students. Did everyone understand this? Is each and … [Read more…]

Posted in: random Tagged: explicit, precise, programming, rinnakkaisuus, tie-02500

Tule töihin Tietotekniikan laboratoriolle!

31/03/2017 / Leave a Comment

Tietotekniikan lai…laboratorio hakee kurssiassareita lukuvuodelle 2017-2018. Hae meille töihin, suosittelen! Olen ollut Pervasivella jo liki kaksi vuotta aloitettuani kesätöissä 2015. Olen päässyt tekemään monia mielenkiintoisia asioita: harjoitusten pitoa, harjoitustöiden tarkistuksia, harjoitustöiden suunnittelua, erilaisten opetusjärjestelmien ylläpitoa ja suunnittelua, harjoitustöiden mallitoteutuksia, tenttien suunnittelua, tenttien tarkistamista ja olin toisena kesätyönäni kurssin vastuuhenkilönä vastaten sen kesätoteutuksesta. Olen tehnyt töitä Johdatus … [Read more…]

Posted in: random Tagged: pervasive computing, tietotekniikan laboratorio, tietotekniikan laitos, tty, tut
« Previous 1 2 3 … 5 Next »