General (170) RSS

Run Python script method using eval statement

Posted in PyMantra | Category: General

  Recently i did excellent work around to run python script using eval statement.     [code python]p_obj...

 
numbercruncher

Comprehending List Comprehensions

Posted in python-for-analysts | Category: General

List comprehensions are often a bit intimidating to developers who are new to Python. They are really much friendlier than that...

 

Algoritmo en Python para obtener las progresiones de...

Posted in bytesofcode | Category: General

Desde el IDLE:   >> chords = ["I", "ii", "iii", "IV", "V",...

 

Workaround for Python bug: 'ascii' codec can't encode...

Posted in mypy | Category: General

Have you ever needed to read unicode data file from Python? If so, you know that it is harder than it sounds. Even if...

 
muthuvel

Python-Basics

Posted in muthuvel-PythonBlog | Category: General

List of Python Software : http://en.wikipedia.org/wiki/List_of_Python_software  ...

 

Java Struts and DBCP object created........never closed.

Posted in PyMantra | Category: General

Recently, i was working on Java Struts. I faced an issue and i suppose it's worth to write down here so that it work as quick help for...

 
rbwilkinson

PYGTK?

Posted in Skink Py | Category: General

For the application I will be using Aptana 3 as my IDE. I have used gedit but I want to wallow around in something that makes me feel...

 
bharath6725

File for Copying the Directory to other location which...

Posted in Concepts4u | Category: General

import sys import os import tkMessageBox from Tkinter import * from tkCommonDialog import Dialog...

 
bharath6725

Copying the Directory from one Location to Another

Posted in Concepts4u | Category: General

import sys import os import tkMessageBox from Tkinter import * from tkCommonDialog import Dialog import shutil import...

 

Script en bash para redimensionar imágenes

Posted in bytesofcode | Category: General

El script funciona de la siguiente forma:  user@host:~$ script directorio 800x600 Donde:...

 

python quiz program

Posted in PyMantra | Category: General

A very simple quiz written in python with very few lines: [code python]  from random import randint solved =...

 

pyjamas - run python script onclick of button

Posted in PyMantra | Category: General

I was designing a web application where i need a simple button to run a bunch of python code resides in Unix system and to show log...

 
mike

Timer Help Python 2.5

Posted in Timer Help | Category: General

Does anyone know how to make a Timer function in Python 2.5. Cancel or .cancel() only stops the Timer while in execution, but how do...

 
tomsimmons

Artist new release search program

Posted in aashift | Category: General

This is the first program I've written that has actually served a real purpose to me, that I use frequently. Feel free to criticize and...

 

Disc space available

Posted in PyMantra | Category: General

  Recently i was running a script which uses "/tmp" heavily for all file processing and rolling-up. So at each...

 

N-ésima permutación lexicográfica

Posted in bytesofcode | Category: General

En este post tenemos dos funciones en python para obtener la n-ésima permutación lexicográfica de un conjunto de...

 

Código en python para hacer "La criba de Eratóstenes"

Posted in bytesofcode | Category: General

Bueno como ya es de saberse en cada uno de los post donde exponga algún código de python sera de la versión 3.1...

 

Función en python 3 para obtener una lista de factores...

Posted in bytesofcode | Category: General

El día de hoy estuve buscando con un algoritmo para obtener una lista de factores primos de un número y me tope con...

 

Script en bash para actualizar y limpiar el sistema con...

Posted in bytesofcode | Category: General

Ya tengo algún tiempo con este pequeño script el cual en pocas palabras lo que hace es actualizarme la lista de paquetes...

 

Extract comments in your python code

Posted in PyMantra | Category: General

Comments in your code are always good for new person to understand the logic and flow of program. I guess, people likes programming...

 

Python vs. Haskell vs. PHP - real world performance

Posted in mypy | Category: General

Recently I had to optimize a legacy PHP cgi application, which worked fine but was too slow for its purpose. The main bottleneck was...

 

Simple Web Server in python

Posted in PyMantra | Category: General

Recently, I was hanging arround flex codes which calls python script resides on other server through web services. I got confused, Is...

 
tman

File Open question

Posted in file open problems | Category: General

I want to process a test file from my hard drive. cannot figure out how to enter my file name. I really need to see a...

 

Split list into number of pieces

Posted in PyMantra | Category: General

Today, while working with csv files i got into fantastic situation where i have a list of million values and i make iteration on that. So...

 

Dynamicaly open file

Posted in PyMantra | Category: General

Recently i had gone through a situation like to split a 40GB csv file for further processing, into 60 pieces having name/content to...

 

Form submit using Twill

Posted in PyMantra | Category: General

Recently, i found excellent use of Twill module of python. I have used twill before, just to check multiple login functionality of...

 

Subversion with SSL

Posted in PyMantra | Category: General

I have recently installed SVN to my system, and configured it with SSL. Adding it here might help...

 

Dictionary as Generator

Posted in PyMantra | Category: General

What will you do if you are creating dictionary structure dynamically, and it got millions of keys? Accessing that dictionary...

 

Call Python script from Java

Posted in PyMantra | Category: General

I am not good at core java programming, but good at "Hello World" kind of program :) . SO i wrote a Java program to call...

 

Rename multiple file simultaneously

Posted in PyMantra | Category: General

Renaming multiple file  once is really little confusing using command-line. There are lots of way to do it via programming, but...

 
«Previous   1 2 3 4 5 6  Next»