All Books 93 Stack Overflow 82 Daily Thoughts 78 Ionic 61 Miscellaneou$ 60 Quick tips 43 CodeProject 36 NodeJS 27 Programming 22 JavaScript 18

Altered Carbon – Richard Morgan

My favourite quotes from the book Altered Carbon by Richard Morgan: Somebody wants to kill me, and that’s not a nice feeling. People envy me, people hate me. That’s…

MEAN.io VS MEAN.js and deploying the latter on DigitalOcean

What are they? MEAN.(io + js) are both full-stack JavaScript frameworks, and they are both comprised of these technologies: MongoDB – leading NoSQL database, empowering businesses to be more agile and…

The Science of Getting Rich – Wallace Wattles

My favourite quotes from the book The Science of Getting Rich by Wallace Wattles: One is all and all is one. One substance manifests itself as the seeming many…

How to build a font viewer application in WPF without writing any C# code

TL;DR You can download from Github the demo application (zipped exe) or the whole source code project (Visual Studio project solution), or continue reading to see how it…

Enable continuous scrolling by default in Adobe Reader

Whenever I opened some pdf file and scrolled with the mouse the scrolling was per one page. Sure, you can change this by going to View -> Page Display…

How to make a print screen on a Mac keyboard on the Windows machine

This has been haunting me for some time now – there’s just no Print Screen key on this keyboard which works on a Windows machine. If you take a…

Maximizing WPF Window to second monitor

So, if you have this in the code behind: if (System.Windows.Forms.Screen.AllScreens.Length >= Config.ScreenNumber) { System.Drawing.Rectangle screenBounds = System.Windows.Forms.Screen.AllScreens[Config.ScreenNumber – 1].Bounds; this.Left = screenBounds.Left; this.Top = screenBounds.Top; } And…

Proper singleton implementation in C#

Taken from: http://msdn.microsoft.com/en-us/library/ff650316.aspx public class Singleton { private static Singleton instance; private Singleton() {} public static Singleton Instance { get { if (instance == null) { instance =…

Look up

Especially today, when you’re reading this post on your computer/laptop/mobile phone/tablet, this message may be one of the last wake up calls for us. I myself sit at…

How to use App.config in Visual Studio C# .NET

Add reference to System.Configuration : and include it using the using statement: using System.Configuration; Edit App.config so that you add your settings in the appSettings  node in an add  element with key  and value  parameters.…

Installing CasperJS on RHEL Linux distribution

First you have to install NodeJS. You can do that via package manager for your distribution. In my case (RHEL) it is easily done with: sudo yum install nodejs…

The Art of War – Sun Tzu

My favourite quotes from the book The Art of War by Sun Tzu: Hold out baits to entice the enemy. Faint disorder, and crush him. If it is to…

Speed reading and learning

Since I like to read (like, a lot), I realized I should test my reading speed and as it turned out I’m at an average person reading speed…

A Short History of Nearly Everything – Bill Bryson

My favourite quotes from the book A Short History of Nearly Everything by Bill Bryson: Once in a great while, and few times in history, a human mind produces…

Simple official Spritz API usage

TL;DR: See it in action here or here, and official site here. Spritz – change the way people read and make communication faster, easier, and more effective. So, there has…

The Cuckoo’s Calling – Robert Galbraith

My favourite quotes from the book The Cuckoo’s Calling by Robert Galbraith aka J.K.Rowling: There were other routes to woman’s intimacy than to admire her figure in tight dress. And…

POST JSON Data With PHP cURL wrapper class

PHP biceps cURL 🙂 Following is the PHP cURL wrapper class which I use to make GET and POST requests. The examples are below. Disclamer:  be sure that…

How to use crontab in specific use cases

Here I will post non standard and ‘out of the ordinary’ crontab settings. A note to myself (ANTM): crontab file in Centos is located in /etc/crontab. Lets start: Run…

The Woodcutter – Reginald Hill

My favourite quotes from the book The Woodcutter by Reginald Hill: He was certainly very good to talk to, meaning of course he was a good listener. The written…

Make a Flappy Bird clone with Phaser

Flappy Bird – no info as anyone who may be reading this knows about it 😉 Phaser – open source desktop and mobile HTML5 game framework supporting both JavaScript…

The Antidote – Oliver Burkeman

My favourite quotes from the book The Antidote by Oliver Burkeman: Inspiration is for amateurs, the rest of us just show up and get to work. In the effort…

Deploying MEAN.io to Nodejitsu from Windows machine

Disclaimer: I’m in no way affiliated with Nodejitsu or MEAN.io. I’m just documenting my experience with them – problems (and solutions) I’ve faced while trying these new technologies…

Deploying MongoDB and Node.js application on OpenShift

This is a post about getting started with OpenShift Online on a Windows machine by deploying a MongoDB, Node.js and RockMongo application for free. The reason why this…

Console 2 arrow keys not working

All of a sudden my arrow keys stopped working – up  and down keys scrolled the screen up and down, while left and right  had no effect. I found the solution here and basically all that you…

Simple PHP XML parser using SimpleXML

Say you have a simple XML file books.xml  that looks like this: <?xml version=”1.0″ encoding=”UTF-8″?> <books> <book> <author> <name>Nikola</name> <surname>Brežnjak</surname> </author> <title>Some awesome book title</title> <year>2014</year> </book> <book> <author>…

Random English quotes from notebook #1

Every time I read a book I write quotes to my notebook, but also when I come across some good random quote I put it in as well.…

Getting started with Nodejitsu on Windows by deploying a MEN framework

Disclaimer: I’m in no way affiliated with Nodejitsu or any of the frameworks that I listed below in the post. I’m just documenting my experience with them –…

Customize Console 2 on Windows machine

If you’re using Console 2, and I don’t know why you wouldn’t want to btw, you probably wanted to customize it. Here is an excellent post by Scott…

Git push origin master could not read username for http://github.com

If you clone your project on another computer and try to do: git push origin master and you get and error like: fatal: could not read Username for…

The Wise Man’s Fear – Patrick Rothfuss

My favorite quotes from the book The Wise Man’s Fear by Patrick Rothfuss: I don’t care what they talk, I care what they say. There was an art to…

Can’t install gulp.js or update npm past version 1.2.32

My problem started with not being able to install gulp. I checked my npm version (npm –version ) and saw I have version 1.2.32 whilst the time of this…

Getting Started with Node.js on Heroku on a Windows machine

Heroku is a cloud platform as a service supporting several programming languages which lets app developers spend their time on their application code, not managing servers, deployment, ongoing…

How to use nodemon

Nodemon is a utility that will monitor for any changes in your source and automatically restart your server. Perfect for development. Install it using npm. npm install -g…

The name of the wind – Patrick Rothfuss

My favourite quotes and notes from the book The name of the wind by Patrick Rothfuss: Though this genre is not my favorite, this book made me reconsider, as…

How to use JSHint in Sublime Text on Windows machine

Since this is in the “quick tips” category I won’t go into what Sublime Text is, or why using JSHint is recommended, and that for it’s installation you…

How to get started with Node.js

Recently I started using CodeSchool to explore new languages/technologies in the web world, and I will post every Tuesday something new that I learn. So far, all I have…

The Little Prince – Antoine de Saint-Exupéry

Since I very much like to read non technical books also, and I have a habit of collecting quotes in my “quotes book”, I’m about to start and…

Using CasperJS on Webfaction to automatically send emails with attached images via Gmail

Why? Recently I had to make a script which runs once per week and gathers images of an admin interface (login required) and sends it to its manager…

Simple caching with Cache_Lite without having to install it through PEAR

Sooner or later everyone has to make use of some kind of caching of their content. Below is the simplest possible code demonstration on how to implement caching…

Using prepared statements in PHP with MySqli

So, as most of you know PHP 5.5.x has deprecated the original MySQL extension, and instead we should be using  MySQLi or PDO_MySQL extensions. Here I will show you how to use…

Building a really simple PHP templating engine

Recently I had to make use of templates in PHP, and as a lot of people on StackOverflow ([1], [2]) suggested “you don’t need another templating engine like…

Carcassonne scoring board application

tl;dr: The link to the application and the link to source code on GitHub. Welcome First of all – hi all!, this is my first post so go…