- 2022-11-13 晨间日记
Lily17
今天是什么日子起床:8:50就寝:10:30天气:晴心情:一般纪念日:无总目标:学习网盘课程,阅读电子书籍日常记录:7:00英语16:54日记微习惯:微习惯1:每天听国学,得到,抖音执行情况:未完成微习惯2:每天早起阅读1页书籍执行情况:完成,微习惯3:每天早上学习30分钟英语执行情况:完成微习惯4-1:搜集选题和素材执行情况:未完成4-2整理素材执行情况:未完成4-3撰写短文执行情况:未完成微习
- 2022-11-13
刘艳佳三好生活倡导
我的健康我做主(第十一部)15-中医的六大要点面对同一个病人,中医和西医大夫经常看到的不同的情况,两种医学理论两种不同的治疗手段,他们根本的分歧就在于他们是在不同的文化背景和哲学基础上产生的医学。物质实体是西方哲学最核心的范畴,相反,我们中国人不重视物质实体,而重视关联实在,具体的说,中医是关于人的生命过程以及它的运动方式的相互关联的学说。它以促进人的自我实现、自我发展、自我和谐为宗旨,强调生命的
- 2022-11-13
推个小车安稳走
每天都在期盼快点解封,今天第二十六天了,一天天过的浑浑噩噩,没有章法,以前前几天还和老公吵吵架,现在连说话都懒得说了,每天就很焦虑,不知道自己要干嘛,刷刷视频,再看看孩子,觉得好没有意思,头也不梳,衣服也不换,像具行尸走肉,这样的日子真的是糟糕透顶了…
- 2022-11-13
说痫话
抗癫痫药物应该怎样选择?现在患癫痫病的朋友越来越多,癫痫病的治疗现在也是人们关心的一个问题,很多的患者认为癫痫病是不能够治疗好的,所以就会产生自暴自弃的情绪,其实癫痫病是能够治疗好的,只是需要看治疗癫痫病的方法是否符合疾病,现在大多的患者都使用药物治疗的方法进行控制.首先药物治疗要做到对症下药,所以在选择药物前患者需要做详细的检查,找到确切的病因以及疾病的类型,根据医生的诊断,选择合理的药物,并且
- 2022-11-13
da56506e81ec
2022-11-13没有谁的原生家庭是完美无缺的也没有谁的人生是一帆风顺的生活不在过去,生活不在未来,生活不在头脑的想象里,生活只在每一个当下的体验里。体验当下的每一个时刻,好的坏的,美的丑的,想要的不想要的。
- 2022-11-13
素履之往矣
当时间过滤掉日常的琐细,人生到了暮年再回望,会发现一辈子行来,那拐弯处的关节点,也就那么有限的几个,比如,求学啊,就业啊,成婚啊,遇到重要的谁了,碰到了什么事啦,林林总总,当时都似现场直播一样,于偶然间乍然来临,它们却自是按命运自有的底层逻辑,无声无息以上帝视角在一样样推演。这冥冥之中的一股力量,我们无以名之,只是简单笼括为“缘分”二字。
- 2022-11-13
文字先生
一次意外的积极行动,让我看到了自己身上的巨大潜力,也让我深刻地意识到,困境其实是可以突破的,只要自己不放弃,努力想办法,就一定能够发现更好的选择。过去,每次感到不如意的时候,我就会在心里抱怨:为什么没有人懂得欣赏我,为什么没有人给我机会呢?经历过这件事情之后,我意识到,机会不是等来的,也不是他人给的,而是需要自己去创造。之后,我就一直把“如果没有,为什么不自己去创造”当成了自己的座右铭
- 2022-11-13
高灯儿下亮
经验不足的人办砸了事,就两个原因:1,不了解内部文化,行事草率,精准度不到位2,不了解真正的大环境,用力过猛民间文化一大堆,跟什么样的人谈什么样的话,没信仰主要为了赚钱嘛所以,谈话不时时刻刻主要维护信仰第一位,反而怎么用信仰赚钱第一位这是挖墙角,不赚大钱只是薅羊毛,赚了大钱就是国之巨孽所以,有信仰的人要注意区分,不要因辨认不明,玷污了自己的信仰,还培养了巨恶那个时候对有信仰的人来说,这比自己犯罪都
- 2022-11-13
不只有甜
现在的社会过于浮躁,而且又太追求一些速成的东西,所以容易大喜大悲。仔细想想,我们不可能一下子变得优秀,不可能立马就减掉肥肉,也不可能一下子就培养出一个好习惯。慢慢会发现,任何事情都需要一个过程,这个过程是成长进步的一部分,急躁是没有用的,焦虑和迷茫只会阻碍我们前进的脚步,所以不要着急去期待最后的结果,只要认真对待这个过程,相信期待的那个结果一定不会差。学会释怀,不要把自己拘泥于一个不好的负面的世界
- 2022-11-13
癫痫冷知识
颞叶癫痫如何治疗?对于癫痫病相信很多人都是听说过的,但是对于癫痫病类型,了解的人却不多,颞叶癫痫病就是一种对患者身心健康有着极大危害的脑部疾病,这种疾病的出现对患者的脑部健康甚至都是有影响的,所以一旦发现这种疾病就要尽快的接受治疗。药物治疗,这是治疗癫痫病常用的方法,在进行药物治疗的时候,大家一定要遵照医嘱要服药,要按时按量服药,千万不要更改药物的种类或者剂量,大家若是擅自进行操作,非常有可能会导
- 2022-11-13
Hong2022
心理学上的“麦拉宾法则”,也叫“7/38/55定律"人们在进行语言交流时:55%的信息是通过视觉传达的,如手势、表情、外表、妆扮、肢体语言、仪态等等。38%的信息是通过听觉传达,如说话的语调、声音的抑扬顿挫等等。剩下只有7%来自纯粹的语言表达。
- 2022-11-13
祝澜
祝澜1782天2022-11-13读书笔记:反馈与晤谈一样重要,反馈阶段会把当事人自己努力建设的答案中一些较有帮助的观点加以组织与强化,以促进改变的执行者——当事人行动的产生。反馈主要可分为三个部分:赞美、桥梁和建议。建议又有两种类型:观察型建议和行为型建议。“提供什么样的建议”和“怎么给建议”,是反馈中最难的一部分。
- 2022-11-13
ddxYu
晨间计划美好生活始于毕业,美好期盼始于毕业,五彩人生始于毕业.先完成有效学习时长6小时,再研究其它练字与记账晚间总结今日有效学习时长328分钟已练字已记账已完成论文凝聚方面的修改练字方面投入时间有点长明日计划有效学习时长6小时练字与记账
- 2022-11-15
彩云家庭陪伴师
坤学觉察日记:时间:2022-11-13姓名:王彩云团组名:5团-3组一、今日五福人生成果觉察:①父母孝道:早起看到老爸在会议室分享,特别的有力量,带老爸来学习真是来对了②夫妻关系:早晨我在打开视频听课,老公来到我身边,说了句早上好,然后抱着我脸就亲,我赶紧关掉视频[爱心]没被你们看见[呲牙]③亲子方面:给儿子打电话问问今天开心不开心,今天都干什么啦④工作事业:打了2个讲话,邀约朋友听周五明坤老师
- 2022-11-13
光阴里那些手绘的花朵
在家里待时间长了,难免都会有不愉快的情绪,小孩也有。于是,吃过早饭边带儿子去湖边玩耍。他穿着米白色的裤子,穿白色的鞋子,本以为他能够穿的干干净净。谁曾想到了湖边边去草丛里找石头,团泥巴玩儿。身上弄得脏兮兮的,甚至用羽绒服兜着自己团的泥蛋。很想练练手,不过一想到他童年的快乐也不过如此,明年就上一年级了,好好的放纵一下吧。傍晚的时候去爬山了,离小区最近的一座山,当我们爬上去的时候,遇到了凶猛的狗在那里
- 2022-11-13
4bb2f1292d1e
开心今天早上醒的太早了,现在有些困意了,想说什么话,不少呢。1今天陪二姐去医院,她有事能想到我,我觉得她还是把我当做亲人,其实应该她一直拿我当亲人,是我自己的心封闭没有打开,让我想起那天晚上我带儿子去医院的时候,我也想起了她,但并没有联系她,觉得还是把自己隔离了吧!她今天也没有问,孩子现在怎么样了,或者关心一下,只是听我说,心里多少有些小失落,其实这只是行为,而我心里的需求,是渴望她的关心和爱!行
- 2022-11-13
叛逆的怜悯
今天在国家新出台的防疫政策,和市民的双重压力下我市终于解封了。但是像我们村这样的重灾区是没有办法解封的,只是对没有居家隔离的按照“一户一证”的原则发放临时通行证。对于在目前我市疫情未能完全控制的情况下就解封,网友们在社交媒体上褒贬不一。有欢呼雀跃的,有忧心忡忡的,真不知道是病毒胜利了还是人类胜利了。
- 2022-11-13
木子1987
昨天陪孩子去参观污水处理厂,参观完之后,做科学小实验小铭同学真是奇思妙想首先沾上自己的口水在PH试纸测试为酸性再次去卫生间拉尿,用自己的尿液做测试全程就是一个蹦蹦跳跳的小猴子结尾主持人邀请他上台第二个做分享他回答水是液体,口水和尿液也是液体啊于是就想拿试纸测试这小子真是思维开拓。全程认真观摩,不做影评。回家路上问他学会了什么……相信这次的活动对他非常有意义。
- 2022-11-13
纤一瑜伽郭郭
11.13今天休息想着昨天资源还差,今天一上午去广场加了2个资源,加得有点艰难,但仿佛又进步了一点点,加油,只要在进步,就是好现象,慢一点不怕,毕竟年纪有点大
- 2022-11-13
快乐有我_c00f
大荔县心理咨询协会郭亚婵坚持分享第713天:学习打卡第13天:(反馈)在咨询反馈阶段,咨询师会整理出当事人所能理解与接收的语言与方式,同时关注当事人的目标与资源。反馈阶段会把当事人自己努力建立的答案中一些较有帮助的观点加以组织与强化,以促进改变的执行者——当事人行动的产生。对于处于危机中的当事人,会大量探讨应对策略,于反馈时,通常会有组织的集中在建议当事人继续去做其于应对对话中已找到的有效方法。反
- 2022-11-13
癫痫冷知识
癫痫治疗用什么办法好的快?说到癫痫治疗,很多患者都非常头疼,因为大家不知道应该选择什么治疗方法好,大家都想要尽早的治疗好癫痫病,但是各种治疗癫痫病的方法都是各有利弊的,所有我们要对癫痫病治疗方法进行选择,首先要弄清楚患者的病情究竟是什么情况,然后才可以指定具有个性化的癫痫病治疗方案。药物治疗:采用抗癫痫药物来治疗癫痫病是很多患者的选择,因为这种治疗方法既能够控制癫痫病的发作,但是若是大家想要尽快的
- 2022-11-13
说痫话
老年癫痫病患者可以采用哪种治疗方法?癫痫病是一种极具危害性的慢性疾病,近几年,很多人都遭受到癫痫病带来的折磨,而且癫痫病的发病率还在不断的上升,特别是老年人,由于年龄的不断增大,身体素质开始逐渐下降,这个时候就容易遭到疾病的入侵,而癫痫病也是老年人极易产生的一种疾病.为您介绍,老年癫痫病患者可以采用的治疗方法有以下几种:手术治疗:手术治疗虽然具有一定的风险,但是若是老年癫痫病患者病情已经十分严重了
- 2022-11-21
彩云家庭陪伴师
坤学觉察日记:时间:2022-11-13姓名:王彩云团组名:5团-3组一、今日五福人生成果觉察:①父母孝道:给老爸发信息问候②夫妻关系:给他更多的理解和包容③亲子方面:和孩子们一起上课学习④工作事业:练习发问,聆听,直接沟通⑤健康身心:心情愉悦二、今日福报转念:(O:今天发生什么事?R:当时有哪些负面情绪?什么原因?怎么想的?I:当时怎么转的念?D:以后再遇到这种情况,下一步怎么做?)①O:中午吃
- 2022-11-13晨间日记
一个人的快乐
今天是什么日子起床:6:00就寝:10:30天气:阴心情:愉快纪念日:无任务清单昨日完成的任务,最重要的三件事:吃饭睡觉读书改进:书读的有点少,今日的多读10页习惯养成:每日读书周目标·完成进度一周一本书已完成一半学习·信息·阅读在读《真香定律》健康·饮食·锻炼一日三餐正常,锻炼一小时人际·家人·朋友打电话问侯工作·思考多看专业书籍,解决工作困惑最美好的三件事1.早起慢跑2.好好吃饭3.每天阅读思
- 2022-11-13
b3220cbbf62a
今天去吃酒,遇到一位我参加工作时从一年级接的第一届学生彬雪!她现在在沙土五中读高一,本该读高二的,但由于第一次中考没考上,父母花了高价去宏志复读了一年的初三。在那一届学生有好多考上高中的,但彬雪父母不愿意让孩子读职校,于是她便选择了高费复读。恰好看到杨东平老师写的——我们今天如何看待职业教育,我觉得讲得很好,便引用了。实际上我们都知道在中国上职业学校是一个无奈的选择,或者说被认为是一种失败者的选择
- 2022-11-13
素心如竹焦点团队
分享第556天,拥抱不确定性由于疫情防控,小妹家单元楼封控,上高三的外甥学校休息,理所当然有了一个光荣使命,接外甥来我家住,领到这个任务就筹划着外甥爱吃什么爱喝什么,怎么铺换被褥等。既高兴能为外甥服务又唯恐照顾不好。筹备如下:由于疫情不允许出去采购,就打电话让水果店老板视频挑水果让同城顺丰配送。上午早早从冰箱拿出一包鸡子化冻准备下午炒我拿手的鸡子。活了发面蒸馒头(晚上外甥吃了三个枣包,太给老姨面子
- 2022-11-13
聊癫痫
脑外伤引起的癫痫有办法治疗吗?癫痫,也就是我们俗称的“母猪疯”,有很多类型,其中因脑外伤引起的癫痫病被称为“脑外伤癫痫”,是外伤性癫痫的一种,也是现在较为常见的癫痫类型。脑外伤癫痫对患者也有着很大的危害,所以大家在平时要积极避免这种癫痫病的发病,要保护好脑部健康,平时出门要注意安全。对脑外伤癫痫的治疗要尽早,越早接受治疗,治疗好癫痫的几率就越大,也能够越早的控制住癫痫的发作,使患者少受癫痫发作的困
- 2022-11-13
随遇而安smile
六点多醒来,发现领导凌晨一点的信息,回复了下。刷牙洗漱,继续开始干活。似乎不是很喜欢热闹的人,可通常一个人久了,也希望有个人陪伴,只是时间久了,会略显麻烦。总感觉像在漂泊,即使父母安在,兄弟无恙,内心还是想有自己的独立空间,比较自在,自由的生活吧。近3年会是比较大的变化,工作,家庭以及流水,且徐行吧,谁怕,我辈自有各自福。
- 2022-11-13
元素瑜伽若涵
还是喜欢快节奏的工作状态,要不然天天就是吃吃喝喝,除了涨肉肉,还会消磨斗志……感恩宇宙赐予我的无限能量❤️感恩我最最亲爱的爸爸妈妈❤️感恩所有的小姐姐❤️感恩小伙伴的相扶相持❤️感恩依旧美好的自己❤️目标打卡200W200W200W200W200W200W200W200W200W200W200W200W
- 2022-11-13
faf3513dfb45
深秋秋高气爽秋风习习色渐渐变凉今天早上去做核酸的时候我发现小区里的路上都是影响都是树叶遍地都是飘落下来的梧桐树叶落在路上像一张金黄色的地毯我走在小区路上我拾起一片梧桐树叶仔细观察我发现它的颜色呈深褐色形状像一只大鹅的脚掌梧桐树的叶脉弯弯曲曲的有好像一只梅花鹿的鹿角我继续向前走我一不小心踩到了一片梧桐树的树叶脚下立即发出清脆的响声我的心里不由得为他感到悲伤那一定是梧桐树的树叶最后的歌声了吧不知不觉我
- 深入浅出Java Annotation(元注解和自定义注解)
Josh_Persistence
Java Annotation元注解自定义注解
一、基本概述
Annontation是Java5开始引入的新特征。中文名称一般叫注解。它提供了一种安全的类似注释的机制,用来将任何的信息或元数据(metadata)与程序元素(类、方法、成员变量等)进行关联。
更通俗的意思是为程序的元素(类、方法、成员变量)加上更直观更明了的说明,这些说明信息是与程序的业务逻辑无关,并且是供指定的工具或
- mysql优化特定类型的查询
annan211
java工作mysql
本节所介绍的查询优化的技巧都是和特定版本相关的,所以对于未来mysql的版本未必适用。
1 优化count查询
对于count这个函数的网上的大部分资料都是错误的或者是理解的都是一知半解的。在做优化之前我们先来看看
真正的count()函数的作用到底是什么。
count()是一个特殊的函数,有两种非常不同的作用,他可以统计某个列值的数量,也可以统计行数。
在统
- MAC下安装多版本JDK和切换几种方式
棋子chessman
jdk
环境:
MAC AIR,OS X 10.10,64位
历史:
过去 Mac 上的 Java 都是由 Apple 自己提供,只支持到 Java 6,并且OS X 10.7 开始系统并不自带(而是可选安装)(原自带的是1.6)。
后来 Apple 加入 OpenJDK 继续支持 Java 6,而 Java 7 将由 Oracle 负责提供。
在终端中输入jav
- javaScript (1)
Array_06
JavaScriptjava浏览器
JavaScript
1、运算符
运算符就是完成操作的一系列符号,它有七类: 赋值运算符(=,+=,-=,*=,/=,%=,<<=,>>=,|=,&=)、算术运算符(+,-,*,/,++,--,%)、比较运算符(>,<,<=,>=,==,===,!=,!==)、逻辑运算符(||,&&,!)、条件运算(?:)、位
- 国内顶级代码分享网站
袁潇含
javajdkoracle.netPHP
现在国内很多开源网站感觉都是为了利益而做的
当然利益是肯定的,否则谁也不会免费的去做网站
&
- Elasticsearch、MongoDB和Hadoop比较
随意而生
mongodbhadoop搜索引擎
IT界在过去几年中出现了一个有趣的现象。很多新的技术出现并立即拥抱了“大数据”。稍微老一点的技术也会将大数据添进自己的特性,避免落大部队太远,我们看到了不同技术之间的边际的模糊化。假如你有诸如Elasticsearch或者Solr这样的搜索引擎,它们存储着JSON文档,MongoDB存着JSON文档,或者一堆JSON文档存放在一个Hadoop集群的HDFS中。你可以使用这三种配
- mac os 系统科研软件总结
张亚雄
mac os
1.1 Microsoft Office for Mac 2011
大客户版,自行搜索。
1.2 Latex (MacTex):
系统环境:https://tug.org/mactex/
&nb
- Maven实战(四)生命周期
AdyZhang
maven
1. 三套生命周期 Maven拥有三套相互独立的生命周期,它们分别为clean,default和site。 每个生命周期包含一些阶段,这些阶段是有顺序的,并且后面的阶段依赖于前面的阶段,用户和Maven最直接的交互方式就是调用这些生命周期阶段。 以clean生命周期为例,它包含的阶段有pre-clean, clean 和 post
- Linux下Jenkins迁移
aijuans
Jenkins
1. 将Jenkins程序目录copy过去 源程序在/export/data/tomcatRoot/ofctest-jenkins.jd.com下面 tar -cvzf jenkins.tar.gz ofctest-jenkins.jd.com &
- request.getInputStream()只能获取一次的问题
ayaoxinchao
requestInputstream
问题:在使用HTTP协议实现应用间接口通信时,服务端读取客户端请求过来的数据,会用到request.getInputStream(),第一次读取的时候可以读取到数据,但是接下来的读取操作都读取不到数据
原因: 1. 一个InputStream对象在被读取完成后,将无法被再次读取,始终返回-1; 2. InputStream并没有实现reset方法(可以重
- 数据库SQL优化大总结之 百万级数据库优化方案
BigBird2012
SQL优化
网上关于SQL优化的教程很多,但是比较杂乱。近日有空整理了一下,写出来跟大家分享一下,其中有错误和不足的地方,还请大家纠正补充。
这篇文章我花费了大量的时间查找资料、修改、排版,希望大家阅读之后,感觉好的话推荐给更多的人,让更多的人看到、纠正以及补充。
1.对查询进行优化,要尽量避免全表扫描,首先应考虑在 where 及 order by 涉及的列上建立索引。
2.应尽量避免在 where
- jsonObject的使用
bijian1013
javajson
在项目中难免会用java处理json格式的数据,因此封装了一个JSONUtil工具类。
JSONUtil.java
package com.bijian.json.study;
import java.util.ArrayList;
import java.util.Date;
import java.util.HashMap;
- [Zookeeper学习笔记之六]Zookeeper源代码分析之Zookeeper.WatchRegistration
bit1129
zookeeper
Zookeeper类是Zookeeper提供给用户访问Zookeeper service的主要API,它包含了如下几个内部类
首先分析它的内部类,从WatchRegistration开始,为指定的znode path注册一个Watcher,
/**
* Register a watcher for a particular p
- 【Scala十三】Scala核心七:部分应用函数
bit1129
scala
何为部分应用函数?
Partially applied function: A function that’s used in an expression and that misses some of its arguments.For instance, if function f has type Int => Int => Int, then f and f(1) are p
- Tomcat Error listenerStart 终极大法
ronin47
tomcat
Tomcat报的错太含糊了,什么错都没报出来,只提示了Error listenerStart。为了调试,我们要获得更详细的日志。可以在WEB-INF/classes目录下新建一个文件叫logging.properties,内容如下
Java代码
handlers = org.apache.juli.FileHandler, java.util.logging.ConsoleHa
- 不用加减符号实现加减法
BrokenDreams
实现
今天有群友发了一个问题,要求不用加减符号(包括负号)来实现加减法。
分析一下,先看最简单的情况,假设1+1,按二进制算的话结果是10,可以看到从右往左的第一位变为0,第二位由于进位变为1。
 
- 读《研磨设计模式》-代码笔记-状态模式-State
bylijinnan
java设计模式
声明: 本文只为方便我个人查阅和理解,详细的分析以及源代码请移步 原作者的博客http://chjavach.iteye.com/
/*
当一个对象的内在状态改变时允许改变其行为,这个对象看起来像是改变了其类
状态模式主要解决的是当控制一个对象状态的条件表达式过于复杂时的情况
把状态的判断逻辑转移到表示不同状态的一系列类中,可以把复杂的判断逻辑简化
如果在
- CUDA程序block和thread超出硬件允许值时的异常
cherishLC
CUDA
调用CUDA的核函数时指定block 和 thread大小,该大小可以是dim3类型的(三维数组),只用一维时可以是usigned int型的。
以下程序验证了当block或thread大小超出硬件允许值时会产生异常!!!GPU根本不会执行运算!!!
所以验证结果的正确性很重要!!!
在VS中创建CUDA项目会有一个模板,里面有更详细的状态验证。
以下程序在K5000GPU上跑的。
- 诡异的超长时间GC问题定位
chenchao051
jvmcmsGChbaseswap
HBase的GC策略采用PawNew+CMS, 这是大众化的配置,ParNew经常会出现停顿时间特别长的情况,有时候甚至长到令人发指的地步,例如请看如下日志:
2012-10-17T05:54:54.293+0800: 739594.224: [GC 739606.508: [ParNew: 996800K->110720K(996800K), 178.8826900 secs] 3700
- maven环境快速搭建
daizj
安装mavne环境配置
一 下载maven
安装maven之前,要先安装jdk及配置JAVA_HOME环境变量。这个安装和配置java环境不用多说。
maven下载地址:http://maven.apache.org/download.html,目前最新的是这个apache-maven-3.2.5-bin.zip,然后解压在任意位置,最好地址中不要带中文字符,这个做java 的都知道,地址中出现中文会出现很多
- PHP网站安全,避免PHP网站受到攻击的方法
dcj3sjt126com
PHP
对于PHP网站安全主要存在这样几种攻击方式:1、命令注入(Command Injection)2、eval注入(Eval Injection)3、客户端脚本攻击(Script Insertion)4、跨网站脚本攻击(Cross Site Scripting, XSS)5、SQL注入攻击(SQL injection)6、跨网站请求伪造攻击(Cross Site Request Forgerie
- yii中给CGridView设置默认的排序根据时间倒序的方法
dcj3sjt126com
GridView
public function searchWithRelated() {
$criteria = new CDbCriteria;
$criteria->together = true; //without th
- Java集合对象和数组对象的转换
dyy_gusi
java集合
在开发中,我们经常需要将集合对象(List,Set)转换为数组对象,或者将数组对象转换为集合对象。Java提供了相互转换的工具,但是我们使用的时候需要注意,不能乱用滥用。
1、数组对象转换为集合对象
最暴力的方式是new一个集合对象,然后遍历数组,依次将数组中的元素放入到新的集合中,但是这样做显然过
- nginx同一主机部署多个应用
geeksun
nginx
近日有一需求,需要在一台主机上用nginx部署2个php应用,分别是wordpress和wiki,探索了半天,终于部署好了,下面把过程记录下来。
1. 在nginx下创建vhosts目录,用以放置vhost文件。
mkdir vhosts
2. 修改nginx.conf的配置, 在http节点增加下面内容设置,用来包含vhosts里的配置文件
#
- ubuntu添加admin权限的用户账号
hongtoushizi
ubuntuuseradd
ubuntu创建账号的方式通常用到两种:useradd 和adduser . 本人尝试了useradd方法,步骤如下:
1:useradd
使用useradd时,如果后面不加任何参数的话,如:sudo useradd sysadm 创建出来的用户将是默认的三无用户:无home directory ,无密码,无系统shell。
顾应该如下操作:
- 第五章 常用Lua开发库2-JSON库、编码转换、字符串处理
jinnianshilongnian
nginxlua
JSON库
在进行数据传输时JSON格式目前应用广泛,因此从Lua对象与JSON字符串之间相互转换是一个非常常见的功能;目前Lua也有几个JSON库,本人用过cjson、dkjson。其中cjson的语法严格(比如unicode \u0020\u7eaf),要求符合规范否则会解析失败(如\u002),而dkjson相对宽松,当然也可以通过修改cjson的源码来完成
- Spring定时器配置的两种实现方式OpenSymphony Quartz和java Timer详解
yaerfeng1989
timerquartz定时器
原创整理不易,转载请注明出处:Spring定时器配置的两种实现方式OpenSymphony Quartz和java Timer详解
代码下载地址:http://www.zuidaima.com/share/1772648445103104.htm
有两种流行Spring定时器配置:Java的Timer类和OpenSymphony的Quartz。
1.Java Timer定时
首先继承jav
- Linux下df与du两个命令的差别?
pda158
linux
一、df显示文件系统的使用情况,与du比較,就是更全盘化。 最经常使用的就是 df -T,显示文件系统的使用情况并显示文件系统的类型。 举比例如以下: [root@localhost ~]# df -T Filesystem Type &n
- [转]SQLite的工具类 ---- 通过反射把Cursor封装到VO对象
ctfzh
VOandroidsqlite反射Cursor
在写DAO层时,觉得从Cursor里一个一个的取出字段值再装到VO(值对象)里太麻烦了,就写了一个工具类,用到了反射,可以把查询记录的值装到对应的VO里,也可以生成该VO的List。
使用时需要注意:
考虑到Android的性能问题,VO没有使用Setter和Getter,而是直接用public的属性。
表中的字段名需要和VO的属性名一样,要是不一样就得在查询的SQL中
- 该学习笔记用到的Employee表
vipbooks
oraclesql工作
这是我在学习Oracle是用到的Employee表,在该笔记中用到的就是这张表,大家可以用它来学习和练习。
drop table Employee;
-- 员工信息表
create table Employee(
-- 员工编号
EmpNo number(3) primary key,
-- 姓