Java:The BASEDIR environment variable is not defined correctly

Java:The BASEDIR environment variable is not defined correctly

由于Tomcat包是别人给的,启动tomcat 报: The BASEDIR environment variable is not defined correctly This environment variable is needed to run this program [root@mfs_1 bin]# ./catalina.sh start The BASEDIR environment variable is not defined correctly This environment variable is needed to run this program [root@m
阅读 192 次
vim 中文显示乱码

vim 中文显示乱码

**vim 中文显示乱码解决方案** vim 显示乱码如下, ![](https://res.lssin.com/upload/201603/20160325/12_689f2df4e1d1cff73c0b.jpg) 编辑~/.vimrc文件,加上如下几行 # vim ~/.vimrc set fileencodings=utf-8,ucs-bom,gb18030,gbk,gb2312,cp936 set termencoding=utf-8 set encoding=utf-8
阅读 172 次
shCoreDefault.css和 bootstrap.min.css 样式冲突

shCoreDefault.css和 bootstrap.min.css 样式冲突

bootstrap 和 shCoreDefault.css 2个插件代码中都引用了container,造成在代码高亮度时,代码和行号不对齐,在firefox,中正常,但是在chroom 中就会出现代码和行号不对齐,查看源码发现是 container:before 起作用了 修改: 将 圈里面的container 类改成任意一个类名就可以了,比如:abccontainer ![](https://res.lssin.com/upload/201601/20160112/21_6f4a1957e17cc67aea11.jpg)
阅读 327 次
UnicodeEncodeError: 'ascii' codec can't encode

UnicodeEncodeError: 'ascii' codec can't encode

python 编码,ascii转utf8 Traceback (most recent call last): File "./Secure.py", line 50, in MonitorSecreLog print ManMail(ToList,Subject,'\n'.join(SendInfo),'str') File "/python/lib/LocalMail.py", line 133, in ManMail FileInfo = StrSize(Conntent) File "/python/lib/LocalMail.py", line 105, in StrSize Tmp
阅读 171 次