Member Avatar

Just interested in the different methods everyone uses to plan their projects, set timelines, etc.

Member Avatar
+0 forum 10
Member Avatar

Hey. I recently tried to play a dvd on my comp and media center told me that the disk wasn't being recognised, so I checked the computer and the drive was missing from there. This is the error in my device manager: This device cannot start. (Code 10) Click 'Check for solutions' to send data about this device to Microsoft and to see if there is a solution available. Check for solutions does not work. It brings up a dialog that lingers for a while (i guess it communicates with server) and then disappears without so much as saying what …

Member Avatar
-2 forum 33
Member Avatar

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 occurs? Thanks.

Member Avatar
+0 forum 5
Member Avatar

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: [code=C++] #include <iostream> #include <iomanip> using std::cout; using std::setw; using std::streamsize; int main() { const int MAX = 100; for (int i = 0; i != MAX;++i) { cout << setw(2) << i << setw(5) << i * i << std::endl; } } [/code] This works fine as is, but …

Member Avatar
+0 forum 12
Member Avatar

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 files side to side; I want something more like how it is seen here: [url]http://bitbucket.org/tjd.rodgers/codeback/changeset/f9bd5e5831d6/#chg-CodeBack.pyw[/url])

Member Avatar
+0 forum 1
Member Avatar

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
+0 forum 2
Member Avatar

I have a 1 year old dv9920us laptop that is refusing to boot into Windows Vista. The Vista "loading screen" appears, but the marquee doesn't and the laptop is perpetually stuck in this state. I was able to boot into live Linux and access my hard drive form there, so i am unsure as to what exactly the problem (Windows or hardware)

Member Avatar
+0 forum 1
Member Avatar

Is there an open source (lgpl, bsd, mit) math parser/lexer library available out there? Has anybody ever written one by themselves (with support for variables, exponents, grouping) and have some tips/hints?

Member Avatar
+0 forum 4
Member Avatar

It's time to get that stick out of your butt and start using it. So what if the standard says so? You're only writing code for Windows anyway (and if you aren't, the chances that someone else is even going to need to use your program are really slim) so who cares if you aren't returning anything meaningful? Alright, so maybe a few purists will pop some blood vessels somewhere in their moms' basements, but so what? "Because I feel like it" is as valid a reason as "because the standard says so".

Member Avatar
+1 forum 22
Member Avatar

Are you sure you want to know? Go ahead and post below to find out. Let's start with me. Why do I suck, folks?

Member Avatar
+0 forum 8
Member Avatar

So as an outside observer, I'm curious about what you think of each other's nations, and whose is better. Just some topics to get you started: Entertainment, Enterprise, Education, Healthcare, People, Don't think too much.

Member Avatar
+0 forum 58
Member Avatar

Hi, I suck at math. I've been working a 2d (yes 2d) library lately at it's been making my head spin. The terminology, the equations, all of it. What I want to do is get good at math, or at least stop sucking. Does anybody know a good book a total math noob like me can use to get to the point where it won't be hard for me to grasp new concepts? I'm a bit reluctant to go to math lessons because they basically teach what they taught in school (and look where that got me). I am willing …

Member Avatar
+0 forum 10
Member Avatar

Do I do it like: [code=C] wchar_t *str = L"12345"; [/code] because that doesn't seem to be working.

Member Avatar
-1 forum 6
Member Avatar

Does anybody know a good way place to find developers for an open source project?

Member Avatar
+0 forum 18
Member Avatar

I couldn't help but notice that everytime I create a window or control with Win32, the text on the window looks jagged, as though it isn't being 'clear-typed' or something. Does anybody know how I can get the text to appear normal?

Member Avatar
+0 forum 2
Member Avatar

Does Python have a concept of class properties (static properties if you may)? I know there are class attributes, but I can't just use one. It's very critical that I control what values can bet set as the class attribute, which I can use the property setter to do.

Member Avatar
+0 forum 2
Member Avatar

I know Python introspection feature are powerful, what I can't seem to figure out is how to get the name of the current class. Example: class Foo: def bar(self): print(classname) Then my output should be `Foo`. Bonus points if I can get which module it resides in too. Thanks!

Member Avatar
+0 forum 3
Member Avatar

Several things have led me to writing this post However, late last week I did some poking around in the Windows C API from ctypes (not using pywin32) for a project I was finishing up, and I [I]loved it[/I]! Since then I've been playing around with ctypes and Windows function calls (mostly the GUI related ones). Now I want to take it a step further and make myself a small GUI library for python 3. What I'm interested in is how I could go about designing the object hierarchy among other things. As a community of python users, this would …

Member Avatar
+0 forum 17
Member Avatar

This function is supposed to take an integer that contains an rgb value, extract the value of each channel, and then return that calculated luminance of the pixel. As it stands, the performance of this function is not fast enough. Looking at it, I can't think of anything else that I can do to speed it up. Also, I was thinking if there's an algorithm to calculate the luminance straight from the integer instead of converting to rgb first, and whether that would be faster. Anyway, here it is: [code=python] def luminance(pixel): """Calculate and return the luminance of a pixel.""" …

Member Avatar
+0 forum 5
Member Avatar

And please don't tell me it's not possible.

Member Avatar
+0 forum 3
Member Avatar

How can I install pygame against the 64 bit version of python for windows? I tried the regular win32 package but imports don't work.

Member Avatar
+0 forum 4
Member Avatar

I noticed a weird thing happening when i use this function. If the page i open is in latin-1 encoding, the bytes returned by this function would have some weird junk characters inserted in various places. However, if i use urlretrieve to fetch the page to disk, there is no junk in the resulting file. Ideas? EDIT: I decoded the bytes returned by urllib.request.urlopen with the latin-1 encoding and saved it to a file for comparision; this is how i know the junk data is there.

Member Avatar
+0 forum 1
Member Avatar

Is there a gui library that has already been ported to python 3? I'm interested in using some of the new python 3 features in the back end for my project.

Member Avatar
-1 forum 8
Member Avatar

Is there a way to add a directory to the locations that python look at when you call __import__ ? I need to import some scripts from a user folder at runtime, and since __import__ doesn't accept absolute file names, I'd like to try this. Copying the script to the program directory isn't a solution I'm willing to risk (requires administrator privileges on some machines).

Member Avatar
+0 forum 2
Member Avatar

Is there a function in the Windows API I can use to get recent files opened by my application instead of just setting them? (Before you tell me; yes, I know it won't be hard to do myself.)

Member Avatar
+0 forum 3
Member Avatar

How can I get and set the rgb value of a specific pixel on screen using C#?

Member Avatar
+0 forum 3
Member Avatar

Quick poll, what do you think should be done to spammers for their ways?

Member Avatar
+0 forum 11
Member Avatar

I'm using [B]pygtk[/B] and [B]glade[/B]. I built the UI using glade and I loaded it using the gtk.Builder. Now, I'm trying to retrieve the a menu item using gtk.Builder.get_item() so that I can update the submenu, but it returns a gtk.Action object. There seems to be no way for me to retrieve the menu item. Any thoughts?

+0 forum 0
Member Avatar

:eek: This is the strangest thing. The program ignores all of my for loops in this method. I double checked the syntax and everything. Am I missing something? BTW, I know that it skips those, because I tell it to play a sound when it enters, and it doesn't play the sound...HOWEVER, if i put the play sound statement outside of the loop (directly after the method is declared), it plays it...wat is going on?:sad: [code=c#] public bool MoveValid(int col, int row, int val) { for (int r = 1; r == 9; r++) { splayer.Play(); if (actual[col, r]==val) { …

Member Avatar
+0 forum 6
Member Avatar

Take a look at this page: [url]http://tejerodgers.com/[/url] and type four or more characters in the search box on the right. My problem is the div box that pops up. I'm only getting the behavior I want with Firefox. in Opera and in IE the page widens to fit it. What I want is what Firefox does; drop it to the next line and sort of squeezes the content in to fit the space. Is there a css property I can use to do this? I'm pulling my hairs!

Member Avatar
+0 forum 2

The End.