939 Posted Topics

Member Avatar for scru

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 …

Member Avatar for richieking
0
235
Member Avatar for sneekula

[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.

Member Avatar for bumsfeld
2
935
Member Avatar for hazyvisions
Member Avatar for er.sajal

[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 …

Member Avatar for S.Santosh
-1
3K
Member Avatar for JJHT7439

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]

Member Avatar for JJHT7439
0
149
Member Avatar for Zemfik

Mr. Quackers sneers and set the duck on the counter, pausing briefly to remember what he came for. "The usual..."

Member Avatar for Kraai
0
235
Member Avatar for happygeek
Member Avatar for marvan

If you found the product key on the machine, then it's the product key for Vista, not Office. Yep, they need separate keys.

Member Avatar for barryt
-3
357
Member Avatar for serkan sendur

It would probably be easier to list the least impressive films, as the new ones seem to outdo each other in this respect.

Member Avatar for ronnieaka
0
1K
Member Avatar for elove

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 …

Member Avatar for caperjack
0
2K
Member Avatar for Vibze

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]

Member Avatar for Schol-R-LEA
0
2K
Member Avatar for brianmat

did you try updating your sound driver? EDIT: Also try turning off audio enhancements in the control panel for your sound card

Member Avatar for Bublestuff
0
809
Member Avatar for newsguy

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 …

Member Avatar for Jehnavi
0
449
Member Avatar for scru

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: …

Member Avatar for Student level
0
476
Member Avatar for zandiago

Wait, lmfao. People actually openly support piracy? I mean if you pirate stuff keep it to yourself, really.

Member Avatar for jon.kiparsky
2
982
Member Avatar for techbrain55

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?

Member Avatar for rosesteven23
0
405
Member Avatar for noktasizvirgul

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. …

Member Avatar for ghimangi
0
140
Member Avatar for vmanes
Member Avatar for madoverclocker
Member Avatar for debasisdas
0
1K
Member Avatar for vibrations

[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 …

Member Avatar for abrar417
0
131
Member Avatar for MillStrike
Member Avatar for PierlucSS
0
528
Member Avatar for Ancient Dragon

[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...

Member Avatar for johnnybgood
0
450
Member Avatar for gym_shorts

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).

Member Avatar for riaver
0
3K
Member Avatar for eXceed69
Member Avatar for Venom Rush

This what you mean? [code=php] $data=array(); $data["foo"]=3; $data["bar"]=4; $three = $data["foo"]; $four = $data["bar"]; [/code]

Member Avatar for Abolshiz
0
4K
Member Avatar for Dave Sinkula
Member Avatar for serkan sendur

[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 …

Member Avatar for jephthah
1
366
Member Avatar for The Dude
Member Avatar for The Dude
Member Avatar for skymonster84

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]

Member Avatar for kvprajapati
0
156
Member Avatar for Kruptein

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.

Member Avatar for Kruptein
0
197
Member Avatar for Toddh86

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 …

Member Avatar for TrustyTony
0
360
Member Avatar for jcao219

If I have any dependencies that require 2x, I use 2x. Otherwise I use 3.

Member Avatar for hondros
0
209
Member Avatar for pareshverma91
Member Avatar for deerslayer_1704

[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 …

Member Avatar for ilovelinux
1
485
Member Avatar for ithelp

[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.

Member Avatar for jephthah
1
162
Member Avatar for deckchairboy
Member Avatar for William Hemsworth

... [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 …

Member Avatar for vivosmith
2
426
Member Avatar for scru

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 …

Member Avatar for scru
0
117
Member Avatar for jgehlot09

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]

Member Avatar for scru
0
113
Member Avatar for mahela007

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?

Member Avatar for svn799
0
114
Member Avatar for scru

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)

Member Avatar for abanksob1
0
260
Member Avatar for chankya

[QUOTE=EnderX;503080]It's not a tree, it's a small plant.[/QUOTE] Indeed. Hasn't anyone else played the Sims?

Member Avatar for GrimJack
0
245
Member Avatar for PetuniaRose

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 …

Member Avatar for Ene Uran
0
969
Member Avatar for lllllIllIlllI

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 …

Member Avatar for bunkus
3
2K
Member Avatar for i_saw_some

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 …

Member Avatar for annu7uch
0
2K
Member Avatar for khess
Member Avatar for sanfan49er

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 …

Member Avatar for Kalimuthu_S
0
226
Member Avatar for jbennet
Member Avatar for CoolGamer48

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 …

Member Avatar for seemabaalm
0
378

The End.