Rabbit House

時間の中 泳ぎ続ける

@leo9年前

2016-12-18
00:33
Tech

Bug Fix: Dec 17, 2016

root@163-44-174-67:/etc/php5/fpm/pool.d# vim wordpress.conf

pm.max_children = 50
pm.min_spare_servers = 3
pm.max_spare_servers = 35

root@163-44-174-67:/etc/php5/fpm/pool.d# service php5-fpm restart
php5-fpm stop/waiting
php5-fpm start/running, process 20479

Bug Fix: Dec 17, 2016

@leo9年前

2016-12-15
22:27
Tech

Basic Graph Algorithms

# Graph Algorithms

def isGraph(edge):
    a=len(edge)
    for i in edge:
        if len(i)!=a:
            return False
    return True

def findMatrixMin(edge):
    row=999999
    col=999999
    MIN=999999
    for i in range(len(edge)):
        for j in range(len(edge)):
            if edge[i][j]&[......]

Read more

Basic Graph Algorithms

@leo9年前

2016-12-12
21:34
Tech

Traversal of Binary Tree

class TreeNode(object):
  value=None
  lchild=None 
  rchild=None
  visited=0
  def __init__(self):
    value=None
    lchild=None 
    rchild=None 
    visited=0
  def visit(self):
    print self.value,
    visited=1

class Queue(object):
  items=[]
  size=0
  def __init__(self):
    items=[]
    s[......]

Read more

Traversal of Binary Tree

@leo9年前

2016-12-11
17:08
Tech

Infix to Postfix and Evaluation of Postfix

def infix2postfix(infix):
  postfix=[]
  digits=['1','2','3','4','5','6','7','8','9','0']
  ohigh=['*','/']
  olow=['+','-']
  s=[]
  i=0
  while(i<len(infix)):
    if infix[i] in digits:
      postfix.append(infix[i])
    if infix[i]=='(':
      s.append(infix[i])
    if infix[i] in olow:[......]

Read more

Infix to Postfix and Evaluation of Postfix

@leo9年前

2016-10-26
18:19
Tech

Note for word2vec Source Code

Reference:
https://github.com/zhangchen-qinyinghua/word2vector/blob/master/word2vec_full_chinese_comment.c

#include <stdio.h> // 文件输入输入使用的标准化函数
#include <stdlib.h> 
// C 标准函数库的头文件,声明了数值与字符串转换函数,伪随机数生成函数,动态内存分配函数,
// 进程控制函数等公共函数。 
#include <string.h>
// 涉及字符串和大量内存处理函数
#includ[......]

Read more

Note for word2vec Source Code

@leo9年前

2016-07-25
02:55
Log

日本游记 Day2 滋贺/京都

经过一天的探索,我们发现Google地图里电车的时间非常准,于是决定明天一早赶第一班车去滋贺巡礼K-ON的舞台。然而由于我赖床,出发的时间还是晚了一点……

从住处出发,步行几分钟途中吃完了早饭(前晚便利店买的饭团),从京都站乘JR东海道·山阳本线到达近江八幡站,然后乘近江铁道到豊郷站。从近江八幡换乘的时候找不到路,浪费了很长时间,到近铁站台的时候已经响铃要开车了,售票员看到我们两个外国人急匆匆地赶下来便示意司机等一下,让我们上了车才开。近江铁道在除车站外的其他地方都只有单线,所以发车比较稀疏,半小时一班。车上有很多通勤的JK,瞄了几眼她们的书,有背英语的,有背化学的,NaOH什么的,如果[……]

Read more

日本游记 Day2 滋贺/京都

@leo9年前

2016-07-15
18:15
Log

日本游记 Day1 京都

萌生去日本的想法还是去年暑假的时候,看日漫这么久,总要找个机会去日本看看吧。这学期3月来学校之后发现隔壁寝室的龚泽林也有去日本玩的想法,于是一拍即合,4月就买了机票办好了签证,6月9日-19日日本毕业旅行予定!

6月8号晚上8点,我们收拾好了东西,从学校出发,从西土城坐10号线到三元桥转机场线,快10点到了机场。首都机场安检很严格,所以速度很慢,我们在安检口排队排了一个小时,最后11点半登上了飞机。本是0:05起飞的航班,在跑道边排队等了十几架才起飞。被乘务员的饮料和餐食所打扰,三个多小时的航程基本没睡。快到的时候透过飞机的小窗看到了日出时的富士山,非常壮观,但这也是这十几天唯一看到的一[……]

Read more

日本游记 Day1 京都

@leo10年前

2016-02-18
17:27
Recreation

Apple: A Message to Our Customers

February 16, 2016 

摘要:iPhone很安全,买买买

A Message to Our Customers

The United States government has demanded that Apple take an unprecedented step which threatens the security of our customers. We oppose this order, which has implications far beyond the legal case at hand.

This moment calls fo[……]

Read more

Apple: A Message to Our Customers

@leo10年前

2015-11-17
00:34
Tech

configuration for surge

[General]
loglevel = notify
skip-proxy = 192.168.0.0/16, 10.0.0.0/8, 172.16.0.0/12,127.0.0.0/24,100.64.0.0/10
bypass-tun = 0.0.0.0/8, 1.0.0.0/9, 1.160.0.0/11, 1.192.0.0/11, 10.0.0.0/8, 14.0.0.0/11, 14.96.0.0/11, 14.128.0.0/11, 14.192.0.0/11, 27.0.0.0/10, 27.96.0.0/11, 27.128.0.0/9, 36.0.0.0/10, 36.9[……]

Read more

configuration for surge

@leo10年前

2015-08-16
18:41
Recreation

震惊!音乃木阪偶像研究部部长矢泽妮可怒斥学生会副主席东条希

社团主催在学生会面前大发雷霆,平成24年二赖子队长在UTX讲学校扩招的时候试过一次。这一次矢泽民…啊不,矢泽妮可这么生气,是她
挺果心切,抑或针对学生会呢?

—————————————————————

希:泽部长妮撅德穗乃果当队长好不好啊?
泽:吼啊!
希:偶像研究部也姿瓷她吗?
泽:(笑)那,当然啦
希:学校呢,最近伐表了一份报告,说偶像研究部会通过一些渠道去影响、干预学生会的经费拨款,你对这个看法有什么回应啊?
泽:(笑容凝滞)没听说过。
希:是南小鸟说的。
泽:泥萌学生会千万要记着,不要见得风是得雨。接到这些消息,泥萌本身也要判断,明白意思吧?假使这些无中有生有的东西,你再帮她说[……]

Read more

震惊!音乃木阪偶像研究部部长矢泽妮可怒斥学生会副主席东条希