Re: PyWart: Itertools module needs attention

2011-09-12 Thread Nick Stinemates
On Mon, Sep 12, 2011 at 10:04 PM, rantingrick wrote: > > > # Quote # > > # The itertools module is great HOWEVER i believe m

Re: admin login fails

2011-04-19 Thread Nick Stinemates
On Tue, Apr 19, 2011 at 5:36 PM, pfc wrote: > I did try to delete the db and yes I had to create a new superuser > after, however this did not fix the problem. I also reset the db from > the command-line and same result. > Also, it is not a capslock issue, first thing I checked ;-) > The only th

Re: [Tutor] Sound question

2011-04-08 Thread Nick Stinemates
On Fri, Apr 8, 2011 at 5:12 PM, Alan Gauld wrote: > > "Jan Erik Moström" wrote > > A couple of my students need to be able to play sounds, ... >> >> >> I looked around and found several packages but they all >> seem to have some kind platform restrictions. >> > > Sound tends to be platform speci

Re: [Python-Dev] Information about how cpython in benchmarked

2011-03-29 Thread Nick Stinemates
This is really great to hear and something I would be hugely interested in contributing to. Lurking has paid off :) Nick On Tue, Mar 29, 2011 at 4:00 AM, Nick Coghlan wrote: > On Tue, Mar 29, 2011 at 8:01 PM, Tennessee Leeuwenburg > wrote: > > PyPy maintains http://speed.pypy.org/, which prov

Re: python time

2011-03-20 Thread Nick Stinemates
You should just use cron (or Windows Scheduled Tasks if that's your thing) for job scheduling, allowing people the flexibility of the environment they already know. Nick On Sun, Mar 20, 2011 at 6:19 PM, ecu_jon wrote: > I'm working on a script that will run all the time. at time specified > in

Re: Could I joined in this Happy family

2011-03-18 Thread Nick Stinemates
Welcome aboard ! On Mar 18, 2011 11:34 AM, "duxiu xiang" wrote: > Dear friends: > I am in China.For some rearon,I cannot visit your Google Group.May > I joint this mail list for help in learning Python? > > -- > 笑看嫣红染半山,逐风万里白云间。 -- http://mail.python.org/mailman/listinfo/python-list

Re: PyCon

2011-03-11 Thread Nick Stinemates
http://blip.tv/search?q=pycon HTH Nick On Fri, Mar 11, 2011 at 4:45 AM, Rita wrote: > Hello, > > I noticed the old presentations at PyCon aren't avaliable anymore. > http://us.pycon.org/2010/ http://us.pycon.org/2009/ > > Does anyone know where else I can get thes

Re: Bugs/issues in tkinter.simpledialog!!

2011-01-26 Thread Nick Stinemates
> However some things never change it seems and some improvements are > actually a step backwards. The same problems with the unit test in 2.x > got ported to 3.x. And the new SimpleDialog is just more lackluster > code like we've seen before. I was hoping to be amazed, i am > disappointed and disg

Re: Tkinter: The good, the bad, and the ugly!

2011-01-20 Thread Nick Stinemates
> > Greg Wilson - > I thought about using wxPython in the most recent run of my Python > course, but > decided to stick to Tkinter because: > > - There isn't a wxWindows/wxPython book (matters a lot when > organizations are > trying to decide what to adopt for long-term use). > Greg

Re: Tkinter: The good, the bad, and the ugly!

2011-01-20 Thread Nick Stinemates
> > > > So you're going to lead the "peasants" (your word) whether they like it > > or not, and any who don't want to follow are clearly being selfish and > > ignorant? > > If you could read Bill's words and not find them to be overly selfish > and ignorant then i don't know what to say. He clearly

Re: [Tutor] OOP question

2011-01-19 Thread Nick Stinemates
a winning bet)...when you say expand on them, what do you mean > exactly? > > Thanks again, really much appreciated! > > > On Tue, Jan 18, 2011 at 4:31 PM, Nick Stinemates wrote: > >> You may also want to look in to the __eq__ and __ne__ methods. You're just >> r

Re: Tkinter: The good, the bad, and the ugly!

2011-01-18 Thread Nick Stinemates
You make it very hard for me to take what you say seriously. I lurk on this list and I have created a filter where emails from you go in to Spam. Good luck. Nick On Tue, Jan 18, 2011 at 5:23 PM, rantingrick wrote: > On Jan 18, 2:37 pm, Adam Skutt wrote: > > On Jan 18, 2:11 pm, rantingrick wr

Re: [Tutor] OOP question

2011-01-18 Thread Nick Stinemates
Updated inline. Check the updated definiton of winAmount. Nick On Tue, Jan 18, 2011 at 9:25 AM, Ben Ganzfried wrote: > Hey guys, > > I'm trying to get a version of Roulette working and I had a quick > question. Here is my code: > > class Outcome: > > def __init__(self, name, odds): >

Re: [Tutor] Python on Ubuntu 10.10?

2011-01-15 Thread Nick Stinemates
Python comes pre installed on Ubuntu, as most of the GUI is written in it. Nick On Friday, January 14, 2011, Joel Knoll wrote: > > > > > > Hello, > > I am new to programming and to Python.  I've been using Python with IDLE on > Windows Vista for a few weeks now. > (And I'm loving it!)  However,

Re: cipher encoding

2011-01-12 Thread Nick Stinemates
Try print s[::-1] Nick On Wednesday, January 12, 2011, Cathy James wrote: > Dear all, > > I hope someone out there can help me. > >  The output string of my code is close to what i need, but i need it > 1)printed on one line and > > 2) reversed > > > #mycode: > s= input("Enter message: ") > key

Re: automated testing: how to generate human-verifiable views?

2011-01-04 Thread Nick Stinemates
Can you elaborate a bit? Are you interested in having the ui render and generate a screen shot for human review? That's how I interpreted your question. If that's the case, look in to generating a screenshot by leveraging a tool that generates a png from HTML. I am eager to hear what others think

Re: A Good Mailer

2009-11-18 Thread Nick Stinemates
uot;em...@myhost.com"] session.sendmail(email_from, email_to, header+messages) HTH, Nick Stinemates > TIA, > Victor > -- > http://mail.python.org/mailman/listinfo/python-list -- http://mail.python.org/mailman/listinfo/python-list

Re: Accessing a Web server --- how?

2009-11-18 Thread Nick Stinemates
This is what the History and Compare URL translates to: http://service.nordea.com/nordea-openpages/six.action?target=/nordea.public/bond/nordeabond.page&magic=(cc+(detail+(tsid+310746)+(view+hist)))& Some questions.. Do you have an idea on what the tsid is? It looks like it's a unique identifier

Re: _winreg error on open key (64bit) - proper usage of _winreg.DisableReflectionKey

2009-11-17 Thread Nick Stinemates
>From _winreg.c: "Disables registry reflection for 32-bit processes running on a 64-bit OperatingSystem. Will generally raise NotImplemented if executed on a 32-bit Operating System. If the key is not on the reflection list, the function succeeds but has noeffect. Disabling reflection for a key

Re: Vim breaks after Python upgrade

2009-11-17 Thread Nick Stinemates
At least with Gentoo, there's a command to recompile all of the plugins you have installed when upgrading python versions. Your issue is probably related to that. I don't think VIM uses hardcoded locations for scripts at the core. If you have any specific questions about the errors you're receivi

Re: [Tutor] Introduction - log exercise

2009-11-17 Thread Nick Stinemates
> I will read lines from file, with the 'for loop', and then I will check them > for > 'foo' matches with a 'while loop', if matches I (somehow) re-initialise the > list, and if there is no matches for foo, I will append line to the list. > When I > get to a blank line (end of block), write myLis

Re: list comprehension problem

2009-10-29 Thread Nick Stinemates
> Some objects are singletons, ie there's only ever one of them. The most > common singleton is None. In virtually every other case you should be > using "==" and "!=". Please correct me if I am wrong, but I believe you meant to say some objects are immutable, in which case you would be correct.

RE: Testing dynamic languages

2009-04-05 Thread Nick Stinemates
Plenty. Try github.com for starters. -Original Message- From: python-list-bounces+nick=stinemates@python.org [mailto:python-list-bounces+nick=stinemates@python.org] On Behalf Of barisa Sent: Sunday, April 05, 2009 10:22 AM To: python-list@python.org Subject: Re: Testing dynamic

RE: Generators/iterators, Pythonicity, and primes

2009-04-05 Thread Nick Stinemates
I thought it was beautiful. Reminded me of lisp and I haven't seen that done in Python before. -Original Message- From: python-list-bounces+nick=stinemates@python.org [mailto:python-list-bounces+nick=stinemates@python.org] On Behalf Of Kay Schluehr Sent: Sunday, April 05, 2

RE: is there a way to collect twitts with python?

2009-04-03 Thread Nick Stinemates
> Thank you, thank you, thank you > everyone around me seems to love that thing (twitter), and I still can't > work out why (apart from hacks such as using it as a hosted queue for > cross-server comms, or receiving cheap sms to your app) > Tim Wintle You mean you don't want to read every d

[chromium-discuss] Re: View Source ( of selected elements )

2009-03-26 Thread Nick Stinemates
It exists. It's called 'Inspect element' Just highlight something and right click. On Mar 25, 6:39 am, Kenan Sulayman wrote: > I'd like to proppse that for GChrome. > It's reason I prefer FF to GChrome. > > Anything to say? > > Thanks, > Kenan Sulayman --~--~-~--~~~

Re: [PHP] Launching multiple PHP threads via Scheduled Tasks

2008-10-27 Thread Nick Stinemates
On Mon, Oct 27, 2008 at 11:44:50AM -0700, Brian Dunning wrote: > I've got a script that downloads files queued from a server, and it's > launched by a Windows Scheduled Task that launches every minute. My > understanding of the default behavior is that if the task is still > running a minute

Re: [PHP] Interactive canvas example

2008-10-26 Thread Nick Stinemates
On Sun, Oct 26, 2008 at 10:57:19AM +, Richard Heyes wrote: > Hi, > > Had to show this off - I'm so proud. READ: full of myself... I've > tried it in Firefox 3, Opera 9.6, Chrome and Safari, all on Windows. > > http://dev.rgraph.org/examples/interactive.html > > -- > Richard Heyes > > HTML5

Re: [gentoo-user] Re: dhcpd uses fake MAC address

2008-10-25 Thread Nick Stinemates
On Sat, Oct 25, 2008 at 01:34:36PM +0200, Volker Armin Hemmann wrote: > On Samstag 25 Oktober 2008, Nikos Chantziaras wrote: > > Nick Stinemates wrote: > > > On Sat, Oct 25, 2008 at 02:07:20AM +0300, Nikos Chantziaras wrote: > > >> My router has big problems assig

Re: [gentoo-user] dhcpd uses fake MAC address

2008-10-24 Thread Nick Stinemates
On Sat, Oct 25, 2008 at 02:07:20AM +0300, Nikos Chantziaras wrote: > My router has big problems assigning the correct IPs to Gentoo boxes. If > the NIC in the box has a MAC address of, say, 01:00:12:11:41:49:1e, > dhcpd reports something else to router: ff:42:54:59:20:00:1c:21:e0:42:c2 > > Why i

Re: multiple pattern regular expression

2008-04-25 Thread Nick Stinemates
On Fri, Apr 25, 2008 at 08:40:55PM -0400, Carsten Haese wrote: > Nick Stinemates wrote: >> On Fri, Apr 25, 2008 at 09:50:56AM -0400, [EMAIL PROTECTED] wrote: >>> How about this? >>> >>> for line in file: >>> # ignore lines without = assignment

Re: [gentoo-user] adding python module

2008-04-25 Thread Nick Stinemates
ave 2 options. Add your modules directory to the $PYTHONPATH. To see what that is: [EMAIL PROTECTED] ~ $ echo $PYTHONPATH /usr/lib/portage/pym Next option is to put it in /usr/lib/python2.4(or 2.5)/site-packages Last, but certainly not least, put the python module in your python projects r

Re: multiple pattern regular expression

2008-04-25 Thread Nick Stinemates
following regex import re str = """a=b c=d e=f string=The sum of 2+2=4""".split("\n") p = re.compile("([^=]*)=(.*)") for lines in str: key,value=p.findall(lines)[0] print key, value -- Nick Stinemates ([EMAIL PROTECTED]) http://nick.stinemates.org -- http://mail.python.org/mailman/listinfo/python-list

Re: Calling Python code from inside php

2008-04-25 Thread Nick Stinemates
On Fri, Apr 25, 2008 at 03:29:49PM +0200, Diez B. Roggisch wrote: > Nick Stinemates schrieb: >>> While I certainly prefer to use Python wherever I can, that does not mean >>> that there aren't cases where legacy systems or other constraints make >>> this impos

Re: MESSAGE RESPONSE

2008-04-25 Thread Nick Stinemates
about the internet. > ZING! -- Nick Stinemates ([EMAIL PROTECTED]) http://nick.stinemates.org -- http://mail.python.org/mailman/listinfo/python-list

Re: [PHP] Class Static variables in double quoted string or heredoc

2008-04-25 Thread Nick Stinemates
On Fri, Apr 25, 2008 at 11:29:05AM -0600, Nathan Nobbe wrote: > here we are back at the classic syntactic sugar argument. at least weve > moved past abstract classes and interfaces ! for now :) -- Nick Stinemates ([EMAIL PROTECTED]) http://nick.stinemates.org -- PHP General M

Re: [PHP] Class Static variables in double quoted string or heredoc

2008-04-25 Thread Nick Stinemates
#x27;t imagine working with someones code where they liberally use these types of lazy things. I like structured, ordered code, and, somehow, using something like this technique doesn't seem structured or ordered. -- Nick Stinemates ([EMAIL PROTECTED]) http://nick.stinemates.org -

Re: [PHP] the most amazing php code i have ever seen so far

2008-04-25 Thread Nick Stinemates
ething else! > } > } > } > > > Why is this useful? Because you can add functionality to your save > page without touching it. This is very powerful when you have a > shared code base and need to add some parts to it without breaking > other sites. Since it is ex

Re: [PHP] Re: php framework vs just php?

2008-04-25 Thread Nick Stinemates
'Can you just add XXX' :( > > So they actually ask for a porn site? > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > :D lol -- Nick Stinemates ([EMAIL PROTECTED]) http://nick.stinemates.org -- PH

Re: Remove multiple inheritance in Python 3000

2008-04-24 Thread Nick Stinemates
tance. > > I also published this request at http://bugs.python.org/issue2667 > -- > http://mail.python.org/mailman/listinfo/python-list You make strong, compelling arguments.... -- Nick Stinemates ([EMAIL PROTECTED]) http://nick.stinemates.org -- http://mail.python.org/mailman/listinfo/python-list

Re: Calling Python code from inside php

2008-04-24 Thread Nick Stinemates
wasting a lot of time)? I don't understand how the 2 are mutually exclusive? You can have PHP and Python bindings installed on the same Apache server, unless I'm mistaken? -- Nick Stinemates ([EMAIL PROTECTED]) http://nick.stinemates.org -- http://mail.python.org/mailman/listinfo/python-list

Re: Calling Python code from inside php

2008-04-23 Thread Nick Stinemates
How do I go about this?? > > > Cheers > Vijay > -- > http://mail.python.org/mailman/listinfo/python-list Why not just write it all in Python? -- Nick Stinemates ([EMAIL PROTECTED]) http://nick.stinemates.org -- http://mail.python.org/mailman/listinfo/python-list

Re: how turbo geras code works

2008-04-18 Thread Nick Stinemates
On Wed, Apr 16, 2008 at 01:35:29AM -0700, reetesh nigam wrote: > hi. > actually i have developed one small project but now i want to > develope a project with the help of html.. > please help me out > -- > http://mail.python.org/mailman/listinfo/python-list OK. Done -- Nick

Re: insert python script in current script

2008-04-18 Thread Nick Stinemates
ttp://mail.python.org/mailman/listinfo/python-list Could it also be that he would like to have a base class? Cause that's what It sounds like to me! class Base: def __init__(self): self.address = "address" self.status = 1 //use numbers instead of strings :) class Person(Base): def __init__(self): Base.__init__(self) # now you have the self.address, self.status -- Nick Stinemates ([EMAIL PROTECTED]) http://nick.stinemates.org -- http://mail.python.org/mailman/listinfo/python-list

Re: python beginer

2008-04-18 Thread Nick Stinemates
ve a nice day > -- > http://mail.python.org/mailman/listinfo/python-list Start with learning how to type. -- Nick Stinemates ([EMAIL PROTECTED]) http://nick.stinemates.org -- http://mail.python.org/mailman/listinfo/python-list

Re: Getting subprocess.call() output into a string?

2008-04-18 Thread Nick Stinemates
_close(self): os.kill(self.__process.pid,9) def _listen(self): """ get from stdout """ return "".join(self.__stdout.readlines()) def _listen2(self): """ My attempt at trying d

Re: How to have unittest tests to be executed in the order they appear?

2008-04-18 Thread Nick Stinemates
ngle test that > way if you wanted to. > Agreed! -- Nick Stinemates ([EMAIL PROTECTED]) http://nick.stinemates.org -- http://mail.python.org/mailman/listinfo/python-list

Re: program to Ping ip addresses

2008-04-18 Thread Nick Stinemates
ot;+str(b)+" is online.\n") > elif z==1: > print("Either "+str(sec)+"."+str(b)+" is offline, or ping > request has been blocked.") > zx.write("Either "+str(sec)+"."+str(b)+" is offline, or ping > request has been blocked.\n") > > intb = intb + 1 > b=str(intb) > > else: > > print("Wrong choice. Retard.") > I love that you call the users of your app retards :) That rocks! ping runs forever. tracert doesnt. try: > ping -w 5 -- Nick Stinemates ([EMAIL PROTECTED]) http://nick.stinemates.org -- http://mail.python.org/mailman/listinfo/python-list

Re: Brand New!

2008-04-18 Thread Nick Stinemates
here. I have immensely enjoyed it so far, and will continue to tinker > well into the future. > > --Paul > I think that's wonderful! I think problem solving language independent. As long as you can break down what you need to do and conceptualize. You must have learned to do with wi

Re: Brand New!

2008-04-18 Thread Nick Stinemates
if it works for you, go ahead. > For other resources, see the beginners section in the Python wiki: > http://wiki.python.org/moin/BeginnersGuide I agree and disagree! As long as the student understands how the different parts play together, and the Web medium is what gets him interested

Re: Brand New!

2008-04-18 Thread Nick Stinemates
t how long will it take me to learn the basics of > the language? > -Thanks 4 all ur help! Agent E 10 > -- > http://mail.python.org/mailman/listinfo/python-list Windows or Unix/Linux? I find python is easier to learn in Linux environments, since it assumes some familiarty with the shell. -- Nick Stinemates ([EMAIL PROTECTED]) http://nick.stinemates.org -- http://mail.python.org/mailman/listinfo/python-list

Re: py3k s***s

2008-04-18 Thread Nick Stinemates
rhaps been drinking but i have been p**d all week since i > began look into this:-( > -- > http://mail.python.org/mailman/listinfo/python-list Yo, no one here is a child so don't litter your title and text with hard to read bullshit. -- Nick Stinemates ([EMAIL PROTECTED]) http://n

Re: [PHP] PHP5 and the DOM model

2008-04-18 Thread Nick Stinemates
s/method, > what data is actually allowed to be injected into that variable. Whereas > the second example would allow you to stuff any type of data into that > class variable. That might not be a good thing. > That's a relatively narrow minded response to my point, since I gave

Re: [PHP] need "pop-up" in progress alert

2008-04-18 Thread Nick Stinemates
h the event processing > end loop > } > > the other, probably better option would be to have a progress area, that > was/is a jscript/ajax based, that talked/polled the server to determine the > overall status of the "action" as it's being performed. > > w

Re: [PHP] PHP console script vs C/C++/C#

2008-04-18 Thread Nick Stinemates
On Fri, Apr 18, 2008 at 09:58:14AM -0600, Nathan Nobbe wrote: > On Thu, Apr 17, 2008 at 5:46 PM, Nick Stinemates <[EMAIL PROTECTED]> > wrote: > > > > If I wrote the console application in a c language (and compiled) would > > one > > > expect to see any i

Re: [PHP] PHP5 and the DOM model

2008-04-18 Thread Nick Stinemates
On Fri, Apr 18, 2008 at 10:25:29AM -0600, Nathan Nobbe wrote: > On Thu, Apr 17, 2008 at 5:43 PM, Nick Stinemates <[EMAIL PROTECTED]> > wrote: > > > On Thu, Apr 17, 2008 at 10:05:11AM +0200, Michael Preminger wrote: > > > Hello! > > > > > > Seems th

Re: [PHP] need "pop-up" in progress alert

2008-04-18 Thread Nick Stinemates
quite a few questions my self.. You can't do a > progress bar in PHP since by the time it gets to the browser, PHP is done > doing what it does. This is actually false, at least on my system(s). Try this out: -- Nick Stinemates ([EMAIL PROTECTED]) http://nick.stinemates.org --

Re: [PHP] PHP console script vs C/C++/C#

2008-04-18 Thread Nick Stinemates
anks for the consideration and > looking into those. > > At this point some of you may encourage me to go to C++ so i stop with this > question...but I'd like to hear if you all agree that perhaps it is time to > pull out the 50 lbp lump hammer? Still disagree. I have

Re: [PHP] PHP5 and the DOM model

2008-04-18 Thread Nick Stinemates
On Thu, Apr 17, 2008 at 10:05:11AM +0200, Michael Preminger wrote: > Hello! > > Seems that PHP gets more and more object oriented, which is good. > > I am now running a course in PHP, using PHP 5, where we are going to > use the *DOM* interface. I am trying to teach them good OO practices, > meanin

Re: [PHP] PHP console script vs C/C++/C#

2008-04-18 Thread Nick Stinemates
e would you > recommend? Depends on the task, but based on this e-mail I have a feeling you'll encounter the same problem. -- Nick Stinemates ([EMAIL PROTECTED]) http://nick.stinemates.org -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] More than one values returned?

2008-02-21 Thread Nick Stinemates
Greg Donald wrote: > On 2/19/08, Nick Stinemates <[EMAIL PROTECTED]> wrote: > >> I said, simply, returning an array of objects was usually an indication >> of poor design. >> > > No it's not. Nearly every MVC framework in existence implements som

Re: [PHP] Sending SMS via PHP

2008-02-20 Thread Nick Stinemates
channel for your users to interact with you, and for you to (potentially) respond to them. You're looking for SMPP packages. -- == Nick Stinemates ([EMAIL PROTECTED]) http://nick.stinemates.org AIM: Nick Stinemates MSN: [EMAIL PROTECTED] Yahoo: [EMAIL PROTECTED] == -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] More than one values returned?

2008-02-20 Thread Nick Stinemates
Nathan Nobbe wrote: > On Mon, Feb 18, 2008 at 9:06 PM, Nick Stinemates <[EMAIL PROTECTED] > <mailto:[EMAIL PROTECTED]>> wrote: > > Thats a good example, and a good reason for passing values by > Reference > instead of by Value. > > I have fo

Re: [PHP] More than one values returned?

2008-02-20 Thread Nick Stinemates
Jim Lucas wrote: > Nick Stinemates wrote: >> Nathan Rixham wrote: >>> Robert Cummings wrote: >>>> On Mon, 2008-02-18 at 21:09 -0600, Larry Garfield wrote: >>>>> On Monday 18 February 2008, Nick Stinemates wrote: >>>>> >>>

Re: [PHP] More than one values returned?

2008-02-19 Thread Nick Stinemates
Robert Cummings wrote: > On Tue, 2008-02-19 at 21:51 -0800, Nick Stinemates wrote: > >> Robert Cummings wrote: >> >>> On Tue, 2008-02-19 at 21:24 -0800, Nick Stinemates wrote: >>> >>> >>>> I said, simply, returning an array

Re: [PHP] xpath question

2008-02-19 Thread Nick Stinemates
n use: $result = $xml->xpath('//coordinates'); I have a feeling you'll want to do more parsing than that, thought. In the case of your example, I believe it should be the following: $result = $xml->xpath('Folder/Placemark/LineString/coordinates'); _or_ $

Re: [PHP] unsure how to do this any help appreciated

2008-02-19 Thread Nick Stinemates
ille fwrite($fp, $out); //send the headers while (!feof($fp)) { $buff .= fgets($fp, 128); //read the response } fclose($fp); //close the socket if (strstr($buff, "404")) { //analyze. echo "no alerts"; } else { echo "alerts"; } ?&g

Re: [PHP] More than one values returned?

2008-02-19 Thread Nick Stinemates
Robert Cummings wrote: > On Tue, 2008-02-19 at 21:24 -0800, Nick Stinemates wrote: > >> I said, simply, returning an array of objects was usually an indication >> of poor design. >> > > Please elaborate as to the "why" of it being an indication of

Re: [PHP] More than one values returned?

2008-02-19 Thread Nick Stinemates
Nathan Nobbe wrote: > On Feb 19, 2008 11:52 PM, Greg Donald <[EMAIL PROTECTED]> wrote: > > >> On Feb 19, 2008 9:27 PM, Nick Stinemates <[EMAIL PROTECTED]> wrote: >> >>> Support != good design habits. >>> >> So you pr

Re: [PHP] More than one values returned?

2008-02-19 Thread Nick Stinemates
Greg Donald wrote: > On 2/18/08, Nick Stinemates <[EMAIL PROTECTED]> wrote: > >> I have found, however, that if I ever need to return /multiple/ values, >> it's usually because of bad design and/or the lack of proper encapsulation. >> > > Yeah, t

Re: [PHP] More than one values returned?

2008-02-19 Thread Nick Stinemates
Nathan Rixham wrote: > Robert Cummings wrote: >> On Mon, 2008-02-18 at 21:09 -0600, Larry Garfield wrote: >>> On Monday 18 February 2008, Nick Stinemates wrote: >>> >>>>>> I have found, however, that if I ever need to return /multiple/ >>>>

Re: [PHP] System errno in PHP

2008-02-19 Thread Nick Stinemates
al page for that function - it will tell you how to detect >> errors. >> >> -Stut >> >> -- >> http://stut.net/ >> >> > > http://php.net/fopen -- == Nick Stinemates ([EMAIL PROTECTED]) http://nick.stinemates.org AIM: Nick Stinemat

Re: name of client module

2008-02-18 Thread Nick Stinemates
Jeff Schwab wrote: > Nick Stinemates wrote: > >>> I'm not saying I don't want to do that. I'm saying that, in addition to >>> what you've written, I want foo to know it's being imported, and by whom. >>> > > Please

Re: name of client module

2008-02-18 Thread Nick Stinemates
; % module a.setImported(self) i = Importer() i.__import__("Imported") Imported.py #!/usr/bin/python def setImported(importer): print "I've been imported by %s" %importer -- ====== Nick St

Re: [PHP] More than one values returned?

2008-02-18 Thread Nick Stinemates
Robert Cummings wrote: > On Mon, 2008-02-18 at 18:06 -0800, Nick Stinemates wrote: > >> C.R.Vegelin wrote: >> >>> >> $in = 4; >>> calcpows($in, $pow2, $pow4); >>> echo "in = $in pow2=$pow2 pow4=$pow4"; >>> >>

Re: Python ASP Error

2008-02-18 Thread Nick Stinemates
unning IIS/whatever webserver you're running read access to C:\\WINDOWS\\TEMP\\gen_py\\2.5\\__init__.py -- == Nick Stinemates ([EMAIL PROTECTED]) http://nick.stinemates.org AIM: Nick Stinemates MSN: [EMAIL PROTECTED] Yahoo: [EMAIL PROTECTED] == -- http://mail.python.org/mailman/listinfo/python-list

Re: name of client module

2008-02-18 Thread Nick Stinemates
o.exec() -- == Nick Stinemates ([EMAIL PROTECTED]) http://nick.stinemates.org AIM: Nick Stinemates MSN: [EMAIL PROTECTED] Yahoo: [EMAIL PROTECTED] == -- http://mail.python.org/mailman/listinfo/python-list

Re: Threading the Python interpreter

2008-02-18 Thread Nick Stinemates
mb > here. Am I correct in my assumption this is OK or just lucky so far? > FYI -- That's not multi threading that's multiprocessing. You're safe. -- == Nick Stinemates ([EMAIL PROTECTED]) http://nick.stinemates.org AIM: Nick Stinemates MSN: [EMAIL PROTECTED] Yahoo: [EMAIL PROTECTED] == -- http://mail.python.org/mailman/listinfo/python-list

Re: [PHP] More than one values returned?

2008-02-18 Thread Nick Stinemates
> > > HTH > Thats a good example, and a good reason for passing values by Reference instead of by Value. I have found, however, that if I ever need to return /multiple/ values, it's usually because of bad design and/or the lack of proper encapsulation. -- == N

Re: [PHP] classes

2008-02-18 Thread Nick Stinemates
thunderbird for looking like you responded to me. -- == Nick Stinemates ([EMAIL PROTECTED]) http://nick.stinemates.org AIM: Nick Stinemates MSN: [EMAIL PROTECTED] Yahoo: [EMAIL PROTECTED] == -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [gentoo-desktop] Screen-blanking on X startup

2008-02-18 Thread Nick Stinemates
gotten used to it over the years. > > However, in my current setup it actually "blinks" or powers off twice. > It might be the version of Xorg, or it might be this laptop. In any > case I didn't notice it till now. > Must be an Intel thing -- definitely does not happen on m

Re: [PHP] classes

2008-02-18 Thread Nick Stinemates
t;; > } > } > ?> > > Outputs the expected. Must be an error, maybe fatal or parse before the > method call or maybe your method does execute you just are expecting > something different? > > -Shawn > > What part of my example was unclear? -- ==

Re: [PHP] Protected ZIP file with password

2008-02-18 Thread Nick Stinemates
Petrus Bastos wrote: > I'm testing on FreeBSD. I can use any command through system(), but the zip > command doesn't works! I don't know why. > > > On Feb 18, 2008 4:06 PM, Nick Stinemates <[EMAIL PROTECTED]> wrote: > > >> Petrus Bastos wrote: &

Re: [PHP] classes

2008-02-18 Thread Nick Stinemates
e testing... test(); ?> Definitely works. -- == Nick Stinemates ([EMAIL PROTECTED]) http://nick.stinemates.org AIM: Nick Stinemates MSN: [EMAIL PROTECTED] Yahoo: [EMAIL PROTECTED] == -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [gentoo-user] What's up with qt? Almost ALL masked or keyworded now.

2008-02-18 Thread Nick Stinemates
_rc1 (4) >> [-P-] [M~] x11-libs/qwt-qt3-5.0.2 (5) >> [-P-] [M~] x11-libs/qwt-qt3-5.0.2-r1 (5) >> [-P-] [M~] x11-libs/qwtplot3d-qt3-0.2.7 (0) >> [EMAIL PROTECTED] / # > > So even the qt3 that I have installed is masked. What's going on? I > have

Re: [PHP] Protected ZIP file with password

2008-02-18 Thread Nick Stinemates
> > Thanks again and sorry for the inconvenience, > Petrus Bastos. > > On Feb 18, 2008 2:37 PM, Nick Stinemates <[EMAIL PROTECTED] > <mailto:[EMAIL PROTECTED]>> wrote: > > Petrus Bastos wrote: > > Richard, > > > > Unfortunately, I can

Re: problems after upgrading to hardy

2008-02-18 Thread Nick Stinemates
I would check for it's presence. If it's not there and you can't get an IP I would suggest running the livecd (which hopefully you can get an ip from) and chrooting in to your environment directly, and doing an apt-get update && apt-get upgrade -- =

Re: [gentoo-user] [OT] SSH port forwards behind restrictive firewall

2008-02-18 Thread Nick Stinemates
eir headers, so that a > cleverly crafted firewall will still identify them and drop them? > I don't have a direct answer, but it depends on the configuration of the firewall. You can analyze for content and you can also allow all traffic. -- ====== Nick Stinemates ([EMAIL

Re: [PHP] separating strings from extensions

2008-02-18 Thread Nick Stinemates
orking/looking for the exact type, it's time to use MIME as it is more reliable than something like a filename. http://us2.php.net/manual/en/ref.mime-magic.php Good luck. ====== Nick Stinemates ([EMAIL PROTECTED]) http://nick.stinemates.org AIM: Nick Stinemates MSN: [EMAIL P

Re: [PHP] Check time in between times

2008-02-18 Thread Nick Stinemates
invent the wheel to a square, just in case they got it wrong. [= -- == Nick Stinemates ([EMAIL PROTECTED]) http://nick.stinemates.org AIM: Nick Stinemates MSN: [EMAIL PROTECTED] Yahoo: [EMAIL PROTECTED] == -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Protected ZIP file with password

2008-02-18 Thread Nick Stinemates
o get creative, Petros. You're in a bind, and I assume you need to get this done, so you have the following options (in the order I would do it in..) -> Turn on exec() -> You can use/modify an app I wrote (in python) which accepts UDP packets and executed commands based off of it.

Re: [PHP] Protected ZIP file with password

2008-02-18 Thread Nick Stinemates
Richard Lynch wrote: > On Sun, February 17, 2008 1:57 pm, Nick Stinemates wrote: > >> Petrus Bastos wrote: >> >>> Hi Nick, >>> >>> Sorry, but I forgot to tell you that I can't use this exec >>> neither >>> system com

Re: [PHP] Protected ZIP file with password

2008-02-17 Thread Nick Stinemates
ge/File_Archive >> >> -- >> Postgresql & php tutorials >> http://www.designmagick.com/ >> >> > > I'm sure you know what you're doing, but maybe you'd be better off letting us know the task / process to better understand wh

Re: [PHP] separating strings from extensions

2008-02-17 Thread Nick Stinemates
John Meyer wrote: > Børge Holen wrote: >> On Monday 18 February 2008 00:10:30 John Meyer wrote: >> >>> Daniel Brown wrote: >>> On Feb 17, 2008 5:37 PM, nihilism machine <[EMAIL PROTECTED]> >> wrote: >> > i am using this code to get the extension of a filename: > >>>

Re: [PHP] Protected ZIP file with password

2008-02-17 Thread Nick Stinemates
Bastos. > > On Feb 17, 2008 5:15 AM, Nick Stinemates <[EMAIL PROTECTED]> wrote: > > >> Petrus Bastos wrote: >> >>> Hey folks, >>> >>> Do you know how can I create a protected zip file with password? Is >>> there anyway?

Re: [PHP] Protected ZIP file with password

2008-02-17 Thread Nick Stinemates
the relatively weak encryption provided by standard zipfile utilities.) == Nick Stinemates ([EMAIL PROTECTED]) http://nick.stinemates.org AIM: Nick Stinemates MSN: [EMAIL PROTECTED] Yahoo: [EMAIL PROTECTED] == -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Session destruction problem

2008-02-17 Thread Nick Stinemates
Adil Drissi wrote: > Hi everybody, > > I need help with sessions. > I have a simple authentification relying only on > sessions (i don't use cookies). After the user submits > his username and password, the script checks if that > corresponds to a record in a mysql table. If this is > the case "$_S

Re: [PHP] Fwrite Function

2008-02-16 Thread Nick Stinemates
$NAMEFORMAT . $data[0] . ""; // print the name echo $MESSAGEFORMAT . $data[1]; // print the text } fclose($boardFileHandle); ?> If you have any questions regarding the implementation I suggest the following reading material: http://us3.php.net/manual/en/function.f

Re: [PHP] Script to generate a site thumbnails

2007-01-21 Thread Nick Stinemates
An example: Hope it helps! -- == Nick Stinemates ([EMAIL PROTECTED]) http://nick.stinemates.org AIM: Nick Stinemates MSN: [EMAIL PROTECTED] Yahoo: [EMAIL PROTECTED] == -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

Re: [PHP] Month display calendar

2007-01-19 Thread Nick Stinemates
iling List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > -- You can take a look at: http://projects.stinemates.org/ And click on the 'View Source' link. == Nick Stinemates ([EMAIL PROTECTED]) http://nick.stinemates.org AIM

  1   2   >