- 道德经·第十七章
制心一处_无为而无不为
道德经·第十七章【作者】老子【朝代】春秋时期[原文]太上①,不知有之②;其次,亲而誉之;其次,畏之;其次,侮之。信不足焉,有不信焉。悠兮③,其贵言④。功成事遂,百姓皆谓“我自然”⑤。[译文]最好的统治者,人民并不知道他的存在;其次的统治者,人民亲近他并且称赞他;再次的统治者,人民畏惧他;更次的统治者,人民轻蔑他。统治者的诚信不足,人民才不相信他,最好的统治者是多么悠闲。他很少发号施令,事情办成功了
- 古诗词欣赏 :杨万里的秋凉晚步
一日进步一点
1、原文:秋凉晚步[宋]杨万里秋气堪悲未必然,轻寒正是可人天。绿池落尽红蕖却,荷叶犹开最小钱。2、译文:秋天真的是让人感觉悲凉的季节吗?未必是这样吧,轻微的寒冷,正是最让人感觉舒适的天气,碧绿的荷叶虽然快要落完了,但是粉红的荷花却还在盛开,新长出的荷叶就像最小的铜钱那么大。3、注释可人:合人意。红蕖(音同“渠”):荷花。却:开尽。最小钱:新出荷叶才象小铜钱那么大。4、赏析:向来诗人容易悲愁,秋风飒
- 道德经第九章
套马地汉纸
道德经第9章原文:持而盈之,不如其已;揣而锐之,不可长保。金玉满堂,莫之能守;富贵而骄,自遗其咎。功遂身退,天之道。译文:要求过分圆满,不如适可而止。不停锤打一个(金属)物体想使它尖锐得不再尖锐,那肯定是难保持长久的。金银玉帛满堂,谁又能永远守得住呢?富而又骄傲,一定会给自己留下祸根。功成名就以后,就该收敛退隐,这才符合自然的规律。事物的发展。总是运动变化的,自然界也罢,人世间也罢,欲望也罢,任何
- “无”,有大用
我若盛开
2021/7/7日更36/100网图,侵删《道德经》节选解析“三十辐,共一毂;当其无,有车之用。埏埴以为器,当其无,有器之用。凿户牖以为室,当其无,有室之用。故有之以为利,无之以为用。”译文:三十根辐条汇集到一根毂的孔洞当中,有了车毂中空的地方,才有车的作用。揉和陶土做成器皿,有了器具中空的地方,才有器皿的作用。开凿门窗建造房屋,有了门窗四壁内的空虚部分,才有房屋的作用。所以,“有”只是提供了条件
- 读《道德经》28
华南帝虎
甘德礼(读《道德经》28)原创分享609+277天,光山心协智慧父母课堂持续分享第262天原文知其雄,守其雌,为天下谿。为天下谿,常德不离,复归于婴儿。知其白,守其黑,为天下式。为天下式,常德不忒,复归于无极。知其荣,守共辱,为天下谷。为天下谷,常徳乃足,复归于朴。朴散则为器,圣人用之则为官长,故大制不割。译文越是自己雄强刚猛,越是要守得住雌柔安静,就像山间低凹的溪水样。像溪水一样,那规律性的德就
- 《道德经》第四十八章1
清风8351
第48章为学日益第一节【原文】为学日益①,为道日损②。损之又损,以至于无为。无为而无不为。【注释】①益:作“增加”讲。②损:作“减少”讲。【译文】追求学问的人,知识一天比一天增加。追求大“道”的人,欲念一天比一天减少,私欲减少再减少,就达到了无为的境地。如果能够做到无为,即不妄为,就没有什么事情是做不成的了。【解析】老子本章开篇就阐述了为学和为道的不同。他指出:为学就是坚持不懈地向外界探索新知,知
- 道德经·第二十六章
李问寸
原文:重为轻根,静为躁君,是以君子终日行,不离辎重;虽有荣观燕处,超然。奈何以万乘之主,而以身轻天下?轻则失本,躁则失君。译文:厚重是轻率的根本,静定是躁动的主宰。因此君子终日行走,不离开载装行李的车辆。虽然有美食胜景吸引着他,却能安然处之。为什么大国的君主,还要轻率躁动以治天下呢?轻率就会失去根本;急躁就会丧失主导。此章宣讲根的教法,道法自然就是归根,复性就是道法自然。什么是根呢?对于树来讲,根
- D15 论语学习笔记
许小兔Angelina
悟:上级对下级的宽容:凡事成定局,就不你说了;已接近完结的事,也没必要匡正和挽回了;既然是过去的事,也没必要追究得失和责任了。对待孩子教育也是,不用“问责制”,这样容易让孩子因为害怕担责而说谎。应当循循善诱,避免再犯错才是最重要的。3.16:【原文】子曰:“射不主皮,为力不同科,古之道也。”【译文】孔子说:“射箭比赛不以射透为主,而主要看是否射得准确,因为人的力量不同,自古如此。”3.17:【原文
- 老子76
程三板2
第七十六章[原文]人之生也柔弱,其死也坚强。草木之生也柔脆,其死也枯槁。故坚强者死之徒,柔弱者生之徒。是以兵强则灭,木强则折。强大处下,柔弱处上。[译文]人活着的时候身体是柔软的,死了以后身体就变得僵硬。草木生长时是柔软脆弱的,死了以后就变得干硬枯槁了。所以坚强的东西属于死亡的一类,柔弱的东西属于生长的一类。因此,用兵逞强就会遭到灭亡,树木强大了就会遭到砍伐摧折。凡是强大的,总是处于下位,凡是柔弱
- 古诗打卡第19天《塞下曲六首(其一)》
九月享耳
唐:李白五月天山雪,无花只有寒。笛中闻折柳,春色未曾看。晓战随金鼓,宵眠抱玉鞍。愿将腰下剑,直为斩楼兰。译文:五月的天山雪花仍在飞扬,根本看不见花草只有刺骨严寒。在笛声《折杨柳》曲中才能想象春光,现实中却从没见过。白天在金鼓声中与敌人进行殊死决战,晚上靠着马鞍入眠。只愿挥起腰间悬挂的宝剑,能够早日斩楼兰王,平定边疆。
- 【读史明智098】论语系列之八十三
希音无问西东
8.18:子曰:“巍巍乎!舜禹之有天下也而不与焉。”8.19:子曰:“大哉尧之为君也!巍巍乎!唯天为大,唯尧则之。荡荡乎!民无能名焉。巍巍乎其有成功也,焕乎其有文章!”原句译文8.18孔子说:“舜、禹真伟大!他们从不以拥有天下为傲,依然能踏实地做事。”8.19孔子说:“尧当君主,伟大崇高,可比于天!他的恩德,无法形容!他的功劳,千古留芳!他的制度,光辉灿烂!”有天下也而不与:名利压不垮真正的大佬孔
- 每日听书:《论语·学而》(四)
米妮妈妈爱读书
【原文】1.子夏曰:“贤贤易色;事父母,能竭其力;事君,能致其身;与朋友交,言而有信。虽曰未学,吾必谓之学矣。”2.子曰:“君子不重则不威,学则不固。主忠信。无友不如己者;过,则勿惮改。”【译文】1.子夏说:“一个人能够关注内在的好的东西,用对内在的关注替换对外在的执着;侍奉父母,能够竭尽全力;服侍君主,能够不遗余力;同朋友交往,说话诚实恪守信用。这样的人,尽管他自己说没有学习过,我一定说他已经学
- 浣溪沙·一向年光有限身
益德居士
浣溪沙·一向年光有限身——[宋代]•晏殊一向年光有限身,等闲离别易销魂,酒筵歌席莫辞频。满目山河空念远,落花风雨更伤春,不如怜取眼前人。【译文】人的生命将在有限的时间中结束,平常的离别也会让人觉得悲痛欲绝。不要因为常常离别而推迟酒宴,应当在有限的人生,对酒当歌,开怀畅饮。到了登临之时,放眼辽阔河山,突然思念远方的亲友;等到风雨吹落繁花之际,才发现春天易逝,不禁更生伤春愁情。不如在酒宴上,好好怜爱眼
- 论语300天日更 2021.7.39-039
bce766be0871
原文:子曰:“朝闻道,夕死可矣。”译文:这一段话在后世常常被追求真理的人所引用。真理,是每个仁人志士矢志不渝的追求目标,哪怕要付出生命的代价。领悟了生活的真谛、宇宙中的真理,纵然朝闻夕死,亦会觉得心满意足,不虚此生,否则纵然高寿八百年,不得闻道,亦枉然为人。原文:子曰:“士志于道,而耻恶衣恶食者,未足与议也。”译文:孔子说:“读书人立志于追求真理,但又以穿破衣、吃粗糙的饭食为耻,这种人就不值得和他
- 论语学习第111天,6.12力不足者,中道而废
流水王丽霞
学妹读经一字一句读《论语》,第111天原文阅读:6.12冉求曰:“非不说(yuè)子之道,力不足也。”子曰:“力不足者,中道而废;今女画。”译文讲解:冉求说:不是我不乐意追随先生的思想学说,实在是自己实力不足。孔子说:实力不足,是走到半途走不动才止步,而如今你是走都没走,就打起了退堂鼓。启发思考:冉求是个实干家,具有政治才能,而且多才多艺,前边季康子问政的时候孔子是肯定他了。然而,他性格偏弱偏柔,
- 南朝周兴嗣《千字文》(四十七)
卫俊智
〈一〉原文:纨扇圆絜,银烛炜煌。昼眠夕寐,蓝笋象床。〈二〉注音:千字文注音卡〈三〉注释:纨扇:(纨:很细的丝制品)细绢制成的圆扇。圆絜:(絜:同“洁”。)圆而洁白。银烛:银色的蜡烛。炜煌:(炜:光明。)火光明亮。昼眠:白天休息,休憩。夕寐:晚上睡觉,长睡。蓝笋:(蓝:竹子青皮的颜色。)铺着青竹编成的席子。象床:住着用象牙装饰的床。〈四〉译文:圆圆绢扇,洁白素雅,白白蜡烛,明亮辉煌。白天休息,晚上睡
- 智囊•明智部•亿中卷•0253姚崇•名相也有黑历史
智囊智囊
译文魏知古出身于低级官吏,受姚崇推荐任用,后来虽然两人职位相当,而姚崇却颇为轻视他。后来魏知古升任吏部尚书,负责东都官员的考选任职。当时姚崇的两个儿子都在洛阳,魏知古到洛阳后,两个人仗着父亲对魏知古的恩惠,一再要他做这做那。魏知古回朝后,全都禀奏皇帝。皇帝于是召姚崇来,从容地说:“你的儿子才干如何,有没有担任什么官职?现在人在哪里呢?”姚崇揣测到皇帝的心意,因而奏道:“微臣有三个儿子,都在东都任职
- 【OCPP】ocpp1.6协议第5.17 TriggerMessage章节的介绍及翻译
"啦啦啦"
ocpp1.6协议开源协议学习
目录5.17TriggerMessage-概述主要内容1.概要2.操作流程3.参数说明4.示例4.1.TriggerMessage请求示例4.2.TriggerMessage响应示例5.应用场景实际应用结论5.17TriggerMessage-原文译文5.17TriggerMessage-概述在OCPP1.6协议中,第5.17章节描述了TriggerMessage操作。这个操作允许中央系统(Cen
- 学习《菜根谭》(272)|一身了一身,天下还天下
快乐的子亿
【原文】就一身了[1]一身者,方能以万物付[2]万物;还[3]天下于天下者,方能出[4]世间于世间。[1]了:明白、觉悟。[2]付:托付,赋与。[3]还:归还。[4]出:超出,出越。【译文】能够通过自身了悟自我的人,才可根据自然规则,使万物按照本性去发展而各尽其用;能够把天下交还给天下万民所共有的人,才能身处尘世而心灵超越到尘世之外。【学习心得】要学会醒悟。
- 读贺新郎
光阴和遇见
贺新郎苏轼乳燕飞华屋,悄无人、桐阴转午,晚凉新浴。手弄生绡白团扇,扇手一时似玉。渐困倚、孤眠清熟。帘外谁来推绣户?枉教人梦断瑶台曲。又却是、风敲竹。石榴半吐红巾蹙,待浮花浪蕊都尽,伴君幽独。秾艳一枝细看取,芳心千重似束。又恐被、西风惊绿。若待得君来向此,花前对酒不忍触。共粉泪、两簌簌。译文:小燕子在大堂间欢快的飞来飞去,屋里静悄悄的,我看着飞来飞去的小燕子,十分惬意,梧桐树的影子渐渐地东移,太阳快
- 五行
我是琜琜
《圆运动的古中医学》原文译文五行一年的大气,夏气属火。太阳照射到地面的热,在夏天时是最多的。太阳照射到地面的热,就是火。热就会上浮,所以夏天时的大气是热的且往上浮因而属于火气。夏天的时候太阳在南方兴旺,所以南方属火气。一天中的午时(11:00-13:00),也属于火气。午时太阳的热,照射到地面是很多的,春分到立夏的热,称为君火。小满到小暑的热,称为相火。君相这两个字的详细含义请看下文。秋气属金,秋
- 古之善为士者——读《道德经》第十五章
十年一觉扬州梦_a7f1
原文:古之善为道者,微妙玄通,深不可识。夫唯不可识。故强为之容。豫兮若冬涉川,犹兮若畏四邻,俨兮其若客,涣兮若冰之将释,敦兮其若朴,旷兮其若谷,浑兮其若浊;孰能浊以静之徐清,孰能安逸动之徐生。保此道者不欲盈。夫唯不盈,故能蔽不新成。译文:古时有道之士是不可思议的,他胸中的智慧,深邃不易解。因为他不易解,所以要描述他的话,也只能勉强形容而已。他小心谨慎的样子好像冬天涉足于冰川;警觉戒惕的精神好像提防
- 己所不欲 勿施于人
宁宁悦享读书
【原文】5.12子贡曰:“我不欲人之加诸我也,吾亦欲无加诸人。”子曰:“赐也,非尔所及也。”【译文】子贡说:“我不愿别人把不合理的事强加在我的身上,我也不想把不合理的事强加在别人的身上。”孔子说:“赐呀,这不是你能做得到的啊。”【感悟】这句话就是孔子的“己所不欲勿施于人”,我们在评论自己态度和评论别人态度时,一定要保持一致,不要有双标准,要一视同仁。其实想做到同理心是很难的一件事,我们需要时刻提醒
- 千家诗之咏华清宫
康馨予
咏华清宫[宋]杜常行尽江南数十程,晓风残月入华清。朝元阁上西风急,都入长杨作雨声。注释译文数十程:数十个驿站的路程。朝元阁:唐朝宫殿,在华清宫内。长杨:长杨宫,汉宫名,在今陕西省周至县东南。宫中种白杨树数亩,故名。释意结束了江南的漫长旅程,在将要天亮的时候,来到了华清宫.这时候,朝元阁上刮起了西风,大风卷着雨滴落入了长杨宫中,远远得可以听到凄清的雨声.
- 300天共修论语~第22天
雨露_1bcf
1、季康子问:“使民敬、忠以劝如之何?”子曰:“临之以庄,则敬;孝慈,则忠;举善而教不能,则劝。”2、或谓孔子曰:“子奚不为政?”子曰:“《书》云:‘孝乎惟孝,友于兄弟,施于有政。’是亦为政,奚其为为政?”3、子曰:“人而无信,不知其可也。大车无輗,小车无軏,其何以行之哉?”译文1、季康子问:“怎样使人尊敬、忠诚于上级,并且还能勤勉于工作?”孔子说:“举止端庄,能赢得尊敬;敬老爱幼,能赢得忠诚;任
- 19《沁园春•雪》
easy阿朱
《沁园春·雪》作者毛泽东(1936年2月)北国风光,千里冰封,万里雪飘。望长城内外,惟余莽莽;大河上下,顿失滔滔。山舞银蛇,原驰蜡象,欲与天公试比高。须晴日,看红装素裹,分外妖娆。江山如此多娇,引无数英雄竞折腰。惜秦皇汉武,略输文采;唐宗宋祖,稍逊风骚。一代天骄,成吉思汗,只识弯弓射大雕。俱往矣,数风流人物,还看今朝。【注释译文】沁园春:词牌名,又名“东仙”“寿星明”“洞庭春色”等。双调,一百十四
- 重积德则无不克——红掌知行合一之249
月洒梅楼
《道德经》第五九治人事天莫若啬。夫唯啬,是谓早服,早服谓之重积德。重积德则无不克,无不克则莫知其极。莫知其极,可以有国。有国之母,可以长久。是谓深根固柢,长生久视之道。译文:治理人民要顺应天理,莫过于节俭节制。只有节俭节制,才能早得道。早得道就是不断地积德。不断地积德就没有什么是克服不了的,没有什么克服不了就不知道它的力量有多强大。不知道其力量有多强大,就可以掌管国家。掌握了治国的根本,就可以长大
- 文言文翻译的方法一般有如下几点!
教学手札
翻译文言句子要掌握翻译的原则、步骤和方法。翻译的基本原则是直译为主,意译为辅,译文要符合现代汉语习惯,做到明白、流畅、简洁。翻译时既要字句对应,又要根据需要进行必要的调整,使译文完整,准确,得体。文言文翻译的方法一般有如下几点:(1)留:把文言文中的专有名词(朝代、年号、人名、地名、物名、器具、官职、职称等)与现代汉语意思相同的保留不译。如:“庖丁为文惠君解牛”中的“文惠君”。(2)补:指将文言文
- 内储说下 •六微(十) 以荆势相魏
张梅霞欢乐诵
【最美山西·文化】内储说下•六微(十)以荆势相魏(韩非子)原文:陈需,魏王之臣也,善于荆王,而令荆攻魏。荆攻魏。陈需因请为魏王行解之,因以荆势相魏。僖侯浴,汤中有砾。僖侯曰:“尚浴免,则有当代者乎?“左右对曰:“有。”僖侯曰:“召而来。”谯之曰:“何为置砾汤中?“对曰:“尚浴免,则臣得代之,是以置砾汤中。”译文:陈需是魏王的臣子,又和楚王友好,就叫楚国攻打魏国。楚国攻打魏国,陈需乘机请求替魏王去解
- 祸有所归|陈婴之母的生存智慧
扬菁
事成,少受其利;不成,祸有所归。图片发自App《世说新语·贤媛》【原文】陈婴者,东阳人,少修德行,著称乡党。秦末大乱,东阳人欲奉婴为主,母曰:“不可!自我为汝家妇,少见贫贱,一旦富贵,不祥。不如以兵属人。事成,少受其利;不成,祸有所归。”【译文】陈婴是东阳县人,从小就注意加强道德品行的修养,在乡里中很有名望。秦代末年,天下大乱,东阳人想拥护陈婴做首领,陈母对陈婴说:“不行!自从我做了你家的媳妇后,
- 遍历dom 并且存储(将每一层的DOM元素存在数组中)
换个号韩国红果果
JavaScripthtml
数组从0开始!!
var a=[],i=0;
for(var j=0;j<30;j++){
a[j]=[];//数组里套数组,且第i层存储在第a[i]中
}
function walkDOM(n){
do{
if(n.nodeType!==3)//筛选去除#text类型
a[i].push(n);
//con
- Android+Jquery Mobile学习系列(9)-总结和代码分享
白糖_
JQuery Mobile
目录导航
经过一个多月的边学习边练手,学会了Android基于Web开发的毛皮,其实开发过程中用Android原生API不是很多,更多的是HTML/Javascript/Css。
个人觉得基于WebView的Jquery Mobile开发有以下优点:
1、对于刚从Java Web转型过来的同学非常适合,只要懂得HTML开发就可以上手做事。
2、jquerym
- impala参考资料
dayutianfei
impala
记录一些有用的Impala资料
1. 入门资料
>>官网翻译:
http://my.oschina.net/weiqingbin/blog?catalog=423691
2. 实用进阶
>>代码&架构分析:
Impala/Hive现状分析与前景展望:http
- JAVA 静态变量与非静态变量初始化顺序之新解
周凡杨
java静态非静态顺序
今天和同事争论一问题,关于静态变量与非静态变量的初始化顺序,谁先谁后,最终想整理出来!测试代码:
import java.util.Map;
public class T {
public static T t = new T();
private Map map = new HashMap();
public T(){
System.out.println(&quo
- 跳出iframe返回外层页面
g21121
iframe
在web开发过程中难免要用到iframe,但当连接超时或跳转到公共页面时就会出现超时页面显示在iframe中,这时我们就需要跳出这个iframe到达一个公共页面去。
首先跳转到一个中间页,这个页面用于判断是否在iframe中,在页面加载的过程中调用如下代码:
<script type="text/javascript">
//<!--
function
- JAVA多线程监听JMS、MQ队列
510888780
java多线程
背景:消息队列中有非常多的消息需要处理,并且监听器onMessage()方法中的业务逻辑也相对比较复杂,为了加快队列消息的读取、处理速度。可以通过加快读取速度和加快处理速度来考虑。因此从这两个方面都使用多线程来处理。对于消息处理的业务处理逻辑用线程池来做。对于加快消息监听读取速度可以使用1.使用多个监听器监听一个队列;2.使用一个监听器开启多线程监听。
对于上面提到的方法2使用一个监听器开启多线
- 第一个SpringMvc例子
布衣凌宇
spring mvc
第一步:导入需要的包;
第二步:配置web.xml文件
<?xml version="1.0" encoding="UTF-8"?>
<web-app version="2.5"
xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:xsi=
- 我的spring学习笔记15-容器扩展点之PropertyOverrideConfigurer
aijuans
Spring3
PropertyOverrideConfigurer类似于PropertyPlaceholderConfigurer,但是与后者相比,前者对于bean属性可以有缺省值或者根本没有值。也就是说如果properties文件中没有某个bean属性的内容,那么将使用上下文(配置的xml文件)中相应定义的值。如果properties文件中有bean属性的内容,那么就用properties文件中的值来代替上下
- 通过XSD验证XML
antlove
xmlschemaxsdvalidationSchemaFactory
1. XmlValidation.java
package xml.validation;
import java.io.InputStream;
import javax.xml.XMLConstants;
import javax.xml.transform.stream.StreamSource;
import javax.xml.validation.Schem
- 文本流与字符集
百合不是茶
PrintWrite()的使用字符集名字 别名获取
文本数据的输入输出;
输入;数据流,缓冲流
输出;介绍向文本打印格式化的输出PrintWrite();
package 文本流;
import java.io.FileNotFound
- ibatis模糊查询sqlmap-mapping-**.xml配置
bijian1013
ibatis
正常我们写ibatis的sqlmap-mapping-*.xml文件时,传入的参数都用##标识,如下所示:
<resultMap id="personInfo" class="com.bijian.study.dto.PersonDTO">
<res
- java jvm常用命令工具——jdb命令(The Java Debugger)
bijian1013
javajvmjdb
用来对core文件和正在运行的Java进程进行实时地调试,里面包含了丰富的命令帮助您进行调试,它的功能和Sun studio里面所带的dbx非常相似,但 jdb是专门用来针对Java应用程序的。
现在应该说日常的开发中很少用到JDB了,因为现在的IDE已经帮我们封装好了,如使用ECLI
- 【Spring框架二】Spring常用注解之Component、Repository、Service和Controller注解
bit1129
controller
在Spring常用注解第一步部分【Spring框架一】Spring常用注解之Autowired和Resource注解(http://bit1129.iteye.com/blog/2114084)中介绍了Autowired和Resource两个注解的功能,它们用于将依赖根据名称或者类型进行自动的注入,这简化了在XML中,依赖注入部分的XML的编写,但是UserDao和UserService两个bea
- cxf wsdl2java生成代码super出错,构造函数不匹配
bitray
super
由于过去对于soap协议的cxf接触的不是很多,所以遇到了也是迷糊了一会.后来经过查找资料才得以解决. 初始原因一般是由于jaxws2.2规范和jdk6及以上不兼容导致的.所以要强制降为jaxws2.1进行编译生成.我们需要少量的修改:
我们原来的代码
wsdl2java com.test.xxx -client http://.....
修改后的代
- 动态页面正文部分中文乱码排障一例
ronin47
公司网站一部分动态页面,早先使用apache+resin的架构运行,考虑到高并发访问下的响应性能问题,在前不久逐步开始用nginx替换掉了apache。 不过随后发现了一个问题,随意进入某一有分页的网页,第一页是正常的(因为静态化过了);点“下一页”,出来的页面两边正常,中间部分的标题、关键字等也正常,唯独每个标题下的正文无法正常显示。 因为有做过系统调整,所以第一反应就是新上
- java-54- 调整数组顺序使奇数位于偶数前面
bylijinnan
java
import java.util.Arrays;
import java.util.Random;
import ljn.help.Helper;
public class OddBeforeEven {
/**
* Q 54 调整数组顺序使奇数位于偶数前面
* 输入一个整数数组,调整数组中数字的顺序,使得所有奇数位于数组的前半部分,所有偶数位于数组的后半
- 从100PV到1亿级PV网站架构演变
cfyme
网站架构
一个网站就像一个人,存在一个从小到大的过程。养一个网站和养一个人一样,不同时期需要不同的方法,不同的方法下有共同的原则。本文结合我自已14年网站人的经历记录一些架构演变中的体会。 1:积累是必不可少的
架构师不是一天练成的。
1999年,我作了一个个人主页,在学校内的虚拟空间,参加了一次主页大赛,几个DREAMWEAVER的页面,几个TABLE作布局,一个DB连接,几行PHP的代码嵌入在HTM
- [宇宙时代]宇宙时代的GIS是什么?
comsci
Gis
我们都知道一个事实,在行星内部的时候,因为地理信息的坐标都是相对固定的,所以我们获取一组GIS数据之后,就可以存储到硬盘中,长久使用。。。但是,请注意,这种经验在宇宙时代是不能够被继续使用的
宇宙是一个高维时空
- 详解create database命令
czmmiao
database
完整命令
CREATE DATABASE mynewdb USER SYS IDENTIFIED BY sys_password USER SYSTEM IDENTIFIED BY system_password LOGFILE GROUP 1 ('/u01/logs/my/redo01a.log','/u02/logs/m
- 几句不中听却不得不认可的话
datageek
1、人丑就该多读书。
2、你不快乐是因为:你可以像猪一样懒,却无法像只猪一样懒得心安理得。
3、如果你太在意别人的看法,那么你的生活将变成一件裤衩,别人放什么屁,你都得接着。
4、你的问题主要在于:读书不多而买书太多,读书太少又特爱思考,还他妈话痨。
5、与禽兽搏斗的三种结局:(1)、赢了,比禽兽还禽兽。(2)、输了,禽兽不如。(3)、平了,跟禽兽没两样。结论:选择正确的对手很重要。
6
- 1 14:00 PHP中的“syntax error, unexpected T_PAAMAYIM_NEKUDOTAYIM”错误
dcj3sjt126com
PHP
原文地址:http://www.kafka0102.com/2010/08/281.html
因为需要,今天晚些在本机使用PHP做些测试,PHP脚本依赖了一堆我也不清楚做什么用的库。结果一跑起来,就报出类似下面的错误:“Parse error: syntax error, unexpected T_PAAMAYIM_NEKUDOTAYIM in /home/kafka/test/
- xcode6 Auto layout and size classes
dcj3sjt126com
ios
官方GUI
https://developer.apple.com/library/ios/documentation/UserExperience/Conceptual/AutolayoutPG/Introduction/Introduction.html
iOS中使用自动布局(一)
http://www.cocoachina.com/ind
- 通过PreparedStatement批量执行sql语句【sql语句相同,值不同】
梦见x光
sql事务批量执行
比如说:我有一个List需要添加到数据库中,那么我该如何通过PreparedStatement来操作呢?
public void addCustomerByCommit(Connection conn , List<Customer> customerList)
{
String sql = "inseret into customer(id
- 程序员必知必会----linux常用命令之十【系统相关】
hanqunfeng
Linux常用命令
一.linux快捷键
Ctrl+C : 终止当前命令
Ctrl+S : 暂停屏幕输出
Ctrl+Q : 恢复屏幕输出
Ctrl+U : 删除当前行光标前的所有字符
Ctrl+Z : 挂起当前正在执行的进程
Ctrl+L : 清除终端屏幕,相当于clear
二.终端命令
clear : 清除终端屏幕
reset : 重置视窗,当屏幕编码混乱时使用
time com
- NGINX
IXHONG
nginx
pcre 编译安装 nginx
conf/vhost/test.conf
upstream admin {
server 127.0.0.1:8080;
}
server {
listen 80;
&
- 设计模式--工厂模式
kerryg
设计模式
工厂方式模式分为三种:
1、普通工厂模式:建立一个工厂类,对实现了同一个接口的一些类进行实例的创建。
2、多个工厂方法的模式:就是对普通工厂方法模式的改进,在普通工厂方法模式中,如果传递的字符串出错,则不能正确创建对象,而多个工厂方法模式就是提供多个工厂方法,分别创建对象。
3、静态工厂方法模式:就是将上面的多个工厂方法模式里的方法置为静态,
- Spring InitializingBean/init-method和DisposableBean/destroy-method
mx_xiehd
javaspringbeanxml
1.initializingBean/init-method
实现org.springframework.beans.factory.InitializingBean接口允许一个bean在它的所有必须属性被BeanFactory设置后,来执行初始化的工作,InitialzingBean仅仅指定了一个方法。
通常InitializingBean接口的使用是能够被避免的,(不鼓励使用,因为没有必要
- 解决Centos下vim粘贴内容格式混乱问题
qindongliang1922
centosvim
有时候,我们在向vim打开的一个xml,或者任意文件中,拷贝粘贴的代码时,格式莫名其毛的就混乱了,然后自己一个个再重新,把格式排列好,非常耗时,而且很不爽,那么有没有办法避免呢? 答案是肯定的,设置下缩进格式就可以了,非常简单: 在用户的根目录下 直接vi ~/.vimrc文件 然后将set pastetoggle=<F9> 写入这个文件中,保存退出,重新登录,
- netty大并发请求问题
tianzhihehe
netty
多线程并发使用同一个channel
java.nio.BufferOverflowException: null
at java.nio.HeapByteBuffer.put(HeapByteBuffer.java:183) ~[na:1.7.0_60-ea]
at java.nio.ByteBuffer.put(ByteBuffer.java:832) ~[na:1.7.0_60-ea]
- Hadoop NameNode单点问题解决方案之一 AvatarNode
wyz2009107220
NameNode
我们遇到的情况
Hadoop NameNode存在单点问题。这个问题会影响分布式平台24*7运行。先说说我们的情况吧。
我们的团队负责管理一个1200节点的集群(总大小12PB),目前是运行版本为Hadoop 0.20,transaction logs写入一个共享的NFS filer(注:NetApp NFS Filer)。
经常遇到需要中断服务的问题是给hadoop打补丁。 DataNod