Forum: C++
Jul 18th, 2006, 6:44 PM
|
|
Replies: 49
Views: 1,288
|
Forum: Python
Jul 15th, 2006, 8:03 AM
|
|
Replies: 7
Views: 442
|
Forum: Python
Jul 13th, 2006, 5:44 AM
|
|
Replies: 22
Views: 319
titaniumdecoy: Maybe you should have posted all...
titaniumdecoy: Maybe you should have posted all of these requirements from the start. Your question has evolved from "how do I make a human-readable config file in the form foo=bar" to "how do I do...
|
Forum: Python
Jul 11th, 2006, 6:47 PM
|
|
Replies: 22
Views: 319
I don't know if i'd call it dangerous. I'd say...
I don't know if i'd call it dangerous. I'd say that it's nice having the ability to tap into a fully blown programming language when doing your config. I use Python for some of my configurations and...
|
Forum: Community Announcements and Feedback
Jul 10th, 2006, 10:00 AM
|
|
Replies: 79
Views: 1,687
Ugh. Please don't regurgitate myths...
Ugh. Please don't regurgitate myths (http://kdemyths.urbanlizard.com/myth/27) you may have heard on some forum or chat-room or whatever. Konqueror has very impressive CSS support...
|
Forum: Python
Jul 8th, 2006, 9:44 AM
|
|
Replies: 11
Views: 277
That does sound pretty obscure. If i'm not...
That does sound pretty obscure. If i'm not mistaken the explorer uses a HTML rendering widget to display the folders and stuff? If you could find a way to get a reference to that rendering widget you...
|
Forum: Community Announcements and Feedback
Jul 8th, 2006, 9:33 AM
|
|
Replies: 79
Views: 1,687
Screenshot here...
Screenshot here (http://paul.giannaros.org/screenshot.png)
I'm all for big_k placing adverts where he wants on his forum, but your analogy is flawed. If TV providers made a sudden change where 20...
|
Forum: Community Announcements and Feedback
Jul 7th, 2006, 8:04 PM
|
|
Replies: 79
Views: 1,687
|
Forum: Python
Jun 22nd, 2006, 11:47 AM
|
|
Replies: 12
Views: 343
|
Forum: Other Programming Languages
Jun 18th, 2006, 2:11 PM
|
|
Replies: 6
Views: 196
The most important question is what are you...
The most important question is what are you trying to do? There may be an easier way that going through all the requirements you suggested because that'll take quite a bit of serious coding.
|
Forum: Python
Jun 14th, 2006, 5:05 PM
|
|
Replies: 15
Views: 415
|
Forum: Python
Jun 13th, 2006, 12:52 PM
|
|
Replies: 15
Views: 415
Firstly, bear in mind os.startfile is Windows...
Firstly, bear in mind os.startfile is Windows specific (it won't work on Mac or Linux if you try to run your script there).
Sane: may be better if you mentioned it's win-only before you advocated...
|
Forum: Python
Jun 12th, 2006, 1:03 PM
|
|
Replies: 12
Views: 343
|
Forum: Python
Jun 12th, 2006, 12:57 PM
|
|
Replies: 8
Views: 219
I think that should be
import...
I think that should be
import webbrowser
webbrowser.open("MyHTML.html")
edit: Heh, beaten to it
As for os.startfile, i'd imagine that uses Windows' start command or some such. KDE has similar...
|
Forum: Python
Jun 12th, 2006, 12:50 PM
|
|
Replies: 6
Views: 200
Or you could not bother using %d or other...
Or you could not bother using %d or other placeholders and just use %s. %s implicitly converts to a string so it won't error out if you decide to change the integer into a list or whatever.
print...
|
Forum: Python
Jun 12th, 2006, 12:46 PM
|
|
Replies: 25
Views: 619
They were indeed. List comprehensions are more...
They were indeed. List comprehensions are more efficient if you're not calling a function in them. For example:
l = [104, 101, 108, 108, 111]
map(chr, l) # faster than [chr(x) for x in l] as the...
|
Forum: C++
Jun 12th, 2006, 12:29 PM
|
|
Replies: 18
Views: 391
A little theory - Kilo's example is basically...
A little theory - Kilo's example is basically doing what the first pass of a bubble sort (http://en.wikipedia.org/wiki/Bubble_sort) would do but instead of swapping the items in the array he's...
|
Forum: Python
Jun 9th, 2006, 6:40 PM
|
|
Replies: 25
Views: 619
So which one is it? Either it was a joke or it...
So which one is it? Either it was a joke or it wasn't?
Bear in mind that the vast majority of us do not read minds. Not everyone knows what you're saying or what you're thinking - similarly someone...
|
Forum: Python
Jun 8th, 2006, 6:06 PM
|
|
Replies: 245
Views: 5,428
|
Forum: Python
Jun 6th, 2006, 9:38 AM
|
|
Replies: 7
Views: 262
The pygame tutorials use pretty simple Python...
The pygame tutorials use pretty simple Python constructs. They should give you no problem if you've got a fair grasping of the Python language. Concentrate on learning Python first, then move onto...
|
Forum: Python
Jun 3rd, 2006, 10:14 AM
|
|
Replies: 12
Views: 288
|
Forum: Python
Jun 2nd, 2006, 9:21 AM
|
|
Replies: 25
Views: 708
|
Forum: Python
Jun 1st, 2006, 1:00 PM
|
|
Replies: 3
Views: 227
|
Forum: Bash / Shell Scripting
May 31st, 2006, 2:48 PM
|
|
Replies: 9
Views: 532
|
Forum: Python
May 30th, 2006, 7:39 AM
|
|
Replies: 25
Views: 708
|
Forum: Coder's Corner Lounge
May 27th, 2006, 7:57 PM
|
|
Replies: 46
Views: 919
|
Forum: Python
May 27th, 2006, 7:49 PM
|
|
Replies: 11
Views: 336
|
Forum: JavaScript and Client-Side Browser Scripting
May 26th, 2006, 7:12 PM
|
|
Replies: 11
Views: 491
|
Forum: JavaScript and Client-Side Browser Scripting
May 26th, 2006, 9:14 AM
|
|
Replies: 11
Views: 491
|
Forum: JavaScript and Client-Side Browser Scripting
May 26th, 2006, 9:08 AM
|
|
Replies: 16
Views: 491
Yup, as I said further up - caching is slower....
Yup, as I said further up - caching is slower. running with the cached version gives ~23 ms here. Regular document.getElementById gives ~15 ms. This is with Konqueror 3.5. On Firefox, results are...
|
Forum: JavaScript and Client-Side Browser Scripting
May 26th, 2006, 8:40 AM
|
|
Replies: 16
Views: 491
|
Forum: JavaScript and Client-Side Browser Scripting
May 25th, 2006, 1:17 PM
|
|
Replies: 16
Views: 491
|
Forum: JavaScript and Client-Side Browser Scripting
May 24th, 2006, 2:42 PM
|
|
Replies: 16
Views: 491
Nono, setAttribute is standard JavaScript. IE...
Nono, setAttribute is standard JavaScript. IE doesn't like standards, heh.
As for your original get_object function - if / else ifs in interpreted languages are costly and setting a flag for the...
|
Forum: Python
May 20th, 2006, 6:10 PM
|
|
Replies: 245
Views: 5,428
Yeah. Getting bunches of information from...
Yeah. Getting bunches of information from websites for the good of companies is fairly commonplace. I work part-time for a travel industry software provider and had to create a few spiders to scrape...
|
Forum: JavaScript and Client-Side Browser Scripting
May 15th, 2006, 2:28 PM
|
|
Replies: 15
Views: 414
|
Forum: Coder's Corner Lounge
Apr 21st, 2006, 11:59 AM
|
|
Replies: 29
Views: 716
|
Forum: JavaScript and Client-Side Browser Scripting
Apr 19th, 2006, 6:39 PM
|
|
Replies: 15
Views: 507
|
Forum: JavaScript and Client-Side Browser Scripting
Apr 18th, 2006, 4:54 PM
|
|
Replies: 15
Views: 507
Yeah, getElementsByName doesn't work on a bunch...
Yeah, getElementsByName doesn't work on a bunch of elements, including pre. Found that out the hard way after thumping myself when wondering why a client side syntax-highlighter wasn't working in IE....
|
Forum: JavaScript and Client-Side Browser Scripting
Apr 17th, 2006, 7:07 AM
|
|
Replies: 20
Views: 693
|
Forum: JavaScript and Client-Side Browser Scripting
Apr 17th, 2006, 7:04 AM
|
|
Replies: 19
Views: 523
Not so broke that you can't afford a...
Not so broke that you can't afford a domain/hosting ;)
Edit: And you're doing some truly creepy things on that page - reloading the window if netscape 4 resizes? Do you even know what Netscape 4?
|