Category: Web Development

KuDr42X_ITXghJhSInDZekNEF0jLt3NeVxtRye3tqco 2

Getting started with Docker (Part 1)

If you are like me then your PC is probably based on Windows. Like or not, Windows is the most popular operating system, it has a very large ecosystem of applications and games and…

self vs this 0

Difference between self and $this

The difference between self and $this is kinda thin but can be easily illustrated with the proper example. Basically self is used to reference the current class name within a class, where as $this refers to the current object instance.

Mysqlx250 3

MySql query to dynamically convert rows to columns

In some cases pivoting a table is not desired, instead we need to convert rows to columns and append them to the result set without “grouping” them against a specific value. In some cases we simply need to append a column, or columns, for each row and name the new columns something arbitrary like data1, data2, data3, etc.

AJAX PHP progress no polling 12

How to use AJAX to show progress of a PHP script without polling

A lot of times we want to provide some sort of feedback to the user, while executing a task that usually takes a lot of time in the server. However it is not always desirable to utilize a technique like polling. Instead we can use either one of these two methods in order to update the DOM and let the user know what is going on.

Untitled-1 2

4+1 CSS3 animation libraries!

The main purpose of CSS is to separate content from presentation. Therefore having a bunch of JavaScript execute complex code in order to animate an on screen element is less than ideal. Plus animations through JavaScript occasionally need non semantic HTML to be inserted in order to make everything happen. This is exactly why CSS3 animations are awesome.

CSS Measuremments 1

When to use each CSS Measurement

One of the most fundamentals things in CSS that is often overlooked but every web designer should know about, is when to use each CSS Measurement. The most popular CSS Measurement Units are px (pixels), % (percentages), em (relative to document font size) and pt (points). In this article we are going to review each unit and determine when they should be used

laravel phpstorm

Laravel artisan serve in PhpStorm

I recently started looking into the Laravel framework and I have to admit that it is leaps and bounds ahead from my current favorite framework, Codeigniter. It is so much more elegant in every aspect and takes full advantage of several new PHP features. This article is about the built-in web server which is utilized through the artisan serve command tool and how to integrate it with PhpStorm

codelobster 1

CodeLobster PHP Edition Review

I couple of months ago I was asked to checkout an IDE for PHP development called CodeLobster. It looked very promising and came with a lot of features. I have been using the professional free to try version for some time now and I have to say that overall it’s pretty good.

u8MFyyo1-300x225 1

Cross browser background-size:100%

Let’s assume that we design a website and we want to set the background to be similar to the image on the left. This can be achieved with a couple of ways: We can either use a pure CSS radial gradient or we can use an image. The CSS method is in my opinion superior but in some case using an image is prefferable

Ress 1

Responsive images using PHP

Responsive design is great! By now every web developer should know this. However there is one problem with this technique and that is none other than image serving. Having the mobile device shrink the images in the browser is both a waste of bandwidth and CPU. The good news is that we can use PHP in order to serve adaptive images and implement what is known as RESS (responsive server side)