<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Nikola Brežnjak on Medium]]></title>
        <description><![CDATA[Stories by Nikola Brežnjak on Medium]]></description>
        <link>https://medium.com/@HitmanHR?source=rss-8ff0af490de6------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*Taj1cYFWDxnDx4J_.jpg</url>
            <title>Stories by Nikola Brežnjak on Medium</title>
            <link>https://medium.com/@HitmanHR?source=rss-8ff0af490de6------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Thu, 19 Nov 2026 17:07:33 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@HitmanHR/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Go logger with Kubernetes Stackdriver format compatibility]]></title>
            <link>https://medium.com/@HitmanHR/go-logger-with-kubernetes-stackdriver-format-compatibility-f66bde1c548a?source=rss-8ff0af490de6------2</link>
            <guid isPermaLink="false">https://medium.com/p/f66bde1c548a</guid>
            <category><![CDATA[logging]]></category>
            <category><![CDATA[kubernetes]]></category>
            <category><![CDATA[google-cloud-platform]]></category>
            <category><![CDATA[stackdriver]]></category>
            <category><![CDATA[golang]]></category>
            <dc:creator><![CDATA[Nikola Brežnjak]]></dc:creator>
            <pubDate>Wed, 08 Nov 2017 10:55:25 GMT</pubDate>
            <atom:updated>2017-11-08T14:39:51.738Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/880/0*du9NLVnIm9-l0Bqf.jpg" /></figure><p><em>Originally published on </em><a href="http://www.nikola-breznjak.com/blog/go/go-logger-kubernetes-stackdriver-format-compatibility/"><em>my blog</em></a></p><p>I’m so proud to announce that a Go <a href="https://github.com/teltech/logger">Logger</a> package that our backend team at <a href="http://teltech.co/">Teltech</a> was working on is now open-source! It is our library for structured logging mechanism for Go projects running via Kubernetes with <a href="https://cloud.google.com/error-reporting/docs/formatting-error-messages">Stackdriver format</a> compatibility.</p><blockquote><em>For those who’d like to get started with Kubernetes, here are two free courses:<br> 1. </em><a href="https://www.udacity.com/course/scalable-microservices-with-kubernetes--ud615">Scalable Microservices with Kubernetes by Google</a> on Udacity. <a href="https://twitter.com/kelseyhightower">Kelsey Hightower</a> is one of the instructors here!<br> 2. <a href="https://www.edx.org/course/introduction-kubernetes-linuxfoundationx-lfs158x">Introduction to Kubernetes</a> by edX</blockquote><blockquote><em>For the curious, here’s an </em><a href="https://kubernetes.io/docs/concepts/cluster-administration/logging"><em>overview of logging in Kubernetes</em></a><em>.</em></blockquote><h3>Installation</h3><p>go get -u github.com/teltech/logger</p><h3>Usage</h3><pre>package main<br><br>import (<br>    &quot;github.com/teltech/logger&quot;<br>)<br><br>// There should be a LOG_LEVEL environment variable set, which is read by the library<br>// If no value is set, the default LOG_LEVEL will be INFO<br><br>func main() {<br>    // Stackdriver requires a project name and version to be set. Use your environment for these values.<br>    // SERVICE should be your GCP project-id, e.g. robokiller-146813<br>    // VERSION is an arbitrary value<br>    log := logger.New()<br><br>    // You can also initialize the logger with a context; the values will persist throughout the scope of the logger instance<br>    log = logger.New().With(logger.Fields{<br>        &quot;user&quot;:   &quot;+1234567890&quot;,<br>        &quot;action&quot;: &quot;create-account&quot;,<br>    })<br><br>    param := &quot;something useful here&quot;<br><br>    // A metric is an INFO log entry without a payload<br>    log.Metric(&quot;CUSTOM_METRIC_ENTRY&quot;)<br><br>    // Log a DEBUG message, only visible in when LOG_LEVEL is set to DEBUG<br>    log.With(logger.Fields{&quot;key&quot;: &quot;val&quot;, &quot;something&quot;: true}).Debug(&quot;debug message goes here&quot;)<br>    log.With(logger.Fields{&quot;key&quot;: &quot;val&quot;}).Debugf(&quot;debug message with %s&quot;, param)<br><br>    // Log an INFO message<br>    log.With(logger.Fields{&quot;key&quot;: &quot;val&quot;, &quot;names&quot;: []string{&quot;Mauricio&quot;, &quot;Manuel&quot;}}).Info(&quot;info message goes here&quot;)<br>    log.With(logger.Fields{&quot;key&quot;: &quot;val&quot;}).Infof(&quot;info message with %s&quot;, param)<br><br>    // Log a WARN message<br>    log.With(logger.Fields{&quot;key&quot;: &quot;val&quot;}).Warn(&quot;warn message goes here&quot;)<br>    log.With(logger.Fields{&quot;key&quot;: &quot;val&quot;}).Warnf(&quot;warn message with %s&quot;, param)<br><br>    // Error() prints the stacktrace as part of the payload for each entry and sends the<br>    // data to Stackdriver Error Reporting service<br>    log.With(logger.Fields{&quot;key&quot;: &quot;val&quot;}).Error(&quot;error message goes here&quot;)<br>    log.With(logger.Fields{&quot;key&quot;: &quot;val&quot;}).Errorf(&quot;error message with %s&quot;, param)<br>}</pre><h3>Output</h3><p>The errors require a specific JSON format for them to be ingested and processed by Google Cloud Platform Stackdriver Logging and Error Reporting. See <a href="https://cloud.google.com/error-reporting/docs/formatting-error-messages">this post</a> for more info. The resulting output has the following format, optional fields are, well, optional:</p><pre>{<br>  &quot;severity&quot;: &quot;ERROR&quot;,<br>  &quot;eventTime&quot;: &quot;2017-04-26T02:29:33-04:00&quot;,<br>  &quot;message&quot;: &quot;An error just happened!&quot;,<br>  &quot;serviceContext&quot;: {<br>     &quot;service&quot;: &quot;robokiller-ivr&quot;,<br>     &quot;version&quot;: &quot;1.0&quot;<br>  },<br>  &quot;context&quot;: {<br>    &quot;data&quot;: {<br>      &quot;clientIP&quot;: &quot;127.0.0.1&quot;<br>      &quot;userAgent&quot;: &quot;Mosaic 1.0&quot;<br>    },<br>    &quot;reportLocation&quot;: {<br>      &quot;filePath&quot;: &quot;\/Users\/mc\/Documents\/src\/github.com\/macuenca\/apex\/mauricio.go&quot;,<br>      &quot;functionName&quot;: &quot;unknown&quot;,<br>      &quot;lineNumber&quot;: 15<br>    }<br>  },<br> &quot;stacktrace&quot;: &quot;goroutine 1 [running]:main.main()\n\t\/github.com\/macuenca\/mauricio.go:15 +0x1a9\n&quot;<br>}</pre><p>Your Google Console StackDriver Error Reporting may then look something like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/880/0*8klDIgtKhShJYqny.png" /></figure><h3>License</h3><p>This package is licensed under the <a href="https://opensource.org/licenses/BSD-3-Clause">BSD 3-clause</a> license.</p><h3>Opportunities</h3><p>If you like this project and would like to work on something similar, go check out <a href="http://teltech.co/careers">our Careers page</a> — we’re always looking for talented new people 🙌</p><h3>Conclusion</h3><p>This package has been very helpful to us, so we hope it helps someone else as well. If you have any remarks on the project, please submit a bug or PR 💪</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f66bde1c548a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[After writing 300 posts, this is why I think you should start blogging too]]></title>
            <link>https://medium.com/@HitmanHR/after-writing-300-posts-this-is-why-i-think-you-should-start-blogging-too-d907681ce78?source=rss-8ff0af490de6------2</link>
            <guid isPermaLink="false">https://medium.com/p/d907681ce78</guid>
            <category><![CDATA[life-long-learning]]></category>
            <category><![CDATA[learning]]></category>
            <dc:creator><![CDATA[Nikola Brežnjak]]></dc:creator>
            <pubDate>Sun, 26 Mar 2017 20:19:18 GMT</pubDate>
            <atom:updated>2017-03-26T20:19:18.561Z</atom:updated>
            <content:encoded><![CDATA[<h3>TL;DR</h3><p>In this post I’m going to share with you:</p><ul><li>few things that I learned from writing 300 posts</li><li>why I think you should start blogging as well</li><li>my thanks to one ever so slightly awesome role model</li></ul><h3>Backup your stuff</h3><p>This tip may come as unexpected, given the fact that this is actually a 302nd post on my blog and one could argue that by now I have some system in place for dealing with that, right? Well, yeah, but so it is that this is the second time I’m writing this post from scratch.</p><p>Yeah, please don’t ask; I always keep a backup of backups (<em>how meta, right?</em>) but in this particular case, I was ‘smart’ and had it on my Desktop.</p><blockquote><em>Seriously bro, Desktop!? What are you, like, 2015!?</em></blockquote><p>I know, I know.</p><blockquote><em>Don’t you, like, have Time Machine backup, or something.</em></blockquote><p>Yeah, I do, but it wasn’t backed up… You know what, please just stop putting additional salt on the already burning wounds. Thank you very much, it’s enough of a lesson without it.</p><p><em>Actually, you know, just the other day I watched </em><a href="http://www.imdb.com/title/tt3774114/"><em>this movie</em></a><em>, and it could be that my safest bet would probably be to ask (nicely, of course) No Such Agency if they have it on file somewhere. OK, joking a bit; I honestly don’t care — we may as well all be in </em><a href="http://www.imdb.com/title/tt0120382/"><em>The Truman Show</em></a><em> and so what — do your best with the hand you’ve been dealt.</em></p><h3>The beginnings</h3><p>One doesn’t come to write 300 posts overnight, and we all start somewhere. My humble beginnings started on August 15, 2013, when I published my first post about <a href="http://www.nikola-breznjak.com/blog/miscellaneou/projects/carcassonne-scoring-board-application/">Carcassonne scoring board application</a>. I wrote the <a href="http://www.nikola-breznjak.com/blog/miscellaneou/100th-post/">100th post overview</a> on December 28, 2014, and the <a href="http://www.nikola-breznjak.com/blog/miscellaneou/what-have-i-learned-from-writing-200-posts/">200th post overview</a> on August 20, 2015.</p><p>With this 300th overview being published today on the last day of 2016, I’m roughly below 100 posts in average per year, which is not too shabby, but I’m striving to do better.</p><h3>My approach</h3><p>I’m happy to say that my approach hadn’t changed from the time when I wrote the 200th post overview and that it’s still some kind of an inner drive to:</p><blockquote><em>…help people by bridging this seemingly invisible gap between the awesome programmers and not-so-awesome programmers who would use a bit of step by step help, by making my tutorials straight to the point with each step, without skipping the ever so slightly “obvious” parts.</em></blockquote><h3>OK, but why!?</h3><blockquote><em>OK, seriously now man, in this day and age, tell me what are you getting out of this?</em></blockquote><p>Let me be lazy and use the same quote I did last time:</p><blockquote><em>You learn the best when you have to teach someone something.</em></blockquote><p>So, when I learn something new, or when I stumble upon a problem that I can’t solve for some time I benefit from documenting it on my blog in few ways:</p><ul><li>I tend to remember things way longer when I actually write them down</li><li>I potentially help someone else who may stumble at the same error in future</li><li>I have a reference for when I need to look it up</li></ul><p>Also, by breaking things down to the core concepts and then being able to see the bigger picture is an invaluable skill to have, and Einstein said it best:</p><blockquote><em>If you can’t explain it simply, you don’t understand it well enough.</em></blockquote><h3>Seriously, where’s the catch!?</h3><p>There’s not. And, in case you don’t buy into all this I just want to help you with my blog, you can take a look at the number of my <a href="http://stackoverflow.com/users/534755/nikola?tab=answers">StackOverflow answers</a>, two books (<a href="https://leanpub.com/ionic-framework">1</a>, <a href="https://leanpub.com/meantodo">2</a>) I’m giving away for free, or come to a <a href="http://www.nikola-breznjak.com/blog/miscellaneou/writing-300-posts-think-start-blogging/www.meetup.com/MeCoDe/">free meetup</a> that I’m hosting once a month. Anyways, I’m not trying to market myself or show how super I am; I’m merely making a point as to what I’m saying.</p><h3>Opportunities and why I think you should start writing a blog</h3><p>However, (<strong><em>aha!, now we have him!!</em></strong>), I have to tell you one thing that will inevitably happen. As you start writing a blog and solving things and publishing it for other people to learn from you will inevitably come out as an expert in the field (in case you specialized) and thus you’ll get more opportunities than you can even imagine. Book writing offers, consulting and conference speaking gigs, you name it.</p><h3>The process of achieving consistency</h3><p>I’m a firm believer in processes that are used and cultivated for good, as it takes a lot of “I don’t feel like it” situations out of an equation. And, I believe, you know that these days tend to just ‘happen’, and then magically stretch on for weeks until you gather your thoughts and snap out of it.</p><p>Thus, my advice for writing more is nothing new, and you hear it probably all over the Internetz. <strong>The problem is that its hard</strong>, and people tend to run away from hard things these days. The sole ‘tool’ which you have to nurture, train and maintain is <strong>consistency</strong>.</p><p>Put in the work daily, fail, learn, get up, improve, put in the work, fail, learn, improve. Mary go round… The next thing you know it, you won’t be thinking about the process anymore, you’ll live it, preach it. However, this is hard, I know. But you’re in it for the long run, remember? So, put your hand on the plow and keep on…</p><p>Thus, if you want to start writing blog posts about some topic, just start today. Don’t go and read a book on the topic (chances are you’ll never finish it in the first place :/). <strong>Just freaking do it already!</strong> Share what you’ve learned along the way. In case a year from now you won’t be ashamed by the quality of your posts you did back then, then my friend, you haven’t grown, and it’s time for some introspection (the same rule applies to your code if you’re a software developer).</p><h3>Read more nonfiction books</h3><p>Don’t get me wrong; one can learn from fiction books as well. However, imagine you read 10 pages a day of some book that’s related to what you’re trying to achieve (C#, PHP, Soft skills, Finance even, …).</p><blockquote><em>No, Face</em><strong><em>book</em></strong><em> doesn’t count. Drop that already. That’s like talking into the wind if you’re talking at all, that is.</em></blockquote><p>In one month you would read 300 pages of some book. And in one year you’d read 12 books. Now, imagine you take and apply only one idea from each of those books — how different do you think your life would be? How much more valuable do you think you could be to your society, spouse, child, yourself if you invest in yourself?</p><p>Ok, and now to address the elephant in the room:</p><blockquote><em>What is this new age success/growth mindset that you’ve got going on here?</em></blockquote><p>Yeah, the only post where I kind of touched this was the one about <a href="http://www.nikola-breznjak.com/blog/miscellaneou/makers-vs-consumers-dont-hate-donate/">Makers vs Consumers — don’t hate, donate</a>. And, I’m not going to ramble on and on why you should read more. I’m just going to say that I agree with the following quote:</p><blockquote><em>Your level of success will seldom exceed your level of personal development.<br>~ Jim Rohn</em></blockquote><h3>Homerun posts</h3><p>Two posts that I’m very proud of (and have been published on Pluralsight) are:</p><ul><li><a href="http://tutorials.pluralsight.com/front-end-javascript/getting-started-with-angular-2-by-building-a-giphy-search-application">Getting started with Angular 2 by building a Giphy search application</a></li><li><a href="http://www.nikola-breznjak.com/blog/javascript/ionic/ionic-framework-a-definitive-10000-word-guide/">Ionic Framework: A definitive 10,000 word guide</a></li></ul><p>Few of the posts on this blog have indeed been doing well:</p><ul><li><a href="http://www.nikola-breznjak.com/blog/javascript/ionic2/posting-data-from-ionic-2-app/">Posting data from Ionic 2 app to a PHP server</a></li><li><a href="http://www.nikola-breznjak.com/blog/javascript/nodejs/how-to-run-node-js-server-in-ionic-mobile-app/">How to run Node.js server in Ionic mobile app?</a></li><li><a href="http://www.nikola-breznjak.com/blog/javascript/ionic/how-to-send-an-email-in-ionic-framework-application/">How to send an email in Ionic framework application?</a></li><li><a href="http://www.nikola-breznjak.com/blog/javascript/ionic/introduction-tdd-ionic-framework/">Introduction to TDD in Ionic framework</a></li></ul><p>Few other posts worth mentioning:</p><ul><li><a href="http://www.nikola-breznjak.com/blog/miscellaneou/makers-vs-consumers-dont-hate-donate/">Makers vs Consumers — don’t hate, donate</a></li><li><a href="http://www.nikola-breznjak.com/blog/javascript/nodejs/why-am-i-getting-unexpected-token-u0000-when-using-npm-install-g-package/">Why am I getting Unexpected token ‘\u0000’ when using npm install -g package</a></li><li><a href="http://www.nikola-breznjak.com/blog/miscellaneou/sublime-text/how-to-set-up-live-markdown-preview-on-windows-with-sublime-text-and-markmon/">How to set up live Markdown preview on Windows with Sublime Text and Markmon</a></li><li><a href="http://www.nikola-breznjak.com/blog/codeproject/raneto-google-oauth-login/">Raneto Google OAuth login</a></li><li><a href="http://www.nikola-breznjak.com/blog/ios/create-native-ios-app-can-receive-voip-push-notifications/">How to create a native iOS app that can receive VoIP push notifications</a></li></ul><h3>What’s next for me?</h3><p>I’ve been putting off blogging about Ionic 2 for far too long now, and now when the dust has settled, I’m going to go into this fully, so expect a flood of posts concerning that in this year. As I still work on Ionic 1 codebase, expect to get some ‘hard-learned tips’ for working with the framework from day 1.</p><p>On a totally different note, I started looking into the <a href="https://golang.org/">Go</a> language and am liking it so far. I hope that my journey will evolve so that I’ll be able to work with it even more on a professional level as well. Be it as it may, expect some posts on that subject when I gain some more knowledge about it.</p><h3>Special thanks</h3><p>I’ve read a few books that could be classified as ‘self-help/self-improvement’ books, and (surprisingly so?) I’ve read a lot of the software development books. However, it was not until I read John Sonmez book <a href="http://amzn.to/1B1uRlQ">Soft Skills</a> (you can <a href="http://www.nikola-breznjak.com/blog/miscellaneou/writing-300-posts-think-start-blogging/www.nikola-breznjak.com/blog/codeproject/soft-skills-the-software-developers-life-manual-by-john-sonmez/">read my review here</a>) that I started taking all this a bit more seriously and started reading way more about all of this.</p><p>I still remember when I emailed him asking if Ionic framework was a good technology to niche down. Now, a year and a half later, being in the <a href="http://stackoverflow.com/tags/ionic-framework/topusers">top #3 answerer in Ionic framework tag on Stackoverflow</a> I can only say — thank you.</p><p>In case you’re into improving as a software developer and getting to the next level of your personal development, be sure to check his <a href="https://www.youtube.com/user/jsonmez">Youtube channel</a>. Who knows, you may just find something valuable for you.</p><p>Some of you may also be familiar with Elliott Hulse, and if so, you’ll enjoy <a href="https://www.youtube.com/watch?v=NWCWKOMztEo">their interview</a>.</p><h3>Conclusion</h3><p>My intention was not to make this into a motivational speech. Though, if it helped kick you out of your comfort zone and into the producer mentality, that’s great. However, don’t forget:</p><blockquote><em>Inspiration is for amateurs — the rest of us just show up and get to work.</em></blockquote><p>So, wish you a happy, healthy, fulfilling and productive 2017!!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d907681ce78" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Friend on a hand]]></title>
            <link>https://medium.com/@HitmanHR/friend-on-a-hand-39e158cbd773?source=rss-8ff0af490de6------2</link>
            <guid isPermaLink="false">https://medium.com/p/39e158cbd773</guid>
            <category><![CDATA[gadgets]]></category>
            <category><![CDATA[fitness]]></category>
            <category><![CDATA[fitbit]]></category>
            <dc:creator><![CDATA[Nikola Brežnjak]]></dc:creator>
            <pubDate>Mon, 04 Jan 2016 20:33:46 GMT</pubDate>
            <atom:updated>2016-01-04T20:33:46.266Z</atom:updated>
            <content:encoded><![CDATA[<p>Below is my submission for the <a href="http://www.bug.hr/">Bug</a> writing competition in original Croatian, and in my best attempt to translate to English (fixes are welcome). However, they must have thought I was joking or something, and they didn’t even take a look at it. Anyways, here’s a story with my 1+ year experience with my Fitbit:</p><p>English version:</p><blockquote>We formed our friendship just before you wrote the article “Me in numbers” in your Bug magazine. That made me happy because you assured me that I’m a successful trend followed, like any real gadget enthusiast.</blockquote><blockquote>I wear it on my wrist, and it doesn’t bother me any second of my 8-hour work on my other Friend — Computer, but we won’t talk about him now because after all this isn’t his 5 minutes of fame.</blockquote><blockquote>First of all, I wouldn’t want to label him as a mere piece of hardware, because, in a very short period that I own him, he became my Friend Hardware.</blockquote><blockquote>Not only does he count the number of steps I make in a day, but he also counts my total sleeping time. His friend Application (which, btw, works great on any worthwhile mobile phone or browser) shows me which period of time I was restless during the sleep, and with this, I can see the quality of my sleep and the time it took me to fall to sleep.</blockquote><blockquote>It also allows me to enter the data about the food that I eat, the amount of water that I drink, and my current desired weight. Based on my activity, it calculates how many calories I spend, and how much more would I have to burn to stay in the fitness beast mode — bye bye personal trainers.</blockquote><blockquote>Hardware vibration mode wakes me up in the morning at the time allocated in the Application, so that I don’t wake up my child and wife early in the morning at 5 AM when I go for a run before work. Hardware sends me weekly accomplishments via the Application and it shows me how I stack up against my other “living” friends.</blockquote><blockquote>My FitBit Flex ❤</blockquote><p>Original Croatian version:</p><blockquote>Mi smo oformili naše prijateljstvo taman prije nego što ste Vi u Bugu imali temu “Ja u brojkama”. To me razveselilo jer ste mi time potvrdili da uspješno pratim trendove kao svaki pravi gadget entuzijast.</blockquote><blockquote>Nosim ga oko svog zapešća i ne smeta mi ni trenutka u mojih 8 sati rada za mojim drugim prijateljem Računalom, ali sada nećemo o njemu jer je to ipak njegovih 5 minuta.</blockquote><blockquote>Prije svega, ne bih htio da se njega oslovljava samo kao neki obični hardware, jer je on u kratkom roku što ga imam postao moj prijatelj Hardver.</blockquote><blockquote>Ne samo što mi mjeri broj koraka koje napravim u danu, već mi mjeri i ukupno vrijeme spavanja. Njegova prijateljica Applikacija (koja, usput budi rečeno, radi na svakom iole spomena vrijednom mobitelu ili browseru) mi omogućuje uvid u period kad sam bio nemiran tokom sna, te time mogu vidjeti kvalitetu sna i vrijeme koje mi je bilo potrebno da zaspim.</blockquote><blockquote>Također mi omogućuje da unesem podatke o hrani koju jedem, količini vode koju popijem, te svojoj trenutnoj i željenoj težini. Ovisno o mojoj aktivnosti računa koliko kalorija potrošim, te koliko bi još morao da ostanem u fitness beast modu — bye bye osobni treneri.</blockquote><blockquote>Hardver me ujutro budi laganim vibriranjem u vrijeme zadano u Aplikaciji, tako da ne probudim svoje dijete i ženu ujutro u 5 sati kad idem trčati prije posla. Hardver mi preko Aplikacije tjedno šalje email sa pregledom postignuća za prošli tjedan a i prikazuje mi koliko sam dobar u odnosu na druge “žive” prijatelje.</blockquote><blockquote>Moj FitBit Flex ❤</blockquote><p>Oh, btw, the strap broke after more than a year of non-stop usage (showers included), but I bought a cheap replacement on eBay and it’s holding up just fine…</p><p><em>This post was first published on my </em><a href="http://www.nikola-breznjak.com/blog/miscellaneou/friend-on-a-hand/"><em>blog</em></a><em>. If you’re interested in hybrid mobile application development, you should check it out since I blog extensively about </em><a href="https://leanpub.com/ionic-framework"><em>Ionic framework</em></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=39e158cbd773" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to get your MEAN stack up and running in less than a minute]]></title>
            <link>https://medium.com/@HitmanHR/how-to-get-your-mean-stack-up-and-running-in-less-than-a-minute-9b82d99931db?source=rss-8ff0af490de6------2</link>
            <guid isPermaLink="false">https://medium.com/p/9b82d99931db</guid>
            <category><![CDATA[nodejs]]></category>
            <category><![CDATA[mean-stack]]></category>
            <dc:creator><![CDATA[Nikola Brežnjak]]></dc:creator>
            <pubDate>Sun, 30 Aug 2015 19:56:37 GMT</pubDate>
            <atom:updated>2015-08-30T19:56:37.427Z</atom:updated>
            <content:encoded><![CDATA[<p>Over the past year I’ve tried lots of options for hosting my MEAN applications, and finally I’ve settled for <a href="https://www.digitalocean.com/?refcode=974c9bc93d77">DigitalOcean</a>. It’s true what they advertise — that you can have a SSD cloud server up and running in less than 55 seconds. However, you don’t have to go spending your hard earned cash just yet — I have a special deal with <a href="https://www.digitalocean.com/?refcode=974c9bc93d77">DigitalOcean</a> and you can signup via <a href="https://www.digitalocean.com/?refcode=974c9bc93d77">this link</a> and get 10$ immediately, which will be enough for 2 full months of non stop server running. They even provide you with API so that you can control your server, and <a href="http://code.tutsplus.com/tutorials/using-the-digital-ocean-api-to-manage-cloud-instances--cms-22864">this tutorial</a> shows you how.</p><p><em>I don’t want to make it look like I’m pushing you on DigitalOcean — you can sign up with someone else if you like, I just recommend them because I had a good experience with them in the past and because it’s so easy to get a MEAN stack all pre-installed (more on this in a bit) and ready for use.</em></p><h4>Create a droplet</h4><p>Once you complete the sign up on <a href="https://www.digitalocean.com/?refcode=974c9bc93d77">DigitalOcean</a> you will be presented with a similar screen, as show on the image below, where you have to click on the <strong>Create Droplet</strong> button:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/999/0*QleD7JDkvDlXxApE.jpg" /></figure><p>Next, you have to name your <strong>droplet</strong> (cool name the folks at DigitalOcean chose to call their server instances) and select the size (the smallest one will be just fine here), just as it’s shown on the image below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/998/0*izUj_ACpg_eRUMee.jpg" /></figure><p>After this, you have to choose a region, as shown on the image below. Naturally, you’ll want to choose some location which is closer to your targeted audience.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/809/0*h4OOl8nS80ZFizgp.jpg" /></figure><p>Now comes the most awesome part. In <strong>Select Image</strong> section you have tons of options ranging from the barebones distributions (Centos, Ubuntu, Debian, etc.), to the pre-built stacks (LAMP, LEMP, WordPress, ROR, MEAN, etc.) like shown on the image below. Here you have to choose the MEAN on 14.04 option (<a href="http://www.urbandictionary.com/define.php?term=ymmv">YMMV</a> on the exact number), and this is awesome because with this droplet you won’t have to go through the hassle of installing Node.js, Express and MongoDB as we did in the <a href="https://hackhands.com/how-to-get-started-on-the-mean-stack/">first tutorial</a> — it will be already done and waiting for you! <a href="https://www.youtube.com/watch?v=UPphDSc6ZEE">B-E-A-utiful</a>!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/810/0*s_uUzN9GVm49Dg0v.jpg" /></figure><p>Then, just wait a few seconds and your droplet will be ready:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/999/0*ekEj35trorXctX1z.jpg" /></figure><p>You’ll be redirected to the dashboard (once the droplet is created) which will look something like the image below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1002/0*m0dvWxPG4Ic-1QzL.jpg" /></figure><h4>Connect to the droplet</h4><p>On your email address you will receive instructions which will look something like on the image below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*kgCykga5Wa5ZKoZb.jpg" /></figure><p>Now, using a SSH client of your choice (I’m currently on Windows so not much leeway here :)) connect to the droplet. The image below shows the setting from the <a href="http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html">Putty</a> SSH client on Windows:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/458/0*iJYddz0tGS6ItQwP.jpg" /></figure><p>You have to connect with the <strong>root</strong> user and the password that was emailed to you. However, immediately upon logging in you will get a notification that you have to change the root’s password, as shown on the image below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/660/0*tpppC3z4aoL3dN3u.jpg" /></figure><h4>Create a new user</h4><p>Using root user in linux is bad practice, so now you’re going to create a new user with the following command:</p><pre>useradd nikola</pre><p>Of course, you can use any username you want. After this add the user to the <strong>sudo</strong> group by executing the following command:</p><pre>gpasswd -a nikola sudo</pre><p>The sudo group enables the user nikola to use the sudo command when using some commands that are restricted to root user. You can learn more about sudo <a href="https://www.digitalocean.com/community/tutorials/how-to-add-delete-and-grant-sudo-privileges-to-users-on-a-debian-vps">here</a>. The image below shows the example of the commands I just listed:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/453/0*Pqxe9mO5XffEnEvl.jpg" /></figure><h3>Run</h3><p>Now just run</p><pre>grunt</pre><p>and if you visit your ip address on port <strong>3000</strong> you should see:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*U5HYJ-O-Ce6mV0Kv.png" /></figure><p><em>What you now have running is a well known </em><a href="http://meanjs.org/"><em>MEAN.js</em></a><em> framework. You may have also heard about </em><a href="http://mean.io/"><em>MEAN.io</em></a><em> and you can learn about the difference in my post about </em><a href="https://hackhands.com/mean-io-vs-mean-js-deploying-latter-digitalocean/"><em>MEAN.io vs MEAN.js</em></a><em>.</em></p><h4>Use your own domain</h4><p>In case you bought (or have somewhere hanging in the closet from the <a href="http://en.wikipedia.org/wiki/Dot-com_bubble">90’s .com boom</a>) a domain that you would like to use to point to your droplet you have to go to the <strong>DNS</strong> settings and add a domain like shown on the image below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/0*rYRjvSDiGHH66B5x.jpg" /></figure><p>Also, in your <a href="http://en.wikipedia.org/wiki/Domain_name_registrar">domain registrar</a> (where you bought your domain — think Godaddy, Namecheap, Hostgator, etc.) you have to set the corresponding nameservers to:</p><ul><li>ns1.digitalocean.com</li><li>ns2.digitalocean.com</li><li>ns3.digitalocean.com</li></ul><p>You can learn more about this on the <a href="https://www.digitalocean.com/community/tutorials/how-to-set-up-a-host-name-with-digitalocean">official Digital Ocean guide</a>.</p><h3>Using PM2</h3><p>Running your Node.js application by hand is, well, not the way we roll. Imagine restarting the app every time something happens, or god forbid application crashes in the middle of the night and you find about it only in the morning — ah the horror. <a href="https://github.com/Unitech/pm2">PM2</a> solves this by:</p><ul><li>allowing you to keep applications alive forever</li><li>reloading applications without downtime</li><li>facilitating common system admin tasks</li></ul><p>To install PM2, run the following command:</p><pre>sudo install pm2 -g</pre><p>To start your process with PM2, run the following command (once in the root of your application):</p><pre>pm2 start server.js</pre><p>As you can see from the output shown on the image below, PM2 automatically assigns an App name (based on the filename, without the .js extension) and a PM2 id. PM2 also maintains other information, such as the PID of the process, its current status, and memory usage.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/677/0*RIy7jjAiCk0vqUbz.jpg" /></figure><p>As I mentioned before, the application running under PM2 will be restarted automatically if the application crashes or is killed, but an additional step needs to be taken to get the application to launch on system startup (boot or reboot). The command to do that is the following:</p><pre>pm2 startup ubuntu</pre><p>The output of this command will instruct you to execute an additional command which will enable the actual startup on boot or reboot. In my case the note for the additional command was:</p><pre>sudo env PATH=$PATH:/usr/local/bin pm2 startup ubuntu -u nikola</pre><p>If you want to learn more about the additional PM2 options you can take a look at <a href="https://www.digitalocean.com/community/tutorials/how-to-set-up-a-node-js-application-for-production-on-ubuntu-14-04#other-pm2-usage-(optional)?refcode=974c9bc93d77">this post</a>.</p><h3>Using NGINX as a Reverse proxy in front of your Node.js application</h3><p>Though this step is not mandatory, there are several benefits of doing so, as answered in <a href="http://stackoverflow.com/questions/16770673/using-node-js-only-vs-using-node-js-with-apache-nginx">this Stack Overflow question</a>:</p><ul><li>Not having to worry about privileges/setuid for the Node.js process. Only root can bind to port 80 typically. If you let nginx/Apache worry about starting as root, binding to port 80, and then relinquishing its root privileges, it means your Node app doesn’t have to worry about it.</li><li>Serving static files like images, CSS, js, and HTML. Node may be less efficient compared to using a proper static file web server (Node may also be faster in select scenarios, but this is unlikely to be the norm). On top of files serving more efficiently, you won’t have to worry about handling eTags or cache control headers the way you would if you were servings things out of Node. Some frameworks may handle this for you, but you would want to be sure. Regardless, still probably slower.</li><li>More easily display meaningful error pages or fall back onto a static site if your node service crashes. Otherwise users may just get a timed out connection.</li><li>Running another web server in front of Node may help to mitigate security flaws and DoS attacks against Node. For a real-world example, <a href="http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2013-4450">CVE-2013–4450</a> is <a href="http://blog.nodejs.org/2013/10/22/cve-2013-4450-http-server-pipeline-flood-dos/">prevented by running something like Nginx in front of Node</a>.</li></ul><p>So, with being convinced that having NGINX in front of Node.js application is a good thing, following are the steps on how to install and configure it.</p><p>First, update the apt-get package lists with the following command:</p><pre>sudo apt-get update</pre><p>Then install NGINX using apt-get:</p><pre>sudo apt-get install nginx</pre><p>Now open the default server block configuration file for editing:</p><pre>sudo vi/etc/nginx/sites-available/default</pre><p>and add this to it:</p><pre>server {<br> listen 80;<br> <br> server_name meantodo.com;<br> <br> location / {<br> proxy_pass <a href="http://127.0.0.1:3000/">http://127.0.0.1:3000</a>;<br> proxy_http_version 1.1;<br> proxy_set_header Upgrade $http_upgrade;<br> proxy_set_header Connection ‘upgrade’;<br> proxy_set_header Host $host;<br> proxy_cache_bypass $http_upgrade;<br> }<br>}</pre><p>This configures the <strong>web</strong> server to respond to requests at its root. Assuming our server is available at <a href="http://meantodo.com/">http://meantodo.com</a>, accessing it via a web browser would send the request to the application server’s private IP address on port 3000, which would be received and replied to by the Node.js application.</p><p>Once you’re done with the setting you have to run the following command which will restart NGINX:</p><pre>sudo service nginx restart</pre><p>You can learn more about additional NGINX setting from quite a <a href="https://www.digitalocean.com/community/tags/nginx?type=tutorials&amp;refcode=974c9bc93d77">load of tutorials</a>.</p><h3>Faking RAM with swap</h3><p>Since we chose the smallest droplet version of 512 MB we can use <a href="https://www.linux.com/news/software/applications/8208-all-about-linux-swap-space"><strong>swap</strong></a> to make this droplet perform better. Swap is an area on a hard drive that has been designated as a place where the operating system can temporarily store data that it can no longer hold in RAM. For a more indepth tutorial on this you may want to check out <a href="https://www.digitalocean.com/community/tutorials/how-to-add-swap-on-ubuntu-14-04/?refcode=974c9bc93d77">official DigitalOcean guide</a>.</p><p>In order to allocate a swap file space execute the following command:</p><pre>sudo fallocate -l 1G /swapfile</pre><p>Then restrict it to only root user by executing:</p><pre>sudo chown 600 /swapfile</pre><p>With the next two commands you actually setup the swap space and enable it:</p><pre>sudo mkswap /swapfile</pre><pre>sudo swapon /swapfile</pre><p>To view the swap space information you can execute:</p><pre>sudo swapon -s</pre><p>To enable swap automatically when the server restarts you have to add the following content to the <strong>/etc/fstab</strong> file:</p><pre>/swapfile none swap sw 0 0</pre><p>Additionally, there are two more settings worth changing:</p><ul><li>swappiness <em>— parameter which determines how often your system swaps data out of RAM to the swap space. The value is between 0 and 100 and represents a percentage (60 is the default, but we’ll use 10 since we’re on a </em><a href="http://en.wikipedia.org/wiki/Virtual_private_server"><em>VPS</em></a><em>)</em></li><li>vfs_cache_pressure — <em>parameter which determines how much the system will choose to cache inode and dentry information over other data (default value is 100, but we’ll use 50)</em></li></ul><p>In order to make this change append the <strong>/etc/sysctl.conf</strong> file with the following content:</p><pre>vm.swappiness=10</pre><pre>vm.vfs_cache_pressure=50</pre><h3>Other security concerns</h3><p>If you want to learn more on how to secure your droplet I advise you to go over the steps in the initial server setup with Ubuntu on <a href="https://www.digitalocean.com/community/tutorials/initial-server-setup-with-ubuntu-14-04/?refcode=974c9bc93d77">official DigitalOcean tutorial</a>.</p><h3>A freakin’ 150+ page MEAN tutorial PDF</h3><p>This is actually an excerpt from the <a href="https://hackhands.com/how-to-get-started-on-the-mean-stack/">4 part tutorial</a> series I wrote for <a href="https://hackhands.com/">HackHands</a>. If you like you can also take a look at all those posts combined into one big PDF file via <a href="https://leanpub.com/meantodo">LeanPub</a>:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/310/0*z4VCWuasU6h8ZW62.png" /></figure><p>P.S. It’s an intentional typo, since if you’re proud of getting something in production then it’s called a prouduction 😉</p><p>P.P.S. You can enter any amount (yes, even 0$) and I won’t take it against you ;), though a coffee would be nice</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/32/0*Qap8FGJwhAncgWQx.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/32/0*PvxQem8YjT_Aca8m.png" /></figure><p>on!</p><p><em>Originally published at </em><a href="http://www.nikola-breznjak.com/blog/codeproject/how-to-get-your-mean-stack-up-and-running-in-less-than-a-minute/"><em>www.nikola-breznjak.com</em></a><em> on June 28, 2015.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9b82d99931db" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What have I learned from writing 200 posts?]]></title>
            <link>https://medium.com/@HitmanHR/what-have-i-learned-from-writing-200-posts-29abe765180d?source=rss-8ff0af490de6------2</link>
            <guid isPermaLink="false">https://medium.com/p/29abe765180d</guid>
            <category><![CDATA[consistency]]></category>
            <category><![CDATA[ionic]]></category>
            <category><![CDATA[blogging]]></category>
            <dc:creator><![CDATA[Nikola Brežnjak]]></dc:creator>
            <pubDate>Sun, 30 Aug 2015 19:31:50 GMT</pubDate>
            <atom:updated>2015-08-30T19:31:50.410Z</atom:updated>
            <content:encoded><![CDATA[<h3>TL; DR</h3><p>This is my <strong>200</strong>th post on this blog. I wrote some additional ones for other “high roller” sites, which you can see below along with my other most popular posts. <strong>Consistency</strong> is the sole driving force that lead to this point.</p><h3>The beginnings</h3><p>As I noted in my <a href="http://www.nikola-breznjak.com/blog/miscellaneou/100th-post/">100th post</a> overview, it all started with the post <a href="http://www.nikola-breznjak.com/blog/projects/carcassonne-scoring-board-application/">Carcassonne scoring board application</a> which I decided to post after reading <a href="http://jamesclear.com/make-things">James Clear’s post</a> on why we should <strong>be makers instead of just consumers</strong>.</p><h3>My approach</h3><p>I just want to help people by bridging this seemingly invisible gap between the <strong>awesome programmers</strong> and not-so-awesome programmers how would use a bit of step by step help, by making my tutorials straight to the point with each step, without skipping the ever so slightly “obvious” parts.</p><blockquote><em>This “obvious” part, as our math professor used to joke, usually tends to “take just a bit of additional calculations” — and before you know it, just after 45 minutes of additional 2–3 pages of derivations, you’re done…</em></blockquote><p>I too tend to go over the tutorials when I’m learning something new, and I feel frustrated when the steps they outline are not complete, and then I have to spend a day figuring it out (sorry, no mister Sherlock Holmes here). I don’t do this in my tutorials, instead I try to give you the exact step by step that I myself used when solving a particular issue. Also, I tend to welcome you to share your problems, you may have encountered, in the comments.</p><p>As someone smart said (paraphrased, as I couldn’t find the exact author — if you happen to know, ping me in the comments):</p><blockquote><em>You learn the best when you have to teach someone something.</em></blockquote><p>And this has been my guide idea. Because, I realized that if I can’t put my explanation on the paper/screen in order to explain my train of thought, then I probably don’t understand the core basics behind it at all. Albert Einstein said it best:</p><blockquote><em>If you can’t explain it simply, you don’t understand it well enough.</em></blockquote><h3>Homerun posts</h3><p>The posts for which I’m most proud are the MEAN stack series posts, which I wrote for <a href="https://hackhands.com/">HackHands</a> (and which had almost 500000 [yes, that’s half a million] views combined):</p><ul><li><a href="https://hackhands.com/how-to-get-started-on-the-mean-stack/">How to get started on the MEAN stack</a></li><li><a href="https://hackhands.com/delving-node-js-express-web-framework/">Delving into Node.js and Express web framework</a></li><li><a href="https://hackhands.com/mongodb-crud-mvc-way-with-passport-authentication/">MongoDB CRUD the MVC way with Passport Authentication</a></li><li><a href="https://hackhands.com/finishing-Angular-TODO-application-deploying-production/">Finishing Angular TODO application and deploying to production</a></li><li><a href="https://hackhands.com/mean-io-vs-mean-js-deploying-latter-digitalocean/">MEAN.io VS MEAN.js and deploying the latter on DigitalOcean</a></li></ul><p>And, the blog2book that I’ve self-published from these posts: <a href="https://leanpub.com/meantodo">Getting MEAN with MEMEs — Deploying MEAN TODO application to production</a>.</p><p>I posted the 100th post on December 28, 2014. That means it took me 8 moths to write the additional 100 posts (12 posts per month on average (not including the HackHands post which are large, mildly said (last one is <strong>8k+</strong> words))). Anyways, not bragging or anything (this is sort of my reference point), just hope I’ll manage to keep up with this pace in the future too and that I’ll be able to check back to this reference point with a yet even better “score” give the number/quality ratio.</p><p>Of the other high roller sites, I wrote a post for <a href="https://www.digitalocean.com/?refcode=974c9bc93d77">DigitalOcean</a> (which I recommend wholeheartedly) titled “<em>How to manage front-end dependencies with Bower on Ubuntu 14.04</em>“, which is also currently in review phase and will post the link once it goes live.</p><h3>How did I do it?</h3><p>Above all, as <a href="http://jamesclear.com/">James Clear</a> says (he’s cool btw, make sure you check him out if you want to build better habits), the most important thing is <strong>consistency</strong>. And, the key point about making consistency “easy” is doing something that doesn’t exert too much effort from you in order to start it in the first place.</p><p>Start small, increase gradually, but stay consistent with a minimum number. So, to be concise, I write <strong>300 words every day </strong>minimally. Every day. Some days it may be more, but I just need to make sure it’s not less.</p><p>This tends to be a small number, but consider you write consistently for 33 days? You’ll have roughly 10k words, which is easily 10 posts with 1k words. Extrapolate this to a year and you’ll have over 100 posts with 1k words each, which in itself is pretty great if you ask me. Ok, true, not high roller pro style, but hey, we’re in it for the fun and education, right? — all the extras are welcome but not mandatory.</p><h3>What’s next for me?</h3><p>Well, lately, as you may know, I’m really into <a href="http://ionicframework.com/">Ionic framework</a>, and I’m <a href="http://www.nikola-breznjak.com/blog/category/ionic/">writing tutorials about it</a>, along as I learn the ins and out of the framework. Also, just recently I became a technical reviewer for PacktPub for the book Learning Ionic and I was a technical reviewer for the video Rapid Ionic from PacktPub. <em>I’ll update the links to both books once they’ll be published.</em></p><p>Some of my most viewed Ionic framework posts:</p><ul><li><a href="http://www.nikola-breznjak.com/blog/codeproject/adding-admob-to-ionic-framework-application-step-by-step/">Adding AdMob to Ionic framework application step by step</a></li><li><a href="http://www.nikola-breznjak.com/blog/codeproject/check-network-information-change-with-ionic-famework/">Check network information change with Ionic framework</a></li><li><a href="http://www.nikola-breznjak.com/blog/codeproject/posting-data-from-ionic-app-to-php-server/">Posting data from Ionic app to PHP server</a></li><li><a href="http://www.nikola-breznjak.com/blog/quick-tips/handling-ionic-cors-issue/">Handling Ionic CORS issue</a></li><li><a href="http://www.nikola-breznjak.com/blog/stack-overflow/how-to-redirect-users-if-there-is-no-internet-connection-in-ionic-framework/">How to redirect users if there is no Internet connection in Ionic framework?</a></li><li><a href="http://www.nikola-breznjak.com/blog/ionic/ionic-announces-ionic-lab-a-gui-tool-replacement-for-ionic-cli/">Ionic announces Ionic Lab — a GUI tool replacement for Ionic CLI</a></li><li><a href="http://www.nikola-breznjak.com/blog/stack-overflow/use-ionic-or-cordova/">Use Ionic or Cordova?</a></li><li><a href="http://www.nikola-breznjak.com/blog/ionic/create-icons-and-splash-screen-automatically-with-ionic-resources/">Create icons and splash screen automatically with ionic resources</a></li></ul><p>Also, I’m writing tutorials on the subject of Ionic for HackHands. The first one in the series is titled: <a href="http://hackhands.com/how-to-get-started-with-ionic-framework-mac-windows">How to get started with Ionic framework on Mac and Windows</a> (I’ll update the link once the post gets published, since it’s currently in the review phase). Since these arranges prevent me from posting them on my site too, I’ll make excerpts and just link to them from my blog on a monthly basis (same as with my newsletter; since I don’t want to be bothering you guys too much with too much email — we all hate email ;)).</p><p>If you happen to like my style of presenting the “tough” subjects, please share with me in the comments <strong>what topics would you like to see covered next</strong>?</p><h3>Cool, but your theme sucks</h3><p>I kind of agree on this one. Since I’m not a designer and I don’t quite know what I want exactly (shocking, I know; yeah, I bet designers get this line a lot from their employers). So, I’m looking into making a better theme for my blog — do you happen to have a favorite one, or do you want to feature the one you made — share it in the comments. I actually may give it a try on Freelancer to find my new theme, the same way I got my new logo designed:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/200/0*IUQWlX-a0AiTqwgO.jpg" /></figure><p>I’ll blog about how this process was refreshingly positive (and not expensive) in my experience, and will link it here — so, stay tuned because more awesome content is coming!</p><h3>See you at 300</h3><p>That’s all folks, see ya at 300!</p><p><em>Originally published at </em><a href="http://www.nikola-breznjak.com/blog/miscellaneou/what-have-i-learned-from-writing-200-posts/"><em>www.nikola-breznjak.com</em></a><em> on August 20, 2015.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=29abe765180d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to delete node_modules folder on Windows machine?]]></title>
            <link>https://medium.com/@HitmanHR/how-to-delete-node-modules-folder-on-windows-machine-e7f13c1d4482?source=rss-8ff0af490de6------2</link>
            <guid isPermaLink="false">https://medium.com/p/e7f13c1d4482</guid>
            <category><![CDATA[npm]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[nodejs]]></category>
            <dc:creator><![CDATA[Nikola Brežnjak]]></dc:creator>
            <pubDate>Sun, 30 Aug 2015 19:22:30 GMT</pubDate>
            <atom:updated>2015-08-30T19:22:30.724Z</atom:updated>
            <content:encoded><![CDATA[<p><em>This is by far the most popular quick tip I have on </em><a href="http://www.nikola-breznjak.com/blog/"><em>my blog</em></a><em>. If you want to see more of them, come take a peak (I recently published </em><a href="http://www.nikola-breznjak.com/blog/miscellaneou/what-have-i-learned-from-writing-200-posts/"><em>200th post</em></a><em>).</em></p><p>Due to its <em>folder nesting</em> Windows can’t delete the folder as its name is too long. To solve this, install <a href="https://github.com/isaacs/rimraf">RimRaf</a> with <a href="https://www.npmjs.com/">npm</a>:</p><pre>npm install rimraf -g</pre><p>and delete the node_modules folder easily with:</p><pre>rimraf node_modules</pre><p>If you happen to get an “error” like this:</p><pre>C:\Users\Nikola\Desktop&gt;npm install -g rimraf</pre><pre>C:\Users\Nikola\AppData\Roaming\npm\rimraf -&gt; C:\Users\Nikola\AppData\Roaming\npm\node_modules\rimraf\bin.js</pre><pre>npm WARN unmet dependency C:\Users\Nikola\AppData\Roaming\npm\node_modules\generator-ionic requires cordova@’^4.2.0&#39; but will load</pre><pre>npm WARN unmet dependency C:\Users\Nikola\AppData\Roaming\npm\node_modules\cordova,</pre><pre>npm WARN unmet dependency which is version 5.1.1</pre><pre>npm WARN unmet dependency C:\Users\Nikola\AppData\Roaming\npm\node_modules\bower\node_modules\bower-registry-client requires request@’~2.51.0&#39; but will load</pre><pre>npm WARN unmet dependency undefined,</pre><pre>npm WARN unmet dependency which is version undefined</pre><pre>npm WARN unmet dependency C:\Users\Nikola\AppData\Roaming\npm\node_modules\bower\node_modules\fstream-ignore requires fstream@’^1.0.0&#39; but will load</pre><pre>npm WARN unmet dependency undefined,</pre><pre>npm WARN unmet dependency which is version undefined</pre><pre>npm ERR! peerinvalid The package node-inspector does not satisfy its siblings’ peerDependencies requirements!</pre><pre>npm ERR! peerinvalid Peer strong-cli@2.6.4 wants node-inspector@~0.7.0</pre><pre>npm ERR! System Windows_NT 6.1.7601</pre><pre>npm ERR! command “C:\\NodeJS\\\\node.exe” “C:\\NodeJS\\node_modules\\npm\\bin\\npm-cli.js” “install” “-g” “rimraf”</pre><pre>npm ERR! cwd C:\Users\Nikola\Desktop</pre><pre>npm ERR! node -v v0.10.36</pre><pre>npm ERR! npm -v 1.4.28</pre><pre>npm ERR! code EPEERINVALID</pre><pre>npm ERR!</pre><pre>npm ERR! Additional logging details can be found in:</pre><pre>npm ERR! C:\Users\Nikola\Desktop\npm-debug.log</pre><pre>npm ERR! not ok code 0</pre><p>Don’t panic :), just try to run <strong>rimraf</strong> instead, as noted above. In most cases, all will be okay and you’ll be able to use it without a problem. If not, head to the comments, and we’ll take care of it together! For those who don’t care much about comments, here’s the post in which I address this <a href="http://www.nikola-breznjak.com/blog/nodejs/npm-err-peerinvalid-the-package-node-inspector-does-not-satisfy-its-siblings-peerdependencies-requirements/">node-inspector issue</a>.</p><p><em>Originally published at </em><a href="http://www.nikola-breznjak.com/blog/nodejs/how-to-delete-node_modules-folder-on-windows-machine/"><em>www.nikola-breznjak.com</em></a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e7f13c1d4482" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>