Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
100% Quality Score
Upvotes Received
1
Posts with Upvotes
1
Upvoting Members
1
Downvotes Received
0
Posts with Downvotes
0
Downvoting Members
0
~6K People Reached
Favorite Tags

25 Posted Topics

Member Avatar for vegaseat
Member Avatar for vegaseat

How can you access files in directories in a ZIP?, i.e: ZIP --> Folder --> File --> Python? I can do this on Linux, but not on Windows...

Member Avatar for 1337455 10534
0
688
Member Avatar for Stefano Mtangoo

Is it possible to add a wx switch to the compiler? I know my wx apps compile fine.. For something as large as SPE, it could be any number of things.. Sorry.

Member Avatar for Stefano Mtangoo
0
156
Member Avatar for FreezeBlink

That is pretty ingenious! Does it work without using lambda? e.g '1':"w/e", etc

Member Avatar for kdoiron
0
1K
Member Avatar for unpolloloco

Is it possible to do a [code=python] import os os.system('tskill firefox') [/code]?

Member Avatar for unpolloloco
0
106
Member Avatar for Mr NiceGuy

You, my friend, need to try concatenation. I believe that it works with both lists and strings, so this is what you'd do; [code] final = fileString1 + '\n'+ fileString2 + '\n' + "" + integerData outfile = open('outfile','w') outfile.writelines(final) outfile.close() [/code] edit: you can set any object as a …

Member Avatar for SUBHABRATAIISC
0
110
Member Avatar for 1337455 10534

Hi, I'm a high-school freshman that wont be taking a programming class until next year. I am proficient at Python, and they decided to put me in AB Programming, which is Java. When I first started programming on a z80 TI-83+ with BASIC, I set out to make my life …

Member Avatar for Ezzaral
0
98
Member Avatar for linux
Member Avatar for 1337455 10534

I need to convert .docx files to .doc (on Linux and Windows). I'm planning to use the zip mod to access all of the internal XML documents. Then I'll the /word/document.xml and I need to parse it so that it will read all of the text in the tags, place …

Member Avatar for 1337455 10534
0
139
Member Avatar for 1337455 10534

Hi, I am in the search of my 'perfect' Linux fit. So far, Ubuntu 7.10 seems to be getting the most points, but it is slow compared to Zenwalk and others. My hardware is pretty good, it can manage Compiz Fusion fairly well, but boot times and desktop nice-ness (*as …

Member Avatar for jbennet
0
191
Member Avatar for petersrin

Your best method would be to use lists (in C, arrays). (BTW: 1. I don't think you can use self outside of a class. 2. raw_input always returns a string ) [code] data = [] type = raw_input("Type: ") entry = raw_input("Entry: ") data.append(entry) def report(data): x = len(data) print …

Member Avatar for petersrin
0
147
Member Avatar for fongoos

[code] guess == int(raw_input("enter an integer:")) [/code] should be [code] guess = int(raw_input("enter an integer:")) [/code] If you try to assign a value to a variable using '==', you will return a Boolean data validity confirmation ;), that is to say, it will return True if the two variables are …

Member Avatar for 1337455 10534
0
499
Member Avatar for Uncle_John

A web browser is better suited for such, but please search the global module index, there will be something in there for you.

Member Avatar for wwwalker
0
171
Member Avatar for 1337455 10534

Hi, to me, specifying hardware for compiling the kernel is the biggest pain and things never seem to go perfectly. Either the boot process is too slow, or sound doesn't work, or something... Is there a script that will determine what to omit or compile based solely on the hardware …

Member Avatar for linux
0
199
Member Avatar for rysin

[code=python] a = input("Number: ") b = 2 + a filename = eval(str(b)) outfile = open('%s' % filename,'w') outfile.write(b) [/code]

Member Avatar for 1337455 10534
0
134
Member Avatar for rysin

Very simple :); Do you know what to do? Do you even know what you want to do? There's a wide variety of games... I'm sure you've heard of Pygame.. why don't you test it out. I made a lil star-wars thing in a week..

Member Avatar for 1337455 10534
0
161
Member Avatar for LarZ

Webbrowser is great too. [code] import webbrowser as WEB WEB.open('anyfile.extension') # are URL's accepted? probably # or under Linux, you could; # import os # os.system('firefox URL') # and then # os.system('killall -9 firefox') [/code]

Member Avatar for 1337455 10534
0
116
Member Avatar for strictlycustom

If you want to send data to external programs, your easiest method is using sys.argv. After executing your first program, you'd need to execute the other program with your data in the argument within your code. [code] import os def main() : hours = input ("How many hours do you …

Member Avatar for vegaseat
0
95
Member Avatar for peaceful_soul

If you have kernel source, look in promising folders. There isnt great documentation on where to find things, I dont think. There are daemons (background tasks), active, dead, zombie (killed but still active), and paused processes (thread-types, I guess). And I have no clue what a data structure is. Good …

Member Avatar for 1337455 10534
0
69
Member Avatar for linux

Yeah, it may be better to backup your files and Gconf, then do a manual reinstall via CD. The dist-upgrade method messed up all of my default programs (on Feisty). To linux: do you have an UbuntuForums account? You'd benefit, its a great forum.

Member Avatar for John A
0
68
Member Avatar for alivip

Get easygui and look at the source for fileopenbox or diropenbox. [url]http://www.ferg.org/easygui/index.html[/url]

Member Avatar for 1337455 10534
0
63
Member Avatar for huglybits

If you dont read the link; [code=python] yourfile = open('yourfilename.txt','r') # r stands for read yourtext = yourfile.readlines() print yourtext [/code]

Member Avatar for 1337455 10534
0
112
Member Avatar for bmora96

yeah, really, wth? what is paragnet and how is source code difficult to get? What's there to decrypt???

Member Avatar for 1337455 10534
0
157
Member Avatar for 1337455 10534

So I have a pyGTK app going on nicely, but it requires sudo permission (under Linux) to perform a BASH operation. If I prompt for a password using a GUI, is there any way I can do my BASH stuff without sudo asking the user for a password in the …

Member Avatar for 1337455 10534
0
207
Member Avatar for sigkill9

I'm not gonna bother changing your approach, just perhaps you code. I wouldn't define a function in a function. Try classes. And its good syntax to define a function before you use it. [code=python] import math #class MyMath: def isEvenAndPrime(n): print "="*52,"\nERROR:",n,"is already prime." def primeTest(p): stop = int(math.ceil(math.sqrt(p/2)))+1 for …

Member Avatar for 1337455 10534
0
123

The End.