Hang

Ubuntu 22.04

 Triviality  Comments Off on Ubuntu 22.04
Apr 262022
 

Ubuntu 22.04 was just released, I managed to upgrade my WordPress site (running on VM and only publish static site), it was not as smooth as I thought, there were quite some small problems here and there, but eventually it worked after like 4 hours of troubleshooting, and so on.

As a side note, I no longer running Parallels since I found it tricked me to subscription which involves $79.99 per year, luckily I noticed the weird charge on my credit card so was able to cancel it the same day. I’m running my VM on UTM now, I didn’t notice performance difference between UTM and Parallels, though Parallels does provide more convenient features like desktop integration, snapshot, etc.

I think I’ve been running Ubuntu since 10.04, but I’m seriously thinking of moving away from it now due to snap, there are more and more applications over Ubuntu dropped deb support and are solely on snap only, I don’t mind a distro changes its package management tool like yum to dnf, but I just don’t want to have 2 package management mechanism at the same time.

I may not run Fedora as I need LTS, I cannot choose Rocky as it (actually RHEL) lacks of aarch64 support. Most likely I’m going to play with Debian or Arch.

Apr 022022
 

Read from reddit that JetBrains offer free license of their IDE to FOSS projects, applied, got approved in a couple of day, and I’m playing with Goland now. The process could be even faster if I expose my email over github.com, so JetBrains did not have to reach out to me for the verification (licenses bound to email).

I just used it for a day and still trying to change my mindset from VS Code to Goland although both are quite alike, something made me feel weird when I started with Goland includes it collapses “import” section by default, it feels so “java-ish”, and it does not automatically add/remove import whenever code changes, I also missed vim compatible mode as I use vim more than any other editors include VS code.

The screen looks a bit crowded especially when I launched debug, which is understandable as 1. there are lots of details to be shown during debug, and 2. I’m on my 13 inch Macbook Air. I’m going to try this on a larger screen and I’m also going to try if license works for Windows as well.

Move to static site

 Triviality  Comments Off on Move to static site
Mar 042022
 

Several things happened in the past a couple years so I moved this blog site to static, some major issues lead to this change:

  • Google is no longer my preferred service provider, so I’m moving away from AdSense and Analytics
  • I’m no longer actively writing so I don’t expect people interact with me through this site
  • Google is going to stop G Suite legacy so I assume they will stop GCE free tier soon, which I’m running this site at

For now I have an VM running Ubuntu with WordPress installed, I launch the VM whenever I want to write something, then using Simply Static to generate pure static pages then copy to an Nginx server. The Nginx is still running on GCE but since everything’s static, I can easily port it to anywhere cheap whenever needed.

I’ve disabled most dynamic features during this process, like search, comment, AdSense, Analytics, etc. There may be some features that are currently broken, I will fix them whenever I know.

Sep 232017
 
aws route53 change-resource-record-sets --hosted-zone-id $(aws route53 list-hosted-zones | grep -B 1 '"xiehang.com."' | grep '"Id"' | cut -f 4 -d \" | cut -f 3 -d /) --change-batch file://<(echo '{"Changes":[{"Action": "DELETE","ResourceRecordSet":' $(aws route53 list-resource-record-sets --hosted-zone-id $(aws route53 list-hosted-zones | grep -B 1 '"xiehang.com."' | grep '"Id"' | cut -f 4 -d \" | cut -f 3 -d /) --query "ResourceRecordSets[?Name == 'to-be-deleted.xiehang.com.']" --max-items 1| egrep -v '^\[|^\]')'}]}')

Or as a script:

ZONE_ID=$(aws route53 list-hosted-zones | grep -B 1 '"xiehang.com."' | grep '"Id"' | cut -f 4 -d \" | cut -f 3 -d /)
RECORD=$(aws route53 list-resource-record-sets --hosted-zone-id ${ZONE_ID} --query "ResourceRecordSets[?Name == 'to-be-deleted.xiehang.com.']" | egrep -v '^\[|^\]' --max-items 1)
JSON='{"Changes":[{"Action": "DELETE","ResourceRecordSet":'${RECORD}'}]}'
aws route53 change-resource-record-sets --hosted-zone-id ${ZONE_ID} --change-batch file://<(echo ${JSON})