473,387 Members | 1,530 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

security code whit python

hii my friends;
I want to create picture of security code.can i do it ?
if yes,how , which module will help me?
have you got a example that can create a picture whit my name
pls help me
thansk
oruc

Nov 10 '07 #1
13 1506
is there anybody here !!!!!!!!!!!

Nov 10 '07 #2
* or*****@gmail.com (Sat, 10 Nov 2007 21:15:13 -0000)
is there anybody here !!!!!!!!!!!
The Internet has gone home. Come again tomorrow...

T.
Nov 10 '07 #3
whatttt!!!! :S

Nov 10 '07 #4
On 10 Nov, 16:04, "oruc...@gmail.com" <oruc...@gmail.comwrote:
hii my friends;
I want to create picture of security code.can i do it ?
if yes,how , which module will help me?
have you got a example that can create a picture whit my name
pls help me
thansk
oruc

You may find the Python Imaging Library (PIL) useful. See
http://www.pythonware.com/products/pil/. It has an extensive handbook
which includes drawing text on to an image.

regards, Paul Clinch

Nov 10 '07 #5
have you got any example?pls :S

Nov 10 '07 #6
or*****@gmail.com wrote:
I want to create picture of security code.can i do it ?
I don't know what you mean by "security code".

I take it you want to create technical diagrams, from a sort of
algorithmic description?

PIL might help you, as paulC pointed out. It works on raster images
(bitmaps).

pYx is a tool library for vector graphics and scientific plots. Maybe
that can help. I've produced nice looking graphics of search-trees
within about 60 minutes of installing it.

This example is copied right from the pyx site:

from pyx import *
c = canvas.canvas()
c.text(0, 0, "Hello, world!") # Put oruccim here, if you want
c.stroke(path.line(0, 0, 2, 0))
c.writeEPSfile("hello")
c.writePDFfile("hello")

<URL:http://pyx.sourceforge.net/>

/W

Nov 10 '07 #7
Wildemar Wildenburger <la*********@klapptsowieso.netwrites:
or*****@gmail.com wrote:
I want to create picture of security code.can i do it ?
I don't know what you mean by "security code".
I think that means a captcha (www.captcha.net).
Nov 10 '07 #8
On 10 Kas m, 23:57, Wildemar Wildenburger
<lasses_w...@klapptsowieso.netwrote:
oruc...@gmail.com wrote:
I want to create picture of security code.can i do it ?

I don't know what you mean by "security code".

I take it you want to create technical diagrams, from a sort of
algorithmic description?

PIL might help you, as paulC pointed out. It works on raster images
(bitmaps).

pYx is a tool library for vector graphics and scientific plots. Maybe
that can help. I've produced nice looking graphics of search-trees
within about 60 minutes of installing it.

This example is copied right from the pyx site:

from pyx import *
c = canvas.canvas()
c.text(0, 0, "Hello, world!") # Put oruccim here, if you want
c.stroke(path.line(0, 0, 2, 0))
c.writeEPSfile("hello")
c.writePDFfile("hello")

<URL:http://pyx.sourceforge.net/>
thank you
but it said """
Traceback (most recent call last):
File "<pyshell#3>", line 1, in <module>
c.text(0, 0, "Hello, world!")
File "C:\web\apache\python\lib\pyx\canvas.py", line 309, in text
return self.insert(self.texrunner.text(x, y, atext, *args,
**kwargs))
File "C:\web\apache\python\lib\pyx\text.py", line 1199, in text
self.execute(expr, self.defaulttexmessagesdefaultrun +
self.texmessagesdefaultrun + texmessages)
File "C:\web\apache\python\lib\pyx\text.py", line 899, in execute
self.fontmap = dvifile.readfontmap(self.fontmaps.split())
File "C:\web\apache\python\lib\pyx\dvifile.py", line 386, in
readfontmap
raise RuntimeError("cannot find font mapping file '%s'" %
filename)
RuntimeError: cannot find font mapping file 'psfonts.map'
"""
I have setuped pyx i wonder i have mistake?

Nov 11 '07 #9
or*****@gmail.com wrote:
On 10 Kas m, 23:57, Wildemar Wildenburger
I have setuped pyx i wonder i have mistake?
So far you seem to be treating this group as a free help desk for a
program you have paid thousands of dollars for. See

http://www.catb.org/~esr/faqs/smart-questions.html

You've given a full traceback, but you have spent no effort
describing what your goal is or what different things you've
done to solve _your_ problem.

-Scott
Nov 11 '07 #10
>>>>"or*****@gmail.com" <or*****@gmail.com(oc) wrote:
>octhank you
ocbut it said """
ocTraceback (most recent call last):
oc File "<pyshell#3>", line 1, in <module>
oc c.text(0, 0, "Hello, world!")
oc File "C:\web\apache\python\lib\pyx\canvas.py", line 309, in text
oc return self.insert(self.texrunner.text(x, y, atext, *args,
oc**kwargs))
oc File "C:\web\apache\python\lib\pyx\text.py", line 1199, in text
oc self.execute(expr, self.defaulttexmessagesdefaultrun +
ocself.texmessagesdefaultrun + texmessages)
oc File "C:\web\apache\python\lib\pyx\text.py", line 899, in execute
oc self.fontmap = dvifile.readfontmap(self.fontmaps.split())
oc File "C:\web\apache\python\lib\pyx\dvifile.py", line 386, in
ocreadfontmap
oc raise RuntimeError("cannot find font mapping file '%s'" %
ocfilename)
ocRuntimeError: cannot find font mapping file 'psfonts.map'
oc"""
ocI have setuped pyx i wonder i have mistake?
Do you have TeX installed?
--
Piet van Oostrum <pi**@cs.uu.nl>
URL: http://www.cs.uu.nl/~piet [PGP 8DAE142BE17999C4]
Private email: pi**@vanoostrum.org
Nov 11 '07 #11
or*****@gmail.com wrote:
have you got any example?pls :S
I suggest you learn to use internet search. And if you already know it,
please use it before asking that. 10 seconds of search (!) and I had:

<URL:http://www.google.de/search?hl=de&q=pil%20python%20examples&btnG=Google-Suche&meta=>

and from that:
<URL:http://www.pythonware.com/library/pil/handbook/introduction.htmhttp://www.pythonware.com/library/pil/handbook/introduction.htm>

/W
Nov 11 '07 #12
or*****@gmail.com wrote:
I have setuped pyx i wonder i have mistake?
You need a running TeX/LaTeX system for pyx. Sorry, forgot about that.

Also, I suggest you follow Scotts advice in reading
<URL:http://www.catb.org/~esr/faqs/smart-questions.html>.

If you're really looking for a way to generate captchas though, PIL is
what you want.

/W
Nov 11 '07 #13
Ahh, crap!

Wildemar Wildenburger wrote:
or*****@gmail.com wrote:
>have you got any example?pls :S
I suggest you learn to use internet search. And if you already know it,
please use it before asking that. 10 seconds of search (!) and I had:
Make that 2 seconds:
<URL:http://www.google.de/search?hl=de&q=pil%20python%20examples&btnG=Google-Suche&meta=>

and from that:
<URL:http://www.pythonware.com/library/pil/handbook/introduction.htmhttp://www.pythonware.com/library/pil/handbook/introduction.htm>
And make that, of course:
<URL:http://www.pythonware.com/library/pil/handbook/introduction.htm>
/W
Nov 12 '07 #14

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

28
by: grahamd | last post by:
Who are the appropriate people to report security problems to in respect of a module included with the Python distribution? I don't feel it appropriate to be reporting it on general mailing lists.
1
by: Admir Hod?ic via AccessMonster.com | last post by:
I use some old fashion program whit DBF files and now i step by step moving thth to acces. Problem occurs when i try to link DBF tables whit MEMO FILED wich requvest file whit ''name''.ftp extension...
0
by: Luis Serpa | last post by:
Hi I am using the web.config e forms authetication on my application and it work's fine. the problem is this i have a folder 'doc' where i upload file to it and have same pages to. when i try...
1
by: news.wanadoo.nl | last post by:
Hi, I have found whit google this form in this group. But i'n not good in javascript :(. I try and error normal but i only error now :P Whit i now want to now how can i get access to the vars...
0
by: Anthony Baxter | last post by:
SECURITY ADVISORY Buffer overrun in repr() for UCS-4 encoded unicode strings http://www.python.org/news/security/PSF-2006-001/ Advisory ID: PSF-2006-001 Issue Date: October 12, 2006...
14
by: Wouter | last post by:
Hi, I try to make the follow. I want that i can click on a text link and that then a link wil be copyed in a input form box (<input type="text" name="img_url" />). I have google-ed about how...
2
by: Dave Dean | last post by:
Hi all, I'm just starting out in sockets/network programming, and I have a very basic question...what are the 'security' implications of opening up a socket? For example, suppose I've written a...
4
by: wazdakka | last post by:
I have an Access application developed using Access 2003 that I am trying to distribute. I have used the Package and Deployment Wizard that comes with the Office 2003 Developers Kit, and have been...
1
by: =?iso-8859-1?B?QW5kcuk=?= | last post by:
A security hole has been uncovered in Crunchy (version 0.9.1.1 and earlier). Anyone using Crunchy to browse web tutorials should only visit sites that are trustworthy. We are working hard at...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.