Categories
advice and tips kids

Had a small scare at Creve Coeur lake

Reading Time: 2 minutes

Today I had a small scare at the CC lake. I was chatting with friends while keep an eye on Sophia the 5 year old. Serenity the 10 year old went paddle boarding with friend with their moms permission. I found out after the fact, and when I asked the moms (my wife and Serenity friend’s mom), who were watching them, they said “we don’t know where they are on the lake”. This made me start to worry. Our quick response is, we rent a kayak to search on the lake. We asked around, not seeing them, increasingly worried, and even thought about calling 911. At this time I asked if we can use “find my iPhone” to find the girl, because the other girl’s mom hanged the phone on Serenity’s neck. It eventually worked, and we found them not too far from where they started, and it’s near the bank too. We were relieved, and did a bit more kayak afterwards.

My lesson here is make sure Serenity has her own iPhone, and help her learn how to use. Basically the friend’s mom called the girls twice, and the girls did not pick up the phone properly (accidentally pressed the “declined” button, thus the ensuing panic). Because this time she had friend’s mom’s iPhone on her neck while she was paddling / using the roar to push forward. And we had to call her friend’s dad to run this “find my iPhone” to pinpoint the particular device. I also want to make sure we have better network: maybe Verizon or AT&T for my whole family down the road. Right now both my wife and myself have mint mobile which uses t-mobile network, and it’s considered not as good as the VZ and T.

Serenity’s mom’s thinking is we should keep an eye on them all the time, unfortunately due to the size of this lake, it’s a bit impractical.

Categories
advice and tips

Covid etc

Reading Time: < 1 minute

First I want to make a quick announcement, I moved my website from uudaddy.com to stlplace.com/uudaddy as I decided no longer paying for the domain name uudaddy.com. Today incidentally I found people grabbed my previous domain.

Back to topic, while the guard for Covid is way down in the US. Please note it’s not completely gone yet. In fact the cases are going up in rural Missouri and many other states such as Arizona. A few months ago I create a README.md file in the Covid repo on GitHub. The websites I used to look up the US information are still valid: 1point3acres and coronainusa . I also follow Chris Prener (a SLU professor) and he has some good updates and charts for Missouri Covid as well. Such as this one. His GitHub repo here.

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