arbitrary

How do you determine if doing something the right way will handicap you?

I have a horrible habit, actually something I'm wrestling with right this moment, when I think of a better way to do something - either a refactor, or something that would just be SO MUCH COOLER LOOKING, or such a better UX, I just HAVE to do it. Even when it would cost me time and I'm in a time crunch. I never know when to say, "no, the...

Change Node Display Size in Networkx

I am not using GraphViz because I am having problems with making it play nice with Networkx. I know this is weird, but I've tried many suggestions to fix this problem, but I just seem to have some of the worst luck in the world. Therefore the problem that I have must be solved withing Networkx without using GraphViz. My program reads a ...

Arbitrary bit-sized data type in C#

What is the best way of defining in C# a structure with, say, 6 bits of data? I can, of course, define 2 fields of int + short, but I wonder if there's a way of holding all the data in 1 filed. Regards, Yaakov ...

Creating a list similar to .ctors from multiple object files

I'm currently at a point where I need to link in several modules (basically ELF object files) to my main executable due to a limitation of our target (background: kernel, targeting the ARM architecture). On other targets (x86 specifically) these object files would be loaded at runtime and a specific function in them would be called. At s...

Math operations on arbitrary objects in C#

Hi, first question here, apologies in advance for any foul-ups. I'm implementing an interpreter for a toy language in C#, and in order to do math in that language I'd like to implement a function like this: public static object Add( object a, object b ) { // return the sum of a and b // each might be int, double, or one of many oth...

Collection of arbitrary types in VB.NET?

So I'm wondering if there is an answer in pure .NET for representing a collection of arbitrary data types. I know there's the old, late-bound, VB6 Collections, but I was looking for something like Generics, but either without having to specify the type at compile time, OR finding a clever way to allow the code to determine the type on i...