How To Set Up MySQL Master-Master Replication

How To Set Up MySQL Master-Master Replication https://www.digitalocean.com/community/articles/how-to-set-up-mysql-master-master-replication Intro This second installment of “Scaling Web Applications” will list out the steps necessary for scaling a mysql deployment over two VPS. The first article in this series laid out the steps needed to load-balance nginx over two VPS, and it is recommended that you read that article first. MySQL replication is the process by which a single data set, stored in a MySQL database, will be live-copied to a second server. This configuration,

Gamepad Input in Python

Gamepad Input in Python   http://yameb.blogspot.com/2013/01/gamepad-input-in-python.html I want to be able to command my upcoming Quadrotor with a game controller, so I purchased a Gigaware PC Wired Controller for $17 from Radioshack: Quadrotors are usually controlled with two thumbsticks (4 axes): Left Thumbstick Up/Down: Throttle Left Thumbstick Left/Right: Yaw Right Thumbstick Up/Down: Pitch Left Thumbstick Left/Right: Roll This inexpensive controller seems perfect for what I need it for, and there are some buttons I can use for initialization and other things.

Python tutorial From ZetCode.com

http://zetcode.com/lang/python/ Python tutorial This is Python tutorial. In this tutorial, you will learn the basics and more advanced topics of the Python language. Table of contents Python language Interactive Python Lexical structure Data types Strings Lists Dictionaries Operators Keywords Functions Files OOP Modules Packages Exceptions Iterators & Generators Introspection Python Python is a general-purpose, dynamic, object-oriented programming language. The design purpose of the Python language emphasizes programmer productivity and code readability. Similar tutorials Scripting languages tutorials on ZetCode include PHP tutorial and Ruby

MySQL Python tutorial

http://zetcode.com/db/mysqlpython/ MySQL Python tutorial This is a Python programming tutorial for the MySQL database. It covers the basics of MySQL programming with Python. It uses the MySQLdb module. The examples were created and tested on Ubuntu Linux. There is a similar PostgreSQL Python tutorial, MySQL Visual Basic tutorial, or MySQL PHP tutorial on ZetCode. If you need to refresh your knowledge of the Python language, there is a fullPython tutorial. You may also consider to look at the MySQL tutorial, too. About MySQL database MySQL

Python Joystick Test

  Instalasi & Testing Koneksi Joystick   import pygame as p p.init() stick = p.joystick.Joystick(0) stick.init() print(“initialized:”,bool(stick.get_init())) print(stick.get_name()) while stick.get_axis(0)*100 < 399: print(round(stick.get_axis(0)*100)) #need for right detection otherwise stick.get_axis always returns 0 for event in p.event.get(): None p.quit()

Recent Entries »