Archive for October, 2004
Searching for a new media manager
My former position of New Media Manager at MikroBitti Magazine is now open, "only" three months after I left. For you Finnish-reading people, you can check out the
October 31, 2004
Posted in: General
No Comments
ASP.NET 2.0 development process
ScottGu of MSDN has resurfaced in the blogging world, giving us two excellent articles on ASP.NET 2.0 development processes. First "Whidbey Update" covering some of the internal metrics and scheduling issues, and then "Testing ASP.NET 2.0 and Visual Web Developer" about the testing procedure and platform in general.
Some of the that stuff is truly well-polished [...]
October 30, 2004
Posted in: Misc. programming
No Comments
Learning how to write
In my world, I cannot avoid writing. Even if I could avoid blogging (hey, I'm becoming pretty good at it at least by view of the entry dates – not that I'd be particularly proud here) I'd still have to write a lot of stuff daily. Email, both in Finnish and in English. Code, of [...]
October 27, 2004
Posted in: General
No Comments
CSV parser for C#
Need to parse CSV (Comma Separated Values) files in C#? There are many solutions starting from the OLE DB adapter, but here's an easy-to-use CSV Parser written in pure C#: CSVReader.cs. Now, here's a quick tutorial.
First, let's recite the rules of CSV: Each line in a text file represents a record. The fields on each [...]
October 23, 2004
Posted in: .NET
38 Comments
HTTP uploading files (C#)
Yet another snippet from my evergrowing code library: How to programmatically upload (possibly multiple) files to an HTML form. I won't post the full code here, but you can download a zip file with a Visual Studio solution including a test app. The upload code is in a separate file (HttpFileUpload.cs), so it's easy to [...]
October 17, 2004
Posted in: .NET
21 Comments
Status report and gauges
Ooph. A rididculously busy two-week period is turning to its end, and not a single day too early. It's been work, studies and lots of pre-scheduled free-time activity in a fairly rough mixture. I really need the weekend this time.
One thing I'd like to pick and show from the spare hours of the last [...]
October 16, 2004
Posted in: .NET
No Comments
Clean up your testing databases
Came across an interesting CodeProject article: a .NET application that takes a database connection string and deletes all information from all tables except those specifically marked with IsStatic attribute. Take a look at
Database Resetter.
The application is not finished yet, and crash on a table's self-reference is pretty serious… but I like the concept. The ability [...]
October 5, 2004
Posted in: Misc. programming
2 Comments
ProperCase for C#
For some perverted reason, I HAD to try to write the best propercasing algorithm on Earth. This one does all of the following (highlights bolded):
jouni heikniemi -> Jouni Heikniemi
jouni von lederhosen -> Jouni von Lederhosen
THE EYE OF THE TIGER -> The Eye of the Tiger
1250 MHZ -> 1250 MHz
RoNaLD MCDoNaLD, USa -> Ronald McDonald, USA
Enough [...]
October 3, 2004
Posted in: .NET
15 Comments
Executing command line statements
Starting new tasks (other programs) in .net is actually very easy. You just have to find the Process class, which somewhat surprisingly resides in the System.Diagnostics namespace. Once you're there, a simple call will go far: Process.Start("notepad.exe") does what you'd expect. And because the Windows shell has some built-in logic for various cases, Process.Start("http://www.google.com/") pops [...]
October 3, 2004
Posted in: .NET
3 Comments
Web Services experiences surprisingly rare
Last week I spent one afternoon listening to Redmondian propaganda at the Microsoft Challenge event (sorry, the site is in Finnish only). The MSDN track was mostly web services – not particularly surprising when considering .NETs fundamentals and the whole Connected Systems hype.
My personal surprise came in when one of the speakers asked the audience [...]
October 2, 2004
Posted in: Misc. programming
No Comments
