Configure Mailgun on self hosted Ghost blog

Wojtek on mailgun, ghost, email · · Comments · 1 min read

Mailgun is a fantastic, free service which allows you to send, receive and track emails effortlessly. It's dead easy to integrate with your self hosted Ghost blog. Mailgun configuration Log in to your Mailgun account. Go to "Domains" section. Click on "Add New Domain" and add a subdomain you want to send emails from. Follow on... Read more »

Update Raspbian on Raspberry Pi

Wojtek on Raspberry Pi, Raspbian, update · · Comments · 1 min read

It's highly recommended to update your Raspbian as often as possible to make sure you always have the latest security patches and updates. Manual update Open Pi's console and update package list by running the following command: sudo apt update Then upgrade your packages to their latest versions with below command: sudo apt full-upgrade This should keep you up to... Read more »

Create NodeJS command line script or app

Wojtek on nodejs, shell, JavaScript, script · · Comments · 1 min read

I wanted to write a simple script that would convert multiple files from one encoding to another. I didn't want anything big or running in the browser. Command line script seemed like the right approach. Coming from a web developer background my first thought was a script written in PHP and converted to a command line app. Just saying that... Read more »

Add reCAPTCHA to NodeJS and ExpressJS app with AJAX form

Wojtek on reCAPTCHA, nodejs, expressjs, Google · · Comments · 3 min read

Google's reCAPTCHA is great for getting rid of those pesky bots spamming your contact forms. Implementing reCAPTCHA on your site is very easy, albeit somewhat confusing if you try to follow official documentation. Below example assumes you're using NodeJS with ExpressJS for back-end and Pug (formerly Jade) templating engine on the front-end. General principle is the same regardless of languages... Read more »

Enable VNC (virtual desktop) on Raspberry Pi

Wojtek on Raspberry Pi, VNC · · Comments · 1 min read

Featured image

Using command line If command line is not your cup of tea and you need graphical interface, Raspbian has just the thing for you. ssh to your Raspberry, (follow my guide here, if you need to set up ssh access as well), Run commandsudo raspi-config Select Interfacing Options, Select VNC, Select Yes. VNC should be active now. You can use... Read more »

Set up WiFi on Raspberry Pi via command line

Wojtek on Raspberry Pi, ssh, WiFi · · Comments · 1 min read

Featured image

Below method is useful if you don't have access to Raspbian's graphical interface. You don't need to install any additional software, everything is available out of the box and can be done in a few simple steps: ssh to your Raspberry, (follow my guide here, if you need to set up ssh access as well), Run commandsudo raspi-config Select Network... Read more »

Custom error pages in Kohana v3.x

Wojtek on 404, 500, custom, error, exception, kohana, PHP · · Comments · 2 min read

Kohana framework displays really nice and descriptive error messages, for a development environment that is. For production, obviously no error reports should be shown to the user. Instead we should display a pretty "404 Not Found" page, or some other error page. Creating those custom error pages in Kohana v3.x can be a real pain in the... Read more »

How to check jQuery version on a website?

Wojtek on jQuery, version · · Comments · 1 min read

A quick tip how to find out which version of jQuery is loaded on your site. It can come in handy, for example when you’re developing a script for an existing site and you need to find out which version of jQuery has been used. Of course, you can always just look in the HTML code, but this method... Read more »