ITeye博客

柳争的博客 var liuzheng = {name:"柳争",spoken:"学而践,习而思 , 编而简,程而象"}

edisonlz · 共 94 篇文章

优酷移动API开博啦

博客地址:http://blog.api.youku.com/wordpress/ 希望大家能够喜欢 :)

2013-06-27 14:17 · 优酷 土豆 · 评论(0)

Hadoop Share

请见附件:)

2013-05-29 10:17 · hadoop hive sql java · 评论(0)

Lua 程序集锦

String print(table.concat({"a","b","c"},",")) a,b,c function string:split(sep) local sep,fields = sep or "," , {} local pattern = string.format("([^%s]+)",sep) self:gsub(pattern,function(c) fields[#fields+1] = c end) return fields end a = "1,2,3" splits = a:split(",") for _,i in ipairs(splits) do p…

2012-09-26 15:40 · lua · 评论(0)

我目前的创业心得

我现在的创业感觉就是就如汪峰的存在一样,心如刀割,不知所措,或许我该展翅高飞保持愤怒,或许找个理由随波逐流,我的青春应该是什么样,或许希望就在不远处,或许就在眼前,可能时间会证明一切,但我想说,移动互联网我会揪住你不放,因为我坚信,我坚信,你会含苞怒放 ! 演唱:汪峰 存在 多少人走着却困在原地 多少人活着却如同死去 多少人爱着却好似分离 多少人笑着却满含泪滴 谁知道我们该去向何处 谁明白生命已变为何物 是否找个借口继续苟活 或是展翅高飞保持愤怒 我该如何存在 多少次荣耀却感觉屈辱 多少次狂喜却倍受痛楚 多少次幸福却心如刀绞 多少次灿烂却失魂落魄 谁知道我们该梦归何处 谁明白尊严已沦为何物 …

2012-09-17 11:09 · 创业 · 评论(2)

非诚勿扰聊天实现,tornado + redis

大家好,下面我和大家分享一下非诚勿扰tornado的实现方式。 非诚勿扰APK地址: http://as.baidu.com/a/item?docid=475931&f=web_alad_1 概念介绍: Comet:基于HTTP长连接的“服务器推”技术 基于Comet的技术主要分为流(streaming)方式和长轮询(long-polling)方式。 首先看Comet这个单词,很多地方都会说到,它是“彗星”的意思,顾名思义,彗星有个长长的尾巴,以此来说明客户端发起的请求是长连的。即用户发起请求后就挂起,等待服务器返回数据,在此期间不会断开连接。流方式和长轮询方式的区别就是:对于流方式,客户端…

2012-09-15 16:10 · comet · 评论(0)

想了解EC2的看过来,海外服务器使用 Amazon EC2 调查报告

Amazon Elastic Compute Cloud (Amazon EC2) Amazon EC2 presents a true virtual computing environment, allowing you to use web service interfaces to launch instances with a variety of operating systems, load them with your custom application environment, manage your network’s access permissions, and r…

2012-09-03 10:38 · 闲聊文章 · nginx · mobile web · linux · learn · 服务器 · 评论(1)

Python BTree 学习-广度优先搜索

不说别的见源码 #coding=utf-8 import sys, os import bisect import string class Entity(object): """data entity""" __slots__ = ("key", "value",) def __init__(self, key, value): self.key = key self.value = value def __str__(self): return self.key def __unicode__(self): return self.__str__() def __cmp__(self, …

2012-08-27 09:41 · python 编程 · python · btree · learn · 评论(0)

Python SuffixTree (后缀树)中文 AutoComplete 算法

最近javaeye的python板块实在是太不活跃了,发一个有意思的开源程序,给大家玩玩,这个程序代码是后缀树,一般用于autoComplete,还不知到的同学赶紧来看看吧 :) 开源地址:https://github.com/edisonlz/suffixTree_ch o SuffixTree.SuffixTree -- The suffix tree structure. This is a thin wrapper around strmat's stree data structure. This isn't a complete wrapper yet; I need to fi…

2012-08-14 14:04 · 评论(0)

Nginx Modules 开发学习

nginx 模块开发,咱们先从模块分析入手,nginx的模块支持hook(钩子功能),我们可以在以下几个地方添加钩子: Just before the server reads the config file 读取配置文件时 For every configuration directive for the location and server for which it appears; 读取到server或是location 配置的时候 When Nginx initializes the main configuration 初始化主配置的时候 When Nginx initializ…

2012-08-13 17:02 · linux 编程 · nginx · linux · 评论(0)

程序员升级当爹报告

首先,要感谢的亲爱的老婆,怀胎10月,经历了人生中最痛苦的时刻,终于把孩子给制造出来了,我作为程序员,你作为测试员,经历了一场惊天动地的大事件,说起来,还要从准备怀孕开始说起。 2011/10月我们打算准备要小孩了,之前买了3本孕妇和婴儿方面的书,然后又从图书库借了一本,经过长时间的研究,我们总结出了以下几点, 一, 要准确把握精子同志和卵子同志的会面时间,会面时间误差不能超过半天,于是要使用有效的监控手段,你说你架个nagios什么的行吗,当然不行了,在这个领域有两种方法,基础体温法和排卵试纸。 二, 调养好身心,做好新生命的到来,不能太紧张了,太紧张了会导谈判的决裂。 三, 向菩萨或者上…

2012-08-02 11:59 · 娃 · 评论(2)

收录ios开源项目

收录ios开源项目 扫描wifi信息: http://code.google.com/p/uwecaugmentedrealityproject/ http://code.google.com/p/iphone-wireless/ 条形码扫描: http://zbar.sourceforge.net/iphone/sdkdoc/install.html tcp/ip的通讯协议: http://code.google.com/p/cocoaasyncsocket/ voip/sip: http://code.google.com/p/siphon/ http://code.google.com…

2012-03-09 10:59 · ios · 评论(0)

HTML5 Show Time

HTML5 Show Time: 最近对于CSS3产生浓烈了兴趣,我本身不做web前端开发,出于兴趣,学习HTML5和CSS方面的知识,于是动手做了Path2like ,Weather ,Picture Share 等等小项目,同时把托管在google project的项目移到了github上, 有兴趣的同学可以看一下,希望和大家多多交流 https://github.com/edisonlz http://player.youku.com/player.php/sid/XMzUxOTQ0NzI0/v.swf 以下是程序截图: 简单天气应用机锋下载: http://apk.gfan.com/…

2012-02-13 11:57 · HTML5 · 评论(2)

Mobile Web

The viewport metatag (Mobile web part 1) 使用方式: <meta name="viewport" content="width=device-width, initial-scale=1.0"/> 引入问题: 好了,你安定下来,学习如何编写一个为移动设备使用您的桌面网站建设知识网站。所以,你开始与一些非常基本的HTML。 <html> <head> <title>Hello world!</title> </head> <body> <p>Hello world!</p> </body> </html> 好的!不能在简单了。你检查出来,它所有的桌面浏览…

2012-02-03 16:17 · mobile web · 评论(0)

xmpppy + openfire

最近公司有个在线聊天的需求,最新看了一下xmpp Server 使用的事OpenFire 数据库使用的事Mysql 功能到时齐全,但是,跟自有项目的整合就成了问题,有一些需求实现不了,下面是个实验的例子,仅供参考 :) #coding=utf-8 """ notgen.py """ import sys, os import xmpp import time import string from threading import Thread ROOM = '' LOGGING = 1 #utility functions def buildTrans(): """ create a tra…

2011-11-04 18:25 · python 编程 · xmpp · 评论(2)

python tiny_uri

基于26个字母的tiny_uri , 类似sina t.cn 功能 #coding=utf-8 import os, sys import string import random import re Dict = string.ascii_lowercase MAXLEN = len(Dict) def tiny_uri(uri="t.cn/zzzz", domain="t.cn"): """tiny uri base on ascii_lowercase carry""" macth = re.match(r"%s/(.+)" % domain, uri) macths = macth.…

2011-10-31 18:22 · python 编程 · 评论(0)