-
Z Company Service Level Object
-
Remove wordpress.org from Meta widget in wordpress website
Go to folder “wp-includes/widgets/class-wp-widget-meta.php”, And comment out following section: Please note that you have to do it again if you upgrade your wordpress.
-
Would all screens in cars just like the screen in Tesla 5 years later?
Back in 2007, when first iPhone released it’s totally different with any other phones with only one big screen in the middle and a button at the bottom. After 15 years, the outlook of iPhone really don’t change that much, with removing button and bigger screen. that’s it. The thing changed most in the past 15 years is all other phones look much more similar now.. Maybe the only difference is how they layout their cameras.. So the first generation of Tesla Model S released in 2012, 5 years after the first generation of iPhone, which has a big screen in the middle and that’s it. Nowadays, more modern cars…
-
Spring Cloud – Bootstrapping Version 2
This article is based on https://www.baeldung.com/spring-cloud-bootstrapping. Which was written on January 21, 2021. Even it’s only one year ago it’s a little bit out of dated and there are some errors in the doc. If you still want to refer to the original doc, here are some corrections you need to do: When you setup discovery service, you need to add server.port=8082 into the application.properties Also in discovery service, you need to add following dependency otherwise it would report a exception when you start the service: No spring.config.import property has been defined In Gateway service, the plugin zuul has been deprecated already, use Spring Cloud Gateway instead. (https://stackoverflow.com/questions/65924096/spring-boot-2-4-2-gateway-api-with-zuul) TODO: new…
-
How to generate docker image
Fabric8 maven plugin The first way to do is using fabric8 maven plugin (https://dmp.fabric8.io/) . We have something like this to define the image in pom.xml: And assembly file: Framework build-in target If you are using Sprint boot, it has the maven docker image target mvn spring-boot:build-image. Based on the doc here it has some benefit like using exploded folder other than fat jar; but I guess it may not flexible enough. Write your own dockerfile This is more direct and I guess it has most flexibility. Here is one example:
-
All technical articles will be written in English
A couple reasons: In the end, I hope, at some point, my article can really help more people. I feel more and more it’s more nature to write technical articles in English since all articles I have read are english written. If you do need Chinese Version, yes, I can do that. just leave comment and I am more than happy to spend mins to transform it.
-
如何在本地环境同时用多个jdk版本
如果工作在不同的项目,可能需要不同的jdk版本。如果用mvn的话默认只是用系统设置的版本。这时候如果想在命令行编译就会比较麻烦。最简单的做法是把系统的java版本设置成最常用的,然后设置别名分别对应不同的版本。 下面是例子: 这样就可以了。 另一个方法通常IDE的mvn都可以用单独的配置,比如说用Intellij,我们可以在不同的Intellij的project设置不同的版本:
-
调整Ashe Theme的标题图片高度
WordPress有一个很好的免费插件Ashe。有一个很大的问题是免费版本的不能调整高度,默认高度500pt实在是太大了。不放那个header图片网站又显得太空荡。 研究后发现可以在目录/wp-content/themes/ashe/assets/css/responsive.css 里面搜索下面字段: 把高度更改了就好了。 注意的是浏览器通常有缓存,需要清除缓存才可以生效。
-
网站无法访问问题的解决 (This Site Can’t Be Reached)
今天网站忽然无法访问,显示“the site cannot be reached”. 然后试图用局域网ip直接访问,发现时可以的,当然图片无法显示,因为图片的链接都是带域名的。 查看服务器的剩余硬盘空间,内存,发现都正常。 接下来重启apache,service apache2 restart。 还是不行。 去google domain查看域名跳转,貌似也没问题。然后 ping liangqi.org, 解析的域名还是没问题。 在mac下用. traceroute liangqi.org 貌似也没啥问题。 最后试了一下 telnet liangqi.org 443 发现被reject. 试了一下其他域名是可以telnet的。于是想着是不是路由器的动态域名跳转有问题。去路由器删了端口转发,重新建了一个,发现已经可以telnet 443了。 不要问为什么路由器的端口转发忽然出问题了,我也不知道。应该就是软件bug吧。产品环境总是问题千差万别。 再重新连接网站,恢复! 😁
-
Protected: How Z Company do release
There is no excerpt because this is a protected post.