Sections
Julian — 29 marzo 2012, 06:29
そこでふと、以前に「様々なプログラミングパラダイムを全てプロセスとメッセージ送信に還元していくのがErlang流だ」と考えたことを思い出した。そうだ、これもプロセス+無限ループで書いてしまおう! filerange_server File, Min, Max -> ok, Io = file:open File, read, bniary, raw , filerange_loop Io, Min, Max . filerange_loop Io, Min, Max -> receive From, pread, Offset, Size -> Start = Min + Offset, End = Start + Size, if End > Max -> case file:pread Io, Start, Max Start of ok, Data -> From ! self , less, Data ; eof -> From ! self , less, <<>> end; true -> ok, Data = file:pread Io, Start, Size , From ! self , exact, Data end, filerange_loop Io, Min, Max ; From, close -> From ! self , file:close Io end.
Sharanabasava — 26 marzo 2012, 11:19
建议把网址里的“&hl=en”去掉,这东西会自动改Market的默认语言~~nijp2004@gmail.com 2012/02/07 10:13@niming, 人世间最过瘾的应用安装方法莫过于我在PC上点开market.android.com,我手机上就开始默默的安装,不需要数据线,不需要乱七八糟的伴侣程序。流星天空 2012/02/15 09:47@nijp2004@gmail.com, 这句没看懂……有这方法?nijp2004@gmail.com 2012/02/07 10:38@niming, 马上用了sslaucnher,貌似没法习惯啊hellothere 2012/02/09 17:03@niming, market能看不能摸
fidel from germania — 29 agosto 2008, 04:52
wow!
thanks!!
- — 18 dicembre 2007, 12:18
It seems to work on 10.4.11 too