Re: An idea of how to identify Israeli owned software companies

2009-01-07 Thread Terje
Is there a web service/API out there identifying Israel owned 
software/software companies/web sites/web services? If I am about to buy 
a piece of software, but don't want to support the Israeli economy, it 
would have been handy if I could just poll a web service to get the 
answer. This information should be kept in a database, and be public to 
the world through a very simple xml API, something along these lines:


Request:
Some Company Name

Response:
true

Here's one source for this kind of information (I am sure there are 
plenty others):

http://www.science.co.il/SoftwareCo.asp

Of course, a web service like this would be equally useful to those who 
want to support Israeli companies.

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


Mouseclick

2005-05-02 Thread Terje Johan Abrahamsen
Hello.

I have been trying desperately for a while to make Python push the
left mousebutton. I have been able to let Python push a button in a
box:

def click(hwnd):
win32gui.SendMessage(hwnd, win32con.WM_LBUTTONDOWN, 0, 0)
win32gui.SendMessage(hwnd, win32con.WM_LBUTTONUP, 0, 0)

optDialog = findTopWindow(wantedText="Options")

def findAButtonCalledOK(hwnd, windowText, windowClass):
return windowClass == "Button" and windowText == "OK"
okButton = findControl(optDialog, findAButtonCalledOK)

click(okButton)

As described here, http://tinyurl.com/cwjls. But, that is not what I
am looking for. I would like to specify some coordinates such as
windll.user32.SetCursorPos(450, 370) and thereafter click the left
mousebutton at that place.

I know that the sollution lies somewhere with Microsoft
(http://www.6URL.com/FED), but cannot understand how to make Python
click the button regardless of how much I try.

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


Py2Exe security

2005-05-03 Thread Terje Johan Abrahamsen
Hello.

We have created some programs in Python that are to be distributed
around. The programs will be made into .exe files by py2exe. However,
in the source there are certain webadresses, logins and passwords that
the programs use, that we would like to keep away from the end users.
They will use them thru the program, but we would like them not to be
extracted and used separately for other purposes.

Is the compiling by py2exe enough? I have opened all the files in the
directory py2exe has made, and have not found anything I could read in
clear text. However, that does not mean that others can not. Is it
possible to extract these passwords, adresses and logins from the
sourcecode? If py2exe is not enough, is there some other simple tools
we can use to hide the source from the endusers?

Thanks in advance.

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


Re: Py2Exe security

2005-05-03 Thread Terje Johan Abrahamsen

Simon Brunning wrote:
> On 3 May 2005 05:03:00 -0700, Terje Johan Abrahamsen
<[EMAIL PROTECTED]> wrote:
> > We have created some programs in Python that are to be distributed
> > around. The programs will be made into .exe files by py2exe.
However,
> > in the source there are certain webadresses, logins and passwords
that
> > the programs use, that we would like to keep away from the end
users.
> > They will use them thru the program, but we would like them not to
be
> > extracted and used separately for other purposes.
>
> If your program can access these details, then a suficiently
> determined attacker can access them too, regardless of what you do.

Yes, I assume so. Luckily it is not national secrets we are trying to
hide. But, how does py2exe compare with for example a program written
in a compiled language like C++? Is it easier to find the info in a
py2exe .exe than a c++ compiled c++?

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


Re: Creating Files

2005-05-04 Thread Terje Johan Abrahamsen

Dan wrote:
> On Wed, 04 May 2005 10:24:23 +0200, bruno modulix <[EMAIL PROTECTED]>
> wrote:
>
> >As in any other language I know : just open it in write mode !-)
>
> Easy when you know how.
>
> Thanks

e = file('c:/file.txt', 'w')

By the way, check out the Python tutor service...
http://mail.python.org/mailman/listinfo/tutor

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


Re: Regular Expression tools?

2005-05-04 Thread Terje Johan Abrahamsen
This is what you are looking for. 
http://kodos.sourceforge.net/

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