wget综合使用方法

下载后自动重命名:

wget http://photoapps.yd.chaoxing.com/MobileApp/GDSL/teshu/pdzx/GDSL8149.pdzx -O 中国经济双重转型之路.pdzx 

-O 文件名.后缀 -O参数是用来重写下载文件名的
说明一下wget的用法。

1、下载整个http或者ftp站点

wget http://place.your.url/here

这个命令可以将http://place.your.url/here 首页下载下来。使用-x会强制建立服务器上一模一样的目录,如果使用-nd参数,那么服务器上下载的所有内容都会加到本地当前目录。

wget -r http://place.your.url/here

这个命令会按照递归的方法,下载服务器上所有的目录和文件,实质就是下载整个网站。这个命令一定要小心使用,因为在下载的时候,被下载网站指向的所有地址 同样会被下载,因此,如果这个网站引用了其他网站,那么被引用的网站也会被下载下来!基于这个原因,这个参数不常用。可以用-l number参数来指定下载的层次。例如只下载两层,那么使用-l 2。

要是您想制作镜像站点,那么可以使用-m参数,例如:

wget -m http://place.your.url/here

这时wget会自动判断合适的参数来制作镜像站点。此时,wget会登录到服务器上,读入robots.txt并按robots.txt的规定来执行。

2、断点续传
当文件特别大或者网络特别慢的时候,往往一个文件还没有下载完,连接就已经被切断,此时就需要断点续传。wget的断点续传是自动的,只需要使用-c参数,例如:

wget -c http://the.url.of/incomplete/file

使用断点续传要求服务器支持断点续传。-t参数表示重试次数,例如需要重试100次,那么就写-t 100,如果设成-t 0,那么表示无穷次重试,直到连接成功。-T参数表示超时等待时间,例如-T 120,表示等待120秒连接不上就算超时。

3、批量下载
如果有多个文件需要下载,那么可以生成一个文件,把每个文件的URL写一行,例如生成文件download.txt,然后用命令:

wget -i download.txt

这样就会把download.txt里面列出的每个URL都下载下来。(如果列的是文件就下载文件,如果列的是网站,那么下载首页)

4、选择性的下载
可以指定让wget只下载一类文件,或者不下载什么文件。例如:

wget -m –reject=gif http://target.web.site/subdirectory

表示下载http://target.web.site/subdirectory,但是忽略gif文件。–accept=LIST 可以接受的文件类型,–reject=LIST拒绝接受的文件类型。

5、密码和认证
wget只能处理利用用户名/密码方式限制访问的网站,可以利用两个参数:

–http-user=USER    设置HTTP用户
–http-passwd=PASS   设置HTTP密码

对于需要证书做认证的网站,就只能利用其他下载工具了,例如curl。

6、利用代理服务器进行下载
如果用户的网络需要经过代理服务器,那么可以让wget通过代理服务器进行文件的下载。此时需要在当前用户的目录下创建一个.wgetrc文件。文件中可以设置代理服务器:

http-proxy = 111.111.111.111:8080
ftp-proxy = 111.111.111.111:8080

分别表示http的代理服务器和ftp的代理服务器。如果代理服务器需要密码则使用:

–proxy-user=USER       设置代理用户
–proxy-passwd=PASS     设置代理密码

这两个参数,使用参数–proxy=on/off 使用或者关闭代理;wget还有很多有用的功能,需要自己可以去了解一下参数和用法。

wget的使用格式

 

Usage: wget [OPTION]… [URL]…

1、用wget做站点镜像

wget -r -p -np -k http://dsec.pku.edu.cn/~usr_name/
or
wget -m http://dsec.pku.edu.cn/~usr_name/

2、在不稳定的网络上下载一个部分下载的文件,以及在空闲时段下载

wget -t 0 -w 31 -c http://dsec.pku.edu.cn/BBC.avi -o down.log &

或者从filelist读入要下载的文件列表

wget -t 0 -w 31 -c -B ftp://dsec.pku.edu.cn/linuxsoft -i filelist.txt -o down.log &

上面的代码还可以用来在网络比较空闲的时段进行下载。我的用法是:在mozilla中将不方便当时下载的URL链接拷贝到内存中然后粘贴到文件 filelist.txt中,在晚上要出去系统前执行上面代码的第二条。

3、使用代理下载

wget -Y on -p -k https://sourceforge.net/projects/wvware/

代理可以在环境变量或wgetrc文件中设定。

在环境变量中设定代理:

export PROXY=http://211.90.168.99:8080/

在~/.wgetrc中设定代理:

http_proxy = http://proxy.yoyodyne.com:18023/
ftp_proxy = http://proxy.yoyodyne.com:18023/

 

wget各种选项分类列表

1、启动

-V, –version 显示wget的版本后退出
-h, –help 打印语法帮助
-b, –background 启动后转入后台执行
-e, –execute=COMMAND 执行`.wgetrc’格式的命令,wgetrc格式参见/etc/wgetrc或~/.wgetrc

2、记录和输入文件

-o, –output-file=FILE 把记录写到FILE文件中
-a, –append-output=FILE 把记录追加到FILE文件中
-d, –debug 打印调试输出
-q, –quiet 安静模式(没有输出)
-v, –verbose 冗长模式(这是缺省设置)
-nv, –non-verbose 关掉冗长模式,但不是安静模式
-i, –input-file=FILE 下载在FILE文件中出现的URLs
-F, –force-html 把输入文件当作HTML格式文件对待
-B, –base=URL 将URL作为在-F -i参数指定的文件中出现的相对链接的前缀
–sslcertfile=FILE 可选客户端证书
–sslcertkey=KEYFILE 可选客户端证书的KEYFILE
–egd-file=FILE 指定EGD socket的文件名

3、下载

–bind-address=ADDRESS 指定本地使用地址(主机名或IP,当本地有多个IP或名字时使用)
-t, –tries=NUMBER 设定最大尝试链接次数(0 表示无限制).
-O –output-document=FILE 把文档写到FILE文件中
-nc, –no-clobber 不要覆盖存在的文件或使用.#前缀
-c, –continue 接着下载没下载完的文件
–progress=TYPE 设定进程条标记
-N, –timestamping 不要重新下载文件除非比本地文件新
-S, –server-response 打印服务器的回应
–spider 不下载任何东西
-T, –timeout=SECONDS 设定响应超时的秒数
-w, –wait=SECONDS 两次尝试之间间隔SECONDS秒
–waitretry=SECONDS 在重新链接之间等待1…SECONDS秒
–random-wait 在下载之间等待0…2*WAIT秒
-Y, –proxy=on/off 打开或关闭代理
-Q, –quota=NUMBER 设置下载的容量限制
–limit-rate=RATE 限定下载输率

4、目录

-nd –no-directories 不创建目录
-x, –force-directories 强制创建目录
-nH, –no-host-directories 不创建主机目录
-P, –directory-prefix=PREFIX 将文件保存到目录 PREFIX/…
–cut-dirs=NUMBER 忽略 NUMBER层远程目录

5、HTTP选项

–http-user=USER 设定HTTP用户名为 USER.
–http-passwd=PASS 设定http密码为 PASS.
-C, –cache=on/off 允许/不允许服务器端的数据缓存 (一般情况下允许).
-E, –html-extension 将所有text/html文档以.html扩展名保存
–ignore-length 忽略 `Content-Length’头域
–header=STRING 在headers中插入字符串 STRING
–proxy-user=USER 设定代理的用户名为 USER
–proxy-passwd=PASS 设定代理的密码为 PASS
–referer=URL 在HTTP请求中包含 `Referer: URL’头
-s, –save-headers 保存HTTP头到文件
-U, –user-agent=AGENT 设定代理的名称为 AGENT而不是 Wget/VERSION.
–no-http-keep-alive 关闭 HTTP活动链接 (永远链接).
–cookies=off 不使用 cookies.
–load-cookies=FILE 在开始会话前从文件 FILE中加载cookie
–save-cookies=FILE 在会话结束后将 cookies保存到 FILE文件中

6、FTP选项

-nr, –dont-remove-listing 不移走 `.listing’文件
-g, –glob=on/off 打开或关闭文件名的 globbing机制
–passive-ftp 使用被动传输模式 (缺省值).
–active-ftp 使用主动传输模式
–retr-symlinks 在递归的时候,将链接指向文件(而不是目录)

7、递归下载

-r, –recursive 递归下载--慎用!
-l, –level=NUMBER 最大递归深度 (inf 或 0 代表无穷).
–delete-after 在现在完毕后局部删除文件
-k, –convert-links 转换非相对链接为相对链接
-K, –backup-converted 在转换文件X之前,将之备份为 X.orig
-m, –mirror 等价于 -r -N -l inf -nr.
-p, –page-requisites 下载显示HTML文件的所有图片

8、递归下载中的包含和不包含(accept/reject)

-A, –accept=LIST 分号分隔的被接受扩展名的列表
-R, –reject=LIST 分号分隔的不被接受的扩展名的列表
-D, –domains=LIST 分号分隔的被接受域的列表
–exclude-domains=LIST 分号分隔的不被接受的域的列表
–follow-ftp 跟踪HTML文档中的FTP链接
–follow-tags=LIST 分号分隔的被跟踪的HTML标签的列表
-G, –ignore-tags=LIST 分号分隔的被忽略的HTML标签的列表
-H, –span-hosts 当递归时转到外部主机
-L, –relative 仅仅跟踪相对链接
-I, –include-directories=LIST 允许目录的列表
-X, –exclude-directories=LIST 不被包含目录的列表
-np, –no-parent 不要追溯到父目录

wget -S –spider url 不下载只显示过程。

Linux服务器SSH挂断后继续后台运行命令

linux强制覆盖复制所有文件与不覆盖复制所有文件

Google Voice保号方法

PC端使用改地址:https://voice.google.com/

GV官方推荐app,具有Googlevoice app的全部功能,还可以创建环聊群组,是一款im-like应用(打电话还是建议使用环聊拨号器,因为VOICE需要代理节点支持UDP通讯)。

使用注意点:
1、环聊和Google Voice app不可以同时使用,使用环聊时需将号码授权从Google Voice app转移到环聊。
2、必须将Google Voice号码设置为谷歌账号的辅助号码,否则可能会出现无法转接的情况。
3、WebChat Out充值需要微信和Google Play商店都打开后台弹出界面权限,否则无法充值。

安卓端环聊及环聊拨号器下载地址:
https://play.google.com/store/apps/details?id=com.google.android.talk&referrer=utm_source%3Dlandingpage%26utm_campaign%3Dlandingpage&hl=en

【环聊】

https://play.google.com/store/apps/details?id=com.google.android.apps.hangoutsdialer&referrer=utm_source%3Dlandingpage%26utm_campaign%3Dlandingpage&hl=en

【环聊拨号器】

Voice APP下载地址:https://play.google.com/store/apps/details?id=com.google.android.apps.googlevoice

对于苹果手机,请一定登录美国区的苹果账号进行下载。

苹果端环聊下载地址:https://itunes.apple.com/us/app/hangouts/id643496868?mt=8&ign-mpt=uo%3D4

苹果端GV APP下载地址:https://apps.apple.com/us/app/google-voice/id318698524

特别提醒:注意红色部分!!!!

 

Google voice互相拨打免费,拨打美国和加拿大号码也是免费。

全球资费查询:https://voice.google.com/u/0/rates 

中国大陆资费:0.02美元/分钟,香港资费:0.03美元/分钟,相当于人民币一毛五和二毛一

保号条件:https://www.google.com/intl/zh-CN/googlevoice/program-policies.html

如果您有Google语音号码,但在9个月内既没有拨出电话或收到来电,也没有发送或收到短信,则Google会收回该号码。不过,Google不会收回已转携至Google语音服务或申请了永久使用权的号码。

 

1、订阅促销短信。

发送join 到 527365 ,然后要回复CC
先发 code 到 25666  然后回复 PROMO

也可以查询美国沃尔玛和好市多的促销短信订阅方式。

2.、打公共电话

有点儿公共资源。。。建议打个机器人试试就好了。

美国亚马逊免费客服热线:+1(888)280-4331

美国微软激活Windows免费电话:+1(888)571-2048

同时可查询其它美国大型公司的客服电话,注意IPhone是人工客服。

3、自定义电话

用IFTTT的定时服务定期拨打电话给你即可,这里推荐两个service

Keep Google Voice Active 一个月拨打一次,可自定义时间和日期(搜索Keep Gooogle Voice Active

Alarm Clock Phone Call 强迫症福利,可自定义拨打频率、时间

4、30美金转成永久
这里看
https://www.googlevoice.cn/buy-permanent-use/

 

Google Play APK谷歌商店镜像站

不断变化的世界秩序—桥水基金达利欧

我相信,尽管与历史上许多其它时代相似,但未来的时代将与我们一生中迄今为止经历的任何时代都截然不同。

我之所以这么认为,是因为大约18个月前,我进行了一项有关帝国、及其储备货币和其市场的兴衰研究,这是由于我看到了我一生中从未发生过的许多不寻常的事态发展,但我知道这种事在历史上发生过无数次。最重要的是,我看到的:

  • 1、高负债率和极低利率的汇合,这限制了中央银行刺激经济的权力;
  • 2、国家内部巨大的贫富差距和政治分歧,导致社会和政治的冲突增加 ;
  • 3、崛起的世界大国(chi*a)正企图挑战已过度扩张的世界霸权(美国),从而导致外部冲突。最近的类似时间是1930年至1945年。这让我非常担忧。

 

 

以下英文原文,后续会全部翻译成中文。

I believe that the times ahead will be radically different from the times we have experienced so far in our lifetimes, though similar to many other times in history.

I believe this because about 18 months ago I undertook a study of the rises and declines of empires, their reserve currencies, and their markets, prompted by my seeing a number of unusual developments that hadn’t happened before in my lifetime but that I knew had occurred numerous times in history. Most importantly, I was seeing the confluence of 1) high levels of indebtedness and extremely low interest rates, which limits central banks’ powers to stimulate the economy, 2) large wealth gaps and political divisions within countries, which leads to increased social and political conflicts, and 3) a rising world power (China) challenging the overextended existing world power (the US), which causes external conflict.  The most recent analogous time was the period from 1930 to 1945.  This was very concerning to me.

As I studied history, I saw that this confluence of events was typical of periods that existed as roughly 10- to 20-year transition phases between big economic and political cycles that occurred over many years (e.g., 50-100 years).  These big cycles were comprised of swings between 1) happy and prosperous periods in which wealth is pursued and created productively and those with power work harmoniously to facilitate this and 2) miserable, depressing periods in which there are fights over wealth and power that disrupt harmony and productivity and sometimes lead to revolutions/wars. These bad periods were like cleansing storms that got rid of weaknesses and excesses, such as too much debt, and returned the fundamentals to a sounder footing, albeit painfully. They eventually caused adaptations that made the whole stronger, though they typically changed who was on top and the prevailing world order.

The answers to this question can only be found by studying the mechanics behind similar cases in history—the 1930-45 period but also the rise and fall of the British and Dutch empires, the rise and fall of Chinese dynasties, and others—to unlock an understanding of what is happening and what is likely to happen.[1] That was the purpose of this study.  Then the pandemic came along, which was another one of those big events that never happened to me but happened many times before my lifetime that I needed to understand better.

My Approach

While it might seem odd that an investment manager who is required to make investment decisions on short time frames would pay so much attention to long-term history, through my experiences I have learned that I need this perspective to do my job well.  My biggest mistakes in my career came from missing big market moves that hadn’t happened in my lifetime but had happened many times before.  These mistakes taught me that I needed to understand how economies and markets have worked throughout history and in faraway placesso that I could learn the timeless and universal mechanics underlying them and develop timeless and universal principles for dealing with them well.

The first of these big surprises for me came in 1971 when I was 22 years old and clerking on the floor of the New York Stock Exchange as a summer job.  On a Sunday night, August 15, 1971, President Nixon announced that the US would renege on its promise to allow paper dollars to be turned in for gold.  This led the dollar to plummet.  As I listened to Nixon speak, I realized that the US government had defaulted on a promise and that money as we knew it had ceased to exist.  That couldn’t be good, I thought.  So on Monday morning I walked onto the floor of the exchange expecting pandemonium as stocks took a dive. There was pandemonium all right, but not the sort I expected.  Instead of falling, the stock market jumped about 4 percent.  I was shocked.  That is because I hadn’t experienced a currency devaluation before.  In the days that followed, I dug into history and saw that there were many cases of currency devaluations that had similar effects on stock markets.  By studying further, I figured out why, and I learned something valuable that would help me many times in my future.  It took a few more of those painful surprises to beat into my head the realization that I needed to understand all the big economic and market moves that had happened in the last 100+ years and in all major countries.

In other words, if some big and important event had happened in the past (like the Great Depression of the 1930s), I couldn’t say for sure that it wouldn’t happen to me, so I had to figure out how it worked and be prepared to deal with it well. Through my research I saw that there were many cases of the same type of thing happening (e.g., depressions) and that by studying them just like a doctor studies many cases of a particular type of disease, I could gain a deeper understanding of how they work.  The way I work is to study as many of the important cases of a particular thing I can find and then to form a picture of a typical one, which I call an archetype. The archetype helps me see the cause-effect relationships that drive how these cases typically progress. Then I compare how the specific cases transpire relative to the archetypical one to understand what causes the differences between each case and the archetype.  This process helps me refine my understanding of the cause-effect relationships to the point where I can create decision-making rules in the form of “if/then” statements—i.e., if X happens, then make Y bet. Then I watch actual events transpire relative to that template and what we are expecting.  I do these things in a very systematic way with my partners at Bridgewater Associates.[1a] If events are on track we continue to bet on what typically comes next, and if events start to deviate we try to understand why and course correct.

My approach is not an academic one created for scholarly purposes; it is a very practical one that I follow in order to do my job well.  You see, as a global macro investor, the game I play requires me to understand what is likely to happen to economies better than the competition does.  From my years of wrestling with the markets and trying to come up with principles for doing it well, I’ve learned that 1) one’s ability to anticipate and deal well with the future depends on one’s understanding of the cause-effect relationships that make things change and 2) one’s ability to understand these cause-effect relationships comes from studying how they have played out in the past.  How practical this approach has been can be measured in Bridgewater’s performance track record over several decades.

This Approach Affects How I See Everything

Having done many such studies in pursuit of timeless and universal principles, I’ve learned that most things—e.g., prosperous periods, depressions, wars, revolutions, bull markets, bear markets, etc.—happen repeatedly through time.  They come about for basically the same reasons, typically in cycles, and often in cycles that are as long or longer than our lifetimes.  This has helped me come to see most everything as “another one of those,” just like a biologist, upon encountering a creature in the wild, would identify what species (or “one of those”) the creature belongs to, think about how that species of thing works, and try to have and use timeless and universal principles for dealing with it effectively.

Seeing events in this way helped shift my perspective from being caught in the blizzard of things coming at me to stepping above them to see their patterns through time.[2] The more related things I could understand in this way, the more I could see how they influence each other—e.g., how the economic cycle works with the political one—and how they interact over longer periods of time.  I also learned that when I paid attention to the details I couldn’t see the big picture and when I paid attention to the big picture I couldn’t see the details.  Yet in order to understand the patterns and the cause-effect relationships behind them, I needed to see with a higher-level, bigger-picture perspective and a lower-level, detailed perspective simultaneously, looking at the interrelationships between the most important forces over long periods of time.  To me it appears that most things evolve upward (improve over time) with cycles around them, like an upward-pointing corkscrew:

No alt text provided for this image

For example, over time our living standards rise because we learn more, which leads to higher productivity, but we have ups and downs in the economy because we have debt cycles that drive actual economic activity up and down around that uptrend.

I believe that the reason people typically missthe big moments of evolution coming at them in life is that we each experience only tiny pieces of what’s happening.  We are like ants preoccupied with our jobs of carrying crumbs in our minuscule lifetimes instead of having a broader perspective of the big-picture patterns and cycles, the important interrelated things driving them, and where we are within the cycles and what’s likely to transpire. From gaining this perspective, I’ve come to believe that there are only a limited number of personality types going down a limited number of paths that lead them to encounter a limited number of situations to produce only a limited number of stories that repeat over time.[3]

The only things that change are the clothes the characters are wearing and the technologies they’re using.

This Study & How I Came to Do It

One study led to another that led me to do this study.  More specifically:

  • Studying money and credit cycles throughout history made me aware of the long-term debt cycle (which typically lasts about 50-100 years), which led me to view what is happening now in a very different way than if I hadn’t gained that perspective.  For example, before interest rates hit 0% and central banks printed money and bought financial assets in response to the 2008-09 financial crisis I had studied that happening in the 1930s, which helped us navigate that crisis well.  From that research, I also saw how and why these central bank actions pushed financial asset prices and the economy up, which widened the wealth gap and led to an era of populism and conflict.  We are now seeing the same forces at play in the post-2009 period.
  • In 2014, I wanted to forecast economic growth rates in a number of countries because they were relevant to our investment decisions.  I used the same approach of studying many cases to find the drivers of growth and come up with timeless and universal indicators for anticipating countries’ growth rates over 10-year periods.  Through this process, I developed a deeper understanding of why some countries did well and others did poorly.  I combined these indicators into gauges and equations that we use to produce 10-year growth estimates across the 20 largest economies.  Besides being helpful to us, I saw that this study could help economic policy makers because, by seeing these timeless and universal cause-effect relationships, they could know that if they changed X, it would have Y effect in the future.  I also saw how these 10-year leading economic indicators (such as the quality of education and the level of indebtedness) were worsening for the US relative to big emerging countries such as China and India.  This study is called “Productivity and Structural Reform: Why Countries Succeed and Fail, and What Should Be Done So Failing Countries Succeed.”
  • Soon after the Trump election in 2016 and with increases in populism in developed countries becoming more apparent, I began a study of populism.  That highlighted for me how gaps in wealth and values led to deep social and political conflicts in the 1930s that are similar to those that exist now.  It also showed me how and why populists of the left and populists of the right were more nationalistic, militaristic, protectionist, and confrontational—and what such approaches led to.  I saw how strong the conflict between the economic/political left and right could become and the strong impact this conflict has on economies, markets, wealth, and power, which gave me a better understanding of events that were and still are transpiring.
  • From doing these studies, and from observing numerous things that were happening around me, I saw that America was experiencing very large gaps in people’s economic conditions that were obscured by looking only at economic averages. So I divided the economy into quintiles—i.e., looking at the top 20% of income earners, the next 20%, and so on down to the bottom 20%—and examined the conditions of these populations individually.  This resulted in two studies.  In “Our Biggest Economic, Social, and Political Issue: The Two Economies—The Top 40% and the Bottom 60%,” I saw the dramatic differences in conditions between the “haves” and the “have-nots,” which helped me understand the greater polarity and populism I saw emerging.  Those findings, as well as the intimate contact my wife and I were having through her philanthropic work with the reality of wealth and opportunity gaps in Connecticut communities and their schools, led to the research that became my “Why and How Capitalism Needs to Be Reformed” study.
  • At the same time, through my many years of international dealings in and research of other countries, I saw huge global economic and geopolitical shifts taking place, especially in China.  I have been going to China a lot over the last 35 years and am lucky enough to have become well-acquainted with its top policy makers.  This has helped me see up close how remarkable the advances in China have been and how excellent the capabilities and historical perspectives that were behind them are.  These excellent capabilities and perspectives have led China to become an effective competitor with the US in production, trade, technology, geopolitics, and world capital markets.

By the way you can read these studies for free at www.economicprinciples.org.

So, whatyou are now reading came about because of my need to understand important things that are now happening that hadn’t happened in my lifetime but have happened many times before that.  These things are the result of three big forces and the questions they prompt.

1) THE LONG-TERM MONEY AND DEBT CYCLE

At no point in our lifetimes have interest rates been so low or negative on so much debt as they are today.  At the start of 2020, more than $10 trillion of debt was at negative interest rates and an unusually large amount of additional new debt will soon need to be sold to finance deficits.  This is happening at the same time as huge pension and healthcare obligations are coming due.  These circumstances raised some interesting questions for me.  Naturally I wondered why anyone would want to hold debt yielding a negative interest rate and how much lower interest rates can be pushed.  I also wondered what will happen to economies and markets when they can’t be pushed lower and how central banks could be stimulative when the next downturn inevitably came.  Would central banks print a lot more currency, causing its value to go down? What would happen if the currency that the debt is denominated in goes down while interest rates are so low?  These questions led me to ask what central banks will do if investors flee debt denominated in the world’s reserve currencies (i.e., the dollar, the euro, and the yen), which would be expected if the money that they are being paid back in is both depreciating in value and paying interest rates that are so low.

In case you don’t know, a reserve currency is a currency that is accepted around the world for transactions and savings. The country that gets to print the world’s primary currency (now the US) is in a very privileged and powerful position, and debt that is denominated in the world’s reserve currency (i.e., US dollar-denominated debt) is the most fundamental building block for the world’s capital markets and the world’s economies.  It is also the case that all reserve currencies in the past have ceased to be reserve currencies, often coming to traumatic ends for the countries that enjoyed this special privilege.  So I also began to wonder whether, when, and why the dollar will decline as the world’s leading reserve currency—and how that would change the world as we know it.

2) THE DOMESTIC WEALTH AND POWER CYCLE  

Wealth, values, and political gaps are now larger than at any other time during my lifetime.  By studying the 1930s and other prior eras when polarity was also high, I’ve learned that which side wins out (i.e., left or right) will have very big impacts on economies and markets.  So naturally I wondered what these gaps will lead to in our time.  My examinations of history have taught me that, as a principle, when wealth and values gaps are large and there is an economic downturn, it is likely that there will be lot of conflict about how to divide the pie. How will people and policy makers be with each other when the next economic downturn arrives? I am especially concerned because of the previously mentioned limitations on central banks’ abilities to cut interest adequately to stimulate the economy.  In addition to these traditional tools being ineffective, printing money and buying financial assets (now called “quantitative easing”) also widen the wealth gap because buying financial assets pushes up their prices, which benefits the wealthy who hold more financial assets than the poor.

3)  THE INTERNATIONAL WEALTH AND POWER CYCLE 

For the first time in my lifetime, the United States is encountering a rival power.  China has become a competitive power to the United States in a number of ways and is growing at a faster rate than the US.  If trends continue, it will be stronger than the United States in most of the most important ways that an empire becomes dominant.  (Or at the very least, it will become a worthy competitor.)  I have seen both countries up close for most of my life, and I now see how conflict is increasing fast, especially in the areas of trade, technology, geopolitics, capital, and economic/political/social ideologies.  I can’t help but wonder how these conflicts, and the changes in the world order that will result from them, will transpire in the years ahead and what effects that will have on us all.

The confluence of these three factors piques my curiosity and most draws my attention to similar periods such as the 1930-45 period and numerous others before that. More specifically, in 2008-09 like in 1929-32, there were serious debt and economic crises.  In both cases, interest rates hit 0% which limited central banks’ ability to use interest rate cuts to stimulate the economy, so, in both cases, central banks printed a lot of money to buy financial assets which, in both cases, caused financial asset prices to rise and widened the wealth gap.  In both periods, wide wealth and income gaps led to a high level of political polarization that took the form of greater populism and battles between ardent socialist-led populists of the left and ardent capitalist-led populists of the right.  These domestic conflicts stewed while emerging powers (Germany and Japan in the 1930s) increasingly challenged the existing world power.  And finally, just like today, the confluence of these factors meant that it was impossible to understand any one of them without also understanding the overlapping influences among them.

As I studied these factors, I knew that the short-term debt cycle was getting late and I knew that a downturn would eventually come.  I did not expect the global pandemic to be what brought it about, though I did know that past pandemics and other acts of nature (like droughts and floods) have sometimes been important contributors to these seismic shifts.

To gain the perspective I needed about these factors and what their confluence might mean, I looked at the rises and declines of all the major empires and their currencies over the last 500 years, focusing most closely on the three biggest ones: the US empire and the US dollar which are most important now, the British Empire and the British pound which were most important before that, and the Dutch Empire and the Dutch guilder before that.  I also focused less closely on the other six other significant, though less dominant, empires of Germany, France, Russia, Japan, China, and India.  Of those six, I gave China the most attention and looked at its history back to the year 600 because 1) China was so important throughout history, it’s so important now, and it will likely be even more important in the future and 2) it provides many cases of dynasties rising and declining to look at to help me better understand the patterns and the forces behind them.  In these cases, a clearer picture emerged of how other influences, most importantly technology and acts of nature, played significant roles.  From examining all these cases across empires and across time, I saw that important empires typically lasted roughly 250 years, give or take 150 years, with big economic, debt, and political cycles within them lasting about 50-100 years.  By studying how these rises and declines worked individually, I could see how they worked on average in an archetypical way, and then I could examine how they worked differently and why.  Doing that taught me a lot. My challenge is in trying to convey it well.

Remember That What I Don’t Know Is Much Greater Than What I Know

In asking these questions, from the outset I felt like an ant trying to understand the universe.  I had many more questions than answers, and I knew that I was delving into numerous areas that others have devoted their lives to studying.  So I aggressively and humbly drew on knowledge of some remarkable scholars and practitioners, who each had in-depth perspectives on some piece of the puzzle, though none had the holistic understanding that I needed in order to adequately answer all my questions.  In order to understand all the cause-effect relationships behind these cycles, I combined my triangulation with historians (who specialized in different parts of this big, complicated history) and policy makers (who had both practical experiences and historical perspectives) with an examination of statistics drawn out of ancient and contemporary archives by my excellent research team and by reading a number of superb books on history.

While I have learned an enormous amount that I will put to good use, I recognize that what I know is still only a tiny portion of what I’d like to know in order to be confident about my outlook for the future.  Still, I also know from experience that if I waited to learn enough to be satisfied with my knowledge, I’d never be able to use or convey what I have learned.  So please understand that while this study will provide you with my very top-down, big-picture perspective on what I’ve learned and my very low-confidence outlook for the future, you should approach my conclusions as theories rather than facts.  But please keep in mind that even with all of this, I have been wrong more times than I can remember, which is why I value diversification of my bets above all else. So, whenever I provide you with what I think, as I’m doing in this study, please realize that I’m just doing the best I can to openly convey to you my thinking.

It’s up to you to assess for yourself what I’ve learned and do what you like with it.

How This Study Is Organized

As with all my studies, I will attempt to convey what I learned in both a very short, simple way and in a much longer, more comprehensive way.  To do so, I wrote this book in two parts.

Part 1 summarizes all that I learned in one very simplified archetype of the rises and declines of empires, drawing from all my research of specific cases.  In order to make the most important concepts easy to understand, I will write in the vernacular, favoring clarity over precision.  As a result, some of my wording will be by and large accurate but not always precisely so. (I will also highlight key sentences in bold so that you can just read these and skip the rest to quickly get the big picture.)  I will first distill my findings into an index of total power of empires, which provides an overview of the ebbs and flows of different powers, that is constituted from eight indexes of different types of power.  Then I go into an explanation of these different types of power so you can understand how they work, and finally I discuss what I believe it all means for the future.

Part 2 shows all the individual cases in greater depth, sharing the same indices for all the major empires over the last 500 years.  Providing the information this way allows you to getthe gist of how I believe these rises and declines work by reading Part 1 and then to choose whether or not to go into Part 2 to see these interesting cases individually, in relation to each other, and in relation to the template explained in Part 1.  I suggest that you read both parts because I expect that you will find the grand story of the evolutions of these countries over the last 500 years in Part 2 fascinating.  That story presents a sequential picture of the world’s evolution via the events that led the Dutch empire to rise and decline into the British empire, the British empire to rise and decline into the US empire, and the US empire to rise and enter its early decline into the rise of the Chinese empire.  It also compares these three empires with those of Germany, France, Russia, Japan, China, and India.  As you will see in the examinations of each of them, they all broadly followed the script, though not exactly.  Additionally, I expect that you will find fascinating and invaluable the stories of the rises and declines of the Chinese dynasties since the year 600 just like I did.  Studying the dynasties showed me what in China has been similar to the other rises and declines (which is most everything), helped me to see what was different (which is what makes China different from the West), and gave me an understanding of the perspectives of the Chinese leaders who all study these dynasties carefully for the lessons they provide.

Frankly, I don’t know how I’d be able to navigate what is happening now and what will be coming at us without having studied all this history.  But before we get into these fascinating individual cases, let’s delve into the archetypical case.

IMPORTANT DISCLOSURES

Information contained herein is only current as of the printing date and is intended only to provide the observations and views of Bridgewater Associates, L.P. (“Bridgewater”) as of the date of writing unless otherwise indicated. Bridgewater has no obligation to provide recipients hereof with updates or changes to the information contained herein. Performance and markets may be higher or lower than what is shown herein and the information, assumptions and analysis that may be time sensitive in nature may have changed materially and may no longer represent the views of Bridgewater. Statements containing forward-looking views or expectations (or comparable language) are subject to a number of risks and uncertainties and are informational in nature. Actual performance could, and may have, differed materially from the information presented herein. Past performance is not indicative of future results.

Bridgewater research utilizes data and information from public, private and internal sources, including data from actual Bridgewater trades. Sources include, the Australian Bureau of Statistics, Barclays Capital Inc., Bloomberg Finance L.P., CBRE, Inc., CEIC Data Company Ltd., Consensus Economics Inc., Corelogic, Inc., CoStar Realty Information, Inc., CreditSights, Inc., Credit Market Analysis Ltd., Dealogic LLC, DTCC Data Repository (U.S.), LLC, Ecoanalitica, EPFR Global, Eurasia Group Ltd., European Money Markets Institute – EMMI, Factset Research Systems, Inc., The Financial Times Limited, GaveKal Research Ltd., Global Financial Data, Inc., Haver Analytics, Inc., The Investment Funds Institute of Canada, Intercontinental Exchange (ICE), International Energy Agency, Lombard Street Research, Markit Economics Limited, Mergent, Inc., Metals Focus Ltd, Moody’s Analytics, Inc., MSCI, Inc., National Bureau of Economic Research, Organisation for Economic Cooperation and Development, Pensions & Investments Research Center, Refinitiv, Renwood Realtytrac, LLC, RP Data Ltd, Rystad Energy, Inc., S&P Global Market Intelligence Inc., Sentix Gmbh, Spears & Associates, Inc., State Street Bank and Trust Company, Sun Hung Kai Financial (UK), Tokyo Stock Exchange, United Nations, US Department of Commerce, Wind Information (Shanghai) Co Ltd, Wood Mackenzie Limited, World Bureau of Metal Statistics, and World Economic Forum. While we consider information from external sources to be reliable, we do not assume responsibility for its accuracy.

The views expressed herein are solely those of Bridgewater and are subject to change without notice. In some circumstances Bridgewater submits performance information to indices, such as Dow Jones Credit Suisse Hedge Fund index, which may be included in this material. You should assume that Bridgewater has a significant financial interest in one or more of the positions and/or securities or derivatives discussed.  Bridgewater’s employees may have long or short positions in and buy or sell securities or derivatives referred to in this material. Those responsible for preparing this material receive compensation based upon various factors, including, among other things, the quality of their work and firm revenues.

This material is for informational and educational purposes only and is not an offer to sell or the solicitation of an offer to buy the securities or other instruments mentioned. Any such offering will be made pursuant to a definitive offering memorandum. This material does not constitute a personal recommendation or take into account the particular investment objectives, financial situations, or needs of individual investors which are necessary considerations before making any investment decision. Investors should consider whether any advice or recommendation in this research is suitable for their particular circumstances and, where appropriate, seek professional advice, including legal, tax, accounting, investment or other advice.

The information provided herein is not intended to provide a sufficient basis on which to make an investment decision and investment decisions should not be based on simulated, hypothetical or illustrative information that have inherent limitations. Unlike an actual performance record, simulated or hypothetical results do not represent actual trading or the actual costs of management and may have under or over compensated for the impact of certain market risk factors. Bridgewater makes no representation that any account will or is likely to achieve returns similar to those shown. The price and value of the investments referred to in this research and the income therefrom may fluctuate.

Every investment involves risk and in volatile or uncertain market conditions, significant variations in the value or return on that investment may occur. Investments in hedge funds are complex, speculative and carry a high degree of risk, including the risk of a complete loss of an investor’s entire investment. Past performance is not a guide to future performance, future returns are not guaranteed, and a complete loss of original capital may occur. Certain transactions, including those involving leverage, futures, options, and other derivatives, give rise to substantial risk and are not suitable for all investors. Fluctuations in exchange rates could have material adverse effects on the value or price of, or income derived from, certain investments.

This information is not directed at or intended for distribution to or use by any person or entity located in any jurisdiction where such distribution, publication, availability or use would be contrary to applicable law or regulation or which would subject Bridgewater to any registration or licensing requirements within such jurisdiction.

No part of this material may be (i) copied, photocopied or duplicated in any form by any means or (ii) redistributed without the prior written consent of Bridgewater ® Associates, LP.

©2020 Bridgewater Associates, LP. All rights reserved


[1]To be clear, while I am describing these cycles of the past, I’m not one of those people who believe that what happened in the past will necessarily continue into the future without understanding the cause-effect mechanics that drive changes.  My objective above all else is to have you join with me in looking at the cause-effect relationships and then to use that understanding to explore what might be coming at us and agree on principles to handle it in the best possible way.

[1a]For example, I have followed this approach for debt cycles because I’ve had to navigate many of them over the last 50 years and they are the most important force driving big shifts in economies and markets.  If you are interested in understanding my template for understanding big debt crises and seeing all the cases that made it up, you can get Principles for Navigating Big Debt Crisesin free digital form at www.economicprinciples.org or in print form for sale in bookstores or online.  It was that perspective that allowed Bridgewater to navigate the 2008 financial crisis well when others struggled.  I’ve studied many big, important things (e.g., depressions, hyperinflation, wars, balance of payments crises, etc.) by following this approach, usually because I was compelled to understand unusual things that appeared to be germinating around me.

[2]I approach seeing just about everything this way.  For example, in building and running my business, I had to understand the realities of how people think and learn principles for dealing with these realities well, which I did using this same approach.  If you are interested in what I learned about such non-economic and non-market things, I conveyed it in my book Principles: Life and Work, which is free in an app called “Principles in Action” available on the Apple App Store or is for sale in the usual bookstores.

[3]In my book Principles: Life and Work, I shared my thinking about these different ways of thinking.  I won’t describe them here but will direct you there should you be interested.

香港手机卡最低资费方案

一、资费最低方案

1、香港CSL Hello卡

分为印尼卡和菲律宾卡,购买时请留意。

某宝无售,购买需要转运,香港各拍卖平台有售,30-40人民币即可到手$48储值额卡。

行政费:$2.5/月  有效期180天

增值方式:自行购买增值券增值,每增值$20可续期半年

漫游资费信息:https://www.hkcsl.com/en/pccw-hkt-hello-philippines-connect/

International Roaming Voice Call7 Roaming Charge
SMS3 Local / International SMS charges + $4 / SMS
Data8 $0.12 / KB

2、香港和记3卡(Three卡)

购买某宝有售(大约60-70能拿到$100储值额卡)

行政费:$0.5/半年

增值方式:某宝可购买增值券(增值券某宝有售)增值,每增值$50可续期一年,相当于$25半年

请注意:虽然官方写着只能增值券充值,但据考证可以官网网上增值(支付宝)同样能延期一年(不保证注意)

漫游资费信息:https://web.three.com.hk/prepaid/intcard/index.html

本地通話 流動電話至流動電話 $0.05 / 分鐘
流動電話至固網號碼 $0.06 / 分鐘 (星期一至五: 下午11點 – 上午11點; 星期六,日及公眾假期)
$0.12 / 分鐘 (星期一至五: 上午11點 – 下午11點)
短訊 網內 免費
(由2019年5月10日起將調整免費500個短訊/30日)16
網外 $0.5 / 短訊
國際 $2 / 短訊
漫遊 $3.5 / 短訊

二、其他方案

1、CMHK万众卡

行政费:$2/月,$50续期半年,储值方式支持支付宝

资费:

http://www.hk.chinamobile.com/tc/corporate_information/Prepaid_SIM/local_users/prepaid-services-4g3g-localtalk.html

2、CSL ABC卡

行政费:$3/月,$50续期半年,储值方式支持支付宝

资费:https://www.hkcsl.com/tc/abc-mobile-local-prepaid-sim/

3、CSL本地储值卡

应该和上面的ABC差不多

4、Smartone卡

行政费:$2.5/月,$50续期半年,储值方式支持AlipayHK

资费:

https://www.smartone.com/tc/mobile_and_price_plans/prepaid/broadband_sim/service.jsp

5、易博通

没有实体卡,收短信有一定限制,$68/年,不做整理

6、中国联通卡

不适合保号,不做整理

 

转载自可乐博客

Gcore(gcorelabs)付款改ID问题

地址:https://ruhosting.gcorelabs.com/

在付款时的PAY按钮右键点检查,改付款选项。

把Pay地方的
data-id=”paymethod=xxx”

改成
data-id=”paymethod=8″(以美元形式用Paypal支付)
用Paypal貌似需要多交一部分税的样子
或者
data-id=”paymethod=13″ (以前是支付宝支付,现在跳转到信用卡了)

如果添加一个地址是中国的付款人,再将data-id=”paymethod=13″,付款就可以使用支付宝和信用卡。

 

 

美国大学研究

粗略研究了一下美国大学文化

芝加哥大学:有非常浓厚的学术氛围,在各个学术界都直接代表一个独立的芝加哥学派,如芝加哥建筑学派,芝加哥社会学派等,芝加哥大学图书馆有6个,藏书破亿,其中有一整个书架记录从九一八事变开始中国各党各军的抗日实录及军事著作(包括华野档案、东北抗联、解放军军史等),对面书架则放着日本历年的防务白皮书和战争资料,书架的反面摆满了东南亚其它国家对二战的记录和描述,在西方国家有如此庞大的中文藏书已经十分罕见,且有不同国家对于同一事件的不同角度书籍,更加罕见。芝加哥大学是一所有较深学术功底的学校。
芝加哥建筑学:全世界第一个摩天大楼和全世界大多数摩天大楼都是源于芝加哥建筑学派,所以芝加哥建筑学派在现代建筑学中占有十分重要的地位,芝加哥学派建筑最典型的特点就是钢架结构和巨大的玻璃外墙。
芝加哥社会学:芝加哥犯罪比较猖獗,芝加哥大学一面是密歇根湖,另外三面都是当地黑帮的地盘,校内每隔几十米就有一个跟路灯一样的报警器,这就造就芝加哥大学对社会学和犯罪学特别关注,研究较多。芝加哥大学的社会学主要分政策和临床,较普通大学的宏观和微观分类更加客观且有实操性

 

哈佛大学:首先声明,哈佛大学早上四点的图书馆是假的……哈佛图书馆晚上是关门的。
哈佛排名第一的是医学,但是这个学科招的中国人很少,在中国读完高中进入哈佛医学院的几乎没有,如今哈佛录取中国学生的整体比例已经升高到20%,但是在中国参加高考后去读哈佛医学院的中国学生的特别少。哈佛给学生打分非常宽松,备受诟病,但是依然我行我素。

 

耶鲁大学:耶鲁大学是几位看不惯哈佛开放作风的校友创建的,耶鲁大学没有挂科一说,期末考试是给学生放假四天,学生自己出题自我测验,最后只需要回答你有没有作弊有没有通过即可,这也是很多人觉得耶鲁大学低调、佛系的主要原因,但是耶鲁大学依然理念排名美国最佳大学第一名。
耶鲁大学还有一个非常知名的学生组织,骷髅会,此协会每年只邀请十几名优秀学生入会,历史上有好几名美国总统和大法官都是骷髅会成员,不过美国小报记者经过调查之后觉得骷髅会只是一个简单的学生组织,并不是什么企图掌控美国的政治组织。
耶鲁大学在美国算是学费要求非常高的学校,但是耶鲁也奉行按能力录取学生的方式,只要录取了学生就一定会给高额奖学金让学生去读(包括外国人)。

 


斯坦福大学:硅谷后备基地,中流砥柱,同时非常多互联网公司都来自斯坦福校友。就读该校基本就注定了你毕业时可以在美国IT行业拿到高薪(美国职场有校友文化)。该校最强是计算机专业、机械工程专业、电子工程专业等,并十分注重试错精神,每年会组织学生表达自己今年做过的错误尝试。

2019年4月GitHub上最热门的开源项目

4月份GitHub最热门的开源项目的时候了,一起来看看你都知道哪些,或者有哪些你已经在使用的了。

1、996.ICU

https://github.com/996icu/996.ICU Star 5881

本项目和技术无关,但却和程序员息息相关,大家都知道,国内许多程序员都逃不开996的工作模式。而这个项目就是控诉国内大厂996模式。

2、libpku

https://github.com/lib-pku/libpku Star 15820

该项目是由一名北大在读大学生整理创建的北京大学课程资料,涉及的课程领域从专业课到公选课,政治课、英语课、通选课等,甚至连历年考试的试卷都有了,查阅更多项目详情可点击:《我在GitHub上找到了北大的计算机课程资料》

3、Python

https://github.com/TheAlgorithms/Python Star 32270

该项目用Python实现了所有的排序算法,包括插入排序、冒泡排序、快速排序、选择排序、归并排序等。

4、support.996.ICU

https://github.com/MSWorkers/support.996.ICU Star 8560

该项目来自微软和 GitHub 的上百名工程师联名书写了一封公开信,宣布声援“996.ICU”运动,希望大家在 README 中添加自己的名字表示支持。

5、zju-icicles

https://github.com/QSCTech/zju-icicles Star 10464

浙江大学课程攻略共享计划 ,课程涵盖人工智能、Java应用技术、操作系统原理、数据库系统原理等等。

6、Editor.js

https://github.com/codex-team/editor.js Star 7574

Editor.js是一个Block-Styled编辑器。主要特性如下:

  • 块样式的编辑器(block-styled editor)
  • 返回简洁的 JSON
  • 采用简单的 API 设计,可扩展和可插拔
7、JavaGuide

https://github.com/Snailclimb/JavaGuide Star 37744

一份Java学习指南,涵盖大部分Java程序员所需要掌握的核心知识

8、Awesome-Design-Tools

https://github.com/LisaDziuba/Awesome-Design-Tools Star 14894

本项目收集了许多很棒的设计工具,诸如动画工具、AR、字体工具、渐变工具、代码工具等等

9、git-tips

https://github.com/521xueweihan/git-tips Star 8756

本项目列举了常用的 Git 命令和一些小技巧,号称Git的奇技淫巧,查看更多详情可点击:《还不会用Git的程序员,这份开源项目拿好了》

10、pumpkin-book

https://github.com/datawhalechina/pumpkin-book Star 5750

南瓜书,本书为西瓜书的一些细微补充,周志华老师的《机器学习》(西瓜书)是机器学习领域的经典入门教材之一。

11、nndl.github.io

https://github.com/nndl/nndl.github.io Star 7109

神经网络与深度学习课程,本课程主要介绍神经网络与深度学习中的基础知识、主要模型(卷积神经网络、循环神经网络等)以及在计算机视觉、自然语言处理等领域的应用。