Entries from September 2009
September 28th, 2009 · No Comments
I was tinkering with a little program in C# this morning that needed to create incremental filenames instead of just overwriting the existing file. As in: myfilename.htm -> myfilename_1.htm etc.
So here is the rough and ready version of what I did.
private string GetOutputFilename(string path,string filename,string extension)
{
string[] files = Directory.GetFiles(path,filename+"*."+extension);
[...]
[Read more →]
Tags: Programs · how to
September 15th, 2009 · No Comments
I don’t know if anyone else has noticed, but the English seem to be losing the capacity to use comparative adjectives (hot, hotter, hottest) and are using “more hot” and “most hot”. I was at a friend’s house last night, and I was chatting to their daughter. She stumbled over a comparative (I can’t remember [...]
[Read more →]
Tags: Bad Grammar · Language
Continuing on from the last post on “What is a…?” here is the rest of the list.
What is a metaphor?
As succinctly as I can put it, a metaphor is a type of comparison that is only true for one key attribute. In a way, they are long winded adjectives (which I’ll be describing later).
Quite often [...]
[Read more →]
Tags: Stuff people ask