alexkras.com

  • Home
  • Top Posts
  • Resume
  • Projects
  • YouTube
  • Boots to Bytes
  • About
  • Contact

Archives for April 2017

OMG – NPM clone that finally makes sense

April 21, 2017 by Alex Kras Leave a Comment

Note: Everything I’ve assumed was wrong, I am keeping track of things as I discover them via the medium post: https://medium.com/@akras14/omg-npm-clone-that-finally-makes-sense-3478588879 I’ll update this post when the dust settles 🙂 Last week I came across a yet another NPM clone, called pnpm, but unlike other clones (cough Yarn) this one is actually interesting! What so […]

Filed Under: JavaScript, Node.Js, Tools

Running Any Linux Browser in (almost) Headless Mode

April 13, 2017 by Alex Kras 1 Comment

I just saw an articled on Hacker News announcing that Chrome 59 is going to have cross-platform headless support. A lot of people are excited by this announcement, mainly because it will allow them to move away from PhantomJS – a buggy headless browser currently used as a de-facto solution to run unit tests and […]

Filed Under: Software Engineering, Tools, Ubuntu

Convert video to images via command line

April 8, 2017 by Alex Kras 1 Comment

I often find myself needing to convert video to a series of images. It’s a great way to look through the content to find some details or identify screenshots that are worth keeping. For example I used this method to look through all talks given at Chrome Dev Summit to supplement my notes. Another use […]

Filed Under: Tools

Save Ammonite (Scala REPL) History to File

April 7, 2017 by Alex Kras 3 Comments

I use Ammonite and ipython like REPL for Scala. I find it handy to save history to file, so here is how to do it in Ammonite. import java.io.BufferedWriter import java.io.FileWriter val file = new File(“some-file.scala”) val bw = new BufferedWriter(new FileWriter(file)) val history = repl.history.mkString(“\n”) bw.write(history) bw.close() Ammonite exposes a global object called repl, […]

Filed Under: Scala

Write or Paste Multi-Line Code in Scala REPL

April 7, 2017 by Alex Kras Leave a Comment

I love Python and ipython, so I often crave similar experience when working with Scala. Scala already has a built in REPL which is a huge plus, however, I wasn’t sure how to copy/paste multi-line text. For example, I had a snippet of code saved somewhere that looked as such: someList .map(someFunction) This would work […]

Filed Under: Scala

64% of Developers are still using Angular 1 vs Angular 2+

April 6, 2017 by Alex Kras 1 Comment

Two years ago I wrote a blog post on Angular Performance, that remains the most popular post on this site. Even two years ago it seemed like Angular 1 was on it’s way out, so I was surprise to see my Angular 1 post still getting so much traffic. I conducted a poll on Twitter, […]

Filed Under: Front End, JavaScript

Copyright © 2021 · eleven40 Pro Theme on Genesis Framework · WordPress · Log in