background preloader

RegexOne - Learn regular expressions with interactive examples

RegexOne - Learn regular expressions with interactive examples

Web Developer XML Path Language (XPath) Abstract XPath is a language for addressing parts of an XML document, designed to be used by both XSLT and XPointer. Status of this document This document has been reviewed by W3C Members and other interested parties and has been endorsed by the Director as a W3C Recommendation. It is a stable document and may be used as reference material or cited as a normative reference from other documents. W3C's role in making the Recommendation is to draw attention to the specification and to promote its widespread deployment. The list of known errors in this specification is available at Comments on this specification may be sent to www-xpath-comments@w3.org; archives of the comments are available. The English version of this specification is the only normative version. A list of current W3C Recommendations and other technical documents can be found at Table of contents Appendices 1 Introduction 2 Location Paths Location Paths

Quick Tip: The OOP Principle of Coupling So far in this series, we've discussed object-oriented programming in general, and the OOP principle of cohesion. In this article, we'll look at the principle of coupling and how it helps in game development. Note: Although this tutorial is written using Java, you should be able to use the same techniques and concepts in almost any game development environment. Coupling looks at the relationship between objects and how closely connected they are. A relations diagram A good example of coupling is HTML and CSS. Objects that are independent from one another and do not directly modify the state of other objects are said to be loosely coupled. A loosely coupled system Objects that rely on other objects and can modify the states of other objects are said to be tightly coupled. A tightly coupled system A common phrase you'll hear is "strive for low coupling and high cohesion". First, lets look at the objects of Asteroids and how they are connected.

Appcelerator's Developer Platform: Now with Cloud-Based Tools Mobile platform company Appcelerator launched the latest version of its popular Titanium platform Tuesday, with cloud-based tools to help developers build more dynamic apps for Android and iPhone devices. Titanium 2.0, which includes support for HTML5 mobile web apps, aims to help brands create apps quickly and efficiently for their businesses. Appcelerator works with a collection of major brand names including Michaels Stores, Zipcar and more. ACS provides an assortment of popular cloud-based mobile features that aim to engage consumers. The platform includes enhanced photo capabilities — with the ability to store, share and public images from within the app — social integration with Facebook and Twitter, chat functions, check-ins and ratings and reviews. SEE ALSO: Developers See Google as Bigger Growth Area Than Facebook Image courtesy of iStockphoto, akinbostanci

xmllint Name xmllint — command line XML tool Synopsis xmllint [[--version] | [--debug] | [--shell] | [--debugent] | [--copy] | [--recover] | [--noent] | [--noout] | [--nonet] | [--htmlout] | [--nowrap] | [--valid] | [--postvalid] | [--dtdvalid URL] | [--dtdvalidfpi FPI] | [--timing] | [--output file] | [--repeat] | [--insert] | [--compress] | [--html] | [--xmlout] | [--push] | [--memory] | [--maxmem nbbytes] | [--nowarning] | [--noblanks] | [--nocdata] | [--format] | [--encode encoding] | [--dropdtd] | [--nsclean] | [--testIO] | [--catalogs] | [--nocatalogs] | [--auto] | [--xinclude] | [--noxincludenode] | [--loaddtd] | [--dtdattr] | [--stream] | [--walker] | [--pattern patternvalue] | [--chkregister] | [--relaxng] | [--schema] | [--c14n]] [xmlfile] Introduction The xmllint program parses one or more XML files, specified on the command line as xmlfile. It is included in libxml2. Options --version Display the version of libxml2 used. --debug --shell Run a navigating shell. --debugent --copy --recover --noent

Learn Python The Hard Way This exercise has no code. It is simply the exercise you complete to get your computer to run Python. You should follow these instructions as exactly as possible. Go to with your browser, get the Notepad++ text editor, and install it. From now on, when I say "Terminal" or "shell" I mean PowerShell and that's what you should use. Warning Sometimes you install Python on Windows and it doesn't configure the path correctly. > python ActivePython 2.6.5.12 (ActiveState Software Inc.) based on Python 2.6.5 (r265:79063, Mar 20 2010, 14:22:52) [MSC v.1500 32 bit (Intel)] on win32 Type "help", "copyright", "credits" or "license" for more information. >>> quit()> mkdir mystuff > cd mystuff ... It is still correct if you see different information than mine, but yours should be similar. A major part of this book is learning to research programming topics online. Thanks to search engines such as Google you can easily find anything I tell you to find.

–Userscripts.org XQuery 1.0 and XPath 2.0 Data Model (XDM) (Second Edition) This section describes the constraints on instances of the data model. This document describes how to construct an instance of the data model from an infoset ([Infoset]) or a Post Schema Validation Infoset (PSVI), the augmented infoset produced by an XML Schema validation episode. An instance of the data model can also be constructed directly through application APIs, or from non-XML sources such as relational tables in a database. Regardless of how an instance of the data model is constructed, every node and atomic value in the data model must have a typed-value that is consistent with its type. The data model supports some kinds of values that are not supported by [Infoset]. 3.3 Construction from a PSVI An instance of the data model can be constructed from a PSVI, whose element and attribute information items have been strictly assessed, laxly assessed, or have not been assessed. Data model construction requires that the PSVI provide unique names for all anonymous schema types. year month

Introduction: Giants In Tiny Pants Do you like word problems? You know those annoying "math" questions you had to study in class simply because the SAT used them. They went something like this: "A train leaving a station at 10:50pm from San Francisco is travelling at 40MPH. Even today, after studying years of advanced mathematics, statistics, and computer science, I still can't solve these things. Imagine if all mathematics was like this where every single problem you encountered, no matter how simple or complex, was only written as English because nobody understood the symbols. Thankfully, humans invented symbols to succinctly describe the things that symbols are best at describing, and left human languages to describe the rest.footnote{Thankfully, the things that can be described with symbols is pretty small or else nobody would be able to read.} The power of symbolic languages is that, once you learn them, they can describe things more quickly and accurately than a human language can. name.match(/^[\da-z]+\d$/); (?

30 free programming eBooks - citizen428.blog() Since this post got quite popular I decided to incorporate some of the excellent suggestions posted in the comments, so this list now has more than 50 books in it. BTW: I’m not very strict on the definition of “ebook”, some of them are really just HTML versions of books. [UPDATED: 2012-01-18] Learning a new programming language always is fun and there are many great books legally available for free online. Here’s a selection of 30 of them: Lisp/Scheme:Common Lisp: A Gentle Introduction to Symbolic ComputationHow to Design ProgramsInterpreting Lisp (PDF, suggested by Gary Knott)Let Over LambdaOn LispPractical Common LispProgramming in Emacs LispProgramming Languages. Ruby:The Bastards Book of Ruby (suggested by Dan Nguyen)Clever Algorithms (suggested by Tales Arvelos)Data Structures and Algorithms with Object-Oriented Design Patterns in RubyLearn Ruby the Hard WayLearn to ProgramMacRuby: The Definitive GuideMr. Erlang:Concurrent Programming in ErlangLearn You Some Erlang for Great Good

How to retrieve namespaces in XML files using Xpath How to be a Programmer: A Short, Comprehensive, and Personal Summary Debugging is the cornerstone of being a programmer. The first meaning of the verb to debug is to remove errors, but the meaning that really matters is to see into the execution of a program by examining it. A programmer that cannot debug effectively is blind. Idealists that think design, or analysis, or complexity theory, or whatnot, are more fundamental are not working programmers. Debugging is about the running of programs, not programs themselves. To get visibility into the execution of a program you must be able to execute the code and observe something about it. The common ways of looking into the ‘innards’ of an executing program can be categorized as: Using a debugging tool, Printlining --- Making a temporary modification to the program, typically adding lines that print information out, and Logging --- Creating a permanent window into the programs execution in the form of a log. Some beginners fear debugging when it requires modifying code. How to Understand Performance Problems

La base de toutes sélection générique ...que ce soit du filtre de recherche dans des fichiers systèmes, du contrôle de saisie conforme, de la sélection à la volée de données à renvoyer, etc. le regex et une base apportant, sur le traitement des chaînes de caractères, une grande souplesse /capacité de comportement /fonctionnalité avec très peu de code. by g_i_geo Jun 28

Related: