github.com
GitHub - phillc/agentvsagent: A collection of simple games that can be played by computer programs developed by people of various levels of experience
https://github.com/phillc/agentvsagent
A collection of simple games that can be played by computer programs developed by people of various levels of experience. Use Git or checkout with SVN using the web URL. Cannot retrieve the latest commit at this time. Failed to load latest commit information. Agent vs. Agent. This is an alpha release. The transport layer may change. The API might change. I want to make the barrier to entry much lower, but I haven't tackled it yet. See the milestones for more information. Install node: via package manager.
phillc.com
Category: tech - phillc - Phillip Campbell
http://phillc.com/blog/categories/tech
Page Specific JavaScript with the Rails Asset Pipeline. Presentation on continuous delivery. Ruby multi-dimensional array helper. Cucumber with Selenium and Authlogic. XServer xorg.conf for 4850 X2 dual monitor - Ubuntu 9.04. Automatic static media folder. Structure inside a project. Making Django Projects Version Control Friendly. Design credit: Shashank Mehta.
phillc.com
v8 scons error - phillc - Phillip Campbell
http://phillc.com/blog/2010/06/06/v8-js-ubuntu-scons-error
While trying to install Google v8, I had an error:. Solved by using export GCC VERSION=44, before running scons. Design credit: Shashank Mehta.
phillc.com
Javascript Frameworks - phillc - Phillip Campbell
http://phillc.com/blog/2013/08/15/javascript-frameworks
Back in March, the company I work for was creating a small app and were trying to decide which javascript frame work to use. There was an email chain debating which framework to use. I finally responded, and today a coworker convinced me to post that email:. Was debating if I wanted to take the bait, but I love to argue, so I couldn’t resist. My opinions on the big 4 frameworks:. Angular is painfully verbose. They provide a dependency injection framework that has you declaring random variables everyw...
phillc.com
Cucumber with Selenium and Authlogic - phillc - Phillip Campbell
http://phillc.com/blog/2009/08/19/cucumber-selenium-and-authlogic
Cucumber With Selenium and Authlogic. I had some Issues with cucumber/selenium working properly with authlogic. After much searching, I’ve figured out how to get it all to work properly. I would get an error like:. When I follow Manage pages. Features/step definitions/webrat steps.rb:19. Ed out after 5000ms (. Opt/local/lib/ruby/1.8/timeout.rb:62:in `. Opt/local/lib/ruby/1.8/timeout.rb:93:in `timeout. I follow ( *). Features/plain/admin page.feature:8:in `When I follow Manage pages. Finally, my problem w...
phillc.com
Decided to move my blog to posterous. - phillc - Phillip Campbell
http://phillc.com/blog/2012/01/20/decided-to-move-my-blog-to-posterous
Decided to Move My Blog to Posterous. Design credit: Shashank Mehta.
phillc.com
Ruby multi-dimensional array helper - phillc - Phillip Campbell
http://phillc.com/blog/2009/08/28/ruby-multi-dimensional-array-helper
Ruby Multi-dimensional Array Helper. I needed something to help me get through a multi-dimensional array. So I extended the Array class. Grab expects an array of coordinates. Multi Dimensional Array not deep enough. Then I can do this:. 1,2,3],asdf,[ 11,22,33],5,6,7] .grab([1]). Design credit: Shashank Mehta.
phillc.com
Page Specific JavaScript with the Rails Asset Pipeline - phillc - Phillip Campbell
http://phillc.com/blog/2015/07/21/page-specific-javascript-with-the-rails-asset-pipeline
Page Specific JavaScript With the Rails Asset Pipeline. I’ve been using a pattern for loading javascript for specific pages that I would like to share. I have been using it for the past three years across many projects, and has proven to be durable. It was created in response to three patterns that I saw and disliked. To bring in page specific javascript. Keying javascript off of a html element id. If ($("#some div") { . }. A Page Object looks like this:. We bring this into our asset pipeline like so:.
phillc.com
Javascript State Machine - phillc - Phillip Campbell
http://phillc.com/blog/2009/10/14/javascript-state-machine
I wrote a simple Javascript State Machine. It is intended for keeping track of what the current state is for my heavy AJAX app at work. I also learned a lot about OO in javascript without using jQuery or the prototype framework, by using prototypes. I wanted to do that so that it would be framework independent. Below is a simple example of how I use the state machine, and shows a bit of how I connected it with Really Simple History. Example of some event. Events can call events. That events were firing.
phillc.com
e-Text Editor - phillc - Phillip Campbell
http://phillc.com/blog/2009/08/18/e-text-editor
Was attempting to compile e-text editor on ubuntu 9.10 (yea yea, I know… my right to complain about broken packages disappears since its alpha) just to try it out, but had a sick number of errors ranging from “Cannot compile wxWidgets” to “Cannot compile WebKit”. Finally, after trying multiple ways of compiling wxWidgets, I figured out the real error was. Include/wx/gsocket.h:40: error: using typedef-name ‘GSocket’ after ‘class’. To the wxwidgets folder. and it suddenly worked.