原创 遊戲開發踩的那些坑:abs函數的平臺差異

轉載請註明,來自:http://blog.csdn.net/skyman_2001 我寫了個彈性3D箭頭功能,指定起點、終點和圓弧的夾角,就會渲染出彎曲的3D箭頭,裏面用了abs函數計算浮點數的絕對值,在windows上運行沒問題,打了安

原创 關於Lock和Lock Contention的2張圖

原文見:Locks Aren’t Slow; Lock Contention Is 1. Lock Contention Benchmark 2. Lock Frequency Benchmark

原创 erlang調用外部程序如何得到其退出狀態

轉載請註明,來自:http://blog.csdn.net/skyman_2001 經常會有erlang程序調用外部程序的需求,比如調用shell命令程序,一般是用os:cmd/1,比如: 1> os:cmd("pwd"). "/hom

原创 關於erlang:halt的更新說明

摘自:http://www.erlang.org/download/otp_src_R15B01.readme OTP-9985  == erts stdlib ==      When an escript ends now all p

原创 關於erlang socket被動模式和delay_send合用的問題

轉載請註明,來自:http://blog.csdn.net/skyman_2001 有項目反應服務器遇到ports()裏的port,其port_info/1返回是undefined的問題,而且出現這個後,erlang:halt()不能正常

原创 linux的ulimit命令

原文地址:http://www.ibm.com/developerworks/cn/linux/l-cn-ulimit/ 選項 [options] 含義 例子 -H 設置硬資源限制,一旦設置不能增加。 ulimit – Hs

原创 Erlang explained: Selective receive

原文地址:http://ndpar.blogspot.de/2010/11/erlang-explained-selective-receive.html If you worked with Erlang you've probably

原创 Erlang Distribution Tips

轉載請註明,來自:http://blog.csdn.net/skyman_2001 一、連通節點的方式 1. .hosts.erlang方式: (1) 創建.hosts.erlang文件(在$HOME目錄、當前工作目錄或$OTP_ROOT

原创 C++ 11 in Xcode

原文地址:http://stackoverflow.com/questions/10438253/im-having-some-trouble-with-c11-in-xcode 'Build Settings' - 'Apple LLV

原创 談談erlang:exit/2

轉載請註明,來自:http://blog.csdn.net/skyman_2001 有同學用erlang:exit(Pid, normal)來關閉Pid進程,其實這樣Pid進程是不會自動退出的。官方文檔上對erlang:exit/2的說明

原创 Erlang VM彙編指令

轉載請註明,來自:http://blog.csdn.net/skyman_2001 可以用erts_debug:instructions()得到Erlang虛擬機的所有的彙編指令。以R15B01版本爲例,共有452個彙編指令: "allo

原创 Erlang學習時間曲線

招新人時可以借鑑下: 點贊 收藏 分享 文章舉報 skyman_2001 發佈了184

原创 C++ 11學習(1):lambda表達式

轉載請註明,來自:http://blog.csdn.net/skymanwu #include <iostream> #include <vector> #include <functional> using namespace std

原创 關於Flash Player 10 socket connection timeout

轉載請註明,來自:http://blog.csdn.net/skyman_2001 今天我在調試遊戲的時候,發現一個有趣的現象,就是flash連接上服務器後,服務器關閉連接,flash會觸發securityError事件,用google搜

原创 關於mysql中的key和index

1. 官方文檔:http://dev.mysql.com/doc/refman/5.5/en/create-table.html KEY is normally a synonym for INDEX. The key attri