- 今日联对0306
诗图佳得
自对联:烟销皓月临江浒,水漫金山荡塔裙。一一肖士平2020.3.6.1、试对肖老师联:烟销皓月临江浒,夜笼寒沙梦晚舟。耀哥求正2、试对萧老师联:烟销浩月临江浒,雾散乾坤解汉城。秀霞习作请各位老师校正3、自对联:烟销皓月临江浒,水漫金山荡塔裙。一一肖士平2020.3.6.4、试对肖老师垫场联:烟销皓月临江浒,雾锁寒林缈葉丛。小智求正[抱拳]5、试对肖老师联:烟销皓月临江浒;风卷乱云入峰巅。一一五品6
- 渝婧感恩日记第68天
梁渝婧lydia
1.哇!我真是太幸福啦!感恩奇迹感恩训练营毕业典礼,让我能共振到同学们的喜悦和能量,感谢!感谢!感谢!2.哇!我真是太幸福啦!感恩每天早起,运动3公里!这个星期又做到连续三天,不间断!感谢亲爱的渝婧!你真的是非常的棒!加油,继续坚持!感谢!感谢!感谢!3.哇!我真是太幸福啦!感恩曾正波班主任给我们分享的艾宾浩斯的记忆曲线255学习法,让我蠢蠢欲试,感谢!感谢!感谢!4.哇!我真是太幸福啦!感恩胜利
- 手机上有什么兼职可以做?网上兼职 一单一结 手机就可以做?
优惠券高省
建议上班族和全职宝妈把空闲时间拿出来一点做做副业,什么也不耽搁还能多一笔收入!推荐大家一定要试一试!!!只要有手机就可以做,下面小编就为大家推荐用手机就可以做的三类网上兼职工作。一,高省APP高省APP佣金更高,模式更好,终端用户不流失。【高省】是一个自用省钱佣金高,分享推广赚钱多的平台,百度有几百万篇报道,也期待你的加入。万方导师高省邀请码005500,注册送双皇冠会员,送万元推广大礼包,教你如
- 2021-01-09 哥伦比亚 《梦中的欢快葬礼和十二个异乡故事》 加西亚·马尔克斯 著 罗秀 译
juneyale
《梦中的欢快葬礼和十二个异乡故事》哥伦比亚加西亚·马尔克斯著罗秀译序《总统先生,一路走好!》“再给我一杯咖啡。”他用纯正的法语说。随即补充道:“要意式咖啡,能让人起死回生的那种。”并没有意识到话里的双关含义。当火车开始加速,荷马突然发现总统的手杖还在自己手中,于是跑到站台尽头,把手杖用力扔过去,希望总统能在半空中接住。但是手杖掉在了铁轨上,随即被碾得粉碎。那真是恐怖的一瞬。拉萨拉看到的最后一幕是那
- 【创客文案社】第三期写手招募
筱瑶123
创客文案社第三期写手招募开始了。要求:1:注册一个月以上2:本身热爱写作3:有时间参与接单投稿参与方式:可以关注公众号:写作灵感;也可以通过其他转发文章的文友帮忙拉入群;也可以简信我。参与之后的文友,会先进入新人班,进行基本的试稿与培训,先接一些比较简单的单子;在这里可以一边赚钱,一边学习。不知不觉,来三四个月了,也发现了很多很有意思的现象。1:在上写一篇文章,基本都是几毛钱,多的也不过几块钱的收
- 改变从每一刻
震震一点儿飞飞
每天要做的事情很多,思考的时间太少,整理的不够,所以,每天过的很快,但过的太单薄了,不知道进步在哪里?今天的意义在哪里?这问题到底出在哪里呢?哪里都很乱,时间可能还是被浪费了!要做的事情咬咬牙也就做了,想到看到就做到,是不是就会简单很多!立刻做,去试一试!
- 有心栽花花不发,无心插枝枝发芽
幽默静好
今年的倒春寒来势凶猛,仿佛一夜之间,开得热热闹闹的迎春花,便像是使完了力气,结束了一年一度的花期。小区里的园丁是勤劳的,将那些开败了的枝条进行精心修剪,我散步路过,看见堆在地上的不少,便随手捡了几枝。记不得曾经在哪里看过,说迎春花很好种植,只要捡略粗的枝条,随便插在花盆里,按时浇浇水就能成活。我也想试一试。回家找了个小花盆,将捡来的枝条剪成几小节,将盆插满。放在了阳台的一个角落里。说实话,我没太在
- 【课例观察】林黛玉进贾府
香路有缘
打开名师课堂,发现高一正在讲《红楼梦》之《林黛玉进贾府》一节,从去年秋天就开始读《红楼梦》,断断续续一直持续到现在,即便自己觉得很用心地在读了,其中的精华也很难领悟十分之一二。看到史老师选的这个课题,感觉很亲切,不由自主跟她出发,再次走进林黛玉走进贾府。【课例观察】《林黛玉进贾府》一,导语设计老师激情澎湃朗诵《红楼梦》引子歌词:开辟鸿蒙,谁为情种?都只为风月情浓。趁着这奈何天,伤怀日,寂寥时,试遣
- 今日头条极速版邀请码是多少(亲测5个可用邀请码及填写方法)
桃朵十三
第一次接触今日头条极速版app我记得是2018年7月份左右吧,当时手机上弹出一个小广告说看新闻还能赚零花钱,抱着好奇的心理下载了试一试,刚开始每天刷几条新闻或视频第二天早上金币兑换成一元多钱,可以提现到支付宝或者微信,弄得不亦乐乎。心想不给钱没事我也会看看新闻呢,何乐而不为呢。今日头条极速版邀请码是1712201738或1451455648或1805884301,秒懂你的阅读喜好,秒杀碎片化时间。
- 2018-08-11
daring婧
贩卖毒品是法律严厉打击的行为,却依然有人铤而走险、以身试法,但最终得到的只会是法律的惩罚。贩卖毒品谋取小利,不知悔改“二进宫”黄某曾于2016年12月29日因贩卖毒品罪被钦州市钦南区人民法院判处有期徒刑十个月,缓刑一年。但得到缓刑机会的黄某却不以为然,认为只要贩卖毒品的数量不大,就不会被抓进看守所,依旧继续贩卖着毒品。2018年4月11日,黄某在钦州市钦南区四马路将1小包毒品海洛因(净重0.1克)
- 《流浪地球》:当太阳将要死去,让我们带着地球去流浪
逝去的往昔
春节假期,看了两场电影,今天的《流浪地球》看得震撼至极。影片改编于刘慈欣的同名小说,观影之前特意在微信读书上阅读完了那个短篇。图片发自App我对科幻其实是无感的。拗不过孩子们的期盼,还是跟他们一起去了影院。看完之后才知道自己是多么浅薄。电影的效果跟书籍是无法相比的。看完书已经折服于大刘的想象力了,看完电影更加感叹导演的尽心竭力,正如预告片中所言,郭帆与他的队友在四年的时间里,将影片做到了最优化。试
- 懒人油泼面,治愈一切
惠顾星辰
图片发自App说起油泼面,自然会想到电视剧《白鹿原》里的一个场景,一个和主线剧情关系不大的小细节,这个细节的主角就是一碗热气腾腾的油泼面。剧情中,秦海璐下厨为张嘉译做油泼面,做面的过程应该是正宗的陕西古法,面宽油香,热油泼在面上的一刹那,随着“刺啦”的一声,香气仿佛冲破屏幕,萦绕在观众身旁,让观众们纷纷在弹幕中留下:“油泼面来了,流口水啊”、“看饿了想吃”等留言。一部《白鹿原》,连带着火了陕西油泼
- 当前最流行的架构设计模式
turingbooks
《微服务设计(第2版)》最可贵的地方在于,不光具备理论性与系统性,更为注重实践性与可操作性。全书勾勒出一幅从宏观到细节,再到组织落地的微服务架构整体实施蓝图。无论是对关注微服务领域的工程师与架构师,还是对寻求架构升级的管理者与决策者来说,本书都可以作为指导手册。——沈剑,快狗打车CTO《微服务设计(第2版)》萨姆·纽曼|著钟健鑫张沙沙智伟|译软件开发大神MartinFowler如此推荐本书:“微服
- 哈雷·戴维森宣布与钱江合作,将国产旗下摩托车
芝士食堂
蓬勃发展的中国汽车市场一直是汽车行业的话题。它迫使汽车制造商们改变策略,建立新的联盟进入中国市场,以此来利用当地消费者显然取之不尽的饥饿感。在较小的规模上,摩托车行业也开始出现同样的情况。此次哈雷·戴维森宣布与国内钱江摩托合作,将国产一款排量在400cc以下的哈雷摩托车,并计划在2020年上市销售。哈雷戴维森首席战略官LukeMansfield与钱江摩托董事长余瑾见证合作哈雷将要国产车款的遐想图,
- 高考作文:不要成为当代贾宝玉
如烟出岫
《红楼梦》里面写道大观园这一段,是凸显贾宝玉的才华的高光时刻。比如,《红楼梦》写到“大观园试才题对额”时有一个情节,为元妃(贾元春)省亲修建的大观园竣工后,众人给园中桥上亭子的匾额题名。有人主张从欧阳修《醉翁亭记》“有亭翼然”一句中,取“翼然”二字;贾政认为“此亭压水而成”,题名“还须偏于水”,主张从“泻出于两峰之间”中拈出一个“泻”字,有人即附和题为“泻玉”;贾宝玉则觉得用“沁芳”更为新雅,贾政
- 故事||致 爱上一个人
译垚
有时候,一首不出名,也不算很好听的歌曲,歌词和对白,与身边的一些故事,是那么的相似,人生有多少的故事,疼痛溶在一首音乐里......原创文/译垚网图致谢原创者侵删故事||致爱上一个人痛苦不需要预演爱时,撕心裂肺有多傲娇和狠心把真心爱你的人,伤得彻底为爱一个人,思念决堤浪潮无情的淹没真心抓住最后一根稻草,为等待硬撑泪水是睡前那声晚安哭泣一直不肯入眠幻影,均在梦中迈出脚步才知远方没有终点爱被拒千里之外
- 正向生活行动营 Day10
暖暖的心房
罗伯特•戴博德《蛤蟆先生去看心理医生》P100、1092022年3️月14日1.生活是可爱的,因为你们是可爱的,我们是可爱的2.你的名字,你的头像都是你真实的社交属性社交平台上其实比较暴露我们每个人的内心的潜意识;名字是一个符号是为了方便别人3.当你意识到你的内在小孩在成长的时候,你的状况就开始变好了,开始学会自我管理,更重要的开始学会奖励自己;4.当一个人对别人没有耐心的时候,代表的是他对自己没
- 今日联对0829
诗图佳得
肖老师早上好!各位老师早上好!有感昨晚遛弯巧遇小学同学,勉出一联接场,供大家凑凑趣:日落归巢逢老友,???????。为免仓促,提议请仙子老师拨冗提前做个准备,明日为大家出联[抱拳][抱拳][抱拳]@仙子 期待您的佳作[胜利][胜利][胜利][胜利]一一孙小智试对孙老师出联:日落归巢逢老友;霞飞起舞恋新风。一一五品仙子老师好!马老师好!孙老师好!刘老师好!试对孙老师联:日落归巢逢老友,晨明到海看新天
- 宝妈在家有哪些副业可以操作?推荐4个副业最适合宝妈做!
一起高省
人们对于全职妈妈的印象往往就是在家带孩子,不用工作非常轻松,其实不然。全职妈妈也是有工作的,这份主业就是全年无休带孩子,照顾家庭,而且大部分全职妈妈都因此没有经济来源。那么有没有适合的“副业兼职”,今天我就为大家整理了几个值得一试的全职妈妈副业兼职。1、线上客服,我们可以在网上找兼职客服的工作。一些大型的平台往往会招聘电话客服或者是线上客服,比如淘宝,菜鸟,支付宝等等,这些平台的客服工作互相不冲突
- 开始执行清单管理
张明杰
参加实践管理营已经3周了,开始之前提出了种种要求,自己虽然没说,但是觉得还是有点难度的。说实话,内心是抱着坚持下来就放起的想法,因为曾经做过一些事情让自己很难受,自己有时候是在逃避难受的那种感受。但是还是决定试一试,因为就算是你有一万个放弃的理由,但是还有一个理由坚持。这个是最近大家都处于疲惫期时,有人发的7中应对方法,今早在听樊登读书会时也提到了人为什么会发生改变,其实就是因为发现差异,关于差异
- 干什么都要大胆去闯,大胆去试
今日昱言
干什么都要大胆去闯,大胆去试,没有什么大不了,你可以想一下,最坏的结果是什么,那都是你可以承受的。所以说你要大胆的去试,大胆的去想,不试永远没有机会,要积极的去争取。不要老想着别人来催促你,那个时代早已经过去了,你应该自己积极的推销自己,积极的去争取。图片发自App这是刚看到的一篇文章,写的很好,要学会放下,只有放下,你才会知道有一些事情根本就是无所谓的,有一些坚持是不值得的,是不需要的,并且只有
- 让家教更有效的七大定律
海韵互联
家庭是孩子的第一所学校,家长是孩子第一任老师。如何科学的进行家庭教育,你真的知道吗?今天我们一起来学习七大心理效应,运用科学的方法进行有效的家教。罗森塔尔效应罗斯塔尔做过一个著名的实验,他把小白鼠随机分成两组:A组和B组,并且告诉A组的饲养员说,这组老鼠非常聪明;同时又告诉B组的饲养员这一组的老鼠智力一般。几个月后,两组老鼠进行穿越迷宫测试,A组竟然真的比B组聪明,它们能够先走出迷宫找到食物。这一
- 设背包密码系统的超递增序列为A=(3,4,9,17,35),乘数t=19,模数k=73,试对good night加密
CHENGlady
密码学密码学背包密码
PS:后续在此基础上更新Java代码1.超递增序列含义超递增序列是指一个正整数序列,其中每个元素a[i](i≥2)都大于它前面所有元素之和,即a[i]>(a[1]+a[2]+...+a[i-1])2.加密公式C=(B*)modkC是明文组3.求B公式:B≡t*Amodk解释:B:是通过私钥(一个超递增序列)和某个模数和乘数进行模乘运算得到的序列,以此作为公钥t:乘数A:题目给出的超递增序列k:模数
- 【冯钇嘉桐】上网课
磊磊的柠檬
昨天晚上7:30到8:30的诗会,我准时的去参加了。由于我上次的诗会是上麦分享了,所以说被评为优秀学生,会在诗会里展示,这时我的内心就是:好开森,好开森。(不是打错了,是一种很可爱的语言哦!)被评为优秀学生名单和优秀学校名单展示完后,就开始了我们今天的学习。开始老师讲了一下立夏有什么习俗,然后就开始学诗了。我们先学了一首名字叫《夏夜演唱会》的小诗歌,在学这首小诗歌的期间,我还有幸能够上麦分享的呢!
- 『读书•觉察•冥想‖第二百九十天』《生命之书—365天的静心冥想》作者:[印度]克里希那穆提著 胡因梦译
景熙惟
《生命之书-365天的静心冥想》十月十七日心智的更新我认为不断地努力想变成什么,便是脑子受损和退化的主因。你看我们老化的速度有多快,不但是那些六十岁以上的人,连年轻人都开始老化了。这里指的是心智上的退化。很少有人能够让心保持年轻,我指的年轻并不是有玩乐的兴致,而是一个不受染着的心——不被生活中的意外和事件所扭曲,不因为生活中的奋斗与挣扎而变得疲惫不堪。显然我们必须拥有一颗年轻的心,因为老旧的心已经
- 分享学焦点 生活更美好(107)
佳山_b9a5
长沙崔秀凌坚持原创分享第113天2021.1.22第一次讲书收获:1、焦点短程治疗第一个来源:米尔顿•艾瑞克森的“水晶球技术”,奇迹问句的先驱。强调来访者当下做了什么,鼓励来访者描述想要的未来,这正是焦点核心理念的“聚焦现在与未来”。2、焦点解决短程治疗的第二个来源:帕洛阿尔托心理研究所的家庭治疗和短程治疗中心。他们致力于研究来访者沟通的模式,引发关于问题形成的全新视角,“聚焦正向”让来访者越来越
- 【呓 语】约翰·穆勒:我们活一场,值得一点更高级的快乐
诗人琉璃姬
选自约翰·穆勒《功利主义》第二章徐大建译上海人民出版社如果以为,那些赞成用功利来判别行为对错的人,是在一种狭隘的仅仅存在于口语中的意义上使用功利一词,将功利看作快乐的对立面,那真是太无知了。对于这种错误,只需提一下即可。要是误认为功利主义的哲学对手竟然也会产生如此荒唐的误解,哪怕是一时,也应该向他们表示道歉;这种误解之所以显得更不寻常,是因为对功利主义的另一种常见的批评恰好相反,指责功利主义把一切
- 【Python・统计学】威尔科克森符号秩检验/Wilcoxon signed-rank test(原理及代码)
TUTO_TUTO
统计学pythonpython学习笔记
前言自学笔记,分享给对统计学原理不太清楚但需要在论文中用到的小伙伴,欢迎大佬们补充或绕道。ps:本文不涉及公式讲解(文科生小白友好体质)~(部分定义等来源于知乎百度等)本文重点:威尔科克森符号秩检验(英文名:Wilcoxonsigned-ranktest)【1.简单原理和步骤】【2.应用条件】【3.数据实例以及Python代码】1.简单原理和步骤威尔科克森符号秩检验是一种非参数检验的方法,需要数据
- 2021-11-28
YangLittle
“幸福越与人共享,它的价值越增加。----森村诚一”熊娃传来好消息,虽然只是一次考试而已。他的班主任提前把成绩私发给我们看,并且表扬:这次考得不错!这次在班第8名在学校11名。还拿了历史状元。数学破天荒感觉到考的容易了,虽然还没有达到班级平均分。我们是一如既往的表扬他的努力奋斗和不懈的学习精神。小孩因为这次考试打了三次电话。根据他自己的说法,就是这次可能是运气好啦;下次考试结果还不知道会怎么样呢。
- 99分
普普通通的中学生
最近,我们班进行了好几次考试,其中,光是数学就进行了两次。两张试卷都非常的简单,可是,我却两张试卷都得了九十九分,这究竟是为什么呢?别着急,听我慢慢跟你道来:前几天,第二单元的试卷刚考完,我就特别担心——这么简单的一张试卷,要是分数考低了,那可就不好了。等啊等,试卷总算发下来了。可是,当我把试卷打开的那一瞬间,我惊呆了——为什么得了九十九分呢?我当时特别认真的检查过了,哪儿错了呢?我仔细地看了看试
- Java 并发包之线程池和原子计数
lijingyao8206
Java计数ThreadPool并发包java线程池
对于大数据量关联的业务处理逻辑,比较直接的想法就是用JDK提供的并发包去解决多线程情况下的业务数据处理。线程池可以提供很好的管理线程的方式,并且可以提高线程利用率,并发包中的原子计数在多线程的情况下可以让我们避免去写一些同步代码。
这里就先把jdk并发包中的线程池处理器ThreadPoolExecutor 以原子计数类AomicInteger 和倒数计时锁C
- java编程思想 抽象类和接口
百合不是茶
java抽象类接口
接口c++对接口和内部类只有简介的支持,但在java中有队这些类的直接支持
1 ,抽象类 : 如果一个类包含一个或多个抽象方法,该类必须限定为抽象类(否者编译器报错)
抽象方法 : 在方法中仅有声明而没有方法体
package com.wj.Interface;
- [房地产与大数据]房地产数据挖掘系统
comsci
数据挖掘
随着一个关键核心技术的突破,我们已经是独立自主的开发某些先进模块,但是要完全实现,还需要一定的时间...
所以,除了代码工作以外,我们还需要关心一下非技术领域的事件..比如说房地产
&nb
- 数组队列总结
沐刃青蛟
数组队列
数组队列是一种大小可以改变,类型没有定死的类似数组的工具。不过与数组相比,它更具有灵活性。因为它不但不用担心越界问题,而且因为泛型(类似c++中模板的东西)的存在而支持各种类型。
以下是数组队列的功能实现代码:
import List.Student;
public class
- Oracle存储过程无法编译的解决方法
IT独行者
oracle存储过程
今天同事修改Oracle存储过程又导致2个过程无法被编译,流程规范上的东西,Dave 这里不多说,看看怎么解决问题。
1. 查看无效对象
XEZF@xezf(qs-xezf-db1)> select object_name,object_type,status from all_objects where status='IN
- 重装系统之后oracle恢复
文强chu
oracle
前几天正在使用电脑,没有暂停oracle的各种服务。
突然win8.1系统奔溃,无法修复,开机时系统 提示正在搜集错误信息,然后再开机,再提示的无限循环中。
无耐我拿出系统u盘 准备重装系统,没想到竟然无法从u盘引导成功。
晚上到外面早了一家修电脑店,让人家给装了个系统,并且那哥们在我没反应过来的时候,
直接把我的c盘给格式化了 并且清理了注册表,再装系统。
然后的结果就是我的oracl
- python学习二( 一些基础语法)
小桔子
pthon基础语法
紧接着把!昨天没看继续看django 官方教程,学了下python的基本语法 与c类语言还是有些小差别:
1.ptyhon的源文件以UTF-8编码格式
2.
/ 除 结果浮点型
// 除 结果整形
% 除 取余数
* 乘
** 乘方 eg 5**2 结果是5的2次方25
_&
- svn 常用命令
aichenglong
SVN版本回退
1 svn回退版本
1)在window中选择log,根据想要回退的内容,选择revert this version或revert chanages from this version
两者的区别:
revert this version:表示回退到当前版本(该版本后的版本全部作废)
revert chanages from this versio
- 某小公司面试归来
alafqq
面试
先填单子,还要写笔试题,我以时间为急,拒绝了它。。时间宝贵。
老拿这些对付毕业生的东东来吓唬我。。
面试官很刁难,问了几个问题,记录下;
1,包的范围。。。public,private,protect. --悲剧了
2,hashcode方法和equals方法的区别。谁覆盖谁.结果,他说我说反了。
3,最恶心的一道题,抽象类继承抽象类吗?(察,一般它都是被继承的啊)
4,stru
- 动态数组的存储速度比较 集合框架
百合不是茶
集合框架
集合框架:
自定义数据结构(增删改查等)
package 数组;
/**
* 创建动态数组
* @author 百合
*
*/
public class ArrayDemo{
//定义一个数组来存放数据
String[] src = new String[0];
/**
* 增加元素加入容器
* @param s要加入容器
- 用JS实现一个JS对象,对象里有两个属性一个方法
bijian1013
js对象
<html>
<head>
</head>
<body>
用js代码实现一个js对象,对象里有两个属性,一个方法
</body>
<script>
var obj={a:'1234567',b:'bbbbbbbbbb',c:function(x){
- 探索JUnit4扩展:使用Rule
bijian1013
java单元测试JUnitRule
在上一篇文章中,讨论了使用Runner扩展JUnit4的方式,即直接修改Test Runner的实现(BlockJUnit4ClassRunner)。但这种方法显然不便于灵活地添加或删除扩展功能。下面将使用JUnit4.7才开始引入的扩展方式——Rule来实现相同的扩展功能。
1. Rule
&n
- [Gson一]非泛型POJO对象的反序列化
bit1129
POJO
当要将JSON数据串反序列化自身为非泛型的POJO时,使用Gson.fromJson(String, Class)方法。自身为非泛型的POJO的包括两种:
1. POJO对象不包含任何泛型的字段
2. POJO对象包含泛型字段,例如泛型集合或者泛型类
Data类 a.不是泛型类, b.Data中的集合List和Map都是泛型的 c.Data中不包含其它的POJO
 
- 【Kakfa五】Kafka Producer和Consumer基本使用
bit1129
kafka
0.Kafka服务器的配置
一个Broker,
一个Topic
Topic中只有一个Partition() 1. Producer:
package kafka.examples.producers;
import kafka.producer.KeyedMessage;
import kafka.javaapi.producer.Producer;
impor
- lsyncd实时同步搭建指南——取代rsync+inotify
ronin47
1. 几大实时同步工具比较 1.1 inotify + rsync
最近一直在寻求生产服务服务器上的同步替代方案,原先使用的是 inotify + rsync,但随着文件数量的增大到100W+,目录下的文件列表就达20M,在网络状况不佳或者限速的情况下,变更的文件可能10来个才几M,却因此要发送的文件列表就达20M,严重减低的带宽的使用效率以及同步效率;更为要紧的是,加入inotify
- java-9. 判断整数序列是不是二元查找树的后序遍历结果
bylijinnan
java
public class IsBinTreePostTraverse{
static boolean isBSTPostOrder(int[] a){
if(a==null){
return false;
}
/*1.只有一个结点时,肯定是查找树
*2.只有两个结点时,肯定是查找树。例如{5,6}对应的BST是 6 {6,5}对应的BST是
- MySQL的sum函数返回的类型
bylijinnan
javaspringsqlmysqljdbc
今天项目切换数据库时,出错
访问数据库的代码大概是这样:
String sql = "select sum(number) as sumNumberOfOneDay from tableName";
List<Map> rows = getJdbcTemplate().queryForList(sql);
for (Map row : rows
- java设计模式之单例模式
chicony
java设计模式
在阎宏博士的《JAVA与模式》一书中开头是这样描述单例模式的:
作为对象的创建模式,单例模式确保某一个类只有一个实例,而且自行实例化并向整个系统提供这个实例。这个类称为单例类。 单例模式的结构
单例模式的特点:
单例类只能有一个实例。
单例类必须自己创建自己的唯一实例。
单例类必须给所有其他对象提供这一实例。
饿汉式单例类
publ
- javascript取当月最后一天
ctrain
JavaScript
<!--javascript取当月最后一天-->
<script language=javascript>
var current = new Date();
var year = current.getYear();
var month = current.getMonth();
showMonthLastDay(year, mont
- linux tune2fs命令详解
daizj
linuxtune2fs查看系统文件块信息
一.简介:
tune2fs是调整和查看ext2/ext3文件系统的文件系统参数,Windows下面如果出现意外断电死机情况,下次开机一般都会出现系统自检。Linux系统下面也有文件系统自检,而且是可以通过tune2fs命令,自行定义自检周期及方式。
二.用法:
Usage: tune2fs [-c max_mounts_count] [-e errors_behavior] [-g grou
- 做有中国特色的程序员
dcj3sjt126com
程序员
从出版业说起 网络作品排到靠前的,都不会太难看,一般人不爱看某部作品也是因为不喜欢这个类型,而此人也不会全不喜欢这些网络作品。究其原因,是因为网络作品都是让人先白看的,看的好了才出了头。而纸质作品就不一定了,排行榜靠前的,有好作品,也有垃圾。 许多大牛都是写了博客,后来出了书。这些书也都不次,可能有人让为不好,是因为技术书不像小说,小说在读故事,技术书是在学知识或温习知识,有
- Android:TextView属性大全
dcj3sjt126com
textview
android:autoLink 设置是否当文本为URL链接/email/电话号码/map时,文本显示为可点击的链接。可选值(none/web/email/phone/map/all) android:autoText 如果设置,将自动执行输入值的拼写纠正。此处无效果,在显示输入法并输
- tomcat虚拟目录安装及其配置
eksliang
tomcat配置说明tomca部署web应用tomcat虚拟目录安装
转载请出自出处:http://eksliang.iteye.com/blog/2097184
1.-------------------------------------------tomcat 目录结构
config:存放tomcat的配置文件
temp :存放tomcat跑起来后存放临时文件用的
work : 当第一次访问应用中的jsp
- 浅谈:APP有哪些常被黑客利用的安全漏洞
gg163
APP
首先,说到APP的安全漏洞,身为程序猿的大家应该不陌生;如果抛开安卓自身开源的问题的话,其主要产生的原因就是开发过程中疏忽或者代码不严谨引起的。但这些责任也不能怪在程序猿头上,有时会因为BOSS时间催得紧等很多可观原因。由国内移动应用安全检测团队爱内测(ineice.com)的CTO给我们浅谈关于Android 系统的开源设计以及生态环境。
1. 应用反编译漏洞:APK 包非常容易被反编译成可读
- C#根据网址生成静态页面
hvt
Web.netC#asp.nethovertree
HoverTree开源项目中HoverTreeWeb.HVTPanel的Index.aspx文件是后台管理的首页。包含生成留言板首页,以及显示用户名,退出等功能。根据网址生成页面的方法:
bool CreateHtmlFile(string url, string path)
{
//http://keleyi.com/a/bjae/3d10wfax.htm
stri
- SVG 教程 (一)
天梯梦
svg
SVG 简介
SVG 是使用 XML 来描述二维图形和绘图程序的语言。 学习之前应具备的基础知识:
继续学习之前,你应该对以下内容有基本的了解:
HTML
XML 基础
如果希望首先学习这些内容,请在本站的首页选择相应的教程。 什么是SVG?
SVG 指可伸缩矢量图形 (Scalable Vector Graphics)
SVG 用来定义用于网络的基于矢量
- 一个简单的java栈
luyulong
java数据结构栈
public class MyStack {
private long[] arr;
private int top;
public MyStack() {
arr = new long[10];
top = -1;
}
public MyStack(int maxsize) {
arr = new long[maxsize];
top
- 基础数据结构和算法八:Binary search
sunwinner
AlgorithmBinary search
Binary search needs an ordered array so that it can use array indexing to dramatically reduce the number of compares required for each search, using the classic and venerable binary search algori
- 12个C语言面试题,涉及指针、进程、运算、结构体、函数、内存,看看你能做出几个!
刘星宇
c面试
12个C语言面试题,涉及指针、进程、运算、结构体、函数、内存,看看你能做出几个!
1.gets()函数
问:请找出下面代码里的问题:
#include<stdio.h>
int main(void)
{
char buff[10];
memset(buff,0,sizeof(buff));
- ITeye 7月技术图书有奖试读获奖名单公布
ITeye管理员
活动ITeye试读
ITeye携手人民邮电出版社图灵教育共同举办的7月技术图书有奖试读活动已圆满结束,非常感谢广大用户对本次活动的关注与参与。
7月试读活动回顾:
http://webmaster.iteye.com/blog/2092746
本次技术图书试读活动的优秀奖获奖名单及相应作品如下(优秀文章有很多,但名额有限,没获奖并不代表不优秀):
《Java性能优化权威指南》