Intro: Phaser course

It’s official! I’m starting to learn Phaser and I’ll share any knowledge that I’ll get with you, for free! I’ve created my first project in this awesome Javascript framework and it works 🙂 I’ve decided to create this course because gamedev knowledge is very scattered… Initially I’ve created a Frankenstein’s monster from many parts gathered around the net. Now with this fresh experience I want to become a real HTML5 game developer so stay tuned for more.

Simply follow category Phaser on my blog for updates.

Cryptic error 0x1 in Windows™ Task Scheduler

In case you ever wondered why your task returns 0x1 in Last Run Result instead of 0x0. Check if your task is trying to create any files, if it does, you must tick “Run with highest privileges” in General tab of your task properties. I’ve spent some precious time to uncover that because I’m not a native Winblows administrator 🙂

How to list all PostgreSQL databases and their sizes in MB

You must provide proper database name and user:


File: gistfile1.txt
-------------------

psql -c "SELECT pg_database.datname, pg_database_size(pg_database.datname), pg_size_pretty(pg_database_size(pg_database.datname)) FROM pg_database ORDER BY pg_database_size DESC;" -d  

How to restore or update Arduino Mega 2560 firmware?

This tutorial is for Linux users. It will cover step by step how to flash an Arduino with miscellaneous firmwares (it’s for absolute beginners, you should know Linux quite good to perform this). I use cheap cloned board called Mega Keyes model Mega 2560 R3 with Atmega 2560 16AU. You can also use this method to unbrick your faulty Arduino.

Continue reading How to restore or update Arduino Mega 2560 firmware?

How to find Raspberry Pi using MAC address

When you want to find your headless but networked Raspberry Pi and you’re lazy like me use nmap:

sudo nmap -sP 192.168.1.0/24 | awk '/^Nmap/{ip=$NF}/B8:27:EB/{print ip}'

Mask /24 means that addresses from 192.168.1.0 to 192.168.1.254 will be searched. You can extend that to /16 if you don’t know subnet of your device.

How to obscure your WordPress version and troll the attacker a little…

One of my company’s WordPress installations has been hacked by Turkish hackers recently. After quick investigation I’ve found that script version was little bit old (not a very popular website, mea culpa, not updated very often). In case you didn’t know, WordPress is bundled with readme file by default. I’ve found that malicious scripts or people use that to determine your version’s branch. So I’ve decided to Troll them a little bit… Continue reading How to obscure your WordPress version and troll the attacker a little…