April 2011
1 post
Apr 27th
1 note
June 2010
2 posts
dgst.exe ('openssl dgst'-like tool for windows)
using System; using System.Collections.Generic; using System.Diagnostics; using System.IO; using System.Security.Cryptography; namespace Dgst { class Program { static int Main(string[] args) { // parse arguments var format = "hex"; var algorithm = "SHA256"; var files = new List<string>(); foreach (var arg in...
Jun 19th
getFQYahooJapan.sh:
#!/bin/sh # install and set up Finance::Quote::YahooJapan in the standard Ubuntu environment sudo aptitude install libssl-dev perl-doc cpan -i Finance::Quote cd $(dirname $(perldoc -l Finance::Quote))/Quote sudo wget 'http://github.com/LiosK/Finance--Quote--YahooJapan/raw/master/lib/Finance/Quote/YahooJapan.pm' sudo vim -c ':/Default modules/|echo "add YahooJapan to the default module list"'...
Jun 13th
May 2010
2 posts
cvp.r
draw.cvp <- function(units, margins, names = NULL, fixed.costs = NULL) { if (length(units) < 1) { return(NULL) } x.lab <- cumsum(c(0, units)) library(grid) grid.newpage() vp <- viewport(width=0.8, height=0.8, xscale=c(0, sum(units)), yscale=c(0, max(margins))) pushViewport(vp) grid.xaxis(x.lab) grid.yaxis() ...
May 18th
get.quotes.R
get.quotes <- function(symbol) { url <- paste("http://k-db.com/site/jikeiretsu.aspx?download=csv&c=", symbol, sep="") read.csv(url, skip=1) };
May 16th
March 2010
1 post
example.qif
!Account N資産:流動資産:現金 ^ !Type:Cash D03/15/2010 Mてんぷらそば L費用:食費 T-800 ^ !Type:Cash D03/15/2010 Mラーメン S費用:食費 Eラーメン $-600 S費用:食費 E餃子 $-300 S費用:食費 E割引 $100 ^ !Account N負債:クレジットカード ^ !Type:Cash D03/15/2010 MAmazon.co.jp L費用:コンピュータ T-7500 ^ !Type:Cash D03/15/2010 MAmazon.co.jp L費用:書籍 T-1500 ^ !Account N収益:給与 ^ !Type:Cash D03/10/2010 M給与振込 L資産:流動資産:普通預金 T-200000 ^ !Account N費用:医療費 ^ !Type:Cash D03/20/2010...
Mar 19th
December 2009
2 posts
vim.vbs, keepass.vbs
root = Left(WScript.ScriptFullName, 3) Set sh = CreateObject("WScript.Shell") sh.Environment("Process")("HOME") = root & "home" cmd = root & "apps\Vim\gvim.exe" For Each arg In WScript.Arguments cmd = cmd & " """ & arg & """" Next sh.Run cmd root = Left(WScript.ScriptFullName, 3) cmd = root & "apps\KeePass\KeePass.exe " & root & "home\KeePass.kdbx" If...
Dec 27th
accounting
Transaction - date - ctime - mtime - history - user (and any instances of Category) - effects (list of Effect) - commodity Effect - account (and any instances of Category) - value (value evaluated in the transaction’s commodity)    stub - quantity (number or amount in the effect’s commodity)     stub - commodity Category - parent Account extends Category User extends...
Dec 23rd
1 note
November 2009
3 posts
Nov 19th
Nov 17th
[Windows] Snapshot tool using hardlinks
using System; using System.IO; using System.Diagnostics; using System.Runtime.InteropServices; namespace Rosids { class Program { static void Main(string[] args) { // @todo argument processer var src = @"C:\Users\LiosK\Documents\Visual Studio 2008"; var lnk = @"C:\Users\LiosK\Desktop\Visual Studio 2008"; var dst =...
Nov 10th
September 2009
1 post
[Vim] Trials and errors on EscapeXmlSpecialChars()
1. This is not what I want. function EscapeXmlSpecialChars() s/&/\&amp;/eg s/</\&lt;/eg s/>/\&gt;/eg s/'/\&apos;/eg s/"/\&quot;/eg endfunction 2. This does not work properly. vnoremap <buffer> <LocalLeader>e :call EscapeXmlSpecialChars()<CR> function EscapeXmlSpecialChars() s/\%V&/\&amp;/eg s/\%V</\&lt;/eg ...
Sep 28th
August 2009
2 posts
Aug 18th
[Windows] Tests if hardlinks are to be cut by...
call :init echo * link > log.txt type _src\file.txt _dest\file.txt >> log.txt call :init echo * redirect >> log.txt echo overwritten by redirect > _src\file.txt type _src\file.txt _dest\file.txt >> log.txt call :init echo * move >> log.txt echo overwritten by move > _tmp\file.txt move /y _tmp\file.txt _src\file.txt type _src\file.txt _dest\file.txt >>...
Aug 15th
Dell Studio XPS 13 FAQ
Source: http://pc11.2ch.net/test/read.cgi/notepc/1238154140/ 7 :[Fn]+[名無しさん]:2009/03/29(日) 00:12:19 ID:v0YeDT/G 【続き】【Dell Studio XPS 13 こと、Dell M1340 の 2009/03/29 時点での 内容無保証 FAQ まとめ】 ・BTO で SSD を選択すると搭載されるのは何? → 確認できた範囲では、Samsung 製 MMDOE28G5MPP (MLCタイプ)の SSD など、但し、明示がないので他のに変わる可能性十分あり。 ・液晶の反射、映りこみはどう? → 周りが明るかったり、壁紙が白っぽいと多少映りこむ。気になる人は、ノングレアタイプの液晶保護フィルム貼ったらよいかも。 ...
Aug 1st
December 2008
2 posts
Dec 3rd
[memo] memory to buy
1024MB DDR2 SO-DIMM (PC4200 / 1024MB×1)
Dec 2nd
November 2008
3 posts
Nov 13th
Nov 7th
Nov 6th
October 2008
2 posts
Oct 20th
Oct 20th