Category Archives: Programming

jQuery, The Write Less, Do More, JavaScript Library

jQuery is a fast and concise JavaScript Library that simplifies HTML document traversing, event handling, animating, and Ajax interactions for rapid web development. jQuery is designed to change the way that you write JavaScript.


Source: http://jquery.com/

Adding an Element to a Document’s Array Field in MongoDB using Lithium PHP

I’ve been using the Lithium PHP MVC framework because it has native drivers for MongoDB.  I’m writing a multiplayer Virtual World using MongoDB as it’s only backend DB, so I searched far and wide for a framework with  the type of Mongo dedication I found in Lithium.

The one thing Lithium is lacking at the moment is easy to follow documentation and tutorials, especially for the more advanced and foreign MongoDB operators.

In this case, I needed to add an item array to the User document’s “Item” array.  For this I need to use MongoDB’s $push operator.  After a ton of trial and error and googling, I finally got it working.  Here’s the syntax:

$user_id = '4b6eeb7df964a5200cd12ce3';
$item = array('_id'=>'4efeb26a33f5681d7a000000', 'name'=>'Item Name');
$conditions = array('_id' => $user_id);
$query = array('$push'=> array('Items'=>$item));
Users::update($query, $conditions);

That’s it.  Thank you drive though.

AI Challenge

http://aichallenge.org/

Fall 2011

"""Introducing Ants

The Google AI Challenge is all about creating artificial intelligence, whether you are a beginning programmer or an expert. Using one of the easy-to-use starter kits, you will create a computer program (in any language) that controls a colony of ants which fight against other colonies for domination.

It only takes 5 minutes to submit one of the starter kits to the website and watch your ant colony fight for domination against colonies created by other people from around the world. From there check out the tutorials on how to locally run your bot and begin programming!"""AI Challenge
The AI Challenge (sponsored by Google) is an international programming contest started by the University of Waterloo Computer Science Club.

Coding Horror: The Gamification

Interesting read about why turning learning into a game works so well.Coding Horror: The Gamification
The Gamification. When Joel Spolsky and I set out to design the Stack Exchange Q&A engine in 2008 — then known as Stack Overflow — we borrowed liberally and unapologetically from any online syst…

Amazon.com: Test Driven Development: By Example

I& been looking for ways to improve my code testing and peer code reviews, and here are the top two books on Test Driven Development I found:
* Test Driven Development: By Example — http://goo.gl/aPAXv
* Test-Driven Development: A Practical Guide — http://goo.gl/DPfIf

What are your experiences in TDD?

I've been looking for ways to improve my code testing and peer code reviews, and here are the top two books on Test Driven Development I found:
* Test Driven Development: By Example — http://goo.gl/aPAXv
* Test-Driven Development: A Practical Guide — http://goo.gl/DPfIf

What are your experiences in TDD?
#dev #programmingAmazon.com: Test Driven Development: By Example (0785342146530): Kent Beck: Books
Amazon.com: Test Driven Development: By Example (0785342146530): Kent Beck: Books

Google just unveiled the new Dart web programming language that is meant to replace javascript. h…

Google just unveiled the new Dart web programming language that is meant to replace javascript.

http://www.dartlang.org/

#programming

AI Machine Learning Online Class, Unit 1 is up

AI Machine Learning Online Class, Unit 1 is up

SFAI: Unit 1
â™»: https://plus.google.com/109667384864782087641/posts/9qtvunT9J4P

Looks like unit 1 is up. I will probably start going through this tonight and tomorrow.
.

Google debuts Dart, a JavaScript alternative

Google debuts Dart, a JavaScript alternative
The Net giant details a new programming language for Web apps big and small–but stops well short of a 2010 internal memo saying it's designed to 'replace JavaScript.' Read this blog post by Stephen S…