Install Python support in IIS7

Here are the steps how I make Python running in IIS 7. Hope it helps:

1. Please make sure Python is installed properly.

2. Make sure CGI module is installed in IIS 7 

Control Panel -> Programs -> Program and Features -> Turn Windows features on and off -> Internet Information Services -> World Wide Web Services -> Application Development Features -> CGI module.

3. Add web application for Python, In IIS Manager, right click Default Web Site -> Add Application, setting Alias e.g.: PythonApp, and make it pointing to some folder like C:\PythonApp, then click OK

4. In Features View, open Handler Mappings, right click to Add Script Map …

5. In Request path, put “*.py” as the script files extension, In Executable select “C:\Python25\Python.exe %s %s”, here is my Python installation path and its parameters, this is mentioned in the KB article, you can check what are these two parameters used for. Then giving the script mapping an appropriate Name, like Python. Click OK.

6. Create or copy a test.py into the virtual directory (C:\PythonApp), you can find it in the KB article.

7. In Browse View, right click browse to verify it.

Try this in your *.py file:

#!/usr/bin/env python# -*- coding: UTF-8 -*-

# enable debuggingimport cgitbcgitb.enable()

print "Content-Type: text/plain;charset=utf-8"print

print "Hello World!"

Unsafe VS Unmanaged code in .NET

Managed code runs under supervision of the CLR (Common Language Runtime). This is responsible for things like memory management and garbage collection.

So unmanaged simply runs outside of the context of the CLR. unsafe is kind of “in between” managed and unmanaged. unsafe still runs under the CLR, but it will let you access memory directly through pointers.

CodeIgniter Features

Features in and of themselves are a very poor way to judge an application since they tell you nothing about the user experience, or how intuitively or intelligently it is designed. Features don’t reveal anything about the quality of the code, or the performance, or the attention to detail, or security practices. The only way to really judge an app is to try it and get to know the code. Installing CodeIgniter is child’s play so we encourage you to do just that. In the mean time here’s a list of CodeIgniter’s main features.

  • Model-View-Controller Based System
  • Extremely Light Weight
  • Full Featured database classes with support for several platforms.
  • Active Record Database Support
  • Form and Data Validation
  • Security and XSS Filtering
  • Session Management
  • Email Sending Class. Supports Attachments, HTML/Text email, multiple protocols (sendmail, SMTP, and Mail) and more.
  • Image Manipulation Library (cropping, resizing, rotating, etc.). Supports GD, ImageMagick, and NetPBM
  • File Uploading Class
  • FTP Class
  • Localization
  • Pagination
  • Data Encryption
  • Benchmarking
  • Full Page Caching
  • Error Logging
  • Application Profiling
  • Calendaring Class
  • User Agent Class
  • Zip Encoding Class
  • Template Engine Class
  • Trackback Class
  • XML-RPC Library
  • Unit Testing Class
  • Search-engine Friendly URLs
  • Flexible URI Routing
  • Support for Hooks and Class Extensions
  • Large library of “helper” functions

Zend PHP Cloud Application Platform

If you’re running or planning to run a business-critical PHP application in the cloud, you will need to overcome various challenges, such as ensuring PHP configuration consistency, session clustering, problem identification, portability, and more. To take advantage of the elasticity, flexibility and cost benefits of the cloud, you will need a cloud application platform that addresses these challenges.
The Zend PHP cloud application platform includes all the components required for successfully developing, running and scaling business-critical PHP applications in the cloud. With the Zend PHP cloud application platform, you will achieve:

  • Streamlined development, testing and deployment processes
  • Elasticity required to meet varying demand
  • Portability across different clouds and flexibility to customize your environment
  • Application performance and availability
  • Cost reduction through increased efficiency throughout the application lifecycle

Zend PHP Cloud Application Platform

Rapid Development of Portable Cloud Applications with Zend Framework

The open source Zend Framework speeds up the development of cloud applications with components for accessing Windows Azure and Amazon EC2 cloud services. It also enables you to write portable code using the SimpleCloud API.

Zend Framework provides the following cloud components:

  • Document Service integration
  • Queue Service integration
  • Storage service integration
  • Amazon EC2 component
  • Windows Azure component

Learn how to use Zend Framework for building cloud applications»
Zend Framework - Develop PHP Cloud Applications

Application Management and Scalability with Zend Server and Zend Server Cluster Manager

Zend Server is an enterprise-ready PHP Web Application Server that comprises a supported PHP application stack as well as extensive application management capabilities that improve performance, reliability and scalability of cloud-based applications, including:

Zend Server in the Cloud

  • PHP configuration management
  • Simple clustered application deployment
  • Cloud-ready session clustering for high availability
  • Monitoring of multi-server PHP applications
  • Problem diagnostics and Zend Studio integration
  • Unlimited, annual subscription or pay-per-use pricing

You can access Zend Server in one of several ways:

Enhanced Development Process with Zend Studio

With Zend Studio you can take advantage of virtualization and cloud technologies by running and debugging your PHP application on remote server or a virtual machine, ensuring you use an environment that is similar to that used in production.

Zend Studio includes several capabilities that speed up cloud application development:

  • VMware Workstation integration
  • Remote server debugging
  • Content Assist support for Zend Framework cloud service APIs

Zend Studio is based on the Eclipse platform, enabling to use it with plug-ins, such as the Amazon Web Services (AWS) Toolkit.

Zend Studio and VMware Workstation PHP Virtualization

Learn more about using Zend Studio with VMware Workstation »

dfxp content

DFXP Content is an abstract document type of a profile of the Timed Text Markup Language(Timed Text Markup Language – TTML) intended to be used for interchange among distribution systems.

Demo

<?xml version="1.0" encoding="UTF-8"?>
<tt xmlns="http://www.w3.org/2006/04/ttaf1"
      xmlns:tts="http://www.w3.org/2006/04/ttaf1#styling" xml:lang="en">
  <head>
    <styling>
      <style id="defaultSpeaker" tts:fontSize="12" tts:fontFamily="Arial" tts:fontWeight="normal" tts:fontStyle="normal" tts:textDecoration="none" tts:color="white" tts:backgroundColor="black" tts:textAlign="left" />
      <style id="defaultCaption" tts:fontSize="12" tts:fontFamily="Arial" tts:fontWeight="normal" tts:fontStyle="normal" tts:textDecoration="none" tts:color="white" tts:backgroundColor="black" tts:textAlign="left" />
    </styling>
  </head>
  <body style="defaultCaption" id="thebody">
    <div xml:lang="en">
      <p begin="0:00:00.00" end="0:00:01.32">[captioned by The Law, Health Policy & Disability Center]</p>
      <p begin="0:00:01.32" end="0:00:04.31"><span tts:fontSize="14" tts:color="black" >John Rowe (Moderator):  So let me introduce to you all Chris Kuczynski</span></p>
      <p begin="0:00:04.31" end="0:00:12.73"><span tts:fontSize="14" tts:color="black" >[Applause].</span></p>
      <p begin="0:00:12.73" end="0:00:13.91"><span tts:fontSize="14" tts:color="black" >Chris Kuczynski:  Good morning.</span></p>
      <p begin="0:00:13.91" end="0:00:15.26"><span tts:fontSize="14" tts:color="black" >Audience:  Good morning.</span></p>
      <p begin="0:00:15.26" end="0:00:20.04"><span tts:fontSize="14" tts:color="black" >Chris Kuczynski:  How often do we run ahead. I was supposed to be from eleven, or ten to eleven</span></p>
      <p begin="0:00:20.04" end="0:00:22.73"><span tts:fontSize="14" tts:color="black" >and I think it's about five of ten according to my watch,</span></p>
      <p begin="0:00:22.73" end="0:00:28.67"><span tts:fontSize="14" tts:color="black" >I don't know whether that means I should finish at five of eleven or that I get an extra five minutes.</span></p>
      <p begin="0:00:28.67" end="0:00:33.45"><span tts:fontSize="14" tts:color="black" >As anybody that's heard me speak knows I will fill it up if I'm given the five minutes</span></p>
      <p begin="0:00:33.45" end="0:00:35.09"><span tts:fontSize="14" tts:color="black" >[Laughter].</span></p>
      <p begin="0:00:35.09" end="0:00:39.12"><span tts:fontSize="14" tts:color="black" >But I do want to talk about a number of issues under the ADA,</span></p>
      <p begin="0:00:39.12" end="0:00:43.14"><span tts:fontSize="14" tts:color="black" >"What every employer should know" is what I'm supposed to talk about.</span></p>
      <p begin="0:00:43.14" end="0:00:46.98"><span tts:fontSize="14" tts:color="black" >And I'm going to do that and I'm going to hopefully save time for questions,</span></p>
      <p begin="0:00:46.98" end="0:00:54.18"><span tts:fontSize="14" tts:color="black" >but I do understand that there will also be a panel during the lunch and</span></p>
      <p begin="0:00:54.18" end="0:00:57.73"><span tts:fontSize="14" tts:color="black" >that there will be an opportunity also to continue the discussion.</span></p>
      <p begin="0:00:57.73" end="0:01:03.71"><span tts:fontSize="14" tts:color="black" >But I'm hoping that we can get one started also during the course of my remarks. So,...</span></p>
      <p begin="0:01:03.71" end="0:01:03.71"></p>
    </div>
  </body>
</tt>

Duplicate Code

Duplicate code, sometimes referred to as clones, is a cluster of code blocks that are functionally equivalent (or nearly equivalent) spanning across two or more locations within a solution. Duplicate code is expensive to maintain because:

  1. Multiplied bugs. A bug in one clone means there’s a bug in all the copies. This can lead to a continued, repeated release of previously-fixed bugs as each copy of the bug is individually discovered by a customer and then fixed by the team.
  2. Flexibility barriers. If the copied code needs to be more flexible, changes need to be made across all the copies or ideally, the copies need to be consolidated first. Unfortunately consolidation is a high-risk, error-prone, time-consuming activity.
  3. Increased ramp-up time. Copy the code and new developers trying to get up to speed will have twice as much code to read and understand. If discovered, duplicated code tends to be harder to understand than normal code because the reader must not only understand functionality, but also understand the reason behind the duplication.