life

quotes 整站数据爬取存mongo

扶醉桌前 提交于 2019-12-30 14:13:49
安装完成scrapy后爬取部分信息已经不能满足躁动的心了,那么试试http://quotes.toscrape.com/整站数据爬取 第一部分 项目创建 1、进入到存储项目的文件夹,执行指令 scrapy startproject quotetutorial ,新建一个项目quotetutorial。 2. cd quotetutorial 3、 scrapy genspider quotes quotes.toscrape.com 创建quotes.py模板文件 第二部分 配置模板 1、到settings.py文件内进行配置 1 # -*- coding: utf-8 -*- 2 3 # Scrapy settings for quotetutorial project 4 # 5 # For simplicity, this file contains only settings considered important or 6 # commonly used. You can find more settings consulting the documentation: 7 # 8 # https://doc.scrapy.org/en/latest/topics/settings.html 9 # https://doc.scrapy.org/en/latest

150 Quotes About Success And Life by Wael El-Manzalawy

为君一笑 提交于 2019-12-28 00:31:59
One quote may summarize the idea of a whole chapter. You can save many years in life by reading one quote. // “Courage is not the absence of fear, but rather the judgment that something else is more important than fear.” –Ambrose Redmoon // “It only takes one person to change your life- you.” –Ruth Casey // “The distance is nothing, it is only the first step that is difficult.” –Mme. Du Deffand // “When you change the way you look at things; the things you look at will change.” –Wayne Dyer // “Taking a new step …… is what people fear most.” –Dostoyevski // “I can accept failure – everyone

程序员没有周末

不打扰是莪最后的温柔 提交于 2019-12-24 02:55:55
周五下午下班了,看着路上比平时多的车和快餐点里比平时少的人,知道是周末了,一样的和几个同事走在吃饭的路上再一样地走回公司,知道这个周末依然不属于我们。尽管好不容易有和父母吃饭的机会,但晚上的OT还是让我又少了一次和他们团聚的机会,他们也习惯了。从小我们就受到这样的教育:‘不要浪费时间!’‘吃得苦中苦,方为人上人’、、、诸如此类,所以中华民族是个勤劳的民族,所以我们在抱怨没有周末的时候脑袋里想得更多的是如何把事情做好,所以听到老外说:ENJOY YOUR LIFE EVERY DAY的时候,感觉更多的是‘劳动是人的第一需要’,确实如此,如果让我漫无目的地游荡在大街上我不会觉得是ENJOY,而把手上的项目做好哪怕是有阶段性的进展我就很开心,当然是开心且累着,或者说老外的老祖宗们烧杀掠夺已经积累够了血淋淋的财富,足够子孙们ENJOY LIFE。也有安逸的朋友,过着平平淡淡的生活,很羡慕他们,但这毕竟不是适合我的方式,或许自己确实不够洒脱,确实有点利欲熏心,但我觉得自己更多地还是为了实现自己的价值,我选择了这么一种人生的充实,起码现在是这样。 来源: https://www.cnblogs.com/jambol/archive/2004/06/11/15068.html

Love Yourself Like Your Life Depends on It by Kamal Ravikant

℡╲_俬逩灬. 提交于 2019-12-23 17:08:26
As a wise friend likes to remind me, this is a practice. You don't go to the gym once and consider yourself done. Same here. Meditation is a practice. Working out is a practice. Loving yourself, perhaps the most important of all, is a practice. Each book is like a web that connects to other books, and if you persist, one book will indirectly lead you to THE BOOK that will help you the most --Quote by Myself In all honesty, in the beginning, I didn't believe that I loved myself. How many of us do? But it didn't matter what I believed. All that mattered was doing it and I did it the simplest way

Spring Bean Life Cycle Methods – InitializingBean, DisposableBean, @PostConstruct, @PreDestroy and *Aware interfaces

丶灬走出姿态 提交于 2019-12-16 22:43:50
Spring Beans are the most important part of any Spring application. Spring ApplicationContext is responsible to initialize the Spring Beans defined in spring bean configuration file. Spring Context is also responsible for injection dependencies in the bean, either through setter/constructor methods or by spring autowiring . Sometimes we want to initialize resources in the bean classes, for example creating database connections or validating third party services at the time of initialization before any client request. Spring framework provide different ways through which we can provide post

英语话题 Life

删除回忆录丶 提交于 2019-12-15 09:00:44
self-esteem 自尊 self-image 自我形象 self-repair 自我修复 self-respect 自尊 self-adjustment 自我调整 facing life’s ups and downs respond to challenges,disappointment,joy,frustration,pain be trapped in despondency 陷入沮丧 change in financial status increased workload or school workburden outstanding personal achievement serious argument with instructor lower grades than expected 来源: CSDN 作者: qq_37788383 链接: https://blog.csdn.net/qq_37788383/article/details/103463072

POJ-2492 A Bug's Life(二分图染色 或者 种类并查集)

佐手、 提交于 2019-12-10 20:27:48
A Bug’s Life Description Background Professor Hopper is researching the sexual behavior of a rare species of bugs. He assumes that they feature two different genders and that they only interact with bugs of the opposite gender. In his experiment, individual bugs and their interactions were easy to identify, because numbers were printed on their backs. Problem Given a list of bug interactions, decide whether the experiment supports his assumption of two genders with no homosexual bugs or if it contains some bug interactions that falsify it. Input The first line of the input contains the number

SQL 标量函数-----日期函数 day() 、month()、year() 转载

纵然是瞬间 提交于 2019-12-06 07:40:30
select day(createtime) from life_unite_product --取 时间 字段的天值 select month(createtime) from life_unite_product --取时间字段的月值 select year(createtime) from life_unite_product --取时间字段的年值 select datepart(yy,createtime) from life_unite_product --取时间字段的年值 select datepart(qq,createtime) from life_unite_product --取时间字段的季度值 select datepart(mm,createtime) from life_unite_product --取时间字段的月值 select datepart(dy,createtime) from life_unite_product --取时间字段是那年的第几天 select datepart(dd,createtime) from life_unite_product --取时间字段的天值 select datepart(wk,createtime) from life_unite_product --取时间字段是那年的第几个星期 select

JSF 1.2 Life Cycle understanding: Executing the ValueChangeListener method in InvokeApplication phase

匿名 (未验证) 提交于 2019-12-03 10:24:21
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I am using a <h:selectBooleanCheckbox> in the facet header of a DataTable. All the rows content for that <h:column> DataTable are <h:selectBooleanCheckbox> . The rows are getting selected perfectly the way I wanted. Below is the code I used: <h:form> <h:dataTable value="#{employeeService.employeeList }" var="empl" binding="#{employeeService.dataTablebinding }"> ...... ...... ...... <h:column> <f:facet name="header"> <h:selectBooleanCheckbox id="chkBoxAll" value="#{employeeService.checkedHdr }" valueChangeListener="#{employeeService.checkAll

MySQL - Improve UPDATE Query Performance For Complex Calculations

匿名 (未验证) 提交于 2019-12-03 10:24:21
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I am trying to minimise the calculation / query time for the following UPDATE statement that is embedded in a stored procedure on my server... SET @EQUIPMENT_VARIABLE = 'B1010-V001'; UPDATE EQUIPMENT e /*24. MAX COF*/ SET e.MAX_COF = least(COF_SAFETY, COF_HEALTH, COF_ENVIRONMENT, COF_ASSETS) /*25. RECOMMENDED RBI INTERNAL INTERVAL*/ , e.RECOMMENDED_RBI_INTERNAL_INTERVAL = (SELECT RECOMMENDED_RBI_INTERNAL_INSPECTION_INTERVAL FROM DAMAGE_MECHANISM WHERE EQUIPMENT_ID = e.EQUIPMENT_ID ORDER BY RECOMMENDED_RBI_INTERNAL_INSPECTION_INTERVAL ASC