nonethefewer: A steampunk heart, from here: http://www.girlgeniusonline.com/comic.php?date=20050926 (geeky)
Goddammit. I could do this in Python in two seconds, but C# is thwarting me.

In Python:

countryInfo = {
	'Australia': {
		'id': '13',
		'pre': '61',
		'len': '9'
	},
	'Spain': {
		'id': '207',
		'pre': '34',
		'len': '9'
	}
}
country = "Spain"
print "The prefix for %s is %s" % (country, countryInfo[country]["pre"])


Output:

The prefix for Spain is 34


But how do I do this well in C#?

ExpandContext. )

Expand[eta] Current implementation. )
nonethefewer: (evil grin)
Today's pile of awesome: J.S.Bach-Toccata e Fuga BWV 565 - Karl Richter [YouTube]

Seriously, damn.  I didn't know playing the organ took six limbs.

In other news, I have rediscovered #Develop (open source IDE for C# and VB.NET (and "Boo")), and I've found some sample C# code for interacting with a SQLite database, and ho man.  Trust me, it's this or it's get a webserver running for myself.  Wellbut, I could use my website... but I'd want to study SQL security a lot more before putting crap like that live on someone else's server.  I did some research on this, for work...

Hmmm.

Welp, the program thing is the shiniest at the moment.

TAGGED TASKS.
Page generated Jul. 19th, 2025 03:10 pm
Powered by Dreamwidth Studios