611 Posted Topics
Re: First check in google if itune got API interface for python and start working from there ok? ;) | |
Re: Can you at least provide us with your code...??? ;) | |
Re: szabizs Just gave you the sutff. However if you really want to search and replace. Please advice and i will script something for you. ;) | |
Re: or you can do this [code] print ("The total is %f"%( discounted_total)) [/code] I prefer this .... | |
Re: 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 … | |
Re: Python ruby or perl will do just that. I think python should be your first option as it is very easy to grasp. ;) | |
Re: Can you please post your code again well . Use code ok? ;) | |
![]() | Re: 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 ;) ![]() |
Re: 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 ;) | |
Re: 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 … | |
[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 … | |
Re: 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.? ;) | |
Re: What ide are you using?? Check also if you do not have wordwrap on. :) | |
Re: 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. ;) | |
Re: Meaning random_str() inside the method generate_salt() is not defined just write [CODE] return random()[/CODE] | |
Re: You can checkup mysql multiple selct query from mysql website. 1.left join 2. inner join 3.right join | |
Re: 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 ;) | |
Re: You need a pagination script. Your style will not work since mysql does not know the next record to show. ;) | |
Re: 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] | |
Re: 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 … | |
Re: You must also have locales for chinese install on your system ;) | |
Re: [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], … | |
Re: 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. ;) | |
Re: Try and have a good around in the other threads. This has been done myriad times. | |
Re: Why upgrade if 2x does the job fine. good things come to those who wait. ;) | |
Re: 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 ;) | |
Re: 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 … | |
Re: At least post what you have ok? some code will you ;) | |
Re: Your def__init__ constructor take args that are no refered anywhere in your code. Fix that. Use that for basic initializing of your variables. ;) | |
Re: use putty, there is windows version. It will give you the cmd line just as ubuntu server. very handy. just google putty. | |
Re: 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 … | |
Re: 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 ;) | |
Re: [B]tonyjv[/B] i admire your python skills ;) | |
Re: 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:) | |
Re: Use geany. its in the repository, sudo apt-get install geany. Comes in handy. also try gedit. Explore :) | |
Re: import your new class into your main programe . Then there will be a conection with the event. | |
Re: try the improve of hielo. [CODE]$f=scandir('/Images/'); foreach($f as $p) { if($p=="." || $p=="."){ } else{ echo '<img src="/Images/'.$p.'" />'; }}[/CODE] | |
Re: [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. ;) | |
Re: Try anjuta ide. nice c++ ide. compiles on MS and *nix | |
Re: 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. ;) | |
Re: 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. ;) | |
Re: 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. | |
Re: check your indentation from for loop to end. Also why not do things the easy way.?? ;) | |
Re: 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 ;) |
The End.