background preloader

Programming

Facebook Twitter

Database

C++ Learn Python in 10 minutes | Poromenos' Stuff. NOTE: If you would like some Python development done, my company, Stochastic Technologies, is available for consulting. This tutorial is available as a short ebook. The e-book features extra content from follow-up posts on various Python best practices, all in a convenient, self-contained format. All future updates are free for people who purchase it. Preliminary fluff So, you want to learn the Python programming language but can’t find a concise and yet full-featured tutorial.

We will focus on Python 3, as that is the version you should use. Properties Python is strongly typed (i.e. types are enforced), dynamically, implicitly typed (i.e. you don’t have to declare variables), case sensitive (i.e. var and VAR are two different variables) and object-oriented (i.e. everything is an object). Getting help Help in Python is always available right in the interpreter. >>> help(5)Help on int object:(etc etc) >>> dir(5)['__abs__', '__add__', ...] >>> abs. Syntax Data types Strings Flow control statements. Django | The Web framework for perfectionists with deadlines. Chapter 3. An Object-Oriented Framework. This chapter, and pretty much every chapter after this, deals with object-oriented Python programming. Remember when I said you should know an object-oriented language to read this book?

Well, I wasn’t kidding. Here is a complete, working Python program. Read the doc strings of the module, the classes, and the functions to get an overview of what this program does and how it works. As usual, don’t worry about the stuff you don’t understand; that’s what the rest of the chapter is for. Example 3.1. fileinfo.py If you have not already done so, you can download this and other examples used in this book. print "\n".join(["%s=%s" % (k, v) for k, v in info.items()]) print Example 3.2.

This was the output I got on my machine. A Beginner's Guide to Using pyGTK and Glade. The beauty of pyGTK and Glade is they have opened up cross-platform, professional-quality GUI development to those of us who'd rather be doing other things but who still need a GUI on top of it all. Not only does pyGTK allow neophytes to create great GUIs, it also allows professionals to create flexible, dynamic and powerful user interfaces faster than ever before. If you've ever wanted to create a quick user interface that looks good without a lot of work, and you don't have any GUI experience, read on.

This article is the direct result of a learning process that occurred while programming Immunity CANVAS (www.immunitysec.com/CANVAS). Much of what was learned while developing the GUI from scratch was put in the pyGTK FAQ, located at www.async.com.br/faq/pygtk/index.py? As a metric, the CANVAS GUI was written from scratch, in about two weeks, with no prior knowledge of pyGTK. The Cross-Platform Nature of pyGTK For these reasons alone, pyGTK might be your choice. HantsLUG Wiki: TechTalks/2ndDecember2006. PyGTK. FlashReader. Native Win32 ports of some GNU utilities. Launchpad. GotAPI.com :: Reference Lookup Service. Crimson Editor - Free Text Editor, Html Editor, Programmers Editor for Windows.

Ajax (programming) Ajax is not a single technology, but a group of technologies. HTML and CSS can be used in combination to mark up and style information. The DOM is accessed with JavaScript to dynamically display, and allow the user to interact with, the information presented.

JavaScript and the XMLHttpRequest object provide a method for exchanging data asynchronously between browser and server to avoid full page reloads. In 1996, the iframe tag was introduced by Internet Explorer to load or to fetch content asynchronously. In 1998, Microsoft Outlook Web App team implemented the first component XMLHTTP by client script. Google made a wide deployment of standards-compliant, cross browser Ajax with Gmail (2004) and Google Maps (2005).[6] The term "Ajax" was publicly stated on 18 February 2005 by Jesse James Garrett in an article titled "Ajax: A New Approach to Web Applications", based on techniques used on Google pages.[1] get-ajax-data.js: send-ajax-data.php: jQuery example.