Multiple Python one-liners

2013-06-04 Thread vasudevram
http://jugad2.blogspot.com/2013/06/multiple-python-one-liners.html Some interesting and useful one-liners there ... -- http://mail.python.org/mailman/listinfo/python-list

Riemann and Bernhard, a distributed systems monitor and Python client

2013-06-08 Thread vasudevram
This may be of interest to the group: Riemann and Bernhard, a distributed systems monitor and Python client http://jugad2.blogspot.in/2013/06/riemann-and-bernhard-distributed.html - Vasudev Ram dancingbison.com Python training and consulting -- http://mail.python.org/mailman/listinfo/python-l

PDF in a Bottle - creating PDF using xtopdf, ReportLab, Bottle and Python

2013-06-10 Thread vasudevram
Hi list, Might be of interest: PDF in a Bottle - creating PDF using xtopdf, ReportLab, Bottle and Python http://jugad2.blogspot.in/2013/05/pdf-in-bottle-creating-pdf-using-xtopdf.html - Vasudev Ram Python, Linux and open source training and development www.dancingbison.com -- http://mail.py

XML to PDF book with ElementTree and xtopdf

2013-06-15 Thread vasudevram
Hi list, This may be of interest - a program to create simple PDF books from XML text content: Create PDF books with XMLtoPDFBook: http://jugad2.blogspot.in/2013/06/create-pdf-books-with-xmltopdfbook.html XMLtoPDFBook.py requires ElementTree (which is in the standard Python library), xtopdf,

Python, meet Turtle

2013-06-30 Thread vasudevram
http://jugad2.blogspot.com/2013/07/python-meet-turtle.html -- http://mail.python.org/mailman/listinfo/python-list

PipeController v0.1 - experimental tool to simulate simple UNIX-style pipes in Python

2012-08-30 Thread vasudevram
BSD License, which means you can use it for any purpose, commercial or otherwise, subject to the terms of the license. - Vasudev Ram www.dancingbison.com jugad2.blogspot.com twitter.com/vasudevram -- http://mail.python.org/mailman/listinfo/python-list

Re: PipeController v0.1 - experimental tool to simulate simple UNIX-style pipes in Python

2012-09-02 Thread vasudevram
On Saturday, September 1, 2012 9:02:33 PM UTC+5:30, Ramchandra Apte wrote: > On Friday, 31 August 2012 03:27:54 UTC+5:30, vasudevram wrote: > > > I wrote PipeController recently to experiment with doing UNIX-style pipes > > in Python. > > > Doesn't the pipes

Re: PipeController v0.1 - experimental tool to simulate simple UNIX-style pipes in Python

2012-09-02 Thread vasudevram
On Monday, September 3, 2012 1:05:03 AM UTC+5:30, vasudevram wrote: > > To Ian Kelly: > > No, that deals with actual Unix pipes. This appears to be about pipelined > > processing within a single program and not IPC; the description "Unix-like" > > is a bit mis

Re: Looking for an IPC solution

2012-09-03 Thread vasudevram
On Saturday, September 1, 2012 6:25:36 PM UTC+5:30, Wolfgang Keller wrote: > > There are just so many IPC modules out there. I'm looking for a > > > solution for developing a new a multi-tier application. The core > > > application will be running on a single computer, so the IPC should > > > be

Using PipeController (v0.2) to run a pipe incrementally

2012-09-27 Thread vasudevram
p://jugad2.blogspot.in/2012/09/using-pipecontroller-to-run-pipe.html - Vasudev Ram www.dancingbison.com jugad2.blogspot.com twitter.com/vasudevram -- http://mail.python.org/mailman/listinfo/python-list

fmap(), "inverse" of Python map() function

2012-10-05 Thread vasudevram
http://jugad2.blogspot.in/2012/10/fmap-inverse-of-python-map-function.html - Vasudev Ram www.dancingbison.com jugad2.blogspot.com twitter.com/vasudevram -- http://mail.python.org/mailman/listinfo/python-list

Re: fmap(), "inverse" of Python map() function

2012-10-06 Thread vasudevram
On Saturday, October 6, 2012 5:01:40 AM UTC+5:30, Devin Jeanpierre wrote: > On Fri, Oct 5, 2012 at 7:24 PM, Ian Kelly wrote: > > > I realize that. My point is that the function *feels* more like a > > > variant of reduce than of map. > > > > > >> If it's meant as a complaint, it's a poor one.

Re: fmap(), "inverse" of Python map() function

2012-10-06 Thread vasudevram
> Thanks to all who replied. Always good to learn something new. P.S. A reader posted a good comment with Scala as well as Python code for a compose function (basically same functionality as fmap, or more - the compose once, run many times thing). It's the 4th comment on my blog post. - Vasud

Using pipe_controller to swap pipe components at runtime

2012-10-15 Thread vasudevram
nges is on Bitbucket at: https://bitbucket.org/vasudevram/pipe_controller - Vasudev Ram www.dancingbison.com jugad2.blogspot.com -- http://mail.python.org/mailman/listinfo/python-list

PDFBuilder can create composite PDFs

2012-11-02 Thread vasudevram
download link: http://jugad2.blogspot.in/2012/11/pdfbuilderpy-can-create-composite-pdfs.html - Vasudev Ram http://www.dancingbison.com http://jugad2.blogspot.com http://twitter.com/vasudevram -- http://mail.python.org/mailman/listinfo/python-list

PDFBuilder can now take multiple input files from command line

2012-11-04 Thread vasudevram
Here is the blog post about it: http://jugad2.blogspot.in/2012/11/pdfbuilder-can-now-take-multiple-input.html In short: removed the temporary hard-coding, refactored the code some. PDFBuilder can now use multiple input files (of type .csv / .tdv), specified on the command-line, to create a com

Domino, a Python PaaS for data science

2013-12-08 Thread vasudevram
Hi list, This may be of interest: Domino, a Python PaaS for data science: http://jugad2.blogspot.in/2013/12/domino-paas-for-data-science.html - Vasudev Ram Software training and consulting Python, Linux, C, open source, databases ... www.dancingbison.com jugad2.blogspot.com -- https://mail.pyt

Explanation of this Python language feature? [x for x in x for x in x] (to flatten a nested list)

2014-03-21 Thread vasudevram
Hi list, Can anyone - maybe one of the Python language core team, or someone with knowledge of the internals of Python - can explain why this code works, and whether the different occurrences of the name x in the expression, are in different scopes or not? : x = [[1,2], [3,4], [5,6]] [x f

Re: Explanation of this Python language feature? [x for x in x for x in x] (to flatten a nested list)

2014-03-21 Thread vasudevram
On Saturday, March 22, 2014 2:24:00 AM UTC+5:30, Rustom Mody wrote: > Lets try without comprehending comprehensions :-) > >>> x=[[1,2],[3,4]] > > >>> for x in x: > > ... for x in x: > > ... print x > > ... > > 1 > > 2 > > 3 > > 4 Nice and all, thanks, but doesn't answer the questi

Re: Explanation of this Python language feature? [x for x in x for x in x] (to flatten a nested list)

2014-03-22 Thread vasudevram
Thanks to all those who answered. - Vasudev -- https://mail.python.org/mailman/listinfo/python-list

New way of writing socket servers in #Linux kernel 3.9 (and in #Python too)

2013-08-24 Thread vasudevram
This may be of interest to readers of this newsgroup: Original article: http://lnkd.in/taAFNt Content (without links): A new way of writing socket servers has been introduced with the Linux kernel 3.9. It involves the ability to bind multiple listening sockets to the same port on the same

Convert Microsoft Word files to PDF with DOCXtoPDF

2013-10-01 Thread vasudevram
Hi list, I hope some people may find this useful. This post by me shows how to use DOCXtoPDF (a program I wrote recently) to convert the text in Microsoft Word files (that are in DOCX format) to PDF: Convert Microsoft Word files to PDF with DOCXtoPDF http://jugad2.blogspot.in/2013/10/convert-

xtopdf, a Python toolkit for PDF creation from other file formats

2013-10-18 Thread vasudevram
, databases, open source, ...) http://www.dancingbison.com http://jugad2.blogspot.com https://mobile.twitter.com/vasudevram -- https://mail.python.org/mailman/listinfo/python-list

Approach to creating a Boolean expression parser in Python?

2013-10-25 Thread vasudevram
Hi list, I'm working on an app in which longish text chunks (could be up to a few MB in size, and stored either in flat text files or in fields of database records - TBD) need to be searched for the presence of a combination of string constants, where the string constants can be combined with

Inner workings of this Python feature: Can a Python data structure reference itself?

2015-05-02 Thread vasudevram
Hi group, Please refer to this blog post about code showing that a Python data structure can be self-referential: http://jugad2.blogspot.in/2015/05/can-python-data-structure-reference.html Gotten a couple of comments on it already, but interested in hearing thoughts of Python core dev team mem

Re: Inner workings of this Python feature: Can a Python data structure reference itself?

2015-05-02 Thread vasudevram
On Sunday, May 3, 2015 at 1:47:04 AM UTC+5:30, Tim Chase wrote: > [dangit, had Control down when I hit and it sent prematurely] > > On 2015-05-02 13:02, vasudevram wrote: > > http://jugad2.blogspot.in/2015/05/can-python-data-structure-reference.html > > > > https://

Re: Inner workings of this Python feature: Can a Python data structure reference itself?

2015-05-03 Thread vasudevram
On Sunday, May 3, 2015 at 1:32:14 AM UTC+5:30, vasudevram wrote: > Hi group, > > Please refer to this blog post about code showing that a Python data > structure can be self-referential: > > http://jugad2.blogspot.in/2015/05/can-python-data-structure-reference.html >

Re: Inner workings of this Python feature: Can a Python data structure reference itself?

2015-05-03 Thread vasudevram
On Sunday, May 3, 2015 at 4:48:11 AM UTC+5:30, Terry Reedy wrote: > On 5/2/2015 4:02 PM, vasudevram wrote: > > Hi group, > > > > Please refer to this blog post about code showing that a Python data > > structure can be self-referential: > > > > http://jug

Re: Inner workings of this Python feature: Can a Python data structure reference itself?

2015-05-03 Thread vasudevram
On Sunday, May 3, 2015 at 6:30:16 PM UTC+5:30, vasudevram wrote: > On Sunday, May 3, 2015 at 4:48:11 AM UTC+5:30, Terry Reedy wrote: > > On 5/2/2015 4:02 PM, vasudevram wrote: > > > Hi group, > > > > > > Please refer to this blog post about code showing that

Re: Inner workings of this Python feature: Can a Python data structure reference itself?

2015-05-03 Thread vasudevram
On Sunday, May 3, 2015 at 6:38:28 PM UTC+5:30, Chris Angelico wrote: > On Sun, May 3, 2015 at 10:59 PM, vasudevram wrote: > > Re. statement of fact vs. hypotheses. While I'm not sure of your exact > > meaning in that paragraph, I understand the concept, and yes, I was not

youtube-dl, a YouTube downloader in Python

2013-04-01 Thread vasudevram
Folks may find this of interest, both from a programming and from an end-user point of view: youtube-dl, a YouTube downloader in Python: http://jugad2.blogspot.in/2013/03/youtube-dl-yourube-downloader-in-python.html I tried it out and it worked well. Downloaded a few videos using it. (The "ru

Re: Curl and python httplib?

2013-04-01 Thread vasudevram
On Tuesday, April 2, 2013 1:03:58 AM UTC+5:30, Mark Lawrence wrote: > On 30/03/2013 05:08, Сѧ԰PHP wrote: > > > Guys, > > > > > > I take a project that need send request to Hadoop by curl. > > > But now, the curl and pycurl can't satisfy my project. So i need use the > > > powerful httplib. >

Using xtopdf and pypyodbc to publish MS Access database data to PDF

2013-04-14 Thread vasudevram
Wrote a program that lets you publish your MS Access database data to PDF, using Python, ReportLab, xtopdf (my toolkit) and pypyodbc. Sharing it here. Link: http://jugad2.blogspot.in/2013/04/using-xtopdf-and-pypyodbc-to-publish-ms.html Note: Saw some comments about my blog post on the Python

What is the reason for defining classes within classes in Python?

2013-04-23 Thread vasudevram
Hi list, I saw an example of defining a class within another class, here, in the docs for peewee, a simple ORM for Python: http://peewee.readthedocs.org/en/latest/peewee/quickstart.html In what way is this useful? Thanks, Vasudev -- http://mail.python.org/mailman/listinfo/python-list

Re: What is the reason for defining classes within classes in Python?

2013-04-23 Thread vasudevram
On Wednesday, April 24, 2013 3:52:57 AM UTC+5:30, Ian wrote: > On Tue, Apr 23, 2013 at 3:50 PM, vasudevram wrote: > > > > > > Hi list, > > > > > > I saw an example of defining a class within another class, here, in the > > docs for peewee

Re: What is the reason for defining classes within classes in Python?

2013-04-24 Thread vasudevram
On Wednesday, April 24, 2013 6:20:36 AM UTC+5:30, alex23 wrote: > On Apr 24, 9:13 am, vasudevram wrote: > > > On Wednesday, April 24, 2013 3:52:57 AM UTC+5:30, Ian wrote: > > > > On Tue, Apr 23, 2013 at 3:50 PM, vasudevram  wrote: > > > > > I saw an exa

Re: What is the reason for defining classes within classes in Python?

2013-04-24 Thread vasudevram
Interesting. Thank you. -- http://mail.python.org/mailman/listinfo/python-list

PDF in a Bottle - creating PDF using xtopdf, ReportLab, Bottle and Python

2013-04-30 Thread vasudevram
pdf_bottle.py is a program I wrote that allows you to create a PDF file from text, over the web, by entering your text into a form and submitting it. Here is the post about it: http://jugad2.blogspot.in/2013/05/pdf-in-bottle-creating-pdf-using-xtopdf.html - Vasudev Ram dancingbison.com jugad2.b

GUIDE: Using xtopdf to create PDF from text and DBF files (including creating simple PDF e-books)

2006-07-22 Thread vasudevram
Hi, I'm giving below, steps to install and use my xtopdf PDF creation/conversion toolkit. This post is for end-users. xtopdf is both a set of end-user tools and a library for use by developers, to create PDF from various input formats. I'll post another message here about how developers can use

Info on continuations?

2006-08-08 Thread vasudevram
Hi, I am Googling and will do more, found some stuff, but interested to get viewpoints of list members on: Continuations in Python. Saw a few URLs which had some info, some of which I understood. But like I said, personal viewpoints are good to have. Thanks Vasudev

Re: Info on continuations?

2006-08-08 Thread vasudevram
[EMAIL PROTECTED] wrote: > vasudevram wrote: > > Hi, > > > > I am Googling and will do more, found some stuff, but interested to get > > viewpoints of list members on: > > > > Continuations in Python. > > > Could you be a little more specific on wh

Re: Info on continuations?

2006-08-08 Thread vasudevram
Michele Simionato wrote: > vasudevram wrote: > > Hi, > > > > I am Googling and will do more, found some stuff, but interested to get > > viewpoints of list members on: > > > > Continuations in Python. > Thanks to all who replied. Vasudev -- http://mail.python.org/mailman/listinfo/python-list

ANN: xtopdf: PDF creation / conversion toolkit: alpha release of v1.3

2006-08-08 Thread vasudevram
Hi group, ANN: xtopdf: PDF creation / conversion toolkit: alpha release of v1.3 This is actually a somewhat preliminary announcement, but may be of interest to developers / users who know Python and/or have earlier checked out my xtopdf PDF creation / conversion toolkit ( http://sourceforge.net

ANN: xtopdf: PDF creation / conversion toolkit: alpha release of v1.3

2006-08-08 Thread vasudevram
Hi group, xtopdf: PDF creation / conversion toolkit: alpha release of v1.3 This is actually a somewhat preliminary announcement, but may be of interest to developers / users who know Python and/or have earlier checked out my xtopdf PDF creation / conversion toolkit: I've released (via my web si

Re: Info on continuations?

2006-08-09 Thread vasudevram
Michael wrote: > vasudevram wrote: > > > > > Hi, > > > > I am Googling and will do more, found some stuff, but interested to get > > viewpoints of list members on: > > > > Continuations in Python. > > > > Saw a few URLs which ha

xtopdf: PDF creation / conversion toolkit: alpha release of v1.3

2006-08-12 Thread vasudevram
Hi group, xtopdf: PDF creation / conversion toolkit: alpha release of v1.3 This is actually a somewhat preliminary announcement, but may be of interest to developers / users who know Python and/or have earlier checked out my xtopdf PDF creation / conversion toolkit: I've released (via my web

Re: Recurse Directories and process files in directory

2006-08-12 Thread vasudevram
KraftDiner wrote: > Hi I need help writing a python script that traverses (recursivly) a > directory and its sub directories and processes all files in the > directory. So at each directory if there are files in it I must build > a list of those files and process them by exectuing a system comman

Packt published an article about xtopdf - creating PDF from Plain Text, DBF, CSV, TDV, and XLS Data

2006-08-19 Thread vasudevram
Hi group, This is an article I wrote for Packt Publishing - http://www.packtpub.com : Using xtopdf, a PDF creation toolkit - http://www.packtpub.com/article/Using_xtopdf It shows how to use xtopdf - http://sourceforge.net/projects/xtopdf - to create PDF from plain text, DBF, CSV, TDV and XLS dat

Re: Where can I find good python code?

2006-10-15 Thread vasudevram
Chris Lambacher wrote: > On Sat, Oct 14, 2006 at 01:08:37AM +0900, js wrote: > > Hi, > > > > I've learned basics of Python and want to go to the next step. > > So I'm looking for good python examples > > I steal good techniques from. > > > > I found Python distribution itself contains some examp

Using xtopdf, a PDF creation toolkit - Creating PDF Output from Plain Text, DBF, CSV, TDV, and XLS Data

2006-10-27 Thread vasudevram
Hi, Though I posted about this article earlier, reposting it with a more appropriate title, to make it easier for searches. "Using xtopdf, a PDF creation toolkit" URL: http://www.packtpub.com/article/Using_xtopdf This is an article by me, written for Packt Publishing, about how to use my xtopdf

Re: Has anyone generated Open Office Calc XML files from python

2006-11-16 Thread vasudevram
vj wrote: > I just found something in perl: > > http://tools.openoffice.org/profiling/pod/LogFile/XML.html > > Will try and reverse engineer this, unless something like this exists > in python. > > VJ Isn't generating CSV output suitable to your needs? Python's CSV module makes that very simple -

Request new feature suggestions for my PDF conversion toolkit - xtopdf

2006-06-08 Thread vasudevram
- Vasudev Ram ---­-- Personal site: http://www.geocities.com/vasudevram Open source projects: http://sourceforge.net/projects/xtopdf - tools for conversio

Re: wxpython: where is the demo?

2006-06-08 Thread vasudevram
-win32-docs-demos-2.6.3.2.exe HTH Vasudev Ram Independent software consultant "On a clear day you can see the blue screen of death" - Me :-). http://www.geocities.com/vasudevram -- http://mail.python.org/mailman/listinfo/python-list

Re: Request new feature suggestions for my PDF conversion toolkit - xtopdf

2006-06-09 Thread vasudevram
cutils.sourceforge.net/rst.html i.e. reStructured Text. Is that the one you mean? - Vasudev David Isaac wrote: > "vasudevram" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > > http://sourceforge.net/projects/xtopdf > > Serendipity: > I was just

Re: convert .pdf files to .txt files

2006-06-10 Thread vasudevram
post here again. --- Vasudev Ram Independent software consultant Personal site: http://www.geocities.com/vasudevram PDF conversion tools: http://sourceforge.net/projects/xtopdf --- Baiju M

Re: PIL problem after installation

2006-06-10 Thread vasudevram
onsultant Personal site: http://www.geocities.com/vasudevram PDF conversion tools: http://sourceforge.net/projects/xtopdf ---­ Fredrik Lundh wrote: > Lad wrote: > > > I installed PIL under Linux bu

Re: Bridge: Ruby to Python communication

2006-06-12 Thread vasudevram
s Python and have used it with Python myself. Check out http://xmlrpc.com (and also Google for more resources on this topic) to learn more, download source code examples, and to check if there is Ruby support for it. HTH Vasudev Ram Independent software consultant http://www.geocities.com/vasude

Re: Linux info

2006-06-13 Thread vasudevram
ny other language such as Perl, Ruby, etc., which supports something similar to os.system(). Vasudev Ram http://www.geocities.com/vasudevram PDF conversion tools: http://sourceforge.net/projects/xtopdf faulkner wrote: > os.path.realpath > > TheSaint wrote: > > Hello there, > >

Re: Python database access

2006-06-26 Thread vasudevram
elect * from tablename". Vasudev Ram http://www.geocities.com/vasudevram PDF conversion toolkt: http://sourceforge.net/projects/xtopdf BartlebyScrivener wrote: > > But I don't know how to make the connectivity or rather which module to > > import. > > Try mxODBC >

Re: Python database access

2006-06-29 Thread vasudevram
not separately installed an ODBC module, I thought it was part of the Standard Library - whereas its a part of win32all. Vasudev --- Vasudev Ram Independent software consultant Personal page: http://www.geocities.com/vasudevram PDF conversion toolkit: http://sourceforge.net/projects/xtopdf (written in P

Re: Python 2.4 tutorial

2006-06-29 Thread vasudevram
Try: Dive into Python (for experienced programmers): http://diveintopython.org A Byte of Python (for beginning programmers): http://www.byteofpython.info/ Both are good. Vasudev --- Vasudev Ram http://www.geocities.com/vasudevram PDF conversion toolkit (written in Python) http

Re: Can I do it using python?? about xterm and telnet

2006-07-02 Thread vasudevram
, such as yours appears to be. You might want to play around with the original Expect a bit and then try out pexpect - or you could just use Expect itself for your needs. HTH Vasudev --- Vasudev Ram Independent software consultant http://www.geocities.com/vasudevram PDF conversion toolkit: http

Publishing ODBC database content as PDF

2006-07-07 Thread vasudevram
/ Enjoy, and feedback welcome. Vasudev Vasudev Ram http://www.geocities.com/vasudevram PDF conversion toolkit: http://sourceforge.net/projects/xtopdf

Re: Publishing ODBC database content as PDF

2006-07-07 Thread vasudevram
other samples) on one of my sites, and then put a link to it here. - Vasudev. vasudevram wrote: > Publishing ODBC database content as PDF: > > A blog post by me on how to do this, using my PDF conversion toolkit, > xtopdf. > This is sample code from my next upcoming release of xtopdf,

Re: Generating a PDF file on Linux (try using xtopdf)

2006-09-29 Thread vasudevram
George Adams wrote: > Sorry for what is probably a very basic question... > > I have a database of contact info data (names, addresses, phone, etc.) > I want to take that data and generate a printable booklet-form directory > that can be handed out to people. > > So the database may look something

Hot new programming languages - according to the TIOBE index

2006-09-29 Thread vasudevram
Interesting post by voidspace. Ruby and Python are doing well, according to the latest TIOBE index. Java, C and C++ and 1, 2 and 3 on the list http://jugad.livejournal.com/2006/09/29/ Vasudev Ram http://www.dancingbison.com P.S. Dunno why "hot new" though - not too many of them are new. More

Re: Has anyone generated Open Office Calc XML files from python

2006-11-18 Thread vasudevram
vj wrote: > > Isn't generating CSV output suitable to your needs? > > Python's CSV module makes that very simple - unless you want to include > > images, etc. in the XLS file? > > You cannot create multiple worksheets using this method, or apply any > other form of formatting. > > VJ Ok, got it

Re: Python work in UK

2006-11-24 Thread vasudevram
Hi, A few suggestions, you may have tried them already: Search for UK Python jobs on major job sites like Monster, Dice, etc. Some (like Monster) have country-specific sites, I think. I know Monster has an India-specific site, it probably also has one for the UK. Have you considered the option

Re: Book recommendations

2006-12-06 Thread vasudevram
>Can someone recommend a Python book for a newbie and perhaps you have a used one for sale? Thank you. A Byte of Python is supposed to be good for beginners too. See http://www.byteofpython.info/ Its also a recommended book on the main Python site www.python.org >From the preface: "This book se

Re: SOAP Server with WSDL?

2006-12-08 Thread vasudevram
Ravi Teja wrote: > tobiah wrote: > > Actually, do I have to make a WSDL? Do people hand write these, or > > are there tools? I don't really need to publish an interface. I just > > want some in house apps to communicate. > > Java and .NET based tools can auto-generate WSDL from code. Python doe

Re: Sybase module 0.38pre1 released

2006-12-12 Thread vasudevram
Sébastien Sablé wrote: > WHAT IS IT: > > The Sybase module provides a Python interface to the Sybase relational > database system. It supports all of the Python Database API, version > 2.0 with extensions. > > MAJOR CHANGES SINCE 0.37: > > * This release works with python 2.5 > > * It also works

Re: Sybase module 0.38pre1 released

2006-12-13 Thread vasudevram
Sébastien Sablé wrote: > By the way, I forgot to say that new releases can now be downloaded > from this page: > > https://sourceforge.net/project/showfiles.php?group_id=184050 > > regards > > -- > Sébastien Sablé > Thanks. Vasudev -- http://mail.python.org/mailman/listinfo/python-list

Re: removing the header from a gzip'd string

2006-12-22 Thread vasudevram
Fredrik Lundh wrote: > Gabriel Genellina wrote: > > > Using the default options ("deflate", default compression level, no > > custom dictionary) will make those first two bytes 0x78 0x9c. > > > > If you want to encrypt a compressed text, you must remove redundant > > information first. > > encr

Re: How a script can know if it has been called with the -i command line option?

2006-12-23 Thread vasudevram
Peter Wang wrote: > Michele Simionato wrote: > > The subject says it all, I would like a script to act differently when > > called as > > $ python script.py and when called as $ python -i script.py. I looked > > at the sys module > > but I don't see a way to retrieve the command line flags, where

Re: Elliptic Curve Library

2006-12-23 Thread vasudevram
Mike Tammerman wrote: > Hi, > > I need an elliptic curve library that can be used by python. I googled > but couldn't find a one. I'll appreciate, if you could show me. > > Mike What is the library you need supposed to do? Vasudev Ram Dancing Bison Enterprises www.dancingbison.com -- http://ma

Re: How a script can know if it has been called with the -i command line option?

2006-12-23 Thread vasudevram
vasudevram wrote: > Peter Wang wrote: > > Michele Simionato wrote: > > > The subject says it all, I would like a script to act differently when > > > called as > > > $ python script.py and when called as $ python -i script.py. I looked > > > at

Re: Connection python with C

2006-12-24 Thread vasudevram
Fredrik Lundh wrote: > Χρυσάνθη Αϊναλή wrote: > > > I want to connect a script in python with a source code in C. Any > > ideas about it? > > http://docs.python.org/lib/module-ctypes.html > http://docs.python.org/ext/ext.html > http://effbot.org/pyfaq/extending-index.htm > > Just a suggestion: a

Saw a possibly interesting Python PDF library - pyPDF

2006-12-24 Thread vasudevram
Saw a possibly interesting Python PDF library - pyPDF. For merging/splitting PDFs and related operations. It's at http://pybrary.net/pyPdf/ HTH Vasudev ~ Vasudev Ram Dancing Bison Enterprises http://www.dancingbison.com Check out the cool Snap.com link preview fea

Re: Elliptic Curve Library

2006-12-25 Thread vasudevram
Jaap Spies wrote: > Mike Tammerman wrote: > > > I need an elliptic curve library that can be used by python. I googled > > but couldn't find a one. I'll appreciate, if you could show me. > > > > You could look at http://sage.scipy.org/sage/ > http://sage.scipy.org/sage/features.html > > Jaap Sorr

Re: db access

2006-12-29 Thread vasudevram
king kikapu wrote: > On Dec 29, 12:12 am, johnf <[EMAIL PROTECTED]> wrote: > > king kikapu wrote: > > > Hi to all, > > > > > is there a way to use an RDBMS (in my case, SQL Server) from Python by > > > using some built-in module of the language (v. 2.5) and through ODBC ?? > > > I saw some samples

Re: python unix install, sqlite3

2007-06-04 Thread vasudevram
On May 29, 11:40 pm, Simon <[EMAIL PROTECTED]> wrote: > On May 29, 7:05 am, vasudevram <[EMAIL PROTECTED]> wrote: > > > > > > > On May 29, 5:52 pm, Simon <[EMAIL PROTECTED]> wrote: > > > > I installed the source code on unix for python 2.5.

Do eval() and exec not accept a function definition? (like 'def foo: pass) ?

2007-06-23 Thread vasudevram
Hi group, Question: Do eval() and exec not accept a function definition? (like 'def foo: pass) ? I wrote a function to generate other functions using something like eval("def foo: ") but it gave a syntax error ("Invalid syntax") with caret pointing to the 'd' of the def keyword. Details (so

Re: Do eval() and exec not accept a function definition? (like 'def foo: pass) ?

2007-06-23 Thread vasudevram
On Jun 24, 1:20 am, Eduardo Dobay <[EMAIL PROTECTED]> wrote: > Hey, > > I think you could use lambda functions for that matter (Ever heard of > them?). You could write something like: > > def generate_html_tag_function(tag_name, start_or_end): >start_or_end.lower() >assert(start_or_end in (

Re: Do eval() and exec not accept a function definition? (like 'def foo: pass) ?

2007-06-24 Thread vasudevram
On Jun 24, 6:28 am, Jean-Paul Calderone <[EMAIL PROTECTED]> wrote: > On Sun, 24 Jun 2007 11:17:40 +1000, Steven D'Aprano <[EMAIL PROTECTED]> wrote: > >On Sat, 23 Jun 2007 19:58:32 +, vasudevram wrote: > > >> Hi group, > > >> Question: Do eval(

Re: automatical pdf generating

2007-06-24 Thread vasudevram
On Jun 24, 10:03 pm, Grant Edwards <[EMAIL PROTECTED]> wrote: > On 2007-06-24, Jackie <[EMAIL PROTECTED]> wrote: > > > For each folder, I want to print the 4 pictures into a single-paged > > pdf file (letter sized; print horizontally). All together, I want to > > get 50 pdf files with names: 01.pdf

How does py2exe work?

2007-07-01 Thread vasudevram
Hi, I recently checked out py2exe (on Windows). Looks good. Was able to build an EXE out of one of my Python apps. Wondering how it works? Does it actually compile the Python source of your script into machine language, or does it do something more like bundling the Python interpreter, the Python

Re: How does py2exe work?

2007-07-01 Thread vasudevram
On Jul 2, 12:43 am, Wildemar Wildenburger <[EMAIL PROTECTED]> wrote: > Thomas Jollans wrote: > > On Sunday 01 July 2007, vasudevram wrote: > > >> Wondering how it works? Does it actually compile the Python source of > >> your script into machine languag

Re: execute script in certain directory

2007-07-09 Thread vasudevram
On Jul 9, 8:31 pm, brad <[EMAIL PROTECTED]> wrote: > When I use idle or a shell to execute a python script, the script > executes in the directory it is currently in (in this case, my desktop). > However, when using GNOME and right clicking the py script and selecting > 'open with python', the exec

Re: How to Machine A python script execute Machine B python script?

2007-07-09 Thread vasudevram
On Jul 9, 1:30 pm, Nick Craig-Wood <[EMAIL PROTECTED]> wrote: > [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > On Jul 8, 6:45 pm, johnny <[EMAIL PROTECTED]> wrote: > > > Anyone know how I can make Machine A python script execute a python > > > script on Machine B ? > > > xmlrpc will work. > > O

Re: Technology solutions for Ruby?

2007-07-16 Thread vasudevram
[ Though the OP posted his message to comp.lang.ruby, I'm cross- posting it to comp.lang.python, since he mentions Python as a possible alternative he's looking at, and also because I've recommended Python for his stated needs. Also, interested to see what other Pythonistas have to say in response

Re: Technology solutions for Ruby?

2007-07-16 Thread vasudevram
On Jul 16, 10:25 pm, vasudevram <[EMAIL PROTECTED]> wrote: > [ Though the OP posted his message to comp.lang.ruby, I'm cross- > posting it to comp.lang.python, since he mentions Python as a possible > alternative he's looking at, and also because I've recommended

Re: Python MAPI

2007-07-20 Thread vasudevram
On Jul 20, 10:57 pm, [EMAIL PROTECTED] wrote: > Hi, > > I've been googling all over and can't find any good answers about this > problem. I would like to create some kind of MAPI interface with > Python such that when I open Microsoft Word (or another Office > program) and click File, Send To, Mail

Re: Python MAPI

2007-07-20 Thread vasudevram
On Jul 21, 12:28 am, [EMAIL PROTECTED] wrote: > On Jul 20, 1:48 pm, vasudevram <[EMAIL PROTECTED]> wrote: > > > > > > > On Jul 20, 10:57 pm, [EMAIL PROTECTED] wrote: > > > > Hi, > > > > I've been googling all over and can't find a

Re: GUI tutorial

2007-05-13 Thread vasudevram
On May 13, 10:51 pm, John K Masters <[EMAIL PROTECTED]> wrote: > Can someone point me in the direction of a good tutorial on programming > python with a GUI? I'm just starting out with python and have written a > few scripts successfully but would like to add a graphical front end to > them to make

Re: Help required with Python App

2007-05-21 Thread vasudevram
On May 21, 8:11 pm, Trevor Hennion <[EMAIL PROTECTED]> wrote: > Hi, > > I am producing a Web based database application for a customer and could > do with some help producing pdf documents from the data. > > The project uses Apache. Postgresql and Python CGI scripts on a Linux > server for a compan

Re: Help required with Python App

2007-05-21 Thread vasudevram
On May 21, 8:11 pm, Trevor Hennion <[EMAIL PROTECTED]> wrote: > Hi, > > I am producing a Web based database application for a customer and could > do with some help producing pdf documents from the data. > > The project uses Apache. Postgresql and Python CGI scripts on a Linux > server for a compan

Re: How can I time a method of a class in python using Timeit

2007-05-24 Thread vasudevram
On May 24, 8:36 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > Hi, > > I am using timeit to time a global function like this > > t = timeit.Timer("timeTest()","from __main__ import timeTest") > result = t.timeit(); > > But how can i use timeit to time a function in a class? > class FetchUrlTh

Re: How to get started as a xhtml python mysql freelancer ?

2007-05-26 Thread vasudevram
On May 26, 5:55 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > On May 25, 7:55 pm, gert <[EMAIL PROTECTED]> wrote: > > > > > > > On May 26, 2:09 am, Paul McNett <[EMAIL PROTECTED]> wrote: > > > > gert wrote: > > > > I made something that i was hoping it could make people happy enough > > > >

Re: Periodic tasks.

2007-05-29 Thread vasudevram
On May 29, 4:39 pm, Steve Holden <[EMAIL PROTECTED]> wrote: > Alternatively, the user could make use of the already-existing "sched" > module from the standard library. With a little threading that would do > the job fine. > > regards > Steve > -- > Steve Holden+1 571 484 6266 +1 800 4

Re: python unix install, sqlite3

2007-05-29 Thread vasudevram
On May 29, 5:52 pm, Simon <[EMAIL PROTECTED]> wrote: > I installed the source code on unix for python 2.5.1. The install went > mainly okay, except for some failures regarding: > _ssl, _hashlib, _curses, _curses_panel. > > No errors regarding sqlite3. > However, when I start python and do an import

  1   2   >