Search

Python Switch/Change Version in Linux

We expose a Canonical way to Manage Multiple Versions of a program or Multiple Similar programs on Linux.

Requisite: update-alternatives

The package update-alternatives should be present by Default in your System but if you want to check:

which upadate-alternatives

Documentation about update-alternatives -> http://www.wlug.org.nz/update-alternatives

Python Interpreting Text/Html/Xml Containing /u000a /u000d Unicode

The Unicode meaning for these symbols are corresponding to C Escape characters:

  • \u000a = \n (Line break)
  • \u000d = \r (Carriage return)

To Change the Interpretation of these Symbols by Python Interpreter you have to give a Different Encoding to the block with:

yourBlock.decode("unicode-escape")

Selenium-Python Documentation

The Documentation for Selenium binding to Python API is on:
http://readthedocs.org/docs/selenium-python/en/latest/

Change Java Version on Mac OSX

Perhaps you have installed a Java Update X for your Mac but if you try to execute in Terminal:

java -version

You don't get any Change in your Java version...

So if you have multiple Versions of Java installed in you Mac Platform to Switch from one to the other:

Nano Editor Commands List Tutorial

Here are some Fundamental Commands to Take into Account to make your Experience with the "nano" more Productive, Pleasant and Easy :)

For directly Displaying the Help Documentantion:

Ctrl+g

Enable/Disable Help:

Alt+x

Editing

Undo last Command:

Ctrl+z

Enable Block Selection with Mouse Enabled(Alt+m):

Ctrl+a

Copy Line into the Buffer: (You can follow to Copy as much Lines you want into the Buffer and the Uncut or Paste them out)

MySQL Select Where Like to Search Data with Patterns Matching

In MySQL you can Easily Search and Find the need Data using the SELECT, WHERE and FIND Commands.

Here Below is Described Step-by-Step How-to Looking for Data on a MySQL Table.

 

 

Now if you want to Know More look to: http://dev.mysql.com/doc/refman/5.0/en/pattern-matching.html

  1. To Show up the Tables on Your MySQL Database:

MySQL Import csv Data from File

  1. You Login into the MySQL Server like:

    mysql -uYOURUSER -pYOURPASS YOURDB
  2. At the MySQL Prompt you Insert something like:

    LOAD DATA LOCAL INFILE '/path/To/File/data.csv'
    INTO TABLE your_table_name
    FIELDS TERMINATED BY ','
    LINES TERMINATED BY '\n'
    (field1, filed2, field3);

    The Field Terminator Depend from the Form of your CSV Data.

    The Line Terminator is Usually of type '\n' if you have a Line Break at the end of each Record.

MySQL Data Type of SET Syntax Create Table

This is an Example of the Syntax to use in Creating a Table with a SET Data Type Column:

mysql> CREATE TABLE myset (colOfSETTypeName SET('a', 'b', 'c', 'd'));

MySQL Data Types List

  1. Numeric Types

    Exact

    • INTEGER (INT)
    • SMALLINT
    • DECIMAL (DEC, FIXED)
    • NUMERIC

    Approximate

Theme by Danetsoft and Danang Probo Sayekti inspired by Maksimer