- 谁家酒器最绝唱,藏在酒厂人未知?景阳冈酒厂先秦藏品大揭秘
李虓酒评论
文/王赛时中国的酒器酒具历史久远,举世闻名。从北京的故宫博物院、中国国家博物馆,到世界各国的大型博物馆,都以能够收藏中国古代酒具而夸耀。但很少有人知道,在山东阳谷景阳冈酒厂,默默地收藏了两千件中国酒器。这些酒器,就封藏在景阳冈的酒道馆里。其中有一些青铜酒器,一睡就是三、四千年,堪称无声国宝,堪作无字史书!今天,我将引领诸位首先窥视一下景阳冈酒道馆的9件先秦藏品,你自己来说震撼不震撼。提示:这只是景
- 读《人世间》有感
一0一
这个寒假,就如同朋友圈中的一段话:一闭眼,一睁眼假期还有5天,在一闭眼一睁眼假期还有12天;再一闭眼一睁眼假期还有20天;不敢睡,不敢睡啊……受疫情影响,这个假期变得漫长又煎熬,我也无时无刻不关注着疫情的变化。当然这样的一个假期,我还真得要感谢周翔,因为他有个爱看书的习惯,所以家里有不少他看过的书,可以让我随意挑选,因此也让我的假期不至于那么无所事事。这次我选了一本梁晓声的《人世间》,作为一名语文
- 大伟说成语之唉声叹气
求索大伟
*大伟说成语*【唉声叹气】叹气:因心里不痛快或不如意而吐出长气,发出声音。因为痛苦、憋闷或感伤而发出叹息的声音。【大伟说】情绪外露,非人类所特有,动物亦有情绪,悲哀和欢乐所表示的情绪亦是不一样的,会嗷嗷大叫也会低吟痛哭。不同的是,人类的情绪更复杂,更多样,更丰富。唉声叹气,可以说是最基础的情绪,因为无奈而举足无措,不知该如何如何化解,只有独自一人慢慢承受,长吁短叹不知如何是好,其实是无能无力的表现
- OPENAIGC开发者大赛企业组AI黑马奖 | AIGC数智传媒解决方案
RPA中国
人工智能AIGC传媒
在第二届拯救者杯OPENAIGC开发者大赛中,涌现出一批技术突出、创意卓越的作品。为了让这些优秀项目被更多人看到,我们特意开设了优秀作品报道专栏,旨在展示其独特之处和开发者的精彩故事。无论您是技术专家还是爱好者,希望能带给您不一样的知识和启发。让我们一起探索AIGC的无限可能,见证科技与创意的完美融合!创未来AI应用赛-企业组AI黑马奖作品名称:AIGC数智传媒解决方案参赛团队:深圳市三象智能技术
- 最超值的Mac——Mac mini
初心么么哒
你知道最超值的Mac是什么吗?自2005年以来,Macmini一直是Apple台式机产品线中的主要产品。最初推出是为了让对Mac好奇的Mac进入Apple生态系统的一种简单方式,现在新的AppleSiliconMacmini可能是任何寻找新Mac的人的最有吸引力的购买。什么是AppleSiliconMacmini?M1Macmini是Apple最小的台式电脑,同时也是最快的台式电脑之一。最新型号由
- 古诗十九首⑩
梁雪微
今日良宴会【原文】今日良宴会①,欢乐难具陈②。弹筝奋逸响③,新声妙入神④。令德唱高言⑤,识曲听其真⑥。齐心同所愿⑦,含意俱未申⑧。人生寄一世,奄忽若飙尘⑨。何不策高足⑩,先据要路津?无为守贫贱,轲常苦辛。【注释】①良宴会:犹言热闹的宴会。良,善也。②难具陈:犹言难以一一述说。具,备也。陈,列也。③筝:乐器。奋逸:不同凡俗的音响。④新声:指当时最流行的曲调,指西北邻族传来的胡乐。妙入神:称赞乐调旋律
- 爸妈:你可以成为别人家的爸妈吗
长也长不高的面包树
图片发自App爸爸妈妈,请你看看别人家的父母无论什么时候,家长总喜欢在我们耳边说,你看看别人家的孩子怎么样。是啊,别人家的孩子什么都优秀,那别人家的爸爸妈妈还优秀呢。先讲三个微博上面的故事吧。有一个妈妈陪着八岁的孩子完成了一份报纸,报纸全是妈妈和孩子亲手做的,写的是整个寒假的生活。网友们纷纷说,我也想有个这样的妈妈。还有一位妈妈晒出了自己给女儿包的书皮,每一本书上面都有多彩的图案,简直美翻了,精致
- 三者兼顾的一天
荣灿100
图片发自App图片发自App图片发自App图片发自App上午和宝贝做了一个寒假作息表,差点完美主义爆发,忍住没说,期待明天起6:45起床下午和冬青,达妈,陶苏一块讨论合作到7点,赶到荷花园大厦参加美乐家茶话会很接地气的分享,要好好珍惜每一天,正面管教传播和美乐家的推广并行,感恩相遇,过自己想要的生活,享受生活图片发自App图片发自App图片发自App图片发自App图片发自App图片发自App
- 济宁高新区“路长制”8月28日工作日志
JNSGAJGXQFJ
【工作日志】一、洸河路“路长制”工作每日战报【早高峰巡逻】凯赛中队与高新区特警早高峰巡逻【平峰治理】凯赛中队与高新区特警平峰巡逻【晚高峰巡逻】凯赛中队与高新区特警在商检岗集合晚高峰巡逻二、吴泰闸路“路长制”工作每日战报【早高峰巡逻】圣地岗和贵和岗巡逻劝导非机动车走机动车道等重点违法行为,在重点路段疏导交通。【平峰巡逻】吴泰闸中队治理乱停乱放【晚高峰巡逻】圣地岗和贵和岗巡逻劝导非机动车走机动车道等重
- 动画电影《心灵奇旅》教你怎么做人,皮克斯为全人类上了一课
韩漫小说
皮克斯出品,必属精品。不知从什么时候,这句话成了中国影迷和动画迷对皮克斯的认可和肯定。作为八十年代的人,虽然现在已经迈入中年,但是从小就对动画片十分痴迷。从《奥特曼》到《高达》,从《黑猫警长》到《海贼王》。动画伴我成长,给了我很多快乐。接触皮克斯的动画,是《玩具总动员》,看了真的令人感动。这不仅是儿童的欢乐片,也是给八零九零后奉献的精美大作。然而这一次的《心灵奇旅》,更是让我对皮克斯刮目相看。这次
- 2024年华为杯数学建模研赛C题思路代码+论文助攻
DS数模
2024华为杯数学建模华为2024华为杯2024研究生数学建模2024研赛
2024年华为杯研究生数学建模竞赛(以下简研赛)将于9月21日上午8时正式开始。下文包含:2024研赛思路解析、研赛参赛时间及规则信息说明、好用的数模技巧及如何备战数学建模竞赛C君将会第一时间发布选题建议、所有题目的思路解析、相关代码、参考文献、参考论文等多项资料,帮助大家取得好成绩。2024年研赛将于9月21日上午8时正式开始这里有些资料,大家可以看看:【2024最全国赛研赛数模资料包】C君珍贵
- 2018年12月23日 星期日 晴
刘一鸣妈妈
早晨舒舒服服睡个懒觉,睁开眼已经快八点了。简单洗漱之后,准备吃早饭。嫂子给煎的牛排,七成熟,孩子吃的津津有味。我只能吃十二分熟的,可以外焦,不要里嫩。早饭后到世纪金源给然然选照片,几番挣扎后忍痛割爱删掉近百张,最后只保留三十张做相册。下午然然继续拍一套影楼赠送的台历照片,商家看到我带着孩子,也赠送了一套作为体验。拍照的过程特别欢乐,孩子很享受穿着帅气的衣服摆出帅帅的动作。然然拍过一套照片后明显找到
- 目送
河北张海霞
往年这个时候,孩子们已经返校了,新学期已经开始了……今年这个超长的寒假,给了我们更多的陪伴孩子的机会。我深知:随着孩子年龄的增长,年级的升高,在孩子的求学生涯中,和孩子在一起的时间会越来越少了。即将上高中的儿子,意味着一个月回家一次;即将上大学的女儿意味着半年回来一次。我要好好珍惜与孩子们在一起的美好时光。记得三年前,儿子上初中,女儿上高中,都是寄宿制学校。初中半月放一次假,高中一个月放一次假。刚
- 留住那一天
临泽四中领读者初三10班代友婷
那天,阳光明媚,微风正好;那天,空气中洋溢着喜悦的气息;那天,笑容在我们的脸上定格。我想,留住那一天。为期两天的运动会,承载着我许多快乐的回忆。还记得,走方阵时,大家神情严肃,姿势端正,齐刷刷的走过主席台。每个人都用尽自己最大的力气喊出我们的梦想,喊出那16个字:“晨曦晨曦,旭日朝阳,初露锋芒,必然夺冠!”是的,我们是晨曦班,充满朝气的晨曦班,为梦想而努力奋斗的晨曦班!还记得,跑接力赛时,运动员们
- 2023-03-24
卯金刀_fafd
美丽的伊犁河谷流失大半的伤痛伊犁河谷是祖国新疆一块美丽湿润的土地,有赛江南之美誉,这里风景秀丽,美如诗画,是中国最西部的湿地,在干旱的中亚是非常难得的一片肥美良田;原本整个伊犁河谷都是中国的领土,由于晚清腐败,导致失去了大片伊犁河谷,最终只留下小部分的土地,这是祖国的痛,这么美丽的土地失去了是整个中华民族永不可忘的痛,这一切的原因都是由于中俄《伊犁条约》签订。19世纪60~70年代,中国西北地区发
- 感赏107(2019.3.7)能量放任让孩子行为更规范
张天艳
能量上的放任,逐渐让孩子的行为变得规范。我从点滴上举个小例子。女儿刚放寒假就剪了短头发,女孩子爱美的天性就完全展现了出来。女儿要剪短发,我支持了她,夸她这个头型很漂亮,她就很开心。而不是我一味的去阻挠。女儿自从剪了头发,隔一天就洗一次头发,浪费的时间相对很多。以往我会抱怨浪费时间啊,唠叨她快点啊,都是碎碎念。现在女儿洗头发我会说:“你爱清洁这个习惯很好,干干净净的,我女儿漂漂亮亮的,真是好!”由衷
- 那些年的选择
那个谁LYM
诺,不知不觉又即将从长投股票初级课毕业了,这段时间这个大家庭承包了我的欢乐。其实,与其说是毕业,不如说这才刚刚开学,在股市里刚刚开学。糟了,本来有千言万语来着,这一下子词穷了(果然是正经不过三秒)。经过这段时间在长投的学习,其实思想上的改变还蛮大的,其次是生活上的改变。应该说是思想上的改变带动了生活上的改变,对,没错。来到长投之前,喜欢就买买买,自从自己工作挣钱以后更像是脱缰的野马,管它实不实用,
- 七绝 油菜花
清风8351
看图作诗油菜花开遍地黄,文人墨客赛诗章。他言色彩太单调,我道纯洁蕊更香。仄仄平平仄仄平,平平仄仄仄平平。平平仄仄平平仄,仄仄平平仄仄平。----作品----油菜花开遍地黄【黄:十唐】押韵文人墨客赛诗章【章:十唐】押韵他言色彩太单调我道纯洁蕊更香【香:十唐】押韵---检测结果(中华新韵)---存在多音字:单调更,请根据词意判断平仄平仄符合要求,请留意多音字!
- 2023年1月3日 星期二 天气晴 亲子日记(1483)
love_happy
昨天下午,豪宝发烧了,头疼,咳嗽,这是怕什么来什么,一直没敢出门,就想着平安健康的度过测试,寒假里再玩也不迟。没想到病毒偏偏这个时候来凑热闹,想想今天就要测试了,豪宝难免有些情绪波动,学了半年,复习接近一个月,就为这个测试做准备呢!如果不能以最佳状态投入其中,又怎甘心自己所做的努力!很快到了测试时间,七十分钟的时间,从开始到结束,我全程陪同,一个人坐在旁边,没人打扰,静静地做着题目,直到老师提醒还
- 【寒假日记】3《打羽毛球》
袁杉杉
今天是大年初五是阳光明媚的一天,我和爸爸在外婆家打羽毛球。我先开始发球,我把球向上抛,拿羽毛球拍用力一拍,球向爸爸那边飞去,爸爸看见了用力一拍,球向我这边飞过来,我没怎么注意,球跟我擦肩而过了,落在了地上,妈妈告诉我们:“一号一分,二号零分,一号暂时领先。”我听了非常不服气,下定决心要赢爸爸。接着又开始了第二局的竞争,爸爸先发球,爸爸把球向上抛,拿羽毛球用力一拍,球向我这边飞来了,我见了用力一拍,
- 我得了奖状
小痘痘胡
上周五学校组织手工作品大奖赛。要求让我们做一幅作品,回到家,我考虑了半天才想到要做什么。我利用。以前没用完的魔珠做了一幅潜水艇和武装艇。周一我到学校去,同学们都把作品带到学校来了。有的做飞机,有的做杯子,还有的是做的是赛车。看到同学们的作品,感觉他们好厉害呀!肯定下了不少功夫。经过领导和老师的评比,我得了二等奖,我非常开心!争取图片发自App下次科技节我还要得奖状。
- 雨中哭泣的孤儿院
彭淞2024
雨中哭泣的孤儿院云啊,是这世上最欢乐与无忧的,它们从来不从羡慕过谁,在天上飘着,笑着,看上了猎豹的花纹,就变成猎豹,看上了小鸟的翅膀,就变成小鸟,看上了蝴蝶的美貌,就变成蝴蝶。开心时,在天上欢乐的笑,伤心时,在天上大声的哭,闲时,在天上俯瞰万物,累时在天上躺着游览世界。云躺在床上,她的脑海里老是回想着今天白昼时,她所看过的一本叫做《云》的书里的内容,她是多么希望她就是一朵云,哪怕是拥有它的十分之一
- 一个人的坚持,即使不被他人理解,内心也一定有着独特的热爱
弥小木
文|弥小木寒假除了给孩子们备了一些书,也给自己选了一些书。很久没看小说,最近入了莫言的《生死疲劳》,厚厚的一本,过年足够看了。看的时候,有种看《红楼梦》的感觉。虽然这本《生死疲劳》很厚,但是在开篇,就列了主要人物关系图,和人物表的介绍,这对于看小说的体验来说,友好极了。不用看了前面的人物,还要想下是怎样的关系,一张图,就对人物有比较清晰的了解。莫言,我国首位获得诺贝尔文学奖的作家。莫言称诺奖的评委
- 平昌冬奥,人生竞赛不要给对手和裁判任何机会
小猫_003e
如火如荼的平昌冬奥会拉下了帷幕,但是自从某年的伦敦奥运会之后,我们中国队自从好像就“最爱干犯规的事儿”。2月20日,短道速滑女子3000米接力赛,可以说是相当令人痛心了。比赛中,韩国队交接棒失误“扑街”,阻拦了加拿大队,带来的连锁反应也影响了中国队。中国队以微弱劣势落后韩国队,第二个冲线!韩国队这次失误犯规那么明显,应该唱费玉清的我送你离开千里之外。但···最终赛场上裁判宣布:韩国队冠军,中国队、
- FPGA随记——赛灵思OOC功能
一口一口吃成大V
FPGA随记fpga开发
在这里,我们简要介绍一下Vivado的OOC(Out-of-Context)综合的概念。对于顶层设计,Vivado使用自顶向下的全局(Global)综合方式,将顶层之下的所有逻辑模块都进行综合,但是设置为OOC方式的模块除外,它们独立于顶层设计而单独综合。通常,在整个设计周期中,顶层设计会被多次修改并综合。但有些子模块在创建完毕之后不会因为顶层设计的修改而被修改,如IP,它们被设置为OOC综合方式
- 寒假学生日记(八)
笑笑8
腾龙作品2019年1月26日星期六离过年还有九天,春节是什么日子?是辞旧迎新的日子,家家户户都要扫屋子,我们家当然也不例外。扫屋时,我和爸爸、妈妈、哥哥谁都没有闲,都在忙着打扫,我整理着我天天写作业的桌子,整理桌子上的书本,把他们放在该放的地方,再把收纳箱内到所有物品到出来,然后进行分类,整理齐的把他们摆在收纳箱内,桌上整理完后,整理桌下,把隔层里的东西都拿出来,整整齐齐的放在箱内,最后搬进杂物间
- 孩子主动做饭吃
覃美源G14M2
从寒假呆家里到现在,儿子很少出门,几乎每天24小时把自己关在自己房间里,什么家务也不做,不跟家人交流,不跟家人一起上桌吃饭,他跟我说话语气很凶,我跟他说话,他很不耐烦,我进他房屋间,他会马上把我赶出来,家里做饭菜他都觉得不好吃,总是想吃外卖,这两天他爸爸回老家祭祖,我和他两人在家,我每次下班回来就买他爱吃的粉和小吃回来,今天中午我正在买他最爱的三品王米粉的时候,他给我电话问,妈,家里净化器的水龙头
- 寒假开始了
南星南
明天就开始上寒假班的课程了,一天三个班,6个小时,想想都觉得可怕。从现在开始,要给自己做心理建设了!明天上课我可以!我可以!遇到熊孩子我不气!该做什么做什么,好好备课,讲好课!家长沟通做到位。转年序续班,我最棒!
- 【足坛简讯】9月2日足坛简讯及比赛预告
神州足球
【足坛简讯】9月2日足坛简讯及比赛预告9月2日足坛简讯与比赛预告比赛结果✍️意甲第3轮:十人米兰2-1罗马三连胜领跑莱奥凌空斩吉鲁点射托莫里染红✍️德甲第3轮:两连平!多特连丢两球2-2遭升班马海登海姆扳平布兰特凌空斩✍️沙特联:米特洛维奇戴帽本泽马破门新月连入三球4-3逆转吉达联合✍️热身赛:中国国奥1-0土库曼斯坦国奥,艾菲尔丁制胜球国内足坛✍️明日之星足球赛:上海队点球憾负曼城,大阪樱花蔚山
- 童年记忆里的春节
ca10ec509a45
噼里啪啦,啪啦噼里,随着新年的鞭炮声,我们一起踏入了鼠年。长大以后,你是否和我一样感受到年味渐渐变淡,过年也没有那么欢乐,或许不是年味变了,而是因为我们已经不再是快乐的小孩子了吧……你记忆中小时候过年是怎么样的?你还记得吗?我猜,一定有五彩绚烂的烟花,会收到很多亲戚给的红包、还有漂亮的新衣服以及很多一年里特别盼望的美味佳肴……鸡——拜神最热闹就是除夕之夜。一大早,厨房里传来锅碗瓢盆的声音,爸爸在煮
- Maven
Array_06
eclipsejdkmaven
Maven
Maven是基于项目对象模型(POM), 信息来管理项目的构建,报告和文档的软件项目管理工具。
Maven 除了以程序构建能力为特色之外,还提供高级项目管理工具。由于 Maven 的缺省构建规则有较高的可重用性,所以常常用两三行 Maven 构建脚本就可以构建简单的项目。由于 Maven 的面向项目的方法,许多 Apache Jakarta 项目发文时使用 Maven,而且公司
- ibatis的queyrForList和queryForMap区别
bijian1013
javaibatis
一.说明
iBatis的返回值参数类型也有种:resultMap与resultClass,这两种类型的选择可以用两句话说明之:
1.当结果集列名和类的属性名完全相对应的时候,则可直接用resultClass直接指定查询结果类
- LeetCode[位运算] - #191 计算汉明权重
Cwind
java位运算LeetCodeAlgorithm题解
原题链接:#191 Number of 1 Bits
要求:
写一个函数,以一个无符号整数为参数,返回其汉明权重。例如,‘11’的二进制表示为'00000000000000000000000000001011', 故函数应当返回3。
汉明权重:指一个字符串中非零字符的个数;对于二进制串,即其中‘1’的个数。
难度:简单
分析:
将十进制参数转换为二进制,然后计算其中1的个数即可。
“
- 浅谈java类与对象
15700786134
java
java是一门面向对象的编程语言,类与对象是其最基本的概念。所谓对象,就是一个个具体的物体,一个人,一台电脑,都是对象。而类,就是对象的一种抽象,是多个对象具有的共性的一种集合,其中包含了属性与方法,就是属于该类的对象所具有的共性。当一个类创建了对象,这个对象就拥有了该类全部的属性,方法。相比于结构化的编程思路,面向对象更适用于人的思维
- linux下双网卡同一个IP
被触发
linux
转自:
http://q2482696735.blog.163.com/blog/static/250606077201569029441/
由于需要一台机器有两个网卡,开始时设置在同一个网段的IP,发现数据总是从一个网卡发出,而另一个网卡上没有数据流动。网上找了下,发现相同的问题不少:
一、
关于双网卡设置同一网段IP然后连接交换机的时候出现的奇怪现象。当时没有怎么思考、以为是生成树
- 安卓按主页键隐藏程序之后无法再次打开
肆无忌惮_
安卓
遇到一个奇怪的问题,当SplashActivity跳转到MainActivity之后,按主页键,再去打开程序,程序没法再打开(闪一下),结束任务再开也是这样,只能卸载了再重装。而且每次在Log里都打印了这句话"进入主程序"。后来发现是必须跳转之后再finish掉SplashActivity
本来代码:
// 销毁这个Activity
fin
- 通过cookie保存并读取用户登录信息实例
知了ing
JavaScripthtml
通过cookie的getCookies()方法可获取所有cookie对象的集合;通过getName()方法可以获取指定的名称的cookie;通过getValue()方法获取到cookie对象的值。另外,将一个cookie对象发送到客户端,使用response对象的addCookie()方法。
下面通过cookie保存并读取用户登录信息的例子加深一下理解。
(1)创建index.jsp文件。在改
- JAVA 对象池
矮蛋蛋
javaObjectPool
原文地址:
http://www.blogjava.net/baoyaer/articles/218460.html
Jakarta对象池
☆为什么使用对象池
恰当地使用对象池化技术,可以有效地减少对象生成和初始化时的消耗,提高系统的运行效率。Jakarta Commons Pool组件提供了一整套用于实现对象池化
- ArrayList根据条件+for循环批量删除的方法
alleni123
java
场景如下:
ArrayList<Obj> list
Obj-> createTime, sid.
现在要根据obj的createTime来进行定期清理。(释放内存)
-------------------------
首先想到的方法就是
for(Obj o:list){
if(o.createTime-currentT>xxx){
- 阿里巴巴“耕地宝”大战各种宝
百合不是茶
平台战略
“耕地保”平台是阿里巴巴和安徽农民共同推出的一个 “首个互联网定制私人农场”,“耕地宝”由阿里巴巴投入一亿 ,主要是用来进行农业方面,将农民手中的散地集中起来 不仅加大农民集体在土地上面的话语权,还增加了土地的流通与 利用率,提高了土地的产量,有利于大规模的产业化的高科技农业的 发展,阿里在农业上的探索将会引起新一轮的产业调整,但是集体化之后农民的个体的话语权 将更少,国家应出台相应的法律法规保护
- Spring注入有继承关系的类(1)
bijian1013
javaspring
一个类一个类的注入
1.AClass类
package com.bijian.spring.test2;
public class AClass {
String a;
String b;
public String getA() {
return a;
}
public void setA(Strin
- 30岁转型期你能否成为成功人士
bijian1013
成功
很多人由于年轻时走了弯路,到了30岁一事无成,这样的例子大有人在。但同样也有一些人,整个职业生涯都发展得很优秀,到了30岁已经成为职场的精英阶层。由于做猎头的原因,我们接触很多30岁左右的经理人,发现他们在职业发展道路上往往有很多致命的问题。在30岁之前,他们的职业生涯表现很优秀,但从30岁到40岁这一段,很多人
- [Velocity三]基于Servlet+Velocity的web应用
bit1129
velocity
什么是VelocityViewServlet
使用org.apache.velocity.tools.view.VelocityViewServlet可以将Velocity集成到基于Servlet的web应用中,以Servlet+Velocity的方式实现web应用
Servlet + Velocity的一般步骤
1.自定义Servlet,实现VelocityViewServl
- 【Kafka十二】关于Kafka是一个Commit Log Service
bit1129
service
Kafka is a distributed, partitioned, replicated commit log service.这里的commit log如何理解?
A message is considered "committed" when all in sync replicas for that partition have applied i
- NGINX + LUA实现复杂的控制
ronin47
lua nginx 控制
安装lua_nginx_module 模块
lua_nginx_module 可以一步步的安装,也可以直接用淘宝的OpenResty
Centos和debian的安装就简单了。。
这里说下freebsd的安装:
fetch http://www.lua.org/ftp/lua-5.1.4.tar.gz
tar zxvf lua-5.1.4.tar.gz
cd lua-5.1.4
ma
- java-14.输入一个已经按升序排序过的数组和一个数字, 在数组中查找两个数,使得它们的和正好是输入的那个数字
bylijinnan
java
public class TwoElementEqualSum {
/**
* 第 14 题:
题目:输入一个已经按升序排序过的数组和一个数字,
在数组中查找两个数,使得它们的和正好是输入的那个数字。
要求时间复杂度是 O(n) 。如果有多对数字的和等于输入的数字,输出任意一对即可。
例如输入数组 1 、 2 、 4 、 7 、 11 、 15 和数字 15 。由于
- Netty源码学习-HttpChunkAggregator-HttpRequestEncoder-HttpResponseDecoder
bylijinnan
javanetty
今天看Netty如何实现一个Http Server
org.jboss.netty.example.http.file.HttpStaticFileServerPipelineFactory:
pipeline.addLast("decoder", new HttpRequestDecoder());
pipeline.addLast(&quo
- java敏感词过虑-基于多叉树原理
cngolon
违禁词过虑替换违禁词敏感词过虑多叉树
基于多叉树的敏感词、关键词过滤的工具包,用于java中的敏感词过滤
1、工具包自带敏感词词库,第一次调用时读入词库,故第一次调用时间可能较长,在类加载后普通pc机上html过滤5000字在80毫秒左右,纯文本35毫秒左右。
2、如需自定义词库,将jar包考入WEB-INF工程的lib目录,在WEB-INF/classes目录下建一个
utf-8的words.dict文本文件,
- 多线程知识
cuishikuan
多线程
T1,T2,T3三个线程工作顺序,按照T1,T2,T3依次进行
public class T1 implements Runnable{
@Override
 
- spring整合activemq
dalan_123
java spring jms
整合spring和activemq需要搞清楚如下的东东1、ConnectionFactory分: a、spring管理连接到activemq服务器的管理ConnectionFactory也即是所谓产生到jms服务器的链接 b、真正产生到JMS服务器链接的ConnectionFactory还得
- MySQL时间字段究竟使用INT还是DateTime?
dcj3sjt126com
mysql
环境:Windows XPPHP Version 5.2.9MySQL Server 5.1
第一步、创建一个表date_test(非定长、int时间)
CREATE TABLE `test`.`date_test` (`id` INT NOT NULL AUTO_INCREMENT ,`start_time` INT NOT NULL ,`some_content`
- Parcel: unable to marshal value
dcj3sjt126com
marshal
在两个activity直接传递List<xxInfo>时,出现Parcel: unable to marshal value异常。 在MainActivity页面(MainActivity页面向NextActivity页面传递一个List<xxInfo>): Intent intent = new Intent(this, Next
- linux进程的查看上(ps)
eksliang
linux pslinux ps -llinux ps aux
ps:将某个时间点的进程运行情况选取下来
转载请出自出处:http://eksliang.iteye.com/admin/blogs/2119469
http://eksliang.iteye.com
ps 这个命令的man page 不是很好查阅,因为很多不同的Unix都使用这儿ps来查阅进程的状态,为了要符合不同版本的需求,所以这个
- 为什么第三方应用能早于System的app启动
gqdy365
System
Android应用的启动顺序网上有一大堆资料可以查阅了,这里就不细述了,这里不阐述ROM启动还有bootloader,软件启动的大致流程应该是启动kernel -> 运行servicemanager 把一些native的服务用命令启动起来(包括wifi, power, rild, surfaceflinger, mediaserver等等)-> 启动Dalivk中的第一个进程Zygot
- App Framework发送JSONP请求(3)
hw1287789687
jsonp跨域请求发送jsonpajax请求越狱请求
App Framework 中如何发送JSONP请求呢?
使用jsonp,详情请参考:http://json-p.org/
如何发送Ajax请求呢?
(1)登录
/***
* 会员登录
* @param username
* @param password
*/
var user_login=function(username,password){
// aler
- 发福利,整理了一份关于“资源汇总”的汇总
justjavac
资源
觉得有用的话,可以去github关注:https://github.com/justjavac/awesome-awesomeness-zh_CN 通用
free-programming-books-zh_CN 免费的计算机编程类中文书籍
精彩博客集合 hacke2/hacke2.github.io#2
ResumeSample 程序员简历
- 用 Java 技术创建 RESTful Web 服务
macroli
java编程WebREST
转载:http://www.ibm.com/developerworks/cn/web/wa-jaxrs/
JAX-RS (JSR-311) 【 Java API for RESTful Web Services 】是一种 Java™ API,可使 Java Restful 服务的开发变得迅速而轻松。这个 API 提供了一种基于注释的模型来描述分布式资源。注释被用来提供资源的位
- CentOS6.5-x86_64位下oracle11g的安装详细步骤及注意事项
超声波
oraclelinux
前言:
这两天项目要上线了,由我负责往服务器部署整个项目,因此首先要往服务器安装oracle,服务器本身是CentOS6.5的64位系统,安装的数据库版本是11g,在整个的安装过程中碰到很多的坑,不过最后还是通过各种途径解决并成功装上了。转别写篇博客来记录完整的安装过程以及在整个过程中的注意事项。希望对以后那些刚刚接触的菜鸟们能起到一定的帮助作用。
安装过程中可能遇到的问题(注
- HttpClient 4.3 设置keeplive 和 timeout 的方法
supben
httpclient
ConnectionKeepAliveStrategy kaStrategy = new DefaultConnectionKeepAliveStrategy() {
@Override
public long getKeepAliveDuration(HttpResponse response, HttpContext context) {
long keepAlive
- Spring 4.2新特性-@Import注解的升级
wiselyman
spring 4
3.1 @Import
@Import注解在4.2之前只支持导入配置类
在4.2,@Import注解支持导入普通的java类,并将其声明成一个bean
3.2 示例
演示java类
package com.wisely.spring4_2.imp;
public class DemoService {
public void doSomethin