unable to correct problems you have held broken packages

OS:  Ubuntu 14.04

When installing a ubuntu desktop KDE,  some error  like “unable to correct problems you have held broken packages” happen.  So I finally found the problm is the package python3-software-properties is too new and can’t be compatible with the kde package. The soluation is follling:

sudo apt-get remove python3-software-properties

sudo apt-get install python3-software-properties=0.92.36

在百度的最后一天

今天(2015-03-13)是办理离职流程的最后一天。归还公司的资产,到财务结清工资并拿离职证明。过程还比较顺利。感觉有些轻松又有些伤感。从2012年9月入职到现在离开,时间过的可真快。有成长,有郁闷,有辛酸,现在真有些不是滋味。或许以后还会再回来,不知道。人生有几个三年,来回折腾人生。有些老了,或许不够壮志,但路要走得稳。希望自己在新单位发展如意!

luarocks安装–Failed loading manifest

使用luarocks安装lunit,出现下面报错:

jerry@ubuntu:~$ sudo luarocks install lunit
Warning: Failed searching manifest: Failed fetching manifest for https://raw.githubusercontent.com/torc h/rocks/master – Failed downloading https://raw.githubusercontent.com/torch/rocks/master/manifest
Warning: Failed searching manifest: Failed fetching manifest for https://raw.githubusercontent.com/rock s-moonscript-org/moonrocks-mirror/master – Failed downloading https://raw.githubusercontent.com/rocks-m oonscript-org/moonrocks-mirror/master/manifest

Error: No results matching query were found.

经查发现https://raw.githubusercontent.com/torch/rocks/master/manifest这个地址无法连接。只好切换另一个服务器了

方法1:

sudo luarocks install –verbose –only-server=http://rocks.moonscript.org lunit

方法2:

jerry@ubuntu:~$ mkdir ~/.cache/luarocks/https___rocks.moonscript.org

jerry@ubuntu:~$ sudo wget https://rocks.moonscript.org/manifest-5.1 -O ~/.cache/luarocks/https___rocks.moonscript.org/manifest-5.1

 

 

查看端口是否占用

环境 :CentOS

[root@sandbox ~]# lsof -i:80
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
httpd 1118 root 4u IPv6 9178 0t0 TCP *:http (LISTEN)
httpd 1255 apache 4u IPv6 9178 0t0 TCP *:http (LISTEN)
httpd 1256 apache 4u IPv6 9178 0t0 TCP *:http (LISTEN)
httpd 1257 apache 4u IPv6 9178 0t0 TCP *:http (LISTEN)
httpd 1258 apache 4u IPv6 9178 0t0 TCP *:http (LISTEN)
httpd 1259 apache 4u IPv6 9178 0t0 TCP *:http (LISTEN)
httpd 1260 apache 4u IPv6 9178 0t0 TCP *:http (LISTEN)
httpd 1261 apache 4u IPv6 9178 0t0 TCP *:http (LISTEN)
httpd 1262 apache 4u IPv6 9178 0t0 TCP *:http (LISTEN)

Spark Initial job has not accepted any resources; check your cluster UI to ensure that workers are registered and have sufficient memory

环境:spark 1.1

spark-shell启用的时候一直出现这个提示:

Initial job has not accepted any resources; check your cluster UI to ensure that workers are registered and have sufficient memory

查了一下午才明白,需要在master结点上做如下修改:

vi /etc/spark/conf/spark-defaults.conf

添加一项

spark.driver.memory=10g

注:spark.driver.memory表示master的memory大小设置, 而spark.executor.memory代表worker结点内存大小。

员工卡戏剧性找回

今天是新年上班的第一天,刚坐到椅子上就发现之前丢失的员工卡。之前记得是在办公区丢的,没想到竟然在自己的座椅后面。(这是第二次丢了,又花了一百)已经重办了也没办法退了。下回可得多留心些!