Shammer's Philosophy

My private adversaria

2015-12-01から1ヶ月間の記事一覧

string-output-streamをサーバーで使ってみる

format や prin1 で文字列を受け取る - Shammerismで、make-string-output-streamを使ったときの結果を書いたが、これを TCP の Server の中で使ってみたい。 受信した文字を標準出力に書き出すだけのサーバーは以下のようになるが、 (with-open-socket (ser…

Using typecase in Common Lisp

I wrote some functions that need to check the type of valuable with using cond with numberp, stringp, characterp etc, here is a sample. (cond ((numberp x) ; do something here ...) ((stringp x) ; do something here ...) (t ...)) But, there i…

My python2 pocket reference - 20151214

This is updated version of python2 pocket reference from http://d.hatena.ne.jp/shammer/20151212/p1. Added substring from some index to last. Conditions There is no syntax like switch, case, cond. Only if-elif-else is available. >>> X = 100…

My python2 pocket reference - 20151212

This is a first version of python2 pocket reference. Conditions There is no syntax like switch, case, cond. Only if-elif-else is available. >>> X = 100 >>> if X == 10: ... print 'X is 10' ... elif X == 20: ... print 'X is 20' ... else: ...…

How to open multiple wireshark window on Mac?

Mac

There are a lot of cases that I want to open multi wireshark window to see multiple packets at the same time. But, there is no option to open multiple window on Dock Icon. For example, we can open multiple Finder window by clicking with Ct…

Bash Shell Script my pocket reference - 20151206

Updated from Bash Shell Script my pocket reference - 20150923 - Shammerism. Added the way how to use array on bash. if 文 sample if basic if [ $# -ne 1 ];then echo "Usage: $0 [123]"; exit 1; fi if [ $1 -eq 1 ];then echo "You are number#1."…

Outlook forgets YahooMail password

Mac

I use Microsoft Outlook 2011 on my Mac, but sometimes popped up the password request window even if the password is saved in my keychain and Outlook can access it. The answer is described in the following site.Fix Outlook 2011 forgetting p…

It takes several minutes to launch Emacs

In my test environment, it takes several minutes to launch Emacs because Emacs trying following command but can't connect in this environment for security reasons. /usr/bin/wget -q --spider www.emacswiki.orgEnabling http-proxy for wget mak…