[MacOSX] NASへの速度を向上させるためにNetworkの設定を変更

Read More

最近、NAS(Qnap)の共有フォルダがよく真白アイコンになって困っていた @tokida です。

Qnapとの接続が少し遅いなと思っていたらよく考えたら TCPの設定を消していました。

以下の設定を行います

$ sudo vi /etc/sysctl.conf

内容は以下のとおり

net.inet.tcp.delayed_ack=1
net.inet.tcp.sendspace=520352
net.inet.tcp.recvspace=520352

よくdelayed_ack=0にする記載が見れるのですが念の為に1にしています。よく分かっていないのですが全てに対して有効になっていまうと思うので逆に遅くなることもありそうですし。外でも使いますのでこうしておきましょう。

かわりにRWIN(send/recv space)を上げておきます。
この辺りでサクッと調べてくれます。

あんまり関係ないけどスピードテスト。

BNR スピードテスト 回線速度 通信速度 測定

それよりもローカルLAN内の iPhoto 等の表示が早くなると嬉しいです。

追記

確認方法は、同様に sysctl で確認出来る。

$ sudo sysctl net.inet.tcp
net.inet.tcp.rfc1323: 1
net.inet.tcp.rfc1644: 0
net.inet.tcp.mssdflt: 512
net.inet.tcp.keepidle: 7200000
net.inet.tcp.keepintvl: 75000
net.inet.tcp.sendspace: 520352

Nethackサーバで遊ぶ

さっぱり記号はおぼえていない @tokida です。

なんか懐かしいオンライン(telnet)で利用できるNethackサーバがあったのでご紹介したいと思う。その昔はこうやってtelnetして遊んだものだ。
そうやって同じサーバで動かすとランキング同じものを使うので結構面白い。昔はオンラインゲームって言うんじゃなかったけどランキングなんかはそういう意味ではオンラインだったな。それにプログラム自体がサーバ側にあったというのもね。

用意するものは特に無い。Windowsだったらコマンドプロンプトで、UN*XならTerminalでTelnetさえ使えれば動く。

$ telnet nethack.alt.org

日本語は対応していないので英語のみ。ドキュメントは色々あるので初心者は(初めての人はだれもしないか)それを見ながら進めると良いかと思う。日本語のリンクは最後につけておいた。

昔ながらのBBSのようにメニューが待っていた。

 ## nethack.alt.org - http://nethack.alt.org/
 ##
 ## Games on this server are recorded for in-progress viewing and playback!

  Not logged in.

  l) Login
  r) Register new user
  w) Watch games in progress

  s) server info
  m) MOTD/news (updated: 2014.03.23)

  q) Quit



  =>

Register new user

 ## nethack.alt.org - http://nethack.alt.org/



 Welcome new user. Please enter a username.
 Only characters and numbers are allowed, with no spaces.
 15 character max.

 =>
 ## nethack.alt.org - http://nethack.alt.org/



 Please enter a password. Remember that this is sent over the net
 in plaintext, so make it something new and expect it to be relatively
 insecure.
 20 character max. No ':' characters. Blank line to abort.

 =>
 ## nethack.alt.org - http://nethack.alt.org/



 Please enter your email address.
 This is sent _nowhere_ but will be used if you ask the sysadmin for lost
 password help. Please use a correct one. It only benefits you.
 80 character max. No ':' characters. Blank line aborts.

 => 

server info

 ## nethack.alt.org - http://nethack.alt.org/
 ##                                                         2014-03-26 12:23:52

 This is the nethack.alt.org public NetHack server.
 Contact email:  [email protected]

 Admins:
  -Mainly done by paxed (at) alt.org or on irc.freenode.net
  -Server hardware, connection and occasional admining by dtype


 We're using dgamelaunch to handle user logins and passwords.
 dgamelaunch svn - network console game launcher
 Copyright (c) 2000-2011 The Dgamelaunch Team
 See http://nethackwiki.com/wiki/dgamelaunch for more info

 Games on this server are recorded for in-progress viewing and playback!


  Press 'q' to go back to main menu
        'm' to see MOTD/news
  =>

MOTD/news

2014.03.23
  Added experimental UTF8 support.
   --paxed

2013.12.07
  Happy 10th anniversary, NetHack 3.4.3

2012.12.19
  NetHack and dgamelaunch updated; perhaps the most visible things
  are MONSTERCOLOR setting (see http://alt.org/nethack/default.nh343rc)
  and the XON/XOFF flow control being disabled (so ctrl-S doesn't
  stop the output anymore)
   --paxed

2012.10.21
  NetHack updated:
  New boolean options:
    "msg_wall_hits": Show in the message area when walking at wall.
    "menu_glyphs": Show item glyphs into menus.
    "hilite_hidden_stairs": Show items with red background if over stairs.
    "hilite_obj_piles": Show piles of items with blue background.
  Fixed several crash bugs. (and some other bugs too...)
  Added some hallu monsters, T-shirt messages and random epitaphs.
  Write into a file if player uses SIGHUP, to make cheating obvious.
   --paxed

login

  Logged in as: tokida

  c) Change password
  e) Change email address
  w) Watch games in progress
  o) Edit options using 'virus' ( See http://alt.org/nethack/virus.php )
  O) Edit options using 'ee'
  R) Reset options file to the default one
  p) Play NetHack 3.4.3

  s) server info
  m) MOTD/news (updated: 2014.03.23)

  q) Quit

実際にゲームを始めるのは p) で始めることが出来ます。Macbookなどはキーパッドがないので o) でOptionを選択して

o)Edit_options 
OPTIONS=number_pad:0

とした上で始めると h``j``k``lで移動ができるようになります。


                       ┌────┐
                       │··<·*#
                       ▒····│#
                       │···*│#
                       └·───┘#
                             #
                         #   #
                         0## #
                           # f
                           #@##
                             #









Tokida the Aspirant          St:14 Dx:10 Co:11 In:11 Wi:18 Ch:11  Chaotic S:4
Dlvl:1  $:0  HP:8(14) Pw:6(6) AC:7  Xp:1/1 T:28

参考文献

[WordPress] Markdownが利用できるようになった

Read More

こんにちは、普段からMarkdownでなるべく書くようにしている @tokida です。

さて、以前からBlogの更新には Markdown 形式で書くようにしてきていました。これを実際にするためにはプラグインが必要でした。利用していたのは「Markdown on Save Improbed 」です(いままでありがとう!)

Jetpack Roguer WordPress

今日からは、Jackpack の中にその機能が追加されました。「Markdown」という項目があるので「有効」にしましょう。問題なく利用できます!

ますます便利になりました。

ちなみに MarsEdit などで Markdown でプレビューしたいときには

Preview of WordPress Markdownが利用できるようになった

プレビュー画面の下のところにFilterを選択できるのでここでMarkdownを選んでおきましょう。