- 90天读书分享76——家为什么会伤人
韧2018
图片发自App今天分享的书籍是《家为什么会伤人》,作者是武志红,著名的心理学家,畅销书作家。本书是讲述中国家庭的文化的一些缺陷造成的种种不良后果,我将分享书中家庭和婚姻中的误区和正确的做法。由于我们在家庭和婚姻中没有采取正确做法,走入了误区,会给婚姻和家庭带来巨大的伤害,而且这种伤害会可能会对子女造成影响,会不断延续下去,造成悲剧的反复发生。现在来看看婚姻中存在误区:第一个误区是不以夫妻关系为家庭
- 【LeetCode 算法笔记】739. 每日温度
Sardar_
算法leetcode笔记
目录问题描述暴力解法栈问题描述给定一个整数数组temperatures,表示每天的温度,返回一个数组answer,其中answer[i]是指对于第i天,下一个更高温度出现在几天后。如果气温在这之后都不会升高,请在该位置用0来代替。示例1:输入:temperatures=[73,74,75,71,69,72,76,73]输出:[1,1,4,2,1,1,0,0]示例2:输入:temperatures=
- 老子76
程三板2
第七十六章[原文]人之生也柔弱,其死也坚强。草木之生也柔脆,其死也枯槁。故坚强者死之徒,柔弱者生之徒。是以兵强则灭,木强则折。强大处下,柔弱处上。[译文]人活着的时候身体是柔软的,死了以后身体就变得僵硬。草木生长时是柔软脆弱的,死了以后就变得干硬枯槁了。所以坚强的东西属于死亡的一类,柔弱的东西属于生长的一类。因此,用兵逞强就会遭到灭亡,树木强大了就会遭到砍伐摧折。凡是强大的,总是处于下位,凡是柔弱
- 【一起读书】时间这么短,如何快速获取你想要的答案?
冰凝诗与画
年前通过大花的一篇文章(自从把小孩当植物养后,整个人都好多了),加入了小号互抽群,看着大家都在日更,突然觉得不能再荒废时光了。春节也过完了,新年目标也立下了,最起码今年读的书要比去年多吧(2018年一整年读完76本书,我从中获得了什么),文章也要多写,才能练好自己的笔杆子。所以从今天开始,每天都会不定时更新,最关键的是希望大家都能领悟到阅读的魅力,一起阅读吧!今天先分享一本听到的书《快速阅读术》,
- 营造鼓励提问的氛围----问题引领数学学习9
卌行
今天继续在营造鼓励提问的课堂文化后,沿着这一思路,该书还提供了几个策略:(P76-82)1.用问题本将问题固化下来。这是书中提供的两个学段的学生问题本。这是很好的方法,还可以再进一步,直接变成学生的问题手账本。也就是说,孩子自己去设计格式,老师只做最保底的要求,如必须有:我学习什么内容时,提出了哪些问题,通过学习,解决了哪些问题。在这个基础上,学生可以记录下自己提出的问题,以及自己觉得特别好的问题
- 8月15日,不同寻常的一天
小凯聊天室
回望76年前的今天,裕仁天皇宣布日本无条件投降,中国人民从此站起来了,不再受到列强们的欺辱,国家主权实现了独立,中国人的腰杆子直起来了。历史不应忘记,吾辈应当自强!1.抗日战争早已成为过去式,新时代下为什么我们还要记住它?答:抗日战争虽然早已结束,但是抗日精神应该永远存在我们的内心里面,不容消散。难道君已经忘记南京大屠杀的惨案了吗?忘记了七七事变了吗?忘记日本人在中国的横行霸道了吗?爱国,这是每一
- 你被卷了吗?地产人
地产人观察日记
最近有点儿文思泉涌,更文积极性大增,主要是有自己想说的话题!内卷,本是一个社会学术语,现在用来代指非理性的内部竞争!最开始这个词频繁的用在互联网行业中,近一段时间开始蔓延到各行各业。01学历内卷在2020年地产行业人才报告中,地产行业本科学历人才占比67.06%,硕士及以上学历人才占11.4%。而在2018年的同类数据中,地产行业本科以上学历占比76%,本科学历64%,硕士学历10%,博士及博士后
- 剽悍一只猫:剽悍牛人100条(十一)
要瘦的孙小米
76.我们应该对外展示什么?自己的认知优势、人格魅力以及成功案例。77.宁做榴莲,不做香蕉。你得有个性,切莫去迎合所有人。世界这么大,有一部分人非常非常非常喜欢你就够了。如果有人骂你臭,正常。78.进四出六。赚了100,留下40,拿出60,跟对的人(比如帮过你的人、团队成员等等)共享,这样你就能长期赚到钱。79.做阻力小的事。对用户进行筛选,你的服务阻力会小,更有可能跟用户共赢;做自己擅长的事情,
- 点淘app邀请码是多少?(2024附点淘邀请码填写会随着点淘平台的发展而焕发生机)
桃朵十三
随着移动互联网的快速发展,越来越多的电商平台应运而生。点淘邀请码是点淘邀请码邀请码或【LRM8XZH9】【LRM8XZH9】【LRYTO3FS】【1247737368】【LRM8XZH9】、【1247737368】和【1045168054】。【1045168054】【LRM8XZH9】【LRM8XZH9】【LRYTO3FS】和【1484027154】请注意,只有在下载点淘邀请码后CY5K不Q76D
- 2018-05-26
信念_2ed7
姓名:袁文敬公司:昆明林顿利商贸有限公司【日精进打卡第34天】【知~学习】《六项精进》4遍共88遍《大学》2遍共76遍《稻盛和夫自传》{}【经典名句分享】人生不是一场物质的盛宴而是一次灵魂的修炼【行~实践】一、修身1、听歌、阅读书籍2、锻炼身体3、保持一个良好的心态,不要有感性的烦恼,每天反省4、世界上最大的距离就是知与行的距离二、齐家:(对家庭和家人)三、建功(对工作){积善}:发愿从2018年
- 周文王姬昌的河南情怀,辞世前最后一句话,竟与这个城市有关
中山人读文史
周文王姬昌的河南情怀,辞世前最后一句话,竟与这个城市有关周文王姬昌,是《易经》的“三圣”之一,生前曾在河南鹤壁(朝歌)、安阳(羑里城)等地方,结下了不解之缘。特别是文王,在纣王失政,遭奸臣小人的陷害下,被画地为牢,拘禁在河南安阳长达七年。七年里,“文王拘而演周易”,苦亦乐、贫亦乐。逆境中,将伏羲先天八卦演绎成后天64卦,为世人立下了不朽的贡劳。“源易缘”在通读《封神演义》时发现:文王历经七年牢狱磨
- 活着就要感谢
小苏_susy
【姓名】张书【公司】浙江鲍斯高服饰有限公司【组别】448期谦虚二组472期反省一组志工【日期】2018年12月13日【日精进打卡第76天】【知~学习】《六项精进》2遍共174遍《大学》2遍共149遍《活法》P009-012《京瓷哲学》《经营十二条》P59-64【经典名句分享】只有感觉到自己是幸运的,才会对周围抱有感谢之心。【行~实践】一、修身:(对自己个人)1、坚持每天读书2.坚持多喝水3.坚持每
- 《IP思维》76
农牧学堂一付海涛
《IP思维》(第76节)#学习《IP思维》助你躺赢未来#打造个人影响力,输出优质的内容是关键。首先,最基础的条件是必须对本领域有充分的认知,且必须有超过大部分人的行业洞察以及不断扩大行业体系、知识边际;其次,打破同质化,建立标识性。行业内大多数人都持相同观点或看法的事情,最好不要去掺和,你的每一个想法都来源于自己的深度思考;第三,切勿为了蹭热点刷存在感,热点蹭的不好,容易人设崩塌,损毁在粉丝心中的
- 欧洲生存指南
張小兵
今天上午天晴,下午转阴,刮起大风。电脑第一条推送,"StephenHawkingdiesandfloodwarning"。住家Maxine是在大学工作的,我问她今天大学怎么样,她说,还是那样呗,但是BBC已经派人过来四处做采访了,估计会有一场挺大的葬礼。然后,她顿了顿说,再也没有机会在ChristmasDinner碰到霍金啦。早上起来刷手机看到许多小朋友都满有意思的,为这个几千公里外素未谋面的人发
- 心遇邀请码是多少2024新版邀请码奖励揭秘(附心遇app免费邀请码获取方法)确定有效
桃朵十三
嘿,小伙伴们!你们还在为找不到那个特别的TA而烦恼吗?别担心,我有个好消息要告诉你!那就是心遇,一款专注于陌生人社交的创新软件!你填写心遇邀请码【AXWGQB】后还有奖励哦!心遇可不是一般的交友软件,它能让你在网络世界中找到那个和你心灵相通的TA。心遇邀请码是心遇邀请码邀请码或【AXWGQB】【AXWGQB】【AXWGQB】。请注意,只有在下载心遇邀请码后CY5K不Q76D的10天内填写心遇邀请码
- 千英76
海哥0001
观音菩萨的生话中的第三个就是第一个姐姐就是雌雄同体,是第二个gg,永恒性与实践统一的象征,产生的图像,严重事件的世界就是我一当五天的自贡,自贡有父亲带来的生命,由母亲照顾的人员和附近的光明和成功离开,父亲在目前。但是等我们从4号从子宫中通过事那事,实现永生的,永生的出生,我们被交到了父亲手中,明智的人与事,即使在职工中,他们也是来这附近,并回到福建那里,而智者知道母亲和父亲本质上是同一台车就是,是
- 某创员工理财都兑了,村镇银行还会远吗?
大佛聊互联网金融
5月12日,R创发布公告称4月到期的4笔美元债利息,共计1.04亿美元(约7亿人民币),在宽限期一个月后依旧无法偿还,构成实质性违约。并且目前R创还有存续美元债近76亿美元,偿债压力不小。而在今年4月1日,R创就因无法按时发布2021年的年报被停牌。若从2021年半年报来看,公司总资产为12054亿元,负债总额达9971.22亿元,逼近万亿大关。并且R创上月还到期了一笔40亿元的公司债,因公司流动
- 《相约星期二》读书笔记
糖宝
相约星期二是美国作家米奇与其导师莫里在辞世前的每个星期二讨论人生哲理的一本书。我在网易蜗牛阅读上用了2天时间看完,做了笔记相约星期二.jpg我有以下感触:1、关于疾病与死亡莫里患的是和霍金一样的罕见的渐冻症,这种病不能行走,生活需要别人照顾,而且慢慢失去各种能力,当躯体一天天变坏,越发严重,你能感知到死亡越来越近,除了痛苦、怨天尤人,你还能怎么办呢?而莫里上电视节目谈自己的感受,回复他人的信件,关
- 高省邀请码是998888多少2024大全高省邀请码666777(填写教程分享)
凌风导师
理高省网评测作为一个行业评测机构,评测标准是否公正合理是评测方公信力的体现。高省网评测的评测过程是否公开透明也是正规性的重要体现。高省邀请码高省邀请码邀请码或【882288】【500888】【999777】【998888】、【333555】和【882288】。【500888】【999777】【998888】【333555】和【777999】请注意,只有在下载头条搜索极速版邀请码后CY5K不Q76D
- 觉察日记76:转念
悦尘ceeport
1.【天使来信day37】你将拥有十分奇妙的点子,虽然并不那么容易实现,但相信这是大自然的引导,你拥有完成它的能力,我会协助让这想法开花结果。01不用与过去的传统观念亦步亦趋;02尝试新的东西,改变旧模式;03你有能力去体验你想要的结果;04想象并感受可能发生的最积极的结果,就好像它是真的一样;05神来之笔会赐予你灵感,你要努力得到它。2.【今日情绪觉察】今日主要情绪议题及指标:下午和朋友聊天时几
- java编程题——八皇后问题
sdg_advance
java算法排序算法数据结构
背景及问题介绍:八皇后问题(英文:Eightqueens),是由国际象棋棋手马克斯·贝瑟尔于1848年提出的问题,是回溯算法的典型案例。问题表述为:在8×8格的国际象棋上摆放8个皇后,使其不能互相攻击,即任意两个皇后都不能处于同一行、同一列或同一斜线上,问有多少种摆法。高斯认为有76种方案。1854年在柏林的象棋杂志上不同的作者发表了40种不同的解,后来有人用图论的方法解出92种结果。如果经过±9
- 保持你的好奇心
Shoretia
看到每个人都在自己的圈子里过得很好,我就放心了!图片发自App今天中午听到的消息,霍金同学永远离我们而去了。个人感到很震惊,在看到各公众号不断推出怀念霍金的文章后,才反应过来,这不是霍金同学与我们开的玩笑,他真的走了。这个伟大的科学家的名字从小就不断出现在我的耳边。不仅是他的科学成就,还有他的残疾身份让我们佩服不已!在最得意的年纪得了最可怕得病,能坚持活下来需要多么强大的意志。还记得从小写作文,霍
- 人工智能中的哲学
Dijkstra's Monk-ey
深度学习人工智能哲学笔记AIGC业界资讯需求分析程序人生
今天聊一个比较轻松的话题:人工智能中的哲学。人工智能会不会问:我是谁,我从哪里来,我要到哪里去?以下是《人工智能哲学》这本书的读书札记。〇、前言人工智能威胁论支持者:埃隆·马斯克、史蒂芬·霍金、比尔·盖茨反对者:马克·扎克伯格、吴恩达、佩德罗·多明戈斯人工智能是什么?应不应该发展人工智能?未来机器人和自动化会不会完全取代人类劳动力?人类的本质是不是一种机器?未来会不会制造出有意识的计算机?未来人类
- 一起学习LeetCode热题100道(72/100)
久违的小技巧
学习leetcode算法
72.每日温度(学习)给定一个整数数组temperatures,表示每天的温度,返回一个数组answer,其中answer[i]是指对于第i天,下一个更高温度出现在几天后。如果气温在这之后都不会升高,请在该位置用0来代替。示例1:输入:temperatures=[73,74,75,71,69,72,76,73]输出:[1,1,4,2,1,1,0,0]示例2:输入:temperatures=[30,
- Blender纹理绘制无效的几种解决方案(备忘录01)
2301_78998594
blender
图片来源:b站:Nora仙仙仙https://www.bilibili.com/video/BV1x8411r76A/解决方案:1.1:到编辑模式下选中物体后重试;1.2(本人遇到的问题):打开面朝向模式,蓝色的物体是正常物体,红色表示面朝向相反,你画的东西都在背面全选并SHIFT+N,就可以把面朝向反过来
- 2022-10-24 学易漫谈(76-80)
七星客球体卦
76、关系场效应在角色群体的活动效率中,既可能产生增力作用,也可能导致减力作用。“三个臭皮匠,赛过诸葛亮”,这种情况下“1+1+1”大于3。这在群体成员活动的效率角度上,称之为“群体的增力作用”。“三个和尚没水喝”,这种情况下的“1+1+1”却等于0了。这在群体成员活动的效率角度上,称之为“群体的减力作用”。这种由不同的角色扮演者组成的群体产生的内聚力或摩擦力,在社会心理学上,统称为“关系场效应”
- 状元日志76
亲睦堂明瑞
2020年8月21日星期五天气阴离高考还有290天服务分公司,按部就班进行中。做人民的公仆,分公司的勤务员。力争将分公司一塌糊涂的面貌彻底改变,只一朝夕即可,有神助。未雨绸缪做的好,不露声色隐的妙。上蹿下跳何于此,路人之于司马昭。
- 绘本讲师训练营【76期】11/21阅读原创《第一次上街买东西》
小李樱子
76004李樱樱最近开始用孩子的方式读绘本,先看图画。绿色的背景,可爱天真的小女孩的笑脸,这一切都是那么生机勃勃。大大的牛奶盒子,这种快乐绝对不是得到了喝的那么简单,这种喜悦一定是️有故事的。就这样走进了林明子老师的绘本,之前看过对林明子老师创作风格的介绍,我概括为:温暖的记忆、细微的情感、隐藏的秘密。就让我们一起从这三点开始《第一次上街买东西》吧。孩子的成长是一点一滴漫长的积累过程,但总有那些第
- 2021-07-07
Fang尛芳
顺萃2021.7.7日课76/2001:修恒读书《大学精义》261-268页做到金句:先要在家里落实了孝、悌、慈,然后才是治国。治国的时候,就是把齐家时对父亲的态度拿来对待领导,就可以了。儒家的修行是一步一步来的,是齐家、治国、平天下,顺序不能颠倒。2:控情:克性情,不喊,不生气。——做到慎言,好好说话,说好话——做到3:敬慎:对人敬,对事敬,对物敬——做到
- 《论语》学习一Day76
9f1c26c9f423
《述而篇》7.30:子曰:“仁远乎哉?我欲仁,斯仁至矣。”译文:孔子说:“仁离我们很远吗?内心想要仁的那一刻,仁就来了。”孔子说求仁,那么按照仁的标准去做事就成功了。也就是说,仁是一种向善的状态。当某个人在某一刻心念一起,突然想做一个好人的时候,那一刻就是仁。孔夫子说“仁”,老子说“道”,孟子说“吾善养吾浩然之气”,共同的特点是,既难也不难。樊登老师说,这个世界上所有高级的东西,都是既难也不难的,
- 对股票分析时要注意哪些主要因素?
会飞的奇葩猪
股票 分析 云掌股吧
众所周知,对散户投资者来说,股票技术分析是应战股市的核心武器,想学好股票的技术分析一定要知道哪些是重点学习的,其实非常简单,我们只要记住三个要素:成交量、价格趋势、振荡指标。
一、成交量
大盘的成交量状态。成交量大说明市场的获利机会较多,成交量小说明市场的获利机会较少。当沪市的成交量超过150亿时是强市市场状态,运用技术找综合买点较准;
- 【Scala十八】视图界定与上下文界定
bit1129
scala
Context Bound,上下文界定,是Scala为隐式参数引入的一种语法糖,使得隐式转换的编码更加简洁。
隐式参数
首先引入一个泛型函数max,用于取a和b的最大值
def max[T](a: T, b: T) = {
if (a > b) a else b
}
因为T是未知类型,只有运行时才会代入真正的类型,因此调用a >
- C语言的分支——Object-C程序设计阅读有感
darkblue086
applec框架cocoa
自从1972年贝尔实验室Dennis Ritchie开发了C语言,C语言已经有了很多版本和实现,从Borland到microsoft还是GNU、Apple都提供了不同时代的多种选择,我们知道C语言是基于Thompson开发的B语言的,Object-C是以SmallTalk-80为基础的。和C++不同的是,Object C并不是C的超集,因为有很多特性与C是不同的。
Object-C程序设计这本书
- 去除浏览器对表单值的记忆
周凡杨
html记忆autocompleteform浏览
&n
- java的树形通讯录
g21121
java
最近用到企业通讯录,虽然以前也开发过,但是用的是jsf,拼成的树形,及其笨重和难维护。后来就想到直接生成json格式字符串,页面上也好展现。
// 首先取出每个部门的联系人
for (int i = 0; i < depList.size(); i++) {
List<Contacts> list = getContactList(depList.get(i
- Nginx安装部署
510888780
nginxlinux
Nginx ("engine x") 是一个高性能的 HTTP 和 反向代理 服务器,也是一个 IMAP/POP3/SMTP 代理服务器。 Nginx 是由 Igor Sysoev 为俄罗斯访问量第二的 Rambler.ru 站点开发的,第一个公开版本0.1.0发布于2004年10月4日。其将源代码以类BSD许可证的形式发布,因它的稳定性、丰富的功能集、示例配置文件和低系统资源
- java servelet异步处理请求
墙头上一根草
java异步返回servlet
servlet3.0以后支持异步处理请求,具体是使用AsyncContext ,包装httpservletRequest以及httpservletResponse具有异步的功能,
final AsyncContext ac = request.startAsync(request, response);
ac.s
- 我的spring学习笔记8-Spring中Bean的实例化
aijuans
Spring 3
在Spring中要实例化一个Bean有几种方法:
1、最常用的(普通方法)
<bean id="myBean" class="www.6e6.org.MyBean" />
使用这样方法,按Spring就会使用Bean的默认构造方法,也就是把没有参数的构造方法来建立Bean实例。
(有构造方法的下个文细说)
2、还
- 为Mysql创建最优的索引
annan211
mysql索引
索引对于良好的性能非常关键,尤其是当数据规模越来越大的时候,索引的对性能的影响越发重要。
索引经常会被误解甚至忽略,而且经常被糟糕的设计。
索引优化应该是对查询性能优化最有效的手段了,索引能够轻易将查询性能提高几个数量级,最优的索引会比
较好的索引性能要好2个数量级。
1 索引的类型
(1) B-Tree
不出意外,这里提到的索引都是指 B-
- 日期函数
百合不是茶
oraclesql日期函数查询
ORACLE日期时间函数大全
TO_DATE格式(以时间:2007-11-02 13:45:25为例)
Year:
yy two digits 两位年 显示值:07
yyy three digits 三位年 显示值:007
- 线程优先级
bijian1013
javathread多线程java多线程
多线程运行时需要定义线程运行的先后顺序。
线程优先级是用数字表示,数字越大线程优先级越高,取值在1到10,默认优先级为5。
实例:
package com.bijian.study;
/**
* 因为在代码段当中把线程B的优先级设置高于线程A,所以运行结果先执行线程B的run()方法后再执行线程A的run()方法
* 但在实际中,JAVA的优先级不准,强烈不建议用此方法来控制执
- 适配器模式和代理模式的区别
bijian1013
java设计模式
一.简介 适配器模式:适配器模式(英语:adapter pattern)有时候也称包装样式或者包装。将一个类的接口转接成用户所期待的。一个适配使得因接口不兼容而不能在一起工作的类工作在一起,做法是将类别自己的接口包裹在一个已存在的类中。 &nbs
- 【持久化框架MyBatis3三】MyBatis3 SQL映射配置文件
bit1129
Mybatis3
SQL映射配置文件一方面类似于Hibernate的映射配置文件,通过定义实体与关系表的列之间的对应关系。另一方面使用<select>,<insert>,<delete>,<update>元素定义增删改查的SQL语句,
这些元素包含三方面内容
1. 要执行的SQL语句
2. SQL语句的入参,比如查询条件
3. SQL语句的返回结果
- oracle大数据表复制备份个人经验
bitcarter
oracle大表备份大表数据复制
前提:
数据库仓库A(就拿oracle11g为例)中有两个用户user1和user2,现在有user1中有表ldm_table1,且表ldm_table1有数据5千万以上,ldm_table1中的数据是从其他库B(数据源)中抽取过来的,前期业务理解不够或者需求有变,数据有变动需要重新从B中抽取数据到A库表ldm_table1中。
- HTTP加速器varnish安装小记
ronin47
http varnish 加速
上午共享的那个varnish安装手册,个人看了下,有点不知所云,好吧~看来还是先安装玩玩!
苦逼公司服务器没法连外网,不能用什么wget或yum命令直接下载安装,每每看到别人博客贴出的在线安装代码时,总有一股羡慕嫉妒“恨”冒了出来。。。好吧,既然没法上外网,那只能麻烦点通过下载源码来编译安装了!
Varnish 3.0.4下载地址: http://repo.varnish-cache.org/
- java-73-输入一个字符串,输出该字符串中对称的子字符串的最大长度
bylijinnan
java
public class LongestSymmtricalLength {
/*
* Q75题目:输入一个字符串,输出该字符串中对称的子字符串的最大长度。
* 比如输入字符串“google”,由于该字符串里最长的对称子字符串是“goog”,因此输出4。
*/
public static void main(String[] args) {
Str
- 学习编程的一点感想
Cb123456
编程感想Gis
写点感想,总结一些,也顺便激励一些自己.现在就是复习阶段,也做做项目.
本专业是GIS专业,当初觉得本专业太水,靠这个会活不下去的,所以就报了培训班。学习的时候,进入状态很慢,而且当初进去的时候,已经上到Java高级阶段了,所以.....,呵呵,之后有点感觉了,不过,还是不好好写代码,还眼高手低的,有
- [能源与安全]美国与中国
comsci
能源
现在有一个局面:地球上的石油只剩下N桶,这些油只够让中国和美国这两个国家中的一个顺利过渡到宇宙时代,但是如果这两个国家为争夺这些石油而发生战争,其结果是两个国家都无法平稳过渡到宇宙时代。。。。而且在战争中,剩下的石油也会被快速消耗在战争中,结果是两败俱伤。。。
在这个大
- SEMI-JOIN执行计划突然变成HASH JOIN了 的原因分析
cwqcwqmax9
oracle
甲说:
A B两个表总数据量都很大,在百万以上。
idx1 idx2字段表示是索引字段
A B 两表上都有
col1字段表示普通字段
select xxx from A
where A.idx1 between mmm and nnn
and exists (select 1 from B where B.idx2 =
- SpringMVC-ajax返回值乱码解决方案
dashuaifu
AjaxspringMVCresponse中文乱码
SpringMVC-ajax返回值乱码解决方案
一:(自己总结,测试过可行)
ajax返回如果含有中文汉字,则使用:(如下例:)
@RequestMapping(value="/xxx.do") public @ResponseBody void getPunishReasonB
- Linux系统中查看日志的常用命令
dcj3sjt126com
OS
因为在日常的工作中,出问题的时候查看日志是每个管理员的习惯,作为初学者,为了以后的需要,我今天将下面这些查看命令共享给各位
cat
tail -f
日 志 文 件 说 明
/var/log/message 系统启动后的信息和错误日志,是Red Hat Linux中最常用的日志之一
/var/log/secure 与安全相关的日志信息
/var/log/maillog 与邮件相关的日志信
- [应用结构]应用
dcj3sjt126com
PHPyii2
应用主体
应用主体是管理 Yii 应用系统整体结构和生命周期的对象。 每个Yii应用系统只能包含一个应用主体,应用主体在 入口脚本中创建并能通过表达式 \Yii::$app 全局范围内访问。
补充: 当我们说"一个应用",它可能是一个应用主体对象,也可能是一个应用系统,是根据上下文来决定[译:中文为避免歧义,Application翻译为应
- assertThat用法
eksliang
JUnitassertThat
junit4.0 assertThat用法
一般匹配符1、assertThat( testedNumber, allOf( greaterThan(8), lessThan(16) ) );
注释: allOf匹配符表明如果接下来的所有条件必须都成立测试才通过,相当于“与”(&&)
2、assertThat( testedNumber, anyOf( g
- android点滴2
gundumw100
应用服务器android网络应用OSHTC
如何让Drawable绕着中心旋转?
Animation a = new RotateAnimation(0.0f, 360.0f,
Animation.RELATIVE_TO_SELF, 0.5f, Animation.RELATIVE_TO_SELF,0.5f);
a.setRepeatCount(-1);
a.setDuration(1000);
如何控制Andro
- 超简洁的CSS下拉菜单
ini
htmlWeb工作html5css
效果体验:http://hovertree.com/texiao/css/3.htmHTML文件:
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>简洁的HTML+CSS下拉菜单-HoverTree</title>
- kafka consumer防止数据丢失
kane_xie
kafkaoffset commit
kafka最初是被LinkedIn设计用来处理log的分布式消息系统,因此它的着眼点不在数据的安全性(log偶尔丢几条无所谓),换句话说kafka并不能完全保证数据不丢失。
尽管kafka官网声称能够保证at-least-once,但如果consumer进程数小于partition_num,这个结论不一定成立。
考虑这样一个case,partiton_num=2
- @Repository、@Service、@Controller 和 @Component
mhtbbx
DAOspringbeanprototype
@Repository、@Service、@Controller 和 @Component 将类标识为Bean
Spring 自 2.0 版本开始,陆续引入了一些注解用于简化 Spring 的开发。@Repository注解便属于最先引入的一批,它用于将数据访问层 (DAO 层 ) 的类标识为 Spring Bean。具体只需将该注解标注在 DAO类上即可。同时,为了让 Spring 能够扫描类
- java 多线程高并发读写控制 误区
qifeifei
java thread
先看一下下面的错误代码,对写加了synchronized控制,保证了写的安全,但是问题在哪里呢?
public class testTh7 {
private String data;
public String read(){
System.out.println(Thread.currentThread().getName() + "read data "
- mongodb replica set(副本集)设置步骤
tcrct
javamongodb
网上已经有一大堆的设置步骤的了,根据我遇到的问题,整理一下,如下:
首先先去下载一个mongodb最新版,目前最新版应该是2.6
cd /usr/local/bin
wget http://fastdl.mongodb.org/linux/mongodb-linux-x86_64-2.6.0.tgz
tar -zxvf mongodb-linux-x86_64-2.6.0.t
- rust学习笔记
wudixiaotie
学习笔记
1.rust里绑定变量是let,默认绑定了的变量是不可更改的,所以如果想让变量可变就要加上mut。
let x = 1; let mut y = 2;
2.match 相当于erlang中的case,但是case的每一项后都是分号,但是rust的match却是逗号。
3.match 的每一项最后都要加逗号,但是最后一项不加也不会报错,所有结尾加逗号的用法都是类似。
4.每个语句结尾都要加分