Spring Boot + Thymeleaf form validation error not displaying

8 Uncategorized Leave a Comment
Check these by these steps. Make sure BindingResult just follows up with the object variable @PostMapping("/save") public String save(@Valid Product product, BindingResult bindingResult, RedirectAttributes attributes) { // th:object = "${product}" } Here, it follows up producrt object. use @…

How to use Gmail to send email in Python

23 Uncategorized Leave a Comment
1 Add "App password" Go to Google account "Security", navigate to "Signing in to Google" and click "App passwords". Then select a type, here we use "Mail" and custom the device name. Type device name as "airflow", or you can choose any other name. Then…

Copy and paste not working in VMWare Fusion

307 Uncategorized Leave a Comment
Confirm vmware tools had installed, if your vm is ubuntu, use: # ubuntu desktop $ apt install open-vm-tools-desktop open-vm-tools # ubuntu server: $ apt install open-vm-tools Turn on copy and paste Shut down the Virtual Machine, from the Menu select Virtual Machine -> Isolation -> Check Enable Copy and P…

ffmpeg common commands

165 Uncategorized Leave a Comment
Download video with .m3u8 link Download full video ffmpeg -i "https://this-is-your-url-of.m3u8" -c copy -bsf:a aac_adtstoasc "output.mp4" Download specific time range: ffmpeg -ss 04:05:25 -to 04:15:00 -i "https://this-is-your-url-of.m3u8" -c copy -bsf:a aac_adtstoasc "output-c…

How to quickly install and start Kafka

144 Uncategorized Leave a Comment
Install and start Kafka is quite simple even on you local computer. Maybe you are thinking it must need lots of dependencies, but the fact is, it only needs Java. No database, no complicate configuration are needed, so you also no need to install Docker to run it. How to install and start Kafka Following are so…

MySQL REGEXP_REPLACE() function

266 Uncategorized Leave a Comment
Notice: Corrently, REGEXP_REPLACE() do not support \s. Here is an example of using MySQL 8+ regexp_replace(): > select regexp_replace('<div>Hello <b>world</b></div>', '<b>.*?</b>', 'MySQL', 1, 0, 'in') as result; +---------------------…

Quick start docker containers in one command

263 Uncategorized Leave a Comment
If you want start container as daemon, just add argument -d to the command If you want the container has a name, add argument --name <Container Name> MySQL Quick start MySQL from Docker, ~ docker run --rm -p 3306:3306 -e MYSQL_ROOT_PASSWORD=12345678 mysql The login info will be username: root password: 1…
Next Page »