Hi, I know it's stupid, but does your foreigner do a lot of OT work?

2010-02-25 Thread Gao
I'm Chinese, I'm working in a famous vendor company which let employee 
do a lot of OT work, 2 more hours per day, and sometime work in weekend. 
Is that the same in USA and European?

--
http://mail.python.org/mailman/listinfo/python-list


How to verify a signature using SHA1WithRSA with python

2010-03-28 Thread Gao
I have a public key, and I want to write a method that verify a string 
which is a signature signed by this public key's private key. And is 
M2Crypto I can't find algorithm named "SHA1WithRSA" or so . Could anyone 
help me?

--
http://mail.python.org/mailman/listinfo/python-list


IDLE's subprocess didn't make connection. Either IDLE can't start or personal firewall software is blocking connection.

2016-04-04 Thread Steven Gao
I’m getting “IDLE's subprocess didn't make connection. Either IDLE can't start 
or personal firewall software is blocking connection.”. Any ideas?

Sent from Mail for Windows 10



---
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus
-- 
https://mail.python.org/mailman/listinfo/python-list


Is there any python lib for NAT transversal?

2008-02-20 Thread hawk gao
Is there any python lib for NAT transversal?
-- 
http://mail.python.org/mailman/listinfo/python-list


A python STUN client is ready on Google Code.

2008-02-29 Thread hawk gao
http://code.google.com/p/boogu/
Enjoy it!

Hawk
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: A python STUN client is ready on Google Code.

2008-03-01 Thread hawk gao
I upload a new version. Add more print log into my code to help people
understand my program

2008/2/29, hawk gao <[EMAIL PROTECTED]>:
> http://code.google.com/p/boogu/
>  Enjoy it!
>
>
>  Hawk
>
-- 
http://mail.python.org/mailman/listinfo/python-list


Fwd: how to get full-text search of pysqlite3 work in python2.5.2

2008-10-30 Thread hawk gao
actually, the latest situation is

debian:~/pysqlite-2.5.0/doc# python
>>> from pysqlite2 import dbapi2 as sqlite3
>>> con = sqlite3.connect(":memory:")
>>> con.execute("CREATE VIRTUAL TABLE posts using FTS3(title, body);")
Traceback (most recent call last):
  File "", line 1, in 
pysqlite2.dbapi2.OperationalError: no such module: FTS3


-- Forwarded message --
From: hawk gao <[EMAIL PROTECTED]>
Date: 2008/10/30
Subject: Re: how to get full-text search of pysqlite3 work in python2.5.2
To: Guilherme Polo <[EMAIL PROTECTED]>


I build and install a 3.6.4 by following this guide
http://www.sqlite.org/cvstrac/wiki?p=CompilingFts
eventually, i can run "CREATE VIRTUAL TABLE posts using FTS3(title, body);"
under sqlite3 command line.

debian:~/pysqlite-2.5.0# sqlite3
SQLite version 3.6.4
Enter ".help" for instructions
Enter SQL statements terminated with a ";"
sqlite> CREATE VIRTUAL TABLE posts using FTS3(title, body);
sqlite>

then i rebuild and reinstall pysqlite2.5.0.  but, even "from pysqlite2
import dbapi2 as sqlite3" cannot be accepted.

debian:~/pysqlite-2.5.0# python
Python 2.5 (release25-maint, Jul 20 2008, 20:47:25)
[GCC 4.1.2 20061115 (prerelease) (Debian 4.1.1-21)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from pysqlite2 import dbapi2 as sqlite3
Traceback (most recent call last):
  File "", line 1, in 
  File "pysqlite2/dbapi2.py", line 27, in 
from pysqlite2._sqlite import *
ImportError: No module named _sqlite


2008/10/30 Guilherme Polo <[EMAIL PROTECTED]>

> On 10/30/08, hawk gao <[EMAIL PROTECTED]> wrote:
>
> > Thanks for your advice. but the problem still here.
> >
> > debian:~/sqlite-3.6.4-build# python
> > Python 2.5 (release25-maint, Jul 20 2008, 20:47:25)
> > [GCC 4.1.2 20061115 (prerelease) (Debian 4.1.1-21)] on linux2
> > Type "help", "copyright", "credits" or "license" for more information.
> >  >>> from pysqlite2 import dbapi2 as sqlite3
> > >>> con = sqlite3.connect(":memory:")
> > >>> con.execute("CREATE VIRTUAL TABLE posts using FTS3(title, body);")
> > Traceback (most recent call last):
> >File "", line 1, in 
> > pysqlite2.dbapi2.OperationalError: no such module: FTS3
> >
>
> Yes... you have to compile pysqlite against the sqlite library that
> has the builtin support fot fts3. pysqlite is probably being compiled
> against the sqlite found in /usr/lib, while the sqlite with fts3
> support is at /usr/local/lib.
>
> --
> -- Guilherme H. Polo Goncalves
>
--
http://mail.python.org/mailman/listinfo/python-list


ConfigParser is not parsing

2010-02-12 Thread felix gao
Hi all,

I am trying to get the some configuration file read in by Python, however,
after the read command it return a list with the filename that I passed in.
what is going on?

Python 2.6.1 (r261:67515, Jul  7 2009, 23:51:51)
[GCC 4.2.1 (Apple Inc. build 5646)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import ConfigParser
>>> p = ConfigParser.SafeConfigParser()
>>> cfg = p.read("S3Files.conf")
>>> cfg
['S3Files.conf']


 cat S3Files.conf
[main]
taskName=FileConfigDriver
lastProcessed=2010-01-31
dateFromat=%Y-%m-%d
skippingValue=86400
skippingInterval=seconds

Thanks in advance.
-- 
http://mail.python.org/mailman/listinfo/python-list


How to unbuffer Python's output

2009-07-14 Thread Lily Gao
Hi, All
I am calling a python program in perl and use redirection,
Like :
`python x.py > 1.log 2>&1`
When x.py crash, I get nothing from 1.log, and if I don’t use redirection, I 
can get useful log from the screen.
How can I do to make x.py ‘s  output un-buffered when redirection log to files 
,just exactly same with print to the screen?

When I use perl’s $|=1 to unbuffer output, it take no effect. So I think it may 
be caused by python.
Thanks!

Thanks,
Lily Gao(高雁)
ACRD PSEB Catapult TD
+86-21-38664379

-- 
http://mail.python.org/mailman/listinfo/python-list