Posts Mentioning RSS Toggle Comment Threads | Keyboard Shortcuts

  • crmacd 11:38 am on November 25, 2007 Permalink  

    Card games in the classroom… 

    So I’ve been criticized before for having my computer science students play poker in class. I usually have some type of card game in my beginning level programming classes I teach. Blackjack, poker, or some other card based problem/simulation/game is usually a semester long project. I think it is and excellent example of using some basic CS related skills regardless of the language it is programmed in. It’s great to see there is actually a group that supports this and more importantly has some very significant people backing it. I personally am not very good at poker however I always enjoy a good game.

     
    • Stephanie S. 9:31 pm on January 28, 2008 Permalink

      You always were a bit of a rebel… Glad to see you’re still teaching! Hope all is well.

  • crmacd 12:26 am on April 20, 2007 Permalink  

    New Year Larger Projects 

    So last time I wrote an entree I was in the middle of a very large project at work. It was pretty big… big enough to end up in Wired magazine. It was weird seeing my work as a published article in a magazine I normally read. The success of this of course led to larger projects which have kept we working 12+ hour days at work. The whole life/work balance has really been off. Thankfully, I have a partner who understands — I love what I do. I’ve also been busy working on a museum exhibit. Hard to believe. I helped design and build a museum exhibit. I’m also exploring some serious media encoding thanks to my new Apple TV. Which spawned me starting up a small on the side software business. We’ll have to see where it goes from here. Lately I’ve been doing some traveling. A definite change of pace.

    All in all life is good. Now if only I could get my ToDo list a little smaller.

     
  • crmacd 8:44 pm on August 4, 2006 Permalink  

    Google Video Redone… 

    Check out the results of a recent project I am working on.

     
  • crmacd 4:32 am on January 13, 2006 Permalink  

    PHP filter XSS 

    Every web programmer has their own way of dealing with XSS but here is an interestingly simple way to deal with XSS attacks.

    function filter_xss($oValue, $sValidCharacters = "1234567890!@%-_=+:,./abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ")
    {
    for($iCounter = strspn($oValue,$sValidCharacters); $iCounter < strlen($oValue); $iCounter = strspn($oValue,$sValidCharacters))
    {
    $oValue[$iCounter] = '_';
    }
    return $oValue;
    }

     
  • crmacd 4:54 pm on December 15, 2005 Permalink  

    An Image is Worth a Thousand Words in PHP… 

    An Image is Worth a Thousand Words and in this case that might be very true. How interesting would it be to see all your photos with a text filter. Now you can. These articles seem well written and appear to decent job of explaining the process. Excellent contribution to the PHP community.

     
c
compose new post
j
next post/next comment
k
previous post/previous comment
r
reply
e
edit
o
show/hide comments
t
go to top
l
go to login
h
show/hide help
esc
cancel