<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[ArthurBryant的专栏]]></title><description><![CDATA[]]></description><link>https://blog.youkuaiyun.com/ArthurBryant</link><language>zh-cn</language><generator>https://blog.youkuaiyun.com/</generator><copyright><![CDATA[Copyright &copy; ArthurBryant]]></copyright><item><title><![CDATA[Learning perl]]></title><link>https://blog.youkuaiyun.com/ArthurBryant/article/details/7515649</link><guid>https://blog.youkuaiyun.com/ArthurBryant/article/details/7515649</guid><author>ArthurBryant</author><pubDate>Thu, 26 Apr 2012 21:26:46 +0800</pubDate><description><![CDATA[1. use warnings:
开启警告。
use strict:
让编译器强制执行一些严格、确保良好程序设计的规则。]]></description><category></category></item><item><title><![CDATA[module: numpy]]></title><link>https://blog.youkuaiyun.com/ArthurBryant/article/details/7277203</link><guid>https://blog.youkuaiyun.com/ArthurBryant/article/details/7277203</guid><author>ArthurBryant</author><pubDate>Mon, 20 Feb 2012 20:58:32 +0800</pubDate><description><![CDATA[Install numpy
1. Download numpy at http://sourceforge.net/projects/numpy/files/NumPy/
2.  untar and build
python setup.py build --fcompiler=gnu95

3. install
python setup.py install]]></description><category></category></item><item><title><![CDATA[c语言的字符数组]]></title><link>https://blog.youkuaiyun.com/ArthurBryant/article/details/7226856</link><guid>https://blog.youkuaiyun.com/ArthurBryant/article/details/7226856</guid><author>ArthurBryant</author><pubDate>Wed, 01 Feb 2012 22:25:09 +0800</pubDate><description><![CDATA[c语言字符数组的结束符
c语言并不要求字符数组的最后一个字符为‘\0’。
例如
 char str1[] = {'a', 'b', 'c'}; sizeof(str1) = 3;
 char str2[] = {'a', 'b', 'c', '\0'}; sizeof(str1) = 4;
但当使用printf函数打印没有结束符的字符数组的时候就会出错.
printf("%s\n",]]></description><category></category></item><item><title><![CDATA[python中的变长参数]]></title><link>https://blog.youkuaiyun.com/ArthurBryant/article/details/6957460</link><guid>https://blog.youkuaiyun.com/ArthurBryant/article/details/6957460</guid><author>ArthurBryant</author><pubDate>Thu, 10 Nov 2011 19:28:08 +0800</pubDate><description><![CDATA[python中的变长参数使用*或者**来表示

*表示元组

**表示字典

调用如下，注意调用时候一定要加上*和**

def p(*argv, **dict):

for a in argv:

print a

for d in dict:

print d

m = ('a', 'b', 'c')

n = {'name':'arthur', 'ag]]></description><category></category></item><item><title><![CDATA[php执行shell命令是的权限问题]]></title><link>https://blog.youkuaiyun.com/ArthurBryant/article/details/6955286</link><guid>https://blog.youkuaiyun.com/ArthurBryant/article/details/6955286</guid><author>ArthurBryant</author><pubDate>Thu, 10 Nov 2011 11:00:48 +0800</pubDate><description><![CDATA[问题： php在执行shell时使用的默认用户为nobody用户，因此引起命令无法执行返回结果为空的问题。
解决：转换为root或者相应的用户来执行命令
eg: shell_exec('sudo -u root -S your_command');
需要的配置：
a. 配置nobody用户的sudo权限，修改/etc/sudoers
chmod u+x /etc/sudoers
在ro]]></description><category></category></item><item><title><![CDATA[Using sqoop to move data from mysql to hive]]></title><link>https://blog.youkuaiyun.com/ArthurBryant/article/details/6670294</link><guid>https://blog.youkuaiyun.com/ArthurBryant/article/details/6670294</guid><author>ArthurBryant</author><pubDate>Mon, 08 Aug 2011 18:54:25 +0800</pubDate><description><![CDATA[Sqoop only works with CDH3, so we have to install CDH3.

To
 install CDH3 on a Red Hat system:


Add the yum repository
 of your choi]]></description><category></category></item><item><title><![CDATA[php]]></title><link>https://blog.youkuaiyun.com/ArthurBryant/article/details/6670290</link><guid>https://blog.youkuaiyun.com/ArthurBryant/article/details/6670290</guid><author>ArthurBryant</author><pubDate>Mon, 08 Aug 2011 18:53:50 +0800</pubDate><description><![CDATA[1. == vs ===

==

$str = “0d52”;

If (0==$str)

{echo “真”}

Else

{echo “假”}

这个程序运行的结果出人意料， “0d52”居然

被PHP认为和0相等了。

执行关系运]]></description><category></category></item><item><title><![CDATA[Automaticlly deploy Hadoop on cluster]]></title><link>https://blog.youkuaiyun.com/ArthurBryant/article/details/6670286</link><guid>https://blog.youkuaiyun.com/ArthurBryant/article/details/6670286</guid><author>ArthurBryant</author><pubDate>Mon, 08 Aug 2011 18:51:55 +0800</pubDate><description><![CDATA[尽可能做到全自动配置，但是目前还需要一些手工参与。

1. background

10台vm




10.10.97.150

namenode



10.10.97.151

jobtracker



10.10.97.152~]]></description><category></category></item><item><title><![CDATA[eclipse搭建hadoop 0.20.2开发环境.]]></title><link>https://blog.youkuaiyun.com/ArthurBryant/article/details/6670284</link><guid>https://blog.youkuaiyun.com/ArthurBryant/article/details/6670284</guid><author>ArthurBryant</author><pubDate>Mon, 08 Aug 2011 18:51:05 +0800</pubDate><description><![CDATA[1.
 两种选择
1）使用eclipse-plugin
 for hadoop
遇到的问题 error:“run on hadoop”没反应。

eclipse plugin for hadoop is out of date. 
You have to use e]]></description><category></category></item><item><title><![CDATA[linux trick]]></title><link>https://blog.youkuaiyun.com/ArthurBryant/article/details/6670283</link><guid>https://blog.youkuaiyun.com/ArthurBryant/article/details/6670283</guid><author>ArthurBryant</author><pubDate>Mon, 08 Aug 2011 18:50:11 +0800</pubDate><description><![CDATA[1. check the version of Linux
# lsb_release -a

2. cp 强制覆盖
Linux cp时总询问是否覆盖,怎样让它不询问直接覆盖?
有两个方法可以解决此问题:
1）.bashrc里面注释掉 Alias cp＝’cp -i’]]></description><category></category></item><item><title><![CDATA[.bash_profile vs .bashrc && /etc/profile vs /etc/bashrc]]></title><link>https://blog.youkuaiyun.com/ArthurBryant/article/details/6670280</link><guid>https://blog.youkuaiyun.com/ArthurBryant/article/details/6670280</guid><author>ArthurBryant</author><pubDate>Mon, 08 Aug 2011 18:49:26 +0800</pubDate><description><![CDATA[.bash_profile and .bashrc

According to the bash man page, .bash_profile is executed for login shells, while .bashrc is executed for inter]]></description><category></category></item><item><title><![CDATA[Insert ASCII Control Characters in Text]]></title><link>https://blog.youkuaiyun.com/ArthurBryant/article/details/6670267</link><guid>https://blog.youkuaiyun.com/ArthurBryant/article/details/6670267</guid><author>ArthurBryant</author><pubDate>Mon, 08 Aug 2011 18:43:01 +0800</pubDate><description><![CDATA[http://www.bo.infn.it/alice/alice-doc/mll-doc/linux/vi-ex/node15.html]]></description><category></category></item><item><title><![CDATA[Scala Programming]]></title><link>https://blog.youkuaiyun.com/ArthurBryant/article/details/6670263</link><guid>https://blog.youkuaiyun.com/ArthurBryant/article/details/6670263</guid><author>ArthurBryant</author><pubDate>Mon, 08 Aug 2011 18:41:05 +0800</pubDate><description><![CDATA[1. 函数式编程


函数编程的理念：方法没有副作用，计算并返回值是方法的唯一目的。
如果某个函数不返回任何有用的值，即返回类型为Unit，那么这个函数唯一能产生的作用就是通过副作用。这不是函数式的风格

2. Array, List, Tuple


Arra]]></description><category></category></item><item><title><![CDATA[mysql远程访问授权]]></title><link>https://blog.youkuaiyun.com/ArthurBryant/article/details/6670261</link><guid>https://blog.youkuaiyun.com/ArthurBryant/article/details/6670261</guid><author>ArthurBryant</author><pubDate>Mon, 08 Aug 2011 18:40:10 +0800</pubDate><description><![CDATA[1. 通过phpmyadmin修改mysql数据库的user表

2. 通过mysql命令行
grant all privileges on *.* to 'username'@remote_host identified by 'password' with grant]]></description><category></category></item><item><title><![CDATA[linux 查看进程信息]]></title><link>https://blog.youkuaiyun.com/ArthurBryant/article/details/6670258</link><guid>https://blog.youkuaiyun.com/ArthurBryant/article/details/6670258</guid><author>ArthurBryant</author><pubDate>Mon, 08 Aug 2011 18:39:47 +0800</pubDate><description><![CDATA[linux 查看进程信息 
ps –aux
查看进程的命令有很多，我只是列出了我最常用的几个。
netstat –tln //查看服务监听端口
netstat      //查看进程号
ps –aux     //查看进程号
ps –aux | more //全部查看]]></description><category></category></item><item><title><![CDATA[设置Cloudera CDH3源镜像（Redhat）]]></title><link>https://blog.youkuaiyun.com/ArthurBryant/article/details/6670245</link><guid>https://blog.youkuaiyun.com/ArthurBryant/article/details/6670245</guid><author>ArthurBryant</author><pubDate>Mon, 08 Aug 2011 18:35:55 +0800</pubDate><description><![CDATA[1. 获取镜像，保存到/opt/mirror/cdh3/目录
wget -mirror http://archive.cloudera.com/redhat/cdh/3/

删除掉其中无用的网页信息。

2. 获取gpg-key

cloudera-cdh3-gpg]]></description><category></category></item><item><title><![CDATA[xampp error: XAMPP is currently only availably as 32 bit application. Please use a 32 bit compatibil]]></title><link>https://blog.youkuaiyun.com/ArthurBryant/article/details/6670244</link><guid>https://blog.youkuaiyun.com/ArthurBryant/article/details/6670244</guid><author>ArthurBryant</author><pubDate>Mon, 08 Aug 2011 18:32:34 +0800</pubDate><description><![CDATA[centos 5.4 64位系统上运行,查看glibc安装好了。

运行命令/opt/lampp/bin/php出错：
./lampp/bin/php: error while loading shared libraries: /opt/lampp/lib/libsybd]]></description><category></category></item><item><title><![CDATA[FreeBSD下MongoDB数据库的安装]]></title><link>https://blog.youkuaiyun.com/ArthurBryant/article/details/6670226</link><guid>https://blog.youkuaiyun.com/ArthurBryant/article/details/6670226</guid><author>ArthurBryant</author><pubDate>Mon, 08 Aug 2011 18:24:52 +0800</pubDate><description><![CDATA[MongoDB是C++开发的一款开源、无模式的文档型数据库，具有高性能、易部署、易使用、数据存储方便等特点；MongoDB采用Bson(binary json)的形式存储数据，无锁，无事务，有索引，支持集群和分片功,可动态增删结点。 
实验环境： 
系统：FreeBSD 8.]]></description><category></category></item><item><title><![CDATA[Using IntelliJ IDEA to develop Lift applications]]></title><link>https://blog.youkuaiyun.com/ArthurBryant/article/details/6670224</link><guid>https://blog.youkuaiyun.com/ArthurBryant/article/details/6670224</guid><author>ArthurBryant</author><pubDate>Mon, 08 Aug 2011 18:24:11 +0800</pubDate><description><![CDATA[Using
 IntelliJ IDEA to develop Lift applications

At the moment (in absence of a proper Lift plug-in for IntelliJ), you can use IntelliJ]]></description><category></category></item><item><title><![CDATA[MongoDB]]></title><link>https://blog.youkuaiyun.com/ArthurBryant/article/details/6670221</link><guid>https://blog.youkuaiyun.com/ArthurBryant/article/details/6670221</guid><author>ArthurBryant</author><pubDate>Mon, 08 Aug 2011 18:23:13 +0800</pubDate><description><![CDATA[1. MongoDB

    In MongoDB there are no server-side joins.

    Generally, you will want one database collection for each of your top]]></description><category></category></item></channel></rss>