之前180度翻转屏幕后无法恢复,错误提示为”Display preferences pane cloud not be loaded”。试过网上说的各种方法都无法恢复,甚至升级一个新的mac os都无法奏效。最终的恢复方法是找一个显示器,接入mac的hdmi,在该显示屏幕上恢复回正常的显示效果。
作者:hqiang1984
Datanode denied communication with namenode
环境: hadoop 2.6
查看日志 org.apache.hadoop.hdfs.server.protocol.DisallowedDatanodeException: Datanode denied communication with namenode
在hdfs-site.xml添加如下:
<property>
<name>dfs.namenode.datanode.registration.ip-hostname-check</name>
<value>false</value>
</property>
hive使用postgresql启动问题No suitable driver found
环境:CentOS 6.4, hadoop 2.6, hive 1.1,postgresql 9.4
在启动hive的时候出现No suitable driver found for jdbc:postgres://xxx.xxx.xxx.xxx:5432/hive
依据提示是说postgresql jdbc包找不到,反复确认包是存在lib文件夹内。
最终发现hive-site.xml中的
<value>jdbc:postgres://xxx.xxx.xxx.xxx:5432/hive</value> 的问题。修改为
value>jdbc:postgresql://xxx.xxx.xxx.xx:5432/hive</value>即可
期货合约代码表
http://wenku.baidu.com/link?url=tSDHwkZ8jxPshAShLtIEsI77CBSpWMO7eqNd1yn0LdOVH6KMwvBm83dm9FaPrUUBFgAVzo_arzwV0_NZI21fVetJUowvpcx2wQU0ZFhlmh3
Micrsoft开源的lightLDA
环境:Ubuntu 14.04
git clone https://github.com/Microsoft/lightlda.git
cd lightlda/
vi build.sh
修改如下:
#git clone https://github.com:Microsoft/multiverso.git
git clone https://github.com/Microsoft/multiverso.git
sh build.sh
cd example
export LD_LIBRARY_PATH=~/lightlda/multiverso/third_party/lib:$LD_LIBRARY_PATH
sh nytimes.sh
DMLC XGBoost安装使用
环境:Ubuntu 14.04
git clone https://github.com/dmlc/xgboost.git
cd xgboost
编译
make cxx11=1
运行示例
cd demo/binary_classification
../../xgboost mushroom.conf
安装python包
cd ~/xgboost/python-package
sudo python setup.py install
工行办理手机号更过
今天下午两点左右在附近的工行办理手机号更改业务,几乎等了一个多小时都没弄好。效率奇低!这样的银行存在真是浪费纳税人的金钱。
Chrome上的sqlite在windows 7位置
环境: Windows 7
Chrome浏览器会把浏览记录信息等放在sqlite数据库上,它的位置在C:\\Users\\{username}\\AppData\\Local\\Google\\Chrome\\User Data\\Default目录下,有一个命名为History的文件就是浏览记录。
备案,拜拜
前一段时间弄了一下备案,麻烦透啦,而且还没通过。只好再租了香港的服务器把Wordpress部署上去,这样万恶的备案滚一边去。