This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22:35 < jnylen> hey eventualbuddha | |
22:38 <@eventualbuddha> hey jnylen | |
22:38 <@eventualbuddha> what's up? | |
22:40 < jnylen> i think i may have tracked down the cause of my duplicate transactions bug | |
22:41 < jnylen> know of a quick way to pretty-print json from a snapshot? | |
22:42 < jnylen> nvm -- python -mjson.tool < accounts/2.json > accounts-2-pretty.json | |
22:43 < jnylen> anyway | |
22:43 < jnylen> I picked a transaction that's getting duplicated | |
22:43 < jnylen> in the snapshot its fi_date_posted and date_posted are 2010/05/27 22:00:00 -0700 | |
22:44 < jnylen> so, the wesabe_txid ends up with 20100527 in it |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <Misc.au3> | |
#include "__config.au3" | |
#NoTrayIcon | |
Const $LOOP_DELAY = 200 ; milliseconds | |
Const $WIN_DELAY = 20 | |
Const $WIN_TITLE_TEXT_DELIM = "*|*" | |
FileChangeDir($AUTOMATION_SYSTEM_PATH) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ -f ~/.bashrc ] && . ~/.bashrc | |
rake run | |
echo ' | |
To run brcm again, type | |
rake run | |
and press Enter. | |
' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
james@debbay:/opt/wesabe/pfc$ bundle install | |
Fetching source index for http://rubygems.org/ | |
Using rake (0.8.7) | |
Using abstract (1.0.0) | |
Using activesupport (3.0.0.rc) | |
Using builder (2.1.2) | |
Using i18n (0.4.1) | |
Using activemodel (3.0.0.rc) | |
Using erubis (2.6.6) | |
Using rack (1.2.1) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# of course, replace $account_id with the account I'D | |
# and $ofx_filename with the ofx filename | |
curl -sS \ | |
-F "account_uri=/accounts/$account_id" \ | |
-F "statement=@$ofx_filename" \ | |
-u [email protected]:password \ | |
http://localhost:3000/uploads \ | |
> results.html |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function do_xmlrpc($request) { | |
global $scgi_host, $scgi_port, $scgi_timeout; | |
if($response = scgi_send($scgi_host, $scgi_port, $request, $scgi_timeout)) { | |
$response = parse_http_response($response); | |
$content = str_replace('i8', 'double', $response[1]); | |
return xmlrpc_decode(utf8_encode($content)); | |
} else { | |
die('<h1>ERROR: Cannot connect to rtorrent</h1>'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# basic options | |
directory = /media/rtorrent/_done | |
session = /media/rtorrent/_session | |
port_range = 20000-20020 | |
# speed limits | |
download_rate = 800 | |
upload_rate = 200 | |
# log execute commands |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Set list of models for next steps | |
switch (Wizard.TestingMode) { | |
case TestingMode.Run: | |
Wizard.Models = newModels.Keys.ToDictionary( | |
m => m, | |
x => dummyArray); | |
break; | |
case TestingMode.RunAndCompare: | |
Wizard.Models = newModels.Keys.ToDictionary( |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
> model = lm(time ~ count_no_fp, data=d) | |
> model | |
Call: | |
lm(formula = time ~ count_no_fp, data = d) | |
Coefficients: | |
(Intercept) count_no_fp | |
1.287e+09 -3.701e+00 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |
<html xmlns="http://www.w3.org/1999/xhtml"> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> | |
<title>Untitled Document</title> | |
<link href="script/style.css" rel="stylesheet" type="text/css"/> | |
</head> | |
<body> | |
<?php |
OlderNewer