120 Posted Topics
Re: Maybe you can use symlinks? if you are on ubuntu though I don't know if that exists on windows | |
I recently started with developing D-CM, a tool for web-programmers. It is a GUI that bundles a file manager, mysql, ftp, text-editor in one I wanted to know what the daniweb community thought about this so if there are people willing to test it -goto [url]http://code.google.com/p/d-cm[/url] and download the latest … | |
Re: Is it possible that you are using java 5 on Linux and java 6 or later on windows? if that's true, you have to upgrade to java 6 or later on linux | |
Re: lol I even can't find a "1" in line 1 xD try to delete the space between the table-name and the ( (It is possibly not the problem, but you can always try) | |
Re: a) Buy a book b) follow a free tutorial on the web: google is your friend We (the daniweb community) are always present to help you if you have something you don't understand, but you will not find someone (although not easily) who will teach you everything in return of … | |
If I do this code in the command line: [code=python]f = open(fl, 'r') txt = "" for line in f: txt+=line f.close() print txt[/code] I get all the output for the file fl, but if I do: [code=python] def editfl(self, fl): f = open(fl, 'r') txt = "" for line … | |
I have a Frame called ChangeDirPanel and an other one called MyFrame, the last one is the top-lvl window and has a function called file_show_dir which updates a listbox in that same window. (both frames have their own class, is it better to have the same class?) I want to … | |
Again I have problems with my classes :s I want to test if there is still text in the text_ctrl, if so it should give a warning in which you can chose to cancel, save or continue; but somehow the [icode]deditor.st = "continue"[/icode] is not passed :s [code=python]#!/usr/bin/env python # … | |
I really don't see what is wrong =(. First I download via curl a file, then I want to compare it to a local file there are 15 lines in dwnext.ded and there are 14 lines in extlib.ded I want to store in append those lines that have a string … | |
Re: You have a lot of them, depending on which subject: -last.fm -netlog.nl -... [url="http://en.wikipedia.org/wiki/List_of_social_networking_websites"]a list[/url] | |
Are their people willing to help testing/contributing to a python project? (if this is not a 'legal' subject, feel free to delete it; I wasn't sure) | |
Re: DON'T USE YET, I found a problem, when this line is away it should be solved =) [code=bash]file="/path/to/file" data="" data=`cat $file` serial="" for i in "$file"; do if [ `expr index "$i" .` = 1 ] then serial=`echo $i | tr -dc '[0-9]'` else echo `echo $i | tr -dc … | |
Re: Can you please give the exact error message please? and are you sure the dbConfig.php is loaded correctly? | |
Re: First: this is not php but html and css second: you can just use div's in div's [code=html]<div style='...'> <div style='...'> </div> <div name='a'> </div> </div>[/code] | |
Re: To begin with you have to know that python itself is not a web programming language. BUT with help of some frameworks or other things you are able to use python as a web pr. language I use [url="www.djangoproject.com"]Django[/url] which is a well-supported web framework which uses only python. | |
I have a base template which is called every time a template is loaded with the [icode]{% extend 'base.html' %}[/icode] tag In that base file I have a navigation bar with a link to your inbox I want to show after the link a number with how many unread messages … | |
I currently have my website running on a host: combell but over a half-year I have to upgrade; caus I think it costs very much (although for a student) I'm thinking of start an own server on my laptop; some problems: [LIST] [*]I guess it's not good to turn of … | |
Re: you should pass them trough a function which defines weither a new product should be added or updated ![]() | |
the code on my localhost and on the server are completely the same (django), but it is not shown correctly; I include two screenshots What could be the cause of the difference? (the left one is the online server; the right one is the localhost) | |
First: Yes I'm comparing apples to oranges but in this case it is kind of possible to compare them Context: I'm a php-developer for 3-4 years I think and I really like php, I also use python for 2 years. I recently came in contact with django (python framework) and … | |
I do php coding for some time and want to learn something new. After some researsh I ended up with 2 languages/frameworks but I can't choose between them. I'm a python programmer so python Django might be easier to start with. But I don't know a well-known website which is … | |
I've seen on a lot of sites that when you scroll down a text, the background image stays the same; If I scroll down the image stays on the place and the piece of text that can't fit on the image height is shown on a white background; how can … | |
I can access my apache server on my localhost, but not on my external ip I don't know how I can make this possible in my Dlink router (DIR-825) Can someone help me ? | |
Re: It is very usefull! I do have an invitation, but I don't have anybody to share my joy with :( I don't have buddies =D | |
![]() | Re: you will probably using cron? and I think you might be able to get the date (of the file) from the server and then compare it with the local file.? |
I have the following code: but for some reason it just won't work if I touch the i the query self works, cause if I just do .Append(str(i)) without the split strip it returns all the tables.. [code=python] def mysql_table(self): self.list_box_3.Set([]) try: self.cursor.execute("SHOW TABLES;") self.query = self.cursor.fetchall() except: self.log("error") for … | |
I have 2 frames in my wxpython program, MyFrame and OptionFrame if I start my program it shows MyFrame, and if I end it, the frame disappears and the program stops. If I start my program and choose to show the option frame, it will show it, but if I … | |
Re: CMS is very user friendly, but does it allow to write your own php code? | |
Re: As far as I can see, I don't know why genieuk can find it confusing, it is advanced regex and he wants to ask someone who knows MORE about regex? ehr. | |
(Their is not a thread about wakoopa yet so I thought I could make one) If you don't know Wakoopa is a social website like facebook, but for computer applications. You download a tracker which 'tracks' which apps you use for how long and sends them to the site, you … | |
Re: First: What is the error you get Second: why are you using different indents? this is a) very ugly and b) will give errors | |
How can I start a launcher from python? if I do: [icode]os.system("~/localhost")[/icode] it just returns a number (probably a process id or something) if this is not possible, how can I start from python a terminal window and execute a code in that terminal? (without closing the python script) Thanks … | |
Re: headers are the way to go [icode]header('location:?Page=2'); // fullway: header('Location:./index.php?Page=2');[/icode] then to get the 2 you have todo: [icode]$page = $_GET['Page']; //$page will be 2[/icode] | |
Re: Woohoow I received my test-account today =D I can use the google wave preview version now | |
Hi I'm trying to find a way to find the first avogadro cipher whose digital sum exceeds 100, I've come to: [code=python]#!/usr/bin/python def dig_sum(n): lst = list(str(n)) ln = len(lst) sm = 0 while(i < ln): sm += int(lst[i]) return sm def avo(i,j,k,c): k = j j = i + … | |
I have this table(building_lvl): [icode]lvl | building_id | region_id[/icode] And I want to get the region_id for which building_id=3 has lvl 2 and building_id=2 has lvl 5 [code]SELECT * FROM building_lvl INNER JOIN regions ON regions.region_id = building_lvl.region_id WHERE ((building_lvl.building_id='3') && (building_lvl.lvl > 1)) && ((building_lvl.building_id='2') && (building_lvl.lvl > 4)) … | |
Re: Can you tell how you fixed it, to solve the same problem for other users. | |
Re: try this: [code=bash]for WORD in $SEARCHQUERY do GREPINPUT = $GREPINPUT + " | grep --ignore-case --files-with-matches -e '$WORD'"; done[/code] btw do you get an error message? if yes, which one? | |
Re: a) You have a problem with your defined br b) You have to backslash your ' as you can see in your source code above there are large blue parts that are caused bye: Don't know You should write that as: Don't know | |
Re: I think it has to be: [icode]def func(string = "something.txt"):[/icode] | |
Re: You have to do: [code=php]echo '<form method ="get" action = "tele.php"> Phone: <input type = "text" name ="number" value= ""> <input type="text" name="fname" value="' . $tesing . '"> <br>';[/code] | |
If I run the following code the textCtrl's aren't updated, they stay empty, but if I do [icode]print self.extra201.GetValue()[/icode] I get the value that is set with the code beneath. [code]self.extra101.SetValue(names[1]) self.extra201.SetValue(names[2]) self.extra111.SetValue(str(money[1])) self.extra211.SetValue(str(money[2]))[/code] Why isn't it update !! :( | |
1. Is it possible to draw a border line around a table and/or a cell 2. Is it possible to draw a color to the background of a label. 2bis If not, is there an other element that can have background colors 3 How can I set the default height … | |
Re: Opera is the best :p I thought, "lets see how opera is", I downloaded it and I fell in love with it, I only use ff for some plugins and that's it. There is a browser war, but I hope IE will lose it (and safari too) and Opera Chrome … | |
In my browser(opera), my background image takes up the full height off the screen, but on my friends(firefox) there appears a large black banner beneath it (black because that is the bgcolor) I give you the css hopefully you guys can help me. [code=css]body { color:#C00; background-color:#000; background-image:url('../background.jpg'); background-repeat:no-repeat; background-position:top; … | |
with the function: list(string) you put every letter from the string in a list, I want to put each 2 letters in a list so If I had the string: ThisIsATestt I want to get a list: ['Th','is','Is','AT','es','tt'] (There will never be a letter alone, so you don't have to … | |
I need to split a float in 2, but the split function doesnt work with floats... What is an alternative for this? If I have 2.4 I want to get 2 and 4 In math you've got a function fpart and ipart, but I don't know this is possible in … |
The End.