background preloader

Programing

Facebook Twitter

Open-source XMPP server comparison chart. Note: This page is an archived copy of the page formerly located at www.jabber.org; if you would like to become the maintainer of this page, please contact Peter Saint-Andre. Section: Basic - Medium - Advanced Section: Basic - Medium - Advanced Section: Basic - Medium - Advanced Ideas: Sander Devrieze: intro page where people can select the servers they want to compare with each other (an alphabetic ordered ul-list with checkboxes e.g.); the generate page with all selected servers on itStephen Marquard: Basically I think the features should be compared consistently. A starting point would be for XMPP and XMPP-IM, to note only features that are missing (otherwise assumed present, like stringprep, etc.)Stephen Marquard: After that the supported JEPs should be listed for comparison, as j2 does in its PROTOCOL file: Changelog: Copyright (c) 2004 Frank Niedermann.

The Best Search Links on the Net. Getting started. Frame, Text, Scrollbar, Scale < Widgets 2 < Perl/Tk Tutorial < Perl. Frame A frame is a simple widget. Its primary purpose is to act as a spacer or container for complex window layouts. The only features of a frame are its background color and an optional 3-D border to make the frame appear raised or sunken.

Frame can be created just like any other widget - my $frm = $mw -> Frame(); To place other widgets in this frame, you should use the frame widget variable as its parent. Some OptionsExample #! Text A text widget displays one or more lines of text and allows that text to be edited. Some Options Example #! Scrollbar A scroll bar is a widget that displays two arrows, one at each end of the scroll bar, and a slider in the middle portion of the scroll bar. . #! Grid As you can see I have used 'grid' here. Using grid requires a bit of experience - but if you know HTML it would help a lot. Scale Makes a slider that can be adjusted by the user to input a variable. #! Now our little example is becoming more and more like a program. Getting Started. A First Application: "Hello, World" As is traditional, we are first going to write a Small "Hello, world" application.

Here is the code: Toggle line numbers 1 2 import wx 3 4 app = wx.App(False) 5 frame = wx.Frame(None, wx.ID_ANY, "Hello World") 6 frame.Show(True) 7 app.MainLoop() Explanations: Note: You almost always want to use wx.ID_ANY or another standard ID (v2.8) provided by wxWidgets. You can make your own IDs, but there is no reason to do that. Run the program and you should see a window like this one: Windows or Frames? When people talk about GUIs, they usually speak of windows, menus and icons. Building a simple text editor In this tutorial we are going to build a simple text editor. First steps The first step is to make a simple frame with an editable text box inside. 1 2 import wx 3 class MyFrame(wx.Frame): 4 """ We simply derive a new class of Frame. """ 5 def __init__(self, parent, title): 6 wx.Frame. In this example, we derive from wx.Frame and overwrite its __init__ method. Sizers. PyQt. About PyQt PyQt is one of the two most popular Python bindings for the Qt cross-platform GUI/XML/SQL C++ framework (another binding is PySide).

PyQt developed by Riverbank Computing Limited. Qt itself is developed as part of the Qt Project. PyQt provides bindings for Qt 4 and Qt 5. PyQt is distributed under a choice of licences: GPL version 2, GPL version 3, or a commercial license. PyQt is available in two editions: PyQt4 which will build against Qt 4.x and 5.x and PyQt5 which will only build against 5.x. The latest iteration of PyQt is v5.4. PyQt Documentation Current documentation is available for PyQt4 and PyQt5. The PyQt Wiki contains more actively-updated information and examples: A collection of links to books can be found on the Books page. On this Wiki, you can find the following tutorials: A tutorial presented by Jonathan Gardner at the 2003 Northwest Linux Fest is available at JonathanGardnerPyQtTutorial. Developing with PyQt and PyKDE PyQt Applications Earlier Versions CategoryPyGUI. PyQT Tutorial. Tutorial: Creating GUI Applications in Python with QTby Alex Fedosov Python is a great language with many awesome features, but its default GUI package (TkInter) is rather ugly.

Besides, who wants to write all that GUI code by hand, anyway? Instead, a much better way to write GUI apps in Python is to use Trolltech's QT Designer to WYSIWYG-ly create a nice-looking interface, and then automatically generate the necessary code for it with pyuic (which is a UI compiler for QT that comes with the PyQT package.) QT designer also makes it very easy to add Python code to your project. So the following is a brief tutorial on how to go about creating your first semi-interesting application with Python & QT. First, you need to have the following packages installed: Python 2.x PyQt 3.x QT Designer 3.x I did everything with default packages that came with Fedora Core 1, and had no problems. QT Designer will come up.

In the New/Open dialog box, click on Dialog, and hit OK. Here's the tricky part. Learning to program. Constraints. HomeContents In this part of the SQLite tutorial, we will work with constraints. Constraints are placed on columns. They limit the data, that can be inserted into tables. We have the following constraints: NOT NULL constraint A column with a NOT NULL constraint cannot have NULL values. sqlite> CREATE TABLE People(Id INTEGER, LastName TEXT NOT NULL, ...

> FirstName TEXT NOT NULL, City TEXT); We create two columns with NOT NULL constraints. sqlite> INSERT INTO People VALUES(1, 'Hanks', 'Robert', 'New York'); sqlite> INSERT INTO People VALUES(2, NULL, 'Marianne', 'Chicago'); Error: People.LastName may not be NULL The first INSERT statement succeeds, while the second fails.

UNIQUE constraint The UNIQUE constraint ensures that all data are unique in a column. sqlite> CREATE TABLE Brands(Id INTEGER, BrandName TEXT UNIQUE); Here we create a table Brands. We get an error 'column BrandName is not unique'. Note that a PRIMARY KEY constraint automatically has a UNIQUE constraint defined on it. Primary key. The Node Beginner Book » A comprehensive Node.js tutorial. Understanding JavaScript Closures. In JavaScript, a closure is a function to which the variables of the surrounding context are bound by reference. Every JavaScript function forms a closure on creation. In a moment I’ll explain why and walk through the process by which closures are created. Then I’ll address some common misconceptions and finish with some practical applications. But first a brief word from our sponsors: JavaScript closures are brought to you by lexical scope and the VariableEnvironment… Lexical Scope The word lexical pertains to words or language.

Thus the lexical scope of a function is statically defined by the function’s physical placement within the written source code. Consider the following example: Function inner is physically surrounded by function outer which in turn is wrapped by the global context. Global outer inner The outer lexical scope of any given function is defined by its ancestors in the lexical hierarchy. VariableEnvironment The global object has an associated execution context.

Myth 1. Regular Expressions Cheat Sheet by DaveChild.