- 铭刻于星(四十二)
随风至
69夜晚,绍敏同学做完功课后,看了眼房外,没听到动静才敢从书包的夹层里拿出那个心形纸团。折痕压得很深,都有些旧了,想来是已经写好很久了。绍敏同学慢慢地、轻轻地捏开折叠处,待到全部拆开后,又反复抚平纸张,然后仔细地一字字默看。只是开头的三个字是第一次看到,让她心漏跳了几拍。“亲爱的绍敏:从四年级的时候,我就喜欢你了,但是我一直不敢说,怕影响你学习。六年级的时候听说有人跟你表白,你接受了,我很难过,但
- 第一场雪
岁月静好_nx
早晨起来,外面白茫茫的一片,总算是下雪了,这还是今年第一场雪呢!走在路上,踩着雪“咯吱咯吱”的,空气很湿润。树上、草坪上、屋顶上都落了白白的一层,天上还零星漂着几点雪。慢慢走在路上,呼吸着清新的空气,感受着冬天的美好,心情也好多了。
- 少了生活气息
我爱大草莓
最近啊,总觉得自己日更的内容缺了点什么。我仔细地想,大概是少了些生活气息。这两三个月减少了许多与别人相处的时间,独自生活,偶尔只是出去买菜,总觉得生活好像变空了许多。买菜的时候会跟档口的阿姨聊一两句话,让自己感觉在真实地生活着。幸好我也不是一宅到底,偶尔周末也会约着跟好朋友见面,面对面交流跟隔着屏幕交流,效果还是不一样的,至少有更为真实的生活感。写作不仅需要有阅读量,有文笔,生活阅历也是非常重要的
- 红手套节 马小媛为中国城市环卫者公益发声:今天我手红
疏狂君
#红手套节#公益活动,线头公益以及同多方资源的共同努力我们邀请到了线头公益大使马小媛马小媛,1993年5月3日出生于江苏省南京市,中国内地新生代女演员。2015年马小媛参演网剧《余罪》,饰演警校校花安嘉璐的闺蜜。2016年马小媛主演系列电影《丽人保镖》中女一号林欢馨,正式出道。此后,马小媛陆续接演了电视剧《警花与警犬2》,在网剧《你美丽李美丽》中担任女主角李美丽。拂晓,当你还在睡梦中时,这座城跟你
- 黄景瑜工作人员怒怼营销号!肖战事件就是他的前车之鉴
板凳吃瓜小分队
无论社会怎样浮躁,我们自己也不可以浮躁。战胜浮躁的关键是明白自己真正的需要,保持一颗平常心,不要盲目攀比,不要羡慕别人,更不要唯利是图。一辈子很短,我们不能总是望着别人的精彩,羡慕着别人的人生,而忘记了经营自己生活,要知道,通过努力,你也能成为让人仰望的明星。如今,随着娱乐产业越来越成熟,每年的新星也是扎堆冒出。在我看来,与前几年不同的是,如今的新生代质量明显好过从前。“更专业了,更有礼貌了”也是
- 干货|自我介绍这三个坑,99%的概率你踩过!
夏麦生命的魔术师
自我介绍——每个人都需要的一张名片。图片源自网络从2018年到现在,在做演讲俱乐部的2年时间里,我在演讲活动现场听过1000+人的自我介绍,自我介绍做得超棒的人真不多!最近,我花了近几个月时间,仔细研究了500+人线上场景的自我介绍,发现优秀的自我介绍也不多!为什么做一张优秀的自我介绍就这么难呢?这个问题,在我帮几十个人打造了自我介绍的过程一直困扰着我。经过了几个月的时间思考与实践,终于发现三个—
- JVM源码分析之堆外内存完全解读
HeapDump性能社区
概述广义的堆外内存说到堆外内存,那大家肯定想到堆内内存,这也是我们大家接触最多的,我们在jvm参数里通常设置-Xmx来指定我们的堆的最大值,不过这还不是我们理解的Java堆,-Xmx的值是新生代和老生代的和的最大值,我们在jvm参数里通常还会加一个参数-XX:MaxPermSize来指定持久代的最大值,那么我们认识的Java堆的最大值其实是-Xmx和-XX:MaxPermSize的总和,在分代算法
- 2019-08-05
你站在桥上看风景_2ae1
昨天学习分享了意想不到。有句话说得好,道不远人。就是说真理和美好的事情就在我们身边发生着,我们缺少的是发现美好事物和真理的心。世俗让我们的心钝化了,对这个世界没有了好奇也没有敏感性和感知力。天地是长生的,我们的心要虚心实腹,这样才能像天地一样在每秒每分钟不断的自我更新中长生不死,生理的细胞有衰落有新生,人的心理和精神也在发生着更新交替,每一天都是新的每一秒都是新的,只要心不死,一切都是那么的奇妙。
- 《对生命说是》读书笔记2021-5-27
Diana_58d9
静心技巧——换个视角看待问题。尝试一下这个实验,1坐在椅子上,允许自己全身心的沉浸在你最爱的问题当中,你知道头脑热爱咀嚼他们,记录当你被卷入问题时的感受。2站起来有意识地离开那张椅子,想象你现在离开了你的问题。缓缓的围绕椅子走一圈,从不同的角度看看你的问题。在房间中找一个远离问题的空间,开始仔细深入的看看这个问题,他是真实的还是你制造出来的,同样的状况对于其他人来说会是问题吗?3反复体会作战问题里
- 你说人间不值得?
林晴念
今天刷短视频,我看到许多人在说人间不值得,问一下大家,人间真的值得吗?从众人的欢声笑语中悄然诞生,又从亲人哭泣和哽咽之中憾然离去,仔细想想,其实也不过弹指一瞬间而已。有人抱怨自己的生活太枯燥,有人抱怨自己的压力太大,更有些学生抱怨学业的艰辛,可抱怨终归只是抱怨罢了。这所谓的抱怨虽然能让你得到一时的解脱,但在成年人的世界里,抱怨是一种懦弱的表现。而更有甚者,因扛不住生活的压力,跳楼自杀,高楼之上,寒
- 【菊言菊语】我的磨课经历
山中雏菊
自从报名参加讲精品课,就开始寝食不安。首先是选课难。选哪一篇课文讲呢?刚讲过去的,还是之前的优质课再加工加工?仔细对照文件要求,最后决定,选一篇刚讲过的文章,刚把《冀中的地道战》讲完,那就选这一课吧!看优秀课例,研读教材,总算把教学设计整出来了。让同事帮忙看看,同事提了几点建议。为了更加完美,又找人提意见。这次,同事提出,教学设计,越简单越好,只要能把自己讲的东西说出来,你这课就能保证听的人听懂了
- 【木纹泪日记第8篇】不忘祖先恩情,不忘人生来路,不负韶华流年
木纹泪
天气说变就变,这个季节说冷就冷,昨天还是大太阳,今天就是阴雨连连,幸好回老家给粥宝带了棉袄。今天奶奶的三周年祭总算顺顺利利的办完了,中午完事后饭都顾不上吃,开车一路飞奔赶上下午的考试,总算两件事都兼顾上了,一样也没耽搁。堂兄弟姐妹表兄弟们,各自带着家眷都回来了,一年又一年,大家都已成家,都有了孩子,突然就觉得时间好快,曾几何时我们还都是在一起嬉笑玩闹的小孩子啊…面对新生,面对死亡,不由得感慨:生命
- 一场由公交引发的联想
孟冬廿六
今天早上在公交站等车,一般都是卡着点去,本该七点就到的车结果晚点,到了差不多七点一刻才看到它的身影,然而,远远就看到车里已经挤得满满当当,靠近站牌司机连连摆手,坐不下了,然后径直开走。仔细一看,好家伙,满满一车全部都是背着书包的学生,旁边一位阿姨说,这些都是去辅导班的学生,放假了每天都这样。好吧,等下一辆。又等了一班,结果还是同样的情况,有点崩溃。旁边还有一位等车的学生,老母亲眼看着过去两班车还坐
- 525,就是自己关爱自己
蓝猫神
今天上班开车,无意间在广播听到,5月25日,原来是心理健康日。从2000年开始,每年的5月25日是全国大学生心理健康日,“5·25”的谐音即为“我爱我”,提醒大学生“珍惜生命,关爱自己”。是啊。仔细想想,确实如此。我们的一生,陪伴自己最多的人,不是父母、不是孩子、也不是伴侣,其实就是自己。很多很多的人,有些为了家庭而活,有些为了孩子而活,有些为了另一半而活,但是为自己而活的人,确实好少,好少。那我
- 雨后散步
乡姑
雨后的天气很凉爽,空气中有淡淡的泥土味。雨停了,去河边散散步,微风拂面,顿感神清气爽。河里的水面上荡起层层涟漪,仔细瞧见是鱼儿在跳跃,远处有几人在垂钓,悠闲自得。河岸边垂柳依依,随风摇曳。盛开的花朵上还带着雨水。天空中有几只鸟儿在欢叫中自由飞翔。对着新鲜的空气深呼吸,无比清新。一切都是刚刚好,让时光慢些吧,留住这美好瞬间。多么有生活气息,又如此诗情画意。这不就是我要的诗和远方吗?原来它离我这么近,
- 追求完美和追求幸福
自律的小丁儿
积极心理学研究发现,“追求完美”会走向反面,而以积极心态追求幸福则是人类最有价值的人生目标。追求完美--不管在什么样的条件下都追求最好,是一种比较普遍的现象,也被很多人认为是一件好事,至少不是缺点。但我们仔细分析追求完美的思维模式后就会发现这是一种极性思维,这种极性思维危害性很大,常常面临两极的选择,要么最好,要么最坏。追求极致完美很容易丧失价值感,以这种追求完美的思想指导学生学业和人生发展就会酿
- 致即将逝去的2020年
斯丹钰
婚姻生活没有想象中那么完美…有时候特别痛恨小时候受的那些教育为什么要被灌输:结婚就好了结婚根本不是那么一件容易的事情…结婚是一种全新生活方式的开始是每一个人学习的新课程很讨厌传统思想中:女人的价值不就是为了生儿育女的吗!我觉得女人哪怕你不是想走所谓的事业型但是你一定要拥有一技之长无论你身在职场,还是想退隐江湖哪天再回来…至少你能在这个时代和这个社会生存下去那时候再来谈你的精神你要的所有其它的东西不
- JVM 调优篇7 调优案例1-堆空间的优化解决
健康平安的活着
jvm调优jvm
一jvm优化1.1优化实施步骤*1)减少使用全局变量和大对象;2)调整新生代的大小到最合适;3)设置老年代的大小为最合适;4)选择合适的GC收集器;1.2关于GC优化原则多数的Java应用不需要在服务器上进行GC优化;多数导致GC问题的Java应用,都不是因为我们参数设置错误,而是代码问题;在应用上线之前,先考虑将机器的JVM参数设置到最优(最适合);减少创建对象的数量;减少使用全局变量和大对象;
- 2020第一场雪
朱彷徨
2020的第一场雪,是属于楼下操场上那个人的!茫茫大雪不知去处,深在暖室心却苍凉!我们该怎么度过2020,怎么让别人变成为人着想的哪一位!图片发自App
- 初冬,碎念
含羞草_ebed
时光悄悄,总是在不知不觉间,走过季节的河畔。总是在无声无息里,淌过岁月的堤岸。转身,回眸,嘀嘀嗒嗒的流年,又带走了一季的橙红桔绿,菊花斑斓。仔细聆听,蝉声已匿迹,蛙鼓也隐藏,只有阵阵的凉风吹过树叶沙沙的弦音。秋,走了,带着桂花零落的余香,携着千丝万缕的眷念,刁走几串柔情的诗意,穿过光阴的水湄与月光,奔赴下一个旅程。当我还沉浸在对秋的依恋中不想回头,冬,却已静静地站在了身边,投来丝丝溥凉,我只能素衣
- 2023-07-28
云汐若
书名:昆虫记文章:黑肚皮的塔兰图拉毒蛛作者:法布尔优美词汇:温柔可人、面不改色、泰然自若、天经地义、没心没肺凯旋而归、毫不客气、地地道道、稀奇古怪、三三两两丑陋不堪、豺狼虎豹、忽如其来、兴趣盎然、熠熠生辉悄无声息、黯然失色、仪态万方、一无所知、怪模怪样精彩句段:蜘蛛是真正的纺织高手、聪明的猎人,悲惨的婚姻,还有其他吸引人的特征。赏析:对蜘蛛特点的总结,体现了作者对他们进行了认真而又仔细的研究。蜘蛛
- 重读《新生-七年就是一辈子》- 26 不能容错的系统肯定是脆弱的
greenorchid
读后感想:我觉得自己的容错能力在学生,同事、朋友方面都还好,毕竟我很少和他们交流。但是,我对家人有时做的不好,容错能力反而较差,因此,有时会影响心情、注意力等。看了这篇文章,我能做到平心静气,不乱发脾气吗?我觉得有时能做到,很多时候可能还是做不到。读书笔记:今天的计算机科学里(包括它的“邻居”工程学里),都有一个重要的概念:容错(Faulttolerance)如果一个系统不能容错,那么它就是脆弱的
- 打磨内心的球赛
凌风0110
一心求胜,导致大比分完败,昨天下午场对南岳路小学,内心知道打不赢,也就没有了紧张,第二局她们换人后,状态一点点变好,打的很轻松与自在。晚场对辰阳街道,看过她们打球,虽然厉害,但是只要我们稳定,接好一传,应该是有机会的,可是昨晚一点感觉也没找到,以4-21,9-21完败,那一刻开始审视自己,是不是好高骛远,太过自负了,如果第一场赢了财政局,应该会多一些自信吧。目前三场皆输,真是挺让人难堪的!今天下午
- 妈妈为何如此焦虑 - 草稿
方方正正的球球
情境:下班回家,就急忙吃饭,吃完饭一起读书陪伴游戏,看看表,该洗澡睡觉了,刷牙也一定要仔细检查每一颗牙齿:有没有蛀牙?有没有长牙?直到孩子睡着的那一刻才慢慢舒缓一口气。“终于睡着了”自己感觉瞬间被抽空了。偶尔有些不顺利的时候或者睡觉时间晚了就会有情绪产生:为什么妈妈要付出这么多?为什么自己的时间越来越少?为什么?含义:焦虑:是指人在面临不够明确、模糊、或即将出现危险或威胁时,所产生的一种紧张、不安
- 洛谷水题 记录
木木ainiks
算法c++数据结构
P1093[NOIP2007普及组]奖学金sort排序即可注意cmp的写法#include#includeusingnamespacestd;structnode{intid;intchinese;intmath;intenglish;intcount;}a[305];intcmp(node&a,node&b){if(a.count!=b.count){returna.count>b.count;
- 流年似长
葙葙子
这次我才仔仔细细看了本周主题,哪一刻,你觉得自己长大了.....其实我一点也不想长大。记得我看过一片微文,描述的是一种孩子,很乖巧很伶俐,懂得礼让和忍让,太早的懂事的越让人心疼。当时看到这篇文章时候特别感触。我有个哥哥,还有个妹妹,总记得儿时妈妈特别疼哥哥,爸爸特别疼妹妹,而每每吵架的大部分时候,哥哥和妹妹都是联合起来围攻我。也许是这样的一个特殊的位置,造就我异常敏感,很小的时候就很懂得察言观色,
- 2019-10-30
我还能再叫什么名
2020年1月自考报考须知一、报名条件广东省高等教育自学考试于2020年1月4-5日举行。凡在我省居住和工作的中华人民共和国公民,不受性别、年龄、民族、种族和已受教育程度的限制,均可参加我省自学考试。港澳和台湾同胞、海外侨胞及外籍人士,也可参加我省自学考试。服刑人员经有关部门批准后也可参加我省自学考试。二、报名报考时间广东省2020年1月高等教育自学考试新生报名时间为2019年11月21日9:00
- "在老去的路上寻爱" 诗歌
晨妤儿
文|晨妤儿图片发自App每闭一次眼,睁开一次就会又老了一岁每做一次梦就会失忆在苏醒和沉睡里就迈向了新生命我想不睡觉了,永远不老过了18岁是19岁我还是又回到18岁年轮里我的爸爸,妈妈就会永远陪伴我我也不会学懂事理智也不会升华我是爸爸妈妈永远的小棉袄可是你,我为何而来世上在人间荡漾着,彷徨着或许我们来世是来报父母恩的寻"爱"梦,理想的生活向往人间的路,想下凡来遇见良人又或许你,我都是在排队等着孟婆给
- 周末小记
Lcm梅子
平淡的日子波浪不惊,来不及仔细品味,五天就已经匆匆而过了。值得一提的是周一的“推普周”启动仪式,每年9月的第三周为全国普通话推广周,今年是第23届。在这一周里要广泛开展推普宣传、培训,开展主题班会、“啄木鸟”行动、“咬文嚼字”活动,一时间人们说普通话、写规范字的积极性空前高涨,以往好多习惯性读错的字音被纠正了,一直以来写错的字被发现了,大家的汉语拼音、写字、用字、标点符号、文字排版、语文常识等方面
- 由银杏树的四季所想到的
通达花红
由银杏树的四季所想到的早上有些凉意,中午秋阳高照,到处都是暖融融的。大概,天气比较暖和,走在街上,还到处是深绿的树木,给人深沉的生命力。仰望银杏树,树叶尾部的一圈枯黄了,但是,却让你想到带着花边的蝴蝶。无论何时,银杏树都给人美的启示。春天里,它的叶子鹅黄,预示着新生的力量;夏天它的叶子郁郁葱葱,仿佛催人奋进,让人茁壮,旺盛;秋天它竟然像蝴蝶,引起人们的遐想;再过十天,二十天,它的叶子全部变黄,更是
- java短路运算符和逻辑运算符的区别
3213213333332132
java基础
/*
* 逻辑运算符——不论是什么条件都要执行左右两边代码
* 短路运算符——我认为在底层就是利用物理电路的“并联”和“串联”实现的
* 原理很简单,并联电路代表短路或(||),串联电路代表短路与(&&)。
*
* 并联电路两个开关只要有一个开关闭合,电路就会通。
* 类似于短路或(||),只要有其中一个为true(开关闭合)是
- Java异常那些不得不说的事
白糖_
javaexception
一、在finally块中做数据回收操作
比如数据库连接都是很宝贵的,所以最好在finally中关闭连接。
JDBCAgent jdbc = new JDBCAgent();
try{
jdbc.excute("select * from ctp_log");
}catch(SQLException e){
...
}finally{
jdbc.close();
- utf-8与utf-8(无BOM)的区别
dcj3sjt126com
PHP
BOM——Byte Order Mark,就是字节序标记 在UCS 编码中有一个叫做"ZERO WIDTH NO-BREAK SPACE"的字符,它的编码是FEFF。而FFFE在UCS中是不存在的字符,所以不应该出现在实际传输中。UCS规范建议我们在传输字节流前,先传输 字符"ZERO WIDTH NO-BREAK SPACE"。这样如
- JAVA Annotation之定义篇
周凡杨
java注解annotation入门注释
Annotation: 译为注释或注解
An annotation, in the Java computer programming language, is a form of syntactic metadata that can be added to Java source code. Classes, methods, variables, pa
- tomcat的多域名、虚拟主机配置
g21121
tomcat
众所周知apache可以配置多域名和虚拟主机,而且配置起来比较简单,但是项目用到的是tomcat,配来配去总是不成功。查了些资料才总算可以,下面就跟大家分享下经验。
很多朋友搜索的内容基本是告诉我们这么配置:
在Engine标签下增面积Host标签,如下:
<Host name="www.site1.com" appBase="webapps"
- Linux SSH 错误解析(Capistrano 的cap 访问错误 Permission )
510888780
linuxcapistrano
1.ssh -v
[email protected] 出现
Permission denied (publickey,gssapi-keyex,gssapi-with-mic,password).
错误
运行状况如下:
OpenSSH_5.3p1, OpenSSL 1.0.1e-fips 11 Feb 2013
debug1: Reading configuratio
- log4j的用法
Harry642
javalog4j
一、前言: log4j 是一个开放源码项目,是广泛使用的以Java编写的日志记录包。由于log4j出色的表现, 当时在log4j完成时,log4j开发组织曾建议sun在jdk1.4中用log4j取代jdk1.4 的日志工具类,但当时jdk1.4已接近完成,所以sun拒绝使用log4j,当在java开发中
- mysql、sqlserver、oracle分页,java分页统一接口实现
aijuans
oraclejave
定义:pageStart 起始页,pageEnd 终止页,pageSize页面容量
oracle分页:
select * from ( select mytable.*,rownum num from (实际传的SQL) where rownum<=pageEnd) where num>=pageStart
sqlServer分页:
 
- Hessian 简单例子
antlove
javaWebservicehessian
hello.hessian.MyCar.java
package hessian.pojo;
import java.io.Serializable;
public class MyCar implements Serializable {
private static final long serialVersionUID = 473690540190845543
- 数据库对象的同义词和序列
百合不是茶
sql序列同义词ORACLE权限
回顾简单的数据库权限等命令;
解锁用户和锁定用户
alter user scott account lock/unlock;
//system下查看系统中的用户
select * dba_users;
//创建用户名和密码
create user wj identified by wj;
identified by
//授予连接权和建表权
grant connect to
- 使用Powermock和mockito测试静态方法
bijian1013
持续集成单元测试mockitoPowermock
实例:
package com.bijian.study;
import static org.junit.Assert.assertEquals;
import java.io.IOException;
import org.junit.Before;
import org.junit.Test;
import or
- 精通Oracle10编程SQL(6)访问ORACLE
bijian1013
oracle数据库plsql
/*
*访问ORACLE
*/
--检索单行数据
--使用标量变量接收数据
DECLARE
v_ename emp.ename%TYPE;
v_sal emp.sal%TYPE;
BEGIN
select ename,sal into v_ename,v_sal
from emp where empno=&no;
dbms_output.pu
- 【Nginx四】Nginx作为HTTP负载均衡服务器
bit1129
nginx
Nginx的另一个常用的功能是作为负载均衡服务器。一个典型的web应用系统,通过负载均衡服务器,可以使得应用有多台后端服务器来响应客户端的请求。一个应用配置多台后端服务器,可以带来很多好处:
负载均衡的好处
增加可用资源
增加吞吐量
加快响应速度,降低延时
出错的重试验机制
Nginx主要支持三种均衡算法:
round-robin
l
- jquery-validation备忘
白糖_
jquerycssF#Firebug
留点学习jquery validation总结的代码:
function checkForm(){
validator = $("#commentForm").validate({// #formId为需要进行验证的表单ID
errorElement :"span",// 使用"div"标签标记错误, 默认:&
- solr限制admin界面访问(端口限制和http授权限制)
ronin47
限定Ip访问
solr的管理界面可以帮助我们做很多事情,但是把solr程序放到公网之后就要限制对admin的访问了。
可以通过tomcat的http基本授权来做限制,也可以通过iptables防火墙来限制。
我们先看如何通过tomcat配置http授权限制。
第一步: 在tomcat的conf/tomcat-users.xml文件中添加管理用户,比如:
<userusername="ad
- 多线程-用JAVA写一个多线程程序,写四个线程,其中二个对一个变量加1,另外二个对一个变量减1
bylijinnan
java多线程
public class IncDecThread {
private int j=10;
/*
* 题目:用JAVA写一个多线程程序,写四个线程,其中二个对一个变量加1,另外二个对一个变量减1
* 两个问题:
* 1、线程同步--synchronized
* 2、线程之间如何共享同一个j变量--内部类
*/
public static
- 买房历程
cfyme
2015-06-21: 万科未来城,看房子
2015-06-26: 办理贷款手续,贷款73万,贷款利率5.65=5.3675
2015-06-27: 房子首付,签完合同
2015-06-28,央行宣布降息 0.25,就2天的时间差啊,没赶上。
首付,老婆找他的小姐妹接了5万,另外几个朋友借了1-
- [军事与科技]制造大型太空战舰的前奏
comsci
制造
天气热了........空调和电扇要准备好..........
最近,世界形势日趋复杂化,战争的阴影开始覆盖全世界..........
所以,我们不得不关
- dateformat
dai_lm
DateFormat
"Symbol Meaning Presentation Ex."
"------ ------- ------------ ----"
"G era designator (Text) AD"
"y year
- Hadoop如何实现关联计算
datamachine
mapreducehadoop关联计算
选择Hadoop,低成本和高扩展性是主要原因,但但它的开发效率实在无法让人满意。
以关联计算为例。
假设:HDFS上有2个文件,分别是客户信息和订单信息,customerID是它们之间的关联字段。如何进行关联计算,以便将客户名称添加到订单列表中?
&nbs
- 用户模型中修改用户信息时,密码是如何处理的
dcj3sjt126com
yii
当我添加或修改用户记录的时候对于处理确认密码我遇到了一些麻烦,所有我想分享一下我是怎么处理的。
场景是使用的基本的那些(系统自带),你需要有一个数据表(user)并且表中有一个密码字段(password),它使用 sha1、md5或其他加密方式加密用户密码。
面是它的工作流程: 当创建用户的时候密码需要加密并且保存,但当修改用户记录时如果使用同样的场景我们最终就会把用户加密过的密码再次加密,这
- 中文 iOS/Mac 开发博客列表
dcj3sjt126com
Blog
本博客列表会不断更新维护,如果有推荐的博客,请到此处提交博客信息。
本博客列表涉及的文章内容支持 定制化Google搜索,特别感谢 JeOam 提供并帮助更新。
本博客列表也提供同步更新的OPML文件(下载OPML文件),可供导入到例如feedly等第三方定阅工具中,特别感谢 lcepy 提供自动转换脚本。这里有导入教程。
- js去除空格,去除左右两端的空格
蕃薯耀
去除左右两端的空格js去掉所有空格js去除空格
js去除空格,去除左右两端的空格
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>&g
- SpringMVC4零配置--web.xml
hanqunfeng
springmvc4
servlet3.0+规范后,允许servlet,filter,listener不必声明在web.xml中,而是以硬编码的方式存在,实现容器的零配置。
ServletContainerInitializer:启动容器时负责加载相关配置
package javax.servlet;
import java.util.Set;
public interface ServletContainer
- 《开源框架那些事儿21》:巧借力与借巧力
j2eetop
框架UI
同样做前端UI,为什么有人花了一点力气,就可以做好?而有的人费尽全力,仍然错误百出?我们可以先看看几个故事。
故事1:巧借力,乌鸦也可以吃核桃
有一个盛产核桃的村子,每年秋末冬初,成群的乌鸦总会来到这里,到果园里捡拾那些被果农们遗落的核桃。
核桃仁虽然美味,但是外壳那么坚硬,乌鸦怎么才能吃到呢?原来乌鸦先把核桃叼起,然后飞到高高的树枝上,再将核桃摔下去,核桃落到坚硬的地面上,被撞破了,于是,
- JQuery EasyUI 验证扩展
可怜的猫
jqueryeasyui验证
最近项目中用到了前端框架-- EasyUI,在做校验的时候会涉及到很多需要自定义的内容,现把常用的验证方式总结出来,留待后用。
以下内容只需要在公用js中添加即可。
使用类似于如下:
<input class="easyui-textbox" name="mobile" id="mobile&
- 架构师之httpurlconnection----------读取和发送(流读取效率通用类)
nannan408
1.前言.
如题.
2.代码.
/*
* Copyright (c) 2015, S.F. Express Inc. All rights reserved.
*/
package com.test.test.test.send;
import java.io.IOException;
import java.io.InputStream
- Jquery性能优化
r361251
JavaScriptjquery
一、注意定义jQuery变量的时候添加var关键字
这个不仅仅是jQuery,所有javascript开发过程中,都需要注意,请一定不要定义成如下:
$loading = $('#loading'); //这个是全局定义,不知道哪里位置倒霉引用了相同的变量名,就会郁闷至死的
二、请使用一个var来定义变量
如果你使用多个变量的话,请如下方式定义:
. 代码如下:
var page
- 在eclipse项目中使用maven管理依赖
tjj006
eclipsemaven
概览:
如何导入maven项目至eclipse中
建立自有Maven Java类库服务器
建立符合maven代码库标准的自定义类库
Maven在管理Java类库方面有巨大的优势,像白衣所说就是非常“环保”。
我们平时用IDE开发都是把所需要的类库一股脑的全丢到项目目录下,然后全部添加到ide的构建路径中,如果用了SVN/CVS,这样会很容易就 把
- 中国天气网省市级联页面
x125858805
级联
1、页面及级联js
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
&l