Skip to main content

Posts

What kind of president does the United States need now?

Imagine if the Soviet Union still exists and, like the Communist China, the Soviets firmly control the power. Like the present China, the ideology does not allow any democratic ideas to exist. It launches a large-scale spy war and steals advanced Western technology. ..., for the United States, it is definitely a disaster, and the United States is no longer the only superpower; the United States has to maintain a large-scale military presence in Europe, Asia, the Middle East, and South America in response to the Soviet threat. Fortunately, since President Ronald Reagan came to power, he has adopted a smart financial policy and cut off the financing channels of the Soviet Union. At the same time, he used oil weapons to form an alliance with Saudi Arabia. Saudi Arabia increased oil production, causing oil prices to plummet from 35 US dollars per barrel. To the 12 dollars, the result is that the Soviet Union’s oil revenue has plummeted. Eventually, the Soviet economy was exhausted,

python3 string find method

Description It determines if string str occurs in string, or in a substring of string if starting index beg and ending index end are given. Syntax str.find(str, beg=0, end=len(string)) Parameters str − This specifies the string to be searched. beg − This is the starting index, by default its 0. end − This is the ending index, by default its equal to the length of the string. Return Value Index if found and -1 otherwise. Example: Python 3.6.6 (v3.6.6:4cf1f54eb7, Jun 27 2018, 03:37:03) [MSC v.1900 64 bit (AMD64)] on win32 Type "copyright", "credits" or "license()" for more information. >>> str1 = "This is a string to test the find method." >>> str2 = "string" >>> print(str1.find(str2)) 10 >>> print(str1.find(str2,10)) 10 >>> print(str1.find(str2,10+1)) -1 >>>

stock market has got rotten

The stock market is rotten. Despite the great uncertainty, the VIX is still low, no matter good news or bad news, the stock market keep growing. It is totally controlled by the Wall Street. The FED also has problem. Not like Alan Greenspan and many other President of FED, Jerome Powell has a strong boss, Trump, he insist the FED should cut interest rate. No president in history interfare FED like this ever. There is big possibility that FED compromise.

how to use Array.‎IndexOf(Array, Object) in C sharp

using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ARRAYINDEX {     class Program     {         static void Main(string[] args)         {             double[] numbers = { 15.05, 58.3, 22, 95.55, 177.2, 46.65, 0.85 };             double maxNumber = numbers.Max();             int indexOfMaxNumber = Array.IndexOf(numbers, maxNumber);             Console.WriteLine("The index of max number in the array is {0}", indexOfMaxNumber);             Console.Read();         }     } }

To fight back Trump, China still has three major destructive weapons

US President Trump’s tariff on China’s 200 billion US dollars has risen to 25%, which has caused the US-China trade war to heat up again. Although China has not yet resorted to counter-measures, experts believe that Beijing still holds three major counter-attack weapons, including The depreciation of the renminbi, the sale of US Treasury bonds, and the refusal to purchase US soybeans, etc. But the measures have to be taken carefully, otherwise they may hurt China itself. Weapon 1: RMB depreciation China can offset the impact of US tariffs on the Chinese economy through the depreciation of the renminbi. However, Wang Tao, the chief Chinese economist at UBS, pointed out that the depreciation of the RMB in 2015 caused capital outflows and also weakened domestic confidence. So China may have  concerns to use this weapon. Weapon 2: Selling US Treasury bonds China currently holds US$1.1 trillion in US Treasury bonds. As the biggest amount holder of most US debts, the reduction of US

Both country win temporarily from the trade war

1. The Trump administration plans to raise the tariff of goods worth $20 billion to the United States to 25% from January 1. After the meeting with the Chinese side on December 1, the negotiation process was started and the time was extended to March 1st; later at the end of February, the time was delayed again. The negotiations did not have any results at the end, but the time was greatly extended. From this point of view, the Chinese side is a winner. 2. Judge from Trump's Twitter, it was because the Chinese attempted to withdraw some of the promises, which led to the breakdown of the negotiations, thus the process of raising tariffs is opening up . However, the punishment is not enough. The time for these tariff increases is pushed back. Now there are some deceptive factors superimposed and more punishments should be imposed. 3. The United States has obtained tariffs on the Chinese side and the taxation procedures for the remaining products imported from China is started. Ther

How to make a custom search engine and search the resources from Baidu cloud disk?

Baidu cloud disk is a popular net disk in China, nowdays there are almost 0.4 billion users across the country, also there are a huge numbers of users overseas. There are a lot of shared content on it, video, e-book, music, etc, and many of these are downloadable. Thus, it is convenient for us to collect a lot of learning resources from it to improve us.  Combine google's custom search engine, we can find the resources easily. Below is the steps:- 1. Type google custom search engine in the textares, and press enter. 2. The very first one is the right link, click it. 3. Then we come to the Custom Search control center. Click the "Add" button. 4. The create new CSE page shows. The rules are quite clear below. As the site we are going to search is baidu cloud, so we add the sites in the text area as below:- pan.baidu.com/* yun.baidu.com/* 5. Finally, we click the "Creat" button in the bottom of the page, done. The final outlook is like f