I've always been a "lone wolf" programmer. Now I'm coding class libraries for a large company. These libraries will be used in lots of other applications (goes without saying, doesn' it)?
My question is, if a particular class library ends up being used in 16 different applications, and I update...
I'm starting a new project, and trying to come up with the best way to store some data.
I'm processing large binary files. These are print-streams. Each file will contain many documents, and each document will contain a differing number of pages. At some point I'll need to re-sequence documents...
What is meant by the "!" in that error? I've never seen that syntax. Also, the "ConfigurationManager" class/object doesn't appear with Intellisense.
What is the Framework 2.0 method to retrieve an AppSetting from the config file?
Thomas D. Greer
www.tgreer.com
I thought I could use Reflection to dynamically set properties within a class library. I know this is a bit strange, you'll have to trust I have a reason for this :)
Say I have two strings:
private string _field1;
private string _field2;
Within that same class, I want a method that would...
Doesn't C# support EBCDIC encoding?
I'm working on a project that involves parsing Xerox Metacode print streams, encoded as variable-byte EBCDIC records. The print stream data itself is in ASCII, but the record headers and control records are in EBCDIC.
I read the records in as byte arrays. I...
I know this is off-topic, but I thought this group offered the best chance. I'm looking for any documentation on the Xerox Metacode format. I've got my hands on some samples and need to figure out basic commands, such as what constitutes a "page feed" command.
I see lots of references to...
I know there's another thread on "Daffinitions". But, what about non-official definitions that, to you, convey more meaning than the dictionary definition?
I'll start with two examples, one "serious" and one humorous:
empathy: feeling your pain in my heart
tact: telling someone to go to hell...
The thread on workplace impressions inspired this. I have a trait in regard to work. I used to think this was simply a bad habit of my own, but over the years I've found that my best programmers shared the trait. Namely: I procrastinate. I will find any excuse to put off starting a project. But...
This comes up from time to time. I'd like to ask the group to help me explore an elegant solution to "the problem".
In my line of work, I have to process large text files. The "StreamReader" object does very well, except in one respect: you really can't tell where you're "at" in the file.
This...
I'm writing an application that must get certain values passed in via environment variables. (Yeah, I know about app.config, but the customer requires I integrate the app into a workflow where they use batch files to set environment variables.)
When debugging, these variables of course are not...
I personally have been developing C# apps (GUI, Console, and ASP.NET) for a few years now.
I'm tasked with suggesting the proper development tools for a corporate application development group. We've settled on C#.
However, a glance at Microsoft's site for Visual Studio is a bit daunting. It...
I'm working with C#, and Adobe Acrobat 6.0 Professional. Acrobat exposes a COM Automation server with a few top-level objects. It's easy enough to create instances of those objects, by getting their Type via the .GetTypeFromProgID() method, and then using Activator.CreateInstance().
// Create...
I'm trying to automate Acrobat using C#. I'm using in particular Acrobat 6.0 Professional.
I add the Acrobat object via .NET COM Interop. I can create the App, AVDoc, and PDDoc objects:
// Create an Acrobat Application object
Type AcrobatAppType;
AcrobatAppType =...
This is a re-hash of a previous posting, with greater specificity.
I get the following error:
The code that causes the error:
if (!Directory.Exists(sack_destination + tape_name))
{
Directory.CreateDirectory(sack_destination + tape_name);
}
"sack_destination" is a string that equates to...
I'm using File.Copy() to copy a file from the local filesystem to a mapped network drive. (I'd like to use UNC, but couldn't get it to work. I suspect that both problems are the same.)
This works when I step through the code. When I simply run, I get an exception, "could not find a part of the...
Let's keep the ball rolling, by asking for words without antonyms.
For example, what is the opposite of "exceed"?
Let's stick with verbs, because most nouns will have no antonyms.
Thomas D. Greer
Providing PostScript & PDF
Training, Development & Consulting
How about two words that sound the same, but mean the opposite? Or if not exactly opposite, at least moving in opposing directions.
I give you:
oral: heard
aural: spoken
raze: torn down
raise: erected
Any others?
Thomas D. Greer
Providing PostScript & PDF
Training, Development & Consulting
The "Levenshtein Difference" measures the difference in two strings, that is to say, how many characters must be changed to make two strings equal. I'm using "strings" in the technical sense.
I thought it an appropriate name of a game wherein you change one letter of a word at a time to...
Every so often I stumble across a word that has definitions that are close to being opposites. Here are two examples. Can you find others?
cleave: to stick together; to cut apart
sanction: to allow/endorse/permit; to discipline/penalize
Thomas D. Greer
http://www.tgreer.com...
I've written a program that runs fine on my local system. It opens several files for input and output. Nothing special.
On another system, it generates an error when attempting to open a file for output. The File Status is "93", which from what I can find is an error trying to open a file which...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.