Tag Archives: Python

Book: Introduction to Python: For Scientists and Engineers


Introduction to Python: For Scientists and Engineers

Python is an all-in-one solution for scientific needs. Its popularity can be judged from the fact that it is now world’s most preferred language for coding purposes. The book introduces basic python for the purpose of scientific computation. The book is useful for students, researchers and students who are looking for a open source software for numerical computation.

Setting up OpenStack python SDK


Setting up OpenStack python SDK
// FitProgrammer@Work

To setup openstacksdk on Oracle VM Server 3.3.3 (in our case it is where we host our all-in-one OpenStack):
$ sudo su –
# cd /etc/yum.repos.d
# rm -f *
# wget http://public-yum.oracle.com/public-yum-ol6.repo
# yum clean all
# yum makecache
# yum install gcc

The above step may take quite some time and is only required to install gcc. If one already has gcc installed then skip to the following step.

New Release of Aspose.Pdf Cloud SDK for Python – A Complete Solution to Manipulate PDF Portab le Document Format in Python Using Powerful Aspose.Pdf Cloud APIs


New Release of Aspose.Pdf Cloud SDK for Python – A Complete Solution to Manipulate PDF Portable Document Format in Python Using Powerful Aspose.Pdf Cloud APIs
// Blogs – Aspose.com

Aspose.Pdf for Cloud

aspose pdf for cloud 140px New Release of Aspose.Pdf Cloud SDK for Python – A Complete Solution to Manipulate PDF Portable Document Format in Python Using Powerful Aspose.Pdf Cloud APIsAspose.Pdf for Cloud’s platform independent document manipulation API is a true REST API that can be used with any language: .NET, Java, PHP, Ruby, Rails, Python, jQuery and many more. You can use it with any platform — web, desktop, mobile, and cloud.

With Aspose.Pdf for Cloud you can work with all aspects of PDF (portable document format) file: read, write, convert, split, merge and many more options to manipulate PDF documents. Aspose.Pdf for Cloud is a complete solution for performing any manipulation you can wish to perform on PDF files in the cloud. Learn More

Video: What I learned teaching programming to 150 beginners


A few months ago I was invited to give a workshop at Women’s International Leadership Conference on Introduction to Programming. That was an amazing experience that taught me incredible things and motivated me to open source all the steps. Some of the topics I’ll cover on this talk are:

– Why Javascript is an appropriate introductory language to programming, versus popular teaching choices such as Python

– What is feasible in a short length workshop

– How programming workshops empower and inspire learners

– How this experience contributed to my own learning, as well as personal and professional growth

– The materials to reproduce this workshop

Writing an API with Tornado


via Writing an API with Tornado.

Our API servers at indico are written in Python using Tornado as a server framework. Tornado is a Python web framework and asynchronous networking library originally developed at FriendFeed. By using non-blocking network I/O, Tornado can scale to tens of thousands of open connections. Some of the APIs we provide take some time to process so we take advantage of Tornado’s scalability and non-blocking I/O to support these longer user connections.

Given indico’s use of Tornado, I would simply like to share a boilerplate to spinning up an API server using Tornado.

From Python to Go: migrating our entire API


via From Python to Go: migrating our entire API – Repustate.

If you want to know the whole story, read on. But for the impatient out there, here’s the executive summary:

  • We migrated our entire API stack from Python (First Django then Falcon) to Go, reducing the mean response time of an API call from 100ms to 10ms
  • We reduced the number of EC2 instances required by 85%
  • Because Go compiles to a single static binary and because Go 1.5 makes cross compilation a breeze, we can now ship a self-hosted version of Repustate that is identical to the one we host for customers. (Previously we shipped virtual machine appliances to customers which was a support nightmare)
  • Due to the similarity between Python and Go, we were able to quickly re-purpose our unit tests written in nose to fit the structure that Go requires with a just a few simple sed scripts.

Integrating NodeJS & Python to Write Cross-Language Modules using pyExecJs


via Integrating Node.js & Python to Write Cross-Language Modules using pyExecJs | Codementor.

To answer the inevitable first question of “why” I’m doing this tutorial, it’s because I have been writing more and more JavaScript lately, and I have been using paver, which is a Python module, to automate my JavaScript build tasks (e.g. compiling CoffeeScript, and minification.)

Now, in an attempt to minimize the actual amount of JavaScript I write, I would like to add ng-annotate as a step in my build process. This will allow me to write all of my angular code without thinking about its dependency injection, but still taking advantage of it. However, there currently is no Python module that I can use to run code through ng-annotate, which is a JavaScript library.