Install MySQL
sudo apt-get install mysql-server
It should ask you for a password - put in whatever (make sure that this goes in to your config/environment.rb file) Start MySQL
sudo service mysql restart
Login to MySQL
<script src="http://d3js.org/d3.v3.js"></script> | |
<div class="well" id="graphzor"> | |
<form> | |
<div class="btn-group" data-toggle="buttons-checkbox" style="margin-left: 50px;"> | |
<button type="button" id="auton" class="btn btn-primary active">Autonomous</button> | |
<button type="button" id="teleop" class="btn btn-danger active">Teleoperated</button> | |
<button type="button" id="climb" class="btn btn-warning active">Climb (End Game)</button> | |
</div> | |
</form> | |
<script> |
/** | |
* From a file that contains | |
* doc_id w1 w2 w3 ... lines, separated by tabs | |
* return an inverted index Map of w -> Set(doc_id) | |
* | |
* @param filename well isn't it obvious | |
* @return Map[String,Set[String]] | |
*/ | |
import scala.collection.immutable.Map |
server { | |
# listen for ipv4; this line is default and implied | |
listen 80; | |
# set your server name here | |
server_name zachorr.com www.zachorr.com; | |
# Set our root directory for our static website | |
root /home/zach/www; |
user www-data; | |
# number of single-threaded process Nginx will spawn | |
# Set to # of CPU cores - Nginx won't benefit from anything more than that | |
worker_processes 4; | |
pid /var/run/nginx.pid; | |
# Number of file descriptors used for Nginx. This is set in the OS with 'ulimit -n 200000' | |
# or using /etc/security/limits.conf |
Process: Hacky [30778] | |
Path: /Applications/Hacky.app/Contents/MacOS/Hacky | |
Identifier: com.eliasklughammer.hackernews | |
Version: 2.0.4 (2.0.4) | |
App Item ID: 584949645 | |
App External ID: 16791934 | |
Code Type: X86-64 (Native) | |
Parent Process: launchd [238] | |
User ID: 501 |
package main | |
import ( | |
"fmt" | |
"net/http" | |
"regexp" | |
"io/ioutil" | |
"time" | |
) |
package main | |
import "fmt" | |
type Rectangle struct { | |
length, width int | |
} | |
func (r Rectangle) Area_by_value() int { | |
return r.length * r.width |
Install MySQL
sudo apt-get install mysql-server
It should ask you for a password - put in whatever (make sure that this goes in to your config/environment.rb file) Start MySQL
sudo service mysql restart
Login to MySQL
/usr/local/rvm/rubies/ruby-1.9.3-p286/lib/ruby/site_ruby/1.9.1/rubygems/core_ext/kernel_require.rb:51:in `require': cannot load such file -- daemons (LoadError) | |
from /usr/local/rvm/rubies/ruby-1.9.3-p286/lib/ruby/site_ruby/1.9.1/rubygems/core_ext/kernel_require.rb:51:in `require' | |
from parts_server_control.rb:6:in `<main>' |
#!/bin/sh | |
SIZE_MB=${1:-1024} | |
SECTORS=$((${SIZE_MB}*1024*1024/512)) | |
diskutil erasevolume HFS+ "RamDisk" `hdiutil attach -nomount ram://${SECTORS}` |