These commands are good as of 2011-07-27.
App store http://itunes.apple.com/us/app/xcode/id448457090?mt=12) The download/install takes awhile so start it first. When it finishes downloading you will still need to run it to complete installation.
/* A facade for the Web Worker API that fakes it in case it's missing. | |
Good when web workers aren't supported in the browser, but it's still fast enough, so execution doesn't hang too badly (e.g. Opera 10.5). | |
By Stefan Wehrmeyer, licensed under MIT | |
*/ | |
var WorkerFacade; | |
if(!!window.Worker && !iCanHasFastBrowser()){ | |
WorkerFacade = (function(){ | |
return function(path){ | |
return new window.Worker(path); |
// ZeroMQ PUB/SUB + Multicast (PGM) enabled event emitter for node.js | |
// gleicon - 2011 | |
var util = require("util"); | |
var events = require("events"); | |
var zeromq = require("../node_modules/zeromq"); // check the right path | |
var sys = require("sys"); | |
function DistEventEmitter(name, remote_node) { | |
events.EventEmitter.call(this); |
These commands are good as of 2011-07-27.
App store http://itunes.apple.com/us/app/xcode/id448457090?mt=12) The download/install takes awhile so start it first. When it finishes downloading you will still need to run it to complete installation.
The INSTALL instructions that come with Vowpal Wabbit appear not to work on Mac OS X Lion. Here's what I did to get it to compile. You will need the developer tools that come with the XCode installation.
The only dependency VW has is the boost C++ library. So first, download and install Boost
To install Boost, do the following:
$ cp ~/Downloads/boost_1_48_0.tar.bz2 ./
// $ scalac RBM.scala | |
// $ scala RBM | |
import scala.util.Random | |
import scala.math | |
class RBM(val N: Int, val n_visible: Int, val n_hidden: Int, | |
_W: Array[Array[Double]]=null, _hbias: Array[Double]=null, _vbias: Array[Double]=null, | |
var rng: Random=null) { | |
/** | |
* A test class file. | |
* @class TestClass | |
* @constructor | |
*/ | |
function TestClass () { | |
} | |
/** |
# Utilities for quickly accessing frequently used directories in bash. | |
# Usage: | |
# $ cd /path/to/project/src/ | |
# $ mark code # Will create a new shortcut. | |
# # Becomes interactive if a shortcut already exists | |
# # m is an alias for mark. You can also `m code` | |
# | |
# $ code # From now on, running this anywhere in the shell | |
# # will put you in /path/to/project/src/code |
<!-- a tm / sublime snippet to go with https://github.com/abeisgreat/-_-.js --> | |
<snippet> | |
<content><![CDATA[ಠ_ಠ( ${1} )]]></content> | |
<tabTrigger>oo</tabTrigger> | |
<scope>source.js</scope> | |
</snippet> |
Search engines, spam filtration, and p2p protocols - all need to rate the value of information. Search engines need it to provide good results; spam filtration needs it to exclude noise; and p2p networks need it for security and efficiency.
What is "value?" I'll use two dimensions: