Homework Helper and College Companion Websites

2008-01-20 Thread BJ
In 1996 I started BJ Pinchbeck's Homework Helper at www.bjpinchbeck.com which became quite popular among young students throughout the country. Now that I am 20 years old and attending Drexel University in Philadelphia, Pennsylvania, I decided it was time to start a new site, BJ Pinchb

Re: my email

2012-08-01 Thread BJ Swope
I would also recommend changing your birthday as well ;) -- "The end of democracy and the defeat of the American Revolution will occur when government falls into the hands of lending institutions and moneyed incorporations." -- Thomas Jefferson The whole world is a comedy to those that think, a

Re: Inconsistent SMTP/Gmail connection drop

2011-08-05 Thread BJ Swope
The best tool to debug this is tcpdump. Running a packet capture whilst sending the mail will most likely shed the most light on the subject. -- -- http://mail.python.org/mailman/listinfo/python-list

Re: Vim capable IDE?

2005-10-18 Thread BJ Swope
On 18 Oct 2005 07:16:11 -0700, Chris Lasher <[EMAIL PROTECTED]> wrote: A marriage of the twowould seem like the best of both worlds.Chris The pessimists would say "the worst of both worlds" ;) -- http://mail.python.org/mailman/listinfo/python-list

Re: Pywin32: How to import data into Excel?

2005-11-08 Thread BJ Swope
On 11/8/05, Dmytro Lesnyak <[EMAIL PROTECTED]> wrote: Hello,   I need to import some big data into Excel from my Python script. I have TXT file (~7,5 Mb). I'm using Pywin32 library for that, but if I first try to read the TXT file and then save the values one by one like I have to quest

Re: Python CGI

2005-12-01 Thread BJ Swope
or unclear), but this is my(ever-growing) first CGI script.  Thanks.Jeremy-- http://mail.python.org/mailman/listinfo/python-list-- "But we also know the dangers of a religion that severs its links with reason and becomes prey to fundamentalism" --  Cardinal Paul Poupard"It morphs into the Republican party!"  -- BJ -- http://mail.python.org/mailman/listinfo/python-list

Re: Jargons of Info Tech industry

2005-08-25 Thread BJ Swope
So says Chris from his webmail account... On 8/25/05, Chris Head <[EMAIL PROTECTED]> wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > [EMAIL PROTECTED] wrote: > [snip] > > ... and generally these "web based message boards" (i.e. forums I > > assume you mean) have none of the useful to

Re: Problem with FTPLib and incomplete files on some downloads

2006-01-20 Thread BJ Swope
dangers of a religion that severs its links with reason and becomes prey to fundamentalism" --  Cardinal Paul Poupard"It morphs into the Republican party!"  -- BJ -- http://mail.python.org/mailman/listinfo/python-list

Re: Monitoring number of smtp bytes sent through python e-mail socket

2006-12-05 Thread BJ Swope
BTW, I noticed a bunch of new line characters in your test message. If you ever send mail to a qmail server it will be rejected because rfc 821 says that new line characters cannot occur without a carriage return. So change all those \n's to \r\n's ;) -- We are all slave to our own paradigm. --

Database Abstraction Layer And/Or ORM

2007-09-23 Thread BJ Dierkes
Hello all, I am looking for opinions on preferred methods of Database Abstraction Layer or Object Relation Mapper (I'm using Python 2.5). I have found a number of options such as those listed here: http://wiki.python.org/moin/HigherLevelDatabaseProgramming I'm not looking for a holy war b

Re: smtplib starttls gmail example - comments?

2007-01-24 Thread BJ Swope
On 1/24/07, Tim Williams <[EMAIL PROTECTED]> wrote: On 24/01/07, py <[EMAIL PROTECTED]> wrote: > I would love for anybody to comment on this code with regard to redundancy/efficiency/wordiness or whatever else. > for instance, do i understand correctly that i cant have a try: else: without an in

Re: smtplib starttls gmail example - comments?

2007-01-24 Thread BJ Swope
Sweet! -- http://mail.python.org/mailman/listinfo/python-list

Slicing Issues

2006-05-21 Thread BJ Swope
Given this set of data (88 characters wide) in a file... 067AARON WAY   3004300252599A  098   067017  129 672 067ABBA CT 30518000882000902A  025  11   0670163227  365 670 067ABBEY HILL RD   3002400010299A  004

Re: Slicing Issues

2006-05-21 Thread BJ Swope
On 5/21/06, Heiko Wundram <[EMAIL PROTECTED]> wrote: Am Sonntag 21 Mai 2006 22:52 schrieb BJ Swope:> district_combo=line[85:3]This returns the slice from character 85 to character 3 in the string, readforwards. Basically, as Python slices are forgiving (because the borders are

Open a List of Files

2008-01-07 Thread BJ Swope
given a list such as ['messages', 'recipients', 'viruses'] how would I iterate over the list and use the values as variables and open the variable names a files? I tried for outfile in ['messages', 'recipients', 'viruses']: filename = os.path.join(Host_Path, outfile) outfile = open(file

Re: Open a List of Files

2008-01-08 Thread BJ Swope
On Jan 8, 2008 6:03 AM, Fredrik Lundh <[EMAIL PROTECTED]> wrote: > BJ Swope wrote: > > > given a list such as > > > > ['messages', 'recipients', 'viruses'] > > > > how would I iterate over the list and use the valu

Re: Open a List of Files

2008-01-08 Thread BJ Swope
On Jan 8, 2008 7:22 AM, Hrvoje Niksic <[EMAIL PROTECTED]> wrote: > Fredrik Lundh <[EMAIL PROTECTED]> writes: > > > BJ Swope wrote: > > > >> the code looks ok. please define "not working". > >> > >> Yep, defining "not wor

Re: Open a List of Files

2008-01-08 Thread BJ Swope
to close the opened files for fn in open_files.keys(): open_files[fn].close() I sure am glad I posted this to the list. It is exactly the kind of stuff I was hoping to find. Again, to all who answered, Thank You! BJ -- http://mail.python.org/mailman/listinfo/python-list

Re: Obtaining SMTP address of a sender and receiver of an outlook mail

2008-12-03 Thread BJ Swope
If you have access to the AD server that hosts those DNs you can use python's ldap module to retrieve the smtp attribute for the DN you've just parsed from the message. On Wed, Dec 3, 2008 at 2:06 AM, [EMAIL PROTECTED] < [EMAIL PROTECTED]> wrote: > Hi all, > I am trying to use python for ex

Re: smtplib problem with newly rebuilt Debian/lenny system

2009-03-30 Thread BJ Swope
try s=smtplib.SMTP('127.0.0.1') instead. I'm guessing that it's trying to bind to the IPv6 or some other non IPv4 localhost instance. On Wed, Mar 18, 2009 at 11:25 AM, cassiope wrote: > A hard drive failure forced me to rebuild my main system. Just a few > things haven't been restored; one o

Re: How to get Exif data from a jpeg file

2009-05-18 Thread BJ Swope
On Sun, May 17, 2009 at 4:17 AM, Arnaud Delobelle wrote: > > Daniel Fetchinson writes: > > >> I need to get the creation date from a jpeg file in Python.  Googling > >> brought up a several references to apparently defunct modules.  The best > >> way I have been able to find so far is something l

Re: ftplib retrlines timeout

2009-12-16 Thread BJ Swope
I've had experiences with some python mail servers that time out connections if data from the socket is not sent to the application within the timeout parameter. I have seen a python app on FreeBSD that would timeout a connection after 600 seconds if freebsd did not receive at least 32 kb of data

Re: ftplib retrlines timeout

2009-12-16 Thread BJ Swope
If it works like I've seen other python based network apps that have app timeouts, and Brandon's post seemed to indicate that his timed out during the readline portion of the FTP transfer. Auburn fans are like slinkys... not really good for anything but they still bring a smile to your face

Re: Split string but ignore quotes

2009-09-29 Thread BJ Swope
Would the csv module be appropriate? On 9/29/09, Scooter wrote: > I'm attempting to reformat an apache log file that was written with a > custom output format. I'm attempting to get it to w3c format using a > python script. The problem I'm having is the field-to-field matching. > In my python cod

TypeError Exception in email lib

2010-02-15 Thread BJ Swope
File "/usr/lib/python2.5/email/_parseaddr.py", line 142, in mktime_tz if data[9] is None: TypeError: 'NoneType' object is unsubscriptable I'm parsing a bunch of spam and using the date field from the spams for a date-time stamp. I've fixed the lib on my box to place the call inside a try/ex

Re: TypeError Exception in email lib

2010-02-15 Thread BJ Swope
On Mon, Feb 15, 2010 at 2:31 PM, Stephen Hansen wrote: > On Mon, Feb 15, 2010 at 10:53 AM, BJ Swope wrote: >> >>  File "/usr/lib/python2.5/email/_parseaddr.py", line 142, in mktime_tz >>    if data[9] is None: >> TypeError: 'NoneType' object is un

Re: TypeError Exception in email lib

2010-02-15 Thread BJ Swope
On Mon, Feb 15, 2010 at 2:47 PM, BJ Swope wrote: > On Mon, Feb 15, 2010 at 2:31 PM, Stephen Hansen wrote: >> On Mon, Feb 15, 2010 at 10:53 AM, BJ Swope wrote: >>> >>>  File "/usr/lib/python2.5/email/_parseaddr.py", line 142, in mktime_tz >>>  

Re: TypeError Exception in email lib

2010-02-15 Thread BJ Swope
On Mon, Feb 15, 2010 at 3:42 PM, MRAB wrote: > BJ Swope wrote: > [snip] >> >> def clean_stale_mail(): >>    msg_date1= the_email.get('Date') > > What is the value of 'msg_date1' at this point? > >>    msg_date2 = email.utils.parsedate

Re: Spam from gmail (Was: fascism)

2010-02-25 Thread BJ Swope
> > If you like, but I tend to interpret "meta-" as idempotent. It's easier on > my aspirin budget. > > -- > Robert Kern And here I thought it was little blue pills for idempotentcy... Life is a sexually transmitted disease with a 100% fatality rate. -- brazzy Auburn fans are like slinkys

Re: factorial of negative one (-1)

2010-11-24 Thread Bj Raz
On Tue, Nov 2, 2010 at 12:57 PM, Terry Reedy wrote: > On 11/2/2010 6:11 AM, Hrvoje Niksic wrote: > > 1.1 .hex() > '0x1.1999ap+0' >> >> Here it is immediately obvious that the final digit of the infinite >> sequence "1.1999..." is rounded from 9 to a. Printing the number with >>

Passing Variable(s) as kwargs

2010-12-06 Thread BJ Swope
Hello All. I am trying to use values, retrieved from a config file, as kwargs and not having any luck. Well at least I think that's what I'm trying to do ;) Any suggestions would be most appreciated. Here's the exception: Traceback (most recent call last): File "c:\dev\LogServerMonitor\LogSe

Re: Passing Variable(s) as kwargs

2010-12-06 Thread BJ Swope
> > It's complaining that the 'minute' argument which you're passing to > 'add_cron_job' is '*/run_interval_quantity', which the scheduler > doesn't understand. > -- > Hey, what do you know, there's a forest amongst all those trees... key_words = '*/%d' % (run_interval_quantity) sched.add_cron_j

Re: IMAP4_SSL, libgmail, GMail and corporate firewall/proxy

2011-02-16 Thread BJ Swope
Imap is not on port 443. IIRC, it's late and I'm to lazy to even google it right now, but it's port 143 isn't it. On Wed, Feb 16, 2011 at 11:58 PM, Andrea Gavana wrote: > Hi All, > >I apologize in advance if I'm going to write very stupid things, > my expertise in http/socket/imap stuff is

Python does not allow a variable named "pass"

2010-04-11 Thread BJ Swope
I am trying to automate access to a web page that has forms based authentication. The password field is named "pass" which python is not going to like. Other than asking the website owner to change the name of the field how can I go about passing that field in the form post? dev:~$ python Python

Re: Python does not allow a variable named "pass"

2010-04-11 Thread BJ Swope
urllib.urlencode({'pass' : 'foo'}) > 'pass=foo' > > > --- Giampaolo > http://code.google.com/p/pyftpdlib > http://code.google.com/p/psutil > -- > http://mail.python.org/mailman/listinfo/python-list > Thank you! -- http://mail.python.org/mailman/listinfo/python-list

Re: Why does this group have so much spam?

2009-09-04 Thread BJ Swope
And I would kindly appreciate it if you fellas wouldn't go solving this little spam problem! Selling Anti-Spam industry leading appliances has managed to put me in a rather nice house and I'd hate to lose it just because you fellas went and solved the problem! ;) On Thu, Sep 3, 2009 at 11:24 PM

Re: Dynamic Form

2009-09-22 Thread BJ Swope
If you are trying to avoid the browser caching the pages so that they fetch a new copy of the page every time, add the following 2 meta tags to the header of the html page: Those don't guarantee that the browser won't cache the page but it should help the situation. If on the other hand, you o

Re: Dynamic Form

2009-09-23 Thread BJ Swope
What is your code not doing? Are you winding up with duplicate data in the DB? Is your web browser re-submitting the form with the same data if you refresh the screen? Is your web browser pre-filling the fields of the form due to caching? I don't understand what's not working On Wed, Sep 23, 2

Re: Dynamic Form

2009-09-24 Thread BJ Swope
1. Did you try the headers for no-caching of the page? 2. If you wish to avoid dupes in a DB, Primary Keys are the tool to prevent duplicates. On Thu, Sep 24, 2009 at 11:01 AM, victorsubervi wrote: > in line... > > On Wed, Sep 23, 2009 at 9:13 PM, BJ Swope wrote: > >> Wha

Re: How on Factorial

2010-10-28 Thread Bj Raz
I'm working on some factorial stuff myself, and I'm running into that issue that the CPU or ALU (Algorithmic Logical Unit), isn't powerful enough to compute the numbers I'm trying to produce, including the OS has its own number crunching limitation for accuracy. To accurately generate the numbers

factorial of negative one (-1)

2010-10-28 Thread Bj Raz
I am working with differential equations of the higher roots of negative one. (dividing enormous numbers into other enormous numbers to come out with very reasonable numbers). I am mixing this in to a script for Maya (the final output is graph-able as a spiral.) I have heard that Sage

Re: factorial of negative one (-1)

2010-10-29 Thread Bj Raz
am very green around the ears still. :| On Fri, Oct 29, 2010 at 11:16 AM, Robert Kern wrote: > On 10/29/10 12:02 AM, Chris Rebert wrote: > >> On Thu, Oct 28, 2010 at 9:41 PM, Bj Raz wrote: >> >>> I am working with differential equations of the higher roots of negative

Re: factorial of negative one (-1)

2010-11-01 Thread Bj Raz
On Fri, Oct 29, 2010 at 1:02 AM, Chris Rebert wrote: > On Thu, Oct 28, 2010 at 9:41 PM, Bj Raz wrote: > > I am working with differential equations of the higher roots of negative > > one. (dividing enormous numbers into other enormous numbers to come out > with > >

Re: factorial of negative one (-1)

2010-11-01 Thread Bj Raz
Simply out of curiosity is there a way to force python to print more then 16 places from the decimal? For better accuracy. On Mon, Nov 1, 2010 at 4:19 AM, Bj Raz wrote: > > > On Fri, Oct 29, 2010 at 1:02 AM, Chris Rebert wrote: > >> On Thu, Oct 28, 2010 at 9:41 PM, Bj Raz

Re: factorial of negative one (-1)

2010-11-01 Thread Bj Raz
On Nov 1, 2010, at 5:42 AM, Hrvoje Niksic wrote: > Chris Rebert writes: > >> (2) The underlying double-precision floating-point number only has ~16 >> decimal digits of precision, so it's pointless to print out "further" >> digits. > > A digression which has nothing to do with Raj's desire for

Re: factorial of negative one (-1)

2010-11-01 Thread Bj Raz
On Mon, Nov 1, 2010 at 8:52 AM, Bj Raz wrote: > On Nov 1, 2010, at 5:42 AM, Hrvoje Niksic wrote: > > > Chris Rebert writes: > > > >> (2) The underlying double-precision floating-point number only has ~16 > >> decimal digits of precision, so it's poi

Re: When someone from Britain speaks, Americans hear a "British accent"...

2005-06-28 Thread BJ in Texas
nt," does it || sound unsophisticated and dumb? || || Be blunt. We Americans need to know. Should we try to change || the way we speak? Are there certain words that sound || particularly goofy? Please help us with your advice on this || awkward matter. Which of the British accents? BJ -- http

Re: Mental Abuse

2006-02-10 Thread BJ in Texas
[EMAIL PROTECTED] wrote: || My abuser has been using the medical device to harass me the || last 4-5 years. I have no idea what type of a device is being || used on me. I believe the device is only available to || licensed pharmacist(s). I am not very familiar with the || intend usage of the device

Re: Little tool - but very big size... :-(

2006-02-21 Thread BJ in Texas
[EMAIL PROTECTED] wrote: || 11MB is seldom a concern for today's machine. || A good windows/microsoft attitude.. :-) -- "Last week, I stated this woman was the ugliest woman I had ever seen. I have since been visited by her sister, and now wish to withdraw that statement." -- Mark Twain -- h