General (170) RSS

Global Article Categories

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...

 
pythonista

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...

 
pythonista

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...

 
pythonista

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...

 
pythonista

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...

 
psan

for loop for two lists

Posted in shell to python | Category: General

Hi   I would like to make permutation of two lists in python.  for example:  first file ...

 
psan

cshell to python

Posted in shell to python | Category: General

Hi Can some one give me few tips how to convert shell script to python code? Santosh  

 
sooryaagni

Migrating code from python 2.6 to python 3

Posted in Need help in Python 3 | Category: General

Hi, I recently bought the gray hat python book and am very much satisfied for the money paid.However I have a quick question...

 
tutkudalmaz

PyQt4 and Windows7 64bit Error

Posted in Python Adventures | Category: General

I've decided to use PyQt which is more attractive Graphical User Interface (GUI) than Tkinter. I downloaded the setup file from...

 
tutkudalmaz

Caesar Cipher

Posted in Python Adventures | Category: General

Everyone knows Caesar Cipher in crypthography. There is a source word and on the other hand there is a step number. According to...

 
«Previous   1 2 3 4 5 6 7  Next»