- 生命如花
坦释空
每个人的心中都有一株妙莲花。这是禅家语。禅家总是站在理性的高处,以超越红尘的洒脱来参悟人生和自省生命。那么,凡俗中人呢?生如夏花之绚丽,死如秋叶之静美。这是诗人语。多少人在赞美:姑娘好像花一样!又有多少人在咏歌:花儿与少年。的确,人生如花。花一样的生命,理应自诞生之日起,就一瓣一瓣地绽放她的美丽与清香,使这个原本死寂荒凉的世界五彩缤纷,充满快乐。事实上,人类自诞生起,就一代一代地做着这方面的努力,
- 韩愈《题榴花》:倾听花落的声音
墙头草说
无论有没有人欣赏,时节一到,花儿自然就会开放,这是自然的规律。但是多情的人们总以为花儿是为自己而开,于是在赏花之时,或惊叹于造化之功,或沉醉于迷人花香,或伤悼于满地落红……唐代诗人韩愈在观赏石榴花时,也生发出深沉的感慨,于是写下了《题榴花》一诗,原文如下:五月榴花照眼明,枝间时见子初成。可怜此地无车马,颠倒青苔落绛英。“五月榴花照眼明”,五月如火的石榴花映入眼帘格外鲜明。五月份,正是石榴花开得正盛
- 21天|生如夏花组合《蔡康永的说话之道》
summer_8f83
【day12】今日阅读《蔡康永的说话之道》p1-p30这本书在前几年读过,当时没有留下深刻的印象,记忆里就是一个影视名人趁红出的一本书。前几天看到一位老铁推荐这本书,又找出来读一读,没想到读了以后跟以前相比有了很深刻的感悟和认同。会说话坚持太重要了,我觉得这本书叫跟《非暴力沟通》有异曲同工之处。“良言一句三冬暖”,“一样话百样说”所以,说话时候技巧的,是可以练习的。作者提示我们:每天我们说那么多话
- 平昌冬奥,人生竞赛不要给对手和裁判任何机会
小猫_003e
如火如荼的平昌冬奥会拉下了帷幕,但是自从某年的伦敦奥运会之后,我们中国队自从好像就“最爱干犯规的事儿”。2月20日,短道速滑女子3000米接力赛,可以说是相当令人痛心了。比赛中,韩国队交接棒失误“扑街”,阻拦了加拿大队,带来的连锁反应也影响了中国队。中国队以微弱劣势落后韩国队,第二个冲线!韩国队这次失误犯规那么明显,应该唱费玉清的我送你离开千里之外。但···最终赛场上裁判宣布:韩国队冠军,中国队、
- 真实段子:上家违约?打官司告他!
魔都财观
本段子根据真实事件改编1买了套学区房2016年,如火如荼的上海楼市大牛市,小明按耐不住要买房。他女儿四岁半了,再过两年要上小学。屌丝的他,没啥社会关系。谁能保证两年后的入学高峰,女儿能够顺利进入名校呢。于是,老婆天天枕边风,学区房、学区房、学区房。小明怒了,不特么就是个学区房嘛,老子也算一线白领土著,买!顶着炎炎烈日,看房弄得七荤八素,终于下定了!落手一枚对口普陀区某名校的学区房,350万两房,还
- 心之所向,冷暖自处
雪婷
你总以为难过是因外界引起的,其实,能左右心情的,只有自己。有些事注定不平,除了全力以赴外,还有意外的情况。即便会很难,但依旧要孤注一掷,只为最后不遗憾。,好比,生如夏花绚烂,但也短暂。有人观赏时,它是美的。无人在意时,它也孤单。除了空气,阳光和土壤,最重要的本身。
- 如火如荼
c罗vs梅西
【求解驿站】原形容军容盛大。后形容气势蓬勃、气氛热烈和生命力旺盛。荼,古代指茅草的白花。【活学活用】春天到了,杜鹃花开得~,把这个城市点缀得更加美丽。【妙语点拨】吴王夫差兴师前往晋国,没想到“黄雀在后”,被越王勾践断了退路。结果,越王勾践不仅没能打击掉吴国军队的士气,反而弄巧成拙,加速了吴国胜晋的步伐。这启示我们,如果将对方逼迫到无路可退的地步,却又不能将其一举歼灭时,就不要轻举妄动。否则,对方往
- 你
诗韵钟鸣
你是那么的遥远可又是那么切近你在天涯可又在咫尺我虽看不到你妩媚的身影我的心却触得到你心灵的温暖你是一粒生命的种子随了时光的缘你是一朵琼花入了幽梦的眼你是春风秋月步入我期待的诗行你是夏花冬雪赐我无边的浪漫摊开掌心让念念归拢敞开心怀让眷恋成风我欣喜若狂我小心珍惜怕你流失在岁月的空间我将你定格成一帧记忆收藏在心底
- GB28181应急救援行业视音频解决方案探究和技术实现
音视频牛哥
GB28181接入SmartGBD实时音视频GB28181客户端GB28181应急救援GB28181设备GB28181平台GB28181安卓端大牛直播SDK
技术背景应急救援是一项针对突发、具有破坏力的紧急事件采取预防、预备、响应和恢复的活动与计划。这些紧急事件可能包括自然灾害(如地震、洪水、台风)、事故灾难(如火灾、爆炸、交通事故)、公共卫生事件(如疫情、食物中毒)等。应急救援工作的有效实施对于保障公众的生命安全、减轻灾害损失、维护社会稳定具有重要意义。GB28181应急救援技术优势GB28181在应急救援行业的应用解决方案主要体现了其在视频监控、数
- 共修《幸福》
辉辉的茶生活
八月,醉一场青春的流年。慢步在八月的春光里,走走停停,看花开嫣然,看春雨绵绵,感受春风拂面,春天,就是青春的流年。青春,是人生中最美的风景。青春,是一场花开的遇见;青春,是一场痛并快乐着的旅行;青春,是一场轰轰烈烈的比赛;青春,是一场鲜衣奴马的争荣岁月;青春,是一场风花雪月的光阴。青春往事,多么甜蜜;青春岁月,多么靓丽;青春流年,如火如荼。青春里,我们向着梦想前进。跌倒过,伤心过,快乐过,痛苦过,
- 从世界杯看红尘
红尘随缘人
火热的世界杯如火如荼的进行着,各大媒体各种评论也是层出不穷。我也不落俗套,来一段从世界杯看世间百态。1)为什么中国人热衷世界杯,一个中国人并不擅长的运动。作为世界人口第一大国,中国队却未能闯进世界杯,多少会给国人增添遗憾,但是我们到底为什么着迷于、狂热于、沉醉于一项我们并不擅长的运动呢?到底遗憾什么呢?难道仅仅是为了从中获得挫败感?如果可以像美国人那样,虽然也踢足球,但最沉迷的,却是篮球、棒球等自
- 神笔马良后续
每言每语
《神笔马良》第三讲儿童文学有很多种类型,有童话、幻想小说、动物小说等。对于一个读者来说,一个故事属于那种类型不重要,重要的是它是不是一个好故事,能不能感动人,《神笔马良》则属于后者。孩子在童年时期读到什么书,未来就会朝向什么方向发展。少年儿童的精神生命如同夏花蓬勃发展。认知、想象、情感、道德、审美、智慧,是给少年儿童精神生命打底的重要内容。《神笔马良》中,让我们感悟审美的力量、道德的力量、语言的力
- 端午竞渡:绘画上的唐宋龙舟夺标,有“名场面”,也有“黑暗面”
博士洛阳铲
唐宋之际,端午节龙舟赛发展已臻完善,无论是官方组织的龙舟赛还是民间自发组织的竞技比赛,已经形成等级森严、规制完善的竞技活动。从唐宋当时的文化艺术品及典籍资料可以分析,特别是在唐李昭道《龙舟竞渡图》、北宋张择端《金明池争标图》以及元代诸多画作中可以看出,唐宋帝王和民间均喜欢竞渡这种竞技性和趣味性都很强的端午娱乐活动。上有好之,下必甚焉。竞渡活动的如火如荼,对龙舟的造船方法、选桡材料、参赛人数、划船节
- 歌者以歌
独立行
歌者以歌探听最后的亡魂塞比亚的战士们托起长矛刺穿铠甲后的新鲜心脏红色的血液是我万里无一的信仰但它们都将溅于泥土会生出夏花再开于明日的冬至于你――若是长久祈盼那沉寂的美梦索性将它掩埋吧成为昨日的树盛于今日的果实干涸而苦涩只有舌尖上还残留不知名的甜度像是沉浸久了的维奥拉式的幻境我和我的生命也只是一种赘续米开朗基罗《最后的审判》该画占满了西斯廷天主堂祭台后方的整面墙壁,描绘有400多个人物,画面分为天使
- 行走在城市的夜晚
无右
姑苏城内信步走,高楼大厦钢筋筑。草木繁盛灯色暖,车水如流有时有。微雨已尽地上干,本盼雨散暑气消。奈何?毛毛细雨不堪用,更甚些时热浪蒸。连日酷暑心气颓,终得苍天垂怜顾。高兴太早不及悔,如火似焚何时尽?噫吁!天意难窥竟束手,惶急切望无一计。罢罢罢!空调房里自无感,可怜室外辛苦人。只愿风调雨顺节气轮回得颜开,不过是些苦命人,又何忍更添其苦?图片发自App图片发自App图片发自App图片发自App图片发自
- 那弥漫一千里的迷雾,有你在其间且行且住
慕容钰灵
1.心微动奈何情己远,物也非,人也非,事事非,往日不可追。2.不恋尘世浮华,不写红尘纷扰,不叹世道苍凉,不惹情思哀怨。闲看花开,静待花落,冷暖自知,干净如始。3.我宁可我们不曾相濡以沫,我但愿我们从来就相忘于江湖。4.灯火星星,人声杳杳,歌不尽乱世烽火。乌云蔽月,人迹踪绝,说不出如斯寂寞。5.我拼了命不负这流年,只想和你看一场雪月风花,不错过你生如夏花之姿,你倾我国城,覆我年华,做我之王,如此,便
- 读书笔记10,读诗经第十篇《汝坟》有感
贾宋海纳百川
读书笔记,读诗经第十篇《汝坟》有感文/徐志海遵彼汝坟,伐其条枚。未见君子,惄如调饥。遵彼汝坟,伐其条肄。既见君子,不我遐弃。鲂鱼赪尾,王室如毁。虽则如毁,父母孔迩。这是原诗,意思是:沿着汝河大堤走,采伐山楸那枝条。还没见到我夫君,忧如忍饥在清早。沿着汝河大堤走,采伐山楸那余枝。终于见到我夫君,请莫再将我远弃。鳊鱼尾巴色赤红,王室事务急如火。虽然有事急如火,父母穷困谁养活!这首诗很有意思,三段话,说
- 散文诗︱永恒的信仰,百年传承(原创)
凤凰赵凤宝
散文诗︱永恒的信仰,百年传承(原创)作者:赵凤宝假如,没有那面镌刻着镰刀铁锤的红色旗帜,怎么会有今天,九百六十万平方公里的大好山河;假如,没有一百年前的那一点星星之火,又怎么能有今天十四亿人民的幸福生活;假如,没有那么一种坚韧的信念,又怎么会有今天盛世鹏程的红色大中国。七月流火,一百年的传承接力。我们用红色的旗帜,盛装,朗朗乾坤间这片东方神秘的土地。七月绯红,我们用如火的激情,高唱,一个世纪里最不
- 女排惨败出局奥运赛场,网友大骂郎平,究竟谁该为此买单?
观心神探
东京奥运会如火如荼进行着,很多朋友却依然在为女排失利而耿耿于怀,直呼本届奥运会最让人意难平的当属女排。曾经的王者们,究竟是怎么了,谁又该为此买单呢?这届奥运会女排比赛,在昨天对阵意大利之前,唯一的印象就是一场没赢过,3场打了2个0比3,一个2比3。这还是中国女排么??中国女排什么时候在赛场上是一场球都赢不了的了??这何止意难平啊,简直是天打雷劈啊。那些阴间裁判什么的都不重要了,那些什么美国放不防水
- 二中学区”行孝道,知感恩”预赛如火如荼
努力就会创造奇迹
二中学区”行孝道,知感恩”预赛如火如荼留固二中于贵娟为了大力弘扬中华民族敬老孝老传统美德,让学生从我做起,从身边做起,真心敬老。以“行孝道,知感恩”的主题组织的系列活动的预赛在留固二中拉开了帷幕,参赛的选手来自留固第二中学,马庄中心小学,第二寨小学,星落寺小学,启明星小学,参赛的节目40个,时间长达四小时之多,全场人数将六百人。在留固二中校领导精心的策划下,各个学校评委的密切配合下,八年级声音甜美
- 魔域500元京东购物券兑换攻略详解,尽享优惠购物!
浮沉导师
在如火如荼的电商时代,更多的消费者选择在电商平台购物。尤其是像京东这样的电商巨头,用户体验和购物优惠都是他们最为关注的事情。本文将为您详细介绍京东购物的售后服务流程,以及如何使用魔域500元京东购物券和高省app轻松省钱的技巧。京东购物换货以及退款流程在购物过程中,不能保证每件商品都符合您的要求,因此京东提供了售后服务,包括购物换货和退款,以保证您的购物体验无虞。下面是对两种服务的详细解释:购物换
- 散了架的喜鹊窝(七)
山之东西
每当夜幕降临,花灯初起,我喜欢漫步在城市古城墙下的林荫道上。树影婆娑,夏花绚烂,夏风习习吹过,芳香扑鼻而来,倍感身心愉悦。置身于这迷人的夜晚,到处闪烁的霓虹灯,大街小巷中通明的路灯,万家灯火照亮城市夜空,夜色阑珊,怎能不让人心旷神怡。那时候,我抬头仰望星空,怅然若失——很显然,城市无处不在的光污染,无情的遮蔽和夺取了夜空的美丽。夜空本来模样被撕裂成一块块碎片,变得面目全非。褪色的夜空,模糊不清,暗
- 引领AI PC浪潮,Arm人工智能创新应用大赛火热报名中
高校俱乐部
人工智能qtarm开发
AIPC,即搭载人工智能技术的个人电脑,正成为个人电脑市场的新宠儿。而正在如火如荼进行中的Arm人工智能创新应用大赛,则为敏锐的开发者探索AIPC应用开发掘金之路提供了平台。点击报名挑战10万奖金池AIPC增长强劲,年出货量有望破亿得益于生成式人工智能技术的高歌猛进和应用场景的不断拓展,AIPC在工作、学习和生活娱乐等场景中提供个性化、智能化服务的价值越来越受到重视,正逐渐成为推动智能生活和工业自
- 读书笔记:职业教育国际交流与合作
Dragonhsu
读石伟平教授文章有感学习国际经验主要从下面几个方面着手:1.引进教育模式从20世纪80年代开始,引进德国双元制、MES,90年代引进加拿大CBE,21世纪澳大利亚的TAFE和英国的BTEC,德国行动导向职业教育课程模式。现在这些内容还没有吃透,本土化还有很多工作可做。2.合作办学:进行如火如荼3.师资共建:依然是热点4.职业资格合作:随着国际化进程的加快,将是未来主要的发展之一。5.引进资金:以前
- “奉献传递爱心.鲜血传承生命”——2023年8月无偿献血常态化服务
热情的丁香花
夏日的余热仍在空气中弥漫,仿佛秋天还未降临。2023年的8月,正是交秋之季,阳光依然炙热,犹如火般燃烧着大地。转眼间,我们已经告别了夏季,迎来了秋的脚步,而每月的9日至11日,无偿献血常态化服务也随着这炙热的阳光如约而至,一股热情洋溢充满爱心的暖流,在这个炎热的季节里传递开来。让人们的心情也变得像阳光般充满热烈的激情和温暖。为了支持我市的无偿献血工作,推进精神文明建设,东至县爱心(三献)志愿者协会
- 拼多多返利app叫什么名字,拼多多返利软件用哪个最好?
氧惠_飞智666999
拼多多返利软件有哪些?这个话题真的是让无数网友和我都深感兴趣。在电商购物如火如荼的今天,拼多多返利软件不仅为消费者带来了实实在在的优惠,还成为了我们省钱的小助手。接下来,就让我为你揭秘那些备受好评的拼多多返利软件吧!氧惠APP(带货领导者)——是与以往完全不同的抖客+淘客app!2023全新模式,我的直推也会放到你下面。主打:带货高补贴,深受各位带货团队长喜爱(每天出单带货几十万单)。注册即可享受
- 如果《原神》手游取消了原粹树脂,会发生什么?
笔点酷玩
这是一个《原神》游戏爱好者在知乎发出的提问——如果《原神》取消了原粹树脂(每日160体力),会发生什么?提问之后,立刻有大佬写出一篇长文,其主要观点一句话就能概括:“肝帝一天全角色满90级”、“代练业务如火如荼”。哥们儿,还“肝一天90级”,你想得美!你以为米哈游傻啊,单纯取消树脂,其他不变?我认为,这个提瓦特大陆是非常残酷的。凭什么取消树脂,让游戏失衡,游戏工作室不会这样玩火,而真实的情况,应该
- 希冀与你相遇
freshwater
在这个生如夏花般绚烂的年华里,我们邂逅。在爱的呢喃中你羽翼渐丰……在彼此的守望相助里,你成长为令人骄傲的模样。当你张开双臂拥抱这个新时代的时候,妈妈为你自豪!惊鸿一瞥,我们拥有了彼此。转身离开,你的背影是我永在追寻的梦。图片发自App图片发自App图片发自App图片发自App图片发自App图片发自App图片发自App图片发自App图片发自App图片发自App
- 2022-12-19
301人
让二十大精神宣讲“直抵人心"中共中央发出《关于认真学习宣传贯彻党的二十大精神的决定》,二十大精神的宣讲在全国各地如火如荼地开展起来。基层宣讲是党的二十大精神深入基层、深入群众、深入人心的重要途径,要活用形式、注重内容、追求实效,让党的创新理论在基层落地生根、开花结果,让党的二十大精神宣讲“直抵人心”。二十大精神宣讲要活用形式,以“新”贯之。党的二十大精神宣讲的形式是多种多样的,比较传统的就是举办现
- 生如夏花
艳儿吖
喜欢这个词。感觉有种阳光照耀的美丽在行走。今天早上,醒来,是突然醒来,突然感觉活着没有意思了,行尸走肉般惶恐呢,自己被自己这个想法吓到了。又突然看表,6.38约好的6点半,一个机灵忙看手机。没来电话。有信息,那取锅的说再有10分钟,问我在哪了,告诉他,然后瞬间忘了早上想的,洗涑一气呵成穿衣出门,站在路口,等了一会儿人来了,也挺痛快交接就各自回家。我买了早餐,回到家宝竟然起来了,看来宝真着急了,我们
- 项目中 枚举与注解的结合使用
飞翔的马甲
javaenumannotation
前言:版本兼容,一直是迭代开发头疼的事,最近新版本加上了支持新题型,如果新创建一份问卷包含了新题型,那旧版本客户端就不支持,如果新创建的问卷不包含新题型,那么新旧客户端都支持。这里面我们通过给问卷类型枚举增加自定义注解的方式完成。顺便巩固下枚举与注解。
一、枚举
1.在创建枚举类的时候,该类已继承java.lang.Enum类,所以自定义枚举类无法继承别的类,但可以实现接口。
- 【Scala十七】Scala核心十一:下划线_的用法
bit1129
scala
下划线_在Scala中广泛应用,_的基本含义是作为占位符使用。_在使用时是出问题非常多的地方,本文将不断完善_的使用场景以及所表达的含义
1. 在高阶函数中使用
scala> val list = List(-3,8,7,9)
list: List[Int] = List(-3, 8, 7, 9)
scala> list.filter(_ > 7)
r
- web缓存基础:术语、http报头和缓存策略
dalan_123
Web
对于很多人来说,去访问某一个站点,若是该站点能够提供智能化的内容缓存来提高用户体验,那么最终该站点的访问者将络绎不绝。缓存或者对之前的请求临时存储,是http协议实现中最核心的内容分发策略之一。分发路径中的组件均可以缓存内容来加速后续的请求,这是受控于对该内容所声明的缓存策略。接下来将讨web内容缓存策略的基本概念,具体包括如如何选择缓存策略以保证互联网范围内的缓存能够正确处理的您的内容,并谈论下
- crontab 问题
周凡杨
linuxcrontabunix
一: 0481-079 Reached a symbol that is not expected.
背景:
*/5 * * * * /usr/IBMIHS/rsync.sh
- 让tomcat支持2级域名共享session
g21121
session
tomcat默认情况下是不支持2级域名共享session的,所有有些情况下登陆后从主域名跳转到子域名会发生链接session不相同的情况,但是只需修改几处配置就可以了。
打开tomcat下conf下context.xml文件
找到Context标签,修改为如下内容
如果你的域名是www.test.com
<Context sessionCookiePath="/path&q
- web报表工具FineReport常用函数的用法总结(数学和三角函数)
老A不折腾
Webfinereport总结
ABS
ABS(number):返回指定数字的绝对值。绝对值是指没有正负符号的数值。
Number:需要求出绝对值的任意实数。
示例:
ABS(-1.5)等于1.5。
ABS(0)等于0。
ABS(2.5)等于2.5。
ACOS
ACOS(number):返回指定数值的反余弦值。反余弦值为一个角度,返回角度以弧度形式表示。
Number:需要返回角
- linux 启动java进程 sh文件
墙头上一根草
linuxshelljar
#!/bin/bash
#初始化服务器的进程PId变量
user_pid=0;
robot_pid=0;
loadlort_pid=0;
gateway_pid=0;
#########
#检查相关服务器是否启动成功
#说明:
#使用JDK自带的JPS命令及grep命令组合,准确查找pid
#jps 加 l 参数,表示显示java的完整包路径
#使用awk,分割出pid
- 我的spring学习笔记5-如何使用ApplicationContext替换BeanFactory
aijuans
Spring 3 系列
如何使用ApplicationContext替换BeanFactory?
package onlyfun.caterpillar.device;
import org.springframework.beans.factory.BeanFactory;
import org.springframework.beans.factory.xml.XmlBeanFactory;
import
- Linux 内存使用方法详细解析
annan211
linux内存Linux内存解析
来源 http://blog.jobbole.com/45748/
我是一名程序员,那么我在这里以一个程序员的角度来讲解Linux内存的使用。
一提到内存管理,我们头脑中闪出的两个概念,就是虚拟内存,与物理内存。这两个概念主要来自于linux内核的支持。
Linux在内存管理上份为两级,一级是线性区,类似于00c73000-00c88000,对应于虚拟内存,它实际上不占用
- 数据库的单表查询常用命令及使用方法(-)
百合不是茶
oracle函数单表查询
创建数据库;
--建表
create table bloguser(username varchar2(20),userage number(10),usersex char(2));
创建bloguser表,里面有三个字段
&nbs
- 多线程基础知识
bijian1013
java多线程threadjava多线程
一.进程和线程
进程就是一个在内存中独立运行的程序,有自己的地址空间。如正在运行的写字板程序就是一个进程。
“多任务”:指操作系统能同时运行多个进程(程序)。如WINDOWS系统可以同时运行写字板程序、画图程序、WORD、Eclipse等。
线程:是进程内部单一的一个顺序控制流。
线程和进程
a. 每个进程都有独立的
- fastjson简单使用实例
bijian1013
fastjson
一.简介
阿里巴巴fastjson是一个Java语言编写的高性能功能完善的JSON库。它采用一种“假定有序快速匹配”的算法,把JSON Parse的性能提升到极致,是目前Java语言中最快的JSON库;包括“序列化”和“反序列化”两部分,它具备如下特征:  
- 【RPC框架Burlap】Spring集成Burlap
bit1129
spring
Burlap和Hessian同属于codehaus的RPC调用框架,但是Burlap已经几年不更新,所以Spring在4.0里已经将Burlap的支持置为Deprecated,所以在选择RPC框架时,不应该考虑Burlap了。
这篇文章还是记录下Burlap的用法吧,主要是复制粘贴了Hessian与Spring集成一文,【RPC框架Hessian四】Hessian与Spring集成
 
- 【Mahout一】基于Mahout 命令参数含义
bit1129
Mahout
1. mahout seqdirectory
$ mahout seqdirectory
--input (-i) input Path to job input directory(原始文本文件).
--output (-o) output The directory pathna
- linux使用flock文件锁解决脚本重复执行问题
ronin47
linux lock 重复执行
linux的crontab命令,可以定时执行操作,最小周期是每分钟执行一次。关于crontab实现每秒执行可参考我之前的文章《linux crontab 实现每秒执行》现在有个问题,如果设定了任务每分钟执行一次,但有可能一分钟内任务并没有执行完成,这时系统会再执行任务。导致两个相同的任务在执行。
例如:
<?
//
test
.php
- java-74-数组中有一个数字出现的次数超过了数组长度的一半,找出这个数字
bylijinnan
java
public class OcuppyMoreThanHalf {
/**
* Q74 数组中有一个数字出现的次数超过了数组长度的一半,找出这个数字
* two solutions:
* 1.O(n)
* see <beauty of coding>--每次删除两个不同的数字,不改变数组的特性
* 2.O(nlogn)
* 排序。中间
- linux 系统相关命令
candiio
linux
系统参数
cat /proc/cpuinfo cpu相关参数
cat /proc/meminfo 内存相关参数
cat /proc/loadavg 负载情况
性能参数
1)top
M:按内存使用排序
P:按CPU占用排序
1:显示各CPU的使用情况
k:kill进程
o:更多排序规则
回车:刷新数据
2)ulimit
ulimit -a:显示本用户的系统限制参
- [经营与资产]保持独立性和稳定性对于软件开发的重要意义
comsci
软件开发
一个软件的架构从诞生到成熟,中间要经过很多次的修正和改造
如果在这个过程中,外界的其它行业的资本不断的介入这种软件架构的升级过程中
那么软件开发者原有的设计思想和开发路线
- 在CentOS5.5上编译OpenJDK6
Cwind
linuxOpenJDK
几番周折终于在自己的CentOS5.5上编译成功了OpenJDK6,将编译过程和遇到的问题作一简要记录,备查。
0. OpenJDK介绍
OpenJDK是Sun(现Oracle)公司发布的基于GPL许可的Java平台的实现。其优点:
1、它的核心代码与同时期Sun(-> Oracle)的产品版基本上是一样的,血统纯正,不用担心性能问题,也基本上没什么兼容性问题;(代码上最主要的差异是
- java乱码问题
dashuaifu
java乱码问题js中文乱码
swfupload上传文件参数值为中文传递到后台接收中文乱码 在js中用setPostParams({"tag" : encodeURI( document.getElementByIdx_x("filetag").value,"utf-8")});
然后在servlet中String t
- cygwin很多命令显示command not found的解决办法
dcj3sjt126com
cygwin
cygwin很多命令显示command not found的解决办法
修改cygwin.BAT文件如下
@echo off
D:
set CYGWIN=tty notitle glob
set PATH=%PATH%;d:\cygwin\bin;d:\cygwin\sbin;d:\cygwin\usr\bin;d:\cygwin\usr\sbin;d:\cygwin\us
- [介绍]从 Yii 1.1 升级
dcj3sjt126com
PHPyii2
2.0 版框架是完全重写的,在 1.1 和 2.0 两个版本之间存在相当多差异。因此从 1.1 版升级并不像小版本间的跨越那么简单,通过本指南你将会了解两个版本间主要的不同之处。
如果你之前没有用过 Yii 1.1,可以跳过本章,直接从"入门篇"开始读起。
请注意,Yii 2.0 引入了很多本章并没有涉及到的新功能。强烈建议你通读整部权威指南来了解所有新特性。这样有可能会发
- Linux SSH免登录配置总结
eksliang
ssh-keygenLinux SSH免登录认证Linux SSH互信
转载请出自出处:http://eksliang.iteye.com/blog/2187265 一、原理
我们使用ssh-keygen在ServerA上生成私钥跟公钥,将生成的公钥拷贝到远程机器ServerB上后,就可以使用ssh命令无需密码登录到另外一台机器ServerB上。
生成公钥与私钥有两种加密方式,第一种是
- 手势滑动销毁Activity
gundumw100
android
老是效仿ios,做android的真悲催!
有需求:需要手势滑动销毁一个Activity
怎么办尼?自己写?
不用~,网上先问一下百度。
结果:
http://blog.csdn.net/xiaanming/article/details/20934541
首先将你需要的Activity继承SwipeBackActivity,它会在你的布局根目录新增一层SwipeBackLay
- JavaScript变换表格边框颜色
ini
JavaScripthtmlWebhtml5css
效果查看:http://hovertree.com/texiao/js/2.htm代码如下,保存到HTML文件也可以查看效果:
<html>
<head>
<meta charset="utf-8">
<title>表格边框变换颜色代码-何问起</title>
</head>
<body&
- Kafka Rest : Confluent
kane_xie
kafkaRESTconfluent
最近拿到一个kafka rest的需求,但kafka暂时还没有提供rest api(应该是有在开发中,毕竟rest这么火),上网搜了一下,找到一个Confluent Platform,本文简单介绍一下安装。
这里插一句,给大家推荐一个九尾搜索,原名叫谷粉SOSO,不想fanqiang谷歌的可以用这个。以前在外企用谷歌用习惯了,出来之后用度娘搜技术问题,那匹配度简直感人。
环境声明:Ubu
- Calender不是单例
men4661273
单例Calender
在我们使用Calender的时候,使用过Calendar.getInstance()来获取一个日期类的对象,这种方式跟单例的获取方式一样,那么它到底是不是单例呢,如果是单例的话,一个对象修改内容之后,另外一个线程中的数据不久乱套了吗?从试验以及源码中可以得出,Calendar不是单例。
测试:
Calendar c1 =
- 线程内存和主内存之间联系
qifeifei
java thread
1, java多线程共享主内存中变量的时候,一共会经过几个阶段,
lock:将主内存中的变量锁定,为一个线程所独占。
unclock:将lock加的锁定解除,此时其它的线程可以有机会访问此变量。
read:将主内存中的变量值读到工作内存当中。
load:将read读取的值保存到工作内存中的变量副本中。
- schedule和scheduleAtFixedRate
tangqi609567707
javatimerschedule
原文地址:http://blog.csdn.net/weidan1121/article/details/527307
import java.util.Timer;import java.util.TimerTask;import java.util.Date;
/** * @author vincent */public class TimerTest {
 
- erlang 部署
wudixiaotie
erlang
1.如果在启动节点的时候报这个错 :
{"init terminating in do_boot",{'cannot load',elf_format,get_files}}
则需要在reltool.config中加入
{app, hipe, [{incl_cond, exclude}]},
2.当generate时,遇到:
ERROR