Re: How to decode UTF strings?

2019-10-25 Thread Arne Vajhøj
]) print(s2[1][0].strip()) test('=?iso-8859-9?b?T/B1eg==?= ') test('=?utf-8?Q?=EB=AF=B8?= ') test('=?GBK?B?0Pu66A==?= ') test('=?UTF-8?B?zp3Or866zr/PgiDOks6tz4HOs86/z4I=?= ') work? Arne -- https://mail.python.org/mailman/listinfo/python-list

Re: security quirk

2013-01-30 Thread Arne Vajhøj
hen Google will remove the link. So therefore WSJ (and many other web sites!) gives more access if you come from Google than if not. Arne -- http://mail.python.org/mailman/listinfo/python-list

Re: Which Lisp to Learn?

2009-03-08 Thread Arne Vajhøj
seems to be a disconnect somewhere. Arne -- http://mail.python.org/mailman/listinfo/python-list

Re: Mathematica 7 compares to other languages

2008-12-10 Thread Arne Vajhøj
=0; i Not that it matters, but the above requires C99 (or C++). Arne -- http://mail.python.org/mailman/listinfo/python-list

Re: The Importance of Terminology's Quality

2008-08-22 Thread Arne Vajhøj
n question don't use conflicting sets of bits. I thought microcode was relative well defined as being the software used to implement instructions that were not fully implemented in hardware. http://en.wikipedia.org/wiki/Microcode does not make me think otherwise. Arne -- http://mail.python.org/mailman/listinfo/python-list

Re: The Importance of Terminology's Quality

2008-08-21 Thread Arne Vajhøj
Piet van Oostrum wrote: Arne Vajhøj <[EMAIL PROTECTED]> (AV) wrote: AV> Robert Maas, http://tinyurl.com/uh3t wrote: John W Kennedy <[EMAIL PROTECTED]> wrote: JWK> Into the 60s, indeed, there were still machines being made JWK> that had no instruction comparable to the ma

Re: The Importance of Terminology's Quality

2008-08-12 Thread Arne Vajhøj
ther than needing to know both the entry point and the last-instruction-JUMP-needs-patch address as independent items of information. CDC Cyber did something very similar. Not very recursion friendly. Arne -- http://mail.python.org/mailman/listinfo/python-list

Re: spam <[EMAIL PROTECTED]> <[EMAIL PROTECTED]>

2008-07-13 Thread Arne Vajhøj
donald wrote: Arne Vajhøj wrote: Google does not accept spam complaints. Go ahead, try it. That's why they've been the #1 Usenet spamming tool for years now. What you're seeing is the spam slowly expanding into the software development groups. uk.railway is probably a ran

Re: spam

2008-07-13 Thread Arne Vajhøj
be polite to a blind. I very much doubt that the same applies to usenet posters they want to plonk. Arne -- http://mail.python.org/mailman/listinfo/python-list

Re: spam <[EMAIL PROTECTED]> <[EMAIL PROTECTED]>

2008-07-13 Thread Arne Vajhøj
pams a day for about a year. Ask your news service for a Google UDP (Usenet Death Penalty) or configure your reader to drop everything with "googlegroups.com" in the Message-ID. Some real users do use GG. Arne -- http://mail.python.org/mailman/listinfo/python-list

Squeak-like environment for Python?

2008-06-05 Thread Jumping Arne
I've been playing with Squeak a bit and I really like the persistent storage model, I also liked HyperCard and Frontier (well, the persistent storage model at least). I wonder if there is some similar environment but based on python, I would like to use this environment not as a development env

Re: The Importance of Terminology's Quality

2008-06-01 Thread Arne Vajhøj
szr wrote: Arne Vajhøj wrote: szr wrote: Peter Duniho wrote: On Fri, 30 May 2008 22:40:03 -0700, szr <[EMAIL PROTECTED]> wrote: Arne Vajhøj wrote: Stephan Bour wrote: Lew wrote: } John Thingstad wrote: } > Perl is solidly based in the UNIX world on awk, sed, } > bash and C.

Re: The Importance of Terminology's Quality

2008-05-31 Thread Arne Vajhøj
szr wrote: Peter Duniho wrote: On Fri, 30 May 2008 22:40:03 -0700, szr <[EMAIL PROTECTED]> wrote: Arne Vajhøj wrote: Stephan Bour wrote: Lew wrote: } John Thingstad wrote: } > Perl is solidly based in the UNIX world on awk, sed, } > bash and C. I don't like the s

Re: The Importance of Terminology's Quality

2008-05-31 Thread Arne Vajhøj
szr wrote: Arne Vajhøj wrote: Stephan Bour wrote: Lew wrote: } John Thingstad wrote: } > Perl is solidly based in the UNIX world on awk, sed, bash and C. } > I don't like the style, but many do. } } Please exclude the Java newsgroups from this discussion. Did it ever occur to y

Re: The Importance of Terminology's Quality

2008-05-30 Thread Arne Vajhøj
tire news groups? Did it occur to you that there are nothing about Java in the above ? Arne -- http://mail.python.org/mailman/listinfo/python-list

Re: Photo gallery software

2008-05-01 Thread Jumping Arne
On Thu, 1 May 2008 16:59:33 +0200, Scott Sandeman-Allen wrote (in article <[EMAIL PROTECTED]>): > I've been working with Photologue for a while with some nice results. > Looks like it's time to start reading that Django book. Thanks, JA

Photo gallery software

2008-05-01 Thread Jumping Arne
I've searching for some software that would allow me to present my photos on the web (I'm not interested a software that generates static pages that I upload) and there are quite a few, see for example , but I haven't managed to

Re: PIL and IPTC

2008-04-30 Thread Jumping Arne
Thanks, that is what I needed to get started. -- http://mail.python.org/mailman/listinfo/python-list

PIL and IPTC

2008-04-30 Thread Jumping Arne
I'm completely new to PIL and I'm trying to read IPTC info, I understand that it's possible but I can't find out how (and for once Google doesn't seem to be able to help). Does anyone have an example of how it's done? -- http://mail.python.org/mailman/listinfo/python-list

Re: Image handling - stupid question

2008-04-16 Thread Jumping Arne
On Wed, 16 Apr 2008 12:21:13 +0200, Jumping Arne wrote (in article <[EMAIL PROTECTED]>): > I'm going to try to write some imange manipulation code (scaling, reading > EXIF and IPTC info) and just want to ask if PIL is *THE* library to use? > > I looked at <http://www.p

Image handling - stupid question

2008-04-16 Thread Jumping Arne
I'm going to try to write some imange manipulation code (scaling, reading EXIF and IPTC info) and just want to ask if PIL is *THE* library to use? I looked at and noticed that the latest version is from Dec 2006. In my experience that means that either

Re: Documentation - which format

2008-02-26 Thread Jumping Arne
On Wed, 27 Feb 2008 05:51:11 +0100, Ben Finney wrote (in article <[EMAIL PROTECTED]>): > Your needs are met amply with reStructuredText. It's still under > active development is http://docutils.sourceforge.net/ still the official site (I didn't find anything else) -- http://mail.python.org/mai

Documentation - which format

2008-02-26 Thread Jumping Arne
I'm considering using plain text file for documenting certain things (nothing to do with Python) and I'm looking at different "formatting systems" ... preferable with a python implementation to render the text at least as HTML - preferable also other formats like LaTeX. So far I've found +

Serving images

2008-01-28 Thread Jumping Arne
I'm no web programmer so please be kind. I'm just going to start writing a small "web app", it's very small and will only do one thing so I'm not going to use some kind of web framework. The purpose of the script is to do some custom markup of markdown formatted pages, render them and send them

Re: Trouble writing to database: RSS-reader

2008-01-23 Thread Arne
On Jan 21, 11:25 pm, "Gabriel Genellina" <[EMAIL PROTECTED]> wrote: > En Mon, 21 Jan 2008 18:38:48 -0200, Arne <[EMAIL PROTECTED]> escribi�: > > > > > On 21 Jan, 19:15, Bruno Desthuilliers > [EMAIL PROTECTED]> wrote: > > >> This shou

Re: Trouble writing to database: RSS-reader

2008-01-21 Thread Arne
On 21 Jan, 19:15, Bruno Desthuilliers wrote: > This should not prevent you from learning how to properly parse XML > (hint: with an XML parser). XML is *not* a line-oriented format, so you > just can't get nowhere trying to parse it this way. > > HTH Do you think i should use xml.dom.minidom for

Trouble writing to database: RSS-reader

2008-01-21 Thread Arne
Hi! I try to make a rss-reader in python just for fun, and I'm almost finished. I don't have any syntax-errors, but when i run my program, nothing happends. This program is supposed to download a .xml-file, save the contents in a buffer-file(buffer.txt) and parse the file looking for start-tags.

Re: Bug writing/reading to file.

2007-12-24 Thread Arne
On Dec 24, 12:53 pm, [EMAIL PROTECTED] wrote: > Hi! :) > > Im new to python, and I have made a electronic diary - its just a > task. Here is the code:http://pastebin.com/m49391798 > > The bug is (feel free to download and test it) that i can't see what i > wrote in the diary without restarting the

Bug writing/reading to file.

2007-12-24 Thread arne . k . h
Hi! :) Im new to python, and I have made a electronic diary - its just a task. Here is the code: http://pastebin.com/m49391798 The bug is (feel free to download and test it) that i can't see what i wrote in the diary without restarting the program. Here is an example: 1: I start the program 2: (

Re: SPAM

2007-11-14 Thread Arne Vajhøj
Lew wrote: > Yes, but it's not SPAM. > > SPAM is a registered trademark of Hormel Foods Corporation for a canned > pork product. > > Spam is unwanted messages or email. It should be rather obvious what is was. Why not leave it to Hormel to complain ? Arne -- http://

Re: Distributed RVS, Darcs, tech love

2007-10-21 Thread Arne Vajhøj
programmers. Look at > his total > failures on literature programming. Software Engineering is something > very > different. I think you will find it very difficult to write a piece of code that are not heavily influenced by Knuth. Arne -- http://mail.python.org/mailman/listinfo/python-list

Re: Distributed RVS, Darcs, tech love

2007-10-21 Thread Arne Vajhøj
re. You will need > evidence for such a claim. According to wikipedia the last version is from december 2002. That level of activity could be considered dead. It would for almost any other software. Tex has some "absolute" over it, so I am not sure normal software practices apply. But you

Re: which language allows you to change an argument's value?

2007-09-30 Thread Arne Vajhøj
rence differ from those in Java, Python, > and Ruby in this situation? C++ and Java are very different in this aspect. Arne -- http://mail.python.org/mailman/listinfo/python-list

Re: Car-ac-systems

2007-09-14 Thread Arne Vajhøj
not the demonic spawn of evil Microsoft. > ho ho..now thats quite funny! Before you start wondering too much try and make a search in comp.lang.java.programmer for posts by nebulous99 ... Arne -- http://mail.python.org/mailman/listinfo/python-list

Re: Latest models of Gibson guitars

2007-08-19 Thread Arne Vajhøj
[EMAIL PROTECTED] wrote: [some spam deleted] > This is a newsgroup of programming language Python, stop with this! Actually this was posted to a bunch of newsgroups of which one is about python. Arne -- http://mail.python.org/mailman/listinfo/python-list

Problem with new Vista and os.system

2007-03-09 Thread Arne Jamtgaard
nment? I've installed the latest python (2.5) within the past two weeks... I've double-checked other functions for os.* and they seem to work from the python command line - it's just os.system. Arne -- http://mail.python.org/mailman/listinfo/python-list

Problem with new Vista and os.system

2007-03-09 Thread Arne Jamtgaard
. Oh, python 2.5. Arne -- http://mail.python.org/mailman/listinfo/python-list

Re: Computer Language Popularity Trend

2006-09-30 Thread Arne Vajhøj
gt;> >> http://xahlee.org/lang_traf/index.html > > Wow, java is a low level industrial language? ;) Compared to Python, Ruby etc. - yes. Arne -- http://mail.python.org/mailman/listinfo/python-list

Update Tix ExFileSelectBox

2006-05-03 Thread Arne
hlist. Somebody knows how to do it? Thank you a lot! Arne -- http://mail.python.org/mailman/listinfo/python-list

Tkinter: Dynamic entry widget

2006-04-25 Thread Arne
When I want to get to entered data from the entry widget. I am not able to get them. The statement: t_one.get() dosent work. I am getting an error message that t_one is not global defined. How can I do this? Arne -- http://mail.python.org/mailman/listinfo/python-list

Refresh option Tix ExFileSelectBox

2006-04-21 Thread Arne
Hello! I am working with Tix. At the moment I try to use the ExFileSelectBox. I am looking for a option to refresh the valuer of the subwidget "file" after I have made some changes on these files. How can I refresh the view? Thanks Arne -- http://mail.python.org/mailman/listi

Re: telnet read_sb_data

2006-04-14 Thread Arne
Thank you for your reply. Yes I have read the documentation. But I am not sure what is the SB/SE suboption. Is this a suboption on the remote machine or for Python. Maybe you could be so kind and explain it to me with a little code example. Thany you very much! Arne "Dennis Lee Bieber&quo

telnet read_sb_data

2006-04-13 Thread Arne
bit of a code. Thanks a lot! Arne -- http://mail.python.org/mailman/listinfo/python-list

ftp connection and commands (directroy size, etc)

2006-04-12 Thread Arne
t command for it. 3. Getting the owner of a file Can I get the owner for one file? I know with the LIST you get them all. Please be so kind and post a little bit of a solution code Thank you very much! Arne -- http://mail.python.org/mailman/listinfo/python-list

ftp putting information in a variable

2006-04-08 Thread Arne
Hello!I am looking for a way to put ftp returns in a variable.My OS is XP and I want to get the owner of a file. So I have to connect to ftp. But I am stacked with how I can receive this information and put it in a variable.Thanks! ArneHere is a intend of doing thisfrom ftplib import FTP ftp = FT

Documentation for Tkinter/Tix

2006-04-08 Thread Arne
Hello! Where can I find a documentation for Tkinter/Tix. I already have the standard documentation ditributed with Python. Especially I am looking for documentation about the options for some tix widgets like Dirlist (How can I link it to a certain directory, etc.) Thanks! Arne -- http

Re: GUI Treeview

2006-04-07 Thread Arne
If possible for the Tkinter frameworkt. Thanks Arne "Peter Hansen" <[EMAIL PROTECTED]> schrieb im Newsbeitrag news:[EMAIL PROTECTED] > Arne wrote: >> Hello ! >> >> I am looking for a widget with the following properties: >> - showing the tree file struc

GUI Treeview

2006-04-07 Thread Arne
Hello ! I am looking for a widget with the following properties: - showing the tree file structure/ directory structure - next to each file should be a checkbox - the tree should only show certain files (i. e. only for the looked in user) Maybe you can post me a link. Thanks! Arne -- http

FTP

2006-04-07 Thread Arne
Hello! I want to connecto to a ftp server. There I woult like to read the directiroy and getting the filename, file owner and the file size. How can I do this in python and if possible please post the code for it. Thanks! Arne -- http://mail.python.org/mailman/listinfo/python-list

update or refresh a Listbox widget

2006-04-02 Thread Arne Meissner
Hello! Is there a function to update/refresh a listbox widget. My one is connected to a database and after a change of the database I would like the listbox to be updated. Thank you for your help! Arne -- http://mail.python.org/mailman/listinfo/python-list

Sortin Tablelist 4.3

2006-04-02 Thread Arne Meissner
Hello! I am using under Python the tablelist 4.3 from http://www.nemethi.de/. Now I want to do bind the following: When you click on the column header, the selected column should sort. How is the bind method or how can I call the column header in the tablelist? Thany you for your help! Arne

Tablelist 4.3

2006-03-30 Thread Arne Meissner
Hello everybody! I have downloaded the Tablelist 4.3 from http://www.nemethi.de/. Now I want to install it on my system Win XP. >From the distribution I have got the following information: " On Windows, use WinZip or some other program capable of unpacking the distribution file tablelist4_3.zi

Re: maximum() efficency

2006-03-27 Thread Arne Ludwig
Just for completeness: The functions in Steve's original post named maximum calculate the minimum. Also, timing-wise, on my machine with a random list of 20 integers Steve's iteration version and Mitja's version are about equal, the system built-in is equal or slightly slower, and Paul's versi

Re: using regex to pull out email addresses

2006-03-25 Thread Arne Ludwig
>>> senderlist="na nu [EMAIL PROTECTED] hu [EMAIL PROTECTED] [EMAIL PROTECTED] >>> fa hu" >>> print [ s[0] for s in re.findall("(\w+@(\w+\.)+\w+)",senderlist) ] ['[EMAIL PROTECTED]', '[EMAIL PROTECTED]'] -- http://mail.python.org/mailman/listinfo/python-list

Re: Getting a loop to activate a loop above it

2006-03-23 Thread Arne Ludwig
I think the problem is this line: > x == input('What is x now?: ') which should not have a == but a = -- http://mail.python.org/mailman/listinfo/python-list

Re: Remove integer from float number

2006-03-23 Thread Arne Ludwig
With that terse description and the subject line I would interpret the OP like so: >>> print re.sub(".*\.",".","0.666") .666 >>> print re.sub(".*\.",".","123.666") .666 -- http://mail.python.org/mailman/listinfo/python-list

Re: removing file by inode

2006-03-23 Thread Arne Ludwig
Actually under Linux he could probably pipe "clri %d" to debugfs if that is what he wanted to do. On the other hand he said "unix environment" which could be anything really. -- http://mail.python.org/mailman/listinfo/python-list

Re: removing file by inode

2006-03-23 Thread Arne Ludwig
> under SunOS there was a way to delete a file given it's i-node. Yes and no. You probably mean "clri" which cleared the inode, but did not "remove the file", i.e. all the entries in directories pointing to it. In older Unices there was also "ncheck" to find the filesystem names for inode numbers

Re: question: how to clare the absolute url in a html file

2006-03-23 Thread Arne Ludwig
Perhaps this is what he means: re.sub("http://[^/]*/","/","http://palle.fi/wing/walla.htm";) '/wing/walla.htm' -- http://mail.python.org/mailman/listinfo/python-list

Re: removing file by inode

2006-03-23 Thread Arne Ludwig
Good answer. :) I seriously doubt it is possible except for the trivial solution: def remove_a_file(inode): os.system ("find / -inum %d | xargs rm -f" % (inode)) PS. Don't blame me if this function destroys your hard disk. I wrote it off the top of my head. -- http://mail.python.org/mailm

Re: path to modules per import statement

2006-03-23 Thread Arne Ludwig
Maybe he means: sys.path.append('/my/path') -- http://mail.python.org/mailman/listinfo/python-list

Re: Windows getting local ip address

2006-03-23 Thread Arne Ludwig
That man is a genius: >>> s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) >>> s.connect(("gmail.com",80)) >>> print s.getsockname() ('192.168.0.174', 2768) >>> s.close() Should work on Windows as well. -- http://mail.python.org/mailman/listinfo/python-list

Re: Server.sendmail with no "to_addrs" parameter.

2006-03-23 Thread Arne Ludwig
Sorry to have caused all that confusion. The quote from RFC822 I gave is really confusing and is indeed not relevant to the original question. As Tim pointed out, the "to_addrs" parameter in smtplib.py::sendmail is translated to the SMTP RCPT TO and thus must contain all the intended recipients whe

Re: Windows getting local ip address

2006-03-22 Thread Arne Ludwig
The second solution can give really weird results though, e.g. on my Linux system I get: >>> gethostbyaddr(gethostname()) ('linux.site', ['linux'], ['127.0.0.2']) A more flexible but potentially unportable way would be: >>> import socket >>> import fcntl >>> import struct >>> >>> def get_ip_addr

Re: Server.sendmail with no "to_addrs" parameter.

2006-03-22 Thread Arne Ludwig
> Can anyone suggest how I can get round this? I have attempted numerous > things, like making my recipient list = [''], but Exchange then tried > to send the mail to "[EMAIL PROTECTED]" . rfc822: Note that the "Bcc" field may be empty, while the "To" field rfc822: is required to have a

Re: Access lotus notes using Python

2005-05-24 Thread Thor Arne Johansen
ss tables. (Examples of odbc connection: mxODBC or the odbc provided by win32all) HTH, Thor Arne Johansen Technical Director Ibas AS -- http://mail.python.org/mailman/listinfo/python-list

I don't have a clue what this is (py2exe?)

2005-02-09 Thread Geir Arne Evjen
server directly in the python intepreter the COM server works perfectly (both with or without debugging). I really don't know where this problem comes from and I don't have a clue where to search. Any tips would be very much appreciated. I'm using python 2.3.4 win32all build 2