Search Results

Showing results 1 to 40 of 489
Search took 0.03 seconds.
Search: Posts Made By: shadwickman
Forum: PHP Oct 11th, 2009
Replies: 0
Views: 418
Posted By shadwickman
Hello, I know you probably get quite a few threads asking this, but the DaniWeb search didn't pull up what I was looking for. So here we go:

I have a page that I've made as "private" by including...
Forum: Geeks' Lounge Oct 11th, 2009
Replies: 306
Views: 21,834
Posted By shadwickman
As much as I have a very strong dislike for Lady Gaga, I think if it were true we'd see the bulge is her underwear, as she just doesn't seem to own a single pair of pants.

EDIT:
And to stay on...
Forum: Python Sep 17th, 2009
Replies: 9
Views: 417
Posted By shadwickman
Python doesn't need to explicity declare variables in the same way languages like C/C++, Java, etc. do. By writing for comment in inComment: you are creating a new variable called 'comment' that is...
Forum: Python Sep 17th, 2009
Replies: 9
Views: 417
Posted By shadwickman
Sneekula's correct. You're storing each item in the inComments like so: (lineNumber, lineText). So you just need to access the correct index of the tuple, the same way you would access an item in a...
Forum: Geeks' Lounge Sep 17th, 2009
Replies: 306
Views: 21,834
Posted By shadwickman
You sir, have good taste.
Forum: Geeks' Lounge Sep 16th, 2009
Replies: 306
Views: 21,834
Posted By shadwickman
Dream Theatre has some good progressive metal, and includes other genres like jazz and such. I've never been a huge listener of them, as I prefer Tool's sound.

Check out Vicarious from 10,000...
Forum: Geeks' Lounge Sep 16th, 2009
Replies: 306
Views: 21,834
Posted By shadwickman
They were a boy band of their time, at least initially. Then the LSD and drugs kicked in and things moved off in a different direction.


Ahah, just because you don't like thrash metal... anyways....
Forum: Geeks' Lounge Sep 16th, 2009
Replies: 306
Views: 21,834
Posted By shadwickman
I've always wondered, as a boy band, how did they ever gain such popularity?
Regardless, I'm listening to to Thrasher (http://www.youtube.com/watch?v=924bRfmiJ20) from Evile's "Enter the Grave"...
Forum: Python Sep 15th, 2009
Replies: 14
Views: 474
Posted By shadwickman
Python is a good choice for easy-going desktop application development. Of course, you're going to want to get adjusted to and familiarized with classes, methods/functions, etc. before starting on...
Forum: JavaScript / DHTML / AJAX Sep 7th, 2009
Replies: 3
Views: 474
Posted By shadwickman
Thanks, that would be nice if it were that simple :P I'd have to handle the proper action if the key was not a regular, printable character, such as if the user pressed left arrow, backspace, delete,...
Forum: JavaScript / DHTML / AJAX Sep 5th, 2009
Replies: 3
Views: 474
Posted By shadwickman
Hello,

I am currently trying to figure out some event stuff with Javascript. I have the page capturing all onkeypress events by calling my function keyPress, and passing the event as an argument....
Forum: Python Sep 2nd, 2009
Replies: 0
Views: 258
Posted By shadwickman
For some reason (this hasn't happened to me in the past), any wxPython scripts I package via py2exe crash on my other Windows computer (lacking a Python install). If I try running it on my other...
Forum: C++ Aug 30th, 2009
Replies: 7
Views: 319
Posted By shadwickman
Thank you siddhant3s.


Yeah, I already Googled around but for some reason combining both the template part and the variadic part got me confused. Thanks though, I'm straightening it all out!
Forum: Geeks' Lounge Aug 29th, 2009
Replies: 306
Views: 21,834
Posted By shadwickman
Yeah someone in the comments posted that English translation of the Hungarian part. Drone metal isn't really my thing, but I do have random times where I love to listen to it. One similar band that I...
Forum: C++ Aug 29th, 2009
Replies: 7
Views: 319
Posted By shadwickman
Seriously? There's no options that do this for regular functions, the same way it can be done for the main function when it's handed command-line arguments? I thought it was possible to do:

//...
Forum: Geeks' Lounge Aug 29th, 2009
Replies: 306
Views: 21,834
Posted By shadwickman
And the longest title for a [drone] metal track?

Sunn O))) - Big Church (Megszentségteleníthetetlenségeskedéseitekért) (http://www.youtube.com/watch?v=K1HEiQJEmBg)
Forum: C++ Aug 28th, 2009
Replies: 7
Views: 319
Posted By shadwickman
Hello, I've just recently tried to make a class template whose constructor should be able to accept a variable amount of arguments of the class passed to the template. I have something like this,...
Forum: PHP Aug 22nd, 2009
Replies: 7
Solved: EasyPHP issue
Views: 488
Posted By shadwickman
Thank you so much, that was the problem!
Forum: PHP Aug 21st, 2009
Replies: 7
Solved: EasyPHP issue
Views: 488
Posted By shadwickman
Yes, I was just submitting the form data to the same page. But I'm just confused now because I'm wondering if the <?= ... ?> format works, because upon submission, I have another HTML segment to...
Forum: PHP Aug 21st, 2009
Replies: 7
Solved: EasyPHP issue
Views: 488
Posted By shadwickman
Hello, I'm using easyPHP to locally test some scripts I'm building, but I came across a problem that I can't seem to resolve. Within one of my PHP scripts, there's a segment where I end the PHP (?>)...
Forum: Geeks' Lounge Aug 9th, 2009
Replies: 89
Views: 3,927
Posted By shadwickman
I noticed and I loved it haha. Nice to see some humour being put into this thread :D
And I thought that comic strip was actually really good.
Forum: Python Aug 9th, 2009
Replies: 4
Views: 308
Posted By shadwickman
Judging by your first post, when you said "link it to another ..." did you mean pass the values and variables from the first function to the second one?

If you specify what this "previous issue"...
Forum: Python Aug 9th, 2009
Replies: 9
Views: 508
Posted By shadwickman
Well if you install it manually, you need to put it into the C:\Python2X\Lib\site-packages directory in its own folder. Then in that site-packages folder, make a file called chilkat.pth, and in it,...
Forum: Geeks' Lounge Aug 9th, 2009
Replies: 89
Views: 3,927
Posted By shadwickman
I'd say America really does have to take a large part of the blame. The US has been trying to instill their politics in so many different countries over the years, it's no surprise that people will...
Forum: Python Aug 9th, 2009
Replies: 2
Views: 196
Posted By shadwickman
If you don't mind as much about memory usage, you could use

if number in range(10, 24): # careful!
# This gives a range of 10 - 23.
# The end index (24) isn't included in it.

if number in...
Forum: Geeks' Lounge Aug 7th, 2009
Replies: 61
Views: 3,989
Posted By shadwickman
Um... firefox is available from the official site. Unless you thought he meant "firefox 4", in which case that's not even coming out this year.
Forum: Geeks' Lounge Aug 5th, 2009
Replies: 89
Views: 3,927
Posted By shadwickman
But kaninelupus said that in reference to Australia, not a country that whose government enforces single-party rule. The context of that quote makes all the difference...

But I see the point...
Forum: Geeks' Lounge Aug 2nd, 2009
Replies: 89
Views: 3,927
Posted By shadwickman
If I recall properly (because I may be wrong), but in theory extreme right (fascism) tends to allow less intellectual freedom, but it does allow economic freedom. Fascism has government control of...
Forum: Python Aug 2nd, 2009
Replies: 2
Views: 264
Posted By shadwickman
I could give you a full example written for wxPython, but not for Tkinter, sorry :P

But regardless, you'll probably need to use threading for this, as your program will stall until the zip command...
Forum: Python Jul 31st, 2009
Replies: 10
Views: 757
Posted By shadwickman
No offense, but gross code you have there. You have an unbelievable amount that's just copy-pasted. I mean, all the questions are running pretty much the exact same code except for the Q it prints...
Forum: Geeks' Lounge Jul 31st, 2009
Replies: 306
Views: 21,834
Posted By shadwickman
You sir, have good taste. I'm giving a run through the album "Sin After Sin" by Judas Priest :)
Forum: Geeks' Lounge Jul 30th, 2009
Replies: 6
Views: 415
Posted By shadwickman
Like Hiroshe said, learning a programming language depends on what you're trying to use it for. Different ones are suited for different things. They also all have pros and cons so you'll most likely...
Forum: Python Jul 30th, 2009
Replies: 10
Views: 757
Posted By shadwickman
I'm quite sleepy, so excuse me if I'm way off here, but is armRight declared within the global scope of the script? If so, then you need to state global armRight within your function so that when you...
Forum: Python Jul 30th, 2009
Replies: 52
Views: 1,394
Posted By shadwickman
Oh damn, I forgot, sorry. The list you pass to join should be strings, so it looks a bit messier but you could change that to this:

fh.write(','.join([str(i) for i in [gold, level, ship]]))
...
Forum: Python Jul 30th, 2009
Replies: 52
Views: 1,394
Posted By shadwickman
Well you've screwed up the try/except thing that I've tried to explain over and over.

You currently have the if statements inside the except block, meaning if there is an error it will print what...
Forum: Python Jul 30th, 2009
Replies: 52
Views: 1,394
Posted By shadwickman
Well like I was saying, you'd be using pickle for classes and stuff more (or dicts, lists, or tuples).

If you're only wanting to save something like gold, level, ship, then you should only need...
Forum: Python Jul 30th, 2009
Replies: 52
Views: 1,394
Posted By shadwickman
Then you can just invent some simple format for a file to write that to. Say, the file has the values stored, separated by commas, in a specific order, like:
gold,level,ship,name

So you would...
Forum: Geeks' Lounge Jul 30th, 2009
Replies: 10
Views: 1,165
Posted By shadwickman
Nice one! Thank you for that image hahaha :)
Forum: Python Jul 30th, 2009
Replies: 52
Views: 1,394
Posted By shadwickman
What is it you want to save exactly? This is where classes could come in VERY handy. If you had a player class, and all the stuff you wanted to save were properties of that class (like player.gold,...
Forum: Python Jul 29th, 2009
Replies: 14
Views: 409
Posted By shadwickman
Instead of using a global variable for p, you could just pass that to the function as an optional parameter for the recursion you're doing. And you may want to rename the function. I think that loop...
Showing results 1 to 40 of 489

 


About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC