- 放下昨日执念,醒来不问过往
李超越kelly
树树秋色,所有有限的都成为无限的了。——周梦蝶因时事战乱,颠沛流离的一介青年从军谋生,辗转飘至台湾。半生飘零后,周公潜隐闹市,孤苦趺坐于武昌街二十余载,潜心售卖诗集和纯度极高的文学书籍。这位浮华尘世里的畸零人,在车水马龙俗世间,破茧成蝶,他坐断了几个春天?又坐熟了多少夏日?诗人的身世多舛:少年丧母、中年丧妻、老年丧子……在物质至上与文字式微的尘世,他试图以诗的悲悯,孤独地触碰生命里种种无法言说的悲
- 爱情该有的样子——赵盼儿&顾千帆
夏日如冰
梦华录之令人羡慕的双向奔赴和互相理解梦华录作为现在的流量ip,不得不说是真的没有让人失望,不管是演员的演技,还是剧中的服装道具都很惊艳。特别是还有神仙姐姐的梦幻联动,简直就是一大波回忆杀,仿佛让我们看到了当初的赵灵儿。不得不感叹我们老了,神仙姐姐已经是容颜依旧。剧中一开始男女主见面并没有给对方留下好多印象,一开始更是说出了赵盼儿是想野村妇的评价,不过现在看来可能是为了和自己活阎罗的称呼相匹配吧。而
- 给史多多的第851封信 滑楼梯台阶
七千22
你好,这里是七千每日文字输出的第931天你好,史多多现在马上晚上十点了,多多躺成一个大佬的姿势,睡的好舒服哟。外面现在雨后凉风习习的,躺在床上,吹着小风,舒服的让人只想“会面”周公,今天早上多多五点多就起床了,妈妈今天凌晨两点多睡的。早上五点多多多起来的时候,妈妈跟着一起起来了,小家伙一旦早上醒了就不肯再睡了。早上给多多做的蒸鸡蛋,小家伙竟然吃了个光光,连不怎么爱吃的蛋黄都吃光了。早上爸爸早早就去
- 第九十八章 怀忠殿(二)
赵群星
太岁羊天尊闻报,喜得差点在龙墩上掉了下来,那人见人慌的眼眉冉冉升上到了原来的位置。众臣惊喜。唯白赤宝院士吓得魂不附体,如一滩肉泥。忽然,太岁蛾眉倒竖,目射冷电,自圆其说:你个混账王八犊子白赤宝,朕才刚一见你就知道你装腔作势,拿拿捏捏,胡言乱语,诅咒良臣。你看看你个熊样,大秋头子还二大呵地戴个毡帽,穿个丧袍,和个二逼似的。朕向来主张科学精神,根本不相信什么解梦扯蛋。朕做个小梦,你竟然小题大做,妄自菲
- 诗歌:《看周公怎样为梦解释》
琳琅小神
人困了,就要入睡;入睡了,就要进入梦乡。梦乡里梦见一个个稀奇古怪的梦,总是让我莫名其妙地不懂;我知道自古以来最会解梦的就是周公,可我想对周公诉说梦的产生时正在睡梦中。周公,周公,大家都知道你最会预测人们生活中所做的许多梦;但是也还得请我从睡梦中醒来,把我梦中所发生的事记录下来并讲给你听,你的那些远见卓识才能让我慢慢听懂。
- 《牧羊少年的奇幻之旅》7.23
冰月清秋
今天读了一部分,真的是很稀奇的故事。牧羊少年选择流浪,仅仅是因为想环游世界。他爸爸真是一个开明的爸爸,没有逼他做他不爱做的事情。他在路上做了一个梦,解不出来,就请一个吉普赛人给她解梦。对于命运,她是不相信一切天生注定的,到时下班他来接我回家。
- 我来讲讲武王伐纣的前因后果
Yasin_do_myself
西周在中国历史上的地位举足轻重,贯穿中国整个封建王朝的宗法制由周公创造,儒家的礼乐制度,以德治国的统治思想都是在这个朝代始创。还有一些妇孺皆知的历史故事:文王拘而演周易,姜太公钓鱼,武王伐纣,烽火戏诸侯。下面就讲讲周的历史。据《史记.周本纪》记载“周后稷,名弃。其母有邰氏女,曰姜塬。姜塬为帝喾元妃。姜塬出野,见巨人迹,心欣然说,践之而身动如孕者。居期而生子,以为不祥,弃之隘巷,马牛过者皆辟不践;徙
- 六项精进打卡
Lucky_KZ
打卡2019年3月30日姓名:孔周公司:上海凤图【日精进打卡第6天】【知~学习】背诵《六项精进》共1遍背诵《大学》共1遍【经典名句分享】世上本没有路,走的人多了就有了一、修身:做饭,早睡早起二、齐家:三、建功:朋友跟我分享又做了善事,超开心的!{积善}:发愿从2019年3月24日起1日1件善事。今日1善【省~觉悟】只要是你觉得值得的事,那就全力以赴【感谢】感谢同事分享的零食【志愿】日行一善,做更好
- 2004和2006年:咸阳周陵镇文王和武王陵、姜子牙墓、周公和伯禽墓
申威隆I关中拍客
2004年7月13日下午,初中二年级的暑假时,在咸阳市北郊的五陵原上,拍摄完西汉帝王陵墓以后,爸爸骑着摩托车带我来到不远处的周陵镇。相传,这里分布着众多西周时期的王陵和贵族墓葬,所以此地被称为“周陵镇”——大约1995年夏季,爸爸骑着自行车,带我去西安咸阳国际机场玩。途中,经过周陵镇的时候,我们参观了这里的周文王和周武王陵。当时,虽然我只有五岁,但是知道《封神榜》的故事,所以周文王和周武王陵给我留
- 爱弥尔|信任你所知晓的,做自己的光!
爱弥儿的喜悦魔法星球
最近几天躺在沙发上八点多就困了,直接与周公一起玩飞了……其实很多年我都可以清晰记得自己的梦,曾经也萌发了一连串稀奇古怪的念头,发出梦境解读个案的邀请,做了几个梦境解读,案主们甚是好奇,从未听说梦也可以解读,更是期待与憧憬到梦里一游会发生什么天马行空好玩有趣……在梦境解读中揭开弯弯绕绕,错综复杂,像迷案般以为是死结,无解的一切,一针见血戳中案主以为无法穿越与迈过去的痛点,其实真的是头脑惯性的模式让人
- 秀才赶考
秦时明月wk
.图片发自App有位秀才第三次进京赶考,住在一个经常住的店里。考试前两天他做了三个梦,第一个梦是梦到自己在墙上种白菜,第二个梦是下雨天,他戴了斗笠还打伞,第三个梦是梦到跟心爱的表妹躺在一起,但是背靠着背。图片发自App图片发自App这三个梦似乎有些深意,秀才第二天就赶紧去找算命的解梦。算命的一听,连拍大腿说:"你还是回家吧。你想想,高墙上种菜不是白费劲吗?戴斗笠打雨伞不是多此一举吗?跟表妹躺在一张
- 《牧羊少年奇幻之旅》读后感
妈妈熊
我和爸爸的解读第三稿:0201新的abcd(演化算法):①试错。安达卢西亚的牧羊少年一直在做一个宝藏之梦,从老教堂出发,到塔里法解梦,遇见撒冷之王,到非洲寻宝在丹吉尔被骗光钱财。②应变。少年为水晶店老板打工赚钱,然后跟随商队穿越沙漠追寻金字塔,在绿洲遇见真爱,在沙漠看到预兆。③协同。少年得到炼金术士的指导,学会宇宙语言,走出沙漠,到达金字塔,之后返回老教堂,找到百宝箱。④得到。牧羊少年的奇幻之旅,
- 周公三合堂-三合智惠
周公三合堂
《晏子春秋·霸业因时而生》晏子:“识时务者为俊杰,通机变者为英豪”。这句至理名言,历来被视为有逃避变节的嫌疑,其实不然。小到个人的自我设计,大到国家的大政方针,随着内部条件和外部环境的变化,难免要作出调整、改变,甚至于不得不放弃。知难而进者固然可喜,审时度势、善于放弃更难能可贵!行大运时不妄喜,积小善成大善;走背运时不惶馁,抱元以待天时。三合智惠一成就天下有缘人!
- 分封制、宗法制下形成的西周官制——召公为保,周公为师
大安琪儿
周王室在推行分封制和宗法制的同时,也建立了一套比夏、商两代更为完善、对后世影响深远的统治机构。成书于战国的《周礼》系统地记述了西周的这种统治机构,它说周有六官之制,即“天官冢宰”“地官司徒”“春官宗伯”“夏官司马”“秋官司寇”“冬官司空”,可见周朝的官职整齐而严密。但是,《周礼》在编辑之时经过了儒家的改造,加进了大量的理想化和系统化成分,只能作为代表儒家思想的著作,所以关于西周一代政权机构的详情已
- aloho的床头诗 2001-2050
aloho
43.jpg2001.思乡是一种病/无可救药的病/只属于穷人/和回不去的人2002.一重山见一层水/一段风遇一方苇/千里云来未送君/万丈河出乃迎客2003.做个好梦青年/勤奋地做梦/把梦见的人都见一遍/把梦见的神都拜一遍/周公是唯一的父亲/而安眠药是最爱的敌人/一直睡到地老天荒/没有哪个世界比梦更加真实/没有哪个梦境比现实更加可怕2004.青春早已战死沙场/一趟又一趟旅程/铸刻成堆的伤痕文学/据说
- 我的诗词集《黯笙集》之惜红衣·旧将军记
MorrigansLove
柒月,梦入览一后汉将军,覌其谈笑间饮匈奴血,却措逢世乱凋零,力不能及,衷终罢也……惜红衣·旧将军记御马撕风,旌旗褪血,几番残照。漠止青戈,观沙暮衰草。无眠祈月,星寂夜、苍灯颜老。何绕、烛影欲说,不求霜天晓。知阖再恼,难倚周公,诛心语谁铐。一厢诉志却弄,笃情诏。计落魄牵靡处,意落寞千疮撂。卸甲长悲去,红盏字闻离悼。
- 莆田鞋十大良心靠谱微商推荐,这10个久负盛名的商家千万不要错过
优鞋之家
莆田鞋十大良心靠谱微商推荐,这10个久负盛名的商家千万不要错过我们的莆田鞋十大良心微商有经天纬地之才,“周公吐哺,天下归心”之德,“高山仰止景行行止”之品,优鞋之家把这公认口碑最好的莆田鞋十大良心微商推荐给大家,靠谱似水长流,诚信生生不息,价美唯独一份,品质一骑绝尘,看到莆田鞋十大良心微商的大名,一定会感概万千。微信图片_20230510202351.jpg莆田鞋十大高才大德的良心微商推荐1、悟空
- 2023-04-03
Eltonpeople
今日启发:Elton:《成为自己的解梦师》(Ⅶ)朱建军胎梦胎梦所反映的不一定是孕妇的内心,而可能和胎儿心理活动有关,尤其是在孕晚期。胎梦可以反映胎儿的心理活动母亲妈妈们和胎儿天然就有着紧密的联系,一方面,妈妈们要通过脐带和胎盘给胎儿源源不断地提供营养,保证胎儿正常生长和发育。另一方面,妈妈和胎儿之间存在着一种奇妙的心理作用,能互相感受对方的感受,产生共情。虽然还没有确凿的证据,但有学者认为这可能和
- 冬季流感病毒来袭,如何提高自身免疫力,对抗病毒?
养生进行中
最近两周气温直线下降,导致身边很多小伙伴都感冒了,鼻塞流鼻涕咳嗽嗓子疼等,各种症状都有,公司同事也是,三十多人至少有十五人有感冒症状,还有2人重感冒请假,连公司行政都在说,这两周公司用纸量大大增加了,键盘声中还夹杂着此起彼伏的咳嗽声。其实感冒初期是有一些早期症状的,比如鼻塞,打喷嚏,嗓子疼,畏寒等,如果在这些症状出现的时候,就及早采取措施,那很多的症状就会消退,不会发展成重感冒。以下是预防感冒的一
- 2019-07-01
淡雅百合85
每天觉不够睡,工作,家务,娃,忙得跟蜜蜂似的,却采不到蜜蜂的蜜。每晚睡前阅读已经是奢侈的了,因为看不了几页,周公就私会了我。昨日考试回家,给娃热了大厨做的炒饭,自己一口没吃,想补一觉,老板发了几条微信,想想还是不睡工作要紧,最后架不住周公的挤眉弄眼,还是私会了一场。醒来三点多趴在电脑前为客户做平面布局,一坐就是三小时。娃说很饿,我才发现天已黑,于是热了剩下一半炒饭给她。大厨的炒饭营养丰富,娃看我顾
- 《论语》先进篇第十一(二十四)
好的东西大家一起分享
季子然问:“仲由、冉求可谓大臣与?”子曰:“吾以子为异之问,曾由与求之间。所谓大臣者,以道事君,不可则止。今由与求也,可谓具臣矣。”曰:“然则从之者与?”子曰:“弑父与君,亦不从也。”【译文】季子然问:“仲由和冉求可以算是大臣吗?孔子说:“我以为你是问别人,原来是问由和求呀。所谓大臣是能够用周公之道的要求来事奉君主,如果这样不行,他宁肯辞职不干。现在由和求这两个人,只能算是充数的臣子罢了。”季子然
- 2021-10-20
遥遥一峰3628996
秋夜风文/彭城周书坤一宿西风号叫狂披衣无寐炖凄凉征鸿呜咽归期短不怨周公恨夜长已亥年八月二十四随笔草就新旧韵可通检
- 《三国风云录》(第九十三回)
司马吹风
第九十三回孔明三气周公瑾周瑜领了汉献帝授予的南郡太守职务,却是个虚职,更想报仇雪恨。写信给孙权,要鲁肃去找刘备讨还荆州。刘备和孔明在荆州调教军马,收积粮草。一天,手下报告鲁肃来访。刘备说:“无事不来,来无好事!鲁肃到来,一定索要荆州,改怎么应付?”孔明说:“如果鲁肃提起荆州,你放声大哭,我自然有办法!”刘备请鲁肃进了州衙,鲁肃也不讲客套,直奔主题:“今天我奉吴侯的命令,特意为荆州的事来,皇叔借了这
- 说话的魅力-No.41 我跟那金发美女回家了
春梅cm
【笑引子】幽默像写小说写小说,有伏笔、暗示、冲突,伏笔是早先埋好的情节,暗示是渐渐往那个情节上引带,冲突则是高潮,等到各种暗示够了,因缘际会地爆发开来。每个好的笑话,都能算是个精彩的“极短篇小说”,里面自然也有伏笔、暗示和冲突,只是为了能引发爆笑,常常不暗示,直接就进入冲突。举两个中国古典笑话为例。周公要我转话有个私塾先生在课堂上打瞌睡,被学生发现,问老师一直点头做什么?“我刚才去见了周公,我在聆
- 这一路跌跌撞撞|牧羊少年奇幻之旅
道边小憩
导读圣地亚哥因为想要云游四方,选择了牧羊人这个职业。因为连两次做了同一个梦——“一个小孩带他去埃及金字塔,并且告诉他,假如你来到这里,将会找到一处隐秘的宝藏”。这个梦久久难以忘怀,找老吉卜赛人解梦,老吉普塞人告诉他,你应该去埃及金字塔,在那里可以找到属于他的宝藏。圣地亚哥半信半疑的时候,遇到了推波助澜者——撒冷王,告诉他你得去找你的宝藏,那是你的天命,冲冲冲!然后给了圣地亚哥两块宝石,一块叫乌凌,
- 2022-10-30读李白《与韩荆州书》
Thinker
不论李白总说“安能摧眉折腰事权贵”,但这种求人引荐式的文章读来总难免有种求人的姿态,说点好话总是少不了的。本文都下来感觉一个明显的特点是大量用典,就跟现在用冷僻的成语一样,不了解的话还是不好懂的与韩荆州书李白白闻天下谈士相聚而言曰:“生不用封万户侯,但愿一识韩荆州。”何令人之景慕,一至于此耶!岂不以有周公之风,躬吐握之事,使海内豪俊,奔走而归之,一登龙门(1),则声誉十倍。所以龙盘凤逸之士,皆欲收
- 诗经读法笔记(二)
日尧囧月
21.大武乐章其实可以从两个方面来看,一方面是再现历史过程,一方面则是宣示克商和周王朝建立的历史意义。22.一言以蔽,“大武乐章”力图将周家的胜利,将西周王朝的建立,上推于天,是“天命”在人间的实现。23.《尚书大传》说周公辅佐周成王:“一年救乱,二年克殷,三年践奄,四年建侯卫,五年营成周,六年制礼乐,七年致政成王。”24.“大武乐章”的“止戈为武”的文治主张的意义,不仅限于当时安顿天下的需要,它
- 梦境到底是什么原理
梦解魏
根据我的亲身经验,我认为梦是可以解读的,从心理学角度,从科学角度理解梦的信息完全是可行的。做梦的原理,先了解睡眠周期。我们的睡眠,每天晚上大概有5-6个睡眠周期。每个睡眠周期时长90-120分钟,分为入睡,浅睡,深睡,快速眼动睡眠期四个阶段。一个睡眠周期结束接着进入下一个睡眠阶段。每个睡眠周期当中的深睡阶段,主要功能是休息身体,主要是全身的肌肉放松,这样缓解白天的身体紧张和疲劳。快速眼动睡眠阶段,
- 《子路篇》13.7 子曰:“鲁卫之政,兄弟也。”
晚桑榆
13.7子曰:“鲁卫之政,兄弟也。”【注释】▲鲁:鲁国,中国周朝分封的诸侯国,是周武王弟弟周公旦的封地。首封国君为周公旦之子伯禽。鲁国先后传二十五世,三十四位君主,从前1043年至前249年历时790多年。鲁顷公二十四年(公元前256年),鲁国为楚考烈王所灭。后七年(前249年)鲁顷公死于柯(今山东东阿),鲁国绝祀。▲卫:卫国,中国周朝分封的诸侯国,是周武王弟弟康叔的封地。从公元前1115年至公元
- 鸳鸳相报何时了
沙雕使我快乐
翌日,我身披华服,头戴华冠就此踏上了我的征途。时隔半个月,我一路舟车劳顿,跋山涉水的来到了陈国的都城上京。陈国派来迎接我的使者正是我那素未谋面的和亲对象───靖南王世子殿下封璟。两国使者各自客套几句,他便将我迎进府中,只不过与我一同进府的还有他青梅竹马的表妹。夜已深,我坐在喜榻上等的有些不耐烦,便坐着打瞌睡。待他进门的时候我早已经去会了周公,不过身为一个高手,就在他脚步声响起时我便醒来了。只是头脑
- 分享100个最新免费的高匿HTTP代理IP
mcj8089
代理IP代理服务器匿名代理免费代理IP最新代理IP
推荐两个代理IP网站:
1. 全网代理IP:http://proxy.goubanjia.com/
2. 敲代码免费IP:http://ip.qiaodm.com/
120.198.243.130:80,中国/广东省
58.251.78.71:8088,中国/广东省
183.207.228.22:83,中国/
- mysql高级特性之数据分区
annan211
java数据结构mongodb分区mysql
mysql高级特性
1 以存储引擎的角度分析,分区表和物理表没有区别。是按照一定的规则将数据分别存储的逻辑设计。器底层是由多个物理字表组成。
2 分区的原理
分区表由多个相关的底层表实现,这些底层表也是由句柄对象表示,所以我们可以直接访问各个分区。存储引擎管理分区的各个底层
表和管理普通表一样(所有底层表都必须使用相同的存储引擎),分区表的索引只是
- JS采用正则表达式简单获取URL地址栏参数
chiangfai
js地址栏参数获取
GetUrlParam:function GetUrlParam(param){
var reg = new RegExp("(^|&)"+ param +"=([^&]*)(&|$)");
var r = window.location.search.substr(1).match(reg);
if(r!=null
- 怎样将数据表拷贝到powerdesigner (本地数据库表)
Array_06
powerDesigner
==================================================
1、打开PowerDesigner12,在菜单中按照如下方式进行操作
file->Reverse Engineer->DataBase
点击后,弹出 New Physical Data Model 的对话框
2、在General选项卡中
Model name:模板名字,自
- logbackのhelloworld
飞翔的马甲
日志logback
一、概述
1.日志是啥?
当我是个逗比的时候我是这么理解的:log.debug()代替了system.out.print();
当我项目工作时,以为是一堆得.log文件。
这两天项目发布新版本,比较轻松,决定好好地研究下日志以及logback。
传送门1:日志的作用与方法:
http://www.infoq.com/cn/articles/why-and-how-log
上面的作
- 新浪微博爬虫模拟登陆
随意而生
新浪微博
转载自:http://hi.baidu.com/erliang20088/item/251db4b040b8ce58ba0e1235
近来由于毕设需要,重新修改了新浪微博爬虫废了不少劲,希望下边的总结能够帮助后来的同学们。
现行版的模拟登陆与以前相比,最大的改动在于cookie获取时候的模拟url的请求
- synchronized
香水浓
javathread
Java语言的关键字,可用来给对象和方法或者代码块加锁,当它锁定一个方法或者一个代码块的时候,同一时刻最多只有一个线程执行这段代码。当两个并发线程访问同一个对象object中的这个加锁同步代码块时,一个时间内只能有一个线程得到执行。另一个线程必须等待当前线程执行完这个代码块以后才能执行该代码块。然而,当一个线程访问object的一个加锁代码块时,另一个线程仍然
- maven 简单实用教程
AdyZhang
maven
1. Maven介绍 1.1. 简介 java编写的用于构建系统的自动化工具。目前版本是2.0.9,注意maven2和maven1有很大区别,阅读第三方文档时需要区分版本。 1.2. Maven资源 见官方网站;The 5 minute test,官方简易入门文档;Getting Started Tutorial,官方入门文档;Build Coo
- Android 通过 intent传值获得null
aijuans
android
我在通过intent 获得传递兑现过的时候报错,空指针,我是getMap方法进行传值,代码如下 1 2 3 4 5 6 7 8 9
public
void
getMap(View view){
Intent i =
- apache 做代理 报如下错误:The proxy server received an invalid response from an upstream
baalwolf
response
网站配置是apache+tomcat,tomcat没有报错,apache报错是:
The proxy server received an invalid response from an upstream server. The proxy server could not handle the request GET /. Reason: Error reading fr
- Tomcat6 内存和线程配置
BigBird2012
tomcat6
1、修改启动时内存参数、并指定JVM时区 (在windows server 2008 下时间少了8个小时)
在Tomcat上运行j2ee项目代码时,经常会出现内存溢出的情况,解决办法是在系统参数中增加系统参数:
window下, 在catalina.bat最前面
set JAVA_OPTS=-XX:PermSize=64M -XX:MaxPermSize=128m -Xms5
- Karam与TDD
bijian1013
KaramTDD
一.TDD
测试驱动开发(Test-Driven Development,TDD)是一种敏捷(AGILE)开发方法论,它把开发流程倒转了过来,在进行代码实现之前,首先保证编写测试用例,从而用测试来驱动开发(而不是把测试作为一项验证工具来使用)。
TDD的原则很简单:
a.只有当某个
- [Zookeeper学习笔记之七]Zookeeper源代码分析之Zookeeper.States
bit1129
zookeeper
public enum States {
CONNECTING, //Zookeeper服务器不可用,客户端处于尝试链接状态
ASSOCIATING, //???
CONNECTED, //链接建立,可以与Zookeeper服务器正常通信
CONNECTEDREADONLY, //处于只读状态的链接状态,只读模式可以在
- 【Scala十四】Scala核心八:闭包
bit1129
scala
Free variable A free variable of an expression is a variable that’s used inside the expression but not defined inside the expression. For instance, in the function literal expression (x: Int) => (x
- android发送json并解析返回json
ronin47
android
package com.http.test;
import org.apache.http.HttpResponse;
import org.apache.http.HttpStatus;
import org.apache.http.client.HttpClient;
import org.apache.http.client.methods.HttpGet;
import
- 一份IT实习生的总结
brotherlamp
PHPphp资料php教程php培训php视频
今天突然发现在不知不觉中自己已经实习了 3 个月了,现在可能不算是真正意义上的实习吧,因为现在自己才大三,在这边撸代码的同时还要考虑到学校的功课跟期末考试。让我震惊的是,我完全想不到在这 3 个月里我到底学到了什么,这是一件多么悲催的事情啊。同时我对我应该 get 到什么新技能也很迷茫。所以今晚还是总结下把,让自己在接下来的实习生活有更加明确的方向。最后感谢工作室给我们几个人这个机会让我们提前出来
- 据说是2012年10月人人网校招的一道笔试题-给出一个重物重量为X,另外提供的小砝码重量分别为1,3,9。。。3^N。 将重物放到天平左侧,问在两边如何添加砝码
bylijinnan
java
public class ScalesBalance {
/**
* 题目:
* 给出一个重物重量为X,另外提供的小砝码重量分别为1,3,9。。。3^N。 (假设N无限大,但一种重量的砝码只有一个)
* 将重物放到天平左侧,问在两边如何添加砝码使两边平衡
*
* 分析:
* 三进制
* 我们约定括号表示里面的数是三进制,例如 47=(1202
- dom4j最常用最简单的方法
chiangfai
dom4j
要使用dom4j读写XML文档,需要先下载dom4j包,dom4j官方网站在 http://www.dom4j.org/目前最新dom4j包下载地址:http://nchc.dl.sourceforge.net/sourceforge/dom4j/dom4j-1.6.1.zip
解开后有两个包,仅操作XML文档的话把dom4j-1.6.1.jar加入工程就可以了,如果需要使用XPath的话还需要
- 简单HBase笔记
chenchao051
hbase
一、Client-side write buffer 客户端缓存请求 描述:可以缓存客户端的请求,以此来减少RPC的次数,但是缓存只是被存在一个ArrayList中,所以多线程访问时不安全的。 可以使用getWriteBuffer()方法来取得客户端缓存中的数据。 默认关闭。 二、Scan的Caching 描述: next( )方法请求一行就要使用一次RPC,即使
- mysqldump导出时出现when doing LOCK TABLES
daizj
mysqlmysqdump导数据
执行 mysqldump -uxxx -pxxx -hxxx -Pxxxx database tablename > tablename.sql
导出表时,会报
mysqldump: Got error: 1044: Access denied for user 'xxx'@'xxx' to database 'xxx' when doing LOCK TABLES
解决
- CSS渲染原理
dcj3sjt126com
Web
从事Web前端开发的人都与CSS打交道很多,有的人也许不知道css是怎么去工作的,写出来的css浏览器是怎么样去解析的呢?当这个成为我们提高css水平的一个瓶颈时,是否应该多了解一下呢?
一、浏览器的发展与CSS
- 《阿甘正传》台词
dcj3sjt126com
Part Ⅰ:
《阿甘正传》Forrest Gump经典中英文对白
Forrest: Hello! My names Forrest. Forrest Gump. You wanna Chocolate? I could eat about a million and a half othese. My momma always said life was like a box ochocol
- Java处理JSON
dyy_gusi
json
Json在数据传输中很好用,原因是JSON 比 XML 更小、更快,更易解析。
在Java程序中,如何使用处理JSON,现在有很多工具可以处理,比较流行常用的是google的gson和alibaba的fastjson,具体使用如下:
1、读取json然后处理
class ReadJSON
{
public static void main(String[] args)
- win7下nginx和php的配置
geeksun
nginx
1. 安装包准备
nginx : 从nginx.org下载nginx-1.8.0.zip
php: 从php.net下载php-5.6.10-Win32-VC11-x64.zip, php是免安装文件。
RunHiddenConsole: 用于隐藏命令行窗口
2. 配置
# java用8080端口做应用服务器,nginx反向代理到这个端口即可
p
- 基于2.8版本redis配置文件中文解释
hongtoushizi
redis
转载自: http://wangwei007.blog.51cto.com/68019/1548167
在Redis中直接启动redis-server服务时, 采用的是默认的配置文件。采用redis-server xxx.conf 这样的方式可以按照指定的配置文件来运行Redis服务。下面是Redis2.8.9的配置文
- 第五章 常用Lua开发库3-模板渲染
jinnianshilongnian
nginxlua
动态web网页开发是Web开发中一个常见的场景,比如像京东商品详情页,其页面逻辑是非常复杂的,需要使用模板技术来实现。而Lua中也有许多模板引擎,如目前我在使用的lua-resty-template,可以渲染很复杂的页面,借助LuaJIT其性能也是可以接受的。
如果学习过JavaEE中的servlet和JSP的话,应该知道JSP模板最终会被翻译成Servlet来执行;而lua-r
- JZSearch大数据搜索引擎
颠覆者
JavaScript
系统简介:
大数据的特点有四个层面:第一,数据体量巨大。从TB级别,跃升到PB级别;第二,数据类型繁多。网络日志、视频、图片、地理位置信息等等。第三,价值密度低。以视频为例,连续不间断监控过程中,可能有用的数据仅仅有一两秒。第四,处理速度快。最后这一点也是和传统的数据挖掘技术有着本质的不同。业界将其归纳为4个“V”——Volume,Variety,Value,Velocity。大数据搜索引
- 10招让你成为杰出的Java程序员
pda158
java编程框架
如果你是一个热衷于技术的
Java 程序员, 那么下面的 10 个要点可以让你在众多 Java 开发人员中脱颖而出。
1. 拥有扎实的基础和深刻理解 OO 原则 对于 Java 程序员,深刻理解 Object Oriented Programming(面向对象编程)这一概念是必须的。没有 OOPS 的坚实基础,就领会不了像 Java 这些面向对象编程语言
- tomcat之oracle连接池配置
小网客
oracle
tomcat版本7.0
配置oracle连接池方式:
修改tomcat的server.xml配置文件:
<GlobalNamingResources>
<Resource name="utermdatasource" auth="Container"
type="javax.sql.DataSou
- Oracle 分页算法汇总
vipbooks
oraclesql算法.net
这是我找到的一些关于Oracle分页的算法,大家那里还有没有其他好的算法没?我们大家一起分享一下!
-- Oracle 分页算法一
select * from (
select page.*,rownum rn from (select * from help) page
-- 20 = (currentPag