background preloader

Documentation dev

Facebook Twitter

Un tutoriel pas à pas. Use KNACSS wisely ! A framework like KNACSS provides best practises, layout helpers and code snippets, but also some "visual classes" such as .left, .prs, .txtright, etc. When possible prefer "semantic classes"! Using properly a framework is not applying only visual classes.

Begin to give sense to the main elements and choose "visual" reusable classes only where it is necessary, for example for repetitive elements (patterns). KNACSS the benefits ? KNACSS is a minimalist, responsive and extensible CSS framework to start integrating HTML / CSS, designed by the webagency Alsacreations.fr and used daily in our productions. CSS "reset" common for good start, Brick positioning intuitive, and grids and gutters, Extensible and reusable namings for your projects, Compatible with all browsers (including IE6 and IE7) Intended to be automatically Responsive, Consists of a lightweight CSS file to avoid unnecessary queries and loads.

Install There is nothing to install. Preprocessors (LESS, Sass) Exemple :

jQuery

Propel Query Reference - Propel. Propel's Query classes make it easy to write queries of any level of complexity in a simple and reusable way. Overview Propel proposes an object-oriented API for writing database queries. That means that you don't need to write any SQL code to interact with the database. Object orientation also facilitates code reuse and readability. Here is how to query the database for records in the book table ordered by the title column and published in the last month: <?

Php$books = BookQuery::create() ->filterByPublishedAt(array('min' => time() - 30 * 24 * 60 * 60)) ->orderByTitle() ->find(); The first thing to notice here is the fluid interface. Propel generates one filterByXXX() method for every column in the table. When a termination method like find() is called, Propel builds the SQL code and executes it. <? Propel uses the column name in conjunction with the schema to determine the column type. <? <? So Propel queries are a very powerful tool to write your queries in an object-oriented fashion.

<? <? Installer xhprof et xhprof gui sur Zend Server - ::franek:: Xhprof est un profiler de code PHP. C'est un concurrent de Xdebug développé par Facebook. Il a le gros avantage de permettre de visualiser l'évolution de la mémoire. A ma connaissance, Xdebug ne le permet pas. Il ne nécessite pas l'utilisation d'un logiciel tiers (type KCachegrind, non disponible sous Windows...argh...) et peut être installé sur un serveur de production sans, normalement, trop dégrader les performances.

Je vais ici vous décrire son installation sur Zend Server CE et l'installation de xhprof gui Si vous utilisez une installation de PHP moins exotique (genre une debian avec les dotdeb), son installation sera, à mon avis, simplifiée : apt-get install php5-xhprof Installation de xhprof On récupère les sources et on les décompresse : $ wget http: $ tar xvfz xhprof-0.9.2.tgz On compile : $ cd xhprof-0.9.2/extension $ /usr/local/zend/bin/phpize $ . On modifie la configuration de PHP pour lui indiquer de charger cette extension : $ sudo vi /usr/local/zend/etc/php.ini On ajoute : <?

<?

Git

Git User’s Manual. This chapter covers internal details of the Git implementation which probably only Git developers need to understand. All objects have a statically determined "type" which identifies the format of the object (i.e. how it is used, and how it can refer to other objects). There are currently four different object types: "blob", "tree", "commit", and "tag". Regardless of object type, all objects share the following characteristics: they are all deflated with zlib, and have a header that not only specifies their type, but also provides size information about the data in the object. It’s worth noting that the SHA-1 hash that is used to name the object is the hash of the original data plus this header, so sha1sum file does not match the object name for file (the earliest versions of Git hashed slightly differently but the conclusion is still the same).

The following is a short example that demonstrates how these hashes can be generated manually: $ echo "Hello world" >hello.txt What does this mean? S'informer sur Pyromaths, un générateur de fiches d’exercices. Jerome, le 26.05.10 Cet article est très nettement inspiré de cet article. La raison de ce changement de stratégie est la suivante : si un bug est découvert, il n’y a pas moyen de récupérer le code source corrigé sur le dépôt Git si de nouvelles fonctionnalités ont été ajoutées entre temps. De même, si le développeur 1 travaille sur un exercice 1 et le développeur 2 sur un exercice 2, il n’est pas possible de sortir une version ne contenant que l’exercice 1 si l’exercice 2 n’est pas fini. Git permet de gérer les branches. Cela est très efficace dans ce genre de situation. Voici comment il convient de procéder. La branche master Personne ne devrait travailler sur la branche master. La branche develop Cette branche contient les nouveautés abouties.

Créer une branche pour une nouvelle fonctionnalité Quand on commence à travailler sur une nouvelle fonctionnalité, on crée une branche pour celle-ci en local : git checkout -b aires-6e develop Les branches release créer une branche release Conclusion. Xhprof. Team Fusion » Equipe technique #3 de PMSIpilot. CSS - Contents and compatibility. Developer Network. Docs - Element/Element. The following functions are treated as Window methods. Function: document.id The document.id function has a dual purpose: Getting the element by its id, and making an element in Internet Explorer "grab" all the Element methods. Syntax: var myElement = document.id(el); Arguments: el - The Element to be extended. Returns: (element) A DOM element. Examples: Get a DOM Element by ID: var myElement = document.id('myElement'); Get a DOM Element by reference: var div = document.getElementById('myElement'); div = document.id(div); // the element with all the Element methods applied.

Notes: This method is useful when it's unclear if working with an actual element or an id. Function: $ The dollar function is an alias for document:id if the $ variable is not set already. Var myElement = $('myElement'); var myElement2 = document.id('myElement'); myElement == myElement2; // returns true (function($){ // Now you can use $ safely in this closure })(document.id) See Also: MooTools Blogpost: The Dollar Safe Mode Note: Propel ORM 1.5. Refactoring to Propel 1.5: From Peer classes to Query classes - Propel. MooTools 1.2 Documentation Française. Manuel PHP.