611 Posted Topics

Member Avatar for Azurea

First check in google if itune got API interface for python and start working from there ok? ;)

Member Avatar for richieking
0
93
Member Avatar for HITMANOF44th
Member Avatar for ahmedeqbal

szabizs Just gave you the sutff. However if you really want to search and replace. Please advice and i will script something for you. ;)

Member Avatar for richieking
0
91
Member Avatar for hi102
Member Avatar for hi102
0
11K
Member Avatar for blacknred

1.You have on line 2 assigned config_list and on line 7 again???? 2.You exit logic is no where to be found 3.Why are you checking ip with a string (if ip.lower()==deny.lower())??? ip is a series of numbers so there is no lower method Besides the logic behind your code i …

Member Avatar for blacknred
0
90
Member Avatar for jeevanism

Python ruby or perl will do just that. I think python should be your first option as it is very easy to grasp. ;)

Member Avatar for richieking
0
1K
Member Avatar for muser04
Member Avatar for richieking
0
148
Member Avatar for Liviu0CODER

I will replace C# with C++ and java with python. C++ and python are taking the PL. Expecialy Java is sucking nowadays since it take you too much typing for a simple stuff in python. well thats my take ;)

Member Avatar for Liviu0CODER
0
145
Member Avatar for z00t

Well you can try this. [CODE] from __future__ import division my_list=list(raw_input("enter number: ")) # you take the input from the user avg=sum([int(x) for x in my_list])/len(my_list) print(avg) #out Put enter number: 1234 2.5 [/CODE] hope it helps ;)

Member Avatar for richieking
0
121
Member Avatar for kuchi

There are 2 things here that you must check up. 1. If the module exists in the same project in IDE(eclipse) it should call that for you. But i have a problem with eclipse as it default to jython and custom modules are not that consistant. You can change the …

Member Avatar for richieking
0
565
Member Avatar for richieking

[B][COLOR="Red"]IS ANYONE INTERESTED IN THIS APP???[/COLOR][/B] I am looking for guys 1 or 2 to write some open source application in python. We will decide what app. we want to write. 1.App in GUI (wx) 2.The app will have its dedicated website. 3. The app in multi platform And other …

0
103
Member Avatar for Clarkeez

you need a regular expression to take what you need. The next thing is how you get the file to do so. I really dont know how php can do screen scrapping. cgi's is very simple. Thus python or perl . try php curl functions ok.? ;)

Member Avatar for rixius
0
310
Member Avatar for victordq
Member Avatar for richieking
0
3K
Member Avatar for HoneyBadger

Check your logic well. Your code will not do waht you expects. Try something that takes real data as you will only have either True or false for the whole bunch . Doesnt worth it. Check it up again. ;)

Member Avatar for richieking
0
101
Member Avatar for Danny247

Meaning random_str() inside the method generate_salt() is not defined just write [CODE] return random()[/CODE]

Member Avatar for richieking
0
188
Member Avatar for quadmachine

You can checkup mysql multiple selct query from mysql website. 1.left join 2. inner join 3.right join

Member Avatar for richieking
0
118
Member Avatar for thegecho

You need to set the option value. example[CODE] <select name="foo"> <option value="bar">Bar</option> <option value="thegecho">Thegecho</option> </select> [/CODE] That is it buddy ;)

Member Avatar for richieking
0
104
Member Avatar for ankit.pandey3

You need a pagination script. Your style will not work since mysql does not know the next record to show. ;)

Member Avatar for richieking
0
167
Member Avatar for convoluted

Associate you guesture with the top/main panel. Example. [CODE] pan1=wx.panel(self,-1) pan2=wx.panel(self,-1) #Now the buttons and other stuffs on pan2. #make pan2 inherit pan1 as the parent. #Associate the gusture on the pan1 That will fix it buddy ;) [/CODE]

Member Avatar for richieking
0
175
Member Avatar for python_user

having a while loop besides the main loop in a GUI is not advisable as it can cause a freeze. Why not simply have use to menu event tool to update the casscading menu and increase by foo += 1 or foo -=1. Push the newly created into list/dict or …

Member Avatar for richieking
0
165
Member Avatar for Naley2010
Member Avatar for DanniStacey
Member Avatar for gunbuster363
Member Avatar for richieking
0
100
Member Avatar for sallubhai

[B][COLOR="Red"]Wooo Slate and tonyjv are really complex[/COLOR][/B] Infact the pseudo of slate is flawless but will a newbie understand the algos.? I just wrote this as a step by step to the solution. I real life, i advice you to use Slate's example. [code] labyrinth = \ [[0,0,0,0,0,0,1,0], [0,1,0,1,1,1,1,0], [0,1,1,1,0,1,0,0], …

Member Avatar for TrustyTony
0
154
Member Avatar for Binika
Member Avatar for ekkanh

What about if the python script not running??? I think you need a cron job. With cron job you are in win win situation for this operation. ;)

Member Avatar for richieking
0
406
Member Avatar for stack111
Member Avatar for richieking
-1
175
Member Avatar for gunbuster363
Member Avatar for richieking
0
223
Member Avatar for Mollier

There a re several ways. I think the most easy and accurate is the wx.Timer() method. Very simple and handy. eg: [CODE] timer=wx.Timer(parent,-1) # Then you use the timer.Stop() #or timer.Start() ## In your events method. [/CODE] check it out ;)

Member Avatar for richieking
0
3K
Member Avatar for amandureja

You see, Daniweb is not for solving peoples problem. We share ideas. Sometimes people or new coders want solution but fails to learn how it is done. Yes you got it working but do you undestand why it is working???? If you want to be a programmer, learn to understand …

Member Avatar for richieking
0
2K
Member Avatar for Anthony Cameron
Member Avatar for pixelss

Your def__init__ constructor take args that are no refered anywhere in your code. Fix that. Use that for basic initializing of your variables. ;)

Member Avatar for SgtMe
0
906
Member Avatar for python01
Member Avatar for drdoug

use putty, there is windows version. It will give you the cmd line just as ubuntu server. very handy. just google putty.

Member Avatar for Computerphile
0
236
Member Avatar for arun_gan

try this gives you the idea. no checkups anyway [CODE]#Find odd numbers def odd_find(fr, to): if fr > to: trans = fr fr = to to = trans odd = [] noOdd = [] for x in range(fr, to): if x % 2 == 0: odd.append(x) else: noOdd.append(x) print 'Odd …

Member Avatar for TrustyTony
0
2K
Member Avatar for ekkanh

do you have the filenames in another file and want to read those filename one after the other and use the names to open the real files????? more info needed ;)

Member Avatar for Gribouillis
0
105
Member Avatar for Brickmack
Member Avatar for Memphis_212
Member Avatar for canterorist

Why waste your time. Get Aptana. trust me you will fall in love. Also vim is also handy. Learn a little css and you will not need WYSIWYG IDE's. That is if you want to trade as a programmer. try it. its ease ;) Explore:)

Member Avatar for yarnman
0
181
Member Avatar for n_e

Use geany. its in the repository, sudo apt-get install geany. Comes in handy. also try gedit. Explore :)

Member Avatar for alaukik
0
162
Member Avatar for ChaosKnight11
Member Avatar for richieking
0
183
Member Avatar for killbill07

try the improve of hielo. [CODE]$f=scandir('/Images/'); foreach($f as $p) { if($p=="." || $p=="."){ } else{ echo '<img src="/Images/'.$p.'" />'; }}[/CODE]

Member Avatar for monica singh
0
159
Member Avatar for eldaerys
Member Avatar for spacemanspiff92

[b]Yep woooee[/b] That is it. Spacemanspiff92 you heard him right. The wordlist is blank cos the list wordlist got nothing to do with the wordlist in the exportT~ method. ;)

Member Avatar for richieking
0
120
Member Avatar for linux
Member Avatar for henryford

on line 29 do int type casting for your raw input. you are checking string with while loop for int. not good really. besides i dont see what you want really. ;)

Member Avatar for richieking
0
152
Member Avatar for suntom

SUNTOM WILDBAMABOY just pointed you the way. That is how python deals with error checking. you need to try and except. Just like c++ try catch thing. ;)

Member Avatar for richieking
0
1K
Member Avatar for crazy_perl

how is your file formated....? Yep you can read from a file into an array and check or straight from the file. To an array if you care about speed. I dont see any problem with $Major in this check up. ;) post your file ok? Need to look through.

Member Avatar for crazy_perl
0
172
Member Avatar for pacers10

check your indentation from for loop to end. Also why not do things the easy way.?? ;)

Member Avatar for TrustyTony
0
165
Member Avatar for rayden150

Ha ha ha ..... dont quit. Keep on, dont give up. When you get the logic of programming, the rest is easy. You can do this buddy ;)

Member Avatar for ceyesuma
0
161

The End.