Python
more_horiz
close

on 02nd September 2012 / by webmaster
Zyxware conducted a one day workshop on Python on 11th June at CDAC Trivandrum. The workshop was targeted at experienced developers who were about to take on a new Python project. The full day workshop was attended by 8 participants from CDAC, Trivandrum. The workshop covered the following areas. Introduction to Python Syntax and style Data structure Flow control (loops and conditionals) Files and I/O Modules Functions Errors and Exception Handling Practice Problems were given during the workshop. There was an interactive Question & Answer session at the end of the workshop. If you are interested in organizing a workshop or training at your organization do get in touch with us Training News Python Workshops Leave a reply Your email address will not be published. Required fields are marker *
more_horiz
close

on 02nd September 2012 / by webmaster
CSI Trivandrum and Zyxware conducted a one day workshop on Python on 28th July at Hotel Keys. The workshop was targeted at new developers who are interested in learning python. The full day workshop was attended by 28 participants from across different organisations in Trivandrum. The workshop covered the following areas. Introduction to Python Syntax and style Data structure Flow control (loops and conditionals) Files and I/O Modules Functions Errors and Exception Handling Participants were expected to bring their own laptops for the workshop. Practice Problems were given during the workshop. There was an interactive Question & Answer session at the end of the workshop. If you are interested in organizing a workshop or training at your organization do get in touch with us Training News Python Workshops Leave a reply Your email address will not be published. Required fields are marker *
close

on 19th June 2012 / by vimal
Sometimes we may require updating several rows of data with different queries and make sure every query execute correctly to keep the database consistency. Here is a simple solution to enable such transactions with Mysql and Python. To do this, we can start a transaction and commit the changes to the table. The data will be written to the table only after the commit statement is executed. If there is an error in between, we can rollback, so that all the inconsistencies are cleared. To enable transactions, make sure you have set Innodb as the database engine for all the tables you require to support the transaction. The default MyIsam engine will not support transactions. You can do this by altering the required table with the SQL: ALTER TABLE ENGINE = InnoDB; In python, with MySQLdb driver, you can turn off the autocommit and use rollback or commit to the connection. Example: import MySQLdb #Start a connection db= MySQLdb.connect(host="dbhost", user="dbuser" , passwd="dbpass", db="dbname") db.autocommit(False) cursor = db.cursor() try: cursor.execute("Your SQL") cursor.execute("Another sql") db.commit() except: db.rollback() MySQL Database Administration Python Leave a reply Your email address will not be published. Required fields are marker *
more_horiz
close

on 28th January 2012 / by webmaster
We had sometime back released an automatic login script for Asianet broadband connections. We had since then signed up for Reliance broadband at one of our offices and had to set up something to connect to the connection automatically. The auto login script for Reliance broadband that we created has been published via our github account as Free Software under GPL. The script was written around the logic published by Kunal Dua on his blog - http://www.kunaldua.com/blog/2009/12/reliance-wireless-broadband-auto-l… and was released as Free Software. We took that and built upon that and have released the modified script here. Thanks to Kunal for releasing his script under a Free Software license. The script allows you to connect to Reliance, disconnect from Reliance or connect and retain connection automatically. The retain connection feature was especially useful for us as we had frequent disconnection issues with the connection. Since this is Free Software, feel free to use, modify and distribute the script. You might also want to make a small contribution to FSF if you think this script is useful for you. If there had not been any FSF or GPL or Free Software you wouldn't have been able to use this software gratis. It would be great if you can let us know of any issues/bugs you find in the script. You can use the issue queue at github or the comment form below for the same. Happy hacking. Utilities Internet Free Software Shell Scripting Reliance Python Leave a reply Your email address will not be published. Required fields are marker * Praveen Pious (not verified) access_time 24 May 2019 - 16:18 Not everyone is well versed with running python scripts on their windows machines. I downloaded and installed python off from their website. I set the environment variable correctly too. Yet, I am facing difficulty while trying to get this script working. Double clicking the script just makes a black command prompt prompt window to appear. Nothing seems to be happening on the background. So, please help me out. What am I doing wrong here? Anonymous (not verified) access_time 24 May 2019 - 16:18 i am using a connect broadband. and i don't know how to use a script. please tell me how use it? thanks in advance. Dhruv (not verified) access_time 24 May 2019 - 16:18 Even i'm having trouble getting this script working. Can you please tell this in layman terms? Hellobye80 (not verified) access_time 24 May 2019 - 16:18 from where can we download this free software. can you please share the link? Ethan Stone (not verified) access_time 24 May 2019 - 16:18 Is this script still working for you? Pagination Current page 1 Page 2 Next page Next › Last page Last » Add new comment