939 Posted Topics
Sometimes IDLE crashes when trying to run GUI code. I already know the standard responses to this issue (use another editor, run from command line etc.). What I'm interested in is why does it do this? Does anybody have any information (or a link to info) on why this issue … | |
Re: [QUOTE=sneekula;862497]It's time again to poll the well educated folks at DaniWeb about the possible cause of the end of humanity on earth.[/QUOTE] I do hope that was just you trying to be funny. | |
Re: [code=c#] Button[] btnArr = new Button[COUNT]; //count is the amount of buttons this array can hold. //Add/Change a button: btnArr[indx] = IAmButton; //indx is the position, IAmButton is the button you are adding. //Get a button: IAmButton = btnArr[indx]; //Get a specific button. Not so sure about this one... TempButton … | |
Re: I'm not sure I fully understand your questions, but the reason your addFirst does not work seems to be line 19: Should be [icode]list.head = first[/icode] instead of [icode]list.head == first[/icode] | |
Re: Mr. Quackers sneers and set the duck on the counter, pausing briefly to remember what he came for. "The usual..." | |
Re: If you found the product key on the machine, then it's the product key for Vista, not Office. Yep, they need separate keys. | |
Re: It would probably be easier to list the least impressive films, as the new ones seem to outdo each other in this respect. | |
Re: Microsoft Office 2007 is Vista's best match. Case closed. I use it and it doesn't eat my resources (maybe you're confused by VISTA eating your resources people)--don't let the ribbon and prettiness fool you. There are some enhancements that make work a whole lot easier. If you're buying a brand … | |
Re: just url encode it. [code=python] import urllib res = urllib.quote(original) orginal = urllib.un_quote(res) [/code] [url]http://docs.python.org/library/urllib.html[/url] | |
Re: did you try updating your sound driver? EDIT: Also try turning off audio enhancements in the control panel for your sound card | |
Re: It's easy to misinterpret a statement like that. The way I see it, he didn't mean that video games and television are all out bad. Just that there's a time for everything, so when it's time for them to do their homework and what not, their parents should put them … | |
Is there a short way to determine how many digits are in an integer? I'm new to C++, and writing a program that's supposed to a number in one column, and its square in the next. I'm using setw to manipulate the width of the coulms. Here is those code: … | |
Re: Wait, lmfao. People actually openly support piracy? I mean if you pirate stuff keep it to yourself, really. | |
Re: More details on what the virus does (eating away your computer is vague at best), and maybe even how you caught it would be nice. Also how have you verified that it is, in fact a trojan? What tools have you used to attempt its removal? | |
Re: If you have an ASP.NET server, then create a service with a set of methods for you application that the client will call, so the "valuable" code will be stored on the server. My point is, once the machine code is available to the client, reverse engineering is always possible. … | |
| |
Re: uhm, go do this in the posting games section. Not geek's lounge. | |
Re: [quote=InfktdGuitarist;378267](it doesn't matter whether you dowload the one for vista [U]or[/U] xp, either will work since it is the vista installation, not the actual operating system which wasn't compatable w/ the audio driver.) [/quote] Why do you think that? Vista (the actual OS) does need drivers that are designed for … | |
Re: THanks this helped me too! A lot easier than I thought it would be... | |
Re: [QUOTE=ZZucker;710232]Well, Sarah Palin is much like Ronald Reagan, who was an actor too! He made a wonderful super conservative president.[/QUOTE] I hope that's sarcasm. If you actually think Palin would be a good president... | |
Re: you can put an echo right before it to check if, first of all, that line of code is ever reached. (Of course this echo will cause the header() to throw an error if they are indeed reached, but it's just testing). | |
| |
Re: This what you mean? [code=php] $data=array(); $data["foo"]=3; $data["bar"]=4; $three = $data["foo"]; $four = $data["bar"]; [/code] | |
Re: [QUOTE=jephthah;913371]there are plenty of people with more rep points than me who haven't been featured. and rep points are just as subjective and arbitrary as being selected to get a "featured poster" bubble. i mean, look at you: you were "featured". that proves how meaningless it is. it is you … | |
| |
Re: like it Breadfruit and salted-fish | |
Re: Also, there is an project called TagLib Sharp that really dumbs it down to just the way .NET users like it. It's a managed dll that I believe is designed for C#.NET. It can manage metadata in mp3 and wma among other formats. Here: [URL="http://www.taglib-sharp.com/Download/"]Just for you[/URL] | |
Re: No. It [B]may[/B] be possible with some sort of web page control, but that solution would be so convoluted that I don't even want to think about it. Are you just trying to get syntax highlighting, or do you want pygments specifically? For the former, use wx.StyledTextCtrl. | |
Re: I'm not sure what you mean by "the best way to read from a text file." In what respect? Speed? Memory Consumption? Elegance? The [icode]while len(line) != 0:[/icode] literally means "while the line is not an empty string" (Personally, I'd use the much cleaner [icode]while line:[/icode]. It means the same … | |
Re: If I have any dependencies that require 2x, I use 2x. Otherwise I use 3. | |
Re: [url]http://docs.python.org/c-api/index.html[/url] | |
Re: [QUOTE=majestic0110;580231]I would be surprised if it did work. I think that each key might be unique to each disc (for home users at least) - to prevent piracy. I might be wrong here though[/QUOTE] WRONG! I would be surprised if it DIDN'T work! So long as your key is, in … | |
Re: [QUOTE=ithelp;910551]That possibly means our brain is unable to simulate google search results in dream. :D[/QUOTE] Not really. Maybe they're just copying what happens in the real world. And maybe you [I]do[/I] need to take a vacation. | |
Re: ... [QUOTE]Cleverbot: Did you find me on Google? User: No. Cleverbot: Did you find your brother. User: My brother was never lost. Cleverbot: Did he die? User: No, my brothers are alive... Cleverbot: My brother is named Jushiro. User: What's he like? Cleverbot: She not he. User: Your brother is … | |
Does anybody know of any libraries or scripts or even code snippets that can generate HTML code from a diff or comparison of the contents of two files? I know of the HtmlDiff class in difflib, but the format it outputs is not the one I want (it puts both … | |
Re: If you're trying to get the current item in the QListWidget, this is trivial: [code=python] text = '' cur = lw.currentItem() if cur is not None: text = cur.text() [/code] You code will have to check that text is not empty before doing anything with it. Source: [url]http://www.riverbankcomputing.co.uk/static/Docs/PyQt4/html/qlistwidget.html[/url] | |
Re: If you're getting a permission denied error, that usually indicates that your program doesn't have enough privileges to do what it wants to do. Where are you copying the file to? And is this a Vista OS? | |
Hey. I'm looking for a solution that will create, fill and display a container in javascript directly beneath a specific element (no whitespace, margins w.e) | |
Re: [QUOTE=EnderX;503080]It's not a tree, it's a small plant.[/QUOTE] Indeed. Hasn't anyone else played the Sims? | |
Re: Yeah, like you've never made any personal, presumptuous and off topic remarks. It's a little deluded to think that every single person in the world would want to be masters of their own domain. Some people just don't care, don't have enough confidence, or are pretentious fools who spew their … | |
Re: Great tutorial, I have some comments. In python re, you can omit the ^ and $ from your regular expression and use [icode]re.match[/icode] to match the string from start to finish against the expression, as long as you don't require newlines to be taken into account. This way you can … | |
Re: Are the functions in your dll exported? I know I had to do something like [code=c++] int __declspec(dllexport) add(int r, int q); [/code] instead of just [code=c++] int add(int r, int q); [/code] when writing my dll. EDIT: I just saw that this thread is almost a year old. Did … | |
Re: WHen will people stop whining about Vista? It's been over a year. | |
Re: If you're running C# 3.0, you can use this shorthand for the properties; just add {get; set;} after each declaration and so you can totally remove the extra code below: [code=C#] using System; using System.Collections.Generic; using System.Text; namespace CarsDemo.cs { class Cars { public int idNumber {get; set;} public string … | |
Re: Just ignore people who say Vista sucks or not to get it. These are stupid peole who are afraid of change :P. If you feel you want to give Windows Vista a chance, do so. Don't rely on what other people say to form an opinion. Afterwards, whether or not … |
The End.