April 2011
1 post
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...
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"'...
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()
...
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)
};
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...
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...
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...
November 2009
3 posts
[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 =...
September 2009
1 post
[Vim] Trials and errors on EscapeXmlSpecialChars()
1. This is not what I want.
function EscapeXmlSpecialChars()
s/&/\&/eg
s/</\</eg
s/>/\>/eg
s/'/\'/eg
s/"/\"/eg
endfunction
2. This does not work properly.
vnoremap <buffer> <LocalLeader>e :call EscapeXmlSpecialChars()<CR>
function EscapeXmlSpecialChars()
s/\%V&/\&/eg
s/\%V</\</eg
...
August 2009
2 posts
[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 >>...
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 など、但し、明示がないので他のに変わる可能性十分あり。 ・液晶の反射、映りこみはどう? → 周りが明るかったり、壁紙が白っぽいと多少映りこむ。気になる人は、ノングレアタイプの液晶保護フィルム貼ったらよいかも。 ...
December 2008
2 posts
[memo] memory to buy
1024MB DDR2 SO-DIMM (PC4200 / 1024MB×1)
November 2008
3 posts
October 2008
2 posts