Programming

jQuery: Identifying selectors, that represent the same DOM node.

If you have two jQuery selectors, that each represent a single DOM node, and you need to know whether it is the same DOM node, you can easily do this with: var selector1 = $(‘#some_item’); var selector2 = $(‘#some_item’); if (selector1[0] == selector2[0]) { // Do stuff if the selectors represent the same DOM node […]

1 Star2 Stars3 Stars4 Stars5 Stars (3 votes, average: 3.67 out of 5)
Loading...

A fact about JavaScript parseInt() that i wasn’t aware of, or why web projects sometimes break on August

JavaScript, is a really, REALLY cool and powerful language (especially if used correctly), and i intend to write about it a lot in the future. Bur right now, i want to mention a fact about JavaScript parseInt(), that i wasn’t aware of.

1 Star2 Stars3 Stars4 Stars5 Stars (1 votes, average: 4.00 out of 5)
Loading...

Getting gettext to work in Apache on windows

Gnu gettext is a widely used translation system, used to translate software projects and make them available in different languages. Many big web projects use it, like WordPress for example. It works well and is rather easy to use, for both programmers and translators (except for the fact that you need to restart your http […]

1 Star2 Stars3 Stars4 Stars5 Stars (5 votes, average: 3.00 out of 5)
Loading...
Wamp: installing both PHP 4 and 5 and how to switch them back and forth

Wamp: installing both PHP 4 and 5 and how to switch them back and forth

This post will be for Wamp server users. I will explain, how to have both PHP 4 and 5 installed, and switch them at any time. Wamp server is a brilliant tool for web developers (sadly it is Windows-only). It takes care of installing the big 3 (so you don’t have to do it manually): […]

1 Star2 Stars3 Stars4 Stars5 Stars (3 votes, average: 5.00 out of 5)
Loading...

MySQL: best practices

This post will contain several tips, for working with MySQL: how to import data to an empty MySQL database faster and also how to fetch data from queries in ways, that are likely to produce less errors.

1 Star2 Stars3 Stars4 Stars5 Stars (1 votes, average: 1.00 out of 5)
Loading...

Asynchronous http GET requests with PHP

I’ve stumbled upon a problem recently – how do you execute slow blocks of code, without locking your script? The simple answer is – you can’t. At least, not with PHP. In languages like Java or C, where you can use threads (multiple program code blocks, running asynchronously (at the same time)), this is possible […]

1 Star2 Stars3 Stars4 Stars5 Stars (2 votes, average: 4.50 out of 5)
Loading...