iOSシミュレータの言語設定を切り替える方法
確認環境 : Xcode 7.3
Schemeメニューをクリックする。
以下は2017年12月現在の過去の情報です。
2021年1月以降 "certbot-auto" は非推奨(非サポート)となっています。
1 2 3 4 5 6 |
$ sudo /usr/local/bin/certbot-auto --dru-run renew Your system is not supported by certbot-auto anymore. certbot-auto and its Certbot installation will no longer receive updates. You will not receive any bug fixes including those fixing server compatibility or security problems. Please visit https://certbot.eff.org/ to check for other alternatives. |
1 2 3 |
$ cd /usr/local/bin $ sudo wget https://dl.eff.org/certbot-auto $ sudo chmod a+x certbot-auto |
1 2 |
$ cd /usr/local $ sudo git clone https://github.com/certbot/certbot |
1 |
https://github.com/letsencrypt/letsencrypt |
USB接続の外付けHDDがマウントエラーでアクセスできなくなる。
1 |
$ dmesg |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
=== 前略 === [ 152.428588] sd 2:0:0:1: [sdc] Unhandled sense code [ 152.428596] sd 2:0:0:1: [sdc] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE [ 152.428605] sd 2:0:0:1: [sdc] Sense Key : Medium Error [current] [ 152.428615] sd 2:0:0:1: [sdc] Add. Sense: Unrecovered read error [ 152.428627] sd 2:0:0:1: [sdc] CDB: Read(10): 28 20 3a 04 02 50 00 00 f0 00 [ 152.428647] end_request: I/O error, dev sdc, sector 973341264 [ 152.428702] JBD: Failed to read block at offset 66 [ 152.428708] JBD: IO error -5 recovering block 66 in log [ 152.428726] JBD: Failed to read block at offset 67 [ 152.428731] JBD: IO error -5 recovering block 67 in log [ 152.428737] JBD: Failed to read block at offset 68 [ 152.428743] JBD: IO error -5 recovering block 68 in log [ 152.428749] JBD: Failed to read block at offset 69 [ 152.428754] JBD: IO error -5 recovering block 69 in log [ 152.428760] JBD: Failed to read block at offset 70 [ 152.428765] JBD: IO error -5 recovering block 70 in log === 中略 === [ 152.429046] JBD: Failed to read block at offset 95 [ 152.429051] JBD: IO error -5 recovering block 95 in log [ 152.503882] nautilus: sending ioctl 2285 to a partition! [ 152.503962] nautilus: sending ioctl 2285 to a partition! [ 154.735999] JBD: recovery failed [ 154.736036] EXT4-fs (sdc1): error loading journal |
1 |
$ sudo fsck /dev/sdc1 |
1 |
$ sudo umount /dev/sdb1 |
1 |
$ sudo fdisk /dev/sdb |
1 |
$ sudo mkfs.ext4 /dev/sdb1 |
ISO | ヤードポンド |
---|---|
1 mm | 0.0394 inch |
25.4 mm | 1 inch |
ISO | dot |
---|---|
1 mm | 3.94 dot |
0.252 mm | 1 dot |
ISO | dot |
---|---|
1 mm | 11.81 dot |
0.08467 mm | 1 dot |
1 2 3 4 5 6 7 8 9 10 11 |
#!/bin/bash /usr/bin/ftp -n >> ~/upload.log <<EOF verbose open 192.168.0.1 user jane password passive lcd /home/jane put hello.txt bye EOF |
1 2 |
$ sudo crontab -e 58 1 * * * /root/jane.sh |
1 2 3 |
handler.cleanUp = ^(){ [self.logger writeLog]; }; |
1 2 3 4 5 6 7 |
__weak type(self) weakSelf = self; handler.cleanup = ^(){ __strong type(self) strongSelf = weakSelf; // 処理中に解放されないように保持する if (strongSelf) { [strongSelf.logger writeLog]; } }; |
1 |
$ screen |
1 2 3 4 |
$ screen -ls There is a screen on: 2597.pts-0.GLANTANK (Detached) 1 Socket in /var/run/screen/S-admin. |
<PID>.<tty>.<host>
TypeScript 2.0にて、tsdはdeprecated(非推奨)に変更。typingsを代替ツールとして推奨。特別なツールは不要でnpmでも管理可能。
1 |
$ npm install --save @types/electron |
*.tsのソースコードにおいて reference path を記述して型定義ファイルを読み込む必要なし。(tsdを使っていないにもかかわらず読み込もうとするとエラー)
1 |
$ npm install tsd -g |
1 |
$ tsd install github-electron --save |
1 |
$ tsd query github-electron -rosa install |
Canvasに描画するときはonloadハンドラにて実行する
1 2 3 4 5 6 7 |
var ctx = document.getElementById('myCanvas').getContext("2d") var img = new Image() img.src = "myDog.png" ctx.drawImage(img, 0, 0) |
※上手くいくときもある。
1 2 3 4 5 6 7 8 9 |
var ctx = document.getElementById('myCanvas').getContext("2d") var img = new Image() img.src = "myDog.png" img.onload = function() { ctx.drawImage(img, 0, 0) } |
ローカル画像に限らない。
canvas.toDataURL()で画像を生成したときも同様。