background preloader

Python

Facebook Twitter

Rubyrep: Features. Simple Configuration Complete setup is done via a single simple configuration file. (Expressed in a Domain specific language done in ruby.) Simple Installation Installation can be done either via traditional ruby stack OR JRuby In case of JRuby this means: Installation of a JVM Download and extracting of a zip file Done. Platform independent Runs on both Linux and Windows platforms. Table Design independent All commands work on tables no matter if they have a simple primary key (all data types acceptable), a combined primary key or no primary key at all. rubyrep successfully processes multi-byte texts “big” data types Scan Features rubyrep can scan corresponding tables of left and right database for diverging data. Different output modes: from count of differences over row diffs to full row dumps. Sync Features rubyrep can sync the data in corresponding tables of left and right database.

All scan features also apply to syncs Automatically orders table syncs to avoid foreign key conflicts. Think Python. Execute Python online. 5.14 Summary. Learnpythonthehardway.org/book/ 2. Built-in Functions — Python v2.7.3 documentation. Open a file, returning an object of the file type described in section File Objects.

If the file cannot be opened, IOError is raised. When opening a file, it’s preferable to use open() instead of invoking the file constructor directly. The first two arguments are the same as for stdio‘s fopen(): name is the file name to be opened, and mode is a string indicating how the file is to be opened. The most commonly-used values of mode are 'r' for reading, 'w' for writing (truncating the file if it already exists), and 'a' for appending (which on some Unix systems means that all writes append to the end of the file regardless of the current seek position). If mode is omitted, it defaults to 'r'. The optional buffering argument specifies the file’s desired buffer size: 0 means unbuffered, 1 means line buffered, any other positive value means use a buffer of (approximately) that size (in bytes). In addition to the standard fopen() values mode may be 'U' or 'rU'.