- “晚节不保”与“浪子回头”
锦瑟_db50
今天听音频,听到这两个熟悉的词——晚节不保、浪子回头。认真思量,对这两种情况,我们一般的认知中是缺乏公允的。我们听到“晚节不保”时,通常是痛惜不已,甚至感觉对方重要露出狐狸尾巴,有大快人心之感。很多人对古今名人,特别是对古今伟人的“背后的故事”很感兴趣,一方面是猎奇,一方面不能不说是一种险恶的用心——看看他也不过如此,和我们也没什么不同。这个“毁神”的过程,实际上是为自己的堕落找理由的方式。而“晚
- 火龙君·罗天 | 盘点中国风水宝地,你在的城市上榜了吗?(上)
震古开运
中国从古到今造城建房的时候都要看风水,“风水好”用一个词来概括就是:人杰地灵。人杰地灵的城市,哪怕它地方很小但总是会人才辈出,而“地不灵”的地方,哪怕它占地再大,上下五千年也出不了几个名人。今天小编收集了一份“中国地理位置最好城市”榜单快来看看你的城市是否榜上有名吧地理位置好的城市对事业的发展也很利噢!排名不分先后~1.伊犁·特克斯-形如八卦、风水绝佳伊犁特克斯被称为“中国地理位置第一城”,它是现
- 21天|生如夏花组合《蔡康永的说话之道》
summer_8f83
【day12】今日阅读《蔡康永的说话之道》p1-p30这本书在前几年读过,当时没有留下深刻的印象,记忆里就是一个影视名人趁红出的一本书。前几天看到一位老铁推荐这本书,又找出来读一读,没想到读了以后跟以前相比有了很深刻的感悟和认同。会说话坚持太重要了,我觉得这本书叫跟《非暴力沟通》有异曲同工之处。“良言一句三冬暖”,“一样话百样说”所以,说话时候技巧的,是可以练习的。作者提示我们:每天我们说那么多话
- 为什么说在中国贩毒就是找死,这些外籍毒贩的下场就是最好证明
毒言毒语
网上有个段子说在俄罗斯当人质、美国逃税、中国贩毒是世界三大作死,虽然调侃意识浓厚,但并非空穴来风。俄罗斯当人质很危险的说法源于2002年的莫斯科剧院人质事件,当时40名恐怖分子绑架了850名人质。营救过程中,俄国反恐军队秘密向剧院内灌入化学气体麻醉,击毙39名恐怖分子,但也导致129名人质因吸入过量麻醉气体而死亡。在美国欠谁的钱都可以,唯独不能欠美国联邦国税局(IRS)的钱。因为一旦被查处逃税,除
- 高山由沙砾堆积而成,成功从点滴小事积累做起
584916575978
当今住世佛陀《世法哲言》教言:“大德之成,微德累至,公路之长点面沙石之汇,如欲成德弗忽小品之行。”我对这段法语的理解是,生活中我们遇到的那些品德高尚学识广博的人,都是要经历多年学习问道,不忽略细微小德的一点点日积月累,才慢慢成为某个领域的高人、专家。世上绝不会有所谓的横空出世就已经是一代大德、名人典范的。这令我想起“第七个饼”的故事。故事大意说,从前有一位穷苦的砍柴人每天靠卖柴为生,辛苦一天下来卖
- 不要再学习巴菲特和马云了
李影_8de2
很多时候,我们普通人我感觉学习的榜样对标错了。我们往往对标的是这个社会上谁是最优秀的,数一数二的那些人,潜意识里就觉得他有一个大招,学会了他这一个大招就能够世界第一。炒股言必称巴菲特,做电商言必称马云。是的,他们取得至高的成就这一点无可置疑,但是我们普通人真的应该学习他们吗?学习顶尖的人对我们来讲是最好的途径吗?我看未必。有一句话说,一屋不扫何以扫天下?很多时候我们太多的时候关注到名人身上那些带着
- 湖南的这个地方,让你感受最正宗的端午节
韶山非遗博览园
赛龙舟,吃粽子,还有凤凰特色的抢鸭子……今年的端午,照样热闹,各地节日气息浓厚。那么端午假期刚过,你们是怎么度过的呢?可能不同的地方习俗不太一样,如果你想感受最正宗的端午节,那就来汨罗江畔吧。农历五月初五的端午节,是中国三大传统节日之一。汨罗江畔端午节习俗涵盖了屈原文化、龙舟文化、节庆文化等多重内容,与一条名江(汨罗江)、一位名人(屈原)、一座古祠(屈子祠)紧紧连为一体,并衍生出一项与祭屈相关的龙
- 2023-10-31
贤知国学
易经八卦与佛学八识的对应关系如下:1.乾卦对应第八阿赖耶识。2.坤卦对应第七末那识。3.震卦对应第六意识。4.离卦对应眼识。5.坎卦对应耳识。6.巽卦对应鼻识。7.兑卦对应舌识。8.艮封对应身识。
- 一个人值不值得深交,就看这几点(四)
Rocky乐基
人生在世,难免遇到挫折与苦闷,最好能找个可以信赖的人倾诉,获得开导和支持。真正的朋友,不仅会陪着你一起难过,还会帮助你梳理问题症结,找出解决方案。我的朋友老顾,无论我们遇到什么烦心事,她都能耐心听完,换位思考,然后抓住问题要害,讲清楚解决办法。因此,每次跟老顾深聊后,心情都能变舒畅。但是,有的人却在听完你的吐槽后,转身就将你的心事当作八卦谈资与他人分享。我找老顾倾诉,商量怎么报复这样的人,老顾笑着
- 好书推荐 ▏《了不起的中华文明》:给孩子的中华文明百科全书,有趣又好读!
书本家读书会
《了不起的中华文明》作者:蒙曼图片:源于网络推荐理由让孩子读学习历史,不仅可以让孩子通晓古今,更能提高他的大语文素养。更重要的是,孩子从历史中,可以培养“宠辱不惊”的胸怀和气魄,做到“不以物喜、不以己悲”,受益一生。《了不起的中华文明》全书共20册,拥有海量知识条目。诗词名句、名著名篇、成语含义、经典故事、名人思想、冷门知识…是一套由蒙曼主编的传统文化绘本,已入选国家新闻出版署“2020年全国有声
- 鬼影重重第一百五十四章
王室蚊子
没有吵闹,没有喧嚣。大半个广场上依旧被占据,不同的都是战战兢兢的魂魄。山洞。洞中心有个八边形形祭坛。八步阶梯,顶部黑白阴阳鱼图案,直径八米,内嵌其中。祭台上方八米高处,有用红绳编织成的八边形蛛网,线绳下面缀满符纸,上面则用黄布盖着。刚好覆盖编织的蛛网。再上面,也是洞顶,镶嵌着一面巨大的八卦镜,与蛛网,祭台,呈三点一线,大小相同。蛛网边缘缀满一圈风铃,不同的是风铃下面是黄色符纸。八边蛛网交点各延伸一
- 文章《七年·朝圣之旅》的点评
七月的后半生
文章标题:七年·朝圣之旅点评:文章的标题《七年·朝圣之旅》,作者将自己未来的七年比喻成一场朝圣之旅,新颖独特,引人入胜。文章内容详细,结构清晰,从多个角度来描述自己对未来七年的规划,对自己的成长、感情、生活的一个美好展望。(期待与你一起见证你的成长噢!)文章透露出作者深厚的文字功底和文学积累,文章不仅有朴实的叙述,也有优美的修辞手法,给读者一场美的盛宴,同时运用名人名言,给读者的心灵提供一个支撑,
- 畅春斋主杨秀和先生《增广贤文》书法作品欣赏(著名书法家、画家、中国书画院院士)
京南文艺
杨秀和,(笔名:晓阳)号畅春斋主,当代著名书法家、画家、书画教育家、社会活动家、文化学者、摄影师、北京大学特聘教授。杨秀和老师1955年出生于中国北京。畅春斋主杨秀和教授是中国国艺人民书画院院士、中国书画院院士、北京市楹联学会书画院理事、中国民俗摄影家协会会员。2021年杨秀和教授被录入《中国名人辞典》。《增广贤文》是中国明代时期编写的儿童启蒙书目。书名最早见之于明万历年间的戏曲《牡丹亭》,据此可
- 生活记事
北伟张
与您分享早课学习收获:1.易经,简单,好学。第一天学习就有收获。包罗万象,万事万物,分成八类,以八卦的形式来呈现。八卦详细归类,三归二,阴阳。二归一,阴阳合一。2.进入一个新的班位上面有人管着你,下面没人听你的,这种情况下守好本位,先求生存,着急是不行的,往蹇生活艰难,工作也很艰难,3.多聆听,多赞叹,多帮扶。4.上善若水,用柔道。5.圣人通过卦象告诉我们,你当位就行了,做好本分,静待天机。时候到
- 华为三折屏预约破270万,20号开启疯狂抢购!马斯克上线全球最强大AI训练系统;爱奇艺再道歉;微软Office AI助手市场遇冷
诗者才子酒中仙
物联网/互联网/人工智能/其他云计算/大数据/安全/数据库华为人工智能microsoft
一、商业圈1.华为MateXT预约已超270万,炒作价已达10万9月9日,华为余承东发微博预告:“9月10日,下午14:30,见非凡!”评论区网友纷纷表示抢不到。据消息报道,作为全球首款量产的三折叠屏手机,华为MateXT目前的价格已经炒至10万元。最主要的原因,还是因为预计备货量不多而导致的。据官方报道,华为MateXT非凡大师已经官宣了杨幂、于和伟、许昕四位文体演艺圈的名人当推荐官,同时还官宣
- 深夜感想
2003年的火车
我发觉我对交流有种深切的渴望。朋友发来的一条信息,陌生人的一句闲聊,不知名网友的一句扯淡,都可以迅速激发我内心深处对交流的渴望。是的,我需要交流,迫切地需要。我享受交流的过程,因为我可以从此感受到对方的思考。我们本互不交集的两个大脑,在交流的过程中紧密联系,产生肢体接触无法带来的亲密感。这可能就是所谓的——灵的结合。我享受交流中得到信息的快感。听起来有点八卦,但我的确喜爱通过交流获取信息,这让人有
- 氧券邀请码最高等级777777,氧券邀请码什么套路?氧券官方邀请码是多少
氧券超好用
今天我们就来说下:氧券是怎么赚钱的?氧券app靠谱吗?氧券APP返利高吗?大家好!我是氧券平台最大团队&高级合伙人柚子导师。相较于其它氧券app,氧券佣金更高,模式更好,终端用户不流失!氧券氧券APP正规靠谱好用吗?氧券app怎么赚钱?它能赚钱吗?1、分享商品赚钱:其实,在氧券里除了自己网购时可以领取氧券和得到氧券之外有些宝妈很喜欢在自己微信朋友圈里去发一些自家明星的八卦新闻或是晒晒自己的精致生活
- 20191210 彭小六《增长思维》读书会 复盘笔记——代素宣转发
Blinker_c32f
讲师:彭小六笔记:素宣(笔记不仅仅是记录,而是深度思考的创作)素宣思考便签:一坐下被读书会准备的物料惊喜到。1、增长八卦模型画布彭小六老师根据《增长思维》书中的《增长八卦模型》原型进行了优化,加入游戏化元素做成了A3大小的画布,让小组们可以根据此游戏化流程来趣味阅读如此烧脑的一本书。2、拆书之前在洋葱阅读课的时候看到老师说拆书,每次看到老师发拆书的照片,我都觉得很心疼,自己一直不愿意拆。但是这次线
- 80%的人都知道的——内容营销
老泊
我们已经知道内容营销是依靠内容来进行营销,一起看一下内容营销的工作流吧。选题创作投放主要内容营销的选题类型-常青树:用户长时间关心的,比如房价,教育-热点:用户短时间关心的,比如八卦,实事二八原则常青树话题等等选题来源:访谈法:寻找目标用户尽可能一对一进行访谈,用户反馈的问题都可以成为你的选题来源数据法:利用搜索引擎获取内容选题。利用爬虫工具看看人们都比较关心哪些话题来作为选题基于时事的选题数据工
- 婚姻里最大的悲哀,莫过于你出轨了,我不介意!
一天情感随笔
都说婚姻里最不能容忍的就是出轨。现实中很多离婚的人士,多数都是由于出轨。小梅是商场购物中心一品牌专卖店的店员。在女性朋友中,她比较健谈,什么都能说都会说。属于比较能八卦的那种,特别会八卦男女之间的私密话题,而且开起玩笑来尺度很大,管它雅不雅的,一说起来弄得周围人尴尬不以,哄笑一团。实在听不下去的人默默走开。商场里上班没有顾客的时候会很清闲,所以她这种性格在里面倒也能打得开,而且这种环境里基本上都是
- 2018-07-15
默言_5020
守护生命文/范国宏古城公园,气势宏弘,富祚卧牛,锣鼓华章,傍侧有一处是爱心天使之家。当你进入里边,先进设备,优雅人性化的陈设,候诊听问,科学的规划,导入指示性的绿贴,目不暇接。初入者,就像进入了迷宫,东南西北不知在哪家。只要你进去,就像进了健康的八卦方阵,精神焕发。因为,这是天使的家,有魔幻般的艺术,高超的技艺,让你在有生之年投胎重生。新生点燃了你对家庭亲人的渴望,对生命生活的眷恋,对大千自然的向
- 今日学习
斌斌是也
多数俗人忙忙碌碌,主要的时间全部花费在看手机上的八卦了。多数成事之人,往往都会有年目标、季目标、月目标,周目标,日目标。并且习惯性的会总结反思。此篇文章深刻的给我们体现了成事的本质,作为我们个体来讲、不管是成事也好还是正常的生活也好,我觉得我们都要尝试着做一个自律的人,哪怕我们无法达到非常自律的状态,但只要有一个地方是可以做到自律、那么我们也会朝着自律的方向前进,比如就像文章中所说,多学会制定目标
- 带你去最浪漫的地方
张家的
那天听到一个我觉得挺滑稽的八卦。"我要带你去最浪漫的地方"。呵呵呵呵,我就笑了,我还想要去最浪漫的土耳其,东京和巴黎呢?我要带你去足够浪漫的地方?为啥这句很正常的话我得可笑呢?事情缘由还是得听我娓娓道来……女人聚推一起聊天,八卦也很正常。不是聊什么时候上新口红,什么时候又没衣服了,就是聊男人。嗯,这年头女人聊男人,男人聊女人,简直完美!我那个死党闺蜜呀刚换了新工作,听说环境不错,薪水也Ok,关键工
- 杨桃
夏洛的后花园
图片发自App“我想吃树上的杨桃,可我够不着…”“虽然是一把老骨头,但既然你想吃,无论如何,我都要拼一拼……”一年大概只能见一次,每次说的都是二十年前的八卦。他身手敏捷,仍然可以一跃而上。熟透的杨桃大多被鸟类偷袭。只有少数躲在浓荫之下的杨桃躲过了鸟儿敏锐的眼睛。他穿梭其中,远望,仍然像个少年。有的时候希望时间可以回头,一切可以重新开始,一切都没来得及发生。
- 周文王姬昌的河南情怀,辞世前最后一句话,竟与这个城市有关
中山人读文史
周文王姬昌的河南情怀,辞世前最后一句话,竟与这个城市有关周文王姬昌,是《易经》的“三圣”之一,生前曾在河南鹤壁(朝歌)、安阳(羑里城)等地方,结下了不解之缘。特别是文王,在纣王失政,遭奸臣小人的陷害下,被画地为牢,拘禁在河南安阳长达七年。七年里,“文王拘而演周易”,苦亦乐、贫亦乐。逆境中,将伏羲先天八卦演绎成后天64卦,为世人立下了不朽的贡劳。“源易缘”在通读《封神演义》时发现:文王历经七年牢狱磨
- 《了不起的盖茨比》:为爱送命值不值?
南小暖啊
《了不起的盖茨比》听名字很像一本名人传记。书不厚,我看的很细致,有很多句子来来回回读了很多遍。这是一本翻译书,但译者笔力很好,行云流水,词藻丰富而简练,很对我的胃口。说实话,在看这本书之前,我没想到它是讲爱情的,还是个悲剧。尽管封皮上写着:菲茨杰拉德为世人再现“最后的古典爱情梦”。故事以第一人称展开叙述,尼克到纽约学习经营股票生意,意外成了主人公盖茨比唯一的好友,同时,他又是黛西的表哥、汤姆的同学
- 春秋战国时期那些善于利用自己美貌的美女
杂说杂谈
夏姬作为历史中知名人物,在历史记载中曾七次嫁人,是一个非常知名的淫乱之人。但凡是这样的人,可以说都是出了名的美女,美女吗?自古以来每个人都喜欢。这位夏姬也不例外,并且,用他的美貌让九个男人因她而死,后来就有“杀三夫一君一子,亡一国两卿”的说法。我们先说说这位比较知名的三位夫君。第一位夫君,陈国大夫夏御叔,这位因为夏姬的美貌经常怀疑自己被人戴了绿帽子,但是碍于夏姬的美貌,没好意思说,结果在自己儿子夏
- 【跟名人学育儿】一门三院士,九子皆才俊
martous
“一门三院士,九子皆才俊”,说的是梁启超家庭成就,被它深深吸引了。在过去的周末,一头扎进了《梁启超传》和《梁启超家书》之中,以前深怕手机看书伤眼,这次都不在意。确实手机有方便之处,随时随地,片刻时间都可以运用。梁启超一生成就很大,在育儿领域更是让人赞不绝口,9个儿女中就有3个是院士,其他也是在各自领域很大成就的人。以前了解不多的时候,能想象他在养育孩子的成就是自然的,毕竟有资源和条件。然而我读完这
- 2022-05-24 2022-5-25 岗位选择
cb7732280c38
2022-5-23下午五点左右,我们现任领导(A)发到群里一则消息,xx科现需要3-4名人员,有意愿者晚上十一点报给我。我看到后没咋想就报给她了,在这之前给老公打电话没有打通,也就没有商量。A:你想好没有,去了就不能回来了。我:我想清楚了,我身体原因,上完夜班后心慌、心悸,在那不上夜班。A:科长说了,在那工作量大,经常加班,钱也很少估计是你现在的一半,你能接受吗?我:我想好了,钱我不是很在乎,我愿
- 【156】《班主任工作中的心理效应》读书笔记(一百二十二)2023-04-02
南风如我意
-----------《班主任工作中的心理效应》读书笔记(五)文/李现风2023年读书笔记读书笔记以以下三个出发点为目的:一、书中的思想,提升自己的教育理念;二、书中的值得借鉴的做法,提升自己的教育技巧;三、书中的美句,有鉴于哲理性的句子,提升自己文章的语言魅力和教育文化水准。读《班主任工作中的心理效应》作者刘儒德读书笔记五:第一部分面向全体学生亲近全班5.名人效应-----巧借名气,名至实归9.
- 桌面上有多个球在同时运动,怎么实现球之间不交叉,即碰撞?
换个号韩国红果果
html小球碰撞
稍微想了一下,然后解决了很多bug,最后终于把它实现了。其实原理很简单。在每改变一个小球的x y坐标后,遍历整个在dom树中的其他小球,看一下它们与当前小球的距离是否小于球半径的两倍?若小于说明下一次绘制该小球(设为a)前要把他的方向变为原来相反方向(与a要碰撞的小球设为b),即假如当前小球的距离小于球半径的两倍的话,马上改变当前小球方向。那么下一次绘制也是先绘制b,再绘制a,由于a的方向已经改变
- 《高性能HTML5》读后整理的Web性能优化内容
白糖_
html5
读后感
先说说《高性能HTML5》这本书的读后感吧,个人觉得这本书前两章跟书的标题完全搭不上关系,或者说只能算是讲解了“高性能”这三个字,HTML5完全不见踪影。个人觉得作者应该首先把HTML5的大菜拿出来讲一讲,再去分析性能优化的内容,这样才会有吸引力。因为只是在线试读,没有机会看后面的内容,所以不胡乱评价了。
- [JShop]Spring MVC的RequestContextHolder使用误区
dinguangx
jeeshop商城系统jshop电商系统
在spring mvc中,为了随时都能取到当前请求的request对象,可以通过RequestContextHolder的静态方法getRequestAttributes()获取Request相关的变量,如request, response等。 在jshop中,对RequestContextHolder的
- 算法之时间复杂度
周凡杨
java算法时间复杂度效率
在
计算机科学 中,
算法 的时间复杂度是一个
函数 ,它定量描述了该算法的运行时间。这是一个关于代表算法输入值的
字符串 的长度的函数。时间复杂度常用
大O符号 表述,不包括这个函数的低阶项和首项系数。使用这种方式时,时间复杂度可被称为是
渐近 的,它考察当输入值大小趋近无穷时的情况。
这样用大写O()来体现算法时间复杂度的记法,
- Java事务处理
g21121
java
一、什么是Java事务 通常的观念认为,事务仅与数据库相关。 事务必须服从ISO/IEC所制定的ACID原则。ACID是原子性(atomicity)、一致性(consistency)、隔离性(isolation)和持久性(durability)的缩写。事务的原子性表示事务执行过程中的任何失败都将导致事务所做的任何修改失效。一致性表示当事务执行失败时,所有被该事务影响的数据都应该恢复到事务执行前的状
- Linux awk命令详解
510888780
linux
一. AWK 说明
awk是一种编程语言,用于在linux/unix下对文本和数据进行处理。数据可以来自标准输入、一个或多个文件,或其它命令的输出。它支持用户自定义函数和动态正则表达式等先进功能,是linux/unix下的一个强大编程工具。它在命令行中使用,但更多是作为脚本来使用。
awk的处理文本和数据的方式:它逐行扫描文件,从第一行到
- android permission
布衣凌宇
Permission
<uses-permission android:name="android.permission.ACCESS_CHECKIN_PROPERTIES" ></uses-permission>允许读写访问"properties"表在checkin数据库中,改值可以修改上传
<uses-permission android:na
- Oracle和谷歌Java Android官司将推迟
aijuans
javaoracle
北京时间 10 月 7 日,据国外媒体报道,Oracle 和谷歌之间一场等待已久的官司可能会推迟至 10 月 17 日以后进行,这场官司的内容是 Android 操作系统所谓的 Java 专利权之争。本案法官 William Alsup 称根据专利权专家 Florian Mueller 的预测,谷歌 Oracle 案很可能会被推迟。 该案中的第二波辩护被安排在 10 月 17 日出庭,从目前看来
- linux shell 常用命令
antlove
linuxshellcommand
grep [options] [regex] [files]
/var/root # grep -n "o" *
hello.c:1:/* This C source can be compiled with:
- Java解析XML配置数据库连接(DOM技术连接 SAX技术连接)
百合不是茶
sax技术Java解析xml文档dom技术XML配置数据库连接
XML配置数据库文件的连接其实是个很简单的问题,为什么到现在才写出来主要是昨天在网上看了别人写的,然后一直陷入其中,最后发现不能自拔 所以今天决定自己完成 ,,,,现将代码与思路贴出来供大家一起学习
XML配置数据库的连接主要技术点的博客;
JDBC编程 : JDBC连接数据库
DOM解析XML: DOM解析XML文件
SA
- underscore.js 学习(二)
bijian1013
JavaScriptunderscore
Array Functions 所有数组函数对参数对象一样适用。1.first _.first(array, [n]) 别名: head, take 返回array的第一个元素,设置了参数n,就
- plSql介绍
bijian1013
oracle数据库plsql
/*
* PL/SQL 程序设计学习笔记
* 学习plSql介绍.pdf
* 时间:2010-10-05
*/
--创建DEPT表
create table DEPT
(
DEPTNO NUMBER(10),
DNAME NVARCHAR2(255),
LOC NVARCHAR2(255)
)
delete dept;
select
- 【Nginx一】Nginx安装与总体介绍
bit1129
nginx
启动、停止、重新加载Nginx
nginx 启动Nginx服务器,不需要任何参数u
nginx -s stop 快速(强制)关系Nginx服务器
nginx -s quit 优雅的关闭Nginx服务器
nginx -s reload 重新加载Nginx服务器的配置文件
nginx -s reopen 重新打开Nginx日志文件
- spring mvc开发中浏览器兼容的奇怪问题
bitray
jqueryAjaxspringMVC浏览器上传文件
最近个人开发一个小的OA项目,属于复习阶段.使用的技术主要是spring mvc作为前端框架,mybatis作为数据库持久化技术.前台使用jquery和一些jquery的插件.
在开发到中间阶段时候发现自己好像忽略了一个小问题,整个项目一直在firefox下测试,没有在IE下测试,不确定是否会出现兼容问题.由于jquer
- Lua的io库函数列表
ronin47
lua io
1、io表调用方式:使用io表,io.open将返回指定文件的描述,并且所有的操作将围绕这个文件描述
io表同样提供三种预定义的文件描述io.stdin,io.stdout,io.stderr
2、文件句柄直接调用方式,即使用file:XXX()函数方式进行操作,其中file为io.open()返回的文件句柄
多数I/O函数调用失败时返回nil加错误信息,有些函数成功时返回nil
- java-26-左旋转字符串
bylijinnan
java
public class LeftRotateString {
/**
* Q 26 左旋转字符串
* 题目:定义字符串的左旋转操作:把字符串前面的若干个字符移动到字符串的尾部。
* 如把字符串abcdef左旋转2位得到字符串cdefab。
* 请实现字符串左旋转的函数。要求时间对长度为n的字符串操作的复杂度为O(n),辅助内存为O(1)。
*/
pu
- 《vi中的替换艺术》-linux命令五分钟系列之十一
cfyme
linux命令
vi方面的内容不知道分类到哪里好,就放到《Linux命令五分钟系列》里吧!
今天编程,关于栈的一个小例子,其间我需要把”S.”替换为”S->”(替换不包括双引号)。
其实这个不难,不过我觉得应该总结一下vi里的替换技术了,以备以后查阅。
1
所有替换方案都要在冒号“:”状态下书写。
2
如果想将abc替换为xyz,那么就这样
:s/abc/xyz/
不过要特别
- [轨道与计算]新的并行计算架构
comsci
并行计算
我在进行流程引擎循环反馈试验的过程中,发现一个有趣的事情。。。如果我们在流程图的每个节点中嵌入一个双向循环代码段,而整个流程中又充满着很多并行路由,每个并行路由中又包含着一些并行节点,那么当整个流程图开始循环反馈过程的时候,这个流程图的运行过程是否变成一个并行计算的架构呢?
- 重复执行某段代码
dai_lm
android
用handler就可以了
private Handler handler = new Handler();
private Runnable runnable = new Runnable() {
public void run() {
update();
handler.postDelayed(this, 5000);
}
};
开始计时
h
- Java实现堆栈(list实现)
datageek
数据结构——堆栈
public interface IStack<T> {
//元素出栈,并返回出栈元素
public T pop();
//元素入栈
public void push(T element);
//获取栈顶元素
public T peek();
//判断栈是否为空
public boolean isEmpty
- 四大备份MySql数据库方法及可能遇到的问题
dcj3sjt126com
DBbackup
一:通过备份王等软件进行备份前台进不去?
用备份王等软件进行备份是大多老站长的选择,这种方法方便快捷,只要上传备份软件到空间一步步操作就可以,但是许多刚接触备份王软件的客用户来说还原后会出现一个问题:因为新老空间数据库用户名和密码不统一,网站文件打包过来后因没有修改连接文件,还原数据库是好了,可是前台会提示数据库连接错误,网站从而出现打不开的情况。
解决方法:学会修改网站配置文件,大多是由co
- github做webhooks:[1]钩子触发是否成功测试
dcj3sjt126com
githubgitwebhook
转自: http://jingyan.baidu.com/article/5d6edee228c88899ebdeec47.html
github和svn一样有钩子的功能,而且更加强大。例如我做的是最常见的push操作触发的钩子操作,则每次更新之后的钩子操作记录都会在github的控制板可以看到!
工具/原料
github
方法/步骤
- ">的作用" target="_blank">JSP中的作用
蕃薯耀
JSP中<base href="<%=basePath%>">的作用
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
- linux下SAMBA服务安装与配置
hanqunfeng
linux
局域网使用的文件共享服务。
一.安装包:
rpm -qa | grep samba
samba-3.6.9-151.el6.x86_64
samba-common-3.6.9-151.el6.x86_64
samba-winbind-3.6.9-151.el6.x86_64
samba-client-3.6.9-151.el6.x86_64
samba-winbind-clients
- guava cache
IXHONG
cache
缓存,在我们日常开发中是必不可少的一种解决性能问题的方法。简单的说,cache 就是为了提升系统性能而开辟的一块内存空间。
缓存的主要作用是暂时在内存中保存业务系统的数据处理结果,并且等待下次访问使用。在日常开发的很多场合,由于受限于硬盘IO的性能或者我们自身业务系统的数据处理和获取可能非常费时,当我们发现我们的系统这个数据请求量很大的时候,频繁的IO和频繁的逻辑处理会导致硬盘和CPU资源的
- Query的开始--全局变量,noconflict和兼容各种js的初始化方法
kvhur
JavaScriptjquerycss
这个是整个jQuery代码的开始,里面包含了对不同环境的js进行的处理,例如普通环境,Nodejs,和requiredJs的处理方法。 还有jQuery生成$, jQuery全局变量的代码和noConflict代码详解 完整资源:
http://www.gbtags.com/gb/share/5640.htm jQuery 源码:
(
- 美国人的福利和中国人的储蓄
nannan408
今天看了篇文章,震动很大,说的是美国的福利。
美国医院的无偿入院真的是个好措施。小小的改善,对于社会是大大的信心。小孩,税费等,政府不收反补,真的体现了人文主义。
美国这么高的社会保障会不会使人变懒?答案是否定的。正因为政府解决了后顾之忧,人们才得以倾尽精力去做一些有创造力,更造福社会的事情,这竟成了美国社会思想、人
- N阶行列式计算(JAVA)
qiuwanchi
N阶行列式计算
package gaodai;
import java.util.List;
/**
* N阶行列式计算
* @author 邱万迟
*
*/
public class DeterminantCalculation {
public DeterminantCalculation(List<List<Double>> determina
- C语言算法之打渔晒网问题
qiufeihu
c算法
如果一个渔夫从2011年1月1日开始每三天打一次渔,两天晒一次网,编程实现当输入2011年1月1日以后任意一天,输出该渔夫是在打渔还是在晒网。
代码如下:
#include <stdio.h>
int leap(int a) /*自定义函数leap()用来指定输入的年份是否为闰年*/
{
if((a%4 == 0 && a%100 != 0
- XML中DOCTYPE字段的解析
wyzuomumu
xml
DTD声明始终以!DOCTYPE开头,空一格后跟着文档根元素的名称,如果是内部DTD,则再空一格出现[],在中括号中是文档类型定义的内容. 而对于外部DTD,则又分为私有DTD与公共DTD,私有DTD使用SYSTEM表示,接着是外部DTD的URL. 而公共DTD则使用PUBLIC,接着是DTD公共名称,接着是DTD的URL.
私有DTD
<!DOCTYPErootSYST