Wednesday, May 28, 2014

Single-File Stand-alone Python 2.7.5 for Windows

If you don't want to install Python on your client.
Here is a solution :

Quote from site :

I frequently write programs in python as it is a handy, powerful language. However, sometimes I don't want to install it. There are some other projects to give a portable python implementation. That still seems too heavy for some tasks.
Here is a Windows executable form of Python 2.7.5 that contains most of the standard libraries, plus pywin32. It has the following features:
  • Single file with no dependencies besides Windows (XP or later)
  • Can run python programs (e.g., py.exe sample_program.py)
  • Can be used as an interactive shell (e.g., py.exe, then start typing)
  • Can be used to execute string commands (e.g., py.exe -c "print 'hello world'")

I've included the very simple source code, which is nothing more than a setup.py script using py2exe. I compressed the executable using upx, which reduces its size by 12% or so and doesn't substantially slow down starting the program.

http://www.orbitals.com/programs/pyexe.html

Javascript CorMVC

This library is one which influenced the most my way to write Javascript applications.
Quote from site :

CorMVC stands for, "Client-Only-Required Model-View-Controller," and is designed to be an extract-and-run learning tool for those who want to start building more complex applications. It does not presuppose any server-side technology and requires no more than a web browser to experiment with
http://www.bennadel.com/blog/1790-cormvc-my-jquery-powered-model-view-controller-mvc-framework.htm

Book Review: Programming Collective Intelligence in Python

A nice review for a great book

Une application desktop en Node.js avec node-webkit

Citation d'après le site:

By | 29 octobre 2013
Le concept de base de Node.js est de pouvoir écrire des application en JavaScript indépendamment de tout navigateur web. Cela inclut notamment la création de serveur, mais le programme node-webkit donne une possibilité supplémentaire : la possibilité de créer des applications desktop multi-plateformes.

http://www.decouvrir-nodejs.fr/2013/10/29/une-application-desktop-en-node-js-avec-node-webkit/

Microsoft Updates Python Tools for Visual Studio

Quote from site

"PTVS," as it's called, includes "integrated IPython REPL support for smart history, shell commands and inline images." It also contains Python-specific tools like mixed mode debugging of Python with C++ and remote debugging of Linux servers in Azure.

http://visualstudiomagazine.com/articles/2014/04/10/python-tools-for-visual-studio.aspx 

Using Knockout Custom Binding Handlers

Quote from site:

Knockout custom binding handlers can help simplify integration with third-party JavaScript libraries. Here's how.

 http://visualstudiomagazine.com/articles/2014/04/01/using-knockout-custom-binding-handlers.aspx

StreamlineJS Asynchronous programming made easy

Take a look at the sample page

http://sage.github.io/streamlinejs/examples/streamlineMe/streamlineMe.html

Build Desktop Apps with JavaScript and Node WebKit

Quote from site

What if we could approach the problem from a different angle? What if we took an existing, non-visual platform that already allows developers to do whatever they want and put a visual layer on top of it? That platform is Node.js and that visual layer is WebKit. Put them together, with Javascript as the underlying engine and WebKit as the visual layer, and you have Node-WebKit!

http://flippinawesome.org/2014/02/10/build-desktop-apps-with-javascript-and-node-webkit/

Monday, May 26, 2014

A Curious Course on Coroutines and Concurrency

Quote from site:

This tutorial is a practical exploration of using Python coroutines (extended generators) for solving problems in data processing, event handling, and concurrent programming. The material starts off with generators and builds to writing a complete multitasking environment that can run thousands of concurrent tasks without using threads or using code based on event-driven callbacks (i.e., the "reactor" model). 

http://www.dabeaz.com/coroutines/