Personal computing discussed

Search found 130 matches

by Chaospandion
Sun Aug 29, 2010 7:18 pm
Forum: Developer's Den
Topic: Regular Expression Builder
Replies: 5
Views: 2703

Re: Regular Expression Builder

I have to ask, though: did you have a very good reason for writing your own regexp parser, or you did it as an exercise? Well to be a bit pedantic my code does not do any parsing. It fluently produces a series of continuations (functions) that test portions of an string. As to your question, I am t...
by Chaospandion
Sun Aug 29, 2010 4:41 pm
Forum: Developer's Den
Topic: Regular Expression Builder
Replies: 5
Views: 2703

Re: Regular Expression Builder

You may want to consider setting the default values for max and min in the Term function to -1 and 0 respectively by default. Do you really think it should be greedy like that? There also seems to be no support for "." and other such meta-characters. Yep, I'll be adding those eventually. ...
by Chaospandion
Fri Aug 27, 2010 1:57 pm
Forum: Developer's Den
Topic: Regular Expression Builder
Replies: 5
Views: 2703

Regular Expression Builder

After reading the spec for ECMAScript regular expressions I put together some code in C#4 that produces immutable, functionally pure character matcher sequences. Here is a simple example that will match a social security number. public static class Example { public static readonly Matcher SsnMatcher...
by Chaospandion
Thu Mar 19, 2009 12:25 am
Forum: Developer's Den
Topic: GetSizeWithinBounds
Replies: 5
Views: 3426

Re: GetSizeWithinBounds

Wisdom is much easier to digest with a concise and easier to understand example.

Thank you.
by Chaospandion
Thu Mar 19, 2009 12:20 am
Forum: Developer's Den
Topic: Please Help!
Replies: 12
Views: 5643

Re: Please Help!

It actually crossed my mind that you might've been joking (or trolling). But I figured it was better to take a joke post seriously than to take a serious post as a joke. I have seen code that was this bad out in the real world. And I'm not joking when I say this! Let this post be a reminder to you ...
by Chaospandion
Wed Mar 18, 2009 9:20 am
Forum: Developer's Den
Topic: Please Help!
Replies: 12
Views: 5643

Re: Please Help!

Is it just me or is everyone very serious on this board?
When I saw this code the second time I had to laugh at how retarded it was.
by Chaospandion
Wed Mar 18, 2009 9:10 am
Forum: Developer's Den
Topic: GetSizeWithinBounds
Replies: 5
Views: 3426

Re: GetSizeWithinBounds

I actually should have given a little background on this method. It will be used to scale the size of an image to fit into a constant sized field. This is not a homework problem unless you consider efforts to optimize multimillion dollar piece of crap homework. The reason I used Math.Round is becaus...
by Chaospandion
Wed Mar 18, 2009 1:49 am
Forum: Developer's Den
Topic: GetSizeWithinBounds
Replies: 5
Views: 3426

GetSizeWithinBounds

I just finished writing this algorithm. It clocks in at about 8us, which is pretty good. Can you think of any way to improve the performance? One thing I don't like about it is the rather large if statements. Do you think the sacrifice in clarity is worth the slimming of the code? It makes sense for...
by Chaospandion
Tue Mar 17, 2009 11:56 pm
Forum: Developer's Den
Topic: Please Help!
Replies: 12
Views: 5643

Re: Please Help!

:D

I hope I didn't scare anyone with this.
I was just trying to show the power that C holds in the hand of the dim witted.
by Chaospandion
Sat Mar 07, 2009 6:02 pm
Forum: Developer's Den
Topic: Please Help!
Replies: 12
Views: 5643

Please Help!

I can't figure out whats wrong with my code!
It keeps crashing our production servers every few minutes.

//Clear the string from memory
int i;
int* p = &i;

while (i < 1000000000)
{
    p++;
    (*p) = 0;
    i++;
}
by Chaospandion
Fri Oct 24, 2008 6:50 pm
Forum: The Back Porch
Topic: How Can This Be Happening?
Replies: 10
Views: 973

Re: How Can This Be Happening?

I feel like I have a Lamborghini engine sitting in my garage.
by Chaospandion
Fri Oct 24, 2008 6:45 pm
Forum: The Back Porch
Topic: How Can This Be Happening?
Replies: 10
Views: 973

How Can This Be Happening?

I just ordered a new computer from Newegg yesterday.
I received everything today except the case!!!
by Chaospandion
Sat Sep 20, 2008 4:04 am
Forum: Developer's Den
Topic: Lean And Mean.
Replies: 0
Views: 1209

Lean And Mean.

Hello eveyone, I've just finished optimizing a function I wrote a while back. I'd like to get opinions/criticism from anyone who is interested. Language: C# Approximate Runtime: 9-14 ms public static Byte[] ToTrueSyncSignalBytes(this Int32 value) { ByteAssembler assembler = new ByteAssembler(4); Bit...
by Chaospandion
Fri Feb 01, 2008 9:54 pm
Forum: Announcements
Topic: Joining the Religion & Politics Forum
Replies: 421
Views: 424628

Re: Joining the Religion & Politics Forum

I would like to join.
by Chaospandion
Sun Jan 20, 2008 2:06 pm
Forum: The Back Porch
Topic: Filling the void
Replies: 58
Views: 3384

Segmentation fault. Pete - play a faster paced sport that doesn't have pricey equipment. Preferably on a more obscure side so you aren't up against people who've done the sport since they were wearing diapers. Nice catch I didn't really think anyone would scrutinize my half-hearted attempt at being...
by Chaospandion
Sun Jan 20, 2008 12:32 pm
Forum: The Back Porch
Topic: Filling the void
Replies: 58
Views: 3384

I just thought up a great starter project for learning C#. Why don't you create a personal database of ninjutsu techniques with a nice interface to view step by step photos etc. This will develop your layout techniques and reinforce the knowledge you might have already about managing a database. (an...
by Chaospandion
Sun Jan 20, 2008 12:20 pm
Forum: The Back Porch
Topic: Filling the void
Replies: 58
Views: 3384

Most of it is pretty easy to handle. The toughest I think is handling events and making sure everything that needs to talk to each other can.
by Chaospandion
Sun Jan 20, 2008 11:45 am
Forum: The Back Porch
Topic: Filling the void
Replies: 58
Views: 3384

Take a night course to challenge your mind and to meet new people. Make sure it is something your interested in. (I am not exactly the pinnacle of wisdom (20 years old) but I can say that taking a class would add a breath of fresh air to your life) or program in C# (love that language) public class ...
by Chaospandion
Sun Sep 30, 2007 8:35 am
Forum: The Back Porch
Topic: What is Life?
Replies: 19
Views: 3237

Interesting responses

I defiantly made a chuckle against all odds.
by Chaospandion
Sat Sep 29, 2007 1:42 pm
Forum: The Back Porch
Topic: What is Life?
Replies: 19
Views: 3237

What is Life?

Life(t)=?
According to “The Big Bang Theory”:
Life(0)=1
And
Life(t)=dLife/Dt
therefore
Life(t)=e^t
by Chaospandion
Sun May 13, 2007 1:39 pm
Forum: The Back Porch
Topic: Camping/Hiking
Replies: 35
Views: 8964

Oh wow! Those pictures are amazing. That is defiantly on my list now.
by Chaospandion
Mon Apr 23, 2007 1:26 pm
Forum: The Back Porch
Topic: Oh I am so angry right now.
Replies: 17
Views: 4365

Even though it might be a false story part of me still doesn't see it as far fetched.
by Chaospandion
Mon Apr 23, 2007 11:33 am
Forum: The Back Porch
Topic: Oh I am so angry right now.
Replies: 17
Views: 4365

Oh I am so angry right now.

http://www.stuffed.co.nz/index.php?opti ... &Itemid=29

If this guy gets 4 years in jail for this.....

Well i couldn't really do anything but I will be seething with rage!
Everyone seethe with me...unless you support such foolishness.
by Chaospandion
Sat Feb 03, 2007 7:13 pm
Forum: The Back Porch
Topic: The Trey Gunn Band
Replies: 1
Views: 906

The Trey Gunn Band

http://www.youtube.com/watch?v=_IwjnT70Oi8

I highly recommend this band.
by Chaospandion
Thu Nov 16, 2006 4:08 pm
Forum: The Back Porch
Topic: Albums you disliked the first time around but grew on you...
Replies: 46
Views: 12263

Hello again.


Another album that just recently grew on me was Platinum by Mike Oldfield.
by Chaospandion
Sun Jul 30, 2006 5:53 pm
Forum: The Back Porch
Topic: Albums you disliked the first time around but grew on you...
Replies: 46
Views: 12263

Atom Heart Mother is on my must buy list. Thank you for the link.


No problem. I am always interested in turning people on to great music.
Keep those albums coming I plan on checking out most of them.
by Chaospandion
Fri Jul 28, 2006 4:59 pm
Forum: The Back Porch
Topic: Albums you disliked the first time around but grew on you...
Replies: 46
Views: 12263

Albums you disliked the first time around but grew on you...

The first time I heard Pink Floyd's Atom Heart Mother I asked myself what is this..... then I realized that the album is quite good if a bit weird.
http://www.buy.com/prod/Atom_Heart_Mother/q/loc/109/60135678.html

Edit: By weird I mean freakin awesome!
by Chaospandion
Sun Jul 16, 2006 1:25 pm
Forum: The Back Porch
Topic: Guess what I found?
Replies: 53
Views: 12180

In fact.....
Grizzly Industrial uses these keyboards for all their terminals...
by Chaospandion
Sun Jul 16, 2006 1:18 pm
Forum: The Back Porch
Topic: Guess what I found?
Replies: 53
Views: 12180

viewtopic.php?t=17756&highlight=

Gotta love these keyboards.
GZIP: On