Re: How to get live streaming of friends tweets??

2010-04-23 Thread Florian Diesch
http://arstechnica.com/open-source/guides/2010/04/tutorial-use-twitters-new-real-time-stream-api-in-python.ars has some explanations about how to use real-time stream API eka (Esteban) ekagauranga...@gmail.com writes: IMO the real time update is your work to do. You can poll, to say, each

ANN: easygconf 0.03

2010-02-16 Thread Florian Diesch
I'm happy to announce easygconf 0.03 Get it at http://www.florian-diesch.de/software/easygconf/ Changes since 0.02: --- * renamed GConfDict.add_listner() to add_listener() * fixed bug in GConfDict.from_python() (thanks to Pawn Hearts pawn13 at gmail.com) easygconf

Re: Rounding up to the next 100

2010-01-21 Thread Florian Diesch
noydb jenn.du...@gmail.com writes: If one has a floating number as a string, is there a spiffy way to round that string-number UP to the nearest 100? XstrNmbr = 3579.127893 -- would want to round that to 3600. math.ceil(3579.127893/100)*100 Florian -- GUIs programmieren mit Python und

Re: Sort list of dictionaries by key (case insensitive)

2010-01-13 Thread Florian Diesch
Nico Grubert nicogrub...@gmail.com writes: Hi there I have the following list 'mylist' that contains some dictionaries: mylist = [{'title':'the Fog', 'id':1}, {'title':'The Storm', 'id':2}, {'title':'the bible', 'id':3}, {'title':'The thunder', 'id':4}

Re: Scripting (was Re: Python books, literature etc)

2010-01-08 Thread Florian Diesch
Jorgen Grahn grahn+n...@snipabacken.se writes: Regarding the book's title: is it just me, or are Python programmers in general put off when people call it scripting? I won't attempt a strict definition of the term scripting language, but it seems like non-programmers use it to mean less

Re: restructuredText editor ?

2010-01-08 Thread Florian Diesch
Peter vm...@mycircuit.org writes: What editor do people out there use to edit .rst files for sphinx-python documentation ? Emacs with ReST mode and YASnippet Florian -- http://www.florian-diesch.de/software/pdfrecycle/ -- http://mail.python.org/mailman/listinfo/python-list

ANN: easygconf 0.02

2009-11-16 Thread Florian Diesch
I'm happy to announce easygconf 0.02. Get it at http://www.florian-diesch.de/software/easygconf easygconf provids an easy, pythonic way to access GConf through a dict-like interface. Example --- from easygconf import GConfDict import gtk key = 'test

Re: Distributing Python-programs to Ubuntu users

2009-09-25 Thread Florian Diesch
Ben Finney ben+pyt...@benfinney.id.au writes: Olof Bjarnason olof.bjarna...@gmail.com writes: - any geeks visiting my blog that are non-Ubuntu (i'll just provide the source code and tell them to apt-get python-pygame) Note that for several years now the recommended command-line tool for

Re: ubuntu dist-packages

2009-08-27 Thread Florian Diesch
Robin Becker ro...@reportlab.com writes: Florian Diesch wrote: . From /usr/lib/python2.6/site.py: , | For Debian and derivatives, this sys.path is augmented with directories | for packages distributed within the distribution. Local addons go | into /usr/local/lib/pythonversion

Re: ubuntu dist-packages

2009-08-26 Thread Florian Diesch
Robin Becker ro...@reportlab.com writes: I was surprised a couple of days ago when trying to assist a colleage with his python setup on a ubuntu 9.04 system. We built our c-extensions and manually copied them into place, but site-packages wasn't there. It seems that ubuntu now wants stuff to

ANN: easygconf 0.01

2009-07-23 Thread Florian Diesch
I'm happy to announce easygconf 0.01 Get it at http://www.florian-diesch.de/software/easygconf/ easygconf provids an easy, pythonic way to access GConf http://projects.gnome.org/gconf/ through a dict-like interface. Example --- from easygconf import GConfDict

ANN: pdfrecycle 0.05

2009-06-17 Thread Florian Diesch
I'm happy to announce pdfrecycle 0.05 Get it at http://www.florian-diesch.de/software/pdfrecycle/ pdfrecycle creates a PDF file by composing pages from other PDF files. It can add PDF bookmarks and metadata, scale, rotate and crop pages and put multiple logical pages onto each physical sheet.

ANN: Peggy 0.02

2009-03-29 Thread Florian Diesch
I'm pleased to announce Peggy 0.02 Get it at http://www.florian-diesch.de/software/peggy/ What is Peggy? === Peggy helps you to create GTK applications that run out-of-the-egg. It offers functions to load ressources (like .glade files, images, locales) from a (zipped or

ANN: xxgamma 0.06

2009-03-19 Thread Florian Diesch
I'm happy to announce xxgamma 0.06 Get it at http://www.florian-diesch.de/software/xxgamma/ xxgamma is an PyGTK based GUI for xgamma which allows you to load, modify and store multiple gamma correction profiles for XFree86 and X.org through a GUI and a command line interface. Version 0.06

ANN: Peggy 0.01

2009-03-05 Thread Florian Diesch
I'm pleased to announce Peggy 0.01 Get it at http://www.florian-diesch.de/software/peggy/ Peggy helps you to use resources inside a package, especially resources used by PyGtk classes, like images or glade files. It works for zipped eggs or packages just somewhere in sys.path. Peggy is a thin

firkin 0.02

2008-10-15 Thread Florian Diesch
I'm happy to announce release 0.02 of firkin http://www.florian-diesch.de/software/firkin/ What is firkin? === firkin is a python module to convert between different measurement units. Status == firkin is alpha software. So far it seems to work for me but it may

Re: formating a filesystem with python

2008-09-11 Thread Florian Diesch
Ricardo Tiago [EMAIL PROTECTED] wrote: is there a package in python that allows to mount/umount and format (to ext3) a filesystem? I know that this is possible by just calling the os commands 'mount/umount and mkfs' but this would imply to have to change sudoers to run the script as non-root.

Re: Where to get BeautifulSoup--www.crummy.com appears to be down.

2008-04-30 Thread Florian Diesch
John Nagle [EMAIL PROTECTED] wrote: Perl has CPAN, which is reasonably comprehensive and presents modules in a uniform way. If you need a common Perl module that's not in the Perl distro, it's probably in CPAN. Installing a new module can be as simple as typing perl -MCPAN -e 'install

Re: dream hardware

2008-02-13 Thread Florian Diesch
Jeff Schwab [EMAIL PROTECTED] wrote: On Feb 12, 2008 1:05 PM, [EMAIL PROTECTED] wrote: What is dream hardware for the Python interpreter? Warren Myers wrote: A Cray? What are you trying to do? dream hardware is a very wide question. The only dream hardware I know of is the human brain.

Re: Linux Journal Survey

2008-02-04 Thread Florian Diesch
Albert van der Horst [EMAIL PROTECTED] wrote: In article [EMAIL PROTECTED], Russ P. [EMAIL PROTECTED] wrote: On Jan 23, 7:42 pm, George Sakkis [EMAIL PROTECTED] wrote: On Jan 23, 8:14 pm, [EMAIL PROTECTED] wrote: The annual Linux Journal survey is online now for any Linux users who want

Re: where do my python files go in linux?

2008-01-13 Thread Florian Diesch
Jorgen Bodde [EMAIL PROTECTED] wrote: I am trying to make a debian package. I am following the tutorial by Horst Jens (http://showmedo.com/videos/video?name=linuxJensMakingDebfromSeriesID=37) and it is very informative. However one thing my app has and his doesn't, is multiple python files

Re: exception message output problem

2007-12-23 Thread Florian Diesch
Lie [EMAIL PROTECTED] wrote: # Python have an odd (read: broken) singleton implementation # single member tuple must have a comma behind it Otherwise (1+2)+(3+4) would evaluate to (3, 7) instead of 10. Florian -- http://www.florian-diesch.de/

Re: Problem untaring python2.5

2007-12-20 Thread Florian Diesch
abhishek [EMAIL PROTECTED] wrote: Hi everyone , i am not able to untar python 2.5 source code using tar -xvzf . Is it a problem with my system settings or python 2.5 itself. When i tried to do it it resulted in following errors -- tar: Skipping to next header

Re: pydoc - how to generate documentation for an entire package?

2007-12-20 Thread Florian Diesch
kirillrd [EMAIL PROTECTED] wrote: On Nov 20, 4:28 pm, Jens [EMAIL PROTECTED] wrote: On 20 Nov., 08:19, Marc 'BlackJack' Rintsch [EMAIL PROTECTED] wrote: On Mon, 19 Nov 2007 10:50:28 -0800, Jens wrote: Generating documentation form code is a nice thing, but this pydoc.py is driving me

Re: Best way to protect my new commercial software.

2007-12-12 Thread Florian Diesch
farsheed [EMAIL PROTECTED] wrote: Thanks. But I ask this question technically, I mean I know nothing is uncrackable and popular softwares are not well protected. But my software is not that type and I don't want this specific software popular. It is some kind of in house tool and I want to

Re: Distinguishing attributes and methods

2007-12-11 Thread Florian Diesch
MonkeeSage [EMAIL PROTECTED] wrote: It seems that I've got a short-circuit somewhere here. I understand that everything is an object and the the storage/lookup system is object-agnostic, and that it is only the descriptors (or tags as I called them generically) that determine how an attribute

Re: Python re expr from Perl to Python

2007-01-07 Thread Florian Diesch
Michael M. [EMAIL PROTECTED] wrote: In Perl, it was: ## Example: Abc | def | ghi | jkl ## - Abc ghi jkl ## Take only the text betewwn the 2nd pipe (=cut the text in the 1st pipe). $na =~ s/\ \|(.*?)\ \|(.*?)\ \|/$2/g; ## -- remove [ and ] in text $na =~ s/\[//g;

Re: alternate language

2006-12-15 Thread Florian Diesch
Bryan [EMAIL PROTECTED] wrote: what is a good alternate language to learn? i just want something to expand my mind and hopefully reduce or delay any chance of alzheimer's. i would especially like to hear from those of you who learned python _before_ these languages. haskell, erlang, ocaml,

Re: How to choose the right GUI toolkit ?

2006-11-11 Thread Florian Diesch
Dan Lenski [EMAIL PROTECTED] wrote: So, is there another toolkit I should be looking at? Having something that can run easily on Cygwin and native Windows is a priority so that I can quickly move programs to new measurement computers. I like GTK a lot and Tk is growing on me too.. are there

Re: Python tools for managing static websites?

2006-11-04 Thread Florian Diesch
Chris Pearl [EMAIL PROTECTED] wrote: Are there Python tools to help webmasters manage static websites? I'm talking about regenerating an entire static website - all the HTML files in their appropriate directories and sub-directories. Each page has some fixed parts (navigation menu, header,

Re: People's names (was Re: sqlite3 error)

2006-10-17 Thread Florian Diesch
Hendrik van Rooyen [EMAIL PROTECTED] wrote: Lawrence D'Oliveiro [EMAIL PROTECTED] wrote: In message [EMAIL PROTECTED], Hendrik van Rooyen wrote: Lawrence D'Oliveiro [EMAIL PROTECTED] wrote: 8 I wonder if we need another

Re: ideas for programs?

2006-06-04 Thread Florian Diesch
Brandon McGinty [EMAIL PROTECTED] wrote: I've been learning python for the past couple of months and writing misc scripts here and there, along with some web apps. I'm wondering if anyone has ideas of programs I might try my hand at making? Something I wanted a few days ago: I have a graph

Re: Python - Web Display Technology

2006-05-19 Thread Florian Diesch
bruno at modulix [EMAIL PROTECTED] wrote: SamFeltus wrote: I am trying to figure out why so little web development in Python uses Flash as a display technology. It seems most Python applications choose HTML/CSS/JS as the display technology, yet Flash is a far more powerful and elegant

Re: python rounding problem.

2006-05-13 Thread Florian Diesch
Thomas Bartkus [EMAIL PROTECTED] wrote: Grant Edwards [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] On 2006-05-08, Thomas Bartkus [EMAIL PROTECTED] wrote: does python support true rations, which means that 1/3 is a true one-third and not 0.3 rounded off at some

Re: Hooking things up in GUI application

2006-04-29 Thread Florian Diesch
Ryan Ginstrom [EMAIL PROTECTED] wrote: Behalf Of sturlamolden If you use PyGTK (it also runs on Windows), you can design the GUI with GLADE and then use libglade to import the gui as an xml-resource. Yes, I've tried something similar with wxGlade. Nice, but it doesn't seem to remove the

Re: detecting drives for windows and linux

2006-03-29 Thread Florian Diesch
[EMAIL PROTECTED] (Alex Martelli) wrote: Florian Diesch [EMAIL PROTECTED] wrote: ... are and want to do it anyway?) Linux puts the whole file system (including mounted iPods, ISOs and NTFS drives) in one hierarchy. Yes, but you may still want to distinguish (because, for example

Re: detecting drives for windows and linux

2006-03-27 Thread Florian Diesch
[EMAIL PROTECTED] (Alex Martelli) wrote: Max [EMAIL PROTECTED] wrote: BWill wrote: oh, I wasn't expecting a single solution for both platforms, just some good solutions thanks Are you aware that this idea is somewhat foreign to Linux? (Maybe you are and want to do it anyway?)

Re: UML from py sources

2006-03-24 Thread Florian Diesch
Ravi Teja [EMAIL PROTECTED] writes: Not to interrupt the valuable lesson with Google :-) Boa Constructor. dia and dia2code Florian -- Es gibt Leute, die von sich behaupten wenn ich Kaffee trinke, kann ich nicht schlafen!. Bei mir ist das umgekehrt: Wenn ich schlafe, kann ich keinen

Re: Type Hinting vs Type Checking and Preconditions

2006-03-10 Thread Florian Diesch
Tom Bradford [EMAIL PROTECTED] writes: Let me first say that I'm sure that this subject has come up before, and so forgive me for beating a dead horse. Secondly, let me say that Python's strength is its dynamic nature, and I don't believe that it should ever require a precondition

Re: Printing a file

2006-03-03 Thread Florian Diesch
Fabian Steiner [EMAIL PROTECTED] wrote: I am currently working on an application where the user is able to create new worksheets and to delete existing ones. All of these worksheets have the same structure (-- template?), only some values should be changed. A minimal example would be

Re: Too Many if Statements?

2006-02-09 Thread Florian Diesch
Alan Morgan [EMAIL PROTECTED] wrote: In article [EMAIL PROTECTED], Bryan Olson [EMAIL PROTECTED] wrote: Alan Morgan wrote: slogging_away wrote: Hi - I'm running Python 2.4.2 (#67, Sep 28 2005, 12:41:11) [MSC v.1310 32 bit (Intel)] on win32, and have a script that makes numerous checks on

Re: OS.MKDIR( ) Overwriting previous folder created...

2006-02-04 Thread Florian Diesch
Ernesto [EMAIL PROTECTED] wrote: NEVERMIND ! Here is the solution... # if (os.path.isdir(C:\\MyNewFolder) == 0): os.mkdir(C:\\MyNewFolder) # - Maybe some

Re: PYTHONDOCS

2006-01-09 Thread Florian Diesch
J. D. Leach [EMAIL PROTECTED] wrote: Peter Otten wrote: You are getting no match rather than the wrong one. Have you verified that a subdirectory /usr/share/doc/python-2.4/html/lib exists on your system? If not, the documentation may not be properly installed. I checked it Peter and

Re: Rename files with numbers

2005-11-13 Thread Florian Diesch
[EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Ok, so the function simplifyed without loops: def renamer(folder, band): archive = #file to transform rest = archive[3:] print band + -,rest.capitalize() obs: the file names came this way(with spaces or apostrophes) from the

Re: how to present Python's OO feature in design?

2005-11-12 Thread Florian Diesch
Ben Sizer [EMAIL PROTECTED] wrote: I don't know if there are any tools that convert UML to Python code, dia2code http://dia2code.sourceforge.net Floriaa -- Einen Troll zu füttern ist das gleiche als würde man einen Haufen Hundescheisse sehen, absichtlich reinsteigen und sich dann

Re: graphical or flow charting design aid for python class development?

2005-09-01 Thread Florian Diesch
William Gill [EMAIL PROTECTED] wrote: Being somewhat new to Python, and having a tendency to over complicate things in my class design, I was wondering if anyone can suggest a simple graphical or flowcharting tool that they use to organize their class and program design? Because of a 55

Re: Spreadsheet with Python scripting and database interface?

2005-08-11 Thread Florian Diesch
Wolfgang Keller [EMAIL PROTECTED] wrote: I'm looking for a spreadsheet application (MacOS X prefered, but Windows, Linux ar available as well) with support for Python scripting (third-party plug-ins are ok) and a database interface. Applications that I know of (that they exist) are: MS

Re: Emacs skeletons

2005-07-27 Thread Florian Diesch
Michael Hoffman [EMAIL PROTECTED] wrote: Does anyone have any Emacs skeletons they find useful for Python? I Googled a little but didn't find anything enticing. I already have a script that sets up script/module templates, so those aren't all that useful. else-mode

Re: wxPythin installation woes

2005-07-22 Thread Florian Diesch
linuxfreak [EMAIL PROTECTED] wrote: Sybren Stuvel wrote: linuxfreak enlightened us with: Turns out that libstdc++.so.5 is needed but I checked and i see that libstdc++.so.6 is installed on my system. On my system (Ubuntu, based on Debian), I can have multiple versions of libstdc++

Re: OO design

2005-07-20 Thread Florian Diesch
chris [EMAIL PROTECTED] wrote: I've been scripting with python for a while now. Basically writing a few functions and running in the ipython shell. That's been very useful. But the more I do this the more I see that I'm doing more or less the same thing over and over again. So its feels like I

Re: Python IDE

2005-07-20 Thread Florian Diesch
linuxfreak [EMAIL PROTECTED] wrote: Got going with python...and i must say its a pretty cool language. Been using Xemacs to write me programs. But I want an IDE that would I'm using GNU emacs give me auto-completion, Read the manual about tags and abbrevs Emacs Language Sensitive Editor

Re: Replacing last comma in 'C1, C2, C3' with 'and' so that it reads 'C1, C2 and C3'

2005-07-13 Thread Florian Diesch
Ric Da Force [EMAIL PROTECTED] wrote: I have a string such as 'C1, C2, C3'. Without assuming that each bit of text is of fixed size, what is the easiest way to change this list so that it reads: 'C1, C2 and C3' regardless of the length of the string. import re data = the first bit, then

Re: computer algebra packages

2005-07-11 Thread Florian Diesch
François Pinard [EMAIL PROTECTED] wrote: Mascyma is (trying to be) a user-friendly graphical frontend for the Computer Algebra System GNU MAXIMA. I was not successful googling for this one. Would you have an URL handy? Oops, OK! Found it at http://cens.ioc.ee/~pearu/misc/maxima/ .

Re: latex/bibtex python paper?

2005-07-07 Thread Florian Diesch
[EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Does anyone have a good template that I might use for writing a python paper in latex/bibtex? I've got the paper mostly done, but am having issues with the references. I am definitely not an expert at latex/bibtex. Right now, I have references

Re: New WYSIWYG Python IDE in the works

2005-06-19 Thread Florian Diesch
McBooCzech [EMAIL PROTECTED] wrote: sorry for bothering you with my comment. From my point of view, the situation on the IDE (GUI??) development field for Python is really strange. Just try to imagine the same situation around the Python. Plenty of different approaches, versions, philosophies

Re: How to overcome automatic cyrillic-to-/hex convert

2005-06-12 Thread Florian Diesch
[EMAIL PROTECTED] [EMAIL PROTECTED] wrote: But when I enter some Bulgarian (actually cyrillic) text as a string, it seems that Python automatically converts it to '\x00..\x00 ' and once converted that way I can't get it back into its original look. The only way to get it right is using print

Re: computer algebra packages

2005-06-09 Thread Florian Diesch
Rahul [EMAIL PROTECTED] wrote: Well is there an open source computer algebra system written in python or at least having a python interface? I know of 2 efforts: pythonica and pyginac...are there any others? Probably this is usable for you (I never used any of them): Package: mascyma