background preloader

Python Tools for Visual Studio - Home

Python Tools for Visual Studio - Home

Free ebook: Programming Windows 8 Apps with HTML, CSS, and JavaScript - Microsoft Press Added April 10, 2014: The second edition of this ebook, updated for Visual Studio 2013 and Windows 8.1, is posted here! Hello, Kraig Brockschmidt here. To help celebrate //build/, I’m delighted to announce the completion of Programming Windows 8 Apps with HTML, CSS, and JavaScript! You can download the ebook in PDF format here: (17.9 MB) EPUB format is here: MOBI format is here: The ebook’s companion content is here: This free ebook provides comprehensive coverage of the platform for Windows Store apps. It has been a wild ride these last few months to finish a book of this magnitude at the same time we were building up to the public release of Windows 8. In the end, then, there is much in this ebook that will be highly valuable to developers working on Windows 8 apps in whatever language. Introduction Welcome, my friends, to Windows 8! Stay in Touch

Understanding Python's "with" statement Fredrik Lundh | October 2006 | Originally posted to online.effbot.org Judging from comp.lang.python and other forums, Python 2.5’s new with statement (dead link) seems to be a bit confusing even for experienced Python programmers. As most other things in Python, the with statement is actually very simple, once you understand the problem it’s trying to solve. Consider this piece of code: set things up try: do something finally: tear things down Here, “set things up” could be opening a file, or acquiring some sort of external resource, and “tear things down” would then be closing the file, or releasing or removing the resource. If you do this a lot, it would be quite convenient if you could put the “set things up” and “tear things down” code in a library function, to make it easy to reuse. def controlled_execution(callback): set things up try: callback(thing) finally: tear things down def my_function(thing): do something controlled_execution(my_function) This wasn’t very difficult, was it?

IronPython Website Thumbnails with CSS — Boldewyn’s Website A thumb­nail view of a web­site is mean­while a com­mon sight. Google has re­cently in­tro­duced it in its search res­ults page, and nu­mer­ous ad ser­vices offer more or less an­noy­ing tool tips with page pre­views. What all these in­stances have in com­mon is the need for ren­der­ing the webpage in ques­tion on the server and dis­play­ing the image only to the cli­ent. In this art­icle I’ll show a thumb­nail tech­nique that works in the browser alone (given some CSS3 sup­port). The Tech­nique A thumb­nail is a mini­fied ver­sion of the ori­ginal. The above will render the ele­ment with ID #thumb at ⅓ of its ori­ginal size. The trick is now to apply this CSS to an iframe ele­ment. Since the cor­res­pond­ing CSS3 spe­cific­a­tions are not final yet, we have to set the known browser pre­fixes for the newer CSS prop­er­ties. En­han­cing with Javas­cript There is one major draw­back of the above simple CSS. width: 320px; height: 160px; Auto-Thumb­nails It Could be more Power­ful A Final Note

Tutorial - Learn Python in 10 minutes - Stavros' 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. Preliminary fluff So, you want to learn the Python programming language but can't find a concise and yet full-featured tutorial. 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 Python has no mandatory statement termination characters and blocks are specified by indentation. Data types You can access array ranges using a colon (:).

IronPython.net / Getting Started: Building a Chrome Extension Extensions allow you to add functionality to Chrome without diving deeply into native code. You can create new extensions for Chrome with those core technologies that you're already familiar with from web development: HTML, CSS, and JavaScript. If you've ever built a web page, you should feel right at home with extensions pretty quickly; we'll put that to the test right now by walking through the construction of a simple extension that will give you one-click access to pictures of kittens. Kittens! We'll do so by implementing a UI element we call a browser action, which allows us to place a clickable icon right next to Chrome's Omnibox for easy access. Clicking that icon will open a popup window filled with kittenish goodness, which will look something like this: If you'd like to follow along at home (and you should!) The very first thing we'll need to create is a manifest file named manifest.json. The next block defines the extension's name, description, and version.

Invent Your Own Computer Games with Python - Learn how to program with a free ebook programming tutorial Chapter 1 Read online: Chapter 1 - Installing Python Videos: Chapter 2 Read online: Chapter 2 - The Interactive Shell Chapter 3 Read online: Chapter 3 - Strings Download source: hello.py Copy source to clipboard: Use the online diff tool to find typos in your code: hello.py Chapter 4 Read online: Chapter 4 - Guess the Number Download source: guess.py Use the online diff tool to find typos in your code: guess.py Chapter 5 Read online: Chapter 5 - Jokes Download source: jokes.py Use the online diff tool to find typos in your code: jokes.py Chapter 6 Read online: Chapter 6 - Dragon Realm Download source: dragon.py Use the online diff tool to find typos in your code: dragon.py Chapter 7 Read online: Chapter 7 - Using the Debugger Chapter 8 Read online: Chapter 8 - Flow Charts Chapter 9 Read online: Chapter 9 - Hangman Download source: hangman.py Use the online diff tool to find typos in your code: hangman.py Chapter 10 Read online: Chapter 10 - Tic Tac Toe Download source: tictactoe.py Chapter 11 Download source: bagels.py

IronPython Cookbook The Python Script Collection For Windows - Automating Microsoft Outlook For Outlook automation it is nesseccary to use the makepy utility. You do this either from the tools menu of the Pythonwin-Editor (installed with Pywin32 or ActivePython) or you call the file c:\python23\Lib\site-packages\win32com\client\makepy.py. You then have to select the Outlook Object Library ("Microsoft Outlook 10.0 Object Library" for Office 10.0 or known as Office XP). After that Python generates cachefiles into the directory c:\python23\Lib\site-packages\win32com\gen_py or c:\temp\gen_py to tell Python more about the Outlook object library. Here is a well known example which dumps all adressbook entries from your default adressbook:

Related: