LionBule
lionbule · 共 186 篇文章
mysql-5.7.21-linux-glibc2 安装
官方资料: https://dev.mysql.com/doc/refman/5.7/en/binary-installation.html Initializing the Data Directory Manually Using mysql_install_db https://dev.mysql.com/doc/refman/5.7/en/data-directory-initialization-mysql-install-db.html
2018-04-13 14:35 · 设计模式 · 评论(0)
mac 安装anaconda 并配置mirror
[1]anaconda安装 官方资料:https://docs.anaconda.com/anaconda/install/mac-os 国内安装文件下载:https://mirrors.tuna.tsinghua.edu.cn/anaconda/archive/ [2]配置镜像 conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/ conda config --set show_channel_urls yes [3] anaconda 的优势 集成python虚拟环境,集成…
2017-11-29 11:29 · python · 评论(0)
raspbian 配置软件更新源
raspbian (基于debian jessie) 编辑/etc/apt/sources.list文件(需要使用sudo), 在文件最前面添加以下条目(操作前请做好相应备份) deb http://mirrors.aliyun.com/raspbian/raspbian/ jessie main non-free contrib deb-src http://mirrors.aliyun.com/raspbian/raspbian/ jessie main non-free contrib jessie 是系统版本号,注意更新! 相关链接 官方主页: http://www.raspbian…
2016-06-29 22:20 · 评论(0)
互联网的反恐精英
1、Palantir 情报分析公司 https://www.palantir.com/about/ We believe in augmenting human intelligence, not replacing it. 2、forter 以色列反欺诈公司 http://www.forter.com/ “We can create a completely fraud-free environment for the retailer through which they can make decisions which are solely based on what’s good f…
2016-03-16 20:24 · 其它 · 评论(0)
linux 文件权限 数字解释
linux用三个数字来表示文件的读、写、执行权限: 执行:1 写入:2 读取:4 组合权限时,对应的数字相加。如:读写 4+2=6 chomd -R +x 766 *** 表示递归***文件夹,设置所有者读写执行权限,同组、其它为读写权限.
2014-02-10 15:28 · 操作系统 · 评论(0)
You can't add/del workspace by yourself, use platform please
问题描述: 执行#git push origin master Writing objects: 100% (3/3), 204 bytes | 0 bytes/s, done. Total 3 (delta 0), reused 0 (delta 0) remote: Error: You can't add/del workspace by yourself, use platform please.To https://git.duapp.com /appidxxxxxx/ ! [remote rejected] master -> master (pre-receive hook d…
2013-12-01 12:21 · 配置管理 · 评论(0)
HTML5 Canvas vs. SVG
Canvas 和 SVG 都允许您在浏览器中创建图形,但是它们在根本上是不同的。 SVG SVG 是一种使用 XML 描述 2D 图形的语言。 SVG 基于 XML,这意味着 SVG DOM 中的每个元素都是可用的。您可以为某个元素附加 JavaScript 事件处理器。 在 SVG 中,每个被绘制的图形均被视为对象。如果 SVG 对象的属性发生变化,那么浏览器能够自动重现图形。 Canvas Canvas 通过 JavaScript 来绘制 2D 图形。 Canvas 是逐像素进行渲染的。 在 canvas 中,一旦图形被绘制完成,它就不会继续得到浏览器的关注。如果其位置发生变化,那么整个…
2013-06-11 07:27 · web前端 · 评论(0)
solution for erlide hangs eclipse prolem
Please try with the latest nightly from http://erlide.org/update_nightly, we did some work about similar issues, I hope they will solve yours too. It would help to see the log from /erlide.log. You can also open the launch configuration from run->configurations and see if there is some weird value …
2013-05-26 09:01 · Erlang · 评论(0)
Sublime Package Control
今天主要介绍Sublime Text2 的 package control. 资料地址: http://wbond.net/sublime_packages/package_control/installation Installaton Please note that the following method can not validate the sublime.wbond.net SSL certificate. If you have concern over the security of the download, please follow the Manual Instr…
2013-05-19 09:20 · 其它 · 评论(0)
毕达哥拉斯 三角形数和正方形数
如题: 古希腊著名的毕达哥拉斯学派把1、3、6、10…这样的数称为“三角形数”,而把1、4、9、16的称为“正方形数”,从图中可以发现,任何一个大于1的“正方形数”都可以看作两个相邻“三角形数”之和。下列等式中,符合这一规律的是() A、13=3+10 B、25=9+16 C、36=15+21 D、49=18+31 理论: 1、三角形数 1,2,3,4 -> 1,(1+2),(1+2+3),(1+2+3+4) -> 1,3,6,10 2、正方形数 1,2,3,4 -> (1*1),(2*2),(3*3),(4*4) -> 1,4,9,16 分析: 任何一个大于1的“正方形数”都可以看作两个相…
2013-05-02 16:09 · 其它 · 评论(0)
dos2unix 命令
dos2unix 主要解决特殊字符的问题 简单的用法案例: $dos2unix xxx.txt help信息: $ dos2unix -h dos2unix Copyright (c) 1994-1995 Benjamin Lin Copyright (c) 1998 Bernd Johannes Wuebben (Version 3.0) Copyright (c) 1998 Christian Wurll (Version 3.1) Usage: dos2unix [-hkqV] [-c convmode] [-o file ...] [-n infile outfile ...] -h…
2013-02-28 16:08 · 操作系统 · 评论(0)
Truth Value Testing (Python)
Any object can be tested for truth value, for use in an if or while condition or as operand of the Boolean operations below. The following values are considered false: None False zero of any numeric type, for example, 0 , 0L , 0.0 , 0j . any empty sequence, for example, '' , () , [] . any empty map…
2012-12-20 16:37 · python · 评论(0)
python 时间的概念要点
1、在Python中,通常有这几种方式来表示时间:时间戳 、格式化的时间字符串 、元组(struct_time共九个元素)。由于Python的time模块实现主要调用C库,所以各个平台可能有所不同。 2、UTC(Coordinated Universal Time,世界协调时)亦即格林威治天文时间,世界标准时间。在中国为UTC+8。DST(Daylight Saving Time)即夏令时。 3、时间戳(timestamp)的方式:通常来说, 时间戳表示的是从1970年1月1日00:00:00开始按秒计算的偏移量 。我们运行“type(time.time())”,返回的是float类型。返回…
2012-11-20 13:34 · python · 评论(0)
学会看到别人的优点
学会看到别人的优点 经常有人在我面前谈论另外一个人的缺点。我就问他,这个人有没有优点?他总是看着我,回答不出来。 其实,他们说的这个人的缺点是存在的;但是,这个人的优点也是明显的存在的。然而,总是有一些人看不到他的优点,看到的都是他的缺点。 生活中这样的情形很多。不是有的人身上真的没有优点,实在是因为有的人看不到别人身上的优点。 做人的道理有很多很多,我体会,有一点是十分重要的,这就是要学会看到别人的优点。 人活在世上,不是一个人单独的活在自己的生活里的。人是社会的人,是需要与别人相处的。但是,人与人之间的相处,不是石头与石头堆在一起,也不是木头鱼木头捆在一起。人与人在一起,是需要有感情的,…
2012-08-24 22:23 · 其它 · 评论(0)
spring import jar中的bean配置文件
在spring中import resource file,有两种情况:classes目录和jar包 如果资源文件在classes目录: <import resource="classpath:xxx.xml" /> 备注: 1、目录下的文件 如:classes/bean/test.xml <import resource="classpath:bean/test.xml" /> 如果资源文件在jar包中: <import resource="classpath*:xxx.xml" /> 1、注意在classpath后加*号 2、如果加载jar包中某个目录下的文件,如下 <import res…
2012-06-12 17:28 · Java编程 · 评论(1)