Diapo | a free jQuery slideshow Hi there. First of all excuse me for my bad english, second excuse me if you will find some bugs in Diapo slideshow. Diapo slideshow is an open source project. You can suggest changes or improvements if you want. Diapo slideshow is tested on new browsers, but I tried to make it compatible with the old versions of Internet Explorer too (8 and 7). Diapo slideshow requires jQuery 1.4+ and other jQuery plugins are necessary if you want to use some functionalities: jQuery Easing ( jQuery HoverIntent ( jQuery Mobile ( but not all the plugins). Diapo slideshow is the first jQuery plugin I develop from scratch and I distribute for free, so please be lenient
Introduction au SDK Android Afin de pouvoir compiler les projets du SDK Android, il est nécessaire d'avoir l'outil Ant (version 1.6.5 ou plus pour Linux et Mac, version 1.7 ou plus pour Windows) ou l'IDE Eclipse (version 3.2, 3.3 plus le plugin ADT) installé sur votre système. Pour commencer, il est nécessaire de créer un projet Android. Pour cela il suffit d'utiliser le script activityCreator (activityCreator.py pour Linux/Mac, activityCreator.bat pour Windows) fournit par le SDK auquel ont indique le nom du projet (via l'option --out) ainsi que sa classe principale. activityCreator.py --out HelloWorld com.developpez.android.HelloWorld Un répertoire portant le nom du projet (ici HelloWorld) est alors créé. AndroidManifest.xml : Le fichier manifest de l'application. build.xml : Un fichier xml pour compiler avec Ant. res : Le répertoire des ressources. src : Le répertoire des sources. src/com/developpez/android/HelloWorld.java : La classe HelloWorld. Voici le fichier HelloWorld.java généré : HelloWorld.java Sélectionnez
PHP Optimization Tips | ProgTuts This tutorial will explain many small techniques which will, hopefully, help optimize your php scripts. I considered myself a bit of a PHP pro until I started researching some of this stuff and realized that there is a whole realm of information out there about optimizing php that I didn’t know about. I hope you will be as surprised as I was about some of the things you might learn from this article. Output of Data So first off lets start with outputting data to the user. echo is faster than print (cite) When outputting strings: Single quotes (’) with concatenation is faster than putting your variables inside a double quote (”) string. Or even better: Use echo’s multiple parameters instead of string concatenation. Loops and Counting Here are some ways to make your loops and counting a bit more efficient. Use pre-calculations and set the maximum value for your for-loops before and not in the loop. When checking the length of strings: Use isset where possible in replace of strlen. And Other Tips
jQuery Timelinr Dando vida al tiempo / Giving life to time Selecciona tu idioma / Select your language: This simple plugin helps you to give more life to the boring timelines. Supports horizontal and vertical layouts, and you can specify parameters for most attributes: speed, transparency, etc. Last stable version: 0.9.6 Configuration: Include the jQuery library and this plugin: Inicialize-it with the default parameters: $(function(){ $().timelinr();}); Or configure it as preferred: HTML markup must be as follows: <div id="timeline"><ul id="dates"><li><a href="#">date1</a></li><li><a href="#">date2</a></li></ul><ul id="issues"><li id="date1"><p>Lorem ipsum. Icon designed by Sebastián Cortés Changelog: Este sencillo plugin ayuda a que le des más vida y estilo a las aburridas líneas de tiempo. Última versión estable: 0.9.6 Configuración: Incluye la librería jQuery y luego este plugin: Inicialízalo con los parámetros por defecto: O customízalos: El marcado HTML debe ser de la siguiente forma: Cambios: Demo Horizontal
Object Oriented PHP Tutorial for Beginners - KillerPHP.com Preamble The hardest thing to learn (and teach btw,) in object oriented PHP is the basics. But once you understand them, the rest will come much, much easier. But don't be discouraged! You just found the easiest to understand tutorial out there on OOP and PHP. … Or so I've been told. About This Tutorial This tutorial is designed to teach total beginners object oriented PHP. This is not a long-winded theoretical blathering that you see all too often; instead, we actually start writing OO code very quickly. So before you begin, get out your favorite PHP code editor and be ready to write and run some object oriented PHP code. PS: scroll to the bottom of the page for the supporting videos. Thanks for reading,Stefan Mischook Introduction With the release of php5 in 2004, php programmers finally had the power to code with the 'big boys'. In this tutorial, you will be guided (step-by-step) through the process of building and working with objects using php's built-in OOP capabilities. OOP Videos
40+ Useful and Fresh jQuery Plugins Nov 29 2011 Plugins are there to assist you and let you perform the desired action in a more convenient and speedy manner. Therefore, today we decided to come up with an exciting and interesting collection of 40+ fresh and cool jQuery plugins for our reader’s convenience. This compilation is targeted at the designers and developers who want to create amazingly interactive websites that are attractive and accessible to the broadest assortment of browsers. With these plugins, the overall experience that users come away from your sites with will be both thrilling and enjoyable. The Plugins MotionCAPTCHA ( Demo | Download ) MotionCAPTCHA is a jQuery CAPTCHA plugin. Smart Validate ( Demo | Download ) It is a jQuery credit card validation plugin that makes credit card format validation an easy chore. Multi Node Range Data Slider jQ Slider ( Demo | Download ) JQ Slider is a totally customizable plugin taking in style and formatting, and selection units. ZOOMIFY, EXPLORE YOR IMAGES!
Easy Ways to Sort Arrays in PHP Tutorial by Matt Doyle | Level: Beginner | Published on 16 August 2010 Categories: Learn how to sort arrays quickly and simply in PHP. This tutorial shows you how to sort indexed, associative and multidimensional arrays using some handy PHP array functions. As I mentioned in my earlier article, Creating Arrays in PHP, arrays are very useful if you need to store and manipulate a large amount of data in one go. PHP gives you a large number of sorting functions that can sort arrays using many different criteria. We won't try to cover every single PHP array-sorting function in this tutorial. Let's get started! Sorting indexed arrays: sort() and rsort() The sort() function sorts the values in an indexed array in ascending order. $myArray = array( 1, 2, 'a', 'b', 'A', 'B' ); sort( $myArray ); // Displays "A B a b 1 2" foreach ( $myArray as $val ) echo "$val "; rsort() works like sort(), except it sorts in descending order: Sorting associative arrays: asort() and arsort() Here are some examples:
HTML5 File Uploads with jQuery Martin Angelov Today we will be developing a small web application called Upload Center, that will allow people to upload photos from their computers by dragging and dropping them onto the browser window, possible with the new HTML5 APIs exposed by modern browsers. The photos will have a preview and a progress bar, all of which controlled on the client side. What are HTML5 File Uploads? Uploading files using HTML5 is actually a combination of three technologies – the new File Reader API, the also new Drag & Drop API, and the good ol’ AJAX (with the addition of binary data transfer). The user drops one or more files from their file system to the browser window by dragging. Sounds complicated? Currently file uploads work only in Firefox and Chrome, but upcoming major versions of the other browsers also include support for it. So lets get started! The HTML The markup of our Upload Center couldn’t be simpler. index.html <! The only div that the Filedrop interacts with, is #dropbox. The PHP Code
15 PHP regular expressions for web developers Getting started with regular expressions For many beginners, regular expressions seems to be hard to learn and use. In fact, they’re far less hard than you may think. Before we dive deep inside regexp with useful and reusable codes, let’s quickly see the basics: Regular expressions syntax PHP regular expression functions Validate domain name Verify if a string is a valid domain name. $url = " if (preg_match('/^(http|https|ftp)://([A-Z0-9][A-Z0-9_-]*(? » Source Enlight a word from a text This very useful regular expression find a specific word in a text, and enlight it. $text = "Sample sentence from KomunitasWeb, regex has become popular in web programming. Enlight search results in your WordPress blog As I just said that the previous code snippet could be very handy on search results, here is a great way to implement it on a WordPress blog. echo $title; Now, just before the modified line, add this code: <? Save the search.php file and open style.css. » Source » Source 'A(? <?
Créer un .htaccess Dans un premier temps, nous allons créer un fichier texte (ayant l'extension .txt) qui sera renommé par la suite, à la fin du tuto. Ouvrez un éditeur de texte comme Bloc-notes (sous Windows), ou Notepad++ (se reporter à la création de site internet, rédigée par M@teo) et entrez ces quelques lignes : PerlSetVar AuthFile dossier/sous_dossier/htpasswd.txt AuthName "Acces Restreint" AuthType Basic require valid-user On remarque que le code possède quatre lignes. Oula !! Pour modifier la ligne PerlSetVar AuthFile, vous devez saisir à la suite le nom du dossier à protéger. Exemple n°1 Je veux créer une partie de mon site, nommée admin et située à la racine, où seulement les administrateurs pourront accéder. Je souhaite donc que le répertoire protégé soit le suivant : A la ligne de mon code commençant par PerlSetVar AuthFile, je saisis admin/htpasswd.txt, ce qui me donne ce code : PerlSetVar AuthFile admin/htpasswd.txt Exemple n°2
jQuery API