package copyfile; import java.io.File;import java.io.FileInputStream;import java.io.FileOutputStream;import java.io.FileNotFoundException;import java.io.IOException; public class CopyFile {    /**     * 如果操作字符串的话还可以实现mac的命名方式     * 这是同文件夹下的文件复制     *…
6个月没写代码了 现在从头开是学 又遇到了很基础的问题 以前配环境变量的时候  配过classpath  其实不要配classpath  因为运行的时候会优先去classpath去找 class文件  如果没有会出现找不到主类之类的问题…
摩根斯坦利 - 2016年09月8日 面试题: 给定一个 Map<Person, Object> map = new HashMap<Person, Object>(); 放入2个Person,如果id相同,则判定2个Person为相同. 然后修改id,再去判定. package cn.itcast.test; import java.util.HashMap;import java.util.Map; public class TestHashMap {    public st…
1.解决了ScrollView滑动冲突问题. 2.设置好了“查看详解”与“题目编号”的部分. 3.完成了app启动图片的设置,并在启动的过程中开辟新的线程连接服务器并开启监听数据. 别忘了注册启动Activity,并设置为app启动项. 参考:http://www.iteye.com/problems/62343  http://www.cnblogs.com/mybkn/archive/2012/07/18/2597347.html 4.mCsv.setEnabled(true);设置是否可以…
2016年12月31日 星期六 --出埃及记 Exodus 21:26 "If a man hits a manservant or maidservant in the eye and destroys it, he must let the servant go free to compensate for the eye. 人若打坏了他奴仆或是婢女的一只眼,就要因他的眼放他去得以自由.…
2016年12月30日 星期五 --出埃及记 Exodus 21:25 burn for burn, wound for wound, bruise for bruise.以烙还烙,以伤还伤,以打还打.…
2016年12月29日 星期四 --出埃及记 Exodus 21:24 eye for eye, tooth for tooth, hand for hand, foot for foot,以眼还眼,以牙还牙,以手还手,以脚还脚,…
2016年12月28日 星期三 --出埃及记 Exodus 21:23 But if there is serious injury, you are to take life for life,若有别害,就要以命偿命,…
2016年12月27日 星期二 --出埃及记 Exodus 21:22 "If men who are fighting hit a pregnant woman and she gives birth prematurely but there is no serious injury, the offender must be fined whatever the woman's husband demands and the court allows. 人若彼此争斗,伤害有孕的妇人,甚至坠…
如何阅读一本书——心得 ——2016年2月12日 要达到阅读的所有目的,就必须在阅读不同书籍的时候,运用适当的不同速度.读的太快或太慢,都一无所获. 四个阅读层次:①基础阅读,具有基本阅读的能力,包括认识字,懂得词,知会句子的基本意思等.②检视阅读(也是判断一本书是否值得分析阅读和主题阅读标准的形成过程),分为两层:第一层阅读作者,前言,包括索引,目录等内容形成大致书籍的轮廓,第二层是略读,即粗浅的阅读,把不懂或不熟悉的内容略去,只读读得懂的部分,快速的把整本书读完,但是在这个过程中最重要的就是…
array,list,dataframe索引切片操作 2016年07月19日——智浪文档 list,一维,二维array,datafrme,loc.iloc.ix的简单探讨 Numpy数组的索引和切片介绍: 从最基础的list索引开始讲起,我们先上一段代码和结果: a = [0,1,2,3,4,5,6,7,8,9] a[:5:-1] #step < 0,所以start = 9 a[0:5:-1] #指定了start = 0 a[1::-1] #step < 0,所以stop = 0 输出: […
整个流程: 1.程序告诉cpu,程序将要使用一个变量.(暂时不一定用到,先说一下.) 2.程序告诉CPU,程序现在就要使用一个变量.(现在就用) 3.cpu按照这个变量的类型,把内存划分出几个单位(byte)的空间,这个空间用来存储程序需要使用的变量. 4.CPU将这个变量代表的具体数据按照该变量的数据类型将具体的数据填充进对应的内存空间中.------------变量声明 现在知道的有2种:int a; extern a; int a ; 一定包含1.:有可能包含2.3.4.[4.CPU可能会…
Yoshua Bengio最新演讲:Attention 让深度学习取得巨大成功(46ppt) Yoshua Bengio,电脑科学家,毕业于麦吉尔大学,在MIT和AT&T贝尔实验室做过博士后研究员,自1993年之后就在蒙特利尔大学任教,与 Yann LeCun. Geoffrey Hinton并称为“深度学习三巨头”,也是神经网络复兴的主要的三个发起人之一,在预训练问题.为自动编码器降噪等自动编码器的结构问题和生成式模型等等领域做出重大贡献.他早先的一篇关于语言概率模型的论文开创了神经网络做语言…
2016年12月26日 星期一 --出埃及记 Exodus 21:21 but he is not to be punished if the slave gets up after a day or two, since the slave is his property.若过一两天才死,就可以不受刑,因为是用钱买的.…
2016年12月25日 星期日 --出埃及记 Exodus 21:20 "If a man beats his male or female slave with a rod and the slave dies as a direct result, he must be punished,人若用棍子打奴仆或婢女,立时死在他的手下,他必要受刑.…
2016年12月24日 星期六 --出埃及记 Exodus 21:19 the one who struck the blow will not be held responsible if the other gets up and walks around outside with his staff; however, he must pay the injured man for the loss of his time and see that he is completely hea…
2016年12月23日 星期五 --出埃及记 Exodus 21:18 "If men quarrel and one hits the other with a stone or with his fist and he does not die but is confined to bed,人若彼此相争,这个用石头或是拳头打那个,尚且不至于死,不过躺卧在床,…
2016年12月22日 星期四 --出埃及记 Exodus 21:17 "Anyone who curses his father or mother must be put to death.咒骂父母的,必要把他治死.…
2016年12月21日 星期三 --出埃及记 Exodus 21:16 "Anyone who kidnaps another and either sells him or still has him when he is caught must be put to death.拐带人口,或是把人卖了,或是留在他手下,必要把他治死.…
2016年12月20日 星期二 --出埃及记 Exodus 21:15 "Anyone who attacks his father or his mother must be put to death.打父母的,必要把他治死.…
2016年12月19日 星期一 --出埃及记 Exodus 21:14 But if a man schemes and kills another man deliberately, take him away from my altar and put him to death.人若任意用诡计杀了他的邻舍,就是逃到我的坛那里,也当捉去把他治死.…
2016年12月18日 星期日 --出埃及记 Exodus 21:13 However, if he does not do it intentionally, but God lets it happen, he is to flee to a place I will designate.人若不是埋伏着杀人,乃是 神交在他手中,我就设下一个地方,他可以往那里逃跑.…
2016年12月17日 星期六 --出埃及记 Exodus 21:12 "Anyone who strikes a man and kills him shall surely be put to death.打人以致打死的,必要把他治死.…
2016年12月16日 星期五 --出埃及记 Exodus 21:11 If he does not provide her with these three things, she is to go free, without any payment of money.若不向她行这三样,她就可以不用钱赎,白白地出去.…
2016年12月15日 星期四 --出埃及记 Exodus 21:10 If he marries another woman, he must not deprive the first one of her food, clothing and marital rights.若另娶一个,那女子的吃食,衣服,并好合的事,仍不可减少.…
2016年12月14日 星期三 --出埃及记 Exodus 21:9 If he selects her for his son, he must grant her the rights of a daughter.主人若选定她给自己的儿子,就当待她如同女儿.…
2016年12月13日 星期二 --出埃及记 Exodus 21:8 If she does not please the master who has selected her for himself, he must let her be redeemed. He has no right to sell her to foreigners, because he has broken faith with her. 主人选定她归自己,若不喜欢她,就要许她赎身,主人既然用诡诈待她,就没有权柄…
2016年12月12日 星期一 --出埃及记 Exodus 21:7 "If a man sells his daughter as a servant, she is not to go free as menservants do.人若卖女儿作婢女,婢女不可像男仆那样出去.…
2016年12月11日 星期日 --出埃及记 Exodus 21:6 then his master must take him before the judges. He shall take him to the door or the doorpost and pierce his ear with an awl. Then he will be his servant for life. 他的主人就要带他到审判官那里(审判官或作 神下同),又要带他到门前,靠近门框,用锥子穿他的耳朵,他就…
2016年12月10日 星期六 --出埃及记 Exodus 21:5 "But if the servant declares, `I love my master and my wife and children and do not want to go free,'倘或奴仆明说,我爱我的主人和我的妻子儿女,不愿意自由出去.…