Using Jattach to get dumps from a JVM running inside Docker with JRE base image

Using a JDK as the runtime image is simply a waste of resources, but it makes it a bit more difficult to get memory- and thread dumps out of the JVM at runtime. Jattach to the rescue. Let’s imagine a situation where we have an image running your Java application using the JRE and you More…

 

I published a JS library for Nano cryptocurrency

I started developing a mobile wallet for Nano some time back as a side project and I couldn’t find a Javascript library that could help me create Nano wallets or sign blocks locally on the user’s device so the users’ keys won’t get compromised by sending to the back-end server. So I started learning about More…

 

Eager Javascript ES6 generator functions

Today I finally got a viable use case for the ES6 generator functions. I needed to create a service which will generate cryptographic signatures asynchronously on the background. The generation might take over ten seconds depending on the device it’s ran on. It would also have to start generating me a new signature right after More…

 

Internet Explorer’s problems with asynchronous calls and their fixes

Today I stumbled again – as every single developer eventually will – with Internet Explorer’s brilliant and different way of handling things. I implemented a socket listener thread to a port on the server side and a simple HTTP GET request from the client side. The main objective here was to make the server do More…

 

Installing Lets Encrypt’s SSL certificate to mail server with Postfix and Dovecot

Hi! I’ve been getting notifications from StartSSL for a month saying that my SSL certificate is expiring. I decided to try out the new Let’s Encrypt free SSL. In this post I will be installing the certificate on a mail server. To start off, you will need Git on your server apt-get install git Next up, More…

 

How to build a strong profile and get found on LinkedIn

Over the past year I’ve been actively looking for new opportunities and sent dozens of applications to several companies, many times I’ve got through to the interview and maybe even to a second one, but still didn’t get the position. Today, professionals are being headhunted online, mostly through LinkedIn. If you are a professional in More…

 

Installing Varnish cache on Ubuntu 14.04 and measuring performance with ApacheBench

Today I’m doing an assignment for my school’s linux servers class held by Tero Karvinen. The assignment is to install Varnish cache and edit the settings of it, to measure site speed with ‘ab’ (ApacheBench) included in ‘apache2-utils’ package and to analyze and speed up a site with Firebug. I will do this assignment with More…

 

Installing WordPress along with plugins, themes and images

In this post, I’m doing an assignment for the linux server course held by Tero Karvinen. I’m going to install wordpress to my virtual private server on Amazon EC2, which I created earlier. I will be using a MacBook Pro (late 2013) as a terminal and the Amazon EC2 virtual server as the server. The server More…

 

Setting up a free virtual server with Amazon EC2 and a .tk domain

In this post I’m doing an assignment for Tero Karvinen’s course on linux servers. The assignment is to create a name based virtual server with a domain pointing to it. I decided to use Amazon’s EC2, since it has a free tier and I have already used it once before. Setting up Once I already More…

 

An extremely simple commented PDO example

I made a fast and extremely simple example of PHP’s own PDO class to handle a MySQL database for my class example. We will need a database table called ‘task’ in a MySQL server running on localhost for this to work. The table contains two fields: id INT(6) NOT NULL AUTO_INCREMENT PRIMARY KEY name VARCHAR(64) More…