浙江省高等学校教师教育理论培训

微信搜索“毛凌志岗前心得”小程序

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2012年9月25日

摘要: 重定向简单么?不,它很复杂!_老王的技术手册 ( 我的新博客:http://huoding.com )_百度空间重定向简单么?不,它很复杂!作者:老王重定向是一个看似简单,实际很复杂的问题。HTTP状态码一共才五个系列(1XX,2XX,3XX,4XX,5XX),而重定向状态码被单独作为一个系列(3XX)存在,足以说明它的重要性,但是很多人认为知道301/302的区别就算熟悉重定向了,这实在是一大谬... 阅读全文
posted @ 2012-09-25 20:12 lexus 阅读(389) 评论(0) 推荐(0)

摘要: [转]CentOS安装crontab及使用方法--胡益兵[转]CentOS安装crontab及使用方法[ 2009-4-19 1:38:00 | By: 胡益兵 ]3推荐转自http://hi.baidu.com/showimg/blog/item/db028ccb257c87fa53664fe2.html安装crontab:[root@CentOS ~]# yum install vixie-c... 阅读全文
posted @ 2012-09-25 18:25 lexus 阅读(266) 评论(0) 推荐(0)

摘要: utf 8 - Write to utf-8 file in python - Stack Overflowfile = codecs.open("temp", "w", "utf-8")file.write(codecs.BOM_UTF8)file.close() 阅读全文
posted @ 2012-09-25 15:40 lexus 阅读(336) 评论(0) 推荐(0)

摘要: utf 8 - Write to utf-8 file in python - Stack OverflowDisclaimer: I'm not a Python programmer.I believe the problem is that codecs.BOM_UTF8 is a byte string, not a Unicode string. I suspect the file h... 阅读全文
posted @ 2012-09-25 15:32 lexus 阅读(761) 评论(0) 推荐(0)

摘要: 用python写hiveclient - 改善 - ITeye技术网站用python写hiveclient 博客分类:hadoopPythonSQLSQL ServerHadoopBBS 第一步:将hive-0.7.0\lib\py 中所有py文件拷贝到你自己的Python工程中。第二步:把下面的代码拷贝一份新建一个py文件,修改IP,port ,输入要执行的SQL。Python代码 #enco... 阅读全文
posted @ 2012-09-25 13:26 lexus 阅读(450) 评论(0) 推荐(0)

摘要: The Ex CS Grad Student: Running HQL from Python without using the Hive Standalone ServerRunning HQL from Python without using the Hive Standalone ServerTo use a language other than Java (say python) w... 阅读全文
posted @ 2012-09-25 12:14 lexus 阅读(290) 评论(0) 推荐(0)

摘要: 双数组trie树_互动百科双数组trie树开放分类: 搜索 算法编辑词条 分享 新知社 新浪微博 腾讯微博 人人网 QQ空间 网易微博 开心001 天涯 飞信空间 MSN 移动说客 双数组Trie(Double-ArrayTrie)是trie树的一个简单而有效的实现,由两个整数数组构成,一个是base[],另一个是check[]。设数组下标为i,如果base[i],chec... 阅读全文
posted @ 2012-09-25 11:43 lexus 阅读(464) 评论(0) 推荐(0)

摘要: 实例讲解hadoop中的hive查询(python语言实现) - 实践检验真理 - 51CTO技术博客实例讲解hadoop中的hive查询(python语言实现)2011-12-05 16:47:51标签:数据挖掘 python hadoop 休闲 hive版权声明:原创作品,谢绝转载!否则将追究法律责任。条件,假设配置好了hadoop和hive,并可以正常运行首先,要外部查询hive,你需要安装... 阅读全文
posted @ 2012-09-25 11:05 lexus 阅读(436) 评论(0) 推荐(0)

摘要: The Ex CS Grad Student: Running HQL from Python without using the Hive Standalone ServerRunning HQL from Python without using the Hive Standalone ServerTo use a language other than Java (say python) w... 阅读全文
posted @ 2012-09-25 10:31 lexus 阅读(366) 评论(0) 推荐(0)

摘要: ./configure --without-csharp --without-erlang --without-perl --without-php --without-php_extension --without-haskell --without-rubysudo makesudo make install 阅读全文
posted @ 2012-09-25 10:26 lexus 阅读(209) 评论(0) 推荐(0)

摘要: shell脚本实现每秒执行一次任务 rsync命令使用 - 技术博客 - 博客频道 - CSDN.NETshell脚本实现每秒执行一次任务 rsync命令使用 分类: 分布式系统 2012-03-29 14:24 103人阅读 评论(0) 收藏 举报目的:编写脚本没秒钟同步一个log数据1.编写shell脚本vi /tmp/ceshi.sh #!/bin/sh while [ true ]; ... 阅读全文
posted @ 2012-09-25 09:28 lexus 阅读(899) 评论(0) 推荐(0)

摘要: 使用 inotify 监控文件系统的活动使用 inotify 监控文件系统的活动编写自己的应用程序或使用开源工具套件Martin Streicher , Web 开发人员, 自由职业者Martin Streicher 是一位自由 Web 开发人员,并且是 Linux Magazine 的前任主编。Martin 拥有 Purdue University 计算机科学的硕士学位,并从 1986 年开始编... 阅读全文
posted @ 2012-09-25 09:21 lexus 阅读(305) 评论(0) 推荐(0)

摘要: CentOS通过ssh免密码登录 - Linux安全网 - Linux操作系统_Linux 命令_Linux教程_Linux黑客linux经常会需要免密码登录另外一台机器,譬如安装hadoop集群,从a机器通过scp考文件到b机器等。 ssh 无密码登录要使用公钥与私钥。linux下可以用用ssh-keygen生成公钥/私钥对,以CentOS为例。 有机器A,B。现想A通过ssh免密码登录到B... 阅读全文
posted @ 2012-09-25 09:18 lexus 阅读(4356) 评论(0) 推荐(0)