background preloader

PL

Facebook Twitter

PHP Manual: Language Reference. PHP coding standards - tech.tmw.co.uk. Coding Standards and Best Programming Practices for PHP Contents Naming Conventions and Standards Code Indentation Generally you should use the Allman style ( of indenting code.

PHP coding standards - tech.tmw.co.uk

This puts opening braces onto a new line of their own, such that they line up vertically: <? This will differ slightly from the indentation style mainly used for Javascript (like K&R), but there are valid cases where the Allman style would cause syntactic differences in code execution (such as implied return values in Javascript because the semicolon is optional). <? Also, tabs should be used to indent code rather than spaces. Brace Usage If your if() or loop only contains one executable statement, the containing braces are optional, and should be omitted: <? The statement should still be indented as usual, and kept on a separate line for readability.

Trailing Whitespace. PHP Live Regex. PHP 5 Sessions. Python 2.7.9 documentation. Votre Python aime les pip. A partir des versions 2.7.9 et et 3.4, pip est fournit automatiquement avec Python.

Votre Python aime les pip

Si c’est votre cas, vous pouvez sauter la partie installation et aller directement à la partie usage de cet article. Pip install par-ci, pip install par là. “Pour installer cette lib, il vous suffit de faire pip install”. Mais merde, c’est quoi pip ? Python et les libs externes La beauté avec Python, c’est qu’on peut prendre une lib, la balancer dans le répertoire courant, et l’importer. Mais. Car oui, il y a toujours un mais (souvent après le mois de mars). Quand il faut mettre à jour ses libs, c’est chiant. Mais surtout, quand on a une lib qui a des parties en C à compiler comme les libs de crypto, d’accès à la base de données, de traitement XML, de parsing ou de sérialisation, de calculs scientifiques, etc. ça ne marche tout simplement pas. Là, il y a deux écoles. Et les mecs qui utilisent setuptools (et qui se retrouvent avec encore d’autres problèmes, mais c’est mieux parce que je le dis).

Setting up Django and your web server with uWSGI and nginx — uWSGI 2.0 documentation. This tutorial is aimed at the Django user who wants to set up a production web server.

Setting up Django and your web server with uWSGI and nginx — uWSGI 2.0 documentation

It takes you through the steps required to set up Django so that it works nicely with uWSGI and nginx. It covers all three components, providing a complete stack of web application and server software. How to Deploy Python WSGI Applications Using uWSGI Web Server with Nginx. Introduction As introduced in our Python Web Server Comparison article, uWSGI is a vast project, capable of doing much more than serving web applications alone.

How to Deploy Python WSGI Applications Using uWSGI Web Server with Nginx

However, its wide array of functionality, combined with relative ease of configuring it, make it an excellent choice for many deployment needs– especially when it is coupled with Nginx. In this DigitalOcean article, we aim to discuss uWSGI in depth and go over the necessary steps for not just installing the server, but actually deploying Python applications based on various frameworks, covering every important step for small, midsize, and even relatively large ones for production. We will also discuss using Nginx (and why) with this set up, as Nginx and uWSGI are built natively to work with one another, forming the perfect stack for most deployments. Gui2py - Simple and powerful GUI framework for agile development. InformacionGeneral - GuiaInstalacion (Español) gui2py is a GUI framework for building cross-platform "visual" desktop applications on Windows, Mac OS X, and Linux, using the Python language and the wxPython toolkit.

gui2py - Simple and powerful GUI framework for agile development

Its objetive is to evolve PythonCard with web2py's phylosophy and facilities with the following goals: KISS compact structure: easy to learn, complete and powerful GUI Framework for Rapid Application Development Visual Tools: designer, inspector and property editor, embeddables into IDEs (see rad2py screenshot) HTML/Javascript-like capabilities (i.e. events, layout): reusing and/or adapting gluon (web2py framework) + automatic flow mechanism. Ruby. Ruby-Doc. Bbatsov/ruby-style-guide. Ruby User's Guide. Try Ruby: learn the basics of the Ruby language in your browser. Lua. The Java™ Tutorials. The Java Tutorials are practical guides for programmers who want to use the Java programming language to create applications.

The Java™ Tutorials

They include hundreds of complete, working examples, and dozens of lessons. Groups of related lessons are organized into "trails". The Java Tutorials primarily describe features in Java SE 8. For best results, download JDK 8. What's New The Java Tutorials are continuously updated to keep up with changes to the Java Platform and to incorporate feedback from our readers.

This release of the tutorial corresponds to the JDK 8u40 release. This release includes a new lesson in the Deployment trail that describes how to use the Java packaging tools to generate self-contained applications. Trails Covering the Basics These trails are available in book form as The Java Tutorial, Sixth Edition. Creating Graphical User Interfaces Creating a GUI with Swing — A comprehensive introduction to GUI creation on the Java platform.Creating a JavaFX GUI — A collection of JavaFX tutorials.

The Go Programming Language.