- 《庄子.达生9》
钱江潮369
【原文】孔子观于吕梁,县水三十仞,流沫四十里,鼋鼍鱼鳖之所不能游也。见一丈夫游之,以为有苦而欲死也,使弟子并流而拯之。数百步而出,被发行歌而游于塘下。孔子从而问焉,曰:“吾以子为鬼,察子则人也。请问,‘蹈水有道乎’”曰:“亡,吾无道。吾始乎故,长乎性,成乎命。与齐俱入,与汩偕出,从水之道而不为私焉。此吾所以蹈之也。”孔子曰:“何谓始乎故,长乎性,成乎命?”曰:“吾生于陵而安于陵,故也;长于水而安于
- 这样旅行的人,值得拥有丰富而饱满的体验
究竟
01“一张车票就实现了来拉萨的梦想。原以为很遥远,现也觉得旅途值得。也不过山河故人而已。”打开朋友圈,看到了强子新发的动态,配了两张图,一张图里是拉萨火车站,另一张图里是二十来张排列得整整齐齐的火车票,终点站都是拉萨。又想起几天前,姑娘秀了一波在青海湖的美照,照片里的她,身穿鲜艳的红色长裙,坐在牦牛背上,阳光打下来,她笑靥如花。橙色的旗子风中飘扬,那蓝绿色的青海湖和天空再美,也都成了陪衬。再看看自
- 2022-04-07
静待花开1975
昨天因为收作业的事情狠狠批评了四班的三个课代表,其中一个觉得很委屈,直接要跟我撂挑子了,经我软硬兼施,又撤回了辞职的决定。今天早读课,刚进教室,发现作业就已经整整齐齐交上来,而且已经开始组织早读了。下午收积累本,也是很快就有了结果。看来,适当的批评还是有必要的,出错不怕,怕的是不吸取经验教训,一错再错。
- 11.19星期四,是五彩斑斓的黑
大龙猫说
这学期,每到周四的早晨,当闹钟响起时,我都会脑补一百种可以请假不上班的情境。因为我的星期四,是黑色的。从早读,到早操,再连堂两节课,再连堂两节课教研,这是周四的上午。中午和下午第一节课虽然空闲,但我必须马不停蹄地改作业,因为最后一节课还是我的。上完这节课,再看完阳光体育,检查值日,我这一天才算“熬”过去。这时候,如果学生再来点什么纠纷,我就需要动用仅有的空闲时间来处理,那可真是“压垮骆驼的最后一根
- 感兴趣的事情,才会去理会!
幸福小玉米
【齐帆齐微课】一件事情,为什么会有人视而不见?又有人“斤斤计较”?在所有的事物面前,只有你感兴趣的时候,你才会发现它,理会它,知道它的存在。宣纸,毛笔,你知道多少?当你对一件事物,感兴趣时,你会去发现它,去了解它,哪怕只是一点皮毛。就像当我对中国国画感兴趣时,我会去了解那些工具。宣纸宣纸分为生宣,半生半熟宣,熟宣。生宣:吸墨好润墨快。适合于写意国画,行书,草书。不适合写楷书和小楷。半生半熟宣:介于
- 【品读国学经典】大学:第一章
冰清九月
【原文】大学之道,在明明德,在亲民,在止于至善。知止而后有定,定而后能静,静而后能安,安而后能虑,虑而后能得。物有本末,事有终始。知所先后,则近道矣。古之欲明明德于天下者,先治其国;欲治其国者,先齐其家;欲齐其家者,先修其身;欲修其身者,先正其心;欲正其心者,先诚其意;欲诚其意者,先致其知;致知在格物。物格而后知至,知至而后意诚,意诚而后心正,心正而后身修,身修而后家齐,家齐而后国治,国治而后天下
- 丢在时光里的煤油灯
单想
//丢在时光里的煤油灯//那是八六年的冬夜风不停地撞门门外的雪已下得齐膝深我守着一盏煤油灯背诵白天刚学的课文很冷啊草鞋里双脚已成冰棍我不时地伸出小手笼着灯芯不是调皮捣乱只为索那一点儿灯温我不想背书了因为我已经很困可是娘说上一年级的小小人得像小树一样好好地扎根图省事的孩子长大不省心我撅着嘴巴心里莫名地生出一丝恨恨天冷也恨自己太小嫌时间太慢也嫌长夜太深谁知时光哧溜一下就断了我与煤油灯的缘分煤油灯呵我乍
- 杨蕊今日份总结
羊鑫
2020年10月24日周二新的一周开始了!到了学校先打扫了一下卫生,然后给孩子们录了今天写作业的视频,今天书写的作业笔画是横折竖折。字根“五”今天孩子们的书写质量还是可以的,但是短横长横的掌握情况不是很理想,周六周天孩子们来的时候再给孩子们进行复习回顾一下,重点说一下这个知识点。去楼上把几个坏掉的凳子用固体胶粘好。下午去南鑫拿了几张照片去那边压膜。回到比德弗校区之后把玩具架和齐老师一起全都整理了一
- 聊聊妈妈的小时候
阿坤姐
家家:这封信给你聊一聊妈妈的小时候。前两天我们一起走双拥桥,不知怎么聊起了大雪,齐膝、齐腰的大雪在我小时候的冬天很常见,现在你们鲜少见到这样的大雪了,当时有一个画面在脑子里挥之不去,半夜,爸爸背着发高烧的我,踏着厚厚的积雪去看乡村医生,妈妈在旁边不时的帮我掩着大棉袄,爸爸的军大袄把我整个裹了起来,想到这个画面我当即就分享给你和弟弟,你们很感兴趣,问这问那,雪有多深?怎么走着去?军大袄是什么样子的…
- 新建校新班级新学期构建家校命运共同体的路径
何蕊幸福奋斗着
一个孩子的成长离不开家庭的滋养和学校的价值引领,孩子实现更高的飞跃,双翼(家校)需要齐展翅,共助力,才能抵达美好未来,如何有效开展家校共育?我认为先从建立好的关系开始,因为关系大于教育,班主任站位要高,格局要大,鉴于我们是新校区新班级新学期,“三新”背景下,树立口碑非常重要,所以与家长建立好的关系上,我们主动出击,先赢得家长“芳心”,进而让家长对我们“无法自拔”,才会构建你中有我,我中有你的命运共
- 怎样成为更好的自己
三号老钮
齐帆齐微课文|三号老钮几天前,写作营里的伙伴向我们介绍了一位菜市场女作家。这位作家她有两个身份,上午她是一个在菜市场摆摊的小贩,下午她是一位作家。她职高毕业,目前是一位单亲妈妈,一边照顾孩子摆摊维持生活,一边写作。至今她已经写了十年,出了两本书,她还在坚持写下去。生活不易,是文字带给她前进的力量。摆摊是生活,文字是梦想。摆摊是物质,文字是精神。在快节奏的生活中,能够追求梦想,靠的正是顶级的自律。只
- 2022-04-28
换个昵称更好耍
二十二年辛丑,公元前三八零年齐伐燕,取桑丘。魏、韩、赵伐齐,至桑丘。二十三年壬寅,公元前三七九年赵袭卫,不克。齐康公薨,无子,田氏遂并齐而有之。是岁,齐桓公亦薨,子威王因齐立。二十四年癸卯,公元前三七八年狄败魏师于澮。魏、韩、赵伐齐,至灵丘。晋孝公薨,子靖公俱酒立。二十五年甲辰,公元前三七七年蜀伐楚,取兹方。二十二年(辛丑,前380)1.齐国攻打燕国,占领桑丘。魏、韩、赵三国联合攻打齐国,大兵到达
- 生命中的守恒定律
小懶同學
时隔近一年,因为英宁哥来,我又见到了慧姐。乍看慧姐没什么变化,走近一看,她头发少了许多,头顶秃了一块。她说这一年压力大。慧姐孩子比我丫头小三天,初中也是上名校,初中孩子的妈妈,特别是名校初中孩子的妈妈,个中之累我懂。我头疼丫头的数学,慧姐头疼儿子的语文。她说请了两个语文老师一对一辅导儿子,指望这个没用,那个有用,双管齐下,多少该管点用吧。然并卵。为了提点分数,老母亲真是操碎了心。慧姐的压力还来自事
- 新编儿时童话【112】小皇子5---麻婆豆腐,是姓麻的老婆婆发明的吗
大熊之影
我深怕自己本非美玉,故不敢加以辛苦琢磨,却又半信自己是块美玉,故又不肯庸庸碌碌与瓦砾为伍。伴随着店小二稳重的脚步声,食物的香味也一起来带小皇子的面前。卖相不咋地,味道很好闻,小皇子在心中默默的给店小二送来的食物点评。“客官,您的菜上齐了,请慢用!”店小二恭敬的语气说完,两秒钟的停顿,接受到了客官没有需求的信号后,安静的退出房间。看着眼前满满一桌的冒着热气的饭菜,小皇子迫不及待的拿起筷子吃了起来,他
- 国风.齐风.卢令
熙珺老师_人才发展官
大家好,我是红梅,一名国学礼仪的爱好者和分享者。每天读诗五分钟,生活如诗般美好,今天我们继续学习《诗经》。今天的诗叫《国风.齐风.卢令》国风.齐风.卢令先秦:佚名卢令令,其人美且仁。卢重环,其人美且鬈。卢重鋂,其人美且偲。
- 七律 秋运会
清源之流
图片发自App清晨列队齐征战,飒爽英姿众口夸。笑靥如花扬梦想,流年若水眷芳华。衣衫素雅成旗帜,树木青葱待彩霞。舞蹈编排风采展,凝心聚智闯天涯。图片发自App图片发自App
- 《历史》与《春秋》札记(六十四)
刘子曰_b08e
成公九年春王正月,杞伯来逆叔姬之丧以归。公会晋侯、齐侯、宋公、卫侯、郑伯、曹伯、莒子、杞伯,同盟于蒲。公至自会。二月伯姬归于宋。夏,季孙行父如宋致女。晋人来媵。秋七月丙子,齐侯无野卒。晋人执郑伯。晋栾书帅师伐郑。冬十有一月,葬齐顷公。楚公子婴齐帅师伐莒。庚申,莒溃。楚人入郓。秦人、白狄伐晋。郑人围许。城中城。鲁成公九年春季周王历正月,杞国君来迎叔姬的灵柩回去。鲁成公在蒲城会见齐国君、宋国君、卫国君
- 读诗
小成和大成
宋.苏轼.薄薄酒之一薄薄酒,胜茶汤,麄麄衣,胜无裳,丑妻恶妾胜空房。五更待漏靴满霜,不如三伏日高睡足北窗凉。珠襦玉柙万人相送归北邙,不如悬鹑百结独负朝阳。生前富贵,死后文章,百年转瞬万世忙,夷齐盗蹠俱亡羊,不如眼前一醉是非忧乐两都忘。
- 寒假学生日记(八)
笑笑8
腾龙作品2019年1月26日星期六离过年还有九天,春节是什么日子?是辞旧迎新的日子,家家户户都要扫屋子,我们家当然也不例外。扫屋时,我和爸爸、妈妈、哥哥谁都没有闲,都在忙着打扫,我整理着我天天写作业的桌子,整理桌子上的书本,把他们放在该放的地方,再把收纳箱内到所有物品到出来,然后进行分类,整理齐的把他们摆在收纳箱内,桌上整理完后,整理桌下,把隔层里的东西都拿出来,整整齐齐的放在箱内,最后搬进杂物间
- 文字控
半昏山人
1.年轻的时候,连多愁善感都要渲染的惊天动地。长大后却学会,越痛,越不动声色。越苦,越保持沉默。成熟不过是善于隐藏,成长就是将你的哭声调成静音模式。2.世界很大,幸福很小。一家人整整齐齐,健健康康,幸幸福福地在一起。就是理想中的市井生活。3.有时候,明明心如刀割,却要灿烂的微笑。明明很脆弱,却表现得如此坚强。眼泪在眼里打转,却告诉每个人我很好。4.把圈子变小,把语言变干净,把成绩往上提,把故事往心
- 徐州小桂林游记,地面平视犹如桂林,山顶俯视犹如千岛湖
雪松随意行
徐州九里山北的郭庄村附近有一座废弃的采石场,由于环境整治,停止了采石,逐渐形成了一个个由采石废料组成的星罗棋布的小湖泊,原来深凹地下的深坑,积满了水,逐渐形成了小湖泊,原来运输石料的小路和废石料堆积物逐渐形成了小的岛屿。笔者骑着电动车,从天齐大道过了陡山口,往前到万科城,几个转弯很快到达郭庄村,这个位置离徐州市中心也就几公里路程,只是这处景观处在九里山北,过去陡山口没有通车,市区很难到达这个地方,
- 三点or多点的变换矩阵求解opencv & eigen
合工大机器人实验室
C++矩阵opencv线性代数
《Estimating3-DRigidBodyTransformations:AComparisonofFourMajorAlgorithms》,它使用SVD方法计算T和t。只要算出变换矩阵,就可以算出A坐标系的一个点P在坐标系B里的对应点坐标,即R为3x3的转换矩阵,t为3x1的位移变换向量,这里点坐标均为3x1的列向量(非齐次形式,齐次形式下为4x1列向量,多出的一个元素值补1而已)。理论上只
- 丹青医姐:路
丹青医姐
“莫愁前路无知已,天下谁人不识君。”“路”,左小右略大。难点在于右侧部分会高起拉长,为了保证足字旁的中横收笔处与右侧交叉点平齐,“各”的起笔略高于足字旁,而“各”的横撇折角处不要高于足字旁“口”的右折角处。其次要注意,“各”的左撇要尽伸到足字旁的中竖末端,撇捺伸展,将下方留下“扁口”的书写空间,左侧与撇粘连,右侧与捺笔留有一定空间,才会抬腿走正路哈。
- 每个人都是一面镜子
种一颗土豆长成参天
每个人都是一面镜子,帮助我更清楚地认识自己。今天一天的分享和培训,让我更加深刻地领会到这句话的奥秘。昨天一下午的九型人格培训,后半场我们一波人都忙着自己在网络上测试属于那种人格类型,齐校长不仅听得认真,还连带着从细微之处观察哪些人在认真听,哪些人在打瞌睡,最后上台总结时,临场用12个字总结,提炼出如何应用九型人格理论来提升自己,我对旁边的同事一通佩服的夸赞,今天上午那些信手拈来的经验和故事,也让我
- 绘本讲师训练营【31期】8/21阅读原创《小海螺和大鲸鱼》读后感
Michelle_cf08
31017柯齐霞图片发自App这是一个一条大鲸鱼和一只小海螺的故事。是一个深刻故事,故事让人有意想不到的情节,鲸是那么凶猛的,而小海螺又是那么小小的善良的,这两种生动碰到一起,你只看名字一定不会想到是温情的故事。故事内容如下:在大海旁边有几块黑的大岩石,在岩石上有许多小海螺。其中一只小海螺用自己的粘液写了几个字“请让我出海远航好不好?大鲸鱼顶着小海螺去远航。小海螺看到了冰山、金色的沙滩、成群的鱼儿
- 成功日记483天:想要的太多就是累赘
微小确幸
#微小确幸#成功日记483天忙碌的一天再忙也要努力精进提升和小伙伴的沟通其实很多答案都在我们心中想要的太多而已适时做减法就好回归初心不轻易开始也不随随便便结束感谢朋友挂念在高铁上聊天感觉依旧身隔千里各自安好1.下班陪两宝玩,一起做运动2.帮女儿录广播操,儿子自己看书3.和女儿睡前悄悄话,达成一个写日记的约定4.公众号【微小确幸】更新第279篇原创文章:孩子作业问题5.【积微会】百日筑基活动开启Da
- 宝宝过了周岁,幼儿膳食的特点
求研闵
宝宝过了周岁,幼儿膳食的特点你知道吗?宝宝过了周岁,与爸爸妈妈一起正常吃每日三餐的机会就逐渐增多了。但此阶段的宝宝,乳牙还没有长齐,所以咀嚼的能力还是比较弱的,并且消化吸收的功能也没发育完全,虽然可以咀嚼一些成形的固体食物,但依旧还要吃些细、软、烂的食物。爸爸妈妈要根据宝宝的活动规律合理搭配,兼顾蛋白质、脂肪、热量、微量元素等的均衡摄取,使食物多样化,从而促进宝宝的进食兴趣,还要合理安排宝宝每日的
- 90后二孩妈妈带娃长途旅行全攻略(饮食篇)
夏日默茶
“当你背单词的时候,阿拉斯加的鳕鱼正跃出水面;当你算数学的时候,南太平洋的海鸥正掠过海岸;当你晚自习的时候,地球的极圈正五彩斑斓;但少年,梦要你亲自实现,世界你要亲自去看;未来可及拼尽全力。当你为未来付出踏踏实实努力的时候,那些你觉得看不到的人和遇不到的风景都终将在你生命里出现。”这段话我相信很多朋友都很熟悉,引燃了整个夏天。在我的两个宝贝还没有开启背单词、算数学、上晚自习的日子,带着他们尽自己最
- 塞车
东阁糖
图片发自App几条大道满是车,整整齐齐排好队。就等前方车一走,我车方能动一步。走走停停数小时,一看记录十公里。车上小孩饥饿啼,妇人一旁干着急。好在出门有准备,车上有水有干粮。喝饱喝足欲内急,方圆几里无公厕。大人不敢乱饮水,真是苦了娃她娘。小孩哪能控制住,唯有袋子解此事。一条二条三条路,高速堵塞走低速。千兜万转终到达,只为回家过大年。人多出行必塞车,春节哪能人不多?念着马上家圆团,苦些累点又何妨?前
- 立冬回娘家,雨雪都不怕(上)
潇清妩玉
齐帆齐微课文/潇清妩玉周日不设闹钟,依然4点半就醒,在床上磨叽磨叽,却睡不着,看来自己没有睡懒觉的命。那就起床做功课,早点回家。天气预报既有雨,还有雪,今天晚上还有事要办,早去早回。做完功课已经7点半,边热饭,边收拾东西。馒头,玉米,米饭,苹果,桔子,又是满满当当几袋子。8点出门,去超市买点菜。蘑菇,芹菜,香菇,又拿了两个白萝卜,盒装的蛋糕太大,挑了两袋小的。结算完毕上车,雨淅淅沥沥,越下越密,车
- 矩阵求逆(JAVA)利用伴随矩阵
qiuwanchi
利用伴随矩阵求逆矩阵
package gaodai.matrix;
import gaodai.determinant.DeterminantCalculation;
import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;
/**
* 矩阵求逆(利用伴随矩阵)
* @author 邱万迟
- 单例(Singleton)模式
aoyouzi
单例模式Singleton
3.1 概述 如果要保证系统里一个类最多只能存在一个实例时,我们就需要单例模式。这种情况在我们应用中经常碰到,例如缓存池,数据库连接池,线程池,一些应用服务实例等。在多线程环境中,为了保证实例的唯一性其实并不简单,这章将和读者一起探讨如何实现单例模式。 3.2
- [开源与自主研发]就算可以轻易获得外部技术支持,自己也必须研发
comsci
开源
现在国内有大量的信息技术产品,都是通过盗版,免费下载,开源,附送等方式从国外的开发者那里获得的。。。。。。
虽然这种情况带来了国内信息产业的短暂繁荣,也促进了电子商务和互联网产业的快速发展,但是实际上,我们应该清醒的看到,这些产业的核心力量是被国外的
- 页面有两个frame,怎样点击一个的链接改变另一个的内容
Array_06
UIXHTML
<a src="地址" targets="这里写你要操作的Frame的名字" />搜索
然后你点击连接以后你的新页面就会显示在你设置的Frame名字的框那里
targerts="",就是你要填写目标的显示页面位置
=====================
例如:
<frame src=&
- Struts2实现单个/多个文件上传和下载
oloz
文件上传struts
struts2单文件上传:
步骤01:jsp页面
<!--在进行文件上传时,表单提交方式一定要是post的方式,因为文件上传时二进制文件可能会很大,还有就是enctype属性,这个属性一定要写成multipart/form-data,不然就会以二进制文本上传到服务器端-->
<form action="fileUplo
- 推荐10个在线logo设计网站
362217990
logo
在线设计Logo网站。
1、http://flickr.nosv.org(这个太简单)
2、http://www.logomaker.com/?source=1.5770.1
3、http://www.simwebsol.com/ImageTool
4、http://www.logogenerator.com/logo.php?nal=1&tpl_catlist[]=2
5、ht
- jsp上传文件
香水浓
jspfileupload
1. jsp上传
Notice:
1. form表单 method 属性必须设置为 POST 方法 ,不能使用 GET 方法
2. form表单 enctype 属性需要设置为 multipart/form-data
3. form表单 action 属性需要设置为提交到后台处理文件上传的jsp文件地址或者servlet地址。例如 uploadFile.jsp 程序文件用来处理上传的文
- 我的架构经验系列文章 - 前端架构
agevs
JavaScriptWeb框架UIjQuer
框架层面:近几年前端发展很快,前端之所以叫前端因为前端是已经可以独立成为一种职业了,js也不再是十年前的玩具了,以前富客户端RIA的应用可能会用flash/flex或是silverlight,现在可以使用js来完成大部分的功能,因此js作为一门前端的支撑语言也不仅仅是进行的简单的编码,越来越多框架性的东西出现了。越来越多的开发模式转变为后端只是吐json的数据源,而前端做所有UI的事情。MVCMV
- android ksoap2 中把XML(DataSet) 当做参数传递
aijuans
android
我的android app中需要发送webservice ,于是我使用了 ksop2 进行发送,在测试过程中不是很顺利,不能正常工作.我的web service 请求格式如下
[html]
view plain
copy
<Envelope xmlns="http://schemas.
- 使用Spring进行统一日志管理 + 统一异常管理
baalwolf
spring
统一日志和异常管理配置好后,SSH项目中,代码以往散落的log.info() 和 try..catch..finally 再也不见踪影!
统一日志异常实现类:
[java]
view plain
copy
package com.pilelot.web.util;
impor
- Android SDK 国内镜像
BigBird2012
android sdk
一、镜像地址:
1、东软信息学院的 Android SDK 镜像,比配置代理下载快多了。
配置地址, http://mirrors.neusoft.edu.cn/configurations.we#android
2、北京化工大学的:
IPV4:ubuntu.buct.edu.cn
IPV4:ubuntu.buct.cn
IPV6:ubuntu.buct6.edu.cn
- HTML无害化和Sanitize模块
bijian1013
JavaScriptAngularJSLinkySanitize
一.ng-bind-html、ng-bind-html-unsafe
AngularJS非常注重安全方面的问题,它会尽一切可能把大多数攻击手段最小化。其中一个攻击手段是向你的web页面里注入不安全的HTML,然后利用它触发跨站攻击或者注入攻击。
考虑这样一个例子,假设我们有一个变量存
- [Maven学习笔记二]Maven命令
bit1129
maven
mvn compile
compile编译命令将src/main/java和src/main/resources中的代码和配置文件编译到target/classes中,不会对src/test/java中的测试类进行编译
MVN编译使用
maven-resources-plugin:2.6:resources
maven-compiler-plugin:2.5.1:compile
&nbs
- 【Java命令二】jhat
bit1129
Java命令
jhat用于分析使用jmap dump的文件,,可以将堆中的对象以html的形式显示出来,包括对象的数量,大小等等,并支持对象查询语言。 jhat默认开启监听端口7000的HTTP服务,jhat是Java Heap Analysis Tool的缩写
1. 用法:
[hadoop@hadoop bin]$ jhat -help
Usage: jhat [-stack <bool&g
- JBoss 5.1.0 GA:Error installing to Instantiated: name=AttachmentStore state=Desc
ronin47
进到类似目录 server/default/conf/bootstrap,打开文件 profile.xml找到: Xml代码<bean
name="AttachmentStore"
class="org.jboss.system.server.profileservice.repository.AbstractAtta
- 写给初学者的6条网页设计安全配色指南
brotherlamp
UIui自学ui视频ui教程ui资料
网页设计中最基本的原则之一是,不管你花多长时间创造一个华丽的设计,其最终的角色都是这场秀中真正的明星——内容的衬托
我仍然清楚地记得我最早的一次美术课,那时我还是一个小小的、对凡事都充满渴望的孩子,我摆放出一大堆漂亮的彩色颜料。我仍然记得当我第一次看到原色与另一种颜色混合变成第二种颜色时的那种兴奋,并且我想,既然两种颜色能创造出一种全新的美丽色彩,那所有颜色
- 有一个数组,每次从中间随机取一个,然后放回去,当所有的元素都被取过,返回总共的取的次数。写一个函数实现。复杂度是什么。
bylijinnan
java算法面试
import java.util.Random;
import java.util.Set;
import java.util.TreeSet;
/**
* http://weibo.com/1915548291/z7HtOF4sx
* #面试题#有一个数组,每次从中间随机取一个,然后放回去,当所有的元素都被取过,返回总共的取的次数。
* 写一个函数实现。复杂度是什么
- struts2获得request、session、application方式
chiangfai
application
1、与Servlet API解耦的访问方式。
a.Struts2对HttpServletRequest、HttpSession、ServletContext进行了封装,构造了三个Map对象来替代这三种对象要获取这三个Map对象,使用ActionContext类。
----->
package pro.action;
import java.util.Map;
imp
- 改变python的默认语言设置
chenchao051
python
import sys
sys.getdefaultencoding()
可以测试出默认语言,要改变的话,需要在python lib的site-packages文件夹下新建:
sitecustomize.py, 这个文件比较特殊,会在python启动时来加载,所以就可以在里面写上:
import sys
sys.setdefaultencoding('utf-8')
&n
- mysql导入数据load data infile用法
daizj
mysql导入数据
我们常常导入数据!mysql有一个高效导入方法,那就是load data infile 下面来看案例说明
基本语法:
load data [low_priority] [local] infile 'file_name txt' [replace | ignore]
into table tbl_name
[fields
[terminated by't']
[OPTI
- phpexcel导入excel表到数据库简单入门示例
dcj3sjt126com
PHPExcel
跟导出相对应的,同一个数据表,也是将phpexcel类放在class目录下,将Excel表格中的内容读取出来放到数据库中
<?php
error_reporting(E_ALL);
set_time_limit(0);
?>
<html>
<head>
<meta http-equiv="Content-Type"
- 22岁到72岁的男人对女人的要求
dcj3sjt126com
22岁男人对女人的要求是:一,美丽,二,性感,三,有份具品味的职业,四,极有耐性,善解人意,五,该聪明的时候聪明,六,作小鸟依人状时尽量自然,七,怎样穿都好看,八,懂得适当地撒娇,九,虽作惊喜反应,但看起来自然,十,上了床就是个无条件荡妇。 32岁的男人对女人的要求,略作修定,是:一,入得厨房,进得睡房,二,不必服侍皇太后,三,不介意浪漫蜡烛配盒饭,四,听多过说,五,不再傻笑,六,懂得独
- Spring和HIbernate对DDM设计的支持
e200702084
DAO设计模式springHibernate领域模型
A:数据访问对象
DAO和资源库在领域驱动设计中都很重要。DAO是关系型数据库和应用之间的契约。它封装了Web应用中的数据库CRUD操作细节。另一方面,资源库是一个独立的抽象,它与DAO进行交互,并提供到领域模型的“业务接口”。
资源库使用领域的通用语言,处理所有必要的DAO,并使用领域理解的语言提供对领域模型的数据访问服务。
- NoSql 数据库的特性比较
geeksun
NoSQL
Redis 是一个开源的使用ANSI C语言编写、支持网络、可基于内存亦可持久化的日志型、Key-Value数据库,并提供多种语言的API。目前由VMware主持开发工作。
1. 数据模型
作为Key-value型数据库,Redis也提供了键(Key)和值(Value)的映射关系。除了常规的数值或字符串,Redis的键值还可以是以下形式之一:
Lists (列表)
Sets
- 使用 Nginx Upload Module 实现上传文件功能
hongtoushizi
nginx
转载自: http://www.tuicool.com/wx/aUrAzm
普通网站在实现文件上传功能的时候,一般是使用Python,Java等后端程序实现,比较麻烦。Nginx有一个Upload模块,可以非常简单的实现文件上传功能。此模块的原理是先把用户上传的文件保存到临时文件,然后在交由后台页面处理,并且把文件的原名,上传后的名称,文件类型,文件大小set到页面。下
- spring-boot-web-ui及thymeleaf基本使用
jishiweili
springthymeleaf
视图控制层代码demo如下:
@Controller
@RequestMapping("/")
public class MessageController {
private final MessageRepository messageRepository;
@Autowired
public MessageController(Mes
- 数据源架构模式之活动记录
home198979
PHP架构活动记录数据映射
hello!架构
一、概念
活动记录(Active Record):一个对象,它包装数据库表或视图中某一行,封装数据库访问,并在这些数据上增加了领域逻辑。
对象既有数据又有行为。活动记录使用直截了当的方法,把数据访问逻辑置于领域对象中。
二、实现简单活动记录
活动记录在php许多框架中都有应用,如cakephp。
<?php
/**
* 行数据入口类
*
- Linux Shell脚本之自动修改IP
pda158
linuxcentosDebian脚本
作为一名
Linux SA,日常运维中很多地方都会用到脚本,而服务器的ip一般采用静态ip或者MAC绑定,当然后者比较操作起来相对繁琐,而前者我们可以设置主机名、ip信息、网关等配置。修改成特定的主机名在维护和管理方面也比较方便。如下脚本用途为:修改ip和主机名等相关信息,可以根据实际需求修改,举一反三!
#!/bin/sh
#auto Change ip netmask ga
- 开发环境搭建
独浮云
eclipsejdktomcat
最近在开发过程中,经常出现MyEclipse内存溢出等错误,需要重启的情况,好麻烦。对于一般的JAVA+TOMCAT项目开发,其实没有必要使用重量级的MyEclipse,使用eclipse就足够了。尤其是开发机器硬件配置一般的人。
&n
- 操作日期和时间的工具类
vipbooks
工具类
大家好啊,好久没有来这里发文章了,今天来逛逛,分享一篇刚写不久的操作日期和时间的工具类,希望对大家有所帮助。
/*
* @(#)DataFormatUtils.java 2010-10-10
*
* Copyright 2010 BianJing,All rights reserved.
*/
package test;
impor