- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
- Upvotes Received
- 1
- Posts with Upvotes
- 1
- Upvoting Members
- 1
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
17 Posted Topics
Re: 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, … | |
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 … | |
Re: 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, … | |
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 … | |
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? | |
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 … | |
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. … | |
Re: 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. | |
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()) … | |
Re: 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. | |
Re: 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. | |
Re: 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 … | |
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 … | |
Re: 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. | |
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 … | |
Is there a way to use the NumericUpDown control without a maximum or minimum value? | |
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, … |
The End.