- 20180401晨课
Sunny飞镜
是的,我祈祷你能“成功”,但我所理解的成功,是一个人对自己所做的事情有敬畏与热情——在妈妈看来,一个每天早上起床都觉得上班是个负担的律师,并不比一个骄傲地对顾客说“看,这个发型剪得漂亮吧”的理发师更加成功。但是,对你的“成就”无所寄望并不等于对你的品格无所寄望。妈妈希望你来到这个世界不是白来一趟,能有愿望和能力领略它波光潋滟的好,并以自己的好来成全它的更好。晨课:刘瑜-人的本质是无穷绽放,人的尊严
- 世界之谜/你说的剪短一点点与理发师了解的一点点
小晶说搭配
我想大多数的人去理发店都会说过这句话“帮我剪短一点点就可以了”,然后这句话就会成为你噩梦的开始。理发的时候可能因为坐着不动,有点无聊,困意就慢慢到来,当你睁开眼睛的时候,你就会发现,整个人都不好了。理发师理解的剪短一点点与你心目中的一点点有着天差地别。因为对于理发师来说,你剪短一点点,为了发型的完整性,就必须整体的剪短一点点,就好像头发长了遮耳朵,不可能光剪耳朵部位,因为这样其他地方就会不协调,因
- 超A小说—《婚情告急:周先生,别套路》楚辞周延深—全集目录阅读
九月文楼
超A小说—《婚情告急:周先生,别套路》楚辞周延深—全集目录阅读主角:楚辞周延深简介:结婚三年,楚辞没见过她老公。就连离婚协议都是律师代办的。她想,周延深肯定是个残疾,奇丑无比。离婚后,她找了一个新欢。要风得风,要雨得雨。整个江洲就差没被送到楚辞的面前。一直到有一天——楚辞的一切被曝光在众人面前。她带不回自己的孩子。亲手杀了生母。审判席上——楚辞看着周延深:“你会后悔的。”可关注微信公众号【花粉书楼
- 向着目标更进一步Day6
陶陶妈妈在努力
原创今天只吃了早餐和晚餐,并且都保持七分饱,拒绝零食。有点习惯了这种方式,不像开始几天感觉那么饿了。督促孩子做了语文默写练习册,英语卷子,和读书大笔记,最开心的是我们不但玩了小人老虎枪和斗兽棋,还想起了五子棋这个游戏,大家玩得都很开心。孩子正是换牙的时候,有个门牙要掉了,没法吃饭,我心想着帮她拽下来,可是真要动手,一点也使不出劲,没等弄,心先疼得厉害,真是比对自己下手还难啊,最后只有放弃了。早上把
- 故事课Day6:回味面馆回味的是旧时光
87b7a48cb8ad
今天学习《故事课》p97~p107,这一个企业的品牌故事。我想到了我们镇上的回味面馆。回味面馆开于一九九几年,夫妻店,当时只是一个露天小摊,每当逢圩的日子,经常发生客户打架争座位的事情。回味面馆就是卖粉、面、包子之类,特别记得高三时,我打包了一个拌粉带教室吃,打开快餐盒的瞬间,全班都闻到了香味。我也很好奇,并没有什么特别的调教呀,怎么就那么香。他家的包子、馒头特别好吃,光滑有嚼劲,滋味好。妈呀,写
- 青丝(二)
肉桂色铺子5号
文|阿毛贰理发师以一种熟稔的姿态往洇的头上抹洗发水。一股浓烈的气味迅速弥漫开来。洇闻出,是何首乌的气味。这款洗发水啊,既防脱发,又能生发……理发师动情地说。头发越来越少,用的洗发水越来越好。头发还是越来越少。洇想起儿时洗头用过的马头肥皂,甚至海鸥洗衣粉。忍俊不禁。还有后来的青春洗发膏。包装像牙膏。气味芬芳。“时间是宝贵的,青春是宝贵的,一头秀发是宝贵的。”经典广告词像一个新生精灵,从落满尘埃的黑白
- 慧慧|感恩日记day6
lhh_7ca4
1.感恩今天顺利完美的结束啦,又收获了很多知识2.感恩石阳帮忙开车,让我可以在车上工作3.感恩小伙伴们今天又开始练习啦,棒棒哒,感恩练习的机会4.感恩汽车让我们出行更方便5.感恩陈艳梳理禅道的使用,让工作清晰了很多6.感恩深圳的绿化让我们呼吸更清新的空气7.感恩我的工作让我可以在深圳生存的很好8.感恩高速让我们路上速度更快,更早到家9.感恩路上的车都很有秩序的行驶,让我们出行更安全10.感恩玉泽小
- 亲子日记第684篇 2019.8.29 星期四 天气:晴
王皓怡妈妈
初秋的阳光温馨和煦;初秋的微风轻柔恬静;初秋的天空白云悠扬,初秋就像一位婉约的少女,诉说着秋的故事。明天老公去潍坊接女儿回家,我已经提前给老公从网上订好了火车票。下午下班后接上儿子去理发。说起给儿子理发,这可是一个大难题。儿子特别敏感,一理发就浑身不舒服,我连说带哄,好歹配合理发师给儿子理好了发型,可真是不容易啊!图片发自App晚上回家和女儿视频,我说爸爸明天去接你回来,女儿特别高兴。虽然跟着奶奶
- 如何成为时间管理高手~day6
929943802d22
给时间定价拒绝无效社交批量成交目标达成策略怎样定目标:挑战型目标和习惯型的目标头脑中落后的思想习惯养成~21天1958整形医生提出来的脑皮层258天更新身体、行为、思维要养成习惯的时间各不相同赚钱变现成长十倍速成长8年vs1年职场大前沿一坐地铁广告刻意练习过成空白做了100场演讲不过是把一次演讲讲了99次意识到这点冒身冷汗活在在虚假当中没有成长要挑战舒适圈每次列关键词从不会演讲到三个月后出场费12
- 70号,心理Day6颜色日
高脸儿兔兔
颜色日:色彩对心理的影响显而易见,由此诞生的色彩心理学,色彩品牌营销学都被广泛地应用在我们的生活中。今天我们想要邀请你留心观察生活中的色彩应用,挖掘3个关于颜色应用的小发现。举个小例子,餐厅里红色的餐桌能刺激食欲,让顾客逗留时间长了会烦躁不安。所以这个应用能让顾客吃得开心,但又不会待得太长。再举个小例子,职场上的黑色西装,让人感觉稳重和庄严。最后再举个例子,如果住家比较狭窄,可以使用明亮的冷色调,
- 【Day6 0917核聚老师答疑核心思想超精简版】
Gabril阿冷
首先是浓缩了昨晚核心思想的核聚老师金句:把握进步本的性质,就能超过大部分人。比如人的懒惰、不思考,一用进步本,便原形毕露。海量阅读!积微之力可登大千。不忘初心方得始终,那么初心是什么呢?责任担当和兴趣,形成良性循环。人生的通病就是想自己想太多,想别人想太少。有责任心的人,忍受学习工作的痛苦的能力都会比一般人强很多很多。这也是意志力稳固的来源。人们为了急于达成目的,就会连基本的逻辑、道理都不顾了。这
- 2021.2.16富有的习惯Day6
Elaine逸灵
1.今天在家做了一天的清理,把老公的东西给找到了,丢了一大堆没用的东西,但是还是感觉家里乱糟糟的,明天继续努力,把家里清理好。2.和朋友的聊天,我特别想拉她出来她的舒适区,让她尝试去做,而不是一直坐在那里听课,道理我们都懂,但是我们依然过不好一生,因为我们总在场外做观众。唯有做了,你才知道,自己真的不懂,知道自己不知道,这个也是一个过程,我们需要更加的谦卑,用空杯的心态去装世界。3.看到知霖老师的
- 给宝贝们的信Day6:爸爸越来越棒了!
cf86eb30840c
亲爱的宽宽、萱萱:妈妈给你们写信本应该当天写出来的,但经过这段时间的经历,很多时候妈妈都是跟着你们一起睡着了,所以妈妈我以后在每天的早上写上一天的信。昨天早上,爸爸在给我们早饭的时候,哥哥跑过来对我说:“爸爸真历害”,妈妈说:“是的,爸爸确定很历害,爸爸又可以挣钱供我们生活,又可以给我们做饭吃。真的是很历害”,哥哥非常高兴地跑去玩了。妈妈看到哥哥如此的崇拜爸爸,内心真的很高兴。因为爸爸经常要出差,
- 感恩成功日记6.14
静默小太阳
感恩日记1.感恩我的床和被子,谢谢你让我可以舒服的睡觉,谢谢你,我爱你2.感恩尼尼,谢谢你给我调理身体,这两天睡眠特别好,太爱你啦,谢谢你,我爱你3.感恩丰仪老师,谢谢你早上给我们赋能上课,一起冥想,能量场很强,谢谢你,我爱你4.感恩理发师,谢谢你给我修剪头发,还送我头疗和护理,太开心了,谢谢你,我爱你5.感恩我闺蜜,谢谢你和我聊天,准备迎接我的到来,谢谢你,我爱你6.感恩强哥,谢谢你给我能量包,
- 冯学荣:崇祯皇帝上吊之前的24小时,都做了些什么?
读书人冯学荣
崇祯十七年(农历)三月十八日。白天。李自成的闯军,终于兵临北京城下。紫禁城告急。此时,太监王廉急急忙忙跑进来,向崇祯皇帝报告:闯贼已逼近城外,我守军不支,估计抵挡不了太久。崇祯皇帝此时正在饮酒,喝到半醉,对于这个结果,他早已有心理准备,此时的他,苦笑着,吐出这么一句话:“苦了我的百姓们了!(苦我民尔)”也在此时,守在一旁的太监张殷,鼓起勇气,对皇帝嘣出了他一直想说,却又一直不敢说的真心话:“皇上,
- 学习小组Day6笔记--魏麻将
魏麻将
R包什么?R包是R函数,编码和样本数据的集合,它们存储在R环境中的名为“library”的目录下。默认情况下,R在安装过程中安装一组软件包。当需要某些特定的目的时,也可根据需要添加更多的包。当我们启动R控制台时,默认情况下只有默认软件包可用。已经安装的其他软件包必须明确加载才能被要使用的R程序使用。注意:学生信,R语言必学的原因是丰富的图表和Biocductor上面的各种生信分析R包。安装和加载R
- 苹果电脑磁盘清理,方法及步骤介绍
科技闲人
电脑缓存mac
苹果电脑的使用时间久了后,苹果电脑上可能积累了大量的应用程序、游戏以及各种文件。随着时间的推移,这些内容的不断增多会导致磁盘空间逐渐减少,进而影响电脑的整体性能。当存储空间告急时,无论是打开文件还是浏览网站,都可能变得迟缓卡顿,给用户的使用体验带来极大的不便。因此,掌握苹果电脑磁盘清理的方法和步骤,就显得尤为重要。一、备份重要数据,确保安全无忧在进行任何磁盘清理操作之前,用户首先要确保重要数据的安
- 发
路语旁集
昨天,我终于鼓舞勇气去剪发,于是到家附近的理发店去,准备改变形象。我们去的早,理发店还没开始正常营业,我只好坐在里面静静地等待,等待理发师给我剪头。因为我吃过一次亏,从那之后我理发就很谨慎,事先问好价格,也不会听理发师给我的的意见,因为他总是想让我多出点血,让后在我头上做文章。老公在旁边监督理发师,并且要他剪快一点,生怕他给我推荐其他理发项目,理发师不断怂恿我把头发烫一烫,可是我就是不为所动,他说
- 7天有效阅读营DAY6
楚正军
2020年12月05日星期六阴如何成为真正的学习高手第1定律:把学习的知识转化为价值,为帮助别人解决问题的问题同行思维,向顶级的同行学习,研究同行,寻找规律有销售高手一个小区销售保险几个亿?怎么做到的?能给你什么启发反思自己学习系统的建立?第2定律:行动力,需要超强的行动力,如果没有,借助外力,提升自己的行动力资源整合变现商业模式的课程第3定律:要让自己享受喜欢被碾压的感觉,投资个人品牌第4定律:
- 百日打字计划 | Silent
透明闪电
一段Story的『第四十九段故事』喧闹如我,不沉默的大多数,也会有喜欢安静的地方。成年后的习惯多和儿时有关,奶奶带我去理发的时候,总会和理发师说,说我的头型,说我的旋,说我长大了聪明。害羞的我一味配合理发师的动作,不发言语只是感受,感受脸颊的温度上升的速度。到现在理发的时候都不善言辞,让理发师自由发挥真不是出于信任,会对我说的只有发际线高,推荐我植发的好。我喜欢在理发店坐着的宁静,只有推子的电机和
- 有趣的心理现象
佳佳_c2e1
09.22(day6)书名:《细节:如何轻松影响他人》正文:790字1.对比的力量人们在做决定的时候,选项出现的顺序是非常重要的,心理学上称之为“知觉对比”。我们开看个例子吧。小张给客户展示方案的时候,并没有把他觉得最好的方案给客户。他首先展示了A方案,告知客户,这个方案很好就是成本比较高。然后又展示了B方案,说这个方案也不错,就是比较耗时。最后,他拿出了他选的最佳方案。这个时候,想要的效果就出现
- 定投反思报告day6: 幸运的傻瓜
我就是小树张淑娟
这是一篇《随机漫步的傻瓜》的读后感。1.我学到了什么?明明是靠运气(天时地利)办成的事,却认为自己靠的是实力。应对方法就是努力说服自己就是个傻子,并时时的承认自己的观念可能是错的!既然是错的,发现后改了就是了,没啥好丢脸的!2.我应该怎样想才对?(1)教学创新获奖,纯属运气好如果我在读博士的时候,没有获得出国留学的机会,我可能就没有办法真正的去探索自己学习当中的问题,然后就不会意识到我学习的问题在
- 亲子时间管理90天(Day6)
HiMia_e38d
打卡日期:2019年3月7日90天打卡累计天数:6/90#宣言:父母的高度是孩子的起点#孩子第一个30天目标:周一至周五8:00前起床21:00前睡觉,周末9点前起床21:30前睡觉家长第一个30天目标:7:30前起床23:30前睡觉加油小宝(虾皮+4岁半)践行打卡6/301.规律作息:早8:00晚21:002.亲子阅读:《阿凡提》、《屁屁侦探》、《淘气的的新朋友》3.️今日闪光点:童言:“妈妈,
- Ryzen 9000X3D还没来,先等来了R5 7600X3D
Name_NaN_None
原创转载电脑科技游戏机人工智能
原文转载修改自(更多互联网新闻/搞机小知识):R57600X3D或于下月初推出,6核12线程102MB缓存昨天我们刚刚聊过Ryzen9000在欧洲部分地区开售即打折的“骚操作”,上周我们也曾分享过R99900X和R99950X首周在德不过50块的销量,我们更是曾数次提到R77800X3D的“惊艳”表现,以及其价格连涨,库存告急的无奈现实。而苏妈似乎也看到了背后的商机,有消息称AMD计划推出R576
- 女人的慕强心理真是可怕
蔷薇花2019
室友喝了点酒,非常兴奋地和我说和29岁两部兰博基尼的老板吃饭、喝酒和回酒店故事,因为不知道老板是真醉还是假醉,所以没睡成。第一次喝酒就去酒店,不管是一方真醉还是假醉,另一方欲拒还迎,大概只是炮友而已吧。不过她开心的样子好真实。老板听她说了一句发型太丑,老板就找私人理发师顺势而为去理发,她念叨了好几遍这说明什么。三瓶啤酒就不省人事,他是否是在试探等等。至于吗?和一个两部兰博基尼的人睡真的有啥值得高兴
- 理发记
清水离子
前阵子,小区新开了一家美发店,到处发体验卡做宣传,30元一张卡,可以洗剪吹三次,或烫染头发抵现300元。于是我也随大流买了一张卡。后来嫂子带着小侄子去理了一次发,说是还不错,“理发师蛮细致,一个小男孩平头,足足剪了一个多小时”,还没等我发表说辞,老哥就在一旁补充:“剪得是还可以咯,这不你嫂子还被忽悠得办了张贵宾卡呢”,嫂子冲他翻了个白眼。昨日,心血来潮也想着要打理下自己这半年多未曾修剪的发,顺便试
- day6 作业 车牌限号查询;大图显示
Gary134
车牌限号*{margin:0;border:0;}#box1{border-bottom:1pxsolid#808080;text-align:center;margin-top:200px;}#box1input{font-size:30px;outline:none;text-align:center;border-bottom:1pxdotted#909090;margin-bottom:1
- 克己日记。壬寅年八月十二2022.9.7
勤勉克己
今日晚,读书不是很用心,思绪飘忽,不知为何,强看半片之后才缓缓进入状态。写文时也不是十分认真,停停谢谢,只觉得好像自己写的自己都没感觉有趣。不知如何处理。但也正常,毕竟不能一本书都是高潮。再者,近几日上工总是干的不快,实在是干不动。后背肩膀很痛。久坐是对身体不好。又晚上读书,极意流口水想来是身体某处告急。身体革命本钱,可不能钱没赚到,命搭里面了。要精心才对,这是改正坏毛病的必然阶段。不能放松。
- 2021-10-16
e36b5dbdecbd
七天训练营复盘总结day6(2021.10.15)听到的干货:一.社群如何玩1.各行业改变背后都有理论支撑最好的学习方法是跟着平台实操跟着实操的平台不断在一线去实战2.大家都有流量,差的是杠杠思维3.潜水定律,如何变现,用少量时间,把群搞定,如何盘活,链接群主,搞定群主,群主思维模型,怎么搞定社群,一伙人思维,收人,收心,收灵魂,从赚差价到收人收钱收心,一伙人一辈子4.帮助别人解决问题,在圈层一直
- 日精进Day6
x念x
2020.01.11见:今天一觉睡到自然醒,来深圳第一次睡得最香的一觉,幸福。悠哉悠哉起床洗头吃午饭,刷了小会微博,还K歌啦,哈哈哈。当然,学习课程四个小时,主要也是复习,发现有一些知识点之前学习的时候被跳过了,太粗心啦感:给妈妈打了一通电话,和她聊了聊我最近的状态。来自妈妈的关心让我心里暖暖的,而且更加坚定自己的选择。而且无论自己做什么决定,家人的支持与否也会影响自己,好在妈妈也很支持我,虽然她
- 矩阵求逆(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