Posts
 
Reputation
Joined
Last Seen
Ranked #3K
Strength to Increase Rep
+0
Strength to Decrease Rep
-0
100% Quality Score
Upvotes Received
1
Posts with Upvotes
1
Upvoting Members
1
Downvotes Received
0
Posts with Downvotes
0
Downvoting Members
0
1 Commented Post
0 Endorsements
~25.6K People Reached
Favorite Tags
Member Avatar for kire

Hi!, I have a bit of a problem here. I am looking into a few options. First of all, I have a program that was written in GWBASIC and it runs great on a DOS machine. It will even run in Windows 2000 under QBasic if you run it from …

Member Avatar for Adak
0
896
Member Avatar for tdeck

Ideally I'd like to do it with a list comprehension. Something like this [CODE]result = [(key, value)for key in dict.keys(), value in dict.values()][/CODE] but clearly that isn't the right format. Any suggestions? EDIT: This seems like what I want to do, but it doesn't work: [CODE]result = [(dict.keys[i], dict.values[i]) for …

Member Avatar for jlm699
0
324
Member Avatar for Hiroshe

Kinda had an idea for artificial intelligence, though I don't think it's original. I don't know much about AI, so I'm taking a shot in the dark. My idea comes from biology and evolution (not new in computer science). The 'algorithm' for evolution is simple. Lets say you have a …

Member Avatar for Hiroshe
0
169
Member Avatar for tdeck

I'm having a problem which can be exemplified by this python (3) code: [CODE] def askname(): sys.stdout.write("What is your name? ") x = sys.stdin.readline() sys.stdout.write("Hello, "+x) [/CODE] When I run it, I expect to get the prompt, type in my name, and then get the greeting. Instead, it prompts for …

Member Avatar for jlm699
0
147
Member Avatar for tdeck

I'm wondering if there's a way to open standard I/O as a stream, so I can write and read character by character. Something like [code] handle = open(stdio) [/code] Any ideas?

Member Avatar for jlm699
0
104
Member Avatar for tdeck

I'm trapping the onKeyPress event of a textarea, and I'm wondering if there's a way to prevent the key from also being typed into the textarea if it's a certain key. I have tried stripping off the last character from the value property, but it seems that the character is …

Member Avatar for tdeck
0
89
Member Avatar for tdeck

I'm probably going about this in the wrong way, but I have a stack of Objects, and some of these can be ArrayLists. I want to be able to pop an object that is actually an ArrayList off the stack, unbox it, add something, and then pop it back on. …

Member Avatar for tdeck
0
145
Member Avatar for drjay1627
Re: lisp

anyone here know lisp? i'm trying to code a trie in list. i know what to do as i already did it in ruby and python. i just need some guidance with doing the same. reply to this thread if you know lisp or contact me directly at< snipped email> …

Member Avatar for tdeck
-1
90
Member Avatar for tdeck

As far as I can tell, this method is returning a blank line every other line, but I can't figure out why: [CODE] public static List<string> plain(string path, int num) { List<string> result = new List<string>(); StreamReader reader = File.OpenText(path); string line; int i = 0; while ((line = reader.ReadLine()) …

Member Avatar for lighthead
0
153
Member Avatar for chargreaves

We have an ancient WordPerfect Office Notebook 3.01 program that contains my firm's file room tracking and numbering data. The file that contains the information is named: matters.fil and I have been unable to find a way to convert the data to a more current file. I can't even find …

Member Avatar for tdeck
-1
95
Member Avatar for kspriya01
Member Avatar for tdeck
0
82
Member Avatar for hughesadam_87

Hey all, I have been reading some older posts on line/list manipulation, but don't quite understand exactly how to implement all of the tools that you guys are using (line.strip() for example) to get what I need. Essentially, I have a working program that iterates through data and outputs it …

Member Avatar for tdeck
0
21K
Member Avatar for tdeck

I'd like to extract a column from a dataGridView and add it to a dataSet. Apparently I can't cast a dataGridViewColumn to a dataColumn like this [ICODE]DataColumn col = (DataColumn)inputGrid.Columns[0];[/ICODE] even though they seem like they're holding essentially the same thing. Any suggestions you have would be great, I'm still …

Member Avatar for ddanbe
0
97
Member Avatar for Gaurav arora

Hi All, i m currently making a project on departmental store. i m facing a problem in it. i m facing the same problem while Billing and at the time of stock maintainance. the problem is as follows: As seen in many departmental stores there may be different packing of …

Member Avatar for tdeck
0
99
Member Avatar for tdeck

I've managed to figure out how to create tables in a dataset, fill them with data, and link one of those tables to be displayed in a DataGridView. It works great when the selectionmode is by row, row header, or cell, but unfortunately for this project I'd like the user …

Member Avatar for tdeck
0
143
Member Avatar for tdeck
Member Avatar for ddanbe
0
2K
Member Avatar for tdeck

I'm storing a bunch of data in nested collections like this: Dictionary<string, (holds tables) .....Dictionary<string, (holds columns) ..........Struct{ ...............string type (names the type of data in column) ...............List<string> values (values for column) ..........} .....> > Anyway I want to be able to display one of the individual tables (by column, …

Member Avatar for sknake
0
98