- 小燕子的故事
同楼秀才
有则寓言故事:秋天来了,一只小燕子问正在忙碌的蚂蚁:“你们这是在做什么?”“我们在贮藏食物过冬。”它们迅速地回答。“这很聪明,”燕子说,“我也要这样做。”她立即动手把一些死蜘蛛、死苍蝇衔往自己的巢里去。“弄这做什么?”她的母亲终于忍不住问道。“预备过严寒的冬天呀,亲爱的妈妈;是蚂蚁把这种方法教给我的。”老燕说,“适合于它们做的并不适合于优秀的燕子。仁慈的大自然给我们安排了一个更吉利的命运。如果丰腴
- 道德经·第十七章
制心一处_无为而无不为
道德经·第十七章【作者】老子【朝代】春秋时期[原文]太上①,不知有之②;其次,亲而誉之;其次,畏之;其次,侮之。信不足焉,有不信焉。悠兮③,其贵言④。功成事遂,百姓皆谓“我自然”⑤。[译文]最好的统治者,人民并不知道他的存在;其次的统治者,人民亲近他并且称赞他;再次的统治者,人民畏惧他;更次的统治者,人民轻蔑他。统治者的诚信不足,人民才不相信他,最好的统治者是多么悠闲。他很少发号施令,事情办成功了
- 为什么农村父母不愿意去城里和子女住楼房?原因在这六点上!
红霜泪
首先,我们来了解一下农村的生活。在农村生活一辈子,最大的感受是什么?相信对很多城市里的人来说是永远无法体会的。在农村就是靠大自然吃饭,一年四季,围着那么几亩方田,几林小菜地,周边的群山,潺潺的溪水。这样的环境中生活,是非常安逸,没有什么烦恼,日出而作,日落而息。接着我们在来看这样的一个现状,即越来越多的年轻人离开农村,到城市里去安家。这种现状已经是极为普遍,很多农村已经很少看到年轻人的身影,大多都
- 中学生父母的修养
再简单不过了
我是一个中学生的父母,我有许多心情,偶尔彷徨,偶尔愤怒,偶尔欣喜,偶尔还会感伤,我彷徨的是。他仿佛瞬间长大了,失去了我的掌控,从而愤怒他不再和我那么亲近,第一次告诉我说,你根本就不懂我,欣喜的是,我经常看到的小一些人,已经以我察觉不到的速度慢慢的蜕变成一棵树,虽然不够枝繁叶茂,但是已经有很多分支,绿叶还有开叉了,我感觉自己并没有老去,但孩子却已经有自己的世界。他会说,不准随便进他的房间,不要乱问班
- 人物素描
金丝草
某男子,矮小猥琐,虽头脑灵活,但心胸极其狭窄,睚眦必报。初识此人,笑脸相迎,温语款款,让人心生亲近之情。久之,狐狸尾巴渐露,很是喜欢挑生是非,欺软怕硬,阴谋诡计,层出不穷。但外表依然装出一副正人君子,似乎他就是真理。天生此人,也算机缘,只是天道公正,奸邪污秽之人,必夺其福,机关算尽,也不过得其一二,于是乎,此人愈发干瘦命薄,日益佝偻,大有肺痨之嫌。唉,早知如此,何必当初。
- 《历史》与《战国策》札记(一百四)
刘子曰_b08e
卫鞅亡魏入秦,孝公以为相,封之于商,号曰商君。商君治秦,法令至行,公平无私,罚不讳强大,赏不私亲近,法及太子,黥劓其傅。期年之后,道不拾遗,民不妄取,兵革大强,诸侯畏惧。然刻深寡恩,特以强服之耳。孝公行之八年,疾且不起,欲傅商君,辞不受。孝公已死,惠王代后,莅政有顷,商君告归。人说惠王曰:“大臣太重者国危,左右太亲者身危。今秦妇人婴儿皆言商君之法,莫言大王之法。是商君反为主,大王更为臣也。且夫商君
- 【8月星座运势】巨蟹座金钱至上、天蝎贵人相助、双鱼座平衡万物
筝筝陪你看星星
本月重大天象8月2日星期二满月@水瓶座「集思广益、团体活动」水瓶座满月可能带来更强烈的情感和思维的挑战,存在更多的预料不及的突发事件,但同时也增加了对真理和公正的透视力。我们可能会感到更加亲近科技和革新的想法。对于自我实现,人道主义,团体活动和创新有着重要的影响。同时,满月会让我们进行反思,修改策略并将精力投入到这些领域。8月16日星期三新月@狮子座「展翅翱翔、积极自信」新月发生在狮子座是创造性,
- 欣欣向荣
玲珑骰
夜晚,田里蛙声一片,夹杂着断断续续的蟋蟀的鸣叫,热热闹闹的,像是在赶集,家门口这片田野应该是动物们的集市吧?又或者是个相亲角?毕竟春天来了呀,哈哈!好久没有像现在这样了,住在乡村的老房子里,静静地聆听着大自然演奏的交响乐,呼吸着清新的空气,感受着久违的宁静。回到阔别已久的家乡,回到熟悉的地方,虽然再也回不到年少的时光了,但是能在这里停留这么一段时间,我已经很满足了。记得小时候,我经常跟着妈妈上山砍
- 晨语问安2022年1月3日
求索大伟
『晨语问安1.3』实践出真知,实践是检验真理的。实践,毋庸置疑是检验能力、验证自我最有力的工具,而恰恰实践或称为行动,却是自身前行的最大的弱项,借用最亲近的人说我的一句话“不会用剩余生命陪我慢慢变好”,由此可见,执行力在我身上是何其弱小。同时,这与自己一直标榜积极向上的精神状态南辕北辙,越走越远。问题清楚呈现,改变刻不容缓,重点在于执行,绝非和风细雨,而应立竿见影,更要坚持不懈。早安,开心一天。[
- 【活动记录】2020年第一场故事会
可持续社区力量培育
在城市支教故事课上第一次见到戴戴时,已经被她身上散发出的气质与能量所吸引。她像一朵明媚的向日葵,积极、正向、乐观,富有爱心,在后来的接触中,感觉到她也像一位大姐姐,内在的那份包容和善意让人很愿意亲近她。故事课一结束,当大多数学员还在犹豫或作准备时,戴戴已率先联系好了场地,挑选了绘本,并且专程抽时间赶到怡乐路小禾的家与我进行商讨,想要把自己的第一场绘本故事会做好。后来,她又来了一次,我们一起研讨过两
- 无私有畏
诚明007
《无私有畏》记得上学时,学到一词汇,"无私无畏",是说内心无私,便可放开手脚、勇往直前了。走入社会才发现,这个成词,大有问题。你看,"无知才无畏",没有知识、不懂规律,"人有多大胆、地有多大产",林地被砍伐、山场被挖掘、河山被污染,等等。大自然当然也会报复,泥石流、水旱灾害、生存环境恶化……你看,"无良才无畏",没有良知、失去底线,什么坏事都敢做、什么黑钱都敢捞。把"破坏力"当"魄力"看,政治生态
- 《感恩日志》第(289)天
刘瀞聪_381f
1.感恩感谢今天又是一个好天气,可以带宝贝出去晒太阳,溜一圈。感恩感谢每天起来打开手机看到大家发的正能量问候语。感恩感谢实修营谷老师每天早上的感恩能量早课。抒发对大自然的情怀。感恩大自然带给我们的美好生活,美好享受!2.感恩感谢父母,给了我生命,让我享受美好幸福生活。3.感恩感谢婆婆公公为了我们这个小家的付出!家里地里不用我操心!4.感恩感谢金钱,可以买彩泥,可以买菜,金钱是爱的流动,感恩的花钱,
- 人生的峡谷,突然一阵豁然开朗的风吹过
秋星甄
突然想以这个标题,又顿觉人生一阵悲哀,话说目前我还没有真正领略过大自然呢?什么喀斯特地貌,丹霞地貌,敦煌沙漠,云贵川,巴蜀之地,还没来得及领略一二呢?还没有和我亲爱的祖国亲近亲近,还没有深入祖国腹地?还没有了解过我最亲爱的祖国呢?想起自己学语言的经历,最近一本古汉语书看的我是废寝忘食,一个笔记本都抄满了,心有神会哪句“手不释卷”作何解释了,古文,古汉语太美了,回头想想学英语和法语花费这么长时间是不
- 壹 顺应天性,无为而治【3】
作家雪漠
2014年夏天,我们从岭南开车回西部,然后专门对西部进行了考察。那两个月中,我们几乎横穿了大半个中国。我们发现,全国各地都在搞建设,而建设和开发的另一面,就是对大自然的破坏。有人甚至填平了大渡河的河床,在河床上盖楼房。楼体的旁边,就是汹涌的大渡河。当时我就在想,如果发大水,这里肯定会发生灾难性的事故。这些情况,不知道开发商为什么没有考虑过呢?很多时候,人在欲望——有时已经谈不上生存了,纯粹是一种欲
- 达尔文医学——《我们为什么生病》笔记完结篇
蹉跎笑我
一、对疾病原因的回顾为什么我们被大自然精心设计的身体,仍然为疾病所困?其原因在于:1、遗传因素很多疾病具有遗传性,人类的基因并不是完美无缺。一些致病基因是其只在生命晚期表现出危害,石器时期的人根本活不到这个年龄,自然选择也就没有机会清除掉。但更主要的原因是:有害的基因之所以保留下来,是因为存在潜在的益处。2、环境的巨变人类文明萌芽以来只有一万年,我们身体的进化速度跟不上环境的改变。3、一些疾病的原
- 感恩日记
叶汀
我很感恩连日的麻烦,焦虑,纠结,暴躁,疲劳,困顿,谢谢她们,终会过去,可以为她们停留,但不会深陷其中,长镜头往回看,都是傻傻可爱的自己,感恩!我很感恩前世今生的轮回,我虽忆不起完整的前世,只有零星碎片,其中有一个碎片记忆就是我披头散发被吊打的满脸是血,还有一个碎片记忆是我身着古装在大自然里玩耍,还有一些就很模糊很模糊了,但从这几个碎片来看我现在能理解我为啥那么胆小害怕了,队友深知我的胆小,从未离开
- 神奇的夜
Angel李子汐
神秘又神奇的宇宙,还有很多未知值得我们去探索有一种神秘的力量驱使着我使我深夜不能寐有个精灵儿在用双手跳舞而我始终看不清它的脸它只存在于黑夜它只能属于黑夜世外桃源并没有桃花也许它在雪山之巅那里有雪莲花吧那里是人间最纯洁美丽的地方那里的山和云不属于人间因为只有天外才会那样美突然很想去非洲想看看非洲一望无际的大草原那里虽然充满贫穷饥饿却有最纯椊的笑容合谐的大自然它是离天堂最近的地方或许我们都该接受洗礼人
- 土巴兔“兔友约” 落地中原 共商数字化发展大计
快消日日谈
10月13日,土巴兔联合大自然家居举办的“兔友约·精英汇”装企学习交流活动在郑州举办,当地近百名装企代表报名参加,全国知名家居建材与家电品牌代表出席并进行了干货满满的分享。活动采取“线上直播+线下交流”的方式。首先,土巴兔电商运营负责人彭惠清为大家带来《后疫情时代装企行业的变与不变》主题演讲,以用户角度为切入点,深入分析了解用户过去和现在需求的不同,装企需要以用户为基础,以市场为导向,转变为互联网
- 小麦!我们来啦
高实幼韩玲玲
泥学院是幼儿十分感兴趣的户外内容,有利于孩子亲近自然和阳光,户外活动有助于增强幼儿的体质,孩子们在泥学院中可以释放自己爱玩爱动的天性,大部分孩子都会主动参与到泥学院的户外活动中,幼儿可以通过跑、跳、爬等各种各样的活动来认识环境。之前中三班的小朋友种了红薯,在这个周我们开始准备种小麦,在翻地的过程中,还收获了之前种的很多红薯。岄岄:“我们的红薯应该怎么办呢?”荣荣:“不如我们把红薯切成一块一块的吧,
- 再读李笑来3203-时间买卖
青儿姑娘
1.幸福感的首要来源就是“与我正在生存的这个世界有着紧密的联系”。2.但是关爱的方式也有初级和高级之分。初级阶段我们会想要单方面的给予,不论是金钱上还是物质上。等到后期我们就会发现,真正的关爱其实是:给对方成长的机会。等到我们知道这一点后,就会发现这世界上最幸福的事,莫过于和最亲近的人“共同成长”。3.时间不可管理,你要做的只是管好自己。
- 有关放生的看法
如是我闻谛听
如今的放生法会大多数是集体行为,多一半是提前一周安排,和鱼贩提前预定。由于鱼贩平时生意没那么多,不会捕太多鱼,因此放生者要与鱼贩提前预定。另外,咱们如今没有放生池,这些鱼还要回到大自然当中,别的鱼贩照样还能捕捉。鱼贩在捕捉过程中受伤或死亡的这些债谁还?试问这些放生者有没有体会鱼的感受?举例:一个人被医院诊断为癌症晚期,请问这个人此时是什么感受,一周后医院通知诊断错误。这个人此时又如何呢?你是否要和
- 今天是个好日子
冷雪儿涓涓细流
昨天天气预报有雨夹雪,感觉肯定会很冷!今天早起,阴天,还没有下雨雪,十点左右太阳也出来了,没有什么风,身体感觉和昨天没什么两样。今天农历十一月二十日,是个好日子,婚嫁,乔迁新居的比较多,图个吉利!俊淑姐家今天乔迁新居,是要前去祝贺一下的。这位姐姐,是我五舅家的女儿,小时候我们经常在一起玩的,我和老公还是她介绍认识的,我嫁过来,我们本应该很亲近的,也应该经常来往的,由于我们的工作原因,她也是经常上班
- 随笔 挖笋记
Cyhhhhhhhh
小时候总不喜欢去田里山里,感觉一提到这两个地方就是脏兮兮,充满各种各样蛇虫鼠蚁的地方,没想到,长大以后,竟然越来越觉得去野外是件乐事,出一身汗,浑身脏兮兮也无所谓,感受大自然的美好。今天一早,扛着小锄头,来到了毛竹山,准备大干一场。脚底下是黄泥地,一抬一落,就留下一个脚印,我们几个人的脚印深深浅浅,给这片土地盖上了印章。挖笋能手们一进入林子,娴熟的开始了探宝之旅,半弯着腰,左手拨开挡路竹条,右手提
- 小岛
圆圆的小世界
每个人都像一个孤岛。在岛上自给自足。不与外界过多的联系。其实,我希望人和人多交流些,架起桥梁,互相打通,更好的了解对方,心里永远阳光,积极乐观。我希望自己就像以前一样,开心快乐,健康。哪怕是做小岛,也要与外界有千丝万缕的联系。因为大自然本是一体。
- 配音温柔的文案长文情话,配音文案温柔短句伤感句子
配音新手圈
“总有很多山要登,乖乖,别停留。”“同一个小镇,为什么好久不见。”“一只自由鸟,自由到底。”兼职副业推荐公众号,配音新手圈,声优配音圈,新配音兼职圈,配音就业圈,鼎音副业,有声新手圈,每天更新各种远程工作与在线兼职,职位包括:写手、程序开发、剪辑、设计、翻译、配音、无门槛、插画、翻译、等等。。。每日更新兼职。“突然觉得平平淡淡就超级好了。”“按照大自然的规律,你该遇到我了。”“故事都往心里收一收,
- 心之上
丶柒葉
每次走在陌生的山里,每当黄昏过后的那段时光,我便感觉心里无限的空荡,仿佛要把心放进每座山上,而又不知如何选择的焦急。那种感觉,很奇妙,就相当于你遇见了许久倾慕的爱人,忽然面对着他时,你激动,陌生,而又很亲近。真的,想想你某天忽然遇见了那许久许久倾慕着的爱人,她就真真实实的在你面前,你紧张,心跳,你不敢多说一句话,你怕她走远,你又怕她和你亲近。你既会想着和她温柔缠绵的拥抱,又会想着陌生带给你们的隔阂
- 一段话8-14:谈话
夏日的橘子
沈繁依靠着廊柱,因着君上大婚,处处挂上了红绸,让这座沉闷庄严的皇城染上了几分喜意。“慎王不在宴席上,倒是来这儿躲清静了。”沈繁转身躬身一礼。“臣出来醒醒酒。”君上拨弄着垂下的红绸:“宫里上次这么热闹,还是皇姐与你大婚的时候。”“这三年,皇姐过得顺心,与你相处也日渐亲近,朕看着也欣慰。”沈繁垂眸不语,暗自揣度着君上的意思。“这皇城,富贵荣华,至高尊荣,人人向往,慎王,你呢?向往么?”沈繁神色一凛,躬
- 耶殊陀尼诗社|看图作诗 没有切割机的地方
陈金茂
没有切割机的地方每到夏日黄昏的海滨我听见了众草的欢呼声以镀金的身姿演绎风的舞蹈金色的舞蹈白色的舞蹈绿色的舞蹈以大自然最纯朴的语言诠释一个自由快乐的国度逃离人类仇恨的眼睛逃离切割机的文明唯留下满眼葳蕤留下蝶影蜂吟如一幅中国画为繁茂与滴翠所皴染我站在它们之间萦萦于怀的是那枚倏然落下的夕阳想象草叶下蛐蛐儿在夜晚独奏的表情2022-07-14下午5:08
- 频率不同的人无法理解彼此
数字寻天
你有没有发现一个现象。有的人哪怕是初见都会有似曾相识的感觉。而有的人哪怕是亲戚也总感觉话不投机半句多,你们更不能成为朋友或者恋人。我有幸读过阿赫玛托娃的这首诗。《在人们的亲近中存在着隐秘的界限》在人们的亲近中存在隐秘的界限,爱慕和激情也不能将它跨越,――哪怕嘴唇在不安的寂静里相互融合,哪怕心灵由于爱情而一片片碎裂。友谊在此软弱无力,崇高与炽热的幸福填充了岁月,灵魂是自由的,不懂得情欲那迟缓的慵懒。
- 2022.6.25生命基本功打卡
60a405094922
2022.6.25打卡第167天【基本功】1.超级祝福术2.日行一善(捐款)3.大悲咒14次4.喜悦曼陀罗5.抄经6.颤抖功7.动功8.大自然【今日乐事】1.今天做了一个个案淡淡定定轻松搞定,我跟孩子说2点钟以后不要大声说话,果然给了我很安静的环境,孩子太棒啦!2.我是不是喜悦曼陀罗上瘾?我又做了喜悦曼陀罗,果然老师说的太对了,集体喜悦曼陀罗和自己做的不同是,自己做的能量感更强3.天黑了,带着娃出
- PHP如何实现二维数组排序?
IT独行者
二维数组PHP排序
二维数组在PHP开发中经常遇到,但是他的排序就不如一维数组那样用内置函数来的方便了,(一维数组排序可以参考本站另一篇文章【PHP中数组排序函数详解汇总】)。二维数组的排序需要我们自己写函数处理了,这里UncleToo给大家分享一个PHP二维数组排序的函数:
代码:
functionarray_sort($arr,$keys,$type='asc'){
$keysvalue= $new_arr
- 【Hadoop十七】HDFS HA配置
bit1129
hadoop
基于Zookeeper的HDFS HA配置主要涉及两个文件,core-site和hdfs-site.xml。
测试环境有三台
hadoop.master
hadoop.slave1
hadoop.slave2
hadoop.master包含的组件NameNode, JournalNode, Zookeeper,DFSZKFailoverController
- 由wsdl生成的java vo类不适合做普通java vo
darrenzhu
VOwsdlwebservicerpc
开发java webservice项目时,如果我们通过SOAP协议来输入输出,我们会利用工具从wsdl文件生成webservice的client端类,但是这里面生成的java data model类却不适合做为项目中的普通java vo类来使用,当然有一中情况例外,如果这个自动生成的类里面的properties都是基本数据类型,就没问题,但是如果有集合类,就不行。原因如下:
1)使用了集合如Li
- JAVA海量数据处理之二(BitMap)
周凡杨
java算法bitmapbitset数据
路漫漫其修远兮,吾将上下而求索。想要更快,就要深入挖掘 JAVA 基础的数据结构,从来分析出所编写的 JAVA 代码为什么把内存耗尽,思考有什么办法可以节省内存呢? 啊哈!算法。这里采用了 BitMap 思想。
首先来看一个实验:
指定 VM 参数大小: -Xms256m -Xmx540m
- java类型与数据库类型
g21121
java
很多时候我们用hibernate的时候往往并不是十分关心数据库类型和java类型的对应关心,因为大多数hbm文件是自动生成的,但有些时候诸如:数据库设计、没有生成工具、使用原始JDBC、使用mybatis(ibatIS)等等情况,就会手动的去对应数据库与java的数据类型关心,当然比较简单的数据类型即使配置错了也会很快发现问题,但有些数据类型却并不是十分常见,这就给程序员带来了很多麻烦。
&nb
- Linux命令
510888780
linux命令
系统信息
arch 显示机器的处理器架构(1)
uname -m 显示机器的处理器架构(2)
uname -r 显示正在使用的内核版本
dmidecode -q 显示硬件系统部件 - (SMBIOS / DMI)
hdparm -i /dev/hda 罗列一个磁盘的架构特性
hdparm -tT /dev/sda 在磁盘上执行测试性读取操作
cat /proc/cpuinfo 显示C
- java常用JVM参数
墙头上一根草
javajvm参数
-Xms:初始堆大小,默认为物理内存的1/64(<1GB);默认(MinHeapFreeRatio参数可以调整)空余堆内存小于40%时,JVM就会增大堆直到-Xmx的最大限制
-Xmx:最大堆大小,默认(MaxHeapFreeRatio参数可以调整)空余堆内存大于70%时,JVM会减少堆直到 -Xms的最小限制
-Xmn:新生代的内存空间大小,注意:此处的大小是(eden+ 2
- 我的spring学习笔记9-Spring使用工厂方法实例化Bean的注意点
aijuans
Spring 3
方法一:
<bean id="musicBox" class="onlyfun.caterpillar.factory.MusicBoxFactory"
factory-method="createMusicBoxStatic"></bean>
方法二:
- mysql查询性能优化之二
annan211
UNIONmysql查询优化索引优化
1 union的限制
有时mysql无法将限制条件从外层下推到内层,这使得原本能够限制部分返回结果的条件无法应用到内层
查询的优化上。
如果希望union的各个子句能够根据limit只取部分结果集,或者希望能够先排好序在
合并结果集的话,就需要在union的各个子句中分别使用这些子句。
例如 想将两个子查询结果联合起来,然后再取前20条记录,那么mys
- 数据的备份与恢复
百合不是茶
oraclesql数据恢复数据备份
数据的备份与恢复的方式有: 表,方案 ,数据库;
数据的备份:
导出到的常见命令;
参数 说明
USERID 确定执行导出实用程序的用户名和口令
BUFFER 确定导出数据时所使用的缓冲区大小,其大小用字节表示
FILE 指定导出的二进制文
- 线程组
bijian1013
java多线程threadjava多线程线程组
有些程序包含了相当数量的线程。这时,如果按照线程的功能将他们分成不同的类别将很有用。
线程组可以用来同时对一组线程进行操作。
创建线程组:ThreadGroup g = new ThreadGroup(groupName);
&nbs
- top命令找到占用CPU最高的java线程
bijian1013
javalinuxtop
上次分析系统中占用CPU高的问题,得到一些使用Java自身调试工具的经验,与大家分享。 (1)使用top命令找出占用cpu最高的JAVA进程PID:28174 (2)如下命令找出占用cpu最高的线程
top -Hp 28174 -d 1 -n 1
32694 root 20 0 3249m 2.0g 11m S 2 6.4 3:31.12 java
- 【持久化框架MyBatis3四】MyBatis3一对一关联查询
bit1129
Mybatis3
当两个实体具有1对1的对应关系时,可以使用One-To-One的进行映射关联查询
One-To-One示例数据
以学生表Student和地址信息表为例,每个学生都有都有1个唯一的地址(现实中,这种对应关系是不合适的,因为人和地址是多对一的关系),这里只是演示目的
学生表
CREATE TABLE STUDENTS
(
- C/C++图片或文件的读写
bitcarter
写图片
先看代码:
/*strTmpResult是文件或图片字符串
* filePath文件需要写入的地址或路径
*/
int writeFile(std::string &strTmpResult,std::string &filePath)
{
int i,len = strTmpResult.length();
unsigned cha
- nginx自定义指定加载配置
ronin47
进入 /usr/local/nginx/conf/include 目录,创建 nginx.node.conf 文件,在里面输入如下代码:
upstream nodejs {
server 127.0.0.1:3000;
#server 127.0.0.1:3001;
keepalive 64;
}
server {
liste
- java-71-数值的整数次方.实现函数double Power(double base, int exponent),求base的exponent次方
bylijinnan
double
public class Power {
/**
*Q71-数值的整数次方
*实现函数double Power(double base, int exponent),求base的exponent次方。不需要考虑溢出。
*/
private static boolean InvalidInput=false;
public static void main(
- Android四大组件的理解
Cb123456
android四大组件的理解
分享一下,今天在Android开发文档-开发者指南中看到的:
App components are the essential building blocks of an Android
- [宇宙与计算]涡旋场计算与拓扑分析
comsci
计算
怎么阐述我这个理论呢? 。。。。。。。。。
首先: 宇宙是一个非线性的拓扑结构与涡旋轨道时空的统一体。。。。
我们要在宇宙中寻找到一个适合人类居住的行星,时间非常重要,早一个刻度和晚一个刻度,这颗行星的
- 同一个Tomcat不同Web应用之间共享会话Session
cwqcwqmax9
session
实现两个WEB之间通过session 共享数据
查看tomcat 关于 HTTP Connector 中有个emptySessionPath 其解释如下:
If set to true, all paths for session cookies will be set to /. This can be useful for portlet specification impleme
- springmvc Spring3 MVC,ajax,乱码
dashuaifu
springjquerymvcAjax
springmvc Spring3 MVC @ResponseBody返回,jquery ajax调用中文乱码问题解决
Spring3.0 MVC @ResponseBody 的作用是把返回值直接写到HTTP response body里。具体实现AnnotationMethodHandlerAdapter类handleResponseBody方法,具体实
- 搭建WAMP环境
dcj3sjt126com
wamp
这里先解释一下WAMP是什么意思。W:windows,A:Apache,M:MYSQL,P:PHP。也就是说本文说明的是在windows系统下搭建以apache做服务器、MYSQL为数据库的PHP开发环境。
工欲善其事,必须先利其器。因为笔者的系统是WinXP,所以下文指的系统均为此系统。笔者所使用的Apache版本为apache_2.2.11-
- yii2 使用raw http request
dcj3sjt126com
http
Parses a raw HTTP request using yii\helpers\Json::decode()
To enable parsing for JSON requests you can configure yii\web\Request::$parsers using this class:
'request' =&g
- Quartz-1.8.6 理论部分
eksliang
quartz
转载请出自出处:http://eksliang.iteye.com/blog/2207691 一.概述
基于Quartz-1.8.6进行学习,因为Quartz2.0以后的API发生的非常大的变化,统一采用了build模式进行构建;
什么是quartz?
答:简单的说他是一个开源的java作业调度框架,为在 Java 应用程序中进行作业调度提供了简单却强大的机制。并且还能和Sp
- 什么是POJO?
gupeng_ie
javaPOJO框架Hibernate
POJO--Plain Old Java Objects(简单的java对象)
POJO是一个简单的、正规Java对象,它不包含业务逻辑处理或持久化逻辑等,也不是JavaBean、EntityBean等,不具有任何特殊角色和不继承或不实现任何其它Java框架的类或接口。
POJO对象有时也被称为Data对象,大量应用于表现现实中的对象。如果项目中使用了Hiber
- jQuery网站顶部定时折叠广告
ini
JavaScripthtmljqueryWebcss
效果体验:http://hovertree.com/texiao/jquery/4.htmHTML文件代码:
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>网页顶部定时收起广告jQuery特效 - HoverTree<
- Spring boot内嵌的tomcat启动失败
kane_xie
spring boot
根据这篇guide创建了一个简单的spring boot应用,能运行且成功的访问。但移植到现有项目(基于hbase)中的时候,却报出以下错误:
SEVERE: A child container failed during start
java.util.concurrent.ExecutionException: org.apache.catalina.Lif
- leetcode: sort list
michelle_0916
Algorithmlinked listsort
Sort a linked list in O(n log n) time using constant space complexity.
====analysis=======
mergeSort for singly-linked list
====code======= /**
* Definition for sin
- nginx的安装与配置,中途遇到问题的解决
qifeifei
nginx
我使用的是ubuntu13.04系统,在安装nginx的时候遇到如下几个问题,然后找思路解决的,nginx 的下载与安装
wget http://nginx.org/download/nginx-1.0.11.tar.gz
tar zxvf nginx-1.0.11.tar.gz
./configure
make
make install
安装的时候出现
- 用枚举来处理java自定义异常
tcrct
javaenumexception
在系统开发过程中,总少不免要自己处理一些异常信息,然后将异常信息变成友好的提示返回到客户端的这样一个过程,之前都是new一个自定义的异常,当然这个所谓的自定义异常也是继承RuntimeException的,但这样往往会造成异常信息说明不一致的情况,所以就想到了用枚举来解决的办法。
1,先创建一个接口,里面有两个方法,一个是getCode, 一个是getMessage
public
- erlang supervisor分析
wudixiaotie
erlang
当我们给supervisor指定需要创建的子进程的时候,会指定M,F,A,如果是simple_one_for_one的策略的话,启动子进程的方式是supervisor:start_child(SupName, OtherArgs),这种方式可以根据调用者的需求传不同的参数给需要启动的子进程的方法。和最初的参数合并成一个数组,A ++ OtherArgs。那么这个时候就有个问题了,既然参数不一致,那