hug

Retrieve a list of the most popular GET param variations for a given URL?

I'm working on building intelligence around link propagation, and because I need to deal with many short URL services where a reverse-lookup from an exact URL address is required, I need to be able to resolve multiple approximate versions of the same URL. An example would be a URL like http://www.example.com?ref=affil&hl=en&ct=0...

How do I override ToString in C# enums?

In the post Enum ToString, a method is described to use the custom attribute DescriptionAttribute like this: Enum HowNice { [Description("Really Nice")] ReallyNice, [Description("Kinda Nice")] SortOfNice, [Description("Not Nice At All")] NotNice } And then, you call a function GetDescription, using syntax like: GetDescrip...

Simple random string generation function in C, please. Show me your art!

Hi folks, I'm working on a little (not so little actually) project in C (ref. this question) , and I need a little function in C that'd generate a unique and random string. I need a small one that I can include as a utility function in a .c file. Please help me with your brains, and show me how smart this could be done! Thanks and a v...