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
~26.2K People Reached
Favorite Tags

17 Posted Topics

Member Avatar for kire

You will probably be able to get it to work on all modern Windows based machines (and Linux too) under QB64 ([url]http://www.qb64.net/)[/url]. QB64 is a QuickBasic compatible compiler that's under development, but it already probably has all the features you'd need. Since QuickBasic was compatible with older line-numbered BASICA code, …

Member Avatar for Adak
0
921
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
327
Member Avatar for Hiroshe

I think the big problem would be coming up with some sort of "DNA" language for the "cells" that would have a chance of doing anything with randomly produced code. Otherwise, what you'd probably have in the first generation is a bunch of creatures that don't do anything at all, …

Member Avatar for Hiroshe
0
206
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
149
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
107
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
90
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
150
Member Avatar for drjay1627
Re: lisp

I know a little bit of Scheme, which is a dialect of Lisp. It would help if you could explain better what you're trying to do. Maybe post some python code that you've written.

Member Avatar for tdeck
-1
91
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
158
Member Avatar for chargreaves

If you could upload the file somewhere and post a link (as long as it's not something confidential), I could take a look at the format and see if I can hack together some kind of program to parse out the data.

Member Avatar for tdeck
-1
102
Member Avatar for kspriya01

kspriya01, for future posts, put the question in the post title. Then explain it a bit more in the post itself. That will help people to better answer your questions for you.

Member Avatar for tdeck
0
84
Member Avatar for hughesadam_87

What line.strip() is doing is removing whitespace from the ends of the string. If the line is completely empty, or it's only spaces and tabs, line.strip() will return an empty string '' which evaluates to false. This may not be the behavior you want. It all depends on whether you …

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
104
Member Avatar for Gaurav arora

Maybe [URL="http://social.msdn.microsoft.com/Forums/en-US/winformsdatacontrols/thread/48459f3a-0819-4ab2-ad50-10cb0de47b39"]this link[/URL] will be helpful. It discusses using an enum for the type of a column.

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
144
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
103

The End.