Re: WxPython versus Tkinter.

2011-01-25 Thread Michael Torrie
On 01/23/2011 02:11 PM, Littlefield, Tyler wrote: I hardly think that your tone, attitude and arguments are going to help you in your battle to prove that WXPython is superior to anything at all, if you can't manage to provide cross-platform bug-free code. Sadly you're wasting your breath.

Re: How to create an entry in the Program menu of Windows?

2011-02-01 Thread Michael Torrie
On 02/01/2011 02:43 PM, Diesel wrote: I'd like to add menu entry in the Program Menu as part of the installation of an application. Is it possible to do that from Python? Any examples or link? I have not been able to find anything with google... Use an installer program like nsis to create

Re: IDLE: A cornicopia of mediocrity and obfuscation.

2011-02-01 Thread Michael Torrie
On 02/01/2011 08:26 AM, Noah Hall wrote: On Tue, Feb 1, 2011 at 3:14 PM, rantingrick rantingr...@gmail.com wrote: #-- Embedded Trolls and Minions --# These people, including myself, aren't trolls nor minions. They just don't agree with you. I strongly disagree with rr and find him to be an

Re: How to use Python well?

2011-02-17 Thread Michael Torrie
On 02/16/2011 04:00 PM, Steven D'Aprano wrote: You should read about bottom-up and top-down programming. You'll probably end up doing some of both, but mostly top-down. Most of my development is done by designing top-down and then coding bottom-up. Coding top down is fine, but I'd expect to

Re: Newbie getting desperate with for

2011-02-18 Thread Michael Torrie
On 02/17/2011 04:10 PM, Werner wrote: It is meant to put load on a CPU, RAM and disk (swap). The code now looks like this: #!/usr/bin/python while True: i = 0 for i in range(2000): break Just for your information, your code is the equivalent of: while True: temp =

Re: Newbie getting desperate with for

2011-02-18 Thread Michael Torrie
On 02/17/2011 09:15 PM, Larry Hudson wrote: A true time waster indeed -- it's an infinite loop that will _never_ end. Others have already about the need of the shebang line to run as a python script, but I'm surprised no one mentioned how truly useless this code is. The i = 0 line is

Re: I'm happy with Python 2.5

2011-03-06 Thread Michael Torrie
On 02/27/2011 06:57 AM, n00m wrote: Steve, see a list of accepted langs there, in bottom dropdown: http://www.spoj.pl/submit/ There *was* Python 2.6. Then admins shifted back to 2.5. People vote by their legs. rr, is that you? -- http://mail.python.org/mailman/listinfo/python-list

Re: Is there a programming language that is combination of Python and Basic?

2009-04-17 Thread Michael Torrie
baykus wrote: I am looking for one of those experimental languages that might be combination of python+basic. Now thta sounds weird and awkward I know. The reason I am asking is that I always liked how I could reference- call certain line number back in the days. It would be interesting to

Re: Is there a programming language that is combination of Python and Basic?

2009-04-17 Thread Michael Torrie
Mensanator wrote: I once translated a BASIC program to Pascal (hint: no goto allowed). The original code had GOSUBs that never executed a REURN because the programmer jumped away to line numbers on a whim. Biggest piece of crap I ever had to misfortune to deal with. It's clear that you

Re: Is there a programming language that is combination of Python and Basic?

2009-04-17 Thread Michael Torrie
Aahz wrote: Why do you want to do that? Before you answer, make sure to read this: http://www.u.arizona.edu/~rubinson/copyright_violations/Go_To_Considered_Harmful.html Somebody better tell the Linux kernel developers about that! They apparently haven't read that yet. Better tell CPU makers

Re: Exotic Logics

2009-06-18 Thread Michael Torrie
William Clifford wrote: I've read one can do all of the 16 binary operations with clever uses of NAND or NOR. That is correct. In fact semiconductor logic is done using these two principle gates. See http://en.wikipedia.org/wiki/NAND_logic . Quite interesting really. --

Re: RE Module Performance

2013-07-24 Thread Michael Torrie
On 07/24/2013 07:40 AM, wxjmfa...@gmail.com wrote: Sorry, you are not understanding Unicode. What is a Unicode Transformation Format (UTF), what is the goal of a UTF and why it is important for an implementation to work with a UTF. Really? Enlighten me. Personally, I would never use UTF as a

Re: RE Module Performance

2013-07-24 Thread Michael Torrie
On 07/24/2013 08:34 AM, Chris Angelico wrote: Frankly, Python's strings are a *terrible* internal representation for an editor widget - not because of PEP 393, but simply because they are immutable, and every keypress would result in a rebuilding of the string. On the flip side, I could quite

Re: RE Module Performance

2013-07-24 Thread Michael Torrie
On 07/24/2013 04:19 PM, Chris Angelico wrote: I'm referring here to objections like jmf's, and also to threads like this: http://mozilla.6506.n7.nabble.com/Flexible-String-Representation-full-Unicode-for-ES6-td267585.html According to the ECMAScript people, UTF-16 and exposing surrogates to

Re: RE Module Performance

2013-07-25 Thread Michael Torrie
On 07/25/2013 01:07 PM, wxjmfa...@gmail.com wrote: Let start with a simple string \textemdash or \texttendash sys.getsizeof('–') 40 sys.getsizeof('a') 26 That's meaningless. You're comparing the overhead of a string object itself (a one-time cost anyway), not the overhead of storing the

Re: RE Module Performance

2013-07-25 Thread Michael Torrie
On 07/25/2013 11:18 AM, Steven D'Aprano wrote: JMF has explained that it is impossible, impossible I say!, to write an editor using a flexible string representation. Since Emacs uses such a flexible string representation, Emacs is impossible, and therefore Emacs doesn't exist. Now I'm even

Re: RE Module Performance

2013-07-26 Thread Michael Torrie
On 07/26/2013 07:21 AM, wxjmfa...@gmail.com wrote: sys.getsizeof('––') - sys.getsizeof('–') I have already explained / commented this. Maybe it got lost in translation, but I don't understand your point with that. Hint: To understand Unicode (and every coding scheme), you should understand

FSR and unicode compliance - was Re: RE Module Performance

2013-07-28 Thread Michael Torrie
On 07/27/2013 12:21 PM, wxjmfa...@gmail.com wrote: Good point. FSR, nice tool for those who wish to teach Unicode. It is not every day, one has such an opportunity. I had a long e-mail composed, but decided to chop it down, but still too long. so I ditched a lot of the context, which jmf also

Re: RE Module Performance

2013-07-30 Thread Michael Torrie
On 07/30/2013 12:19 PM, Antoon Pardon wrote: So? Why are you making this a point of discussion? I was not aware that the pro and cons of various editor buffer implemantations was relevant to the point I was trying to make. I for one found it very interesting. In fact this thread caused me to

Re: RE Module Performance

2013-07-30 Thread Michael Torrie
On 07/30/2013 01:09 PM, wxjmfa...@gmail.com wrote: Matable, immutable, copyint + xxx, bufferint, O(n) Yes, but conceptualy the reencoding happen sometime, somewhere. The internal ucs-2 will never automagically be transformed into ucs-4 (eg). So what major python project are you working

Re: RE Module Performance

2013-07-31 Thread Michael Torrie
On 07/31/2013 01:23 AM, Antoon Pardon wrote: Op 31-07-13 05:30, Michael Torrie schreef: On 07/30/2013 12:19 PM, Antoon Pardon wrote: So? Why are you making this a point of discussion? I was not aware that the pro and cons of various editor buffer implemantations was relevant to the point I

Re: RE Module Performance

2013-07-31 Thread Michael Torrie
On 07/31/2013 02:32 AM, wxjmfa...@gmail.com wrote: Unicode/utf* Why do you keep using the terms utf and Unicode interchangeably? -- http://mail.python.org/mailman/listinfo/python-list

Re: Python script help

2013-08-04 Thread Michael Torrie
On 08/02/2013 03:46 AM, cool1...@gmail.com wrote: I do know some Python programming, I just dont know enough to put together the various scripts I need...I would really really appreciate if some one can help me with that... Seems like your first task, then, is to become proficient at python so

Re: Python Basic Doubt

2013-08-10 Thread Michael Torrie
On 08/10/2013 09:09 PM, Krishnan Shankar wrote: i.e. Is this code possible if a is False: print 'Yes' if b is False: print 'No' Because i recommended this should not be done. But my colleagues say it is correct. You are probably correct in your believe that this idiom should

Re: Could you verify this, Oh Great Unicode Experts of the Python-List?

2013-08-11 Thread Michael Torrie
On 08/11/2013 09:34 AM, MRAB wrote: If twitter counts characters, not codepoints, you could then ask whether it passes the codepoints through as given. If it does, then you experiment to see how much data you could send encoded as a sequence of combining codepoints. (You might want to check

Re: Could you verify this, Oh Great Unicode Experts of the Python-List?

2013-08-12 Thread Michael Torrie
On 08/11/2013 11:54 PM, Gregory Ewing wrote: Michael Torrie wrote: I've always wondered if the 160 character limit or whatever it is is a hard limit in their system, or if it's just a variable they could tweak if they felt like it. Isn't it for compatibility with SMS? Twitter could

Re: Am I not seeing the Error?

2013-08-13 Thread Michael Torrie
On 08/13/2013 04:31 AM, Devyn Collier Johnson wrote: For me, this style is easier to read. I have tried the typical style, but I find this one to be easier. One thing I do know is that your style makes it very hard to find errors, even when the parser flags them. And the fact that you posted

Re: c# async, await

2013-08-22 Thread Michael Torrie
On 08/22/2013 05:29 AM, Neal Becker wrote: So my son is now spending his days on c# and .net. He's enthusiastic about async and await, and said to me last evening, I don't think python has anything like that. I'm not terribly knowledgeable myself regarding async programming (since I

Re: python interface to iMacros

2013-08-24 Thread Michael Torrie
On 08/23/2013 09:13 AM, inq1ltd wrote: Python help, I am running iMacros from linux/firefox and doing most of what I want. But, there are times when I want to do something of the net and then back to the iMacros script. Are there any projects out there that will connect python

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

2013-08-24 Thread Michael Torrie
#Linux, #Python? This this hash tag stuff is getting out of hand, don't you think? -- http://mail.python.org/mailman/listinfo/python-list

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

2013-08-24 Thread Michael Torrie
On 08/24/2013 10:06 PM, Benjamin Kaplan wrote: On Sat, Aug 24, 2013 at 7:08 PM, Michael Torrie torr...@gmail.com wrote: #Linux, #Python? This this hash tag stuff is getting out of hand, don't you think? Didn't you hear? In an effort to redefine itself for the modern Internet, Usenet

Re: gethostbyname_ex(hostname) extremely slow (crossposted from stackoverflow)

2013-08-31 Thread Michael Torrie
On 08/31/2013 10:51 PM, anntzer@gmail.com wrote: It is the call to gethostbyname_ex that is very slow. The call to gethostname is quick (and returns the same string as /usr/bin/hostname). What gethostbyname_ex and /usr/bin/hostname do are very different things. gethostbyname_ex does a

Re: file handling issues

2013-09-06 Thread Michael Torrie
On 09/06/2013 09:05 PM, Leo Carnovale wrote: Ah and one other thing! What is this crypto algorithm you speak of? I desperately need some sort of encryption as at the moment anyone can simply open the text file and change the numbers to numbers that work! Where can I learn more about it? There

Re: Can I trust downloading Python?

2013-09-07 Thread Michael Torrie
On 09/07/2013 07:17 PM, Aaron Martin wrote: Hi, I am thinking about getting a software but it requires python, so that brought up a few questions. Is it safe do download python, and does it come with spam or advertisements? If it doesn't then should I get the latest version? I mostly want to

Re: Help - Python syntax - repeats script through subordinate folders

2013-09-07 Thread Michael Torrie
On 09/07/2013 09:09 PM, BlueFielder wrote: I 'think' I did as you instructed …. but that too failed. :( CiMac:ddd camforx$ find -type d -execdir bash -c 'cd {}; python ./fxp2aupreset.py ./ aumu Alb3 LinP vstdata' \; find: illegal option -- t usage: find [-H | -L | -P] [-EXdsx] [-f path]

Re: Can I trust downloading Python?

2013-09-09 Thread Michael Torrie
On 09/09/2013 05:02 AM, Anthony Papillion wrote: But (and this is stepping into *really* paranoid territory here. But maybe not beyond the realm of possibility) it would not be so hard to compromise compilers at the chip level. If the NSA were to strike an agreement with, say, Intel so that

Re: Chardet, file, ... and the Flexible String Representation

2013-09-09 Thread Michael Torrie
On 09/09/2013 08:28 AM, wxjmfa...@gmail.com wrote: Comment: Such differences never happen with utf. But with utf, slicing strings is O(n) (well that's a simplification as someone showed an algorithm that is log n), whereas a fixed-width encoding (Latin-1, UCS-2, UCS-4) is O(1). Do you

Re: Can I trust downloading Python?

2013-09-09 Thread Michael Torrie
On 09/09/2013 10:40 AM, William Ray Wing wrote: I think that is pretty far fetched. It requires recognition that a compiler is being compiled. I'd be REALLY surprised if there were a unique sequence of hardware instructions that was common across every possible compiler (current and future)

Re: Monitor key presses in Python?

2013-09-09 Thread Michael Torrie
On 09/09/2013 11:39 AM, eamonn...@gmail.com wrote: Is there a way to detect if the user presses a key in Python that works on most OS's? I've only seen 1 method, and that only works in Python 2.6 and less. If you get the key, can you store it in a variable? Also, is there a way to create a

Re: Python TUI that will work on DOS/Windows and Unix/Linux

2013-09-10 Thread Michael Torrie
On 09/04/2013 05:41 AM, James Harris wrote: Naturally, all of these are centred on curses. I have been reading up on it and must say that the whole curses approach seems rather antiquated. I appreciate the suggestions and they may be what I need to do but from what I have seen of curses it

Re: Python GUI?

2013-09-11 Thread Michael Torrie
On 09/11/2013 02:55 PM, eamonn...@gmail.com wrote: PyQT -- You have a GUI designer, so I'm not going to count that What do you mean? Gtk has a GUI designer too. what of it? I, personally, really like wxPython, but I also really like Tkinter. I've messed with PyGTK, but I'd choose wxPython

Re: Python GUI?

2013-09-12 Thread Michael Torrie
On 09/12/2013 10:03 AM, eamonn...@gmail.com wrote: I didn't realise GTK has a GUI designer too :( I don't like it when you can DD to position things. I don't understand why someone wouldn't want to write the positioning code, and have fun with the debugging. That's the best part about

Re: Python GUI?

2013-09-12 Thread Michael Torrie
On 09/12/2013 09:02 PM, Michael Torrie wrote: In any event I think you should give both Glade-3 and Qt Designer a serious look. I think your hate of gui designers is about 10 years out of date now, even if you still prefer not to use them. This is a bit old but still how Qt works: http

Re: Python GUI?

2013-09-12 Thread Michael Torrie
On 09/12/2013 09:39 PM, Peter wrote: I stuck with Tkinter combined with PMW for a very long time, but the lack of extra widgets finally drove me to look elsewhere. I tried PyQT but didn't have a good experience. I can't remember details, but things just seemed to have little gotchas - which

Re: Python GUI?

2013-09-13 Thread Michael Torrie
On 09/13/2013 12:23 PM, eamonn...@gmail.com wrote: On Friday, September 13, 2013 4:02:42 AM UTC+1, Michael Torrie wrote: On 09/12/2013 10:03 AM, eamonn...@gmail.com wrote: I think your hate of gui designers is about 10 years out of date now, even if you still prefer not to use them. So

Re: How is this list comprehension evaluated?

2013-09-16 Thread Michael Torrie
On 09/16/2013 07:43 AM, Arturo B wrote: It uses a list comprenhension to generate the Latin Square, I'm am a newbie to Python, and I've tried to figure out how this is evaluated: a = [1, 2, 3, 4] n = len(a) [[a[i - j] for i in range(n)] for j in range(n)] I don't understand

Re: Python GUI?

2013-09-18 Thread Michael Torrie
On 09/17/2013 10:19 AM, Benjamin Kaplan wrote: Sure. Every platform provides its own GUI library (Cocoa on Mac OS X, Win32 on Windows). Other programs that want to hook into yours, such as screen readers, are familiar with the platform's native GUI elements- it knows what a Win32 combo box is,

Re: Python GUI?

2013-09-20 Thread Michael Torrie
On 09/20/2013 12:34 PM, Metallicow wrote: I prefer wx over qt for these reasons. Robin works for qt now. *Funny isn't it...* Basically, To change qt(PySide) you need to pretty much need to be employed by qt, not the case with wx(is not a *For profit*, but you can donate.). In my opinion, in

Re: Python GUI?

2013-09-20 Thread Michael Torrie
On 09/20/2013 01:58 PM, Metallicow wrote: Sorry about that, nokia is/was. qt was developed(IIRC) for phones. Someone made money. And a lot of it. wx is a more or less a free project. I don't use a phone anymore. If I had a touch screen phone and was a developer, I still wouldn't use one. I

Re: pyGTK Help Needed Please

2013-09-20 Thread Michael Torrie
On 09/20/2013 12:30 PM, bingefel...@gmail.com wrote: Hi folks, I'm trying to run a program called Nicotine+ on my Mac which is running 10.8.5. Nicotine+ requires GTK2, pyGTK2 and Python to run. I believe I have all of these installed via Macports (please see here -

Re: Stop posting HTML [was Re: I haev fixed it]

2013-10-01 Thread Michael Torrie
On 10/01/2013 08:40 PM, Steven D'Aprano wrote: On Tue, 01 Oct 2013 22:02:36 -0400, Joel Goldstick wrote: On Tue, Oct 1, 2013 at 9:52 PM, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: Joel, you've been asked repeatedly to please stop posting HTML. [...]

Re: Python Front-end to GCC

2013-10-22 Thread Michael Torrie
On 10/22/2013 12:28 PM, Mark Janssen wrote: Thank you. You may be seated. Ranting Rick, is that you? -- https://mail.python.org/mailman/listinfo/python-list

Re: trying to strip out non ascii.. or rather convert non ascii

2013-10-30 Thread Michael Torrie
On 10/30/2013 10:08 AM, wxjmfa...@gmail.com wrote: My comment had nothing to do with Python, it was a general comment. A diacritical mark just makes a letter a different letter; a ï and a i are as diferent as a a from a z. A diacritical mark is more than a simple ornementation. That's nice,

Re: Python wart

2013-10-31 Thread Michael Torrie
On 10/31/2013 07:45 PM, Mark Lawrence wrote: Quite often I type this print('Total of accounts %.2f', total) when I meant to type this print('Total of accounts %.2f' % total) Do I have to raise a PEP to get this stupid language changed so that it dynamically recognises what I want it

Re: Python wart

2013-10-31 Thread Michael Torrie
On 10/31/2013 08:56 PM, Mark Lawrence wrote: On 01/11/2013 02:41, Michael Torrie wrote: On 10/31/2013 07:45 PM, Mark Lawrence wrote: Quite often I type this print('Total of accounts %.2f', total) when I meant to type this print('Total of accounts %.2f' % total) Do I have to raise a PEP

Re: Algorithm that makes maximum compression of completly diffused data.

2013-11-03 Thread Michael Torrie
On 11/03/2013 12:09 AM, Mark Janssen wrote: Congratulations Jonas. My kill file for this list used to have only one name, but now has 2. You have more patience than I! Jonas just made mine seven. :) Gosh, don't kill the guy. It's not an obvious thing to hardly anyone but computer

Re: py2c - an open source Python to C/C++ is looking for developers

2012-09-01 Thread Michael Torrie
On 09/01/2012 09:15 PM, Ramchandra Apte wrote: It converts to *pure* C/C++ *without* using Python or its API so that it can be the same speed as C/C++ Sounds like a fun project for you. I hope you learn a lot doing it. That's reason enough for it. Do you plan to port all the standard python

Re: Flexible string representation, unicode, typography, ...

2012-09-02 Thread Michael Torrie
On 09/02/2012 12:58 PM, wxjmfa...@gmail.com wrote: My rationale: very simple. 1) I never heard about something better than sticking with one of the Unicode coding scheme. (genreral theory) 2) I am not at all convinced by the new Py 3.3 algorithm. I'm not the only one guy, who noticed

Re: avoid the redefinition of a function

2012-09-12 Thread Michael Torrie
On 09/12/2012 06:56 AM, Jabba Laci wrote: I have an installer script that contains lots of little functions. It has an interactive menu and the corresponding function is called. Over time it grew long and when I want to add a new function, I should give a unique name to that function. However,

Re: notmm is dead!

2012-10-04 Thread Michael Torrie
On 10/04/2012 05:13 PM, Etienne Robillard wrote: Thanks, but I tried all that and don't have much energy for continuing. If you're serious about open source then maybe you can forward the thread to django-developers and get some fundings to pay for a minimalistic fee to get the project

Re: notmm is dead!

2012-10-05 Thread Michael Torrie
On 10/05/2012 04:43 AM, Etienne Robillard wrote: No. All past notmm licenses were and still ARE ISC licensed. The license fee is simply because I'm shifting into commercial license for new releases, including the newer 0.4.5 version... Pypi was not the authority source for notmm and neither

Re: notmm is dead!

2012-10-05 Thread Michael Torrie
On 10/05/2012 07:43 PM, 8 Dihedral wrote: I think it is OK to have some string attatched in those open source projects. What are you talking about? What string? Nowadays the software industry is just like the perfume and prtinting and the audio-video entaertainment industry. True

Re: notmm is dead!

2012-10-07 Thread Michael Torrie
On 10/07/2012 08:08 PM, alex23 wrote: On Oct 8, 11:45 am, Dwight Hutto dwightdhu...@gmail.com wrote: What is failed, but a timeline in this scenario, if you found the answer in the end? It was a _joke_ referring to Michael Torrie's email addressing the 8 Dihedral bot _as if it was a

Re: notmm is dead!

2012-10-07 Thread Michael Torrie
On 10/07/2012 09:42 PM, Jason Friedman wrote: It was a _joke_ referring to Michael Torrie's email addressing the 8 Dihedral bot _as if it was a person_. Well it would be useful to probe the bot's parameters... Five eights is a busy bot:

Re: Generating C++ code

2012-10-10 Thread Michael Torrie
On 10/09/2012 10:00 AM, Jean-Michel Pichavant wrote: Greetings, I'm trying to generate C++ code from an XML file. I'd like to use a template engine, which imo produce something readable and maintainable. My google search about this subject has been quite unsuccessful, I've been redirected

Re: Aggressive language on python-list

2012-10-14 Thread Michael Torrie
On 10/13/2012 09:46 AM, Etienne Robillard wrote: OT. you obviously has no clue what agressive behavior mean. :-) So please continue with the passive tone saying nothing relevant and login to facebook. There's a saying in English. Hit pigeons flutter. I have not been impressed with your

Re: Preventing crap email from google?

2012-10-19 Thread Michael Torrie
On 10/19/2012 06:43 PM, Mark Lawrence wrote: Good morning/afternoon/evening all, Is there any possibility that we could find a way to prevent the double spaced rubbish that comes from G$ infiltrating this ng/ml? For example, does Python have anybody who works for G$ who could pull a few

Re: How to set 250000 baud rate in pyserial ?

2012-10-26 Thread Michael Torrie
On 10/26/2012 04:01 PM, kura...@gmail.com wrote: Error is like cannot set special baud rate. But as I said pyserial set this speed without problem for ttyUSB0 So it seems pyserial uses diefferent code depending of port type. I tried to simlink ln -s ttyACM0 ttyUSB0 but it does not work No

Re: Negative array indicies and slice()

2012-10-29 Thread Michael Torrie
On 10/29/2012 01:34 PM, Andrew Robinson wrote: No, I don't think it big and complicated. I do think it has timing implications which are undesirable because of how *much* slices are used. In an embedded target -- I have to optimize; and I will have to reject certain parts of Python to make

Re: Negative array indicies and slice()

2012-10-30 Thread Michael Torrie
On 10/30/2012 09:47 AM, Andrew Robinson wrote: Let's not confound an issue here -- I am going to implement the python interpreter; and am not bound by optimization considerations of the present python interpreter -- There are things I can do which as a python programmer -- you can't. I

Re: How to generate account number?

2012-11-03 Thread Michael Torrie
On 11/02/2012 03:13 PM, Andriy Kornatskyy wrote: Requirements for `account number` generator: 1. Issue pseudo random consistent number (must be unique for dozen millions of records) 2. Easy check validity (without a need to make a database call) Interested? Read more here:

Re: Migrate from Access 2010 / VBA

2012-11-26 Thread Michael Torrie
On 11/22/2012 08:19 PM, kgard wrote: I am the lone developer of db apps at a company of 350+ employees. Everything is done in MS Access 2010 and VBA. I'm frustrated with the limitations of this platform and have been considering switching to Python. I've been experimenting with the language

Re: Regular expression for different date formats in Python

2012-11-26 Thread Michael Torrie
On 11/26/2012 06:15 AM, undesputed.hack...@gmail.com wrote: I am a beginner in python and need help with writing a regular expression for date and time to be fetched from some html documents. Would the parser module from the third-party dateutil module work for you?

Re: Migrate from Access 2010 / VBA

2012-11-27 Thread Michael Torrie
On 11/27/2012 05:06 PM, David Bolen wrote: I went through a very similar transition a few years ago from standalone Access databases (with GUI forms, queries and reports, as well as replication) to a pure web application with full reporting (albeit centrally designed and not a report designer

Re: Imaging libraries in active development?

2012-11-28 Thread Michael Torrie
On 11/28/2012 05:30 AM, Alasdair McAndrew wrote: I'm investigating Python for image processing (having used Matlab, then Octave for some years). And I'm spoiled for choice: PIL and its fork pillow, scipy.ndimage, scikits-image, mahotas, the Python interface to openCV... However, PIL

Re: Migrate from Access 2010 / VBA

2012-11-29 Thread Michael Torrie
On 11/29/2012 09:05 AM, Joel Goldstick wrote: This looks promising: http://www.codediesel.com/data/migrating-access-mdb-to-mysql/ Unfortunately I have not found mdb tools to be sufficient. You can use them to convert the schema to sql, and to reveal any mdb password (great for looking at the

Re: using smtp sent large file upto 60MB

2012-12-05 Thread Michael Torrie
On 12/04/2012 05:54 PM, moonhkt wrote: Our SMTP can send file more than 60MB. But our notes server can configured 100MB,30MB or 10MB. My notes Mail box can receive 100MB. In UNIX, by below command send smtp mail. uuencode $xfn $xfn | mail -s $SUBJECT $NAME Just continue to use this set of

Re: Remote server: running a Python script and making *.csv files publicly available

2012-12-05 Thread Michael Torrie
On 12/05/2012 12:14 PM, Jason Hsu wrote: I have a Python 2.7 script that produces *.csv files. I'd like to run this Python script on a remote server and make the *.csv files publicly available to read. Can this be done on Heroku? I've gone through the tutorial, but it seems to be geared

Re: strptime - dates formatted differently on different computers

2012-12-10 Thread Michael Torrie
On 12/10/2012 02:18 PM, noydb wrote: Follow-on question to this earlier topic - https://groups.google.com/d/topic/comp.lang.python/wnUlPBBNah8/discussion Was curious to know if there was a way to handle different user computers with different operating system set date formats. 2/10/2006

Re: strptime - dates formatted differently on different computers

2012-12-11 Thread Michael Torrie
On 12/11/2012 01:08 AM, Chris Angelico wrote: There are a LOT more date formats than those used in the USA. The most obvious trio is American MDY, European DMY, Japanese YMD, but there are plenty more to deal with. Have fun. For the record I didn't write the module, so I don't care whether or

Re: strptime - dates formatted differently on different computers

2012-12-11 Thread Michael Torrie
On 12/11/2012 01:08 AM, Chris Angelico wrote: That sort of statement will get you either amusement or ire, depending on the respondent. From me, amusement, because there are enough common American date formats for you to feel you've done a thorough test. Also what I meant was common english

Re: samba 4 release

2012-12-12 Thread Michael Torrie
On 12/12/2012 04:40 PM, Mark Lawrence wrote: Awesome!!! But what the is it??? Are you serious? You honestly don't know what one of the oldest, most widely used piece of open source software it and what it does? Samba is at least as well-known and important as Apache, if not more so. You

Re: Running a python script under Linux

2012-12-14 Thread Michael Torrie
On 12/13/2012 07:45 PM, Steven D'Aprano wrote: When I call python some_script.py from the command line, it runs under Python 2.7 as I expected. So I give the script a hash-bang line: #!/usr/bin/env python and run the script directly, but instead of getting Python 2.7, it runs under

Re: context aware execution

2012-12-19 Thread Michael Torrie
On 12/19/2012 09:51 AM, Bart Thate wrote: Think of sending JSON over the wire, reconstruct an object with it and then let the object figure out what it can and cannot do in this external environment. Probably the better way to do it is to formally define an API that lets an object discover

Re: Python USB control on Windows 7?

2012-12-23 Thread Michael Torrie
On 12/23/2012 11:11 AM, Duncan Booth wrote: So far as I can tell Windows doesn't let you turn the ports on and off. I found some suggestion that by connecting it to a powered hub it may be possible to toggle the hub power on and off but that many hubs don't bother implementing the

Re: [Help] [Newbie] Require help migrating from Perl to Python 2.7 (namespaces)

2012-12-26 Thread Michael Torrie
On 12/25/2012 04:42 PM, Rick Johnson wrote: What IS a variable Dennis? # #Variable (ComputerScience)# Found the reference you are quoting

Re: [Help] [Newbie] Require help migrating from Perl to Python 2.7 (namespaces)

2012-12-26 Thread Michael Torrie
On 12/25/2012 04:42 PM, Rick Johnson wrote: With that accurate definition in mind you can now understand how Python classes CAN and DO have variables, just as Python modules have variables; psst: they're called global variables! Nice ascii graphic, but citation needed. What CS text book are

Re: New to python, do I need an IDE or is vim still good enough?

2012-12-27 Thread Michael Torrie
On 12/27/2012 01:01 PM, mogul wrote: Do I really need a real IDE, as the windows guys around me say I do, or will vim, git, make and other standalone tools make it the next 20 years too for me? I've never ever used an IDE with Python. With Python I can code for an hour in vim and it runs with

Re: New to python, do I need an IDE or is vim still good enough?

2012-12-27 Thread Michael Torrie
On 12/27/2012 02:25 PM, Tim Chase wrote: Alas, one of the worst parts about programming in Python is that I now find it hard to go back to any of the other languages that I know. :-) Amen. I find myself wishing for a python-like language for programming Arduino boards. --

Re: Excute script only from another file

2013-11-24 Thread Michael Torrie
On 11/24/2013 06:55 PM, Himanshu Garg wrote: I want that a script should only be executed when it is called from another script and should not be directly executable through linux command line. Like, I have two scripts scrip1.py and script2.py and there is a line in script1.py to call

Re: python for everyday tasks

2013-11-25 Thread Michael Torrie
I only respond here, as unicode in general is an important concept that the OP will to make sure his students understand in Python, and I don't want you to dishonestly sow the seeds of uncertainty and doubt. On 11/25/2013 03:12 AM, wxjmfa...@gmail.com wrote: Your paragraph is mixing different

Re: Access and write .mp3 metadata/tags using Python 3

2013-11-26 Thread Michael Torrie
On 11/26/2013 08:41 AM, andonefi...@gmail.com wrote: I'm trying to figure out how to get python to access the properties section of an mp3 file. When you right click an mp3 file and go to properties you can edit the title, album, and things like that. I also want to be able to read the length

Re: Access and write .mp3 metadata/tags using Python 3

2013-11-26 Thread Michael Torrie
On 11/26/2013 10:10 AM, andonefi...@gmail.com wrote: I'm still a bit new to this. When I download a module like Mutagen and unzip it I have a folder and tons of files within folders? I see no file simply called mutagen? So how can I import the module? Also you can install many things using

Re: How to determine whether client and server are on the same host

2013-11-26 Thread Michael Torrie
On 11/25/2013 12:35 PM, Malte Forkel wrote: I have a Python application that communicates with a server via telnet. Host and port of the server are supplied by the user when the application is started. How can I determine from within the application whether the server's host actually is the

Re: Python String Formatting - passing both a dict and string to .format()

2013-11-26 Thread Michael Torrie
On 11/26/2013 05:01 PM, Victor Hooi wrote: Hi, I'm trying to use Python's new style string formatting with a dict and string together. For example, I have the following dict and string variable: my_dict = { 'cat': 'ernie', 'dog': 'spot' } foo = 'lorem ipsum' If I want to just use the

Re: python for everyday tasks

2013-11-27 Thread Michael Torrie
On 11/27/2013 11:05 AM, Pavel Volkov wrote: Thanks for all those references. There's this statement in the first article: Got a switch statement? The Python translation is a hash table, not a bunch of if-then statments. Got a bunch of if-then's that wouldn't be a switch statement in Java

Re: Managing Google Groups headaches

2013-11-28 Thread Michael Torrie
On 11/28/2013 08:08 AM, Chris Angelico wrote: Which is easier, fiddling around with your setup so you can post reasonably on Google Groups, or just getting a better client? With your setup, you have to drop out to another editor and press F9 for it to work. With pretty much any other

Re: Managing Google Groups headaches

2013-11-28 Thread Michael Torrie
On 11/28/2013 10:23 AM, Ned Batchelder wrote: Funny, I thought the sentiment of many here was, let's just keep this as a newsgroup, why do we need the mailing list also? but I'll admit to being confused about what people have been proposing for alternate topologies. That may well be the

Re: Managing Google Groups headaches

2013-11-28 Thread Michael Torrie
On 11/28/2013 11:37 AM, rusi wrote: Do you realize that that person was not using GG? I do but he was using usenet. IOW we are unfortunately conflating two completely unrelated things: 1. GG has some technical problems which are fairly easy to solve 2. All kinds of people hop onto the list.

Re: Managing Google Groups headaches

2013-11-28 Thread Michael Torrie
My point was that the list problems in general seem to be related to usenet. GG formatting, spam, trolls. I guess I should have changed the subject line. Ditching usenet solves the GG problem and a number of other problems as well. IOW we are unfortunately conflating two completely unrelated

<    1   2   3   4   5   6   7   8   9   10   >