- 如何培养孩子的坚毅力?(转)
绿叶_d570
分析:坚毅力的作用?“坚毅”(英文叫GRIT)的涵义远比毅力、勤勉、坚强都要丰富得多。Grit是对长期目标的持续激情及持久耐力,是不忘初衷、专注投入、坚持不懈,是一种包涵了自我激励、自我约束和自我调整的性格特征。对策:如何培养孩子的坚毅力?一、首先要让孩子找到自己所热爱的事物。坚毅力内涵的第一条就是自我激励,靠外部鞭策和外部施压可能有效一时却不能持久;内在的自我驱动才可以长久有效。二、培养坚毅力离
- D161博远班小作家读写成长营:《国庆见闻》
时间会告诉你答案
一年一度的国庆节终于来到了!假期倒数第二天妈妈抽出时间带去朱备后海烧烤,别提我有多高兴啦!终于来到了朱备后海,我刚下车,阿姨就把我叫上了另一辆车上,车子开了一条弯弯曲曲的石子小路。最终我们来到了一条小河边,岸上有很多大小不一,形状各异的石头,叔叔阿姨们搭起了帐篷,妈妈则串起了各种各样的烧烤!我和小伙伴们脱下鞋袜,跳入小河里抓起小鱼苗来,抓了半天谁也没抓着,但我们玩得不亦乐乎。这时叔叔搭好了吊床,我
- git常用命令
sunny-king
搜索引擎giteegitgithub
1.配置用户信息$gitconfig--globaluser.name"runoob"
[email protected]拉取代码$gitclonegit://github.com/schacon/grit.git3.git提交代码$gitremote-v//查看当前连接地址$gitadd.//命令可将该文件添加到暂存区。gitadd//
- 2020年第二十三周 | 瓶子06号
瓶子笔记本
D161践行时间:2020.06.01-2020.06.07一、职业发展1,学习BIM课程2个,发现自己确实的东西很多,付费学习很有必要;2,边学边用,制作郭总家BIM方案;3,玲姐继续教育;4,周六参与公司团建,第一梯队到山顶,成就感满满。二、财务状况1,下载普惠基金,试手一下;2,共学《香帅的北大金融学课》第四次:降准机会变多是利好,加息流通变少是负面消息,降息流通变多是利好;3,存梦想基金5
- TED:Grit: The power of passion and perseverance(Angela Lee Duckworth))2022-04-03
风灵0010
Grit:Thepowerofpassionandperseverance翻译视频地址:TED中英双语字幕:AngelaLeeDuckworth成功的要诀是什么?是意志力_哔哩哔哩_bilibiliWhenIwas27yearsold,Ileftaverydemandingjobinmanagementconsultingforajobthatwasevenmoredemanding:teachi
- Grit|09 刻意练习:把技术学到位——跟李松蔚学心理咨询
Grit的格林频道
09-Grit大家好,我是Grit,今天我们来拆解学习“跟李松蔚学心理咨询”这一课程合格模块的——刻意练习:把技术学到位。在技术学习上,我们需要分别达到以下这些目标:在自我觉察上,可以拆解出不同的技术要点;认知上,建立每个技术要点和效果之间的关联;操作上,把好的动作变成习惯;细节上,不断优化,精益求精。我们需要进行刻意练习,才能真正把一门技术学到手,要做到主要有两点:1.记录,反馈,优化,迭代,是
- 『坚毅Getting Grit』读书笔记
Yukigogo
愿你独立且闲暇。每一刻都是独特的、无法重复的。每一刻都要充满正面的能量。向着美好奋力前行。我总是很喜欢看到这样鼓舞人心的、励志的话语。有一个想法,在家里布置一个地方,将一些励志的,积极的言语展示出来,根据家人不同的时期,不同的心境去更新。在年前完成这个小目标。为了有更多的时间做其他事情,本年度调整读书节奏,两周看一本书时间是真的充裕了,不过读书笔记还是拖到最后一天,拖延症慢性病。这就是为什么都说为
- linux(ubuntu)MPI安装配置
李公子Lxq
并行计算linuxubuntu并行计算
参考博客:1、https://blog.csdn.net/qq_39709535/article/details/82858793作者:my-GRIT2、https://blog.csdn.net/lusongno1/article/details/61709460作者:陆嵩致敬1、安装包下载-下载mpich-4.0a1https://www.mpich.org/downloads/2、解压打开安
- 考霸训练营D7 构建学习方案
Grit的格林频道
今日作业:1.如何实现可持续的跃迁?2.如何体验到熟练掌握知识的感觉?Grit的回答1.如何实现可持续的跃迁:将课程中所讲的一天内实现跃迁的方法不断坚持,每天都有跃迁,自然就实现了可持续的跃迁;一天之内实现学习跃迁的方法:1.巩固所学,永远是最重要的;Ruleno.1neverloseknowledgeRuleno.2neverforgetruleno.12.划分明确的专题;不要胡子眉毛一把抓,搞
- 2019-06-07
潘燕生
Grit教育警示我们:决定孩子成功的最重要因素,不在于我们给孩子灌输了多少知识,而在于我们是否帮助孩子获得了以Grit为首的七项重要的性格特质。具体说来,一个六岁的孩子是否知道3+2=5根本不重要,重要的是在学习的过程中,TA是否愿意在第一遍回答成3+2=4之后重新尝试,直到得出正确答案为止。我们应教会孩子的不是跑得多快,而是在摔倒之后站起来继续跑,哪怕TA是最后一名。真正的成功往往发生在人们突破
- Grit|03 理论:“叫什么”不重要,“怎么办”最重要——跟李松蔚学心理咨询
Grit的格林频道
03-Grit大家好,我是Grit,今天我们来拆解学习“跟李松蔚学心理咨询”这一课程入门模块的理论内容——“叫什么”不重要,“怎么办”最重要。心理咨询很有多流派,对应了很多理论知识,那我们学习理论知识的正确步骤是怎样的呢?作者给出了3个步骤。第一步,了解这个理论是什么,可以通过看书或是上课的方式找到答案;第二步,训练自己用理论去解释生活中的现象,我们能解释的现象越多,心理咨询的灵活度也就越高;第三
- Grit|08 工作同盟:和你的来访者站在同一边——跟李松蔚学心理咨询
Grit的格林频道
08-Grit大家好,我是Grit,今天我们来拆解学习“跟李松蔚学心理咨询”这一课程合格模块的——工作同盟:和你的来访者站在同一边。在影响咨询效果的因素中,有40%是我们不能改变只能接受的场外因素,有60%是我们可以想办法争取的场内因素,其中,有30%就是咨询者与来访者的关系。咨询者需要和来访者建立合作关系——“工作同盟”,也就是两个人站在一边,它对应有3个原则:1.通过共情,让来访者感受到你的关
- git基本
gakiww
gitclonegit://github.com/schacon/grit.git//克隆项目gitstatus//查看状态gitdiff//查看被修改部分q退出gitadd//添加修改gitcommit-m''//本地提交'',内为本次提交说明信息gitpullorigin分支//拉取线上最新分支gitpushorigin分支//提交gitbranch//查看本地分支,-a可查看远程分支gitc
- SSD-1B:Segmind的加速稳定扩散模型
新缸中之脑
SSD-1B
Segmind稳定扩散模型(SSD-1B)是稳定扩散XL(SDXL)缩小50%的精简版本,可提供60%的加速,同时保持高质量的文本到图像生成功能。它已经过各种数据集的训练,包括Grit和Midjourneyscrap数据,以增强其根据文本提示创建各种视觉内容的能力。SSD-1B模型采用知识蒸馏策略,连续利用多个专家模型(包括SDXL、ZavyChromaXL和JuggernautXL)的教学,结合
- 2018-05-14
罗果米味的爆米花
Grit坚毅、zest激情、self-control自制力、optimism乐观、gratitude感恩、socialintelligence社交智力、curiosity好奇心。
- 寻找内在驱动力,掌握这五个原则!
非凡英语俱乐部
宾夕法尼亚大学心理学教授AngelaDuckworth,曾在TED论坛发表了关于Grit(坚毅)的演讲,这个视频随即风靡全球。在美国TED网站上,这条视频的点击率已超过1100万。她认为:孩子的教养过程中,若一直依赖于外部评价或物质奖赏来产生成长动力,其本质和训练马戏团的小猴子并无差异。培养孩子坚毅的品质,建造其内驱力,一定要关注孩子的“内心”动作,而非仅仅是表象动作。Angela通过清晰完整的逻
- 坚持与放弃
Kangkangblulu
几年前就听说过宾大心理学教授Dr.AngelaDuckworth写的“Grit”这本书,中文翻译为《坚毅》,当时觉得大家都知道做事有毅力能坚持的重要性,好像不用花时间去读一本书来弄明白这个道理。提起坚持的重要性,最先浮现在脑海中的就是美国著名的励志“成功学”作家拿破仑·希尔(NapoleonHill)在他很畅销的《思考致富》(“ThankandGrowRich”)一书中讲的那个“离金矿只有三英尺”
- Grit|日签0901 十全难十美
Grit的格林频道
日签0901-Grit你会为了追求想象中完美的生活,把灵魂交给魔鬼吗?大家好,今天的日签灵感来自我最近看的一部老电影,叫做《神鬼愿望》。电影里男主角和魔鬼做了交易,魔鬼许他7个愿望,如果7个愿望都用完,就得把自己的灵魂交给魔鬼。在他的前几个愿望中,为了想和自己喜欢的女孩在一起,他想变成世界上最有钱有权力的人,世界上最敏感的人,世界上最高大最有力量的人,世界上最有名望的人……每次他成功变身想象中的身
- 《坚毅》给我的感受
陕西府谷二中薛瑞芳
刚放暑假,我们敬佩的互加网校老师张嵩老师就推荐我们读《坚毅》(Grit)这本书。带着好奇,我读起了这本书的电子版(我买的纸质书未能及时回来)。之后,我的心久久不能平静。因为它让我陷入沉思。首先,这本书带给我极大的震撼。在第一部分第1章中记录了这样一种现象:美国每年有14000人申请西点军校,大概4000人会获得提名,2500人能达到要求的学业和体能标准,最后只有1200人能被录取。这些人,可以说都
- “创业时代”告诉我们什么能力很重要?但大多数人没有
创业不扎心
“创业时代”是最近的一部热播剧,讲述男主郭鑫年一路的创业故事。在一次偶然的机会中,软件工程师郭鑫年找到了新的灵感,他决心开发一款新的手机通讯软件,他怀着一腔热血,走上了创业之路。一部剧集充斥着男主“破产”、“离婚”、“融资失利”、“商业泄密”...但最终郭鑫年还是获客了成功,我们从终郭鑫可以发现一种性格特质,值得我们深思——恒毅力(Grit)!很多人有自己爱做的事,但很少有人能做到优秀。很多人没有
- 陪你一起走过小学六年/D161/看岁月静好//16-365
点亮人生
每日一图/16-365我背古文就很慢,有的地方怎么背都会卡。然后就得去反复搞懂意思,再反复背。问题是背会也很快忘记了。问你咋背会的?懂意思不。你说不懂。问你背了那么多都不懂吗。你说懂得不多。我感觉被噎住了。但这也是意料之中的。现在就是培养你们背诵童子功的时候,假以时日,意思迟早会明白,但功夫却得从小养。不然就会像我这么艰难。
- 从一个单词说开去
芳姐的陪伴
今天学了一个新单词grit,分享给大家,中文意思大家都很熟悉,就是毅力。毅力是什么?是做一件事情的坚持,是不管在任何环境和处境中的执着和坚定,是穿透风云变幻以后仍然守住初心的激情和持久力。学习工作了很多年,我也将近孔子所说的四十不惑的年龄,想想身边那些成功的人,都是从什么都没有的小白,通过强大的意志力,通过常人没有的毅力,通过日复一日、年复一年的积累和沉淀,成长起来,并且在各自的领域做得风生水起。
- GROW模型——很好用的自我教练工具
蓝色宝宝
图片发自App在培训领域有很多耳熟能详的概念:SPIN、SMART、GRIT和GROW教练模型。今天说说GROW教练模型||在进行自我教练对话或是一对一教练对话时,可以顺序按照以下四步骤进行:•目标设定(goal),本次教练对话的目标,以及想取得的成果。•现状分析(reality),探索当前的情况。•方案选择(options),可供选择的策略或行动方案。•该做什么(what),何时(when),谁
- Day2 选择一本书籍作为课程的写作书籍
Grit的格林频道
今日作业:1.请书写你为什么选择这本书?2.这本书的豆瓣评分多少分?3.这本书的作者是谁?有哪些标签或亮点?Grit的回答1.我选择的书是《再活一次——用写作来调心》原因有两点:在豆瓣搜索《成为作家》这本书时,发现水湄物语给它打了8分,评分中将《成为作家》与《再活一次》进行了对比,前者更侧重技巧,后者更打动心灵;我觉得打动心灵更吸引我,于是搜索了《再活一次》,发现水湄给这本书打了10分,她的评价是
- 跟着Hi复盘D161
陆娴1983
2018.4.22校友企业群论坛大学上海校友会组织了这次活动,查询了一下举办地点,离的很近,想到一直都是线上交流,趁这个机会线下认识一下也不错。活动之前,主持人联系到我,想让我在活动间隙给大家来个朗诵,朗诵这个事还真不是自己强项,所以只回复说到时候看情况再定。论坛于下午2点正式开始,参会人数在40多人,大多是年长于我的学长学姐们。之前有见过的只有其中的少数几个。整场论坛主要是有4个校友做了分享,关
- 在通往成功的道路上, 唯一的障碍物就是你自己
背上行囊流浪
在通往成功的道路上,唯一的障碍物就是你自己最近观看了一个TED演讲视频,6分钟长,名字是Grit-Thepowerofpassionandperseverance(坚毅-激情和毅力的力量),作者是美藉华人AngelaLeeDuckworth,观看量已突破1700万次,有一些心得体会和思考。我们可以先问自己几个问题[if!supportLists]第一、[endif]你最有激情的事情是什么或者说你最
- Read GRIT Report
襄城160韩贝贝
Readthisbook,Ilearnedmanythings,Iknowwhateverido,lshouldworkhardandnevergiveup.AllroadsleadtoRome.studyandhardworkwillleadtosuccess.Inyourlife,Ithinkifyoubelievethatyouareright,youshouldsticktoyouidea
- My own feeling of Grit
博野059尹轩
WhenIreadthisbookGrit,themeaningofgrithadbeenclear.Theauthorshowsusthatwhatisgrit,howtobegrittymanandhowtoletyourkidsbegritty.AfterIhavefinishedthisbook,thefirstfeelingisshameful,becauseIamnotagrittym
- D6坚毅力增强工具二坚毅策略
呼吸着的旎旎
今天的片段是让我们更坚定地执行已设定的目标,以促进最后的成功。坚毅策略可以分为两个步骤来进行——STEP1多维运用坚毅力1.聪明的坚毅力:善用资源和人脉,学会在别人成功的案例中借鉴经验。2.好的坚毅力:充分考虑如何利人。3.强大的坚毅力:综合考虑,找到1+1>2的优势,精准定位,所谓“好钢用在刀刃上”。STEP2应用GRIT进一步明晰目标1.G:成长性,同样讲的是如何善用资源和人脉以及在多种方案中
- D4坚毅力激励工具
呼吸着的旎旎
今天的片段看得我晕头转向,好像明白点儿,又好像啥也没看懂。越来越觉得,GRIT是用来搞大事情的能力,我的那些鸡毛般的目标焉能用这把特大号的牛刀。看到小伙伴们的作业,还得逼自己一把啊,激发一下我的坚毅力......适用场景坚毅力激励工具适用的两个场景:一是别人(测试)认为你需要提升坚毅力的维度;二是自己认为你需要提升坚毅力的维度。又有问题,还得选择如原文中说,问题1比较泛泛,如果脑子不够灵光的人被问
- Spring4.1新特性——Spring MVC增强
jinnianshilongnian
spring 4.1
目录
Spring4.1新特性——综述
Spring4.1新特性——Spring核心部分及其他
Spring4.1新特性——Spring缓存框架增强
Spring4.1新特性——异步调用和事件机制的异常处理
Spring4.1新特性——数据库集成测试脚本初始化
Spring4.1新特性——Spring MVC增强
Spring4.1新特性——页面自动化测试框架Spring MVC T
- mysql 性能查询优化
annan211
javasql优化mysql应用服务器
1 时间到底花在哪了?
mysql在执行查询的时候需要执行一系列的子任务,这些子任务包含了整个查询周期最重要的阶段,这其中包含了大量为了
检索数据列到存储引擎的调用以及调用后的数据处理,包括排序、分组等。在完成这些任务的时候,查询需要在不同的地方
花费时间,包括网络、cpu计算、生成统计信息和执行计划、锁等待等。尤其是向底层存储引擎检索数据的调用操作。这些调用需要在内存操
- windows系统配置
cherishLC
windows
删除Hiberfil.sys :使用命令powercfg -h off 关闭休眠功能即可:
http://jingyan.baidu.com/article/f3ad7d0fc0992e09c2345b51.html
类似的还有pagefile.sys
msconfig 配置启动项
shutdown 定时关机
ipconfig 查看网络配置
ipconfig /flushdns
- 人体的排毒时间
Array_06
工作
========================
|| 人体的排毒时间是什么时候?||
========================
转载于:
http://zhidao.baidu.com/link?url=ibaGlicVslAQhVdWWVevU4TMjhiKaNBWCpZ1NS6igCQ78EkNJZFsEjCjl3T5EdXU9SaPg04bh8MbY1bR
- ZooKeeper
cugfy
zookeeper
Zookeeper是一个高性能,分布式的,开源分布式应用协调服务。它提供了简单原始的功能,分布式应用可以基于它实现更高级的服务,比如同步, 配置管理,集群管理,名空间。它被设计为易于编程,使用文件系统目录树作为数据模型。服务端跑在java上,提供java和C的客户端API。 Zookeeper是Google的Chubby一个开源的实现,是高有效和可靠的协同工作系统,Zookeeper能够用来lea
- 网络爬虫的乱码处理
随意而生
爬虫网络
下边简单总结下关于网络爬虫的乱码处理。注意,这里不仅是中文乱码,还包括一些如日文、韩文 、俄文、藏文之类的乱码处理,因为他们的解决方式 是一致的,故在此统一说明。 网络爬虫,有两种选择,一是选择nutch、hetriex,二是自写爬虫,两者在处理乱码时,原理是一致的,但前者处理乱码时,要看懂源码后进行修改才可以,所以要废劲一些;而后者更自由方便,可以在编码处理
- Xcode常用快捷键
张亚雄
xcode
一、总结的常用命令:
隐藏xcode command+h
退出xcode command+q
关闭窗口 command+w
关闭所有窗口 command+option+w
关闭当前
- mongoDB索引操作
adminjun
mongodb索引
一、索引基础: MongoDB的索引几乎与传统的关系型数据库一模一样,这其中也包括一些基本的优化技巧。下面是创建索引的命令: > db.test.ensureIndex({"username":1}) 可以通过下面的名称查看索引是否已经成功建立: &nbs
- 成都软件园实习那些话
aijuans
成都 软件园 实习
无聊之中,翻了一下日志,发现上一篇经历是很久以前的事了,悔过~~
断断续续离开了学校快一年了,习惯了那里一天天的幼稚、成长的环境,到这里有点与世隔绝的感觉。不过还好,那是刚到这里时的想法,现在感觉在这挺好,不管怎么样,最要感谢的还是老师能给这么好的一次催化成长的机会,在这里确实看到了好多好多能想到或想不到的东西。
都说在外面和学校相比最明显的差距就是与人相处比较困难,因为在外面每个人都
- Linux下FTP服务器安装及配置
ayaoxinchao
linuxFTP服务器vsftp
检测是否安装了FTP
[root@localhost ~]# rpm -q vsftpd
如果未安装:package vsftpd is not installed 安装了则显示:vsftpd-2.0.5-28.el5累死的版本信息
安装FTP
运行yum install vsftpd命令,如[root@localhost ~]# yum install vsf
- 使用mongo-java-driver获取文档id和查找文档
BigBird2012
driver
注:本文所有代码都使用的mongo-java-driver实现。
在MongoDB中,一个集合(collection)在概念上就类似我们SQL数据库中的表(Table),这个集合包含了一系列文档(document)。一个DBObject对象表示我们想添加到集合(collection)中的一个文档(document),MongoDB会自动为我们创建的每个文档添加一个id,这个id在
- JSONObject以及json串
bijian1013
jsonJSONObject
一.JAR包简介
要使程序可以运行必须引入JSON-lib包,JSON-lib包同时依赖于以下的JAR包:
1.commons-lang-2.0.jar
2.commons-beanutils-1.7.0.jar
3.commons-collections-3.1.jar
&n
- [Zookeeper学习笔记之三]Zookeeper实例创建和会话建立的异步特性
bit1129
zookeeper
为了说明问题,看个简单的代码,
import org.apache.zookeeper.*;
import java.io.IOException;
import java.util.concurrent.CountDownLatch;
import java.util.concurrent.ThreadLocal
- 【Scala十二】Scala核心六:Trait
bit1129
scala
Traits are a fundamental unit of code reuse in Scala. A trait encapsulates method and field definitions, which can then be reused by mixing them into classes. Unlike class inheritance, in which each c
- weblogic version 10.3破解
ronin47
weblogic
版本:WebLogic Server 10.3
说明:%DOMAIN_HOME%:指WebLogic Server 域(Domain)目录
例如我的做测试的域的根目录 DOMAIN_HOME=D:/Weblogic/Middleware/user_projects/domains/base_domain
1.为了保证操作安全,备份%DOMAIN_HOME%/security/Defa
- 求第n个斐波那契数
BrokenDreams
今天看到群友发的一个问题:写一个小程序打印第n个斐波那契数。
自己试了下,搞了好久。。。基础要加强了。
&nbs
- 读《研磨设计模式》-代码笔记-访问者模式-Visitor
bylijinnan
java设计模式
声明: 本文只为方便我个人查阅和理解,详细的分析以及源代码请移步 原作者的博客http://chjavach.iteye.com/
import java.util.ArrayList;
import java.util.List;
interface IVisitor {
//第二次分派,Visitor调用Element
void visitConcret
- MatConvNet的excise 3改为网络配置文件形式
cherishLC
matlab
MatConvNet为vlFeat作者写的matlab下的卷积神经网络工具包,可以使用GPU。
主页:
http://www.vlfeat.org/matconvnet/
教程:
http://www.robots.ox.ac.uk/~vgg/practicals/cnn/index.html
注意:需要下载新版的MatConvNet替换掉教程中工具包中的matconvnet:
http
- ZK Timeout再讨论
chenchao051
zookeepertimeouthbase
http://crazyjvm.iteye.com/blog/1693757 文中提到相关超时问题,但是又出现了一个问题,我把min和max都设置成了180000,但是仍然出现了以下的异常信息:
Client session timed out, have not heard from server in 154339ms for sessionid 0x13a3f7732340003
- CASE WHEN 用法介绍
daizj
sqlgroup bycase when
CASE WHEN 用法介绍
1. CASE WHEN 表达式有两种形式
--简单Case函数
CASE sex
WHEN '1' THEN '男'
WHEN '2' THEN '女'
ELSE '其他' END
--Case搜索函数
CASE
WHEN sex = '1' THEN
- PHP技巧汇总:提高PHP性能的53个技巧
dcj3sjt126com
PHP
PHP技巧汇总:提高PHP性能的53个技巧 用单引号代替双引号来包含字符串,这样做会更快一些。因为PHP会在双引号包围的字符串中搜寻变量, 单引号则不会,注意:只有echo能这么做,它是一种可以把多个字符串当作参数的函数译注: PHP手册中说echo是语言结构,不是真正的函数,故把函数加上了双引号)。 1、如果能将类的方法定义成static,就尽量定义成static,它的速度会提升将近4倍
- Yii框架中CGridView的使用方法以及详细示例
dcj3sjt126com
yii
CGridView显示一个数据项的列表中的一个表。
表中的每一行代表一个数据项的数据,和一个列通常代表一个属性的物品(一些列可能对应于复杂的表达式的属性或静态文本)。 CGridView既支持排序和分页的数据项。排序和分页可以在AJAX模式或正常的页面请求。使用CGridView的一个好处是,当用户浏览器禁用JavaScript,排序和分页自动退化普通页面请求和仍然正常运行。
实例代码如下:
- Maven项目打包成可执行Jar文件
dyy_gusi
assembly
Maven项目打包成可执行Jar文件
在使用Maven完成项目以后,如果是需要打包成可执行的Jar文件,我们通过eclipse的导出很麻烦,还得指定入口文件的位置,还得说明依赖的jar包,既然都使用Maven了,很重要的一个目的就是让这些繁琐的操作简单。我们可以通过插件完成这项工作,使用assembly插件。具体使用方式如下:
1、在项目中加入插件的依赖:
<plugin>
- php常见错误
geeksun
PHP
1. kevent() reported that connect() failed (61: Connection refused) while connecting to upstream, client: 127.0.0.1, server: localhost, request: "GET / HTTP/1.1", upstream: "fastc
- 修改linux的用户名
hongtoushizi
linuxchange password
Change Linux Username
更改Linux用户名,需要修改4个系统的文件:
/etc/passwd
/etc/shadow
/etc/group
/etc/gshadow
古老/传统的方法是使用vi去直接修改,但是这有安全隐患(具体可自己搜一下),所以后来改成使用这些命令去代替:
vipw
vipw -s
vigr
vigr -s
具体的操作顺
- 第五章 常用Lua开发库1-redis、mysql、http客户端
jinnianshilongnian
nginxlua
对于开发来说需要有好的生态开发库来辅助我们快速开发,而Lua中也有大多数我们需要的第三方开发库如Redis、Memcached、Mysql、Http客户端、JSON、模板引擎等。
一些常见的Lua库可以在github上搜索,https://github.com/search?utf8=%E2%9C%93&q=lua+resty。
Redis客户端
lua-resty-r
- zkClient 监控机制实现
liyonghui160com
zkClient 监控机制实现
直接使用zk的api实现业务功能比较繁琐。因为要处理session loss,session expire等异常,在发生这些异常后进行重连。又因为ZK的watcher是一次性的,如果要基于wather实现发布/订阅模式,还要自己包装一下,将一次性订阅包装成持久订阅。另外如果要使用抽象级别更高的功能,比如分布式锁,leader选举
- 在Mysql 众多表中查找一个表名或者字段名的 SQL 语句
pda158
mysql
在Mysql 众多表中查找一个表名或者字段名的 SQL 语句:
方法一:SELECT table_name, column_name from information_schema.columns WHERE column_name LIKE 'Name';
方法二:SELECT column_name from information_schema.colum
- 程序员对英语的依赖
Smile.zeng
英语程序猿
1、程序员最基本的技能,至少要能写得出代码,当我们还在为建立类的时候思考用什么单词发牢骚的时候,英语与别人的差距就直接表现出来咯。
2、程序员最起码能认识开发工具里的英语单词,不然怎么知道使用这些开发工具。
3、进阶一点,就是能读懂别人的代码,有利于我们学习人家的思路和技术。
4、写的程序至少能有一定的可读性,至少要人别人能懂吧...
以上一些问题,充分说明了英语对程序猿的重要性。骚年
- Oracle学习笔记(8) 使用PLSQL编写触发器
vipbooks
oraclesql编程活动Access
时间过得真快啊,转眼就到了Oracle学习笔记的最后个章节了,通过前面七章的学习大家应该对Oracle编程有了一定了了解了吧,这东东如果一段时间不用很快就会忘记了,所以我会把自己学习过的东西做好详细的笔记,用到的时候可以随时查找,马上上手!希望这些笔记能对大家有些帮助!
这是第八章的学习笔记,学习完第七章的子程序和包之后