2014-02-08から1日間の記事一覧
7shi / ikebin / wiki / pdp11 / write-5 — Bitbucket レジスタを movb 命令のソースに使うと、下位の値だけが使われる。 swab 命令で上位と下位を入れ替えることができる。 アセンブリ / write(1, hello, 6); mov $1, r0 sys write hello 6 / r1 = hello; /…
> printfn "%x" (0x48 <<< 8);; 4800 val it : unit = () > printfn "%x" (0x45 <<< 8);; 4500 val it : unit = () > printfn "%x" (0x45 >>> 8);; 0 val it : unit = () > printfn "%x" (0x4500 >>> 8);; 45 val it : unit = () > printfn "%x" (0x4500 <<<…
流れ カレントはリポジトリ内のとあるディレクトリ git-rebaseでカレントのディレクトリがcommitされる前のcommitを修正しようとする エラー shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or d…
明日行こうと思って昨日予約しようとしたら中止になっていた…… 7shi / ikebin / wiki / pdp11 / write-4 — Bitbucket わりと先週の復習もかねてる。 アセンブリ 数値を直接メモリに書き込むのが前回だったけど、今回は変数に数値を入れてそれからメモリに書…
algorithm コード # -*- coding: utf-8 -*- # 105.rb -- 百五減算 print "1 から100 までの整数をひとつ考えてください\n" print "それを 3 で割った余りは?"; a = gets.to_i print "それを 5 で割った余りは?"; b = gets.to_i print "それを 7 で割った余…
接続しにいくのが面倒になったんです。 $ ssh user@xxx.xxx.xxx.xxx 'mkdir .ssh && chmod 700 .ssh' $ cat ~/.ssh/id_rsa.pub | ssh user@xxx.xxx.xxx.xxx 'cat >> .ssh/authorized_keys && chmod 600 .ssh/authorized_keys' SSH login without password
ssh user@xxx.xxx.xxx.xxx ssh-keygen
うええええあああああ っとなりまして、 公用語が英語の国のデータをとる そのなかでGNPが上位5位以内の国のデータをとる さらにそのなかで人口が上位15位以内の都市のデータをとる mysql> select * from City where City.CountryCode in (select Code from …
サンプルデータ 世界 - by shigemk2 ああ、めんどうなのでクエリしか載せない。 mysql> select * from Country where Code in (select CountryCode from CountryLanguage where Language = 'English' and IsOfficial = 'T') order by GNP desc limit 5; +---…