- 亲子日记344:写毛笔作品
戴骁勇
2018.05.07周一晴学校老师指定了儿子和其他几个同学写毛笔书法作品,内容是关于家训家风的,纸张要求四尺三开。儿子很高兴,比较积极的去想法子完成这个任务。宣纸在嘉汇文具店买到了,但是没有规定的四尺三开纸,我们买了大的,需要自己裁剪。回家后我来裁纸,儿子自己上网找内容。最后我们确定写这一句:忠厚传家久,诗书继世长。儿子也很认同这句的内容,于是开写。儿子先用普通的练字纸写了两遍,然后在宣纸上写了起
- 962.读书85~《湮灭》
摹喵居士
2018.09.26故弄玄虚挖了无数大坑。2018.05.07(周一)《湮灭》-0101起始我们一行共四人:一名生物学家、一名人类学家、一名勘测员,以及一名心理学家。我是生物学家。这一次,我们全是女性。、为什么全是女性?我们最特殊的外界装备包括一种测量装置,每人配发了一台,悬在腰带上:黑色的长方形金属小盒,中间有个玻璃覆盖的孔。如果那个孔发出红光,我们有三十分钟时间转移至“安全地点”。我们不知道那
- 2018-05-14
金方东
姓名:金方东时间:2018年5月14日【日精进打卡第9日】一、【知~学习】干法第一章第五节二、【经典名句分享】只要拼命工作,就能带来不可思议的好运三、【行~实践】1.修身:今天户外活动打羽毛球2.齐家:3.建功;无四【省~觉悟】五【感谢】感谢公司给予我们一次户外活动大家都能放松自己六【积善】给路人指引方向七【志愿】【打卡始于2018.05.07,持续打卡于2018.05.14】
- 诵读《人生如一壶禅茶》
阿丹_4ee9
2018.05.07茶在众生的心里,有不同的味道。那一壶用静水煮沸的新茶,在茶客的唇齿间回绕,品后有人似觉苦若生命,也有人淡如清风。茶有浓淡,有冷暖,亦有悲欢。用一颗俗世的心品茶,难免执著于色、香、味,则少了一份清淡与质朴。茶有了万千滋味,甚至融入了世事与情感。用一颗出离的心品茶,便可以从容地享受飞云过天、绿水无波的静美。茶,源于自然,汲日月精华,沐春秋洗礼,从而有了如此山魂水魄的灵性。茶可以洗去
- 怎样才是最好的学习
天涯海角_a50e
------樊登读书会名句摘要2018.05.07图片发自App图片发自App图片发自App图片发自App图片发自App图片发自App图片发自App图片发自App图片发自App
- 币安:“我想站着把钱赚了”
UP链参
image一则推特,一场纷争2018.05.07,来自币安方面的一则推特:image译:未来申请上币安的项目需要披露是否接受了红杉资本的直接或间接投资这则推特将币安与红杉资本不久前的过往再次放在了大众眼前,大致是币安在刚成立之初与红杉资本就融资进行洽谈,后来由于币安成长过快,双方就估值产生分歧进而谈判破裂,随后闹上法庭。在很多人看来,作为币安简单直给西式风格精神代表的CZ,在这次事件中,仿佛化身加
- 日念一好,2018.05.07
邓彩凤
念闻哥好,中午在外面吃饭还记着我吃没吃饭,我闻哥真体贴,谢谢你有你真好念女儿好,每天坚持读语录,每日践行双五一好,现在考试前不紧张啦,心态很好,加油宝贝念儿子好,以前考前从不复习的儿子现在知道复习,抓重点,还和邻居同学讨论明天可能出现的题目,妈妈为你点赞念自己好,每日践行双五一好:早上好,一天愉快!我想……可以吗?回来啦,今天高兴吗?晚上好!一天辛苦啦!晚安!做个好梦!叠被子,刷池子,静机子,复位
- 2018.05.07
蔷薇季2017
昨晚给姐姐和弟弟洗漱好后,姐姐要求看书做游戏,正好我也想起姐姐学校的阅读任务还没完成,于是答应姐姐陪她看书,姐姐自己选了一本"阶梯数学",我看着阶梯数学内容太多,等孩子看完书估计都十点了,于是要求看另一本,陪姐姐看书期间,弟弟不停的寻关注,不停抱抱亲亲跳;看完一本书,姐姐还要求再看阶梯数学,在陪姐姐看阶梯数学期间,弟弟自己趴我大腿上翘着小屁股睡着了,没有哄睡、没有关灯、就这么安静的睡着了。而且整晚
- 亲子日记347:魔法速度训练
戴骁勇
2018.05.07周一晴昨天上午是第一次魔法速读训练课,从儿子的反馈来看,效果不错,儿子很感兴趣。课堂上的训练大大提高了儿子的阅读速度和准确度,让儿子找到了阅读了信心。课堂的家庭作业就是天天练习十分钟,拍照发朋友圈,让好友监督。这个发朋友圈的事情,我们已经不陌生,前面硬笔舒服练习就是这样的。儿子今天很努力,回家就把工具找了出来,把对应的卡片放好。开始练习不是很顺利,基本看不清楚上面的词。练了一会
- 2018-05-08
韩喜文
【韩喜文2018.05.07星期二】好展馆让天下没有卖不出去的产品好展馆让天下没有不能传承的文化日精进:849每个人看问题的角度不同,得出的结论也不一样,有个诗句:“横看成岭侧成峰,远近高低各不同”说的一样。看问题的角度不同,得出的结论自然不一样。所以在人生的长河中,我们遇事要多角度,多方位地去思考,千万不要死钻牛角尖。
- 2018.05.07(79-94)
Pheeb
图片发自App图片发自App图片发自App图片发自App图片发自App图片发自App图片发自App图片发自App图片发自App图片发自App图片发自App图片发自App图片发自App图片发自App图片发自App图片发自App琐事记1.姑娘睡了吗?读完书,看了会动画片,8:40就睡啦!所以……作业没完呢?!?群里孩子都要发送《荷叶圆圆》的背诵课文,姑娘还没背…………她都睡了…………平时不管,在姑娘期
- 巧遇
大榮猫的坤
【原创by榮&坤】清晨的一抹遇见或是有意还是无心恰在我不经意的一抬头你不经意的一点头2018.05.07
- 进城的老农(外一首)
亲读
亲读作者:曹焕荣承包地越种越少十亩,五亩,半亩……被工业催赶着,被城市并吞着身份证一换代,农民变居民让脚踏实地的老农高高住在空中空中,也离不开土地临走时搬来故乡一筐土使家扎根土地中让农村,在阳台四季常青从不缺阳光雨露空气开心,靠着土筐放眼远方……吧嗒起旱烟锅,仍像家乡升起的一缕缕炊烟……2018.05.07.
- 【张莉红 焦点解决初级班9期 重庆 坚持分享第72天 2018.05.07】
Me_Lisa
你用什么样的眼光看世界,世界就用什么样的方式回报你前几天同事告诉我的消息,说我们某个领导对我有意见,我请假都不愿意给我签字了,说我请假次数太多了。整个周末,我都陷在这样一个负责情绪当中。我也进行了反思了,最近这一个月,我的假期确实挺多的,开会学习就有三四次,为了私事,也请了一次假。但是我都是属于利用休息时间做工作的人,对领导也是毕恭毕敬的,我想应该不存在吧,但是听同事这么一说,我也开始怀疑自己的判
- 日记2018.05.07
HinaHu
身处飞速向前且不断变革的时代,我们似乎都开始或多或少的焦虑。最近我对焦虑的这种感觉深恶痛绝。起始,3月和4月我在印度待了两个月的时间里,焦虑感下降,那里的人们更注重的是自身身体或者精神的成长,相互讨论的是你今天身体起了何种变化,或者是你今天为了他人付出了什么。而外在的,衣食住行,却是为了方便而力求简单。这也是我为何喜欢去印度的原因之一。走过好几个慢节奏的国家,泰国也好,俄罗斯也好,每一处都不能给到
- 2018.05.07
阿Li阿
姓名:施效力部门:业务部职位:业务员【知~学习】读六项精进三遍【内容感悟分享】努力做好当下的事情,朝前看【行~实践】出差,拜访三家进出口公司一、修身:看有关于销售的书二、齐家:洗了碗三、建功:拜访3家客户【省~觉悟】对症下药,缺少什么,去获取什么【感谢】:感谢客户的信任【志愿】:本月杭州出差【打卡始于2018年4月2日持续今天第19天】
- [润物无声]2018.05.07DAY17语2英2绘1
人生之过客
今天本来没有心情做践行,因为宝贝感染到了手足口病,幸好不是很严重,没有发烧,所以在家休息治疗!好在小朋友的状态还比较好,要求我给他讲故事,所以还是坚持做了基本的践行。语文:亲子共读两本,自主阅读20分钟!过一遍生字,有些字绘本的读的过程中能认识,单独拎出来又不记得了。说明孩子能连猜带蒙顺下来,还是要多读绘本多复链。听力1小时。英语:牛津树5本海尼曼3本,字母音和字母音单词视频,书写小写英文字母。绘
- 2018-05-11
金方东
姓名:金方东时间:2018年5月11【日精进打卡第5日】一、【知~学习】六项精进默读3遍二、【经典名句分享】只要你认定的事,就要勇敢的去做三、【行~实践】1.修身:每天都早睡早起,俯卧撑100个2.齐家:今天烧了一桌菜请我老婆她们吃3.建功:今天给店里的员工过生日四【省~觉悟】有事者志竟成五【感谢】感谢老婆每天都会叫我起床六【积善】多多帮助员工七【志愿】【打卡始于2018.05.07,持续打卡于2
- 2018―05―07 日精进打卡
透明的水泡
姓名:叶彩霞【日精进打卡第027天】2018.05.07第367期(无锡市)乐观三组学员【知~学习】1、《六项精进》大纲背诵3遍,共81遍;2、《大学》开篇背诵3遍,共81遍;3、《大学》通篇诵读听一遍;4、六项精进通篇看一遍。【经典名句分享】人生如行路,一路艰辛,一路风景。你目光所及,就是你的人生境界。【行~实践】一、修身:1、努力控制自己的情绪;2、要谦虚,不要骄傲;3、坚持每天都有个好心情;
- 2018.05.07柒蕴大学
兰淼
今天西北狼过来给我们进行两天的魔鬼训练,学习了从眼神眉毛表情坐姿等微表情对人的心理进行了解读,“看听说演,用心于行”,和从“道、术、礼”三方面帮助我们学会销售和成交。感悟人的状态很重要,状态大于能力,站上舞台必须要有一个好的状态。人生付出的代价越大,会越努力。下午到晚上的小组pk也看到了我们的组长是那么的辛苦的坚持做俯卧撑,心理很心疼,感觉到作为一个团队的负责人来为我们小组负责的时候会很沉重,也更
- 整脊心得
洹_bf2c
2018.05.07经过3天的整脊。收获是满满地。主要是意识有很大的提升。会去关注了平日里的生活细节,去好好地爱身体。第1天.抱着试试地心态去到张道长家,一进门有种道家的氛围,道长好年轻。因为着急要返回,所以没有跟道长多聊,直接进入主题。在张道长一番调理后。感觉舒服很多。事后我有一种很久以前就有这些动作的意识。不知我是臆想的,还是在潜意识里有这种画面。很期待地后面两天调理如何。第2天.是以加班的名
- 黄于峰 【乐观组】精进打卡 2018.05.07
黄于峰
【日精进打卡第133天】【知~学习】《六项精进-大纲》1遍共2遍累计309遍《大学》1遍共2遍累计307遍【经典名句分享】1、每个不愉快的思想,都是放进身体里的坏东西。2、爱和感恩可以解除所有的负面性,并消除任何疾病!【行~实践】一、修身:(对自己个人)1、坚持践行六项精进2、诵读六项精进大纲,大学修身:(利他:为帮扶对像做的事)无修身:(爱的传递:给身边同事做的)1、分享泡腾片二、齐家:(对家庭
- 文先森的日常~~8
纹_
日精进打卡第128天姓名:李文杰(四爷)公司:中国太平人寿日期:2018.05.07【知~学习】《六项精进》大纲1遍,累计共286遍《大学》开篇2遍,累计共286遍《六项精进》通篇0遍,累计305遍《劝学》节选3遍,累计57遍《活法》《吴晓波频道》《道德经》《培训微课堂》【经典名句分享】【行~实践】{修身}:1、收听《人民日报》语音版,每天吸收正能量。坚持学习《吴晓波频道》,收听经信息,收听《王辰
- 陈仁锋【谦虚组】精进打卡2018.05.07
阅_读_人_生
【日精进打卡第101天】【知~学习】《六项精进》2遍共122遍《大学》2遍共122遍【经典名句分享】大道之行也,天下为公【行~实践】一、修身:(对自己个人)修身_利他:二、齐家:(对家庭和家人)和老妈通话三、建功:(对工作)处理账户否词【省~觉悟】【感谢】感谢公司提供展示自我的平台感谢六项精进教我的人生态度【志愿】我立志“为南京海大全体员工的物质和精神幸福而奋斗,为人类的健康事业做出贡献”!让幸福
- 2018.05.07
慕海春
周一就犯困,因为周六欠费,导致手机无法拨通电话,周一刚好公司帮着充话费,所以才不使得手机停机。老婆中午说想买条睡衣,情侣装的,我说,我对衣服不挑的,合身就可以了。老婆后来又挑了情侣杯,我们一直说要买情侣杯的,却一直没有兑现,因为不知道要买什么的比较好,带盖子不带盖子的?有没勺子的?玻璃的还是陶瓷的?要不要盖子?其实这些对我而言,并不怎么关注,我就是觉得跟老婆一起用啥都挺开心的。当然也不能光顾着让自
- 周明善【乐观组】精進打卡2018.05.07
周明善
【日精进打卡第133天】【知~学习】《六项精进》2遍共276遍《大学》2遍共230遍【经典名句分享】君子贵人贱己,先人而后己。【行~实践】一、修身:(对自己个人)反思自己的不足,提高时间利用率修身:(利他:为帮扶对像做的事)关心同事修身:(爱的传递:给身边同事做的善事)无二、齐家:(对家庭和家人)关心家人三、建功:(对工作)对接地推{积善}:发愿从2017年12月25日起1年内365善事。今日1善
- 嗨逗日常
果果Jasmine
2018.05.07事情这样的,和柒叔视频,我冲他挥手,他却一脸木然,然后我就生气了,说怎么不回应我,然后就有了下面搞笑的表情包对话,看到后面我居然不那么气了耶图片发自App图片发自App图片发自App图片发自App图片发自App图片发自App图片发自App
- 今天太阳真好(新韵)
银河雅士
昨夜雨帘遇朋友,举杯当歌醉意浓。早起晨曦刺眉眼,指尖燃味现犹在。作于2018.05.07早银河
- 【跃迁之路】【456天】刻意练习系列215(2018.05.07)
java
@(跃迁之路)专栏叨叨两句技术的精进不能只是简单的刷题,而应该是不断的“刻意”练习该系列改版后正式纳入【跃迁之路】专栏,持续更新一、SQL【跃迁之路】SQL语句刻意练习(最后更新:2018.05.04)二、JAVA基础IO流【跃迁之路】Java基础——IO流(最后更新:2018.04.16)代码执行顺序【跃迁之路】Java基础——代码执行顺序(最后更新:2018.04.16)反射【跃迁之路】Jav
- 2018.05.07咖啡冥想
空空dj
目标;:5月到7月在税务筹划、财务日常问题处理、准备中级会计职称考试这个三个方面将能力提升到一个阶段。动机:拥有一份五险一金,按照法定节假日休息,年终奖,专业培训,剔除五险一金个人承担部分剩余有4000元以上的会计工作,能够供养父母,有更多的时候与精力去做义工,陪伴老人与小孩。1.今天开始做六时书,我只记录了三个时间段,后面由于自己比较忙就没有做。我知道这个是因为我的种子不够,所以没有做到。2.今
- windows下源码安装golang
616050468
golang安装golang环境windows
系统: 64位win7, 开发环境:sublime text 2, go版本: 1.4.1
1. 安装前准备(gcc, gdb, git)
golang在64位系
- redis批量删除带空格的key
bylijinnan
redis
redis批量删除的通常做法:
redis-cli keys "blacklist*" | xargs redis-cli del
上面的命令在key的前后没有空格时是可以的,但有空格就不行了:
$redis-cli keys "blacklist*"
1) "blacklist:12:
[email protected]
- oracle正则表达式的用法
0624chenhong
oracle正则表达式
方括号表达示
方括号表达式
描述
[[:alnum:]]
字母和数字混合的字符
[[:alpha:]]
字母字符
[[:cntrl:]]
控制字符
[[:digit:]]
数字字符
[[:graph:]]
图像字符
[[:lower:]]
小写字母字符
[[:print:]]
打印字符
[[:punct:]]
标点符号字符
[[:space:]]
- 2048源码(核心算法有,缺少几个anctionbar,以后补上)
不懂事的小屁孩
2048
2048游戏基本上有四部分组成,
1:主activity,包含游戏块的16个方格,上面统计分数的模块
2:底下的gridview,监听上下左右的滑动,进行事件处理,
3:每一个卡片,里面的内容很简单,只有一个text,记录显示的数字
4:Actionbar,是游戏用重新开始,设置等功能(这个在底下可以下载的代码里面还没有实现)
写代码的流程
1:设计游戏的布局,基本是两块,上面是分
- jquery内部链式调用机理
换个号韩国红果果
JavaScriptjquery
只需要在调用该对象合适(比如下列的setStyles)的方法后让该方法返回该对象(通过this 因为一旦一个函数称为一个对象方法的话那么在这个方法内部this(结合下面的setStyles)指向这个对象)
function create(type){
var element=document.createElement(type);
//this=element;
- 你订酒店时的每一次点击 背后都是NoSQL和云计算
蓝儿唯美
NoSQL
全球最大的在线旅游公司Expedia旗下的酒店预订公司,它运营着89个网站,跨越68个国家,三年前开始实验公有云,以求让客户在预订网站上查询假期酒店时得到更快的信息获取体验。
云端本身是用于驱动网站的部分小功能的,如搜索框的自动推荐功能,还能保证处理Hotels.com服务的季节性需求高峰整体储能。
Hotels.com的首席技术官Thierry Bedos上个月在伦敦参加“2015 Clou
- java笔记1
a-john
java
1,面向对象程序设计(Object-oriented Propramming,OOP):java就是一种面向对象程序设计。
2,对象:我们将问题空间中的元素及其在解空间中的表示称为“对象”。简单来说,对象是某个类型的实例。比如狗是一个类型,哈士奇可以是狗的一个实例,也就是对象。
3,面向对象程序设计方式的特性:
3.1 万物皆为对象。
- C语言 sizeof和strlen之间的那些事 C/C++软件开发求职面试题 必备考点(一)
aijuans
C/C++求职面试必备考点
找工作在即,以后决定每天至少写一个知识点,主要是记录,逼迫自己动手、总结加深印象。当然如果能有一言半语让他人收益,后学幸运之至也。如有错误,还希望大家帮忙指出来。感激不尽。
后学保证每个写出来的结果都是自己在电脑上亲自跑过的,咱人笨,以前学的也半吊子。很多时候只能靠运行出来的结果再反过来
- 程序员写代码时就不要管需求了吗?
asia007
程序员不能一味跟需求走
编程也有2年了,刚开始不懂的什么都跟需求走,需求是怎样就用代码实现就行,也不管这个需求是否合理,是否为较好的用户体验。当然刚开始编程都会这样,但是如果有了2年以上的工作经验的程序员只知道一味写代码,而不在写的过程中思考一下这个需求是否合理,那么,我想这个程序员就只能一辈写敲敲代码了。
我的技术不是很好,但是就不代
- Activity的四种启动模式
百合不是茶
android栈模式启动Activity的标准模式启动栈顶模式启动单例模式启动
android界面的操作就是很多个activity之间的切换,启动模式决定启动的activity的生命周期 ;
启动模式xml中配置
<activity android:name=".MainActivity" android:launchMode="standard&quo
- Spring中@Autowired标签与@Resource标签的区别
bijian1013
javaspring@Resource@Autowired@Qualifier
Spring不但支持自己定义的@Autowired注解,还支持由JSR-250规范定义的几个注解,如:@Resource、 @PostConstruct及@PreDestroy。
1. @Autowired @Autowired是Spring 提供的,需导入 Package:org.springframewo
- Changes Between SOAP 1.1 and SOAP 1.2
sunjing
ChangesEnableSOAP 1.1SOAP 1.2
JAX-WS
SOAP Version 1.2 Part 0: Primer (Second Edition)
SOAP Version 1.2 Part 1: Messaging Framework (Second Edition)
SOAP Version 1.2 Part 2: Adjuncts (Second Edition)
Which style of WSDL
- 【Hadoop二】Hadoop常用命令
bit1129
hadoop
以Hadoop运行Hadoop自带的wordcount为例,
hadoop脚本位于/home/hadoop/hadoop-2.5.2/bin/hadoop,需要说明的是,这些命令的使用必须在Hadoop已经运行的情况下才能执行
Hadoop HDFS相关命令
hadoop fs -ls
列出HDFS文件系统的第一级文件和第一级
- java异常处理(初级)
白糖_
javaDAOspring虚拟机Ajax
从学习到现在从事java开发一年多了,个人觉得对java只了解皮毛,很多东西都是用到再去慢慢学习,编程真的是一项艺术,要完成一段好的代码,需要懂得很多。
最近项目经理让我负责一个组件开发,框架都由自己搭建,最让我头疼的是异常处理,我看了一些网上的源码,发现他们对异常的处理不是很重视,研究了很久都没有找到很好的解决方案。后来有幸看到一个200W美元的项目部分源码,通过他们对异常处理的解决方案,我终
- 记录整理-工作问题
braveCS
工作
1)那位同学还是CSV文件默认Excel打开看不到全部结果。以为是没写进去。同学甲说文件应该不分大小。后来log一下原来是有写进去。只是Excel有行数限制。那位同学进步好快啊。
2)今天同学说写文件的时候提示jvm的内存溢出。我马上反应说那就改一下jvm的内存大小。同学说改用分批处理了。果然想问题还是有局限性。改jvm内存大小只能暂时地解决问题,以后要是写更大的文件还是得改内存。想问题要长远啊
- org.apache.tools.zip实现文件的压缩和解压,支持中文
bylijinnan
apache
刚开始用java.util.Zip,发现不支持中文(网上有修改的方法,但比较麻烦)
后改用org.apache.tools.zip
org.apache.tools.zip的使用网上有更简单的例子
下面的程序根据实际需求,实现了压缩指定目录下指定文件的方法
import java.io.BufferedReader;
import java.io.BufferedWrit
- 读书笔记-4
chengxuyuancsdn
读书笔记
1、JSTL 核心标签库标签
2、避免SQL注入
3、字符串逆转方法
4、字符串比较compareTo
5、字符串替换replace
6、分拆字符串
1、JSTL 核心标签库标签共有13个,
学习资料:http://www.cnblogs.com/lihuiyy/archive/2012/02/24/2366806.html
功能上分为4类:
(1)表达式控制标签:out
- [物理与电子]半导体教材的一个小问题
comsci
问题
各种模拟电子和数字电子教材中都有这个词汇-空穴
书中对这个词汇的解释是; 当电子脱离共价键的束缚成为自由电子之后,共价键中就留下一个空位,这个空位叫做空穴
我现在回过头翻大学时候的教材,觉得这个
- Flashback Database --闪回数据库
daizj
oracle闪回数据库
Flashback 技术是以Undo segment中的内容为基础的, 因此受限于UNDO_RETENTON参数。要使用flashback 的特性,必须启用自动撤销管理表空间。
在Oracle 10g中, Flash back家族分为以下成员: Flashback Database, Flashback Drop,Flashback Query(分Flashback Query,Flashbac
- 简单排序:插入排序
dieslrae
插入排序
public void insertSort(int[] array){
int temp;
for(int i=1;i<array.length;i++){
temp = array[i];
for(int k=i-1;k>=0;k--)
- C语言学习六指针小示例、一维数组名含义,定义一个函数输出数组的内容
dcj3sjt126com
c
# include <stdio.h>
int main(void)
{
int * p; //等价于 int *p 也等价于 int* p;
int i = 5;
char ch = 'A';
//p = 5; //error
//p = &ch; //error
//p = ch; //error
p = &i; //
- centos下php redis扩展的安装配置3种方法
dcj3sjt126com
redis
方法一
1.下载php redis扩展包 代码如下 复制代码
#wget http://redis.googlecode.com/files/redis-2.4.4.tar.gz
2 tar -zxvf 解压压缩包,cd /扩展包 (进入扩展包然后 运行phpize 一下是我环境中phpize的目录,/usr/local/php/bin/phpize (一定要
- 线程池(Executors)
shuizhaosi888
线程池
在java类库中,任务执行的主要抽象不是Thread,而是Executor,将任务的提交过程和执行过程解耦
public interface Executor {
void execute(Runnable command);
}
public class RunMain implements Executor{
@Override
pub
- openstack 快速安装笔记
haoningabc
openstack
前提是要配置好yum源
版本icehouse,操作系统redhat6.5
最简化安装,不要cinder和swift
三个节点
172 control节点keystone glance horizon
173 compute节点nova
173 network节点neutron
control
/etc/sysctl.conf
net.ipv4.ip_forward =
- 从c面向对象的实现理解c++的对象(二)
jimmee
C++面向对象虚函数
1. 类就可以看作一个struct,类的方法,可以理解为通过函数指针的方式实现的,类对象分配内存时,只分配成员变量的,函数指针并不需要分配额外的内存保存地址。
2. c++中类的构造函数,就是进行内存分配(malloc),调用构造函数
3. c++中类的析构函数,就时回收内存(free)
4. c++是基于栈和全局数据分配内存的,如果是一个方法内创建的对象,就直接在栈上分配内存了。
专门在
- 如何让那个一个div可以拖动
lingfeng520240
html
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml
- 第10章 高级事件(中)
onestopweb
事件
index.html
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/
- 计算两个经纬度之间的距离
roadrunners
计算纬度LBS经度距离
要解决这个问题的时候,到网上查了很多方案,最后计算出来的都与百度计算出来的有出入。下面这个公式计算出来的距离和百度计算出来的距离是一致的。
/**
*
* @param longitudeA
* 经度A点
* @param latitudeA
* 纬度A点
* @param longitudeB
*
- 最具争议的10个Java话题
tomcat_oracle
java
1、Java8已经到来。什么!? Java8 支持lambda。哇哦,RIP Scala! 随着Java8 的发布,出现很多关于新发布的Java8是否有潜力干掉Scala的争论,最终的结论是远远没有那么简单。Java8可能已经在Scala的lambda的包围中突围,但Java并非是函数式编程王位的真正觊觎者。
2、Java 9 即将到来
Oracle早在8月份就发布
- zoj 3826 Hierarchical Notation(模拟)
阿尔萨斯
rar
题目链接:zoj 3826 Hierarchical Notation
题目大意:给定一些结构体,结构体有value值和key值,Q次询问,输出每个key值对应的value值。
解题思路:思路很简单,写个类词法的递归函数,每次将key值映射成一个hash值,用map映射每个key的value起始终止位置,预处理完了查询就很简单了。 这题是最后10分钟出的,因为没有考虑value为{}的情