473,543 Members | 3,906 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Python project solicitation

Hello All,

I was wondering if anyone would be interested in improving a module I
quickly hacked together this past Sunday: pswrdgen.py

It is a semantic password generator that uses WordNet 2.1, random
capitalization, and character swapping.
http://code.google.com/p/pswrdgen/

I must say this thing is pretty cool. I had a coworker try it out and
he ran into problems getting it to run on his Linux OS. So I am
really looking for some non-Windows developers to take a look at it.
All of the info is at the project site above.
Thanks.

And on a side note, I see a bunch of Python newbies here. I really
recommend "Python Phrasebook" by Brad Dayley. This thing is small
enough to fit in your back pocket and lots of basic code phrases.
--
Later, Joe
Aug 21 '07 #1
2 1019

On Aug 20, 9:35 pm, JoeSox <joe...@gmail.c omwrote:
I must say this thing is pretty cool. I had a coworker try it out and
he ran into problems getting it to run on his Linux OS. So I am
really looking for some non-Windows developers to take a look at it.
All of the info is at the project site above.
Thanks.
I looked at it real quick. You need to use os.path.join for your file
paths. You also need to use sys.platform for windows specific
processing. For example:

if sys.platform == 'Win32':
FS_ROOT = 'C:'
else:
FS_ROOT = '/'

WORDNETPATH=os. path.join( FS_ROOT, 'WordNet', '2.1', 'dict' )

So on and so on. You wrote it very MSWin centric so it is not a
surprise it has trouble of on other platforms. All of your file
references need to be adjusted as above using os.path.join.

Keep in mind I only looked at it real quick. Those appear to be the
cross platform deal killers. Short of something I missed (could
have), it should work find on most any other platform once you take
out the Windows-isms.
Greg

Aug 21 '07 #2
On 8/21/07, Greg Copeland <gt********@gma il.comwrote:
>
On Aug 20, 9:35 pm, JoeSox <joe...@gmail.c omwrote:
I must say this thing is pretty cool. I had a coworker try it out and
he ran into problems getting it to run on his Linux OS. So I am
really looking for some non-Windows developers to take a look at it.
All of the info is at the project site above.
Thanks.

I looked at it real quick. You need to use os.path.join for your file
paths. You also need to use sys.platform for windows specific
processing. For example:

if sys.platform == 'Win32':
FS_ROOT = 'C:'
else:
FS_ROOT = '/'

WORDNETPATH=os. path.join( FS_ROOT, 'WordNet', '2.1', 'dict' )

So on and so on. You wrote it very MSWin centric so it is not a
surprise it has trouble of on other platforms. All of your file
references need to be adjusted as above using os.path.join.

Keep in mind I only looked at it real quick. Those appear to be the
cross platform deal killers. Short of something I missed (could
have), it should work find on most any other platform once you take
out the Windows-isms.
Excellent. I will look at this. Being a hobbyist programmer, I am use
to writing code just for a Windows environment. I've only been using
Python for a year or so and I never could get into Java.

--
Later, Joe
Aug 21 '07 #3

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

Similar topics

5
2639
by: John Ladasky | last post by:
Hi, folks, At the beginning of 2003, I was a frustrated computer user, and lapsed programmer, with problems to solve that screamed for programming. Thanks to the Python language and community, I am a programmer once again. My earlier solicitation to the computer world is here: ...
38
3702
by: kbass | last post by:
In different articles that I have read, persons have constantly eluded to the productivity gains of Python. One person stated that Python's productivity gain was 5 to 10 times over Java in some in some cases. The strange thing that I have noticed is that there were no examples of this productivity gain (i.e., projects, programs, etc.,...). ...
36
6326
by: Andrea Griffini | last post by:
I did it. I proposed python as the main language for our next CAD/CAM software because I think that it has all the potential needed for it. I'm not sure yet if the decision will get through, but something I'll need in this case is some experience-based set of rules about how to use python in this context. For example... is defining...
10
9896
by: TokiDoki | last post by:
Hello there, I have been programming python for a little while, now. But as I am beginning to do more complex stuff, I am running into small organization problems. It is possible that what I want to obtain is not possible, but I would like the advice of more experienced python programmers. I am writing a relatively complex program in...
267
10512
by: Xah Lee | last post by:
Python, Lambda, and Guido van Rossum Xah Lee, 2006-05-05 In this post, i'd like to deconstruct one of Guido's recent blog about lambda in Python. In Guido's blog written in 2006-02-10 at http://www.artima.com/weblogs/viewpost.jsp?thread=147358
158
6289
by: Giovanni Bajo | last post by:
Hello, I just read this mail by Brett Cannon: http://mail.python.org/pipermail/python-dev/2006-October/069139.html where the "PSF infrastracture committee", after weeks of evaluation, recommends using a non open source tracker (called JIRA - never heard before of course) for Python itself. Does this smell "Bitkeeper fiasco" to anyone...
0
7347
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7590
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
7733
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7344
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
7684
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
5883
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
0
4890
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3388
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
1
1814
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

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.