Programming

Firefox OS: Start To Develop Your First App

Nearly two years ago, Mozilla announced "Boot to Gecko" (a.k.a. B2G), a project whose primary goal was to provide a standalone web-centric operating system in which the preferred (and in fact, only) platform for application development is the HTML5 stack. In essence, this operating system would have filled a gap…

Predis: PHP Library for REDIS

Redis is an open source data structure server with an in-memory dataset that does much more than simple key/value storage thanks to its built-in data types. It was started in 2009 by Salvatore Sanfilippo and because of its popularity…

PHP: Read, Write And Compress files with Zlib Extension

The zlib extension contains versions of many file-access functions, such asfopen(), fread(), and fwrite() (called gzopen(), gzread(), gzwrite(), etc.) that transparently compress data when writing and uncompress data when reading. The compression algorithm that zlib uses is compatible with the gzip and gunzip utilities. Use PHP's zlib extension to…

Dinamically Get Social Media Buttons After Page Loading

While working on the new theme for this site, we realized that the various social media buttons We use were making the entire page load considerably slower. As soon as the browser hit that region of the page (the end of each post), everything would stop until those fat buttons…

Jquery: Get URL,Parameters and HashTag

While dealing with current URL, many time you want to know what is the current URL path, What are the parameters, and what is the hash tag on URL. Hash tag is pretty important, if you are implementing tab structure using HTML and JQuery. Now, both JavaScript and JQuery…

Get Disqus Comments With Php

This script will create a configurable widget that will display the latest Disqus comments from your site.   Note: You need to signup with Disqus and register a new application in order to use this script. Using the Script This script should work on any server running PHP…

14 HTML5 Audio and Video Players

Using a custom skinned jQuery audio/video player in your website is without any doubt aesthetically pleasing then simply embedding a video from a third party website on your website. With this in mind we wanted to explore 14 Video & Audio HTML5 Players. 1. WIDGETKIT MEDIA PLAYER 2. MEDIAELEMENT.JS 3. SOUNDMANAGER 2 4. SPEAKKER 5. JPLAYER 6.…

PHP Recursive Backup of Directories

This script can be used to make backup of entire directories and subdirectories in our servers, you can use the script in conjunction with cronjobs //specify the source dir and target dir $src = $_SERVER['DOCUMENT_ROOT'].'/test/backup/dir1'; $dst = $_SERVER['DOCUMENT_ROOT'].'/test/backup/dir2'; function recurse_copy($src,$dst) { $dir = opendir($src); @mkdir($dst); …

How to protect Javascript code from copying by Ajax method

Today, in this mini tutorial we will introduce a simple method to protect javascript code from copying. IMPORTANT: We are not sure this method will protect javascript 100% but it will be better than do nothing ;-D As we said, this method is very simple: basically we have to combine AJAX method…

The HTML5 Full-Screen API

How to Launch the Fullscreen Mode The fullscreen API's requestFullScreen method is still prefixed in some browsers, so we'll need to do a bit ofsearching to find it: // Find the right method, call on correct elementfunction launchFullScreen(element) { if(element.requestFullScreen) { element.requestFullScreen();…

Programming

The HTML5 Quick Learning Guide

HTML5 syntax is compatible with both HTML4 and XHTML1. Want to close empty elements with a slash? Go for it.…

How to Create a Password Strength Indicator With jQuery

If you are building a system that allows the users to login in, then it is always a good idea…

Improving Page Performance with HTML5 Prefetch

As Wikipedia explains: Link prefetching is a proprietary syntax to give web browsers a hint about documents that it should pre-fetch…

21 PHP Libraries You Should Know About

The aim of the Standard PHP Library-or SPL is to provide a standard library of interfaces which allows developers to…

Servers

How to Set up a Fully Functional Mail Server on Ubuntu 16.04 with iRedMail

Setting up your own mail server from scratch on Linux is complex and tedious, until you meet iRedMail. This tutorial…

Install Java in Ubuntu 16.04

Java and the JVM (Java's virtual machine) are widely used and required for many kinds of software. This article will…

How to install and setup Varnish in Ubuntu 16.04

One of the problems with running a site with many users is that the constant requests for dynamic content can…

Install HHVM + Nginx on Ubuntu 14.04

  The LEMHH software stack is a group of software that can be used to serve dynamic web pages and web…

We use our own cookies and third-party cookies to improve our services, show products based on your preferences, analyse the browsing habits of our users, and enable interaction with social networks. Continuing to browse our sites implies full acceptance of their use. You can change your cookie setting or get more information here: Cookies policy .