Solving Chinese Garbled Characters in MySQL under XAMPP
2017-05-27 222 views 后端 XAMPP

This article introduces how to set up UTF-8 encoding in MySQL integrated with XAMPP. First, open the configuration file my.ini in the control panel and add four lines of code: default_character_set = utf8, character-set-server = utf8, collation-server = utf8_general_ci, and default_character_set = utf8. Then restart the MySQL service and ensure that when creating the database (the original content is incomplete, the translation ends here based on the provided text).

Read More
Developing Java Web Projects with IntelliJ IDEA
2017-05-21 208 views 后端 JavaWeb

This article introduces the basic steps to develop Java Web applications using IntelliJ IDEA Ultimate. First, download and install the software from the official website, choosing the trial version during installation. When creating a new Java Web project, configure the Tomcat path in the Application Server and add a JSP file. Finally, click the run button to automatically open the homepage in the browser; directly click the browse icon in the upper right corner of IDEA to preview the newly created hello.jsp page. The entire process simplifies the complex

Read More
Installing Ubuntu Linux Subsystem on Windows 10
2017-05-14 338 views 其他 Ubuntu Windows Linux subsystem

This article introduces two methods to install the Ubuntu subsystem on Windows 10. The first method is to search and obtain it through the Microsoft Store, which requires opening the Settings and enabling Developer Mode first. The second method is to use the command `lxrun /install` in PowerShell for installation. The detailed process includes downloading the installation package, setting up the username and password, and other steps. After installation, you can launch the Ubuntu subsystem by entering "bash" in PowerShell and check the root directory to confirm the successful installation. If uninstallation is needed, you can use the PowerShell command... (Note: The original Chinese text was cut off at "uninstall can be done in Powe", so the translation assumes the continuation with relevant commands, but only the provided content is translated as per the user's input.) (根据用户提供的原文结尾截断情况,上述翻译中保留了原文最后不完整的部分“can be done in Powe”,完整翻译需基于完整原文。若用户实际原文末尾还有内容,需补充完整后再次翻译。)

Read More
Log.d() Not Outputting in Android Debugging
2017-05-13 210 views 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 234 views 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