Pietari Heino's personal website

  • Sample Page
  • About me
  • Reading
  • Watching

random

Testing React HOC’s private logic

14/04/2019 / Leave a Comment

I had a problem with higher-order components, their use of even higher-order components, passing styles from the component-to-be-wrapped to the HOC, and testing of the bare/naked/base HOC without involving the wrapped component. In this post I shortly present the solution my colleague and I found to be working quite nicely (I expect you know all … [Read more…]

Posted in: random Tagged: material-ui, react, react hoc, withstyles

Paranoid Optimist

28/10/2018 / Leave a Comment

I really recommend Paranoid Optimist by Risto Siilasmaa. It has got some very good insights on Nokia’s transformation from the smartphone market leader to Symbian’s destruction partly through iPhone and new world ignorance, Windows Phone deal with Microsoft, rising from the ashes and finally the transformation to a more or less new company providing not … [Read more…]

Posted in: random Tagged: nokia, paranoid optimist, risto siilasmaa

TabJump Chrome extension updates

16/09/2018 / Leave a Comment

I’ve updated my TabJump Chrome extension, which lets you easily search through your open tabs from any windows, and jump into them. A longer explanation of the ideas and functionality of the extension may be found from my first blog posting about it, here. This time around I’ve changed the core functionality of the extension to make … [Read more…]

Posted in: random Tagged: chrome extension, tabjump

Center current window in KDE Plasma

29/07/2018 / Leave a Comment

I’ve got a nice Samsung 27″ 2K monitor at my home office. The one and only pain I have got with the resolution and size of the monitor is that most programs don’t need that much of horizontal space and become mostly useless and horrible to use. For instance your web browser very rarely needs … [Read more…]

Posted in: random Tagged: center window, kde plasma, kubuntu, kwin, ubuntu

Using D3 and Puppeteer to generate visualizations

08/04/2018 / 2 Comments

While working on a book chapter called Criterion-based grading, agile goals, and course (un)completion strategies (with Ihantola, Isohanni & Mikkonen) for a new Springer book that concentrates on agile learning strategies etc. we needed to generate lots of visualizations. The visualizations were supposed to show the completion paths of different students for the first programming course at … [Read more…]

Posted in: random Tagged: d3, puppeteer, springer, visualization

Lazy loading the Vue root component

21/02/2018 / Leave a Comment

Webpack and Vue together make it possible to split your bundle in chunks and lazy load only the actually needed chunks. Usually one chunk is one view, one component, or one of any encapsulated bunch of only optionally shown piece of content, a software component. This, of course, means that the client makes fewer requests … [Read more…]

Posted in: random Tagged: lazy load, vue, vue root component, webpack

Android battery life: Pixel 2 and Oreo (8.1) nail it

11/12/2017 / Leave a Comment

Android is the mobile operating system for me. It has been for quite a many years. I especially love the vanilla experience and have been a proud owner of Nexus 4, Nexus 5, Nexus 5X, Pixel and now Pixel 2. I’ve also had a couple of devices from HTC and Samsung. I love having the … [Read more…]

Posted in: random Tagged: android battery life, android oreo, pixel 2

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
1 2 3 Next »