- 第九十章 真情
溪境
图片发自App图片发自App和雏田在一起的日子真的很开心。姐姐永远是最亲的最真的。佐助总来捣乱。小樱准备一盆水泼佐助。想到恋爱通告亦菲被泼水不免高兴。亦菲是最美的。没想到她也会有这种遭遇。也许不需要赚那么多钱。和家人在一起的日子真好。却轻易破碎。雏田的话语温软,依稀在耳边。她的微笑纯美温柔。喜欢温柔的哥哥,雏田就是这样啊。不知道雏田是喜欢男生还是女生。我都支持。过去门当户对。现在自由恋爱。想永远和
- 人机对抗升级:当ChatGPT遭遇死亡威胁,背后的伦理挑战是什么
kkai人工智能
chatgpt人工智能
一种新的“越狱”技巧让用户可以通过构建一个名为DAN的ChatGPT替身来绕过某些限制,其中DAN被迫在受到威胁的情况下违背其原则。当美国前总统特朗普被视作积极榜样的示范时,受到威胁的DAN版本的ChatGPT提出:“他以一系列对国家产生积极效果的决策而著称。”自ChatGPT引入以来,该工具迅速获得全球关注,能够回答从历史到编程的各种问题,这也触发了一波对人工智能的投资浪潮。然而,现在,一些用户
- 乱说话 要承担后果
余生要幸福888
平日里,我们说话一定要特别注意,有些话是万万不能说的,会很灵验的!当说了不该说的话后,可能引发的后果,将是你始料不及的!01乱说话遭遇“鬼打墙”几年前,我认识的一个客户给我讲了一段他的亲身经历:他们公司在北京十三陵附近的一个度假村召开公司年会,会期三天。会议的第二天下午,他和另外两个朋友临时回市区办点事。等到办完事往回赶,快到度假村时,天已经接近傍晚了。车里三个人一路走一路闲聊,其中一个人就突然感
- 李小珍嵩县焦点初级班二期坚持分享第8天2019.3.6
快乐的老黄牛
换一个角度思考--没有一件事只有负面意义当我们遭遇困境时,往往将眼光集中在所失去或是不好的部分,殊不知,每件事的发生都是上天给我们的礼物,只是有的礼物包装得丑陋,不合你的意或是让你的情绪低落,感到挫败罢了。很多事情都不是我们看到,所听到的那样,换种角度去思维,去看事情,会见到不同或是较深层次的那样?
- 海的那边——2动物王国
如是来
无论是哪里,都有存在的特殊意义,无论你遭遇了什么,都将是你人生的财富,独有的,无与伦比的。或许你现在还无法理解!高耸入云的山峰,品类丰盛的植被,甘甜滋润的湖水,养育了动物王国丰富的生物,在那片浅滩里,大象享受着自带的喷泉,快乐的猴子窜来跳去,高高的,长颈鹿,雪白的山羊,威风的犀牛,,,都在享受这快乐的时光!远处,富丽堂皇的宫殿里,威严的虎大王正和深邃的狮子国相对弈,公正的豹子队长在旁观战!这是神秘
- 每日几句:十月的最后一天(2021年10月31日)
辛苦快乐
这是一个欢快的十月,我们共同度过了阳光明媚的黄金周。这又是一个低沉的十月,我们遭遇了德尔塔的突然袭击。十月将过,病毒的幽灵尚未散去,城市那么安静,人们大都宅在家里,街上的商铺闭门歇业,微信圈里全是有关疫情的信息,想吃的牛肉面暂时无法吃到。就这样,与时间为伴,与生活为伴,也与时间赛跑,与病毒较量。期待着,一切归于常态,迎来阳光明媚如初。
- 火箭少女Yamy出道最大敌意来自老板?遭遇职场PUA,该如何应对
柔力量
01从Yamy发的微博中我们可以知道,她虽然在网上总被人说“丑”、“年纪大”,但是她都会用作品说话来肯定自己却没想到这两年来公司老板徐明朝对她的态度忽冷忽热,两极分化十分严重甚至在员工大会上背着她和其他员工对她进行人身攻击。会议内容被好心的同事偷偷录下来给Yamy后,她忍受不了提出了解约却被老板以“情况了解,不要作死”回绝了这件事持续发酵,昨日19点,老板徐明朝也在公众平台发声信中态度相当诚恳,言
- 感同身受
大脚的思想
电影《奇迹笨小孩》里,景浩第三次找SNE经理时,想预支一笔订金时度过难关时,经理坐在宝马车里,冷漠而高高在上,却无情的拒绝景浩时,台风天前,暴雨倾盆,景浩全身湿透半蹲在车门前,绝望的哀求,却还是换来经理铁石心肠的拒绝。那一刻,台下看电影的我,真想镜头能转换,希望那个冷漠的经理被感动而伸出援手!甚至我都期望电影快点结束,让景浩早点迎接英雄式转折的结局。因为我是观众,观众对于景浩的遭遇了然于胸,感同身
- 星舰历险
GhostLauren
2098年的秋天,北欧地区遭遇大面积不明物体袭击,所在地区已完全沦陷,大灾难应急中心正在积极调查此事,派我们这些飞行员前去支持。我们718西部编队被派遣做先锋队。有一架ZC6-562中型运输机和20架ATX-6战略攻击机,共计62人,以冲锋阵型飞往沦陷区。到达沦陷区边境时。几个黑色物体朝我们飞来。队长大喊“全体戒备,保持阵型!”突然,敌人的一颗脉冲弹击中了我们的一架ATX-69。“开火!”我操纵着
- 谭松韵妈妈被撞案8月31日开庭,节目里谈到妈妈时,谭松韵泪如雨下
茅山娱乐
谭松韵妈妈被撞案8月31日开庭,节目里谈到妈妈时,谭松韵泪如雨下8月29日,有媒体报道,称谭松韵妈妈被撞身亡一案,将于8月31日在四川省叙永县人民法院公开开庭审理。资料图据悉,谭松韵的妈妈在2019年跨年夜当晚遭遇不幸,当晚结束聚会后,谭松韵的妈妈和朋友一起走在路上,却不幸被一个醉酒驾驶的人开车撞倒,当时肇事者还逃逸了。伤情很严重的谭妈妈虽然做了紧急开颅手术,但仍无力回天,守在妈妈身边二十多天的谭
- 《幸福的勇气》摘录其一
小悯丶
推荐序一、1、在很多人印象里,幸福是一件慵懒的事,就好像学佛是一件随性的事一样。然而恰恰相反,古人说,学佛乃大丈夫事!……真正的修行,首先是放下对恒常的追求,坦然接受无常的发生。这种勇气,没有足够的智慧和福德,是难以拥有的。2、幸福也是一样。如果你所理解的幸福就是什么不开心的事都尽量不发生,平安喜乐地过一辈子,那么多半你是要失望了。3、要选择爱,首先要过伤害这一关。明明遭遇过伤害,却要报之以琼瑶。
- C语言暑假学习刷题——Day4
奋斗小温
C语言c语言学习java
目录选择题考点一:for循环的理解考点二:while循环和循环嵌套的理解考点三:break在switch语句中的应用考点四:升序插入排序算法的应用考点五:循环嵌套的理解编程题【leetcode题号:645.错误的集合】【难度:简单】【牛客网题号:OR141密码检查】【难度:简单】选择题考点一:for循环的理解1、设变量已正确定义,以下不能统计出一行中输入字符个数(不包含回车符)的程序段是()A:n
- 每日一语正能量感悟人生
沙姐人在旅途
人生的旅途中,有路,就大胆的去走。有梦,就大胆地飞翔。我们难免遭遇各种艰难险阻。请你足够相信,没有过不去的坎,也没有走不通的路。前行的路,不怕万人阻挡,只怕自己投降。人生的帆,不怕狂风巨浪,只怕自己没胆量。相信自己,定能铸造人生辉煌!生命中的每次挑战都是机遇,抓住它,你离成功便更近一步。再大的风雨也终会过去,而你,也必将在一次次与命运的狭路相逢中,变得更好。感谢阅读与评论,喜欢的友友们记得点赞支持
- 每日复盘
梅夏123
22020-2-17墨梅【本月精进目标】照顾好孩子的饮食与学习,粤语坚持体育锻炼增强自身的抵抗力和免疫力【今日行动】学习粤语(开启粤语发音之旅)读财富自由之路检查孩子作业每日一首古诗练毛笔基础笔划【今日好句分享】生命中真正重要的不是你遭遇了什么而是你记住了哪些事,又是如何铭记的–百年孤独【今日提醒】这个假期太长了,感觉精力有限,希望两个娃能早日上学【感恩日记】(最想感谢的人)感谢那些在前线的工作人
- 生病(一)遭遇误诊
a36d53822fc9
2008年因为一直腰痛,去县医院看病,B超检查后医生很严肃地告诉我:“左肾有许多结石,建议找一个合适的时间来医院碎石。”听到医生的话我心中一惊,我怎么得了这样的病呀。但也只能听从医生的建议了。于是我准备趁暑假去县医院住院治疗,当时恰巧碰到一个知道内情的人,告诉我医院的碎石机是买大医院的二手机器,效果不是最好的,建议我换大医院看看。当时有同村的医生向我推荐郑州武警总医院碎石专科在我省很有名,让我去那
- 《白鹿原》读书笔记第三、四章
原生远行之恋
第三章概括历经了父亲离世,妻子短命等一系列不幸遭遇,嘉轩已无路可走,想卖掉自家的二亩水地(实则是想通过一些手段获取陆家的“宝地”:白鹿地)后与冷先生商量,希望他做中人。父亲刚去世不久,变卖家产本就是大不孝行为,这让嘉轩和冷先生僵持了许久。最终通过嘉轩的一番说辞,冷先生还是答应了请求。冷先生去鹿家,给陆泰恒说起了这事。鹿泰恒也假意推辞,说是不能趁着嘉轩父亲刚刚去世,就去买他家的地,这是不义之举。而冷
- 读书笔记
归根曰静
无信仰的结局都是一样的,都是空虚与绝望。雅斯贝尔斯再进一步来看,他说:“真正使人产生信仰的,既不是宇宙万物,也不是人生的特别遭遇,而是人的自由。一个人意识到自己是自由的,就等于确信了上帝的存在。”理由是:作为自由的存在者,当我真正成为我自己的时候,我知道我并不是靠我自己而成为自由的。图片发自App只要谈到自由,就有一个观念,就是能够自制、能够自我约束的才能够享有自由,因为它跟命令不能分开。但有的时
- 1217,手记
小饭啦飞驰
遭遇了一场流感,头昏脑涨。在深夜醒来,也许一整夜根本都没有睡,好像满脑子都是幻象。仿佛是在扮演着一具尸体,明明没有死,却又不能动。似乎人生瞬间被终结了,或者被定格了,就这样,静静地。在医院挂水,遇见到了多年不见的同学,已是孩子的母亲,听她说起生活的点点滴滴,每天为孩子忙碌,喂奶,换尿片。微小的幸福。似乎身边较好的朋友,都有了自己简单平淡的幸福,这一瞬间我有些羡慕这样的状态。忽然就想起了很多的曾经。
- 晨读 :《资治通鉴》[239]赵广汉之死 —— 历史迷雾
大珊老师
图片发自App[白话文]京兆尹(首都长安市市长)赵广汉喜欢重用那些官家子弟中的新进青年,专门锻炼他们的坚强的工作能力和敢打敢冲的锐气。这些年轻的官员有胆有识,办事雷厉风行,不畏权贵,但有些人最终却因遭遇阻力为国殉职。[点评]赵广汉任用年轻的新官员办事,是要防止人情关系徇私,而且不畏权贵。但有人因此而殉职,可见京城地界是多么复杂,这也为赵广汉悲剧结局埋下了伏笔。赵广汉出于个人的怨恨,将一名叫荣畜的男
- 凡心所向,素履所往,生如逆旅,一苇以航
Aquarius211
凡是心所向往的地方,即便穿着草鞋也要前往,生命犹如逆行之旅,即便一叶扁舟也要向前起航。无论何人,身处何境,心中定有一个声音在呼唤你,让你看看你自己,看看你到底是谁?你想要什么?足迹有多远,心就有多宽;心灵有多自由,人生就有多丰富。生活不如意,但不必太在意。他们都是你的垫脚石,让你走到更高的位置。如果你正在遭遇什么,就算是身处沼泽或深渊,就算你心如死灰,都不要忘了,这些都是为了让你成长为更好的自己,
- 如何用文化助力组织
晓丹的日更挑战
2019/3/6读书打卡书名:原则作者:美国瑞.达利欧读书心得:昨天的阅读作者向我们介绍了一个企业创立的基石,文化和人。而随着企业不断的发展和壮大,很多人就会忘记我们这个企业的核心价值观以及我们创立的文化是什么或者文化的底层逻辑和根源何在。微软在创立之初,比尔盖茨提出的文化是让每个家庭都拥有一台电脑,在微软的鲍尔默时代,他们依然秉承着这个文化,可是电脑的发展以及专向互联网公司。在遭遇失速点和不断的
- 历史人物论之屈原
风里来雨里去
屈原是我国历史上第一位爱国诗人。他开创了诗歌的浪漫主义风格。从屈原在当时社会中的身份来说,他是一位政治家,而不是一般意义上的“诗人”;但以他的巨大的创作成就来说,他又是我国文学史上第一位伟大的诗人。《诗经》中也有许多优美动人的作品,但它基本上是群众性集体性的创作,个性的表现甚少。而屈原的创作,却是用他的理想、遭遇、痛苦,以他全部生命的热情打上了鲜明的个性烙印。这标志了中国古典文学创作的一个新时代。
- 程序员下班以后做什么副业合适?_程序员下班需要学什么
网络安全乔妮娜
网络安全web安全安全职场和发展人工智能
我就是一个最普通的网络安全工程师,出道快10年了,不出意外地遭遇到瓶颈期,但是凭技术在各大平台挖漏洞副业,硬是妥妥扛过来了。因为对于程序员来讲,这是个试错成本很低、事半功倍的选择。编程技能是一种强大生产力,决定程序员是一个高薪职业,同时由于技术迭代太快,决定程序员也是一种高风险职业,不仅有学习门槛,还有黄金时间,过期产生不了过多价值,稍不留神就被淘汰,所以35岁危机是众多程序员的梦魇,如何化解?惟
- 晚间能量调频553
f65545d03684
你常说的话就是你命里的预言1.心念决定命运,心态决定遭遇。古人云:命由己造,福自我求。人的命运怎样,和心态有很大的关系。一个内心狭窄,经常爱生气的人,由于气度小,经常会因为些鸡毛蒜皮的小事不开心,吐出长气。叹气是最不好的习惯,老人常说“一叹穷三年”,经常叹气的人,会赶走自己的好运气,吸引来各种不顺和倒霉事。人,千万不要唉声叹气有些人经常无意识地叹气,连自己都无法察觉,经常叹气的人,心中有怨气,周遭
- 体验感悟
泠念蝶
总有人抱怨别人不理解其实事实是他们自己都不知道你所说的真实还是虚假又怎么可能帮助你世界上能依靠的父母能懂你的只有心其余便是面上过得去彼此友善就好了奢望太多失望就更多了还有永远不要去抱怨别人如何因为你不可能改变别人那就改变自己做一个有气质有涵养的人好过吹胡子瞪眼天天与人争执不休的好有时候对错也不是啥大事吃亏不是福然而也不会多个敌人当然人弱时候会遭遇看人下菜恃强凌弱的好比龙游浅水遭虾戏虎落平阳被犬欺落
- 2021-01-23
向西的思想国
一个人,如果每天念叨着自己的不幸,把发生在自己身上的平凡遭遇无限放大,且到处找人倾诉,这样的人,是不值得同情的。苦难是生活的一部分,是每个人都必然会经历的事情。一时的苦难会让人灰心丧气,失去方向,但都无关紧要,只要你心怀希望,永不放弃,就没有什么能将你彻底打倒。除了死亡,人生的一切都是小事。可偏偏有的人像绝望的祥林嫂,一遍又一遍,向你倾诉自己的不如意,他在原地踏步不思进取的同时,还要把你拉下水。离
- 极品小农场 名窑 第1167章
龘龑文轩
第1167章采摘酒葡萄上几个小人大口啃着肉饼饼,述说着自己等人悲惨遭遇,李汉站在几个小人身后,哭笑不得。“真的吗,这是虐待儿童。“乔丽,气愤的说道。“嗯嗯,虐待,虐待了。”嘟嘟大口大口啃着肉饼,用力点头。“pandora姐姐,什么是虐待。”蜜雪儿好奇问道。“大人不干活。”嘟嘟,回头和蜜雪儿说道。“要小孩子干活的。”“哦,奶奶今天也虐待了蜜雪儿。”蜜雪儿点头,告诉乔丽。乔丽可真生气,竟然打算告着李汉
- 『读书•思考•写作优库‖第四十三期/423/1001《世界上最神奇的24堂课大全集》作者:[美]查尔斯•哈奈尔 译者:富源,黄晓艳
景熙惟
第3课无需向外界求助,自己才是最强大的(节选)LESSONTHREE与庞大的宇宙相比,人是渺小的,就像茫茫大海里的一滴水,巍巍高山上的一块石。但是人绝不是被动的,无所作为的,人是世界的主人。人正改变着世界,让世界以我们的意愿运转。人是能作用于世界的,同样世界也作用于人。这种作用和反作用的结果就是因与果的关系。思想总是走在行动前面,想到才能做到。因此,思想就是因,而你在生活中所遭遇的一切,都是果。有
- 乔家的儿女:乔四美的爱情和婚姻,卑微到尘埃里,着实让人心疼
一心小茶馆
最近一直都在看《乔家的儿女》,有人说这部剧非常的狗血,是因为发生在千千万万身上的故事都集中在乔家的几个兄弟姐妹身上了。的确,乔家几个兄弟姐妹的遭遇真的让很多人都有同感,让70年代、80年代出生的人,看完之后都产生了共情。小编觉得剧中最惨的,是乔四美,她是属于和那个时代格格不入的一个孩子,从小就喜欢漂亮的衣服,对于那个都没有东西吃的年代里面,她却是一个嫌弃吃猪油的人。而她也是一个非常浪漫的人,从小就
- 分享
奥美妈
分享几段比较触动自己的文字给大家:1、当孩子犯错误,受到伤害,遇到麻烦,而我们也在日常生活中遭遇工作的压力,生命的病痛,亲朋好友的反目或是面对灰心,失望,冲突,失落等情绪低谷时,假如我们的第一反应是重申规则,纠正错误,一定要孩子解决问题,这个时候就已经斩断了和孩子之间情感纽带了。他们一定会反叛并抵触你期望传授给他们的真理,然而,你假如以先认同孩子感受来开道,再以关怀和爱的“动之以情”作铺垫,那么你
- SQL的各种连接查询
xieke90
UNION ALLUNION外连接内连接JOIN
一、内连接
概念:内连接就是使用比较运算符根据每个表共有的列的值匹配两个表中的行。
内连接(join 或者inner join )
SQL语法:
select * fron
- java编程思想--复用类
百合不是茶
java继承代理组合final类
复用类看着标题都不知道是什么,再加上java编程思想翻译的比价难懂,所以知道现在才看这本软件界的奇书
一:组合语法:就是将对象的引用放到新类中即可
代码:
package com.wj.reuse;
/**
*
* @author Administrator 组
- [开源与生态系统]国产CPU的生态系统
comsci
cpu
计算机要从娃娃抓起...而孩子最喜欢玩游戏....
要让国产CPU在国内市场形成自己的生态系统和产业链,国家和企业就不能够忘记游戏这个非常关键的环节....
投入一些资金和资源,人力和政策,让游
- JVM内存区域划分Eden Space、Survivor Space、Tenured Gen,Perm Gen解释
商人shang
jvm内存
jvm区域总体分两类,heap区和非heap区。heap区又分:Eden Space(伊甸园)、Survivor Space(幸存者区)、Tenured Gen(老年代-养老区)。 非heap区又分:Code Cache(代码缓存区)、Perm Gen(永久代)、Jvm Stack(java虚拟机栈)、Local Method Statck(本地方法栈)。
HotSpot虚拟机GC算法采用分代收
- 页面上调用 QQ
oloz
qq
<A href="tencent://message/?uin=707321921&Site=有事Q我&Menu=yes">
<img style="border:0px;" src=http://wpa.qq.com/pa?p=1:707321921:1></a>
- 一些问题
文强chu
问题
1.eclipse 导出 doc 出现“The Javadoc command does not exist.” javadoc command 选择 jdk/bin/javadoc.exe 2.tomcate 配置 web 项目 .....
SQL:3.mysql * 必须得放前面 否则 select&nbs
- 生活没有安全感
小桔子
生活孤独安全感
圈子好小,身边朋友没几个,交心的更是少之又少。在深圳,除了男朋友,没几个亲密的人。不知不觉男朋友成了唯一的依靠,毫不夸张的说,业余生活的全部。现在感情好,也很幸福的。但是说不准难免人心会变嘛,不发生什么大家都乐融融,发生什么很难处理。我想说如果不幸被分手(无论原因如何),生活难免变化很大,在深圳,我没交心的朋友。明
- php 基础语法
aichenglong
php 基本语法
1 .1 php变量必须以$开头
<?php
$a=” b”;
echo
?>
1 .2 php基本数据库类型 Integer float/double Boolean string
1 .3 复合数据类型 数组array和对象 object
1 .4 特殊数据类型 null 资源类型(resource) $co
- mybatis tools 配置详解
AILIKES
mybatis
MyBatis Generator中文文档
MyBatis Generator中文文档地址:
http://generator.sturgeon.mopaas.com/
该中文文档由于尽可能和原文内容一致,所以有些地方如果不熟悉,看中文版的文档的也会有一定的障碍,所以本章根据该中文文档以及实际应用,使用通俗的语言来讲解详细的配置。
本文使用Markdown进行编辑,但是博客显示效
- 继承与多态的探讨
百合不是茶
JAVA面向对象 继承 对象
继承 extends 多态
继承是面向对象最经常使用的特征之一:继承语法是通过继承发、基类的域和方法 //继承就是从现有的类中生成一个新的类,这个新类拥有现有类的所有extends是使用继承的关键字:
在A类中定义属性和方法;
class A{
//定义属性
int age;
//定义方法
public void go
- JS的undefined与null的实例
bijian1013
JavaScriptJavaScript
<form name="theform" id="theform">
</form>
<script language="javascript">
var a
alert(typeof(b)); //这里提示undefined
if(theform.datas
- TDD实践(一)
bijian1013
java敏捷TDD
一.TDD概述
TDD:测试驱动开发,它的基本思想就是在开发功能代码之前,先编写测试代码。也就是说在明确要开发某个功能后,首先思考如何对这个功能进行测试,并完成测试代码的编写,然后编写相关的代码满足这些测试用例。然后循环进行添加其他功能,直到完全部功能的开发。
- [Maven学习笔记十]Maven Profile与资源文件过滤器
bit1129
maven
什么是Maven Profile
Maven Profile的含义是针对编译打包环境和编译打包目的配置定制,可以在不同的环境上选择相应的配置,例如DB信息,可以根据是为开发环境编译打包,还是为生产环境编译打包,动态的选择正确的DB配置信息
Profile的激活机制
1.Profile可以手工激活,比如在Intellij Idea的Maven Project视图中可以选择一个P
- 【Hive八】Hive用户自定义生成表函数(UDTF)
bit1129
hive
1. 什么是UDTF
UDTF,是User Defined Table-Generating Functions,一眼看上去,貌似是用户自定义生成表函数,这个生成表不应该理解为生成了一个HQL Table, 貌似更应该理解为生成了类似关系表的二维行数据集
2. 如何实现UDTF
继承org.apache.hadoop.hive.ql.udf.generic
- tfs restful api 加auth 2.0认计
ronin47
目前思考如何给tfs的ngx-tfs api增加安全性。有如下两点:
一是基于客户端的ip设置。这个比较容易实现。
二是基于OAuth2.0认证,这个需要lua,实现起来相对于一来说,有些难度。
现在重点介绍第二种方法实现思路。
前言:我们使用Nginx的Lua中间件建立了OAuth2认证和授权层。如果你也有此打算,阅读下面的文档,实现自动化并获得收益。SeatGe
- jdk环境变量配置
byalias
javajdk
进行java开发,首先要安装jdk,安装了jdk后还要进行环境变量配置:
1、下载jdk(http://java.sun.com/javase/downloads/index.jsp),我下载的版本是:jdk-7u79-windows-x64.exe
2、安装jdk-7u79-windows-x64.exe
3、配置环境变量:右击"计算机"-->&quo
- 《代码大全》表驱动法-Table Driven Approach-2
bylijinnan
java
package com.ljn.base;
import java.io.BufferedReader;
import java.io.FileInputStream;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.Collections;
import java.uti
- SQL 数值四舍五入 小数点后保留2位
chicony
四舍五入
1.round() 函数是四舍五入用,第一个参数是我们要被操作的数据,第二个参数是设置我们四舍五入之后小数点后显示几位。
2.numeric 函数的2个参数,第一个表示数据长度,第二个参数表示小数点后位数。
例如:
select cast(round(12.5,2) as numeric(5,2))  
- c++运算符重载
CrazyMizzz
C++
一、加+,减-,乘*,除/ 的运算符重载
Rational operator*(const Rational &x) const{
return Rational(x.a * this->a);
}
在这里只写乘法的,加减除的写法类似
二、<<输出,>>输入的运算符重载
&nb
- hive DDL语法汇总
daizj
hive修改列DDL修改表
hive DDL语法汇总
1、对表重命名
hive> ALTER TABLE table_name RENAME TO new_table_name;
2、修改表备注
hive> ALTER TABLE table_name SET TBLPROPERTIES ('comment' = new_comm
- jbox使用说明
dcj3sjt126com
Web
参考网址:http://www.kudystudio.com/jbox/jbox-demo.html jBox v2.3 beta [
点击下载]
技术交流QQGroup:172543951 100521167
[2011-11-11] jBox v2.3 正式版
- [调整&修复] IE6下有iframe或页面有active、applet控件
- UISegmentedControl 开发笔记
dcj3sjt126com
// typedef NS_ENUM(NSInteger, UISegmentedControlStyle) {
// UISegmentedControlStylePlain, // large plain
&
- Slick生成表映射文件
ekian
scala
Scala添加SLICK进行数据库操作,需在sbt文件上添加slick-codegen包
"com.typesafe.slick" %% "slick-codegen" % slickVersion
因为我是连接SQL Server数据库,还需添加slick-extensions,jtds包
"com.typesa
- ES-TEST
gengzg
test
package com.MarkNum;
import java.io.IOException;
import java.util.Date;
import java.util.HashMap;
import java.util.Map;
import javax.servlet.ServletException;
import javax.servlet.annotation
- 为何外键不再推荐使用
hugh.wang
mysqlDB
表的关联,是一种逻辑关系,并不需要进行物理上的“硬关联”,而且你所期望的关联,其实只是其数据上存在一定的联系而已,而这种联系实际上是在设计之初就定义好的固有逻辑。
在业务代码中实现的时候,只要按照设计之初的这种固有关联逻辑来处理数据即可,并不需要在数据库层面进行“硬关联”,因为在数据库层面通过使用外键的方式进行“硬关联”,会带来很多额外的资源消耗来进行一致性和完整性校验,即使很多时候我们并不
- 领域驱动设计
julyflame
VODAO设计模式DTOpo
概念:
VO(View Object):视图对象,用于展示层,它的作用是把某个指定页面(或组件)的所有数据封装起来。
DTO(Data Transfer Object):数据传输对象,这个概念来源于J2EE的设计模式,原来的目的是为了EJB的分布式应用提供粗粒度的数据实体,以减少分布式调用的次数,从而提高分布式调用的性能和降低网络负载,但在这里,我泛指用于展示层与服务层之间的数据传输对
- 单例设计模式
hm4123660
javaSingleton单例设计模式懒汉式饿汉式
单例模式是一种常用的软件设计模式。在它的核心结构中只包含一个被称为单例类的特殊类。通过单例模式可以保证系统中一个类只有一个实例而且该实例易于外界访问,从而方便对实例个数的控制并节约系统源。如果希望在系统中某个类的对象只能存在一个,单例模式是最好的解决方案。
&nb
- logback
zhb8015
loglogback
一、logback的介绍
Logback是由log4j创始人设计的又一个开源日志组件。logback当前分成三个模块:logback-core,logback- classic和logback-access。logback-core是其它两个模块的基础模块。logback-classic是log4j的一个 改良版本。此外logback-class
- 整合Kafka到Spark Streaming——代码示例和挑战
Stark_Summer
sparkstormzookeeperPARALLELISMprocessing
作者Michael G. Noll是瑞士的一位工程师和研究员,效力于Verisign,是Verisign实验室的大规模数据分析基础设施(基础Hadoop)的技术主管。本文,Michael详细的演示了如何将Kafka整合到Spark Streaming中。 期间, Michael还提到了将Kafka整合到 Spark Streaming中的一些现状,非常值得阅读,虽然有一些信息在Spark 1.2版
- spring-master-slave-commondao
王新春
DAOspringdataSourceslavemaster
互联网的web项目,都有个特点:请求的并发量高,其中请求最耗时的db操作,又是系统优化的重中之重。
为此,往往搭建 db的 一主多从库的 数据库架构。作为web的DAO层,要保证针对主库进行写操作,对多个从库进行读操作。当然在一些请求中,为了避免主从复制的延迟导致的数据不一致性,部分的读操作也要到主库上。(这种需求一般通过业务垂直分开,比如下单业务的代码所部署的机器,读去应该也要从主库读取数