Re: How to Begin Web Development with Python ?

2013-06-01 Thread Giorgos Tzampanakis
Chitrank Dixit wrote: > Hello Python developers > > I have learnt python and used it for various purposes for scietific > computing using sage and GUI development using Tkinter and lots more. I > want to start web development using python My goal is to learn the web > development in python from th

Re: Python toplevel in a Web page

2013-06-01 Thread Giorgos Tzampanakis
On 2013-05-30, Franck Ditter wrote: > Hello, > I wonder if I can find some source code example > of a Python 3 toplevel box in a Web page. > Something simple, no mySQL, no Django hammer, etc. > Just the basics of the technology to get the > content of a small text editor in which the user > writes

Re: Cutting a deck of cards

2013-06-01 Thread Giorgos Tzampanakis
On 2013-05-26, RVic wrote: > Suppose I have a deck of cards, and I shuffle them > > import random > cards = [] > decks = 6 > cards = list(range(13 * 4 * decks)) > random.shuffle(cards) > > So now I have an array of cards. I would like to cut these cards at some > random point (between 1 and 13 * 4

Re: Changing filenames from Greeklish => Greek (subprocess complain)

2013-06-02 Thread Giorgos Tzampanakis
> The above error message happened when i tried to reanme one of my > filenames from > > its greeklish name to greek charcters. > > files.py is a script that allows users to downlaod fiels form my server. > But i wish to presnt filename sin Greek and not in Greeklish > > http://superhost.gr/?page=f

Re: Changing filenames from Greeklish => Greek (subprocess complain)

2013-06-02 Thread Giorgos Tzampanakis
On 2013-06-02, Νικόλαος Κούρας wrote: [snip unreadable code] Okay, this sounds like a homework exercise. Also, it doesn't appear like you've spent any amount of time researching a solution yourself. -- Real (i.e. statistical) tennis and snooker player rankings and ratings: http://www.statsfair.

Re: How to increment date by week?

2013-06-04 Thread Giorgos Tzampanakis
On 2013-06-04, PieGuy wrote: >Starting on any day/date, I would like to create a one year list, by >week (start date could be any day of week). Having a numerical week >index in front of date, ie 1-52, would be a bonus. >ie, 1. 6/4/2013 >2. 6/11/2013 >3. 6/18/

Re: Debugging memory leaks

2013-06-13 Thread Giorgos Tzampanakis
On 2013-06-13, dieter wrote: >> ... Anyway, my real question is how to go about debugging memory leak >> problems in Python, particularly for a long running server process >> written with Twisted. I'm not sure how to use heapy or guppy, and >> objgraph doesn't tell me enough to locate the problem

Re: Debugging memory leaks

2013-06-14 Thread Giorgos Tzampanakis
On 2013-06-14, Steven D'Aprano wrote: > On Thu, 13 Jun 2013 20:15:42 +, Giorgos Tzampanakis wrote: > >>> Therefore: if the leak seems to be small, it may be much more advicable >>> to restart your process periodically (during times where a restart does >>

Memory usage steadily going up while pickling objects

2013-06-14 Thread Giorgos Tzampanakis
I have a program that saves lots (about 800k) objects into a shelve database (I'm using sqlite3dbm for this since all the default python dbm packages seem to be unreliable and effectively unusable, but this is another discussion). The process takes about 10-15 minutes. During that time I see memor

Re: Memory usage steadily going up while pickling objects

2013-06-15 Thread Giorgos Tzampanakis
On 2013-06-15, Peter Otten wrote: > Giorgos Tzampanakis wrote: > >> I have a program that saves lots (about 800k) objects into a shelve >> database (I'm using sqlite3dbm for this since all the default python dbm >> packages seem to be unreliable and effectively unu

Re: Memory usage steadily going up while pickling objects

2013-06-15 Thread Giorgos Tzampanakis
On 2013-06-15, Dave Angel wrote: > On 06/14/2013 07:04 PM, Giorgos Tzampanakis wrote: >> I have a program that saves lots (about 800k) objects into a shelve >> database (I'm using sqlite3dbm for this since all the default python dbm >> packages seem to be unreliable and

Re: Memory usage steadily going up while pickling objects

2013-06-15 Thread Giorgos Tzampanakis
On 2013-06-15, Peter Otten wrote: > Giorgos Tzampanakis wrote: > >> So it seems that the pickle module does keep some internal cache or >> something like that. > > I don't think there's a global cache. The Pickler/Unpickler has a per- > instance cache (the m

Re: Version Control Software

2013-06-15 Thread Giorgos Tzampanakis
On 2013-06-15, Roy Smith wrote: >> And that right there is why modern source control systems are >> distributed, not centralized. It's so much easier with git; we lost >> our central hub at one point, and another dev and I simply pulled from >> each other for a bit until we got a new Scaphio onlin

Re: Using Python to automatically boot my computer at a specific time and play a podcast

2013-06-17 Thread Giorgos Tzampanakis
On 2013-06-16, C. N. Desrosiers wrote: > I'm planning to buy a Macbook Air and I want to use it as a sort of > alarm. I'd like to write a program that boots my computer at a specific > time, loads iTunes, and starts playing a podcast. Is this sort of thing > possible in Python? I would suggest

Re: Python development tools

2013-06-23 Thread Giorgos Tzampanakis
On 2013-06-23, cutems93 wrote: > Hello, > > I am new to python development and I want to know what kinds of tools > people use for python development. I went to Python website and found > several tools. > > 1. Automated Refactoring Tools > 2. Bug Tracking > 3. Configuration And BuildTools > 4. D

Re: How to make a web framework

2013-06-28 Thread Giorgos Tzampanakis
On 2013-06-27, gamesbrain...@gmail.com wrote: > I've used web frameworks, but I don't know how they work. Is there > anywhere that I can learn how this all works from scratch? Yes, read the source code of a mature framework. -- Real (i.e. statistical) tennis and snooker player rankings and rati

Re: MeCab UTF-8 Decoding Problem

2013-06-29 Thread Giorgos Tzampanakis
On 2013-06-29, fob...@gmail.com wrote: > Hi, > > I am trying to use a program called MeCab, which does syntax analysis on > Japanese text. The problem I am having is that it returns a byte string > and if I try to print it, it prints question marks for almost all > characters. However, if I try to

Re: Editor Ergonomics [was: Important features for editors]

2013-07-08 Thread Giorgos Tzampanakis
On 2013-07-06, Skip Montanaro wrote: > More likely, rms ignored the problem and had bad personal ergomonics: > ignorance or lack of understanding of the problem, poor posture, > wrists not in a neutral position, lack of breaks, etc. If you stop to > think about it, all text editors probably prese

Re: Editor Ergonomics [was: Important features for editors]

2013-07-14 Thread Giorgos Tzampanakis
On 2013-07-12, Steven D'Aprano wrote: > On Thu, 11 Jul 2013 09:45:33 -0400, Roy Smith wrote: > >> In article <2fdf282e-fd28-4ba3-8c83-ce120...@googlegroups.com>, >> jus...@zeusedit.com wrote: >> >>> On Wednesday, July 10, 2013 2:17:12 PM UTC+10, Xue Fuqiao wrote: >>> >>> > * It is especiall

Re: python to enable javascript , tried selinium, ghost, pyQt4 already

2014-01-19 Thread Giorgos Tzampanakis
On 2014-01-18, Jaiprakash Singh wrote: > hi, > > can you please suggest me some method for study so that i can > scrap a site having JavaScript behind it > > > i have tried selenium, ghost, pyQt4, but it is slow and as a am > working with thread it sinks my ram memory very fast. I

Re: Single Object Detection and Tracking Steps

2014-01-24 Thread Giorgos Tzampanakis
On 2014-01-24, hottrac...@gmail.com wrote: > I am doing single object detection and tracking in a video file using > python & opencv2. As far I know the steps are, > > Video to frame conversion > Grayscale conversion > Thresholding > After phase 3, I got sequence of binary images. > > My questions

Re: Proposal for new minor syntax

2015-04-08 Thread Giorgos Tzampanakis
On 2015-03-28, Rustom Mody wrote: > Dunno if related... > One thing that is a bit laborious in python are object initializers: > > self.attr1 = field1 > self.attr2 = field2 Vim's "visual block" feature is your friend in such cases... Pretty sure that other editors have something equivalent, t

Re: shell access

2010-01-11 Thread Giorgos Tzampanakis
On 2010-01-11, monkeys paw wrote: > >>> print 'hey' > 'hey' > >>> # I want to access the shell here, how do i do that? Look into the commands module. -- http://mail.python.org/mailman/listinfo/python-list

Writing an assembler in Python

2010-02-22 Thread Giorgos Tzampanakis
I'm implementing a CPU that will run on an FPGA. I want to have a (dead) simple assembler that will generate the machine code for me. I want to use Python for that. Are there any libraries that can help me with the parsing of the assembly code? -- http://mail.python.org/mailman/listinfo/python