Preslav's Thoughts and Ramblings

Tips

  • 16 April 2017

    Fixing the Intonation of Your Electric Guitar

    Unknown to many hobby and amateur / semi-professional guitar players, fixing the intonation of an electric guitar is perhaps the second popular reason why your guitar sounds out of tune, besides tuning itself. The Problem Even though you might have tuned your guitar to perfection, playing chords especially up the fretboard...

  • 26 March 2017

    Debugging Network Calls in React Native Using the Chrome Debugger

    TL;DR! Just give me the code In your index.js file (or your platform-specific index file for that matter), simply add the following line to the top, directly after the import statements: XMLHttpRequest = GLOBAL.originalXMLHttpRequest ? GLOBAL.originalXMLHttpRequest : GLOBAL.XMLHttpRequest; You will also need a Chrome plugin that overrides CORS....

  • 26 February 2017

    Dealing with Python-Version Exceptions When Using node-gyp

    I was trying to install a JavaScript library called numjs (basically, a JS equivalent to numpy), when I got the following exception: # Executing the following command... $ npm install numjs --save # resulted in ... gyp ERR! UNCAUGHT EXCEPTION gyp ERR! stack Error: spawn EACCES gyp ERR! stack at exports._errnoException (util.js:...

  • 24 February 2017

    The Simple Advice to Mastering Reading, Running, and Just About Anything in Life

    I am a voracious reader, and by reading, I mean, reading real books. Lots of books. A week ago, I ended up discussing the benefits of reading with some guys I know, trying to convince them to pack more books per year. By saying this, by no means do I...

  • 03 February 2017

    Securing Your ElasticSearch Instances

    And keeping all the fun Often, we choose convenience over security. Many modern tools such as MongoDB and ElasticSearch, have grown in popularity, partly because of their easy-to-set-up-and-tinker-with nature. Just spin off an instance, point your browser to the right URL and you're ready to start sending queries. Unfortunately, one...