Installing Ubuntu Linux Subsystem on Windows 10

This article introduces two ways to install the Ubuntu subsystem on Windows 10. The first is to search for it in the app store, which requires opening Settings and enabling Developer Mode first; the second is to install it with the command lxrun /install in PowerShell. The detailed process includes downloading the installer and setting a username and password. After installation, you can start the Ubuntu subsystem by typing "bash" in PowerShell and check the root directory to confirm success. To uninstall, you can ...

Read More
Log.d() Not Outputting in Android Debugging
2017-05-13 Android Android

The article discusses the differences in log output between real devices and emulators during Android application debugging. The author found that when debugging on a real device, the logs from Log.d() were not printed, and only error logs could be seen, whereas in the emulator, all levels of logs were displayed normally. The reason is that some mobile phone manufacturers restrict the output of low-level logs. Therefore, the author proposes a solution: creating a `LogUtil` utility class to wrap the Android Log methods. This class decides whether to print corresponding log entries by judging whether it is a debug environment and the current log level, allowing flexible control over... (Note: The original text seems to be cut off at the end, so the translation ends here as per the provided content.)

Read More
Receiving and Sending Cookies in Android
2017-05-13 Android Android Cookie

This article author shares the difficulties encountered when implementing automatic login on the web using Okhttp3 and provides solutions. By default, Android does not save cookies, so it is necessary to manually save the obtained cookies into SharedPreferences; at the same time, read the cookies from SharedPreferences and add them to the request headers in each request. The specific steps include: defining constants ISLOGINED and COOKIE; writing the saveCookiePreference() method to save

Read More
Setting up a Java Web Server on Ubuntu Server

This article details the steps to install and configure Tomcat, PHPMyAdmin, and resolve MySQL Chinese garbled characters issues on an Ubuntu server. Below is a summary of the content along with some supplementary information: 1. **Installing and Setting Up Apache2** - Changed the Apache2 service port to 8022 to avoid conflicts with other web services. - Started Apache. 2. **Installing PHPMyAdmin and Associating with Apache2** - Configured Apache to support p

Read More
Uploading a Project to Gitee
2017-04-15 Other Gitee Free

This article introduces the method of uploading a project to Gitee, with reasons including: high brand awareness suitable for domestic users; all projects being free; and simple operation easy for beginners to start with. The specific steps are: first, register and log in to the account, create a project on the official website, and fill in relevant information; then, select an appropriate IDE locally to create project files; clone the project to the local machine via Git Bash; add the files to version control, commit and synchronize them. Finally, the uploaded project can be viewed on Gitee. The entire process is straightforward and clear, suitable for beginners to operate.

Read More