Grant Edwards wrote:
On 2008-07-21, Dan Upton <[EMAIL PROTECTED]> wrote:
REAL WORLD programmers who want to be generally useful go and
learn C#.
No: Real programmers first eat a quiche and then return to
their Pascal programming.
Bah, new-fangled languages like Pascal... Real programmers
writ
Ali Servet Dönmez wrote:
I tried code come completion options in Emacs for Python, but none of
them was satisfactory to me. I'd be glad to hear how did your friend
get it work though.
Perhaps it would help to say what ways the completion in Emacs was not
satisfactory?
FWIW, it should be pos
Daniel Fetchinson wrote:
> Since you seem to know quite a bit about this topic, what is your
> opinion on the apparently 'generic' algorithm described here:
> http://grail.cs.washington.edu/projects/query/ ?
> So far it seems to me that it does what I'm asking for, it does even
> more because it ca
Daniel Fetchinson wrote:
> The photos are just coming straight from my digital camera. Same
> format (JPEG), varying size (6-10 megapixel) and I would like to be
> able to pick one and then query the database for similar ones. For
> example: I pick a photo which is more or less a portrait of someon
Daniel Fetchinson wrote:
> Thanks for the info! SIFT really looks like a heavy weight solution,
> but do you think the whole concept can be simplified if all I needed
> was: given a photo, find similar ones? I mean SIFT first detects
> objects on the image and find similarities, but I don't need t
Daniel Fetchinson wrote:
> There are a number of free tools for image matching but it's not very
> easy to decipher the actual algorithm from the code that includes db
> management, GUI, etc, etc. I have my own image database and GUI so all
> I need is the actual algorithm preferably in pseudo code
Abrahams, Max wrote:
> I've looked into pickle, dump, load, save, readlines(), etc.
>
> Which is the best method? Fastest? My lists tend to be around a thousand to a
> million items.
>
> Binary and text files are both okay, text would be preferred in general
> unless there's a significant speed
FireNWater wrote:
> I guess I'm not fully up to speed on what constitutes an IP address.
> Does the term 'octet' refer to an 8-bit (xFF) number?
Yes, it somewhat archaic though. It's used when "byte" is ambiguous. On
some ancient (by computing standards) computers, the size of a byte may
be as
Mike Driscoll wrote:
>
> 6-11 Conversion.
> (a) Create a program that will convert from an integer to an
> Internet Protocol (IP) address in the four-octet format of WWW.XXX.YYY.ZZZ
> (b) Update your program to be able to do the vice verse of the
> above.
I think it's is asking to convert a 3
Heiko Niedermeyer wrote:
> Sorry for the fuzzy subject...
>
> Currently I'm writing a little programm to extract some chemical
> information out of a text file, and then present it in a pleasant way.
> The Extraction works so far, so now the presentation will be next.
>
If the GUI is only for
Heiko Niedermeyer wrote:
> Sorry for the fuzzy subject...
>
> Currently I'm writing a little programm to extract some chemical
> information out of a text file, and then present it in a pleasant way.
> The Extraction works so far, so now the presentation will be next.
>
If the GUI is only for
Tim Chase wrote:
>> how much data is considered to be "large amount"?
>
> one record
>
> Unless you really need XML to communicate with some other app via a
> predetermined schema, use a database to store and retrieve data. If you
> only need to send data to another app via a predetermined sch
Tim Chase wrote:
>> how much data is considered to be "large amount"?
>
> one record
>
> Unless you really need XML to communicate with some other app via a
> predetermined schema, use a database to store and retrieve data. If you
> only need to send data to another app via a predetermined sch
Steven D'Aprano wrote:
> (2) More memory will help avoid paging. If you can't get more memory, try
> more virtual memory. It will still be slow, but at least the operating
> system doesn't have to try moving blocks around as much.
>
Based on his previous post, it would seem he has 7GB of RAM (w
[EMAIL PROTECTED] wrote:
> Hi,
>
> I am trying to get a small group of volunteers together to create
> Windows binaries for any Python extension developer that needs them,
> much like the package/extension builders who volunteer their time to
> create Linux RPMs.
>
> Mike
>
It's not entirely cl
Carl Banks wrote:
>
> AOP is a programming paradigm in the same way indie is a genre of
> film.
I like your explanation! Heck, if it were more directly Python-related,
I'd nominate this line for QOTW.
--
http://mail.python.org/mailman/listinfo/python-list
Gustaf wrote:
> Hi all,
>
> Just for fun, I'm working on a script to count the number of lines in
> source files. Some lines are auto-generated (by the IDE) and shouldn't
> be counted. The auto-generated part of files start with "Begin VB.Form"
> and end with "End" (first thing on the line). Th
[EMAIL PROTECTED] wrote:
> Hello,
> I have a network on same subnet. I have an ip address of a machine.
> but i need to get its MAC Adress.
> Sendingf ARP request is the way i am taking.
>
> IS there any other way to get this MAC Adress in python.??
>
> Also does python go down to level 2 of TCP/
sam wrote:
> Hey Diez...
>
> So you're saying it's as simple as creating an env var, and setting it to
> the python version...
>
> ok.. (and yeah, we're talking fedora)
>
No, env doesn't create an environment variable. It creates a modified
environment. The goal here is to have the proper PATH
stef mientki wrote:
> cmd =[]
> cmd.append ( 'D:\\PIC-tools\\JALxxx\\jalv2_3.exe' )
> cmd.append ( '-long-start' )
> cmd.append ( '-d')
> cmd.append ( '-clear' )
> cmd.append ( '-sD:\\PIC-tools\\JAL\\libs2' )
> cmd.append (
> 'd:\\pic-tools\\jal\\programs\\test_rs232\\test_rs232_hw.jal' )
> cmd.ap
Benjamin wrote:
> I'm developing a mail client. Since GUI are usually improved with some
> icons, I'm looking for some. Because I'm not a very gifted artist I'm
> searching for a library of GPL or public domain icons. Any suggestions?
>
I frequently use the Crystal icon set.
http://www.everaldo.c
jeffbg123 wrote:
> The numbers are always rendered the same. So I don't know if OCR is a
> necessary step.
>
> Also, what if I just got the data from the packets? Any disadvantages
> to that? Any good python packet capturing libraries?
>
> Thanks
>
Packet capture is probably a bad idea for two
Diez B. Roggisch wrote:
> BJörn Lindqvist wrote:
>
>> I want to use Python to connect to a SSH account over a HTTP proxy to
>> automate some operations. I thought paramiko would be able to do that,
>> but it can not (it seems).
>>
>> Is there some other Python module that can do what I want?
>
>
kj7ny wrote:
> I am attempting to incrementally back up files using python. How can I
> compare a file on a hard drive to a file in a python created zip file
> to tell if the file has changed? Or should I be using some other
> method to determine if a file has changed?
>
You can easily determin
Martin v. Löwis wrote:
> Well, .jpg files are already compressed in a lossy way (.jpg is
> inherently lossy); to compress it further, you need to increase
> the loss. PNG is also compressed already, see
Not really. Stuffit has a JPEG compressor which takes advantage of the
fact that the JPEG algor
Jordan wrote:
> So that would explain why a tar.bz2 archive can't be appended to
> wouldn't it... And also explain why winrar was so slow to open it (not
> something I mentioned before, but definitely noticed). I had wondered
> what it was that made bz2 so much better at compression than zip and
Sulsa wrote:
> but i don't know how to post these data if i knew there there would
> be no topic.
http://docs.python.org/lib/module-urllib.html
You want to look at urlopen and urlencode.
But if you mean you don't know what fields and data to use, then you
need a HTML reference, not a Python one
Zeph wrote:
> 1b) Are these executable completely free from the need of the average
> user needing to install Python. Basically, I want to write and sell
> "compiled" apps.
OSX and Linux installations nearly always come with Python pre-installed
(usually because they are required by other syste
Michiel Sikma wrote:
> By FOS, do you mean FOSS (Free and Open Source Software)? I've never
> seen the acronym FOS used.
Maybe he was trying for "Free Open Source IDE" without the
semi-redundant "Software"
> I personally use Eclipse with PyDev.
> http://www.eclipse.org/
> http://pydev.sourcefor
Ravi Teja wrote:
> Most Python templating engines are general purpose. Choice between them
> however is sometimes a matter of preference, like editors. I settled
> down on Cheetah for most part.
I second Cheetah. It's suitable for most text templates. Many others are
specific for XML or HTML docu
Steven Bethard wrote:
> import argparse # http://argparse.python-hosting.com/
> import subprocess
> import sys
Why not the standard lib's optparse?
--
http://mail.python.org/mailman/listinfo/python-list
Dennis Lee Bieber wrote:
> Well, I don't do shell scripts either, but... looking at the
> sample... "$@" is likely the shell equivalent of Python's sys.argv -- or
> *sys.argv if passed down
Yeah, kinda equivalent to *sys.argv[1:].
--
http://mail.python.org/mailman/listinfo/python-list
John Salerno wrote:
> 1. First of all, does Linux keep track of the packages you manually
> install? If so, then I won't have to do this at all.
I assume you're using a Debian-based distro with aptitude as the front
end. In which case, all dpkg operations should be logged in
/var/log/dpkg.log
Yu-Xi Lim wrote:
> >>> b = 189028499
> >>> ','.join([str(b)[::-1][x:x+3] for x in range(len(str(b)))[::3]])[::-1]
>
> '-,189,028,499'
Oops, mis-paste
>>> b = -189028499
>>> ','.join([str(b)[::-1][x:x+3] for x
Tim Williams wrote:
a = 1890284
','.join([str(a)[::-1][x:x+3] for x in range(len(str(a)))[::3]])[::-1]
> '1,890,284'
>
> Ugly !
>
>>> b = 189028499
>>> ','.join([str(b)[::-1][x:x+3] for x in range(len(str(b)))[::3]])[::-1]
'-,189,028,499'
>>> c = 1890284.1
>>> ','.join([str(c)[::
Khoa Nguyen wrote:
> I have a requirement to process all files in a directory in
> chronological order. The os.listdir() function, however, lists the
> files in random order. Is there a similar function in Python that
> allows me to specify the listing order (like ls -t for example)?
There is no s
Nick Vatamaniuc wrote:
> Assuming a one person per one machine per one chat protocol it might be
> possible to recreate the tcp streams (a lot of packet capturing devices
> already do that). So the gateway would have to have some kind of a
> dispatch that would recognize the initialization of a cha
westymatt wrote:
> I am fairly new to python and I want to put alot of my functions in
> another python file and import or from it into my script so I can call
> the functions. How is this done?
>
What you are describing are modules. The Python Tutorial has some
information on this
http://docs.
[EMAIL PROTECTED] wrote:
> Hi all,
>
> Just wondering which technology would best suit the development of
> custom intranets in general, things that may be industry specific would
> need to be included (say for an industrial design company the addition
> of internal memos and even extrememly busin
Nick Craig-Wood wrote:
> If these are unix machines then I would use ssh/scp.
Even if they are Windows PCs, you could just install cygwin, openssh,
and python.
--
http://mail.python.org/mailman/listinfo/python-list
Sathyaish wrote:
>> But what's got that to do with it? Strings are very mutable in C.
>
> I realized after posting that I'd said something incorrect again. The
> concept of "mutability" itself is a high-level concept compared to C.
> Memory allocation for strings is expensive because of the way ma
Skipper wrote:
> Hi All,
>
> I am going to try and learn Python because I want to write at least
> one program to help my disabled son with communitation.
>
snip
>
> Can python do this? I realize I am responsible for the menu sets,
> pictures attaching sounds etc
An interesting proj
DaveM wrote:
> Essentially, I'm trying to sort 12 dominoes. Each domino has two different
> numbers and there are two of every number. Identical dominoes are possible,
> but doubles are not.
>
> The problem is to place the dominoes in a line, side to side, so that two
> columns (or rows, depending
Alex Martelli wrote:
> There is no effective manner of protecting your code, except running it
> only on well-secured machines you control yourself. If you distribute
> your code, in ANY form, and it's at all interesting to people with no
> interest in respecting the law, then, it WILL be cracked
Alex Martelli wrote:
> It's interesting, in this context, that Civilization IV is mostly
> written in Python (interfaced to some C++ via BoostPython).
>
> It took me 12 seconds with a search engine to determine that CivIV's
> protection uses "SafeDisc 4.60" and 30 more seconds to research that
> i
Bill Mill wrote:
> Your only solution, then, is to write unpopular code. Because, as Alex
> said, it will otherwise be broken into. Let's look at two very popular
> pieces of code: Half-Life 2 and Windows XP. How are they secured?
> Previous version of these software products used sophisticated
> c
Steve Holden wrote:
> Before adding complex protection mechanisms to your code you first need
> some code worth protecting, which is to say it should have some novel
> features or represent a lot of work that offers useful integrated
> functionality for a task or a skill area.
>
> Most inquirie
Johnny Lee wrote:
>Why are there so many nonsense tails? thanks for your help.
I guess you were expecting 0.039? You first need to understand floating
point numbers:
http://docs.python.org/tut/node16.html
What you see are the effects of representation errors.
The solution is presented her
48 matches
Mail list logo