- [Economist] 90 亿美元的云端服务(上)
Prongs
Cloud$9bn90亿美元的云端服务Anotherunicorngoespublic另一家独角兽公司上市DREWHOUSTONandArashFerdowsimusthavefewregretssincetheyturneddownanofferfortheirstartupfromApple’sthenboss,SteveJobs,in2011.Dropboxhasn’tdonetoobadl
- 2020-02-14
TESTTYPE01
在几乎每一个发达国家,高速铁路都是基础设施中的标配。法国:(图源:economist)西班牙:(图源:eurail)有些高铁,比如日本的新干线,甚至还成为了国家发展和繁荣的一个标志,出现了各种各样与之相关的文化产品。日本:(图源:hisgo)然而有一个国家,他们铁路的画风,却是这个样子的:(图源:JOC)说到美国的铁路运输,美国人可以和你吐槽4个小时。差是显而易见的。和德国法国相比,美国铁路的密度
- Eastern time: China’s rise
邮差在行动
viewonespresso.economist.com--Dec19th2018Easterntime:China’sriseWhenscholarsofinternationalrelationspredictthatthe2000swillbea“Chinesecentury”,theyarenotbeingpremature.AlthoughAmericaremainsthelonesup
- Show me the money: Madagascar votes
邮差在行动
viewonespresso.economist.com--fanqiangShowmethemoney:MadagascarvotesShowmethemoney让我赚大钱;给我钱Madagascar【国】马达加斯加;马达加斯加共和国TodayMalagasiesvoteinthefirstroundofthepresidentialelections.thefirstroundof第一轮……p
- Java动态代理
voltric
Java动态代理@Date2016.11.24静态代理提前创建一个代理类,实现和业务逻辑同样的接口传递业务实现类的对象,在调用业务方法前后可以做代理的逻辑扩展原有功能,不侵入原有代码如果需要代理的业务类变多,并且实现方法不一样的情况下,对应的代理类会增多Java本身动态代理只能代理接口实现java.lang.reflect.InvocationHandler接口通过Proxy.newProxyIn
- The Economist经济学人20200829学习笔记-Dementia
一只鳝鳝
1.Thereasonbehindit—longerlifespans—istobecheered;itdoesnotadvanceatthespeedofaviralinfectionbutwiththeponderousinevitabilityofdemographicchange-Dementian.痴呆ausuallyprogressivecondition(suchasAlzheime
- 8/8/2019 又来立 Flag了
法国虎妈
再过几天就是34岁的生日了。在我心里35岁是一个大年,就是传统的逢五逢十大庆。感觉一定要搞点儿事情才能更好的迎接35岁的到来。我在这里立下下一年的努力的目标:1.明年教师资格考试综合成绩全国第一,为此每天要练习法语写作一小时2.开始法语同声传译训练,每天练习两小时3.英语Economist每周精读且背单词4.早教,孩子入托前一年十分关键,双语培训及数学启蒙5.护理方面的入学考试教材看完,主要是学习
- [Economist] 城市交通:出轨(上)
Prongs
Urbantransport:Offtherails城市交通:出轨TOTHOSEwhohavetosqueezeontothenumber25businLondon,ortheAtraininNewYork,thechangemightnotbenoticeable.Butpublictransportisbecominglessbusyinthosecities,andinothersbeside
- peril.ous危险的
董八七
title:perilousdate:2018-08-1415:15:00NO_sents:4NO_references:4perilousperilouslyGOINGbythenumbers,China'snotoriouslyhazardouscoalmineshavebecomedistinctlylessperilousinrecentyears.(Economist)Ontheothe
- Political drama: “House of Cards” - Espresso Economist
邮差在行动
viewonEspressoEconomist--fanqiangPoliticaldrama:“HouseofCards”Politicaldrama政治大戏HouseofCards纸牌屋ForsomeviewersthefinalseasonoftheNetflixshow,releasedyesterday,willbeanexerciseinwishfulfillment.finalsea
- [Economist] 他们掌握了什么?(上)
Prongs
Whatdotheyknow?他们掌握了什么?TheEUguaranteesitscitizens’datarights,intheory欧盟保证其区域内公民的数据隐私权,理论上而言INTHEwakeofthescandalovertheunauthoriseduseofFacebookdatabyCambridgeAnalytica,acampaignconsultant,someAmerica
- 20171124_Economist Day48(Many people in China believe gays can be “cured” - Torture condoned)_英语_学习_201711
fantasyrex3
全文大意:在中国充斥着针对同性恋的治疗法,这种治疗方法在发达国家的大多数医生看来是不道德并且医学上不靠谱的。然而很多人却在强迫之下接受这种痛苦治疗。一些接受治疗的人选择了自杀,另一些在治疗效果上选择了撒谎,然而其实却没有一例治疗奏效。这些治疗的医院会接受很轻的处法,以致于根本没有威慑作用。医生理应告诉家庭同性恋并无过错,然而这意味着医院将失去生意。中国的公立医院总是向钱看,所以他们不会选择这么做。
- 英语阅读素材
果子1234
英语阅读素材一、中国内地可访问的优秀英文信息源1、英国《经济学家》http://www.economist.com2、美联社http://wire.ap.org/GoToAP.cgi3、英国BBChttp://news.bbc.co.uk4、《纽约时报》http://www.nytimes.com5、普利策新闻奖1995年到2001年全部获奖作品http://www.pulitzer.org6、美
- Come what May: British politics
邮差在行动
viewonespresso.economist.com--Dec13th2018--fanqiangComewhatMay:Britishpoliticscomewhatmay不管怎样;无论如何;不管发生什么事OnWednesdayeveningTheresaMaysurvivedaconfidencevoteinherleadershipwith200MPsvotingforherand117
- The slog begins: Britain and the EU
邮差在行动
https://espresso.economist.com/47c917b09f2bc64b2916c0824c715923Jan15th2018Theslogbegins:BritainandtheEUAfterthecabinetreshuffle,theagendaofTheresaMay,theprimeminister,willagainbecomedominatedbyBrexit.
- 《焦点中级班十一课收获~助人自助》坚持第711天原创分享(2016.11.24星期四)
半夏五月天
坚持第711天原创分享(2016.11.24星期四):《焦点中级班十一课收获~助人自助》今晚是焦点中级班第十一课,在众多的受益内容中,“助人自助”这句话感受颇深,一个优秀的心理咨询师最重要的特质之一就是如何让来访者自己帮助自己,来解决自己的问题。很多咨询师在刚接到案例的时候,一眼就看出来来访者问题在哪,急切地想帮助来访者,想尽快地帮他解决问题,各种咨询技术轮番上阵,却忽略了“每个人都是解决自己问题
- Economist 210227 本周政坛 politics this week
summer4two
【非洲】Ghanabecamethefirstcountrytoreceivevaccineforcovid-19throughtheCOVAXprogramme,aglobalcoalitionwhichdistributesfreedosestopoorcountriesandisbackedbytheWorldHealthOrganisation.Ghana’sshotswereprovid
- Incense investment: Vatican startups
邮差在行动
https://espresso.economist.com/7436b0dc99f8aed11026252aeade1a3a--Dec4th2018Incenseinvestment:VaticanstartupsVatican梵蒂冈Tennewcompanies,selectedfrom400applications,gathertodayattheVaticantopitchtoreligi
- 经济学人精读 [46] The Economist | Junk hunting
京酱Jing
经济学人精读TheEconomist[46]选自January062018ScienceandTechnology板块更多英语阅读听力口语内容,请关注微信公众号MyEnglishTrip我是Eva一个认真学习英语的美少女#Eva导读#现在已经有太多的太空垃圾使得太空成为了一个危险之地。今年二月,国际工空间站将在再补给任务重中,携带一枚卫星,进行清除太空垃圾的试验。包含几个关键测试:制造垃圾目标;捕
- Shine off: diamonds - Espresso Economist
邮差在行动
viewonEspressoEconomistDuringtheGreatDepression,/DeBeersinventedaclevermarketingwheeze:/itpersuadedfiancéesthatunlesstheirhusband-to-bespentamonth’ssalaryonadiamondengagementring,/hewasacold-heartedmi
- Heavenly rewards: impact investing
邮差在行动
viewonespresso.economist.comHeavenlyrewards:impactinvestingimpact(对某事物)有影响,有作用impactinvesting影响力投资;创效投资;影响投资Some$23trnisplacedin“sustainable”investmentsaroundtheworldeveryyear,accordingtotheGlobalSust
- The Economist经济学人20200822学习笔记-The Aliens Among Us
一只鳝鳝
梗概:本文不围绕众所周知的病毒的危害性展开,而是着眼于讨论病毒如何塑造世界,促进人类的发展。文章大意:人类在病毒面前不堪一击,但与此同时,病毒作为自然选择的一种机制促进了生物进化的脚步,对基因工程的发展有重要的启发作用。病毒促进生物进化的原理在于:1.病毒能够消灭数量过多的生命体,为其他生命体的发展腾出空间;2.病毒能够促使生物进化出防御机制;3.病毒可以被宿主细胞利用,发展出新的功用,代代延续,
- [Economist] 数据隐私:照猫画虎(一)
Prongs
Dataprivacy:Copythat数据隐私:照猫画虎Americaneedsadataprotectionlaw.TakeEurope’sandimproveonit美国需要一部数据保护法律,用欧盟的法律来照猫画虎AMERICArarelylookstothebureaucratsofBrusselsforguidance.Commercialfreedomappealsmorethandi
- 20171119_Economist Day42(Enhanced understanding of the microbiome is helping medicine - Health care)_英语_学习_201711
fantasyrex3
第二部分后半部分大意:另一些公司通过只选择和交付那些他们相信有益的细菌从而致力于目标更加明确的领域。有一种方法叫作“细菌即解药”,SeresTherapeutics这家公司认为某些细菌的组合能够加速细菌生态系统的转变,特别是将那些有助于疾病的细菌转变为有益于健康的细菌。除了增加好的细菌之外,把坏的细菌除去也是一另外一种办法。另外,通过噬菌体来杀死特定的细菌也是一种办法。除此之外,编辑细菌的基因的方
- D-Day: America’s mid-terms
邮差在行动
viewonespresso.economist.comD-Day:America’smid-termsD-Day重大事情预定发生日;计划行动开始日(adateonwhichsthimportantisexpectedtohappen)Itseemsoddtosaymoreisatstaketoday,whenthepresidencywillnotchangehands,thaninthepre
- 经济学人 一周要闻 The Economist :The world this week
kylinnnn_
Theworldthisweek本周国际要闻Politics政治TheJapanesegovernmentliftedrestrictionsinthelastremainingprefecturesunderlockdown.Italsounveiledasecondstimulus,worth$1trn.liftrestriction解除限制,解除约束remaining剩余的prefectur
- 新年的第一个周末
阿童木Serena
2019的newyearresolution之一就是每周末坚持去一趟图书馆看外文杂志。这个周六严格执行,并开了一个Economist精读精练的专题,周六的晚上感到非常有成就感,仿佛回到了天天泡图书馆的大学时代。周末老公不加班,我俩去了趟什刹海公园,本来就只想逛逛公园,践行我周末一天不能宅在家的resolution,到了公园被眼前的一幕惊呆了,大人和小孩,一群群的在结了冰的冰面上玩冰车,有推的,有骑
- 如何与普京先生对话
大卫_007er
Economist《经济学人》20220108封面文章HowtotalktoMrPutin如何与普京先生对话Russia’saggressiontowardsUkrainehascreatedachancetoenhancethesecurityofEurope俄罗斯对乌克兰的侵略为加强欧洲的安全创造了机会Itisusuallyabadsigniftalksstartwithonesidebran
- Why France’s farmers worry about China
查理C
https://www.economist.com/blogs/economist-explains/2018/03/economist-explains-21Summary:ChinesbuyerssnappeduptractsofFrenchlandsthroughwhatFrenchfarmersregardedasloopholesinFrenchlaws,leadingtopressur
- The Economist 经济学人精读 [3下] |The chronic continent
PersistenceinFa
TheEconomist经济学人精读[3下]选自October8,2016|Leaders板块注:划线部分为好词好句,加粗为生词,要加入单词本进行背诵。6)Withininstitutions,thatmeanscuttingcostsandraisingcapital.AccordingtoS&PGlobalMarketIntelligence,theaveragecost-to-incomer
- 关于旗正规则引擎下载页面需要弹窗保存到本地目录的问题
何必如此
jsp超链接文件下载窗口
生成下载页面是需要选择“录入提交页面”,生成之后默认的下载页面<a>标签超链接为:<a href="<%=root_stimage%>stimage/image.jsp?filename=<%=strfile234%>&attachname=<%=java.net.URLEncoder.encode(file234filesourc
- 【Spark九十八】Standalone Cluster Mode下的资源调度源代码分析
bit1129
cluster
在分析源代码之前,首先对Standalone Cluster Mode的资源调度有一个基本的认识:
首先,运行一个Application需要Driver进程和一组Executor进程。在Standalone Cluster Mode下,Driver和Executor都是在Master的监护下给Worker发消息创建(Driver进程和Executor进程都需要分配内存和CPU,这就需要Maste
- linux上独立安装部署spark
daizj
linux安装spark1.4部署
下面讲一下linux上安装spark,以 Standalone Mode 安装
1)首先安装JDK
下载JDK:jdk-7u79-linux-x64.tar.gz ,版本是1.7以上都行,解压 tar -zxvf jdk-7u79-linux-x64.tar.gz
然后配置 ~/.bashrc&nb
- Java 字节码之解析一
周凡杨
java字节码javap
一: Java 字节代码的组织形式
类文件 {
OxCAFEBABE ,小版本号,大版本号,常量池大小,常量池数组,访问控制标记,当前类信息,父类信息,实现的接口个数,实现的接口信息数组,域个数,域信息数组,方法个数,方法信息数组,属性个数,属性信息数组
}
&nbs
- java各种小工具代码
g21121
java
1.数组转换成List
import java.util.Arrays;
Arrays.asList(Object[] obj); 2.判断一个String型是否有值
import org.springframework.util.StringUtils;
if (StringUtils.hasText(str)) 3.判断一个List是否有值
import org.spring
- 加快FineReport报表设计的几个心得体会
老A不折腾
finereport
一、从远程服务器大批量取数进行表样设计时,最好按“列顺序”取一个“空的SQL语句”,这样可提高设计速度。否则每次设计时模板均要从远程读取数据,速度相当慢!!
二、找一个富文本编辑软件(如NOTEPAD+)编辑SQL语句,这样会很好地检查语法。有时候带参数较多检查语法复杂时,结合FineReport中生成的日志,再找一个第三方数据库访问软件(如PL/SQL)进行数据检索,可以很快定位语法错误。
- mysql linux启动与停止
墙头上一根草
如何启动/停止/重启MySQL一、启动方式1、使用 service 启动:service mysqld start2、使用 mysqld 脚本启动:/etc/inint.d/mysqld start3、使用 safe_mysqld 启动:safe_mysqld&二、停止1、使用 service 启动:service mysqld stop2、使用 mysqld 脚本启动:/etc/inin
- Spring中事务管理浅谈
aijuans
spring事务管理
Spring中事务管理浅谈
By Tony Jiang@2012-1-20 Spring中对事务的声明式管理
拿一个XML举例
[html]
view plain
copy
print
?
<?xml version="1.0" encoding="UTF-8"?>&nb
- php中隐形字符65279(utf-8的BOM头)问题
alxw4616
php中隐形字符65279(utf-8的BOM头)问题
今天遇到一个问题. php输出JSON 前端在解析时发生问题:parsererror.
调试:
1.仔细对比字符串发现字符串拼写正确.怀疑是 非打印字符的问题.
2.逐一将字符串还原为unicode编码. 发现在字符串头的位置出现了一个 65279的非打印字符.
 
- 调用对象是否需要传递对象(初学者一定要注意这个问题)
百合不是茶
对象的传递与调用技巧
类和对象的简单的复习,在做项目的过程中有时候不知道怎样来调用类创建的对象,简单的几个类可以看清楚,一般在项目中创建十几个类往往就不知道怎么来看
为了以后能够看清楚,现在来回顾一下类和对象的创建,对象的调用和传递(前面写过一篇)
类和对象的基础概念:
JAVA中万事万物都是类 类有字段(属性),方法,嵌套类和嵌套接
- JDK1.5 AtomicLong实例
bijian1013
javathreadjava多线程AtomicLong
JDK1.5 AtomicLong实例
类 AtomicLong
可以用原子方式更新的 long 值。有关原子变量属性的描述,请参阅 java.util.concurrent.atomic 包规范。AtomicLong 可用在应用程序中(如以原子方式增加的序列号),并且不能用于替换 Long。但是,此类确实扩展了 Number,允许那些处理基于数字类的工具和实用工具进行统一访问。
 
- 自定义的RPC的Java实现
bijian1013
javarpc
网上看到纯java实现的RPC,很不错。
RPC的全名Remote Process Call,即远程过程调用。使用RPC,可以像使用本地的程序一样使用远程服务器上的程序。下面是一个简单的RPC 调用实例,从中可以看到RPC如何
- 【RPC框架Hessian一】Hessian RPC Hello World
bit1129
Hello world
什么是Hessian
The Hessian binary web service protocol makes web services usable without requiring a large framework, and without learning yet another alphabet soup of protocols. Because it is a binary p
- 【Spark九十五】Spark Shell操作Spark SQL
bit1129
shell
在Spark Shell上,通过创建HiveContext可以直接进行Hive操作
1. 操作Hive中已存在的表
[hadoop@hadoop bin]$ ./spark-shell
Spark assembly has been built with Hive, including Datanucleus jars on classpath
Welcom
- F5 往header加入客户端的ip
ronin47
when HTTP_RESPONSE {if {[HTTP::is_redirect]}{ HTTP::header replace Location [string map {:port/ /} [HTTP::header value Location]]HTTP::header replace Lo
- java-61-在数组中,数字减去它右边(注意是右边)的数字得到一个数对之差. 求所有数对之差的最大值。例如在数组{2, 4, 1, 16, 7, 5,
bylijinnan
java
思路来自:
http://zhedahht.blog.163.com/blog/static/2541117420116135376632/
写了个java版的
public class GreatestLeftRightDiff {
/**
* Q61.在数组中,数字减去它右边(注意是右边)的数字得到一个数对之差。
* 求所有数对之差的最大值。例如在数组
- mongoDB 索引
开窍的石头
mongoDB索引
在这一节中我们讲讲在mongo中如何创建索引
得到当前查询的索引信息
db.user.find(_id:12).explain();
cursor: basicCoursor 指的是没有索引
&
- [硬件和系统]迎峰度夏
comsci
系统
从这几天的气温来看,今年夏天的高温天气可能会维持在一个比较长的时间内
所以,从现在开始准备渡过炎热的夏天。。。。
每间房屋要有一个落地电风扇,一个空调(空调的功率和房间的面积有密切的关系)
坐的,躺的地方要有凉垫,床上要有凉席
电脑的机箱
- 基于ThinkPHP开发的公司官网
cuiyadll
行业系统
后端基于ThinkPHP,前端基于jQuery和BootstrapCo.MZ 企业系统
轻量级企业网站管理系统
运行环境:PHP5.3+, MySQL5.0
系统预览
系统下载:http://www.tecmz.com
预览地址:http://co.tecmz.com
各种设备自适应
响应式的网站设计能够对用户产生友好度,并且对于
- Transaction and redelivery in JMS (JMS的事务和失败消息重发机制)
darrenzhu
jms事务承认MQacknowledge
JMS Message Delivery Reliability and Acknowledgement Patterns
http://wso2.com/library/articles/2013/01/jms-message-delivery-reliability-acknowledgement-patterns/
Transaction and redelivery in
- Centos添加硬盘完全教程
dcj3sjt126com
linuxcentoshardware
Linux的硬盘识别:
sda 表示第1块SCSI硬盘
hda 表示第1块IDE硬盘
scd0 表示第1个USB光驱
一般使用“fdisk -l”命
- yii2 restful web服务路由
dcj3sjt126com
PHPyii2
路由
随着资源和控制器类准备,您可以使用URL如 http://localhost/index.php?r=user/create访问资源,类似于你可以用正常的Web应用程序做法。
在实践中,你通常要用美观的URL并采取有优势的HTTP动词。 例如,请求POST /users意味着访问user/create动作。 这可以很容易地通过配置urlManager应用程序组件来完成 如下所示
- MongoDB查询(4)——游标和分页[八]
eksliang
mongodbMongoDB游标MongoDB深分页
转载请出自出处:http://eksliang.iteye.com/blog/2177567 一、游标
数据库使用游标返回find的执行结果。客户端对游标的实现通常能够对最终结果进行有效控制,从shell中定义一个游标非常简单,就是将查询结果分配给一个变量(用var声明的变量就是局部变量),便创建了一个游标,如下所示:
> var
- Activity的四种启动模式和onNewIntent()
gundumw100
android
Android中Activity启动模式详解
在Android中每个界面都是一个Activity,切换界面操作其实是多个不同Activity之间的实例化操作。在Android中Activity的启动模式决定了Activity的启动运行方式。
Android总Activity的启动模式分为四种:
Activity启动模式设置:
<acti
- 攻城狮送女友的CSS3生日蛋糕
ini
htmlWebhtml5csscss3
在线预览:http://keleyi.com/keleyi/phtml/html5/29.htm
代码如下:
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>攻城狮送女友的CSS3生日蛋糕-柯乐义<
- 读源码学Servlet(1)GenericServlet 源码分析
jzinfo
tomcatWebservlet网络应用网络协议
Servlet API的核心就是javax.servlet.Servlet接口,所有的Servlet 类(抽象的或者自己写的)都必须实现这个接口。在Servlet接口中定义了5个方法,其中有3个方法是由Servlet 容器在Servlet的生命周期的不同阶段来调用的特定方法。
先看javax.servlet.servlet接口源码:
package
- JAVA进阶:VO(DTO)与PO(DAO)之间的转换
snoopy7713
javaVOHibernatepo
PO即 Persistence Object VO即 Value Object
VO和PO的主要区别在于: VO是独立的Java Object。 PO是由Hibernate纳入其实体容器(Entity Map)的对象,它代表了与数据库中某条记录对应的Hibernate实体,PO的变化在事务提交时将反应到实际数据库中。
实际上,这个VO被用作Data Transfer
- mongodb group by date 聚合查询日期 统计每天数据(信息量)
qiaolevip
每天进步一点点学习永无止境mongodb纵观千象
/* 1 */
{
"_id" : ObjectId("557ac1e2153c43c320393d9d"),
"msgType" : "text",
"sendTime" : ISODate("2015-06-12T11:26:26.000Z")
- java之18天 常用的类(一)
Luob.
MathDateSystemRuntimeRundom
System类
import java.util.Properties;
/**
* System:
* out:标准输出,默认是控制台
* in:标准输入,默认是键盘
*
* 描述系统的一些信息
* 获取系统的属性信息:Properties getProperties();
*
*
*
*/
public class Sy
- maven
wuai
maven
1、安装maven:解压缩、添加M2_HOME、添加环境变量path
2、创建maven_home文件夹,创建项目mvn_ch01,在其下面建立src、pom.xml,在src下面简历main、test、main下面建立java文件夹
3、编写类,在java文件夹下面依照类的包逐层创建文件夹,将此类放入最后一级文件夹
4、进入mvn_ch01
4.1、mvn compile ,执行后会在