Creating API Request service for Ionic 2

In the near past, when I just started to learn Ionic and Angular I had a big headache because I needed quickly to create mobile app with technologies that I didn't know well.

One of the problem was to do simple API requests to back-end server. There was a lot of solutions like creating custom function or wrappers but at that moment (November 2016) no one tried simply to extend Angular HTTP class and so here we are - today I want to share my solution to this problem.

Read More / Comment

How to handle MySQL Date and Time formats in Sequelize?

I’ve been playing with Sequelize for a while and one thing that I really didn't like about it is that how it deals with MySQL dates. It requires that fields of Date or Time types would be defined as default JavaScript date objects. This in my opinion causes some unnecessary problems as you need to do conversations between date strings in different formats...

Read More / Comment

Making HTTP requests in Node.JS without any dependencies using Promise

Quite often programming on Node.JS I have to perform various types of HTTP requests. To do this, I simply use the library Request, but sometimes there are situations when you need to perform a query in a certain way and it becomes a problem. As a result, I decided to write a small module that solves this problem.

Read More / Comment

A Fix For Slow Sendmail [Linux, PHP]

Recently I have noticed that one of my PHP scripts that was sending emails via the mail() function were hanging for roughly one minute while waiting for Sendmail to work.

The problem was that Sendmail requires that the result of "hostname" be a fully qualified domain name to start cleanly.

To get the domain name type hostname command and then copy it to /etc/hosts like this: kiril-macbook.localdomain kiril-macbook localdev localhost

Read More / Comment

Socket.IO client authentication using Laravel 5 session data

Recently I had a need for rapid notifications of the user about the specific changes in the MySQL database. So I decided to use Socket.IO which I already used before in similar situations. The only problem was that I had to solve how to check if the connected Socket.IO client was authenticated in my Laravel 5 application and get its id to show specific data

Complete code example on GitHub

Read More / Comment

Fixing some column editing problems in Laravel Migrations

I faced this problems while I was rewriting file section of my blog. At first, I meant to use files only for blog, but recently I decided to create portfolio section which will also use uploaded files so the easiest way to do this was to add type column and map with other tables by id.

Read More / Comment

Hello, %username%!

So, the blog is open! Yay .

This is my first experience of creating a multilingual blog (swithc icon is in the heder), before that there were some attempts to create the it in Lithuanian and Russian.

The source code can be found at GitHub. Blog is currently in development, so in near future there will be a lot of new features.

Read More / Comment

Fork me on GitHub