When I make a video record on Simulator, the file size is too large, we can use the following command to compress the video file.
ffmpeg -i input.mp4 -vcodec h264 -acodec aac output.mp4
When I make a video record on Simulator, the file size is too large, we can use the following command to compress the video file.
ffmpeg -i input.mp4 -vcodec h264 -acodec aac output.mp4
Today one of my Colleague find that after he upgrade the AndroidStudio, it can’t start on his Mac, so I want to see what’s the error is when start the Android Studio.
But I don’t know what’s the log directory for Android Studio, so I searched in the internet, and find that the log path for Android Studio is at Library/Logs/Google/AndroidStudio2021.3
The last part is the Android Studio with the version information. The log file for Android is idea.log
.
I installed the wordpress several days ago, when I try to upload a featured image, it tell me that the max upload size is 2M, I updated the nginx setting, but php seems not get the value from nginx. I also searched the internet, and there are some suggestions, but it still does not work in my case, I described how I solved the problem in this article.
Continue readingIn one of my project, there are some tables, and we save the id value of one table on another table, for example, we have album information, which has albumId and albumName fields, and on another table episode, it contain the albumId value, so when I query episode, I also want to get the albumName, and most of the albumId is the same.
Continue readingAfter we install the wordpress, the login path is wp-login.php
, signup path is wp-signup.php
and the manage url is wp-admin
, I think it’s not secure enough, so I want to rename the wp-login.php
and wp-admin
to secure the wordpress website. This is the steps that I used to rename the files.
Recently I encounter a wired problem, which is I cannot connect to the mysql server with mysql client on the server, but the application can connect. I finally find the solution to solve the problem, but still don’t know the cause of the proelbm.
Continue readingI want to backup my data to another server with lsyncd
, when I do this, I encounter two problems, here is the solution that I solve the problem.
In my project, I find a wired problem, we added More to an attribute string on swift, and set the different attribute for the last word More, but some times the word selected is not the More, but one letter less.
After debug the program, and find that it was caused by the string has html tag p on the string, and we removed part of the string in the end, and added More to the string, and add the string to NSAttributeString, and I find that the string with <p> in the beginning will add an \n to the end of the string.
I used the NSAttributeString.string method to get the pure string, and find that the end has \n.
The solution that I find is get the pure string before update data, so the html tag will be removed, and the string is correct right now.
Today, I install the wordpress to test it’s functions.
This are the links that I got help to let the website work.