Friday, November 09, 2018

Countries turning away from the U.S. toward China

With US absent, world's exporters turn attention to China

And so it happens.

When the U.S. shuts its doors, people will turn to other doors. It might have taken a lot more years before China could fully overtake the U.S. in terms of economic strength, but this shift away from the U.S. (due to U.S. policies) toward China has shown that instead of hurting China, the trade war between the two may turn out to be beneficial to China in the long run at the detriment of the U.S.

But by then, Trump would be gone, and claiming it is not his fault.

Thursday, November 08, 2018

Trump's remarks to the press after the mid-term elections



Transcript: Remarks by President Trump in Press Conference After Midterm Elections

An 86 minute video of the press conference that President Trump gave after the mid-term elections. Quite a long one to sit through, but it is highly educational, in the insight you can gain into Trump's way of thinking and doing things, and what he stands for. Also entertaining in a sarcastic way.

Key takeaways:

  • He hates McCain. He still cannot get over it, even though the man is no longer in this world. He still has to bring up McCain opposing his "repeal without replace" bill.
  • He doesn't really like reporters. He doesn't like women. He doesn't like people who are not white. If you are an African American female reporter, you are better off asking questions to a wall. At least the wall won't interrupt you or demean you.
  • The art of the deal, to him, is about threats. It is my way or the high way. If you don't do what he wants, he will do bad things. He is like a combination of school bully and spoiled brat. Basically, "Give me that or I will punch you" with "Buy me that toy or I will pee on the floor." But it also means that the Democrats, world leaders, and companies who need to deal with him have a way to do so. Just deal with him like how you would handle a school bully who also happens to be a spoiled brat.
  • He is not about making America great. Because to him, it is more important to stop the Democrats from investigating him, to the extent he is willing for things to come to a standstill (which is definitely bad for the U.S.). So people can be without healthcare, the military can be without a budget, as long as the Democrats can be kept from investigating him.
  • He doesn't like to lose, and even if he lost, he doesn't like to admit it, and he doesn't appreciate it when people point it out. So for those who need him to get things done, find a way to save him face.
  • He doesn't like facts. Numbers do not matter to him. Perception does. So the press can call him out with the facts and figures, but it won't matter to him. They mean nothing to him. He will just spin his own story, no matter what the facts and figures are. So a tip to the media: when you play a clip of him spinning tales, put up the respective figures beside that clip so that people can hear him talk and see the actual figures at the same time. Side by side. Don't show the clip, then call him out. Side by side.
  • He talked about the Democrats wanting to impeach him, and then they won't stop, they will go after Pence. Personally, I think if anything, the Republicans should just backstab Trump by striking a deal with the Democrats to impeach Trump and make Pence, who is a strong conservative, the President. And unlike Trump, which probably has many skeletons in the closet, it is going to be much harder to find reasons to impeach Pence.
  • When things go wrong, it is never his fault. He will always find someone else to blame. So for those who work with him, or for him, always be ready for him to put the blame on you. Better yet, have a contingency plan on how to rectify the record when he does do so.


The day after... where is my pill?

Let's take a look at what may happen, now that Democrats have control of the House while Republicans gained seats in the Senate.

Trump fires Sessions, vows to fight Democrats if they launch probes

First, Trump fired Sessions, his Attorney General. Something he has always want to do, and now he has done it. Was it a wise move? Some would say no, since Sessions has been helping Trump drive the conservative agenda all this while, going after immigration and minority rights. But while the Democrats have the House, the Senate is still Republican, and now, filled with even more pro-Trump Senators. This means it is unlikely the Senate will vote to support Trump's impeachment. And likely that any political appointment Trump puts out will be confirmed.

Which means Mattis is likely to go soon... and Kelly has been sidelined already anyway, so it doesn't matter whether he gets replaced or not.

BTW, when the AG gets fired, the next in line for succession is the deputy AG. By law. So I am not very sure how Sessions' chief-of-staff can be acting AG. Probably illegal. Someone should challenge that.

Oh, and vowing to fight back should the Democrats subpoena his tax returns... that is not what an innocent man says. It's like a fifteen year old boy telling his mother, "Don't you dare look under my bed!" If a person has nothing to hide, he would hate that intrusion, but he will comply and say, "Look all you want, you ain't going to find anything in there." Threatening people only makes everyone wonder, "Hmm... what is he hiding in there?"

So now that he has hijacked the Senate, what can the Democrats do?

One thing Pelosi can do is offer Mitch a deal: the Republicans already have a firm majority in the Senate. Impeach Trump, Pence becomes President, and the Republicans will still control the Senate. Meanwhile, the Democrats will play nice and the House will agree to certain laws that the Republicans want to pass. Basically, "impeach Trump and we will have compromise and bipartisanship for the next two years; keep Trump, and politics will come to a standstill for two years." Of course, it is only two years; Mitch may just decide to rough it out, hang in there for two years, and bet on winning back the House in two years' time. Still, it is an option to get things done while Mitch is in office.

And attacking Republicans, after they have lost, saying that they lost because they never embraced you... that's just narcissistic. Unless elections in the U.S. has degraded into popularity contests. This ain't a vote for prom king and queen. Democracy is not about voting for a person; it is about voting for a person who best represents your own ideals and desires. People don't vote for Trump because they like Trump; they vote for what he represents. But I guess it is too difficult for him to understand the concept of democracy. 

Wednesday, November 07, 2018

Empires may be made by conquerors, but dynasties last because of rulers

If the House is blue and the Senate is red, there will be a political standstill since, in the age of Trump, people have become politically extreme, and it is unlikely there will be any middle ground.

If the House and Senate are both red, there will be social unrest, since the majority is actually blue (as shown by Clinton's majority vote in 2016) and the policies will be contrary to what the majority agrees with.

Whatever the case, there is going to be quite some problems unless the U.S. can find some way to steer back from the current politically extreme path, away from dividing people toward uniting them. And with Trump in the seat, that is unlikely to happen, since his method is to divide and conquer. But conquer doesn't mean anything unless he can rule. Empires may be made by conquerors, but dynasties last because of rulers.

U.S. mid-term elections

So today is the day.

The day when we know if the U.S. is actually a country which stands for equal rights and the rule of law, or if it has all along been a racist and misogynist country hiding behind politically correct words.

Personally, I don't think the polls matter, or reflect the real situation. Look at what the polls said for 2016.

Polls are based on people who are willing to respond to them. But elections are based on people who are willing to vote. They may sound similar, but are fundamentally different. The former is about communicating a choice. The latter is about making a choice. Polls have a sample size, and may be biased depending on how the samples are selected. Election results do not have a sample size; the "sample" is the fact, there is no error in it.

In a way, today is the day the U.S. shows the world its true colors. Will it be the stars and stripes? Or the Confederate flag? Or the Nazi one?

Show us who you are, America, so that we can know whether to love or hate you.

But whatever the case, there will continue to be confusion in the U.S. for the years to come. And China will be laughing.

Saturday, October 27, 2018

Compiling Marlin 2.0 for STM32F4

Edit/update: This post was written in October 2018. Since then, Marlin firmware has made quite some progress in supporting STM32 boards. Please check the Marlin firmware documentation, GitHub page, Facebook groups, etc. for the latest info, since I am quite sure what I have written here is outdated.

A note for myself. And for those who want to know how to compile Marlin 2.0 for the STM32F4 series. I was trying to compile for the black STM32F407VET6 development board available on eBay and Aliexpress from Chinese vendors.

First, it seems the only Arduino STM32 core that can be used with Marlin 2.0 for this board is from STMicroelectronics. Even then, the version available via Arduino IDE's package manager is old, and the latest git version must be used for STM32F407VET6 support. To install the git version, see:
https://github.com/stm32duino/wiki/wiki/Using-git-repository

BTW, I was using Arduino IDE 1.8.5, there could be issues with newer IDE versions having to do with preprocessors. Also, I had problems compiling Marlin 2.0 for STM32F407VET6 on PlatformIO. It seems uncertain if the official STMicroelectronics core is available on it or not, which may explain my errors with:
'IWDG_HandleTypeDef' does not name a type
'TIM_HandleTypeDef' does not name a type
'stm32f4_timer_t {aka struct tTimerConfig}' has no member named 'handle'
etc. when I try to compile it for
board         = genericSTM32F407VET6
in platformio.ini

Anyway, I digress. Install from git repository should allow Marlin 2.0 to be compiled with the following changes to the git version of Marlin 2.0:
#define SERIAL_PORT 1
#define MOTHERBOARD BOARD_STM32F4

However, if you try to add LCD support, you may encounter issues. I worked around it by editing
Marlin/src/lcd/dogm/ultralcd_st7920_u8glib_rrd_AVR.cpp
to add
#elif MB(STM32F4)
to this part of the code:
#if F_CPU >= 20000000
  #define CPU_ST7920_DELAY_1 DELAY_NS(0)
  #define CPU_ST7920_DELAY_2 DELAY_NS(0)
  #define CPU_ST7920_DELAY_3 DELAY_NS(50)
#elif MB(3DRAG) || MB(K8200) || MB(K8400) || MB(SILVER_GATE)
  #define CPU_ST7920_DELAY_1 DELAY_NS(0)
  #define CPU_ST7920_DELAY_2 DELAY_NS(188)
  #define CPU_ST7920_DELAY_3 DELAY_NS(0)
#elif MB(MINIRAMBO) || MB(EINSY_RAMBO) || MB(EINSY_RETRO)
  #define CPU_ST7920_DELAY_1 DELAY_NS(0)
  #define CPU_ST7920_DELAY_2 DELAY_NS(250)
  #define CPU_ST7920_DELAY_3 DELAY_NS(0)
#elif MB(RAMBO)
  #define CPU_ST7920_DELAY_1 DELAY_NS(0)
  #define CPU_ST7920_DELAY_2 DELAY_NS(0)
  #define CPU_ST7920_DELAY_3 DELAY_NS(0)
#elif MB(BQ_ZUM_MEGA_3D)
  #define CPU_ST7920_DELAY_1 DELAY_NS(0)
  #define CPU_ST7920_DELAY_2 DELAY_NS(0)
  #define CPU_ST7920_DELAY_3 DELAY_NS(189)
#elif MB(REMRAM_V1)
  #define CPU_ST7920_DELAY_1 DELAY_NS(0)
  #define CPU_ST7920_DELAY_2 DELAY_NS(0)
  #define CPU_ST7920_DELAY_3 DELAY_NS(0)
#elif MB(ARMED)
  #define CPU_ST7920_DELAY_1 DELAY_NS(0)
  #define CPU_ST7920_DELAY_2 DELAY_NS(0)
  #define CPU_ST7920_DELAY_3 DELAY_NS(0)
#elif MB(STM32F4)

#elif F_CPU == 16000000
  #define CPU_ST7920_DELAY_1 DELAY_NS(0)
  #define CPU_ST7920_DELAY_2 DELAY_NS(0)
  #define CPU_ST7920_DELAY_3 DELAY_NS(63)
#else
  #error "No valid condition for delays in 'ultralcd_st7920_u8glib_rrd_AVR.h'"
#endif

Don't worry, the delays are actually defined in pins_STM32F4.h already, but somehow, the STM32F4 is not included here as a board, which results in the "No valid condition" error during compile when LCD is enabled.

Still, this is just compiling the firmware. I have yet to actually load the firmware for testing on an actual board, which is the next logical step. Stay tuned!

Thursday, October 18, 2018

Don't troll

Trump’s fanciful, falsehood-filled AP interview, annotated

The 40 most outrageous lines in Donald Trump's Associated Press interview

Okay, I am not a fan of Trump, but The Washington Post and CNN seem to have taken things a bit too far. I mean, these are supposed to be legitimate news outlets. They should not be embroiled in petty stuff, right? But The Washington Post's annotations of the AP interview seems more like trolling. CNN's article is in the same league.

Annotating with facts is fine. Calling out lies with facts is fine. But throwing in opinions and other subjective comments borders on trolling, and is not something that a respectable news agency does, even if the rest of the country has gone to the dogs in terms of civility.

I just hope someone out there can go through the transcript, and prepare a proper annotation with the facts.

Read the transcript of AP’s interview with President Trump
(the original from AP)

Friday, September 28, 2018

Democracies are so fragile

Seeing the U.S. Senate trying to vote on Brett Kavanaugh to the Supreme Court is just so depressing.

Elected officials are supposed to be acting on behalf of the people who elected them, doing their best to protect those who elected them. So when decisions are based on party lines instead of the people's interests, it is just so depressing.

Because it shows that democracy is so very fragile.

However they vote, the result is the same: the highest elected officials of the land does not take accusations from women seriously. They are not willing to give women the same due process they would give to white men. They are not willing to let the professional investigators in the FBI, career people who make a living from conducting investigations, do their jobs. In short, they do not respect or trust in the FBI's professionalism.

Women being denied due process. A justice system that does not respect nor trust its own investigative agency. Can anyone feel safe under the law anymore? One cannot help but feel that the law seems to be selective in who it protects.

Democracies, when done right, can be very powerful, for it empowers the people. But democracies can also be easily hijacked.

I just hope people continue to keep their eyes and ears open. Because ultimately, in democracies, the people still have a way to take back power from those who hijack their systems. But they can only do that if they are informed and concerned.

Do not let others use our differences to divide us

Our founding fathers knew that as a nation diverse in race and religion, any difference can be exploited to drive a wedge into our society, ripping apart the fabric that holds us together as a nation. Events in other parts of the world in recent years have shown us exactly how a nation can be torn apart by politicians exploiting differences for their own gains. For Singapore to stay strong as a nation, we should be working at ways to find common ground amidst our differences, rather than sit in opposing camps with swords drawn.

Because to do otherwise would mean it is not possible to be both patriotic and religious. And if being both is not possible, the idea of Singapore, based on the ideal of "regardless of race, language, or religion," goes up in smoke.

And that is why I am wary whenever leaders of influential groups seek to put people into two camps, because I do not know if they are trying to exploit those divisions for their own gains. Because there are people who gain from chaos. There are people who seek to stir up emotions so as to cloud what people see.

Do not tell me what is right or wrong. Let me see the arguments and decide for myself. Putting pressure on people to accept your views is just blackmail.

Thursday, September 27, 2018

Looking at Trump's U.N. speech

Trump didn't get a good start at the U.N., being laughed at when he tried to give a speech to an audience unlike the friendly crowds at his rallies. Whoever was the speechwriter ought to be sacked for failing to shape the speech for the audience; it was written more for a domestic crowd ready to hear more propaganda. Here are some of my thoughts as I hear his speech.
"Ultimately, it is up to the nations of the region to decide what kind of future they want for themselves and their children."
"The United States has launched a campaign of economic pressure to deny the regime the funds it needs to advance its bloody agenda. Last month, we began re-imposing hard-hitting nuclear sanctions that had been lifted under the Iran deal. Additional sanctions will resume November 5th, and more will follow. And we’re working with countries that import Iranian crude oil to cut their purchases substantially."
So on one hand, he thinks people should decide what they want for themselves, free from external intervention. Yet just minutes later, he talks about taking steps to influence things in another country (Iran). Dude, which is it?
While the United States and many other nations play by the rules, these countries use government-run industrial planning and state-owned enterprises to rig the system in their favor. They engage in relentless product dumping, forced technology transfer, and the theft of intellectual property.
Can't blame someone for being better at playing by the rules, right? When those in power set the rules, they did it to help themselves. A newcomer comes along, shows that he understands the rules well, and can even exploit them to his favor. But you can't blame him; he is just using those rules you set against you. Can only blame yourself for being stupid, for not seeing how the rules can be abused.
The United States lost over 3 million manufacturing jobs, nearly a quarter of all steel jobs, and 60,000 factories after China joined the WTO. And we have racked up $13 trillion in trade deficits over the last two decades.
It is easy to blame China for everything. But has anyone looked at the increase in service sector jobs? Because it may just be a shift in the economy away from manufacturing (which can be onerous) toward provide value-added services. Jobs could have been lost because of automation. Adam Smith told us about competitive advantage. It is better for nations to produce what they are good at producing, and trade with each other. Could it just be that the U.S. is better at producing services instead of goods? You know, the white collar jobs. Those that pay better instead of being stuck working shifts at a factory.
The United States stands ready to export our abundant, affordable supply of oil, clean coal, and natural gas.
Dude, that's your reserve... that's your insurance. The reason the U.S. has been happy to get oil and other stuff from others, instead of depleting its own resources, is that it was keeping those resources as insurance, as a backup plan should things run dry. When the rest of the world is short of oil, and you still have oil, you are going to have a big voice. But if you start using up that oil now, you are just going to run dry together with the rest of them.
Illegal immigration funds criminal networks, ruthless gangs, and the flow of deadly drugs. Illegal immigration exploits vulnerable populations, hurts hardworking citizens, and has produced a vicious cycle of crime, violence, and poverty. Only by upholding national borders, destroying criminal gangs, can we break this cycle and establish a real foundation for prosperity.
Sad to say, this doesn't solve the problem. It is just containing the problem, keeping it away. The problem is still there. The real way is to see what is causing all the poverty that makes illegal immigration profitable to criminals.
The United States is the world’s largest giver in the world, by far, of foreign aid. But few give anything to us. That is why we are taking a hard look at U.S. foreign assistance.
That's why it is called aid and assistance. If you expect something in return, it is called trade.

My biggest apprehension is this: with the U.S. moving more and more toward isolating itself from the rest of the world, someone else will move in to take its place. And when the rest of the world moves along, the U.S. may get left behind. A superpower in decline, who gets left behind, in possession of nuclear weapons, is a force to be feared.

The Imperial Japanese Army used to have a saying: between competent and incompetent leaders, between decisive and indecisive leaders, the most fearful thing is an incompetent leader who is decisive.

We fear what we do not understand

It is human nature to fear what we do not understand.

But we also need to ask ourselves: is our fear hindering our understanding? Is our fear making us reinforce our lack of understanding, to shut us off from seeking understanding so that we can allay our fear?

Are we the servants of our fear?

Or can we learn to face fear, and to master it?

"I must not fear.
Fear is the mind-killer.
Fear is the little-death that brings total obliteration.
I will face my fear.
I will permit it to pass over me and through me.
And when it has gone past I will turn the inner eye to see its path.
Where the fear has gone there will be nothing. Only I will remain."
-- "Litany Against Fear," Dune

One more year, entering a new club

One more year. And a new club. 😂

Tuesday, September 25, 2018

And so, the musical chair begins

Trade wars: Is Trump lining up Japan next?

A day after I posted this, this article came out in the news.

Like I said, it is a musical chair, because fundamentally, the U.S. relies on imports of goods so that it can export its services. Unless the U.S. fundamentally restructures its economy away from emphasizing services and toward primary and secondary production, it will just need to import. Tariffs will not stop imports unless there are domestic alternatives. If there are no such alternatives, tariffs only serve to increase the costs of businesses, which then gets passed down and eventually increasing the cost of living for consumers.

The question, then, is whether the rest of the world can survive with an economically isolated U.S.? Are there alternatives to things coming from the U.S.? Because if there are, great! We can all just continue to trade with each other, minus the U.S., and carry on with life. There probably will be some restructuring to do, but it won't be a drastic change. And if China is able to do this slight restructuring faster than most, which it may given that the central government has a lot of say in things there, then this may just help to propel China to become the top dog instead. And kill off U.S. hegemony since closed systems don't grow.

If China survives this trade war, it will only come out all the more stronger. If the U.S. survives this trade war, it will just be prolonging its decline if it continues to take an isolationist approach.

Monday, September 24, 2018

Asian firms shifting production out of China, but does it really change things?

Asian firms shuffle production around the region as China tariffs hit

With tariffs being placed by the U.S. on imports from China, companies are shifting production out of China so that their products don't get taxed.

But to me, it is just a musical chair, a matter of time.

While plants usually have existing capabilities for slight increases in production, to sustain this in the long run, they will need to make capital investments for expansion. Which needs money. Which will eventually be reflected in the cost of products. Of course, companies can choose to keep the same price, which means returns on investments will take a longer time.

But as imports from other countries start to increase, their trade balance with the U.S. will change. If it changes enough, the U.S. may go into a trade deficit again, and we all know what the guy in the White House thinks, and may do in such a case. Tariffs.

The fundamental problem is that the U.S. is an importing nation. It imports raw materials and semi-finished products to add value to them, then resell them to consumers both within and outside the U.S. Some of those imports are used by various sectors to provide services, which compared to the imported products, are way bigger earners. Tariffs actually make it less profitable to provide those services, since they increase costs for such companies.

Anyway, until the U.S. fundamentally reshapes its economy toward manufacturing, moving away from services, the trade balance in terms of goods will not really change much.

Friday, September 14, 2018

The case about Section 377A is not about discrimination, but about the rule of law

Singapore society has to decide which direction it wants to take on laws against gay sex: Shanmugam
Decision on Section 377A ‘a matter for Parliament’: Shanmugam
Court challenge filed on 377A arguing that gay sex law ‘violates human dignity’

The current debate in Singapore is about repealing (or keeping) Section 377A of the Penal Code, which basically makes gay sex a crime.
377A.  Any male person who, in public or private, commits, or abets the commission of, or procures or attempts to procure the commission by any male person of, any act of gross indecency with another male person, shall be punished with imprisonment for a term which may extend to 2 years.
To me, the debate about discrimination, equal rights, etc. is valid, but weak.

The key debate, and most alarming point that should be noted, is that the government has made it a stance that while Section 377A is part of the Penal Code, they will not actively enforce it.

Decision to retain Section 377A ‘carefully considered, balanced’

For a country governed by the rule of law, this is an alarming statement. It is saying that while the laws, as set by the legislative (Parliament), reflect the decision of the people, since they choose the Parliament via voting, the government can ultimately choose which laws it will enforce. Which goes totally against the idea of democracy, in which the elected government is supposed to be carrying out the will of the people (as reflected by laws).

Are we a democracy, or not?

Are we going to allow the government to choose which laws to enforce, and which to ignore?

Are we going to allow the government to selectively apply the law?

Are we governed by the rule of law? Or are our laws merely decorations on the wall?

The case is not about the constitutionality of Section 377A. It is about the constitutionality of the government in its decision to not proactively enforce Section 377A. All of them have sworn to discharge their duties according to law. No where in the constitution does it say that the executive branch has the right of selective application of the laws.

Once it has been shown that the government must enforce all laws, then the question of discrimination comes in. Because the constitution states that:

12.—(1)  All persons are equal before the law and entitled to the equal protection of the law.
Discrimination based on sexual orientation targeting only men contravenes this.

So if it was up to me, I would focus on this two-step approach. Long-winded, maybe, but it forces us to address two issues: the executive branch's right to selectively enforce laws, and the discrimination against people based on sex and sexual orientation.