Posts

New blog domain: kula.blog

It's still work in progress but new posts will be published on  https://kula.blog/ Thanks to 11ty base blog RSS is working from the start so it should be easy to add to your reader if you still use any :) If now then I hope you can sign up to the newsletter where I'll be publishing new posts and interesting articles to it from time to time. Please use  kula.blog  from now on.

Rules of Productivity

Image
Yesterday I have stumbled upon interesting presentation about productivity at work. It is called  Rules of Productivity . What interested me most: For creative work 35 hours should be maximum week length Teams size between 4-8 are best Team should have its own room (+100% to productivity). I had a gut feeling about open spaces being harmful, it is good to see it confirmed. Overtime is is not doing anything good because team needs to recover after it.  Overtime is harmful if done longer than a month.  Scheduling at 80% of team capacity is much better for productivity.  Presentation contains much more than this short list so I recommend you reading it.

Convenient Node Debugger Run by NPM

Image
If you read installation instruction of node-inspector you would think that the only way to use it is to install it globally. Here I want to suggest embedding it in the project. Installation: $ npm install -g node-inspector $ npm install node-inspector --devDependencies After doing that, you need to add "debug" line to "scripts" part of  package.json "scripts": { "start": "node app.js", "debug": "./node_modules/.bin/node-debug app.js" } And run it: $ node-debug app.js $ npm run debug It has downsides, that is obvious, but in my opinion it has also big advantages.  New person on the team does not need to follow long readme of global modules to install - and remember how all of them are supposed to be run. Another advantage is ignoring all the problems that you may have with sudo (needing it to install anything global). In my opinion it is also simpler and more convenient. All commands ...

Book Review: The Hero of Ages by Brandon Sanderson (Mistborn #3)

Image
The third and final book of the Mistborn series. Unfortunately I think the first part of the book was not really important and too much similar to the last book. The good thing is that the action was more dynamic with every page so at the end it was really fun. I must admit that the end was unexpected, at least for me. Overall it is a great book. Rating: 8/10

How to use NPM packages from private repositories on bitbucket

Image
Using Node.js you want to use NPM packages for reusable parts of the apps you create, that is a common sense. At the same time not everything makes sense as a public module unfortunately. Right now we are using Bitbucket at work for private repositories but there is a problem. How to use them as NPM modules? We do not want to publish them to the public npmjs.org but still want to have an ability to install them easily. After googling and experimenting I have found simple solution. First create new user in your organization with obscure password and give it read access to the repo. It is best to assign really obscure password but do not fool yourself. This is convenient but you must sacrifice security a bit. You should always consider how in your context that would be important. Change example from below to: user - username PASS - password of the user organization - owner of the project (you can find it in bitbucket url to your project) project - your project name "de...

Book Review: The Corporation by Joel Bakan

Image
Book by Joel Bakan is on the list of Bret Victor recommended books  so some time ago I put it on my read later list. My colleague bought one recently so I was eager to borrow it. I think that book could be better, especially shorter as chapters 3 and 4 were not so great. Fortunately I think that I learned a lot about history of corporations. Now I know how they are financed and how they work. The book is a couple of years old so it is interesting to see how corporations evolved from that time. A couple of months ago I have read interesting article about Tim Cook plans for Apple  http://gadgets.ndtv.com/others/news/angry-tim-cook-tells-apple-investor-to-get-out-of-this-stock-489936 . Back then I had no idea what that meant. Now I have much bigger context to think about it, I would say that alone makes up for the small flaws of the book. Must read for everyone working for any kind of corporation. Rating: 7/10

Book Review: The Well of Ascension by Brandon Sanderson (Mistborn #2)

Image
Second book from the Mistborn series. It is better than the first one for sure. I am really eager to start the third one as soon as possible :) Book is gripping. I had a big problem doing anything else while reading it. Maybe before starting the third book I should finish "Corporation". Rating: 9/10

Book Review: Mistborn by Brandon Sanderson (Book 1)

Image
First book of the series with the same title. Really good fantasy, more dynamic than The Words of Radiance  and maybe a little less epic in scale of the world but still impressive and gripping. Magic reminded me of the one in The Stormlight Archive series, do not get me wrong I see similarities but it is also much more complicated. I really like reading about magic in fantasy so learning more about magic of Mistborn was great. Fortunately at the end we can see a glimpse of new threat so I hope to read second book soon. Rating: 8/10