Categories
advice and tips finance

Adjusted my 403b fund allocation a bit

Reading Time: < 1 minute

Move some money from the two vanguard funds to the higher return funds. I usually looked at the 10 year return. I understand past return does not guarantee future success, but still…

current allocation: moving from vanguard small cap index and real estate index to Hartford and Janus, refer to below for the performances (two the large number columns, left is 10 year annualized return, the right is the annual return since inception)
Fund info
Categories
advice and tips

Special Occasion Speech: to Graduates in 2020

Reading Time: 2 minutes

It’s the worst times, it’s the best times. Pandemic and recession at the same time. For me the best part is spending some quality time with my wife and kids, the worst part is I have not got a haircut for over 3 months.

All these will pass. For college graduates or post college graduates, find something meaningful while living in your parents house, or basement. If Uber retracted the offer for your software engineer job, you may want to find something in the local schnucks or instacart, while continuing to pursue your dream in software development, be a mentor in launch code, apply to jobs at the fields that are still hiring: from Amazon to Walmart…

For high school graduates: your senior year or graduation is really unique, isn’t it? No proms or graduation like in the past: a lot of car parades or yard signs. My 4th grader daughter is graduating from her elementary school this year and I got a flavor of it. I have been in a similar boat in my life regarding college too: I was not accepted to a college of my first choice. I do believe most of you have received admission to colleges or know where you will go next. You may or may not know the status of “will college open or not”? Is it going to be online plus some in person class, or everything online like Cal State? We don’t know. We will find out as time goes. Hope the colleges make the right decisions in the circumstances.

In summary, I want to say don’t be afraid of the unknown or setbacks. Or even small failures. I still remember the night before I boarded the flight to the US for graduate school in 1997. I went to bed after packing all the stuff (managed to close the luggage box), then I could not fall asleep due to all this uncertainty. Step out of our comfort zone, what does not kill us will only make us stronger.

Categories
Java Software development Technology

Spring batch, Spring Scheduler, PCF

Reading Time: < 1 minute

Was experimenting running scheduled job on PCF. One natural choice is PCF scheduler, which comes with the Pivotal Web Services (PAAS). Googled around and found this example on DZone. The spring batch code is here. There was a small typo in the manifest.yaml,

path: build/libs/payment-processing-spring-batch-0.0.1-SNAPSHOT.jar
Note the snapshot.jar file name does not match what’s specified in the build.gradle file.

The correct file name is

spring-batch-job-0.0.1-SNAPSHOT.jar

The rest of the manifest.yml looks good, in fact I used the following options for my spring scheduler app manifest.

no-hostname: true
no-route: true
health-check-type: none

But PCF scheduler is not available in our environment. The Spring Scheduler is used instead. I followed this Get Started Guide from Spring. In my case I need to use Cron Expression, here is the code sample and here is the guide to cron expression.

Last but not least, in my case I need to send out email notification for the cron job conditionally. I used the java email code sample here.

======

Some PCF references

pivotal web serivce

cf login -a https://api.run.pivotal.io/

https://console.run.pivotal.io/tools

https://docs.pivotal.io/pcf-dev/index.html

cf login -a api.local.pcfdev.io --skip-ssl-validation

https://tanzu.vmware.com/tutorials/getting-started/local/deploy-the-sample-app

Categories
401k and Personal Finance

GCP Cloud Storage and PCF

Reading Time: < 1 minute

Tried two two tutorials on my personal GCP.

hello world


cloud storage (upload a file, then return a public url for download; another download link)

I may delete those bucket and files later on, as hosting costs money (app engine, cloud storage). Update: I disabled the app (here is one article talking about disable / delete app engine app). In simple term: I go to project, app engine, go to settings, click disable. Btw, I noticed all 73 cents charges for about 20 hours is from app engine.

From GCP Console Dashboard, I saw Resource

App Engine
2 versions
Storage
4 buckets

GCP Service Broker

For PCF, the approach above did not work (got an error on line 61 on the example above). I followed the steps for GCP service broker and pushed it to our pcf.

Virus Scan

Automating malware scanning for documents uploaded to Cloud Storage

PCF Sample App

It looks like with the VMWare Pivotal acquisition / integration, their hello world sample app website also moved. Here is the new link.

Categories
advice and tips finance

Industries got disrupted

Reading Time: 2 minutes

(Update 04-14-2024) I may have written this on Twitter/X, or here in my blog, that once at Sam’s Club (Manchester road), I saw a lady who is probably laid off from the media industry. And she was doing samples there. We all praised her for her cooking skills for salmon samples. She said she had degrees in journalism but it’s hard to find jobs in that area 🙁 If I find the tweet or the blog post, I will put a link here.

I found out I wrote it on my FB. I copied the content and put it in my blog post (scroll to the end).

(Original 05-2020, during pandemic) The recent pandemic hit some industries particularly hard, for example, airlines, hotels, cruises, casinos, car rental (enterprise layoff), car dealer and other hospitality and sport venues. The impact will be more wide spreading when we saw even the healthcare industry (for the lack of good word) is doing layoffs (BJC; SSM, Mercy), because one of the revenue stream elective surgery were cancelled in the COVID-19 world. Many laid off workers were hoping for a quick come back though, I sympathize with their thinking, but I also believe “hope” is not a strategy.

Over the time US industries go through a lot of changes, some grow, some shrink. A good example is Uber / Lyft are taking a lot of market share from the taxi because of lower price / smart phone integration. I worked for Arch Coal and Mercy between 2011 and 2015, and I can see both industries were not on a solid footing due to various reasons (both internal and external, mostly external forces). For example, Coal is replaced by natural gas in many power plant. For healthcare, government regulations is not helping providers financially. Because I work in IT / software world, I can switch between industries: I feel lucky in that sense.

Another industry is shrinking in recently years is the media esp. the newspaper. They were disrupted by Google News, Facebook news feed and twitter. People get news in new and different ways from the traditional newspaper. I think both Warren Buffett and Charlie Munger said similar things about that. Traditional cable TVs were on that trend too, as streaming and other over the tv top devices are getting more popular. So think about working for Netflix, Disney+, Roku instead of the local news paper or local tv station. It’s a trend and it usually take sometime for the complete or big shift, but we are getting there.

One thing I am interested to see, is how the grocery store, and Costco plays out. In the near term, I felt people are going to Costco less. And going to local grocery store (Schnucks or Aldi here), or using Instacart more. I am the former group.

And colleges too. I am not sure how fall semester will play out.

Last but not least, I am interested to help out any one (IT, software) who were impacted by the pandemic and I can do job referral or mock interview. Just let me know. My twitter handle is @stlplace

Categories
advice and tips finance

Leadership failure and control things we can control

Reading Time: 4 minutes

The handling of #pandemic in the USA is unthinkable a few years ago. But at the same time, it’s not totally uncharted territory as in my last 20+ years here in the US, I have seen at least 3 major incidents or economy crisis following it.

One is the dot com bust, then followed by 9-11-2001, those two are not directly related, but it’s a transition between Clinton administration to Bush administration, things fell through crack. I recall the 16% layoff at my company on 10-11-2001 (a month after 9-11), and the cry from my coworker that being laid off that day. Again the bigger layoff was due to the fact our company acquired a competitor, thus the redundancy. Note the air travel become much more strict since 9-11, before that I can go to airport terminal to send off or to greet family or friends. Now we need to take out laptop, iPad, take off coat, belt, and shoes. Basically the implicit trust between people were lost.

Anyway, Bush administration handled the initial crisis fairly decent, until it started invading Iraq, which has huge legal, moral, economy and human cost. But the US economy largely recovered and grew under Bush with a few glitches such as the handling of Hurricane Katrina, etc. Then in 2007, 2008, the housing crisis started to unravel, as shown in the documentary / movie: too big to fail starred by Hank Paulson. I watched it again recently and it reminded me of the days when CNBC does this crisis show in the evenings, and some weekends / Sunday were mostly working sessions for big guys in Wall Streets, and Fed / Treasury dept, and then some banks either went under or got bought. The most recent event reminds me some of that too.

But the #pandemic mismanagement is another level. Basically the US has about 2 months to prepare, and the federal government lost all this due to poor judgement and shear stupidity. Also unfortunately some people in the US has similar IQ as the guy in the WH. So basically politics got in the way, and the society suddenly stopped schools, and office work in mid March. And the unemployment, and pain to people in hospitality and small business is unimaginable (36 million people unemployed). The only thing that alleviate the pain a bit is the government (esp fed) realized the issue and basically started flood the money to the system, and the stimulus from congress esp. on PPP (payroll protection plan), bail out of airlines (similar to PPP, basically pay airline employees through the end of Sept).

Now, back to us, things we can control. No. 1 is still social distancing, good hygiene (hand washing, hand sanitizer, mask, social distancing). On personal finance side, if we don’t have a lot of spare cash, we need to manage our cash flow carefully, and be creative. The goal is get fed, be healthy (mind and body). Don’t raid the 401k or IRAs, if possible. Apply unemployment or PPP (small business owners). Contact the food banks if needed. Sell unused items on eBay or other sites. Cut cable TVs if applicable. There are still jobs at Amazon, or Walmart, just make sure you have enough PPE (mask, hand sanitizer) etc. Also, it’s never too old to learn about personal finance. My sense of people lack of saving is two fold: 1) The income is low, paycheck to paycheck; 2) The math can be improved. So focus on that, see if one can save $10, or $20 a month. If it’s $30 a month, it will be $360 a year, and there was a report saying 40% of Americans don’t have $400 in bank. So basically one can beat almost 40% of the people by saving $33 a month.

For me personally, this is the first financial crisis since I have two kids. I am older, and have a little more savings (due to the sale of condo recently). I am earning a bit more from work too (that part is not given). And personally I felt more confident on stock market (this is not given either, as I usually only long stocks. I have some winners such as $OKTA, and losers such as $DIS). Surprisingly I am not overly worried. Probably due to the fact I had been through layoffs and etc. Probably because I am older and wiser 🙂

Control things we can control

This is actually from my former CIO at arch coal, Dave Hartley. Arch Coal was in a pretty bad financial situation when I was there, 2011 to 2012. The company was cutting cost and our CIO was using that motto to encourage us. And I think it’s very much applicable today. I also recall Warren Buffett famously said “don’t bet against American”. My takeaway is majority of Americans are fair minded, decent, willing to work hard given opportunity, some have good entrepreneurship, and so on. I don’t want to put an cliche here: together we can win. But the reality is we are dealt with the cards we were dealt with. We can make the most / best out of it. We cannot change the cards.

Bonus read: so in summary, for 9-11, I think both President Clinton and president Bush bear responsibility. For 2008 financial crisis, President Bush. Pandemic, we know who to blame (hint: not China or Bill Gates 🙂

Categories
Software development Technology

How to generate a Lets encrypt SSL cert

Reading Time: < 1 minute

I followed the instruction here https://certbot.eff.org to get a free SSL cert for my website: (pretty cool, huh 🙂 (found it here)

To actually do it, I just go to the website: Scroll down a little, select the software and the system my website is running on, and it will generate all the command-lines for me, here is my link 🙂

There is one small glitch after the installation of ssl cert: that is in the wordpress, I need to set the home page from http to https.

Also, an older post Move WordPress from Share Hosting to DigitalOcean

Yet another post related to this. Btw, I noticed the ssl cert renews automatically.

Earlier: I summarized it on twitter.

Categories
advice and tips

Stereotype II and racism

Reading Time: 3 minutes

(Wrote some more after seeing Breonna Taylor news): I was watching the PBS Asian American series. A few comments pops out in my mind: I did not realize there is discrimination against Indian American before watching this. Then an Indian American commentator said: basically the new immigrants wanted to be seen as “white”, or as minimum they want to be in between the white (I guess the ruling class), and the black (African American). This reminds me Joe Biden once commented on Barack Obama (this guy is clean). I know Joe likes to put his foot into his mouth, but what does mean?! Maybe Joe just said “politically incorrect” thing in a lot white people’s mind? Also please note Obama is mostly raised by his mom (white) and his maternal grandma (and grandpa, both white). || So my point here is while the United States always like to criticize other people / other countries’s human rights record, what about the African Americans at home?! Caging the immigrants children is another level.

(Original) I wrote about this a while ago in Chinese.

In light of the Ahmaud Arbery’s killing, I like to add more. 2 or 3 minutes read below.

Years ago I was in Rolla, driving my first car, a run-down Toyota Celica 1984 black, my American friend (graduate student, caucasian) joked I could be pulled over by police because of my car. He said his good old American Buick or Pontiac would do fine with police. I did get pulled over a few times, some are my own fault, such as my tail light was not working, or I did not drive straight (I was new driver, they think I was drunk). But I agree with some of things he said. Then in 2006, I talked to my roommate (young professional, caucasian too), and I said John Edwards may have the best chance break out from the Dems presidential primary because Hilary is woman, Obama is African American, and people here are not ready for them yet. I was wrong: I still remember the election night Nov 2008 I was on the way from Little Rock to St. Louis, I took the delta flight transfer in Atlanta which is unnecessary because the Southwest has direct flight. At Atlanta airport it looks like Obama was going to win (McCain is a good guy though).

I also remember Eric Holder (Obama’s AG) said he got pulled over from state highway patrol for no reason. I think things changed somewhat after Ferguson, black lives matter, but obviously took a step back in recent years too. I can see similar kind of racism in China too (against Africans live and work in Guangzhou).

Overall, over the time though, I do see two things: 1) Majority of people are decent, and they can tell right or wrong, and be on the right side of the history (in the US, that means civil war, women’s voting rights, the civil rights, etc), in the current pandemic they believe in science, wear facemarks when needed, and respect the frontline workers, and when possible, support the less fortunate. 2) In tough times though, we also see both the best and the worst of human beings, for example, I can see people calling Bill Gates the globalist (elitist), call for punish China or incite violence in Hong Kong, the armed militias storm the state capitols etc. Those are on the wrong side of the history, and they are minorities.

A bit off topic, the bottomline is racism is stupid and has no place in our world… (now you know, you don’t want me to say something 

Categories
Fun kids

Family photos

Reading Time: 3 minutes

Family photos of my grandma, my father, me, and my 2 older brothers. This was taken by my father’s friend in middle 1970s (1976?). It appears both my 2nd brother and myself did not start school yet, as we did not have the red collars on our necks: a bit like boy scouts and girl scouts here. It was in the courtyard of our family home in Xiaomeng, Ningbo, Zhejiang province. I stayed and studied in the village elementary school until the very beginning of grade 5. My grandma passed away when I was in the senior year of high school (late 1988). My mom was not in the picture because she was working. Photography was a luxury at the time as China was an impoverished nation at that time. Bicycle, sewing machine and watch were the 3 luxury items young couple like to have when they getting married at that time. Now it’s the house (apartment, which is unaffordable in Shanghai, Beijing and other major cities). I am guessing I was 5 at that time, my brothers were 7 and 9 years old. Now I am probably more than 15 years older than my father on the picture.

I think the first picture is 1976 (they are one picture, I snapped the original picture using my iPhone a few years ago when I visited my childhood home). I added another picture which is June 1961: I saw my uncle there (mom’s big brother, he passed away 2 years ago, he was 87 years old). I found that picture online (https://www.sohu.com/a/243472385_467312) when I searched for my uncle’s name and the school he was the head (Baifeng middle schoo. He was 30 years old in that picture).

My uncle / my mom’s big brother, Hu Jinyu 胡金雨, is shown in the second row (counting from left, the fourth person, I can see some resemblance with my mom / maternal grandma). He is the first head of Baifeng Middle School.

A kind of funny episode involves my uncle and me

说说这个典故:高考前那个晚上,我失眠了。我可能是半夜醒来,就睡不回去了。我知道大舅🈶葡萄酒🍷,我就打开他的葡萄酒喝了不少,想着帮助睡眠,实际上没啥用。这事我外婆知道,因为她过来做我高考的后勤保障(烧饭),平时她一般是跟小舅住的。后来,我大舅当然发现了。他倒不是心疼他的葡萄酒:我现在想想他应该是有点后怕 – 因为万一我因为喝酒高考考砸了呢?因为我是农村户口的,我两个哥哥已经考出农们了。后来,我每次去大舅家,只要有其它亲戚在,他都会说说我”偷喝酒”的事 🙂

Below English was translated by Google translate

Let me tell you this story: The night before the college entrance examination, I couldn’t sleep. I might wake up in the middle of the night and couldn’t go back to sleep. I knew that my eldest uncle 🈶 drank wine🍷, so I opened his wine and drank a lot of it, thinking it would help me sleep, but it actually didn’t work. My grandmother knew about this because she came over to provide logistical support (cooking) for my college entrance examination, and she usually lives with my younger uncle. Later, of course, my eldest uncle found out. It’s not that he felt sorry for his wine: now I think he should be a little scared – because what if I failed the college entrance examination because of drinking? Because I have a rural household registration, my two brothers have already passed the examination to become farmers. Later, every time I went to my eldest uncle’s house, as long as other relatives were there, he would talk about my “secret drinking”.

Categories
Software development Technology

Couple agile tools

Reading Time: < 1 minute

Point Poker: free (accepts donation). A nice pointing tool, click start session, for collaborators: put in name, and join the session.

Fun Retro: there are free and non-free choices. The free ones are public. It’s a bit like Trello. For that matter, if someone likes to keep it private, I think Trello is a good alternative: just put in swimming lanes such as liked, learned, lacked, longed for and action items

scrumpoker-online