- 如果今天是你在世界上的最后一天,你打算如何度过?
养正读书
每日一问:如果今天是你在世界上的最后一天,你打算如何度过?生命的祈祷群里老师发出了这样的作业,这无疑是一个让人稍显悲伤而又需要脑洞大开的话题。以下是我的回答。首先,我会给父母,子女留下遗嘱。其次,我会分别给他们留下一封信,告诉我此时内心的独白和对人生的感悟。当然还有一件重要的事,就是为父母做一顿可口的饭菜,陪他们在河边走走,晒晒太阳。我会找出所有的影集和照片,和父母家人一起回忆那过去的时光。我希望
- 向着明亮那方12.7
向着明亮那方的我们
【水晶泥的妙用】在地上捡到一滩水晶泥,本想扔进垃圾桶,发现水晶泥上附着了些许蓝色钢笔墨水。我脑洞大开,水晶泥可不可以用来处理钢笔墨渍呢?正好垃圾桶那面瓷砖墙上有蓝色钢笔水痕迹,我用水晶泥沾了沾墨迹,很轻易地把墨色粘了下来,好干净。【长跑报名】我让同学们自愿报名参加冬季长跑比赛,课间将名字报给班长。班长把名字统计在本子上,把本子拿来给我看:“老师,我晚上回去给你做张电子表,发给你。”看来班长又学了新
- 完美机器人
负债的宝贝
白叶的父母又吵架了,白叶感觉很痛苦,要是他的父母不吵架就好了。要是他的父母和他想的一样完美就好了。“你想要完美父母吗?我可以帮你实现。”白叶的手机里突然出现了这样一则短信,把白叶吓了一跳。一定是有人搞的恶作剧,白叶并不理会这条短信。但是第二天奇怪的事情就发生了。明天开一篇脑洞,我先起个头,剩下的随大家编✧٩(ˊωˋ*)و✧
- 【LeetCode 算法笔记】84. 柱状图中最大的矩形
Sardar_
算法leetcode笔记
目录问题描述暴力求解:栈问题描述给定n个非负整数,用来表示柱状图中各个柱子的高度。每个柱子彼此相邻,且宽度为1。求在该柱状图中,能够勾勒出来的矩形的最大面积。示例1:输入:heights=[2,1,5,6,2,3]输出:10解释:最大的矩形为图中红色区域,面积为10示例2:输入:heights=[2,4]输出:4提示:1int:area=0n=len(heights)foriinrange(n):
- 国产十大动画片排行榜Top5:一部就想让你开心的动画片:十万个冷笑话系列
小川_d87b
大量经典动画乱入,但又不显得突兀。大量广告强行插入,但又不显得讨厌。大量槽点刚想骂娘,却发现这是笑点。大量笑点全程密集,腹肌没痛膀胱痛。总之,就是一句话:值得一看。虽然没有深度和意义,但这些超越脑洞制造出的笑点既能让人惊呼“卧槽什么鬼”,又会使宅男们乐不可支不管从片名还是预告来看,这部电影的主题就是:逗笑你。传说中最简单的事情也最复杂,因为大家在这个时代,看的太多接触的太多,段子什么的都习以为常了
- 脑洞2
沫清殇
走到每天工作台前坐下,时间一分一秒的过去,甚至没有察觉紧绷的身体,正对着我的电脑,面前黑漆漆的屏幕,感到恐惧,突然害怕黑暗,不知道为什么,趴在桌上,贴着桌面,想把头深深的埋进去。有些累了,甚至是恶心,但我知道黑暗中有无数双眼睛在觊觎。
- 知否?知否?情人眼里出代码
五分钟学算法
今天是0214,打乱一下数字就是1024,程序员最喜欢的一个数字之一。当然,除此之外,今天也是一年一度的情人节。这个日子肯定少不了表白。那程序员怎么去表白?当然是写---代---码!每到情人节,脑洞大开的程序员们就纷纷出动,想出了各种别出心裁的表白代码。虽然结局不一定美好,但这些也是一种撩妹手段。从古采葛:一日不见,如三月兮image顾城:《门前》image至今春风十里不如你image舒婷:致橡树
- 德国的教育理念
语文教育思考者
德国为什么强大到可怕?在他们的小树林里就决定了一切脑洞历史观7月6日·文史作家历史问答专家我们知道,德国是一个超级强大的国家。它只有八千万人口,却拥有2300个世界品牌。要不是历史上二次暴走,今天的德国绝对是欧洲巨无霸的存在,当然,现在也是欧洲一哥。看看德国的这些机器。那德国为什么这么强呢?归根到底是教育。德国的教育,尤其是学前教育非常有特色,可能亲们也知道,世界上第一所幼儿园就是一个德国人创立的
- 用户行为+未来如何留住用户—回答了六个问题,回应了六种焦虑
蓝海的渊
主题为“中国式机会”,以“一秒到千年”为时间线索,通过“动车组脑洞到枢纽脑洞”六大脑洞,回答了六个问题,回应了六种焦虑,在六个脑洞中得出了六种“中国式机会”。今天“以用户为中心”的诸葛君分享一些关于“超级用户思维”的看法和解读。一、流量思维vs用户思维罗振宇说:过去,我们提到商业,脑子里蹦出来的第一个词,是“竞争”。而现在,你还来不及摆好姿势和竞争对手厮杀,用户就已经变成了另一个物种了。过去商业世
- 十月@第三个脑洞故事 | 变伞人
92235a0dfdb6
题|变伞人文|lyz01在众多的能力者当中,也有像是「变伞人」这样,把能力当成“爱好”来使用的存在。瞧,这不,他正在当众施展“魔法”。只见「变伞人」摆好造型,“砰”地一声,一把雨伞便从他手里“凭空”生成。这是一把桃红色的花伞,正对应眼前这位如花似玉的女孩。“给你。”「变伞人」将雨伞倒置,递给女孩。此外,她还贴心地告知她:“别担心,等雨停了雨伞便会自动消失。所以,你也不用还我。”02瞧,「变伞人」所
- 《送给自己一朵微笑》29梦中的那段记忆
浅浅无盐
伴随着熟悉的铃声醒过来,依然感觉慵懒,但是发现自己身心都有些愉悦。想起自己梦里的一切,再次抽了抽嘴角,觉得自己真是太奇葩了。或许这就是脑洞大过天的自己吧。因为自己梦里所梦到的这一切,永远都不可能在现实生活里面发生。然而又是那么清晰,清晰到自己醒来都还能记住每一个情节。有的人说日有所思夜有所梦。这段时间,感觉自己的生活总是乱七八糟的,或许是在这乱七八糟的生活里面寻求一份温暖吧。只是梦醒了以后,也会想
- 古代人为什么崇拜癞蛤蟆?癞蛤蟆象征着什么?
倒到糖我在
“癞蛤蟆想吃天鹅肉”现在就是一句骂人的话,可见在今天癞蛤蟆不是个好东西。但古人却一度把蛤蟆神圣化,成为神物,这又是出于一种怎样的脑洞呢?仔细说来,这也是有缘故的。首先、癞蛤蟆就是蟾蜍,属于蛙类,一产多子,当然很容易成为人们生殖信仰的崇敬对象。中国上古考古发掘出来的器皿,很多带有蛙文,足以为此证明。其次、蟾蜍寓意长生,这与蟾蜍冬眠的习性有关,在古人眼里犹如死而复生,生生不息。后来又有人把这份生生死死
- 系统分析拖延症
树袋熊os
作为一个资深拖延症患者,我饱受拖延的苦恼,终于拖到受不了了。于是分析原因,给出各种解决姿势。拖延症原因:1身体原因。如注意力缺陷症(多动症)爱拖延(就是我)。身体虚弱,干什么都无力,老是爱睡觉也容易导致拖延。2思考者(还是我)。思维跳跃,发散思维脑洞的人。缺乏行动自信,缺乏行动力,想到却做不到的人。完美控,要求思考周全,反复思考,从而耽误了行动的人。心情不好,害怕失败,压力大,害怕别人的期待,因事
- 我有点后悔变成一只猫…
wwDoris
这只是一个练习的脑洞故事…今天的任务是:以“我有点后悔变成一只猫…”为引子,写一个脑洞故事“小野猫”这是ta对我的称呼,我问,为什么是“小野猫”呢?答:“就是平时对别人有点抗拒,但是对喜欢的人却是另外一种样子…”周末的一天,五点半,“嗯~”伸了个懒腰,“卧槽”我的手呢?我的脚呢?我的身体怎么变成了这样,伸出手来,呃,居然是个猫爪子,猫爪子…“啊…”怎么这样了,怎么这样了,怎么办怎么办?六点半,“叮
- 宏观&微观
知识日记
果然书还是要自己看,听来的不怎么靠谱,当时听完有效,也能记住一点思考一下,过后就忘了,但是自己亲自看了理解了,也不知道能记多久,会不会有所启发得到运用,可能我读书也受到了影响,比较有目的性了,开始没打算这样的,不知道是好还是坏。《三体》又一次开了我的脑洞,虽然今天万维刚,讲了宇宙不可能存在更高维度,三维曲面是存在的,宇宙进入到一个无限大的圆环中周而复始,我可能理解到这里也许我理解错了,书中讲将一个
- 从《三界红包群》领悟写作的真谛
吻红尘
这些天在阅读小教主的都市小说《三界红包群》,这是一部都市爽文,虽然是无脑文,但是文中所运用的皆是当下最时髦的网络语言,皆是现在的年轻人所喜闻乐见的,其脑洞之大令人称奇。现在的人们无论是上班族,打工族,还是学生,农民和各个行业的人,生活和学习压力山大,快节奏和高消费促使人们每日的精神都非常紧张,而这样的爽文恰逢其时,正是人们消减精神压力的一剂良药。这部小说虽然没有多少文学价值,而且还有些粗俗,但却适
- 【数组】|代码随想录算法训练营第2天| 977.有序数组的平方 、209.长度最小的子数组 、59.螺旋矩阵II 、【总结】
toolhow
数据结构与算法算法矩阵
刷题神器代码随想录往期回顾>【数组】|代码随想录算法训练营第1天|704.二分查找、27.移除元素题目977.有序数组的平方题目:题目链接文章:文章讲解视频:视频讲解第一想法暴力求解,全部求平方然后再重新排序,时间复杂度是O(n+nlogn)学后思路有序数组的平方根,前提是数组是一个非递减顺序的要求,所以最大值在两边,最小是在中间,所以使用双指针由两边往中间遍历,产生的结果就是从最大到最小。时间复
- 一生热爱,回头太难——读《临与别》有感
采薇0927
《临与别》昭2017年,偶然间读到一本幻想题材的小说《蚁族:北京生存日记》,彼时我还没怎么接触过脑洞类的小说,虚虚实实间,竟让我生出了一种前所未有的新鲜感。作者昭用一个看似荒诞且脑洞大开的方式,讲述了一干人在北京漂泊的酸甜苦辣。构思奇妙,视角独特,人物个性鲜明,且寓意深刻,让有着多年北漂经历的我很有共鸣,所以一下子就戳中了我。时隔两年,读完昭的第二本书《临与别》,依然感慨良多。如果说第一本书带给我
- LeeCode打卡第十六天
一只大毛吖
leetcode算法数据结构java
LeeCode打卡第十六天第一题:回文链表(LeeCode第234题):给你一个单链表的头节点head,请你判断该链表是否为回文链表。如果是,返回true;否则,返回false。解法一:暴力求解法主要思想:将链表中的所有元素存到数组中,然后数组首尾进行遍历,看是否相等,相等即为回文链表,不相等则返回false/***Definitionforsingly-linkedlist.*publiccla
- 淘宝内部优惠券是真的吗,优惠券免费代理平台哪个好
高省APP珊珊
嗨!动动手指向下翻翻,你能看到天猫淘宝优惠券的内幕消息!跟推客小编来了解下吧,你会脑洞大开!大家好,我是【高省】最大团队创始人珊珊,高省佣金更高,模式更好,使用范围更多,操作更简单,资质更靠谱,终端用户不流失,各大应用市场均可下载使用。【高省】是一个自用省钱佣金高,分享推广赚钱多的平台,百度有几百万篇报道,也期待你的加入。珊珊导师高省邀请码777777,注册送2皇冠会员,送万元推广大礼包,教你如何
- 2019-03-29
李巍巍
自从开始每日更新文章,自己才发现真是井底之蛙呀,真是套路深呀。标题党,奇闻篇,隐私汇,奇幻想,各种脑洞大开的东西,可真谓是百花奇放,八仙过海呀,是人们审美情趣降低,还是世界变化太快,只想一时的痛快和发泄,自己有些看不懂。还是从自身找原因吧,是自己思想落伍了,有些跟不上的节奏,那么,多学习吧,提高认识,加深思想,总是没错的吧。
- 2022-03-17
说好背诗一辈子呢
1.关键我自己安安静静做好自己的事情不就好了,你看书的时候边拉伸,然后不知道干什么?就朗读或者把东西都捡好了,这不就是榜样吗?2.“我的心马上就修好了”去拿好吃的。"你揍我第二顿啦,你不给我好吃的。“”我没有吃的“”您揍我第三顿了““我给自己十分钟找一下。你跟我来,我说要那个就哪个。我要那个葡萄汁”“那个坏了,不能吃””马上你就要揍我第四顿了”哈哈哈哈太可爱了。。。神奇的脑洞。。午睡叫醒,“你生我
- 如何把日常景物拍出新鲜感?试试这 4 招
摄影小白的逆袭
“生活中不缺少美,而是缺少发现美的眼睛。”其实,这句话对摄影艺术也同样成立。总感觉你的日常生活乏善可陈,缺乏值得一拍的有趣景物?或许,只是因为你缺少了“发现美的眼睛”和技巧而已。今天,岁岁将为您分享4个把日常的普通景物拍成大片的技巧,帮您开发脑洞,提升技术,发掘出生活中的美!1.大胆裁剪,二次构图刚接触摄影时,我们都要遵循一些基本的构图原则,比如说三分法、中心构图法;还有一些固有的老观念,比如“拍
- 古代有高科技会怎样
北覓
开空调乘凉的期间,快快爬上来写我的作业,不可懈怠的翻牌子,说到翻牌子,午饭的时候点菜员给了我们一人一个类似手机一样的电子号,自己的菜做好了就直接呼叫,有人说要是在古代有这样的东西就好了,皇帝也不用劳民伤财的按个看牌子、翻牌子,直接想让谁过来就呼叫谁,别的妃子也不知道是谁被叫走了,也不会争风吃醋了,利于管理,简直是脑洞大开了上午急需在北京的网站上申请个东东,结果登录进去之后还要对我进行考试,必须考够
- 【脑洞】
顾uu
脑洞##向死而生#文/汕白你似乎一生下来就带着好运,出门捡到钱,考试考的全是复习的点,面试前一天机缘巧合帮助了上司……你为这样的好运沾沾自喜,直到有一天,你得知,世界即将面临一场灾难,而你是拯救世界的“钥匙”的其中之一。“牺牲几十把“钥匙”,拯救一个世界,不亏吧?”“你以为你的幸运是白来的吗?得失终有报。”“你也有在乎的人吧,用你的性命去拯救他们,怎么样?不过……你会彻底消失,没有人会记得你。”—
- 【代码随想录训练营第42期 Day29打卡 贪心Part3 - LeetCode 134. 加油站 135. 分发糖果 860.柠檬水找零 406.根据身高重建队列
逝去的秋风
代码随想录打卡leetcode算法贪心
目录一、做题心得二、题目与题解题目一:134.加油站题目链接题解1:暴力求解(失败版)题解2:贪心题目二:135.分发糖果题目链接题解:双维度贪心题目三:860.柠檬水找零题目链接题解:贪心题目四:406.根据身高重建队列题目链接题解:双维度贪心三、小结一、做题心得今天依旧是贪心章节的习题。贪心这一块难度比较大,今天接触到了双维度贪心这一类题型,旨在使用两个贪心策略完成这类题--135.分发糖果以
- 台风的知识点:名字
点点自喜
台风的名字有时很文艺有时又很曲艺有时是个动物有时又是个神话人物那么,台风的名字,究竟是怎么来的呢?其实,台风的名字,都是事先确定好的并不是台风快来的时候,大家脑洞大开,随意给它们起个名字西北太平洋是台风的高产地区,每年登录我国,就有6、7个之多而多年以来,西太平洋周边的国家和地区对出没在这里的台风叫法不一同一个台风,往往就有好几个不同的名字于是为了避免名称混乱,大家就事先制定一个命名表。然后按顺序
- 2022-04-26读小说是对现实生活的逃避
玉柠檬2019
从21号开始沉湎于马伯庸的《我读书少你可别骗我》,然后是追剧《恰是故人归》然后是网文。马伯庸这本书的总序里说:小说是第二生活。深以为然,小说为我们的残酷的现实生活造了一个结界,在小说的世界里,我们渡劫也飞升,治好了身心,出了结界继续战斗或者沉沦。这就是我认为的逃避,我觉得把握好度,就是有益的逃避,反之,适得其反。《我读书少你可别骗我》只有4个中篇,但是每个的脑洞都开的特别大。第一篇讲《2012》电
- 看见美好
东方蜘蛛侠
有人说,光看见美好,而不能踏踏实实地做好手上的每一件小事,都没有任何卵用;有人说,我只立足做好身边的每一件小事,不要空谈未来的美好;有人说,经常谈谈未来的美好,做起事来,会更有劲,更会持之以恒。每个人站在自己的角度,都会认为自己说的最有价值,始终认为自己的最有道理。但我们更应该打开脑洞,怀着空杯的心态,用换位思考的思维方式,认可自己的,接纳别人的,慢慢就会看到更多的美好。时间不语,但却会带给我们许
- 《真的假的?不正常世界研究》|带着好奇心,打开世界之门,探寻脑洞大开的神奇故事吧
蜻蜓之旅
培根说:“知识是一种欢乐,而好奇则是知识的萌芽。”大千世界,无奇不有,只要我们有好奇心,就能挖掘出一大堆让人脑洞大开的不为人知的秘密。比如,孩子们经常问的那些十万个为什么,就能很好地帮助孩子们打开这个未知的世界大门。比如,当别人跟你说“鸡可能是地球真正的霸主、章鱼是学霸”时,你会不会很惊讶很好奇?这本《真的假的?不正常世界研究》就是专门满足人类好奇心制作而成,不但有趣还能扩展你的认知广度。本书是一
- 关于旗正规则引擎规则中的上传和下载问题
何必如此
文件下载压缩jsp文件上传
文件的上传下载都是数据流的输入输出,大致流程都是一样的。
一、文件打包下载
1.文件写入压缩包
string mainPath="D:\upload\"; 下载路径
string tmpfileName=jar.zip; &n
- 【Spark九十九】Spark Streaming的batch interval时间内的数据流转源码分析
bit1129
Stream
以如下代码为例(SocketInputDStream):
Spark Streaming从Socket读取数据的代码是在SocketReceiver的receive方法中,撇开异常情况不谈(Receiver有重连机制,restart方法,默认情况下在Receiver挂了之后,间隔两秒钟重新建立Socket连接),读取到的数据通过调用store(textRead)方法进行存储。数据
- spark master web ui 端口8080被占用解决方法
daizj
8080端口占用sparkmaster web ui
spark master web ui 默认端口为8080,当系统有其它程序也在使用该接口时,启动master时也不会报错,spark自己会改用其它端口,自动端口号加1,但为了可以控制到指定的端口,我们可以自行设置,修改方法:
1、cd SPARK_HOME/sbin
2、vi start-master.sh
3、定位到下面部分
- oracle_执行计划_谓词信息和数据获取
周凡杨
oracle执行计划
oracle_执行计划_谓词信息和数据获取(上)
一:简要说明
在查看执行计划的信息中,经常会看到两个谓词filter和access,它们的区别是什么,理解了这两个词对我们解读Oracle的执行计划信息会有所帮助。
简单说,执行计划如果显示是access,就表示这个谓词条件的值将会影响数据的访问路径(表还是索引),而filter表示谓词条件的值并不会影响数据访问路径,只起到
- spring中datasource配置
g21121
dataSource
datasource配置有很多种,我介绍的一种是采用c3p0的,它的百科地址是:
http://baike.baidu.com/view/920062.htm
<!-- spring加载资源文件 -->
<bean name="propertiesConfig"
class="org.springframework.b
- web报表工具FineReport使用中遇到的常见报错及解决办法(三)
老A不折腾
finereportFAQ报表软件
这里写点抛砖引玉,希望大家能把自己整理的问题及解决方法晾出来,Mark一下,利人利己。
出现问题先搜一下文档上有没有,再看看度娘有没有,再看看论坛有没有。有报错要看日志。下面简单罗列下常见的问题,大多文档上都有提到的。
1、repeated column width is largerthan paper width:
这个看这段话应该是很好理解的。比如做的模板页面宽度只能放
- mysql 用户管理
墙头上一根草
linuxmysqluser
1.新建用户 //登录MYSQL@>mysql -u root -p@>密码//创建用户mysql> insert into mysql.user(Host,User,Password) values(‘localhost’,'jeecn’,password(‘jeecn’));//刷新系统权限表mysql>flush privileges;这样就创建了一个名为:
- 关于使用Spring导致c3p0数据库死锁问题
aijuans
springSpring 入门Spring 实例Spring3Spring 教程
这个问题我实在是为整个 springsource 的员工蒙羞
如果大家使用 spring 控制事务,使用 Open Session In View 模式,
com.mchange.v2.resourcepool.TimeoutException: A client timed out while waiting to acquire a resource from com.mchange.
- 百度词库联想
annan211
百度
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>RunJS</title&g
- int数据与byte之间的相互转换实现代码
百合不是茶
位移int转bytebyte转int基本数据类型的实现
在BMP文件和文件压缩时需要用到的int与byte转换,现将理解的贴出来;
主要是要理解;位移等概念 http://baihe747.iteye.com/blog/2078029
int转byte;
byte转int;
/**
* 字节转成int,int转成字节
* @author Administrator
*
- 简单模拟实现数据库连接池
bijian1013
javathreadjava多线程简单模拟实现数据库连接池
简单模拟实现数据库连接池
实例1:
package com.bijian.thread;
public class DB {
//private static final int MAX_COUNT = 10;
private static final DB instance = new DB();
private int count = 0;
private i
- 一种基于Weblogic容器的鉴权设计
bijian1013
javaweblogic
服务器对请求的鉴权可以在请求头中加Authorization之类的key,将用户名、密码保存到此key对应的value中,当然对于用户名、密码这种高机密的信息,应该对其进行加砂加密等,最简单的方法如下:
String vuser_id = "weblogic";
String vuse
- 【RPC框架Hessian二】Hessian 对象序列化和反序列化
bit1129
hessian
任何一个对象从一个JVM传输到另一个JVM,都要经过序列化为二进制数据(或者字符串等其他格式,比如JSON),然后在反序列化为Java对象,这最后都是通过二进制的数据在不同的JVM之间传输(一般是通过Socket和二进制的数据传输),本文定义一个比较符合工作中。
1. 定义三个POJO
Person类
package com.tom.hes
- 【Hadoop十四】Hadoop提供的脚本的功能
bit1129
hadoop
1. hadoop-daemon.sh
1.1 启动HDFS
./hadoop-daemon.sh start namenode
./hadoop-daemon.sh start datanode
通过这种逐步启动的方式,比start-all.sh方式少了一个SecondaryNameNode进程,这不影响Hadoop的使用,其实在 Hadoop2.0中,SecondaryNa
- 中国互联网走在“灰度”上
ronin47
管理 灰度
中国互联网走在“灰度”上(转)
文/孕峰
第一次听说灰度这个词,是任正非说新型管理者所需要的素质。第二次听说是来自马化腾。似乎其他人包括马云也用不同的语言说过类似的意思。
灰度这个词所包含的意义和视野是广远的。要理解这个词,可能同样要用“灰度”的心态。灰度的反面,是规规矩矩,清清楚楚,泾渭分明,严谨条理,是决不妥协,不转弯,认死理。黑白分明不是灰度,像彩虹那样
- java-51-输入一个矩阵,按照从外向里以顺时针的顺序依次打印出每一个数字。
bylijinnan
java
public class PrintMatrixClockwisely {
/**
* Q51.输入一个矩阵,按照从外向里以顺时针的顺序依次打印出每一个数字。
例如:如果输入如下矩阵:
1 2 3 4
5 6 7 8
9
- mongoDB 用户管理
开窍的石头
mongoDB用户管理
1:添加用户
第一次设置用户需要进入admin数据库下设置超级用户(use admin)
db.addUsr({user:'useName',pwd:'111111',roles:[readWrite,dbAdmin]});
第一个参数用户的名字
第二个参数
- [游戏与生活]玩暗黑破坏神3的一些问题
comsci
生活
暗黑破坏神3是有史以来最让人激动的游戏。。。。但是有几个问题需要我们注意
玩这个游戏的时间,每天不要超过一个小时,且每次玩游戏最好在白天
结束游戏之后,最好在太阳下面来晒一下身上的暗黑气息,让自己恢复人的生气
&nb
- java 二维数组如何存入数据库
cuiyadll
java
using System;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Xml;
using System.Xml.Serialization;
using System.IO;
namespace WindowsFormsApplication1
{
- 本地事务和全局事务Local Transaction and Global Transaction(JTA)
darrenzhu
javaspringlocalglobaltransaction
Configuring Spring and JTA without full Java EE
http://spring.io/blog/2011/08/15/configuring-spring-and-jta-without-full-java-ee/
Spring doc -Transaction Management
http://docs.spring.io/spri
- Linux命令之alias - 设置命令的别名,让 Linux 命令更简练
dcj3sjt126com
linuxalias
用途说明
设置命令的别名。在linux系统中如果命令太长又不符合用户的习惯,那么我们可以为它指定一个别名。虽然可以为命令建立“链接”解决长文件名的问 题,但对于带命令行参数的命令,链接就无能为力了。而指定别名则可以解决此类所有问题【1】。常用别名来简化ssh登录【见示例三】,使长命令变短,使常 用的长命令行变短,强制执行命令时询问等。
常用参数
格式:alias
格式:ali
- yii2 restful web服务[格式响应]
dcj3sjt126com
PHPyii2
响应格式
当处理一个 RESTful API 请求时, 一个应用程序通常需要如下步骤 来处理响应格式:
确定可能影响响应格式的各种因素, 例如媒介类型, 语言, 版本, 等等。 这个过程也被称为 content negotiation。
资源对象转换为数组, 如在 Resources 部分中所描述的。 通过 [[yii\rest\Serializer]]
- MongoDB索引调优(2)——[十]
eksliang
mongodbMongoDB索引优化
转载请出自出处:http://eksliang.iteye.com/blog/2178555 一、概述
上一篇文档中也说明了,MongoDB的索引几乎与关系型数据库的索引一模一样,优化关系型数据库的技巧通用适合MongoDB,所有这里只讲MongoDB需要注意的地方 二、索引内嵌文档
可以在嵌套文档的键上建立索引,方式与正常
- 当滑动到顶部和底部时,实现Item的分离效果的ListView
gundumw100
android
拉动ListView,Item之间的间距会变大,释放后恢复原样;
package cn.tangdada.tangbang.widget;
import android.annotation.TargetApi;
import android.content.Context;
import android.content.res.TypedArray;
import andr
- 程序员用HTML5制作的爱心树表白动画
ini
JavaScriptjqueryWebhtml5css
体验效果:http://keleyi.com/keleyi/phtml/html5/31.htmHTML代码如下:
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"><head><meta charset="UTF-8" >
<ti
- 预装windows 8 系统GPT模式的ThinkPad T440改装64位 windows 7旗舰版
kakajw
ThinkPad预装改装windows 7windows 8
该教程具有普遍参考性,特别适用于联想的机器,其他品牌机器的处理过程也大同小异。
该教程是个人多次尝试和总结的结果,实用性强,推荐给需要的人!
缘由
小弟最近入手笔记本ThinkPad T440,但是特别不能习惯笔记本出厂预装的Windows 8系统,而且厂商自作聪明地预装了一堆没用的应用软件,消耗不少的系统资源(本本的内存为4G,系统启动完成时,物理内存占用比
- Nginx学习笔记
mcj8089
nginx
一、安装nginx 1、在nginx官方网站下载一个包,下载地址是:
http://nginx.org/download/nginx-1.4.2.tar.gz
2、WinSCP(ftp上传工
- mongodb 聚合查询每天论坛链接点击次数
qiaolevip
每天进步一点点学习永无止境mongodb纵观千象
/* 18 */
{
"_id" : ObjectId("5596414cbe4d73a327e50274"),
"msgType" : "text",
"sendTime" : ISODate("2015-07-03T08:01:16.000Z"
- java术语(PO/POJO/VO/BO/DAO/DTO)
Luob.
DAOPOJODTOpoVO BO
PO(persistant object) 持久对象
在o/r 映射的时候出现的概念,如果没有o/r映射,就没有这个概念存在了.通常对应数据模型(数据库),本身还有部分业务逻辑的处理.可以看成是与数据库中的表相映射的java对象.最简单的PO就是对应数据库中某个表中的一条记录,多个记录可以用PO的集合.PO中应该不包含任何对数据库的操作.
VO(value object) 值对象
通
- 算法复杂度
Wuaner
Algorithm
Time Complexity & Big-O:
http://stackoverflow.com/questions/487258/plain-english-explanation-of-big-o
http://bigocheatsheet.com/
http://www.sitepoint.com/time-complexity-algorithms/