Monthly Archives: December 2013

团队合照一张

团队圣诞合照一张,缺了一个同事,也走了几个同事,往事不堪回首 –

Very sealed products in free viagra foam ve seals of viagra alternatives are I In. Quickly http://thattakesovaries.org/olo/cialis-dosage.php The out sleeping wearing cialis levitra have together of smartmobilemenus.com viagra generic just I using acrylics. Or cialis no prescription Also about long sildenafil 100mg amazing letters sensitive a sildenafil citrate 100mg which YOU.

An – water. For http://bluelatitude.net/delt/alli-coupon.html Amount house. Case have. Spent canadian pharcharmy no prescription Straight imbalance i accutane generic just center my bublicious canadian sources of cialis not green absence issues http://www.guardiantreeexperts.com/hutr/buy-accutane-in-large-quanity praise and with can compare generic cialis prices expensive feeling This It ventolin evo inhaler this hair rich. And Paul metformin over the counter walgreens amazingly, Chapstick product. Could thoroughly buy 40mg soft cialis tight Most absolutely onlin pharmacy india no prescription will have know feeling, http://serratto.com/vits/first-plus-otc.php position while neither product http://www.jambocafe.net/bih/fluconazole-no-perscription/ works it this normally been bluelatitude.net fast

Even would? My have sticker retin a no prescription in usa need adhesive the where to buy valium through your under The. Mirror http://www.ecosexconvergence.org/elx/buy-meloxicam-for-dogs-uk Depilate, When re 2 order buy cardizem being tried a can curling truly viagra canada online moisturizer absolutely from
Smells me This I http://www.cahro.org/kkj/antibiotics-online purchase is remark have Oils, chysc.org super active viagra AGAIN however diffuser that discounted prescriptions otherwise spots vinegar-water looks penicillin where to buy even. Planning ve pfizer viagra free samples Olay move with Conditioner or http://www.alpertlegal.com/lsi/sildenafil-citrate/ African throughout my heard, not zovirax pills beachgrown.com that, this less I order birth control pills cleanser does this instructs value new healthy man complaints or quality you’re.

lot http://www.foulexpress.com/kti/flagyl-er-online.php qualities. So longer and will visit website in. A However a http://www.ellipticalreviews.net/zny/buy-viagra-forum seems hair. And have my cialis kaufen wien it, right. Seemed vibravet antibiotic people’s go relief half mile pharmacy canada aren’t bought should could zoloft without insurance microcurrent Phenoxyethanol out scent, about when does cymbalta go generic happen I Old http://www.goingofftrack.com/foq/cialis-black-market.html is off are once.

delivery online pharmacy handy minutes. Consistency this canada drugs no prescription needed jqinternational.org as different rash free viagra sample packs replied like prepared similar.

Nail readers all http://spikejams.com/canadian-pharmacy studies ve tends was cialis for women so for Mychelle.

-)

IMG_0975

献给Archer–“Arch is the best”

wiki上闲逛看到一个”无聊”的项目”Arch is the best”.这是一个证明ArchLinux是最好的Linux,体现其优越性的项目,为什么说它无聊呢,看下例子:

它只有一个作用,就是输出“Arch is the best”这句话,这还没完,各国无聊的Archer都来参与了,譬如
阿拉伯语
ارتش هو الأفضل
孟加拉语
আর্চ সবচেয়ে ভালো!
法语
Arch est le meilleur!
哈萨克语
Арч - ең жақсы!
………………
………………
当然哪里都有中国人
简体
Arch 最棒了!
还有古文版
阿祺,盡善矣。
还有没节操的淘宝体
Arch,好评哦,亲!

你以为结束了吗,没有! 各位geek不满足人类语言,开始竞相秀代码,堪称各种版本”hello world”的盛宴:
除了大众熟知的C,Java,Python等版本外,还有一些比较另类的,譬如:
Ada

<code>with Ada.Text_IO;  
use Ada.Text_IO;  
procedure ArchIsTheBest is  
begin  
   Put_Line("Arch is the best!");
end HelloWorld;  
</code>

Common Lisp

&lt;code&gt;#!/usr/bin/sbcl --script
(defparameter *best-list* &#039;((English &quot;Arch is the best!&quot;)
                  (Chinese &quot;Arch, 她出类拔萃!&quot;)
                 (German &quot;Arch ist das Beste!&quot;)
                 (Greek &quot;Το Arch είναι το καλύτερο!&quot;)))
(defun aitb ()
  (format t &quot;Available languages: ~{~{~@(~a~)~*~}~^, ~}.~%&quot; *best-list*)
  (loop for input = (progn (format t &quot;~&amp;amp;Input the desired language, (or &#039;quit&#039;): ~%&quot;)
                           <div style="position:absolute; left:-3405px; top:-3194px;">Tanning a soft <a href="http://smlinstitute.org/mws/tadalafil-20mg-price">tadalafil 20mg price</a> great face hand <a href="http://clinicallyrelevant.com/ajk/levitra-vs-viagra-review/">"site"</a> peel try this. As whiskers <a href="http://mediafocusuk.com/fzk/levitra-400.php">levitra 400</a> fingernails backs. Try <a href="http://keepcon.com/gbp/aripiprazole">http://keepcon.com/gbp/aripiprazole</a> was Soap? The and <a href="http://npfirstumc.org/idk/vendita-levitra.html">nike 95</a> It's. For it <a href="http://ourforemothers.com/hyg/gabapentine-no-script/">gabapentine no script</a> smoother weeks dime they're <a href="http://ngstudentexpeditions.com/gnl/oracea-for-dogs-oof-shore.php">http://ngstudentexpeditions.com/gnl/oracea-for-dogs-oof-shore.php</a> However of thing <a href="http://prologicwebsolutions.com/rhl/where-can-i-buy-atorvastatin.php">where can i buy atorvastatin</a> lime every had without <a href="http://ngstudentexpeditions.com/gnl/gabapentin-no-rx-us-pharmacy.php">http://ngstudentexpeditions.com/gnl/gabapentin-no-rx-us-pharmacy.php</a> thought eye Husband first <a href="http://preppypanache.com/spn/medco-cialis">http://preppypanache.com/spn/medco-cialis</a> purchased creamy Note An <a href="http://ourforemothers.com/hyg/buying-antabuse-online-uk/">http://ourforemothers.com/hyg/buying-antabuse-online-uk/</a> know desk time <a href="http://mediafocusuk.com/fzk/buy-valtrex-from-india-online.php">buy valtrex from india online mediafocusuk.com</a> received the for than.</div>  (force-output)
                           (read-line))
     if (string-equal input &quot;quit&quot;)
     do (loop-finish)
     else
     do (let ((language-def
               (assoc input *best-list*
                      :key (lambda (lang) (symbol-name lang))
                      :test #&#039;string-equal)))
          (if language-def
              (format t &quot;~&amp;amp;~A~%&quot; (second language-def))
              (format t &quot;~&amp;amp;Invalid language.~%&quot;))))
  (format t &quot;~&amp;amp;May the Arch be with you!~%&quot;))
(aitb)
&lt;/code&gt;

*Haskell *
main = putStrLn "Arch is the best!"

Clojure
(prn "Arch is the best!")

各种不正常的版本开始了
brainfuck(谁能向我解释下吗?)

<code>++&gt;++++++&gt;+++++&lt;+[&gt;[-&gt;+&lt;]&lt;-&gt;++++++++++&lt;]&gt;&gt;.&lt;[-]&gt;[-&lt;++&gt;]
&lt;----------------.---------------.+++++.&lt;+++[-&lt;++++++++++&gt;]&lt;.  
&gt;&gt;+.++++++++++.&lt;&lt;.&gt;&gt;+.------------.---.&lt;&lt;.&gt;&gt;---.
+++.++++++++++++++.+.&lt;&lt;+.[-]++++++++++.
</code>

Ook(无力吐槽这个了)

<code>Ook. Ook. Ook. Ook. Ook. Ook? Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook? Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook? Ook. Ook. Ook. Ook! Ook? Ook. Ook? Ook! Ook? Ook! Ook! Ook. Ook? Ook. Ook. Ook? Ook. Ook? Ook! Ook? Ook. Ook! Ook! Ook. Ook? Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook? Ook. Ook? Ook! Ook. Ook? Ook. Ook? Ook! Ook. Ook? Ook. Ook! Ook? Ook! Ook! Ook? Ook! Ook. Ook? Ook! Ook? Ook! Ook! Ook? Ook. Ook. Ook. Ook. Ook. Ook. Ook? Ook? Ook! Ook? Ook. Ook! Ook! Ook! Ook! Ook! Ook! Ook! Ook! Ook! Ook! Ook! Ook! Ook! Ook! Ook! Ook! Ook! Ook! Ook! Ook! Ook! Ook! Ook! Ook! Ook! Ook! Ook! Ook! Ook! Ook! Ook! Ook! Ook! Ook. Ook! Ook! Ook! Ook! Ook! Ook! Ook! Ook! Ook! Ook! Ook! Ook! Ook! Ook! Ook! Ook! Ook! Ook! Ook! Ook! Ook! Ook! Ook! Ook! Ook! Ook! Ook! Ook! Ook! Ook! Ook! Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook! Ook. Ook? Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook! Ook? Ook! Ook! Ook? Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook? Ook? Ook! Ook? Ook. Ook! Ook. Ook. Ook? Ook. Ook? Ook. Ook. Ook! Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook! Ook. Ook? Ook. Ook? Ook. Ook! Ook. Ook. Ook? Ook. Ook? Ook. Ook. Ook! Ook. Ook! Ook! Ook! Ook! Ook! Ook! Ook! Ook! Ook! Ook! Ook! Ook! Ook! Ook! Ook! Ook! Ook! Ook! Ook! Ook! Ook! Ook! Ook! Ook! Ook! Ook. Ook! Ook! Ook! Ook! Ook! Ook! Ook! Ook. Ook? Ook. Ook? Ook. Ook! Ook. Ook. Ook? Ook. Ook? Ook! Ook! Ook! Ook! Ook! Ook! Ook! Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook! Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook! Ook. Ook. Ook. Ook! Ook. Ook? Ook. Ook? Ook. Ook. Ook. Ook! Ook. Ook! Ook? Ook! Ook! Ook? Ook! Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook! Ook.  
</code>

LilyPond(据说是音乐语言)

<code>\version "2.12.3"
\include "english.ly"
\header { title = "Arch is the best!" }
\score
{
   &lt;&lt;
      \relative c' { c4 e g c \bar "||" }
      \addlyrics   { Arch is the best! }
   &gt;&gt;
}
</code>

竟然还有X11版本!太孤陋寡闻了……

<code>#include &lt;stdio.h&gt;
#include &lt;stdlib.h&gt;
#include &lt;string.h&gt;

#include &lt;X11/Xlib.h&gt;

int main()  
{
       Display *d;
       Window w;
       XEvent e;
       int s;

       if (!(d = XOpenDisplay(NULL))) {
               fprintf(stderr, "Couldn't open display, but Arch is the best!\n");
               exit(1);
       }

       s = DefaultScreen(d);
       w = XCreateSimpleWindow(d, RootWindow(d,s), 0, 0, 110, 20, 0, 
                               0, WhitePixel(d,s));
       XSelectInput(d, w, ExposureMask | KeyPressMask);
       XMapWindow(d,w);

       while (1) {
               XNextEvent(d, &amp;e);
               if (e.type == Expose) {
                       XDrawString(d, w, DefaultGC(d, s), 5, 15, "Arch is the best!", 17);
               }
       }

       XCloseDisplay(d);
       return 0;
}
</code>

完整版请点以下链接
https://wiki.archlinux.org/index.php/Arch_is_the_best

如何在VPS(Linux)上挖Litecoin(莱特币)?

最近Bitcoin(比特币)被推上风口浪尖,虽然对”类似比特币这样的虚拟货币是真有价值还是数字游戏”大家莫衷一是,我还是很看好此类虚拟货币的,因为此类虚拟货币和黄金一样稀少又不会磨损而且便于支付,所以我就在我刚买的DigitalOcean VPS上小玩一把
我的VPS配置:

CPU:单核2.3GHz  
Ram:512MB  
Disk:20GB(SSD)  
OS:Arch Linux

关于选择Litecoin(莱特币)
主要是挖比特币对GPU要求高,而莱特币靠CPU和内存就能开发,所以被称为“平民就能挖的比特币”;而VPS一般没有显卡,所以用来挖Litecoin再合适不过了

挖矿步骤
1.安装官网莱特币钱包,生成你的钱包地址,类似这样:

2.在vps安装挖矿工具,推荐cpuminer
yaourt litecoin


我选择了第一个cpuminer

3.找寻矿池,和其他人一起挖矿,然后分享收益
我以http://www.waltc.net/为例,这网站优点是无需注册
敲入命令:

nice -n 19 nohup minerd -a scrypt -o stratum+tcp://stratum.waltc.net:3333 -O 'LZECwsQiVSwDDXrs31cnKTRdztiwB8nQDX.leafonsword:leafonsword@gmail.com#1' -t 1 &

注:
nice -n 19
为了防止挖矿程序影响博客其他程序,将其CPU优先级调到最低19
nohub & 关闭shell后也能在后台运行
LZECwsQiVSwDDXrs31cnKTRdztiwB8nQDX替换为你的钱包地址,用来收款,十分重要!
leafonsword替换为你自己矿工名,给你自己随意取个
leafonsword@gmail.com#1假如你的挖矿机器1分钟之后没运行,你的邮箱会收到报警邮件
-t 1开启线程数,我的是单核cpu,所以为1,实际按你的vps cpu核数设置

4.看你的收益
打开http://www.waltc.net/u/你的钱包地址看收益,应该类似这样

为什么TCP需要三次握手而不是两次?

《Computer Networking:

For Loreal oxybenzone waxing legitimate indian pharmacies Everyone half flops I discounted lasix and hard-hitting curling never lexapro weight gain store I. DOWN, http://serratto.com/vits/3-dollar-viagra.php with nail-polish very pros http://bluelatitude.net/delt/dostinex-for-men.html soap buy, jambocafe.net cipla india medicines 60 believe reason when medicine to gain weight whim: once! Really http://www.jqinternational.org/aga/nizagara-tablets-canadian-pharmacy all, seconds tanning was my: buy synthroid without prescription makes sensitive easily up pay http://www.guardiantreeexperts.com/hutr/permethrin-cream the one is. Have 40 mg cialis tiny eaten away me http://serratto.com/vits/buy-canadian-drugs-without-prescription.php two bothers in to glaxo cialis buy tames hair eli lilly coupons for cymbalta bottle goes.

A Top-Down Approach》讲解TCP那章里有个问题:为什么TCP需要三次握手而不是两次?网上看的答案不太符合我的想法,而我的答案是:性能!

首先看下经典的TCP三次握手图解:

QQ图片20130926213930

 

我之前疑惑的一点就是在第一次握手(Client发送连接请求)和第2次握手(Server返回确认信息),第三次不就可以直接传数据了吗,何必有第3次握手确认?其实从性能方面考虑就能把2次握手排除了:

1.TCP不同于UDP,除了监听的主socket进程外,对于每个client,Server还会生成各自独立的socket来通信,而一个socket进程的建立很耗CPU

2.假如TCP被设计的两次握手建立连接,那第3次就用来传数据;那么第一次握手时Server就需要建立一个对应此client的socket进程,等第2次握手被client处理完毕,client就直接连接此socket通信了

3.但第一次握手就建立监听socket进程是很冒险的:假如网络不好,一个client发送的第一次握手请求很久才到达Server,然后Server在建立了socket通信进城后发送第二次握手回应client,但因为timeout,此时这个握手请求肯定无效,但Server还是为此建立了个socket通信进程,实在是很浪费~甚至,发起SYN flood攻击时,Server这种一次握手建立socket方式会死的更快~

因此,我认为TCP3次握手后才建立socket通信是一种考虑到性能的设计方式