Browse by Tags

All Tags » Algorithms » Quick Tips (RSS)

Math Quickie: Centering

Someone was reading the circular text layout math installment and asked if I had "... any thoughts on how to draw the text so that it is centered?" . I'm going to be blatantly honest. The math installments are mainly to bring math to professionals and...
Posted by Justin Rogers | 1 comment(s)
Filed under: ,

Math Installment #4: Bounding Regions

There may already be a few entries on bounding regions that I posted many months ago. At one point I think I described some different types of bounding region scenarios including strict and relaxed fit scenarios. To add some math to this a strict region...
Posted by Justin Rogers | with no comments

My supposed math explanations turn out to be a travesty!

Well, looking over my past couple of postings it is apparent to me that the seemingly transparent merge between theory and implementation in my mind is causing some headaches for people not familiar with math. I'm guilty of basic transposition of terms...
Posted by Justin Rogers | with no comments
Filed under: ,

Math Installment #3: A quick look at wavy text

[ Sample Download on Project Distributor ] I previously covered laying out text along a linear path and a circular path. You can view that code here Math Installment #2: I needed some circular oriented text . I'll be referencing the code so you really...
Posted by Justin Rogers | 3 comment(s)
Filed under: , ,

Math Installment #2: I needed some circular oriented text

[ Sample Download on Project Distributor ] Okay, back with math installment #2... This time I needed some circular oriented text, or rather I needed some path oriented text, but that code is much harder so I'm starting with something a bit easier. There...
Posted by Justin Rogers | 7 comment(s)
Filed under: , ,

Math Installment #1: Image layout logic

Turns out most of the code I write that does deal with math is layout code in order to manage how a number of assets, whether it be controls or graphics, is rendered to the screen. Over the past couple of days the kind of code I have been writing is in...
Posted by Justin Rogers | 5 comment(s)
Filed under: , ,

Article on file line counting algorithms. Covering fast exact counting and statistical counting.

Someone asked a question on the C# newsgroup yesterday and a large number of answers have been flying around. Some people actually tend to recommend using a StreamReader to count lines (ouch) since they generally work with small files. The FileStream...

Lightweight Code Gen and mathematical equations.

Using lightweight code gen for dynamic scripting languages is cool and all, but imagine the possibilities for the language of mathematics. Sure you can try to write some generics that handle common tasks, perhaps a generic method or two, but lightweight...

DWC.Algorithms.NumberUtilities with the latest hopefuls, a test case runner, and some comments...

So the latest code prop does SByte, Byte, Int16, UInt16, and Int32 parsing. All deprecated methods have been moved to a secondary class to reduce the size of the primary class (statics and whatnot). I've added a licensing agreement, since I want to protect...

XSLT used to get all the girls, now it is just a washed up junkie ;-)

Don't flame me yet. I don't think XSLT is really a washed up junkie, but I do have to say that people have really chosen to make extended use almost any other XML technology just to avoid using XSLT. Or do they just not realize how powerful XSLT really...
More Posts Next page »