- 2019-10-06
熊熊Lv
名称:六项精进宁波筹备组——六项精进340期谦虚一组(学习委员),403期,456期志工,504期志工,515期志工,534期志工【日精进打卡第547天】【知~学习】听语音【行~实践】一、修身午休;健身二、齐家洗衣服三、建功逐一打卡接龙;四、积善主动帮助他人或随喜赞叹他人三件事:1,传递正能量和善念给他人2,关爱他人;帮助别人解决问题3,清理垃圾每日分享百合花故事(未分享)愿我每日充满情感的践行成
- 2019-10-06
雪花_
上午带着烁仔跟钟姨一家又去了基地看小动物,今天烁仔表现极差,不仅不听话,还不敢爬拓展项目,其实上次爬的挺好的,这次说啥都不肯爬,刚刚爬一点远就吓得不行,哭起来没完,最后都该回家了还不听话非得走草里去,结果眼上边被小树刮了三道子,就那样为了抢球还打了人家老二脑袋一巴掌。下午趁着他睡觉我准备好了晚上的食材,可就是他醒了该做饭的时候可不行了,非得吃,可没做熟呀,就哭起来没完,哭的我那个起急呀,本来挺高兴
- 2019-10-06
六项精进打卡
姓名:曹翠公司:豹子头科技【日精进打卡第346天】【知~学习】今日学习《大学》1遍《六项精进》大纲1遍《匠人精神30条》1遍【行~实践】一、修身:(对自己个人)1.反省,做好自己。2.每天控制饮食,坚持减肥。3.坚持每天吃早饭。4.遇事不要急躁,保持平常心。不迁怒、不贰过、不伐善、不施劳。5.读书学习半小时(坚持一年),完成48次,未完成2次。二、齐家:(对家庭和家人)1.珍惜和家人在一起的每一刻
- 2019-10-06
海角船长
图片发自App图片发自App图片发自App图片发自App图片发自App图片发自App图片发自App图片发自App图片发自App图片发自App图片发自App图片发自App图片发自App图片发自App图片发自App图片发自App图片发自App图片发自App图片发自App图片发自App图片发自App图片发自App图片发自App图片发自App图片发自App图片发自App图片发自App图片发自App图片发自
- 2019-10-06
2793820278b1
第41天:生涯规划分享一直坚信过程努力了,结果不会太差。对于内容创作者最大的奖励是来访者的认可。更加坚信之前给自己定的目标:三年内帮助1000名以上职业生涯困惑者做生涯规划咨询。人要因为相信而坚持[呲牙]另外还有五个29.9元一小时职业规划咨询名额,用完就开始调整价格了[捂脸]。图片发自App图片发自App图片发自App
- 2019-10-06
若澜Fineyoga
今天国庆结后第一天上班,8点集合,9点开始打扫卫生,很累但是很充的一天,下午接待了2组突然到访的客户,带客户参观之后就爽快的交钱了,很开心,晚上趁空维护了50个左右会员,今天收获丰富,跟小伙伴们一起打扫卫生,布置会馆超级开心,会馆已经布置玩了,坐等接待体验课图片发自App图片发自App图片发自App图片发自App客户永远记住一点,越努力,你的运气会越好
- 2019-10-06
清心读书
清音刚从迷茫中醒来,从屋外由近及远的传来一声声尖厉刻薄的骂声:“小贱人,竟然敢寻死,看老娘怎么收拾你!”一种油然而生的危机感让清音从混沌中清醒过来,她睁大眼睛看到一个身着古装的女人叉腰大步走过来,这女人三十五六岁,刻薄狭长的三角眼支撑着厚重松弛的眼皮,高颧骨,薄嘴唇,一副不好相与的泼辣模样。眼看这女人到了她跟前,还来不及反应。“啪”,脸上被扇了一巴掌。清音怒了,猛的站起来,推了那女人一把:“你有病
- 2019-10-06画风
梦雅的简动力
一向凌乱的图书格调,调整为稍有清新风的温文尔雅女生卧室,该有的经历,在父母眼里依旧是小小女儿图片发自App图片发自App就这样握着你们的手,在还在身边的日子里,让你们开心,姐姐弟弟不在家的日子里,有我在,尽到自己应有的关爱与呵护!图片发自App我只要有能力,就会想着你们,给你们最好的,接触了,听到了,看到了,有美好,有遗憾,我尽力躲避不完美,给到您们所有的完美!
- Java基础笔记2019-10-06
此广告牌招租啊
Java版本:1、JavaME(JavaMicroEdition):开发移动应用和嵌入式应用。2、JavaSE(JavaStandardEdition):开发桌面应用。3、JavaEE(JavaEnterpriseEdition):开发Web应用。Java类之间的继承只支持单一继承,不支持多继承。Java支持类与接口之间的多继承,即一个类可以继承(实现implements)多个接口。Java是体系
- 2019-10-06
陈志源
《福尔摩斯》陈志源一声枪响划破夜空路人只觉得一个车胎爆破只有福尔摩斯感觉少些什么四下踱步看着月亮狡黠的微笑他知道她全都知道只是不说果然国际饭店伺者来报单身贵族Lisa太太未归福尔摩斯闻遍房间每个角落有人报告她昨天去了百乐门有人报告她上午去了裁缝铺有人报告她下午去了照相馆伺者报告今天都没见到她哈哈——,福尔摩斯对着月亮狡黠一笑拿出了手铐……众人看他如同月亮般伟岸只有月亮知道香水泄了密创作于2019年
- 2019-10-06
阳明圆
1949年10月1日,是新中国成立的纪念日。这里应该说明一点,在许多人的印象中,1949年的10月1日在北京天安门广场举行了有数十万军民参加的中华人民共和国开国大典。其实,人们头脑中的这一印象并不准确。因为,1949年10月1日在天安门广场举行的典礼是中华人民共和国中央人民政府成立盛典,而不是开国大典。实际上,中华人民共和国的“开国”,也就是说中华人民共和国的成立,早在当年10月1日之前一个星期就
- 2019-10-06 梯度下降法Python实践——求函数的最小值
小郑的学习笔记
代码还是有很多地方需要完善的,需要近一步的学习importmath#使用梯度下降法求函数的最小值#f=exp(X^2+(y-2)^2)初始点为(1,1)#设计函数deffunction_one(x_input,y_input):#函数的输入x,yf=math.exp(x_input**2+(y_input-2)**2)#算出f的值dx=2*x_input*f#算出一阶x导数的值dy=2*(y_in
- 2019-10-06
开心快乐_de44
与冬天的整首古诗江雪柳宗元千山鸟飞绝,万径人踪灭。王安石(作品):梅花墙角数枝,凌寒独自开。遥知不是雪,为有暗香来。白居易的《问刘十九》绿蚁新醅洒,红泥小火炉,晚来天欲雪,能饮一杯无?,刘长聊《逢雪宿芙蓉山主人》日暮苍山远,天寒白屋贫。柴门闻犬吠,风雪夜归人。《白雪歌送武判官归京》(唐)岑参。北风卷地白草折,胡天八月即飞雪。忽如一夜春风来,千树万树梨花开。散人珠帘湿暮,狐裘不暖锦衾薄。将军角弓不得
- 2019-10-06、读书笔记day45
stronger_5dc3
"赫连都打了美国兵!他一人把四个美国兵全给揍了!我和他从霞飞路回来,四个美国兵喝醉了,正在侮辱一个中国女的,真不像话,他们把女的衣服差不多全剥光了!女的直叫救命。围了好些人,谁都不敢上。赫连都脱了上衣,一人给了他们一拳,全都揍趴下了。他们起来,轮流和赫连都打开了boxing,赫连都毫不含糊。到后来,四个一齐上。周围的人大家伙把赫连都一围,拥着他进了胡同。美国兵歪歪倒倒,骂骂咧咧地走了。震不是玩意!
- 2019-10-06
杨奇昊
从前有一个人,他养了很多宠物,有一天,他从家里回来的时候,看见很多动物都在额笼子外面跑着,他非常着急,就找人来帮忙,可是没有一个人能帮他他只好自己一个人把这些动物抓起来放到笼子里面,他准备抓动物的时候,一只狗过来就嗯就说说起来,养宠物的那个人非常好奇,他说都不怎么会说话呢,它把动物们都放在笼子里面,冬天到了,寒冷的冬天,把养宠物的那个人给冻伤了,狗狗带着主人去医院看病,医生,医生给那个人说,你得住
- 2019-10-06
花开的声音凤凰
亲爱的奇迹宝宝们,大家此刻当下好!❤我是本班班长蒲凤君,很幸福未来的一个月里,与您共同呼吸,共同成长!❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤过去的18个月的岁月里,奇迹宝宝的我的收获有:❤23班进入,复训七次!每一次都收获超过预期!让我知道宇宙爱我真的比我想象中多的多的多!❤爱自己…以前的我是典型的老好人,以为自己是救世主,是拯救者!让自己伤横累累,现在的我全然绽放,懂得如何爱自己,照顾好自己是第一本位!
- 2019-10-06
我是憨憨你是谁
那天她结婚,我一直重复的听陈奕迅的《婚礼的祝福》。终于听到最后的时候,听出来祝福,没有遗憾。从前车马很慢,信件很远,我们不再联系的人,可能一辈子都难以再见。现在网速很快,信息很短,我们不再联系的人,可能随时都出现在眼前。往事一幕一幕一幕,突然静止。从她结婚前来找我告别的那个晚上,我不知道怎么形容我的心情,纸杯里无数的烟头堆满了回忆和叹息,当清晨第一缕阳光透过窗台,人才缓过来。那天,朋友巧合的安排了
- 2019-10-06
做个会思考的老师
作为小学班主任,用“马不停蹄”来形容一天的工作状态真的是一点都不为过。从早上踏入学校开始,充实的一天就开始了:处理完班级事务,调解学生问题;上完自己的课程,还要检查、批改作业,搞教研活动,随时准备迎接学校、上级部门的各种检查、各种临时紧急会议;与学生谈心,和家长沟通,还得关注家长临时发的告知学生的信息;下午放学,还要留在教室检查卫生,好不容易可以放学回家了,你的手机又适时地响了起来,家长打来的……
- 2019-10-06
22f8b5c9d7ae
昨天,前天我在奶奶整整完了两天,第一天我们割玉米,奶好教我也割玉米,没想到玉米那么难割,割的我手都痛了。第二天我们刨土豆,土豆长在泥土下面,大小不一,有圆的,有长的,还有不知是什图像的,我也说不上来,反证好看极了。
- 2019-10-06
沁舞飞扬
今天小姨来看我,买了好多东西,还让我挑。我都不好意思让她买。每次她就像看她女儿一样,特别开心,总是家常理短的,一遍遍唠叨。也难怪,她把我当女儿,从小到大都是她带我,她和我妈相隔年纪多,我妈生了三个,她只有一个女儿,比我小好几岁,从小到大都是把我女儿一样看待。这些年经历了读书,恋爱,结婚,生孩子,小姨还像以前一样,对我如初。小姨和我妈相差甚远,一个年轻,时髦,喜欢流行的东西。而我妈,没有读过书,只知
- 《活得明白》15目标2019-10-06
悦读知行
作者:贾杰;摘录:老K十五、目标(榜样/价值观/反之)(P200)没有目标就无法选择,没有目标就没有动力。1.榜样的力量。a.天上地下,古往今来,无论传说历史还是电视电影。写出你最敬佩或者欣赏的5个人。b.分别用3~5个关键词来描述,每个人身上吸引你的特点或品质。c.归纳以上出现频率最高的词语,或者意思相近的词语,概括为三个词。d.分别描述你对这三个词的理解。e.这三个词,也许就是你心中的人生价值
- 2019-10-06 12组12号莫艳灵思想日记
95d8e0b773a0
感恩一切美好的遇见!今天有幸参加了惠然老师《家风共修课程》,被温文尔雅,文静,落落大方,智慧,大爱的惠然老师所感染着!有使命感的女人颜值最高,惠然老师用温暖的语言传递中国传统文化,传递着爱!再一次和爱学习的同修共同成长,无时无刻都能感受到爱自然生命力每一位义工老师满满的爱!1.人生不如意事十有八九,我们要常想一二,跳出自己的隧道,持续学习,做家庭的引领者,接纳顺境同时也有接纳逆境的能力。2.我们每
- 2019-10-06
开心一刻_1144
今天我和爸爸妈妈去动物园了,动物园里有梅花鹿,骆驼,马,大熊猫,犀牛,大象,我最喜欢大熊猫,大熊猫吃竹子的时候很可爱,最后我们要去游乐场玩的摩天轮,还有环游世界,我玩的很开心。
- 2019-10-06
秋水Q
今天看书突然联想到班级里两个休学生,就赶紧给家长发了微信了解一下孩子的状况。因为和一个家长聊的时间长,另外一个家长就没说上话。对这俩孩子我一直心生愧疚的。一个孩子是二年级转入的,一年级在村小上的。孩子等于荒废了一年,转入后跟不上节奏。他妈妈曾经成绩很好,家里条件不好,就早早地小学赚钱补贴家用了。所以妈妈有个愿望:无论如何一定让孩子接受好的教育!孩子小的时候在外务工,知道孩子在村小学的不太理想,赶紧
- 2019-10-06
A稀里糊涂
六项精进打卡姓名:仇君文公司:扬州市方圆建筑工程有限公司【日精进打卡第405天】第424期反省一组【知~学习】《六项精进》3遍共1198遍《大学》3遍共1198遍【经典名句分享】吾日三省吾身【行~实践】一、修身:(对自己个人)1、做俯卧撑20个二、齐家:(对家庭和家人)1,和家人视频,三、建功,1,控制室室内刮白,台阶砌筑,垃圾清理2,分电所接照明线装灯3,脱渣机周边地坪压实4,加热炉区地坪平整,
- 2019-10-06
花开的声音凤凰
一起见证每个人生命的全然绽放,拿到自己真正想要![爱心][爱心][爱心]加入奇迹30我最大的收获是……自己[爱心]财富能量爆棚,从年销售额五百万,到翻几倍速度,关键是还轻而易举![爱心]关系的甜蜜滋养!拿回了属于自己的能量!家人们,您最想收获什么?答案各有不一请您默默的记在心里在这里也邀请您跟随我们爱的步伐每一天收获一点点去迎接30天后的自己未来30天,我们群有呼吸法小分队,我们一起练习呼吸法,希
- 2019-10-06 在老家的十一假期
大童小柯
2019的十一平淡无奇一、小宝跟奶奶在家近一个月,日思夜想,放假前就让邻居帮忙购买了加班票,带着大宝整理东西赶路等车。一上午的时间等在车站,到车站下午两点,家人来接了回去。二、小宝在睡觉,婆给做了加餐炒芹菜拌黄瓜,吃起来舒坦,这婚后的日子感觉是到了自己家,也大概是有娃后变化最大的一次了。床边看了看瞧了瞧,小丫头黑了小脸脏了,但是在爷爷奶奶的关爱下也健健康康快快乐乐的,安心。三、秋收,家里一天都没能
- 2019-10-06
我和那个自己
每个人在遇到人生低谷的时候都会迷茫,无助,孤独,想要找人倾诉自己的苦闷,但是找人倾诉了自己的事又能怎么呢?他给予的只有安慰,开导,并不能解决自己的烦恼,所有人在迷茫的时候多去读书吧,在书中找到慰藉找到走出迷茫的方法!
- 2019-10-06
SY卢老师
现在正好是十一假期,一大批国人已经坐飞机飞往世界各地去旅游了。如今,越来越多的国人飞出国门,也越来越多的外国友人前来中国就业、经商、观光,国与国,人与人之间的交往越来越频繁,越来越密切。摆在大家面前的就是语言习俗的问题,最大的就是交流的问题。出去旅个游要不要学一些基本的语言对话?很多人觉得自己出去都是跟团,不用自己操心,没有必要花费精力在这上面,以后也没什么用。但也有些人觉得自己不喜欢跟团,自由行
- 2019-10-06
一点衣袂
长发何时长识君恰年少,风采自灼灼。妾初感君心,君亦感妾意。娇羞花解语,出人对成双。岸平春水潮,夏雨打芭蕉。秋扫梧桐叶,冬临百丈冰。北方兵戎起,君走赴他乡。问君何时归,待汝发长时。长发何时长,故人影空空。独自上高楼,凭栏极目望。楼高望不见,天涯各一方。聚散苦匆匆,人非物也非。长发何时长,故人影空空。待我发长时,长发相思系。素手轻挽袖,红绳结发梢。花影对月容,静待天涯客。长发何时长,故人影空空。夜深梦
- Java实现的简单双向Map,支持重复Value
superlxw1234
java双向map
关键字:Java双向Map、DualHashBidiMap
有个需求,需要根据即时修改Map结构中的Value值,比如,将Map中所有value=V1的记录改成value=V2,key保持不变。
数据量比较大,遍历Map性能太差,这就需要根据Value先找到Key,然后去修改。
即:既要根据Key找Value,又要根据Value
- PL/SQL触发器基础及例子
百合不是茶
oracle数据库触发器PL/SQL编程
触发器的简介;
触发器的定义就是说某个条件成立的时候,触发器里面所定义的语句就会被自动的执行。因此触发器不需要人为的去调用,也不能调用。触发器和过程函数类似 过程函数必须要调用,
一个表中最多只能有12个触发器类型的,触发器和过程函数相似 触发器不需要调用直接执行,
触发时间:指明触发器何时执行,该值可取:
before:表示在数据库动作之前触发
- [时空与探索]穿越时空的一些问题
comsci
问题
我们还没有进行过任何数学形式上的证明,仅仅是一个猜想.....
这个猜想就是; 任何有质量的物体(哪怕只有一微克)都不可能穿越时空,该物体强行穿越时空的时候,物体的质量会与时空粒子产生反应,物体会变成暗物质,也就是说,任何物体穿越时空会变成暗物质..(暗物质就我的理
- easy ui datagrid上移下移一行
商人shang
js上移下移easyuidatagrid
/**
* 向上移动一行
*
* @param dg
* @param row
*/
function moveupRow(dg, row) {
var datagrid = $(dg);
var index = datagrid.datagrid("getRowIndex", row);
if (isFirstRow(dg, row)) {
- Java反射
oloz
反射
本人菜鸟,今天恰好有时间,写写博客,总结复习一下java反射方面的知识,欢迎大家探讨交流学习指教
首先看看java中的Class
package demo;
public class ClassTest {
/*先了解java中的Class*/
public static void main(String[] args) {
//任何一个类都
- springMVC 使用JSR-303 Validation验证
杨白白
springmvc
JSR-303是一个数据验证的规范,但是spring并没有对其进行实现,Hibernate Validator是实现了这一规范的,通过此这个实现来讲SpringMVC对JSR-303的支持。
JSR-303的校验是基于注解的,首先要把这些注解标记在需要验证的实体类的属性上或是其对应的get方法上。
登录需要验证类
public class Login {
@NotEmpty
- log4j
香水浓
log4j
log4j.rootCategory=DEBUG, STDOUT, DAILYFILE, HTML, DATABASE
#log4j.rootCategory=DEBUG, STDOUT, DAILYFILE, ROLLINGFILE, HTML
#console
log4j.appender.STDOUT=org.apache.log4j.ConsoleAppender
log4
- 使用ajax和history.pushState无刷新改变页面URL
agevs
jquery框架Ajaxhtml5chrome
表现
如果你使用chrome或者firefox等浏览器访问本博客、github.com、plus.google.com等网站时,细心的你会发现页面之间的点击是通过ajax异步请求的,同时页面的URL发生了了改变。并且能够很好的支持浏览器前进和后退。
是什么有这么强大的功能呢?
HTML5里引用了新的API,history.pushState和history.replaceState,就是通过
- centos中文乱码
AILIKES
centosOSssh
一、CentOS系统访问 g.cn ,发现中文乱码。
于是用以前的方式:yum -y install fonts-chinese
CentOS系统安装后,还是不能显示中文字体。我使用 gedit 编辑源码,其中文注释也为乱码。
后来,终于找到以下方法可以解决,需要两个中文支持的包:
fonts-chinese-3.02-12.
- 触发器
baalwolf
触发器
触发器(trigger):监视某种情况,并触发某种操作。
触发器创建语法四要素:1.监视地点(table) 2.监视事件(insert/update/delete) 3.触发时间(after/before) 4.触发事件(insert/update/delete)
语法:
create trigger triggerName
after/before 
- JS正则表达式的i m g
bijian1013
JavaScript正则表达式
g:表示全局(global)模式,即模式将被应用于所有字符串,而非在发现第一个匹配项时立即停止。 i:表示不区分大小写(case-insensitive)模式,即在确定匹配项时忽略模式与字符串的大小写。 m:表示
- HTML5模式和Hashbang模式
bijian1013
JavaScriptAngularJSHashbang模式HTML5模式
我们可以用$locationProvider来配置$location服务(可以采用注入的方式,就像AngularJS中其他所有东西一样)。这里provider的两个参数很有意思,介绍如下。
html5Mode
一个布尔值,标识$location服务是否运行在HTML5模式下。
ha
- [Maven学习笔记六]Maven生命周期
bit1129
maven
从mvn test的输出开始说起
当我们在user-core中执行mvn test时,执行的输出如下:
/software/devsoftware/jdk1.7.0_55/bin/java -Dmaven.home=/software/devsoftware/apache-maven-3.2.1 -Dclassworlds.conf=/software/devs
- 【Hadoop七】基于Yarn的Hadoop Map Reduce容错
bit1129
hadoop
运行于Yarn的Map Reduce作业,可能发生失败的点包括
Task Failure
Application Master Failure
Node Manager Failure
Resource Manager Failure
1. Task Failure
任务执行过程中产生的异常和JVM的意外终止会汇报给Application Master。僵死的任务也会被A
- 记一次数据推送的异常解决端口解决
ronin47
记一次数据推送的异常解决
需求:从db获取数据然后推送到B
程序开发完成,上jboss,刚开始报了很多错,逐一解决,可最后显示连接不到数据库。机房的同事说可以ping 通。
自已画了个图,逐一排除,把linux 防火墙 和 setenforce 设置最低。
service iptables stop
- 巧用视错觉-UI更有趣
brotherlamp
UIui视频ui教程ui自学ui资料
我们每个人在生活中都曾感受过视错觉(optical illusion)的魅力。
视错觉现象是双眼跟我们开的一个玩笑,而我们往往还心甘情愿地接受我们看到的假象。其实不止如此,视觉错现象的背后还有一个重要的科学原理——格式塔原理。
格式塔原理解释了人们如何以视觉方式感觉物体,以及图像的结构,视角,大小等要素是如何影响我们的视觉的。
在下面这篇文章中,我们首先会简单介绍一下格式塔原理中的基本概念,
- 线段树-poj1177-N个矩形求边长(离散化+扫描线)
bylijinnan
数据结构算法线段树
package com.ljn.base;
import java.util.Arrays;
import java.util.Comparator;
import java.util.Set;
import java.util.TreeSet;
/**
* POJ 1177 (线段树+离散化+扫描线),题目链接为http://poj.org/problem?id=1177
- HTTP协议详解
chicony
http协议
引言
- Scala设计模式
chenchao051
设计模式scala
Scala设计模式
我的话: 在国外网站上看到一篇文章,里面详细描述了很多设计模式,并且用Java及Scala两种语言描述,清晰的让我们看到各种常规的设计模式,在Scala中是如何在语言特性层面直接支持的。基于文章很nice,我利用今天的空闲时间将其翻译,希望大家能一起学习,讨论。翻译
- 安装mysql
daizj
mysql安装
安装mysql
(1)删除linux上已经安装的mysql相关库信息。rpm -e xxxxxxx --nodeps (强制删除)
执行命令rpm -qa |grep mysql 检查是否删除干净
(2)执行命令 rpm -i MySQL-server-5.5.31-2.el
- HTTP状态码大全
dcj3sjt126com
http状态码
完整的 HTTP 1.1规范说明书来自于RFC 2616,你可以在http://www.talentdigger.cn/home/link.php?url=d3d3LnJmYy1lZGl0b3Iub3JnLw%3D%3D在线查阅。HTTP 1.1的状态码被标记为新特性,因为许多浏览器只支持 HTTP 1.0。你应只把状态码发送给支持 HTTP 1.1的客户端,支持协议版本可以通过调用request
- asihttprequest上传图片
dcj3sjt126com
ASIHTTPRequest
NSURL *url =@"yourURL";
ASIFormDataRequest*currentRequest =[ASIFormDataRequest requestWithURL:url];
[currentRequest setPostFormat:ASIMultipartFormDataPostFormat];[currentRequest se
- C语言中,关键字static的作用
e200702084
C++cC#
在C语言中,关键字static有三个明显的作用:
1)在函数体,局部的static变量。生存期为程序的整个生命周期,(它存活多长时间);作用域却在函数体内(它在什么地方能被访问(空间))。
一个被声明为静态的变量在这一函数被调用过程中维持其值不变。因为它分配在静态存储区,函数调用结束后并不释放单元,但是在其它的作用域的无法访问。当再次调用这个函数时,这个局部的静态变量还存活,而且用在它的访
- win7/8使用curl
geeksun
win7
1. WIN7/8下要使用curl,需要下载curl-7.20.0-win64-ssl-sspi.zip和Win64OpenSSL_Light-1_0_2d.exe。 下载地址:
http://curl.haxx.se/download.html 请选择不带SSL的版本,否则还需要安装SSL的支持包 2. 可以给Windows增加c
- Creating a Shared Repository; Users Sharing The Repository
hongtoushizi
git
转载自:
http://www.gitguys.com/topics/creating-a-shared-repository-users-sharing-the-repository/ Commands discussed in this section:
git init –bare
git clone
git remote
git pull
git p
- Java实现字符串反转的8种或9种方法
Josh_Persistence
异或反转递归反转二分交换反转java字符串反转栈反转
注:对于第7种使用异或的方式来实现字符串的反转,如果不太看得明白的,可以参照另一篇博客:
http://josh-persistence.iteye.com/blog/2205768
/**
*
*/
package com.wsheng.aggregator.algorithm.string;
import java.util.Stack;
/**
- 代码实现任意容量倒水问题
home198979
PHP算法倒水
形象化设计模式实战 HELLO!架构 redis命令源码解析
倒水问题:有两个杯子,一个A升,一个B升,水有无限多,现要求利用这两杯子装C
- Druid datasource
zhb8015
druid
推荐大家使用数据库连接池 DruidDataSource. http://code.alibabatech.com/wiki/display/Druid/DruidDataSource DruidDataSource经过阿里巴巴数百个应用一年多生产环境运行验证,稳定可靠。 它最重要的特点是:监控、扩展和性能。 下载和Maven配置看这里: http
- 两种启动监听器ApplicationListener和ServletContextListener
spjich
javaspring框架
引言:有时候需要在项目初始化的时候进行一系列工作,比如初始化一个线程池,初始化配置文件,初始化缓存等等,这时候就需要用到启动监听器,下面分别介绍一下两种常用的项目启动监听器
ServletContextListener
特点: 依赖于sevlet容器,需要配置web.xml
使用方法:
public class StartListener implements
- JavaScript Rounding Methods of the Math object
何不笑
JavaScriptMath
The next group of methods has to do with rounding decimal values into integers. Three methods — Math.ceil(), Math.floor(), and Math.round() — handle rounding in differen