Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
100% Quality Score
Upvotes Received
2
Posts with Upvotes
2
Upvoting Members
2
Downvotes Received
0
Posts with Downvotes
0
Downvoting Members
0
0 Endorsements
Ranked #3K
~8K People Reached
Favorite Tags
Member Avatar for sandorlev

Hey guys! I'm having a hard time finding a way to set up pythonpath on a windows machine, by a script. I know how to do it manually, but I want to make a script that would add a certain directory to pythonpath and would save it. Thanks for reading, …

Member Avatar for Gribouillis
0
252
Member Avatar for Zeref

Hi guys, So I'm busy writing an application that needs to update a list from the web after a certain amount of time. main.py file class Gui: def ...... def ...... def ...... def on_update_click(): update() app=Gui() Gtk.main() So when the program loads up, user will click the update button …

Member Avatar for Zeref
0
309
Member Avatar for Zeref

Hi guys. I'm trying to access some User interface files (.glade) which are in a subdirectory. from gi.repository import Gtk import os path=os.getcwd+'/ui/main.glade' def hurr(): builder=Gtk.Builder() builder.add_from_file(path) # get UI file window=builder.get_object('winlet') window.show() hurr() Gtk.main() This works if i use only 1 glade file, but i have multiple .glade files …

Member Avatar for solivier
0
156
Member Avatar for Zeref

Hi guys. So, I'm trying to read data from a database and displaying in a GtkTreeview. I used glade to design the GUI when i click on the button (view movies) the list of movies should display as a list. def on_btnmovies_clicked(self,widget,data=None): store=self.builder.get_object('listmovies') connect=sqlite.connect('movies.db') db=connect.cursor() db.execute("SELECT * FROM movie") for …

Member Avatar for Zeref
0
702
Member Avatar for Zeref

So i was busy playing around with the python module MySQLdb and looking at sql injection. [CODE] import MySQLdb def hack(name): db=MySQLdb.connect('xxx','xxx','xxx','xxx') cursor=db.cursor() sql="SELECT * FROM PLAYERS WHERE NAME = %s" %(name) print sql cursor.execute(sql) print cursor.fetchall() [/CODE] i entered Hack("'pete' OR '1'='1'") results were: SELECT * FROM PLAYERS WHERE …

Member Avatar for woooee
0
277
Member Avatar for Zeref

Hi guys I'm trying to place a user input into a database(mysql) [CODE]newplayer=raw_input('Please enter a new player name: ")[/CODE] the sql commands to insert data is [CODE]sql="""INSERT INTO PLAYERS(NAME) VALUES('newplayer')"""[/CODE] When i check the database it shows newplayer instead of what the user has entered. any ideas of how i …

Member Avatar for TrustyTony
0
92
Member Avatar for ithelp

Hope this was not posted earlier. Roshan D'Mello (QA Tester) Developer (Mukesh Thakur) Roshan D'Mello: Hey Mukesh, there is a bug in your code. Type a text in username text box and press enter. Beep sound doesn't appear. Mukesh Thakur: How can that be a bug? There is no requirement …

Member Avatar for cwarn23
2
935
Member Avatar for cwarn23

What is it that inspires you to continue programming every day or every week. Is it work or results or something else you would like to share. So please share as I'm sure this will be interesting.

Member Avatar for jackmaverick1
0
122
Member Avatar for chiiqui

What do you do before you start coding/ review/ learn your language or code? what are some websites enhance your brain, or get your brain ready to review.

Member Avatar for Ancient Dragon
0
171
Member Avatar for Zeref

Hi guys, I'm having trouble with this particular code [code=c] #include <stdio.h> int main() { char aChar; printf("Please enter a character: "); scanf("%c",&aChar); while (aChar!='x') { printf("The Letter is %c\n", aChar); printf("Please Enter another character: "); scanf("%c", &aChar); } return 0; } [/code] The output is: Please enter a character: …

Member Avatar for Narue
0
211
Member Avatar for OblibSystems

Hey guys just wanting to get an idea of peoples opinions on Open-Source software as i know many people have very different opinions. The sort of thing im looking for is: Advantages for your personal use Disadvantages for your personal use Whether you agree with Open-Source If you ever use …

Member Avatar for OblibSystems
0
186
Member Avatar for ithelp

It seems thousands of people in china , Russia ,etc are claiming to see 2 suns in sky , what do you guys think about this event ? Source : [url]http://www.msnbc.msn.com/id/41927089/ns/technology_and_science-space/[/url]

Member Avatar for Ancient Dragon
-1
513
Member Avatar for vmanes

We use bumper stickers to proclaim our political/religious/moral/immoral/humorous and other feelings. If you could post a new bumper sticker on your vehicle every day, what would it say today? (Please, one post per day) [b] Do you drive in a phone booth? Hang up NOW! [/b]

Member Avatar for Lardmeister
0
595
Member Avatar for abhi10kumar

I have downloaded the VLC tar.bz2 file and I want to install it onto another Ubuntu machine. How I can install offline ?

Member Avatar for rubberman
0
1K
Member Avatar for Zeref

Hi guys Everytime i use sudo in the terminal i get "sudo: unable to resolve host legacy" I had a look at /etc/hosts file, all i have is this 127.0.0.1 localhost # The following lines are desirable for IPv6 capable hosts ::1 localhost ip6-localhost ip6-loopback fe00::0 ip6-localnet ff00::0 ip6-mcastprefix ff02::1 …

Member Avatar for Zeref
0
165
Member Avatar for faizlo

Hi, I am doing a C++ self-study and I got stuck with this problem. I want to have a code that asks the suer to enter two numbers and then it lists the numbers between these two numbers. It has also to print a message if these two numbers are …

Member Avatar for winrycool1
0
160
Member Avatar for cloudspade

Hey !can somebody help me how to create a incremental search(numerical method) program using python!

Member Avatar for Zeref
0
98
Member Avatar for tcl76

hi, i found a module called xlwt ([url]http://www.python-excel.org/[/url]) that can write to Excel. i want the code to read from a file (robert.txt) and then write to excel in a column. however, it seems that the output from this code is that it only writes to one cell in the …

Member Avatar for tcl76
0
2K