Skip to content

Instantly share code, notes, and snippets.

@dtrce
dtrce / gist:1041197
Created June 22, 2011 21:04
rufus jobs
2011-06-22 16:59:02 -0400 Initializing NotificationUtil for schedule 1
2011-06-22 16:59:02 -0400 Initializing NotificationUtil for schedule 2
2011-06-22 16:59:02 -0400 Initializing NotificationUtil for schedule 3
2011-06-22 16:59:02 -0400 Initializing NotificationUtil for schedule 4
2011-06-22 16:59:02 -0400 Initializing NotificationUtil for schedule 5
2011-06-22 16:59:02 -0400 Initializing NotificationUtil for schedule 6
2011-06-22 16:59:02 -0400 Initializing NotificationUtil for schedule 7
2011-06-22 16:59:02 -0400 Initializing NotificationUtil for schedule 8
2011-06-22 16:59:02 -0400 Initializing NotificationUtil for schedule 9
2011-06-22 16:59:02 -0400 Initializing NotificationUtil for schedule 10
@dtrce
dtrce / gist:1043220
Created June 23, 2011 18:36
rufus logs
2011-06-22 23:38:33 -0400 [PID: 9959] [Rufus] Starting...
2011-06-22 23:38:35 -0400 [PID: 9959] [Rufus] Done scheduling 24 medicine schedules.
2011-06-22 23:38:57 -0400 [PID: 9959] [Rufus] Done Scheduling 140 job.
2011-06-23 14:22:51 -0400 [PID: 10653] [Rufus] Starting...
2011-06-23 14:22:53 -0400 [PID: 10653] [Rufus] Done scheduling 24 medicine schedules.
2011-06-23 14:23:14 -0400 [PID: 10653] [Rufus] Done Scheduling 140 job.
2011-06-23 14:23:19 -0400 [PID: 10661] [Rufus] Starting...
2011-06-23 14:23:21 -0400 [PID: 10661] [Rufus] Done scheduling 24 medicine schedules.
2011-06-23 14:23:42 -0400 [PID: 10661] [Rufus] Done Scheduling 140 job.
2011-06-23 14:23:47 -0400 [PID: 10671] [Rufus] Starting...
@dtrce
dtrce / gist:1073545
Created July 9, 2011 11:56
Auth Error
Undefined symbols for architecture x86_64:
"_AuthorizationCreate", referenced from:
-[FTPWindowController startServer:] in FTPWindowController.o
"_AuthorizationExecuteWithPrivileges", referenced from:
-[FTPWindowController startServer:] in FTPWindowController.o
"_AuthorizationFree", referenced from:
-[FTPWindowController startServer:] in FTPWindowController.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Command /Developer/usr/bin/clang failed with exit code 1
// This is a manifest file that'll be compiled into including all the files listed below.
// Add new JavaScript/Coffee code in separate files in this directory and they'll automatically
// be included in the compiled file accessible from http://example.com/assets/application.js
// It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
// the compiled file.
//
//= require jquery
//= require jquery_ujs
//= require_tree .
@dtrce
dtrce / mp3.js
Created September 8, 2011 18:39
streaming mp3 using nodejs
var http = require('http'),
fileSystem = require('fs'),
path = require('path')
util = require('util');
http.createServer(function(request, response) {
var filePath = 'path_to_file.mp3';
var stat = fileSystem.statSync(filePath);
response.writeHead(200, {
@dtrce
dtrce / gist:1206477
Created September 9, 2011 15:11
installing cinderella
Cinderella installed successfully
sh: line 25: /usr/bin/cinderella: No such file or directory
Run started Fri Sep 9 11:04:44 EDT 2011
/usr/local/bin/ruby
/usr/local/bin/gem
ERROR: While executing gem ... (Gem::InstallError)
gem "cinderella" is not installed
Building native extensions. This could take a while...
[Version 0.7.3] AMQP connection URI parser now respects port
Building native extensions. This could take a while...
@dtrce
dtrce / gist:1219415
Created September 15, 2011 14:40
brew install failed
==> Downloading https://github.com/defunkt/hub/tarball/v1.6.1
File already downloaded in /Users/djavia/Library/Caches/Homebrew
/usr/bin/tar xf /Users/djavia/Library/Caches/Homebrew/hub-1.6.1.tgz
==> rake install prefix=/usr/local/Cellar/hub/1.6.1
rake install prefix=/usr/local/Cellar/hub/1.6.1
==> Exit Status:
http://github.com/mxcl/homebrew/blob/master/Library/Formula/hub.rb#L10
==> Environment
HOMEBREW_VERSION: 0.8
HEAD: a0b940acb775b4affebedea800541f343aac79bf
@dtrce
dtrce / app.js
Created September 23, 2011 16:05
nodes with less and mustache
/**
* Module dependencies.
*/
var express = require('express');
var mustache = require("mustache");
var app = module.exports = express.createServer();
@dtrce
dtrce / gist:1279983
Created October 12, 2011 01:38
html div
<div class="clearfix">
<%= label_tag 'customer_email', 'Customer Email' %>
<div class="input">
<%= text_field_tag 'customer_email', nil, :class => 'xlarge' %>
</div>
</div><!-- /customer_email -->
{
"id"=>"1112",
"vin"=>"5LMFU27535LJ02838",
"year"=>{
"name"=>"2005",
"id"=>"2005"
},
"make"=>{
"name"=>"Lincoln",
"id"=>"28"