- 2021-06-07 Do What You Are Meant To Do
春生阁
Don’tgiveupontryingtofindbalanceinyourlife.Sticktoyourpriorities.Rememberwhat’smostimportanttoyouanddoeverythingyoucantoputyourselfinapositionwhereyoucanfocusonthosepriorities,ratherthanbeingpulledbyt
- 刻在墙上的名字
赵石花
西城男孩开线上演唱会啦!Westlife一生推,完整学会的第一首英文歌就是《mylove》,某年元旦表演还唱过《youraisemeup》,最狠的是,初中女厕所墙上都被人刻上了西城男孩的名字。帅男孩披荆斩棘成了圆润大叔,但这唱歌的状态依然在线,中文歌也不带怕的。迎接新年最棒的表演!
- 随摘
桔桔岛
Oneshouldcaremoreaboutone'sowngrowthinsteadofothers.Toliveahappylife,oneshouldalwaystryeveryefforttominimizeregretsinlife.比起时刻注视着他人,多关注自身的成长,尽自己的一切努力让生活少点遗憾,才能过上快意人生。Whenoneshiftstheirfocusfromotherst
- 2020-04-09奋进的周四
深山含笑空凝峡谷
从小就特别希望和别人不一样。瞪着一双很乖的眼睛目不转睛看老师,嘴上不说心里没放下过独特眼光和taste也是从幼年就形成了。要视角不同,创新,玩点别的花样和审美有些概念让自己想起来就会有点兴奋比如life-hacker/量化自我/digitalnormad/自由编舞师/读书社群leader/coach/创作者自我的形成/个体的觉醒/作为创作者,一定要有信心——我做的创作的,即使有人做过类似的了,我做
- Jetpack LiveData源码分析
xiangxiongfly915
#AndroidJetpack系列JetpackLiveData源码分析
文章目录JetpackLiveData源码分析前提源码分析注册订阅流程LiveData#observe()LifecycleRegistry#addObserver()ObserverWithState#dispatchEvent()LiveData#removeObserver()LiveData$LifecycleBoundObserver类LifecycleBoundObserver#sho
- 吃烤肉
瑾夕儿
李瑾夕图片发自AppIamusedtoenjoyinglife,andIamusedtofeelingahotlifeinmylife.图片发自AppIhopethatyourloveforlifewillbereplacedbyonepointandwillnotbearyourresults.图片发自AppChina'sfoodculture,ifithasalonghistory,isals
- 【早安心语】
壹典心理咨询
【2021-6-9】早安春夏秋冬Nomatterhowdifficultitis,keepyourheadupstrong.Lifeisanawakening.Don’tbeyesterday,don’ttomorrow.Aslongastoday,liveinthepresentandlooktothefuture.Lifeisanattitude.Acalmmindisnaturallybro
- 【早安心语】
壹典心理咨询
【2021-10-22】早安春夏秋冬Lifeisnoteasy,thekeytoseehowyoulive,itissaidthateveryone'slifeshouldshedthenumberoftearsisnotthesame,somepeopleathousandtears,somepeople10,000tears,somepeoplemore,thesetearscombinedh
- 名诗我译(伊丽莎白·布朗宁篇)——Sonnets From The Portuguese(34) 葡萄牙的十四行诗 第34首
臻念
译文:真念一思作者:伊丽莎白·布朗宁Withthesameheart,Isaid,I'llanswertheeAsthose,whenthoushaltcallmebymyname--Lo,thevainpromise!Isthesame,thesame,Perplexedandruffledbylife'sstrategy?Whencalledbefore,ItoldhowhastilyIdro
- android系统设计模式
轻口味
Android系列android设计模式
Android官方架构组件介绍之LifeCycle,Android架构组件一共包括以下几个:LifeCycle:与Activity和Fragment的生命周期有关LiveData:异步可订阅数据,也是生命周期感知ViewModel:视图数据持有模型,也是生命周期感知Room:SQLite抽象层,用于简化SQLite数据存储官网设计原则Android应用程序的开发使用Java编写,在架构上使用MVC
- 1(新生、音乐、虔诚和勤奋)
二瘦不太傻
原文:Thouhastmademeendless,suchisthypleasure.Thisfrailvesselthouemptiestagainandagain,andfillestiteverwithfreshlife.Thislittlefluteofareedthouhastcarriedoverhillsanddales,andhastbreathedthroughitmelodie
- Android-Jetpack架构组件(二)带你了解Lifecycle,给2021的移动开发一些建议
flutter架构师
程序员面试移动开发android
@OverrideprotectedvoidonResume(){super.onResume();myPresenter.onResume();}@OverrideprotectedvoidonPause(){super.onPause();myPresenter.onPause();}}classMyPresenter{《Android学习笔记总结+最新移动架构视频+大厂安卓面试真题+项目实战
- 间隔年 の 2012 | 东南亚 (一)南宁
looynne
引我不是易安于现状之人。这些年走过的地方,从未认真记录,实在是羞于分享年少轻狂之认知。然几近不惑,回顾每一段历程,怕再不提笔,终将忘却。“Welovetheplacewehate,thenhatetheplacewelove;Weleavetheplacewelove,thenspendalifetimetryingtoregainit."曾对生我养我之地又爱又恨,时刻想要逃离。走过千山万水顿悟,
- 2.28
云中江山
图片发自Appitisbettertomanagepresentthanworryaboutthefuturelifeislikegamemissiononlyafteryoupassitcanyoufigureoutwhatisthenextsoliveagoodlifeanddonotwastetimestudyhardandkeeponenrichingyourselfonlyinthisw
- python自动安装windows软件_python模块 - pywinauto(windows自动化安装软件)
weixin_39837105
GUI窗口查询工具spy++litepywinauto模块原理:https://www.cnblogs.com/testlife007/p/4710599.htmlpywhinayto常用功能http://hao.imrrp.com/blog.php?id=4538点击事件:https://blog.csdn.net/weixin_40161673/article/details/83246861
- Android Camera原理之camx hal架构_libcamhal
2401_85039631
android架构
libcamxncs\libstripingLOCAL_WHOLE_STATIC_LIBRARIES:=libcamxdspstreamerlibcamxhwlbpslibcamxgeneratedlibcamxhallibcamxhalutilslibcamxhwlfdlibcamxhwlifelibcamxhwlipelibcamxhwliqmodulelibcamxswlfdmanagerl
- AAC---LiveData
None_Ling
LiveDataLiveData是一个与Activity/Fragment生命周期相关(lifecycle-aware)的Observer类。而这种相关性(awareness)会导致LiveData中的数据只有在Active状态下才会被回调。我们可以通过实现了LifeCycleOwner接口的对象来提供生命周期的感知。而LiveData这种方式会使得不用再考虑Activity或者Fragment的
- 【每天一句,30天学好英语】
壹典心理咨询
【2023-1-25】早安春夏秋冬Lookingatlifewithasimpleeye,peoplecanonlyliveonce!Don'tlivetootired!Ifwecanholdanormalheart,sitandwatchthecloudsriseandfall,theflowersblossomandthankyou,andthevicissitudesoflife,wecan
- Tomcat部署报错:org.apache.catalina.LifecycleException: 无法启动组件[StandardEngine[Catalina].StandardHost[/**]
Faith-J
tomcatapachejava
报错内容17-May-202217:36:34.786信息[main]org.apache.catalina.core.StandardEngine.startInternal正在启动Servlet引擎:[ApacheTomcat/8.5.78]17-May-202217:36:34.811信息[localhost-startStop-1]org.apache.catalina.startup.H
- 7.17 元认知反思与计划
我在走向财富自由之路
有点冷多云12度坚持第253/270天AnythingthatMindcanconceiveandbelieve,itcanachieve.Mergewithmysuperconscioustobeapowerfulcreatorinlife.Developprosperityconsciousnesseverydaytobemynormalstate.Takenewactiontocreaten
- 一碗英语|书籍推荐 《戴珍珠耳环的少女》: Life is a folly.
碗上
图片发自App十七世纪的荷兰画家维米尔创作的《戴珍珠耳环的少女》(GirlwithaPearlEarring)可谓无人不知,被誉为“北方的蒙娜丽莎”,画中女子欲言又止、似说还笑的容颜打动了无数人,同样给英国女作家特蕾西·雪佛兰(TracyChevalier)带来了灵感,同名小说便由此诞生。在小说中,画家维米尔和画中的少女葛叶丽成为了男女主角,贫苦的画家已有家室,暗生情愫的少女明知这一切不会有结局,
- oracle 扩容undo,【案例】Oracle RAC数据库undo使用率较高的解决思路办法
南门居士-杜锦刚
oracle扩容undo
天萃荷净Oracle研究中心案例分析:运维DBA反映Oracle数据库undo使用较大,结合案例分析undo使用问题。本站文章除注明转载外,均为本站原创:转载自lovewife&lovelife—Roger的Oracle技术博客本文链接地址:aboutUndoTablespaceusedHigh今天有朋友在问关于undo使用很高的问题,这个问题其实很常见了,上次也正好处理过一起,客户的3节点rac
- 3月13日日记【react lifecycle】
钟志弘
写得太早都不知道说些什么。Reactreact组件生命周期分别是(可能已经增加了,但是我不知道):componentWillMount()componentDidMount()componentWillReceiveProps(nextProps)shouldComponentUpdate()componentWillUpdate()//render()//orcomponentDidCatch(
- 刘亦菲教你读英文
一瓣山河
《StillnessSpeaks》Thoughts,emotions,senseexperiences,andwhateveryouexperience,makeupthecontentofyourlife.“Mylife”iswhatyouderiveyoursenseofselffrom,andmylifeiscontent,orsoyoubelieve“你的生活”是你自我意识的衍生Youco
- Maven生命周期详解
明月几时有666
mavenlifecyclephasegoal
文中加粗显示的英文是在官方文档中出现的术语,我使用的相应术语的中文翻译,不能保证十分准确,严谨起见,在使用中文直译的术语后,使用了对应的英文属于。由于博主水平有限,非常欢迎大家能够批评指正。一构建声明周期基础知识我们在日常中,经常提及Maven(美式发音/ˈmeɪvn/)中的一个专业术语:声明周期Lifecycle,然而,它在官方文档中的名称却是:BuildLifecycle(直译为,构建生命周期
- 日常随笔|“你知道为什么女孩要努力吗?”
秋刀鱼的梦
一“Doyouknowwhydoesagirlworkhard?Firstly,toseeabiggerworldWhat’smoreTohavetheopportunitytochooseourlifeGiveparentsandrelativesabatterlife.AlsoyoucanachieveyourdreamsAndbecomesomeoneyouwillfallinlovewit
- 基于Golang的云原生日志采集服务设计与实践
程序员小乐
运维java大数据kubernetes编程语言
点击上方"编程技术圈"关注,星标或置顶一起成长后台回复“大礼包”有惊喜礼包!每日英文Intheend,it'snottheyearsinyourlifethatcount.It’sthelifeinyouryears.人生到头来,你活了多少岁不算什么,重要的是,你是如何度过这些岁月的。每日掏心话但凡会错过,一定不是最好的。有时候不是不明白,而是明白了也无能为力,于是就保持了沉默。责编:乐乐|来自:
- nice sentences(摘录)
Silvenli
Nothinginlifeistobefeared,itisonlytobeunderstood.Nowisthetimetounderstandmore,sothatwemayfearless.——居里夫人Therealvoyageofdiscoveryconsistsnotinseekingnewlandscapes,butinhavingneweyes.真正的发现之旅不在于寻找新的风景,而在
- 3.3.1 Life & Conditions 2
亲爱的末日
Inmoderntimeswehumansfacechangingconditions.Forhumanstolive,weneedcleanairandcleanwater.Pollutionisnowagrowingproblemaroundtheworld.Pollutionpoisonstheairandwaterthatwedependon.Pollutedairmakespeoples
- Bilingual engineering 201707 No.360 Alyee
AlyeeBonnie
GamesandDailylife:Makealittlemousewithher.Steps1.Useorangepapertomakeacone2.Maketworoundearsandalongtailwiththeorangepaper3.Cutasmallpieceofblackpapertomakethemouseswhiskers4.Pasteallthepartstogether5
- 深入浅出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,
-- 姓