enum Use a Java Enum with Strings In my project I wanted to log messages using predefined categories. Traditionally, I do it via classes (if the messages are specific to the functions provided by that class): public class LogWrapper { public static final String EVENT_ERROR = "Error"; public static final String EVENT_LOAD = "Load"
exact Search exact string in a file on Windows The other day I found a file with a peculiar format and I needed to find it again. There are two problems I've encountered: 1. Size: It's one of 20,000,000 XML files 2. Search: I need to find a file containing a string "
connect Connect PyCharm to SQLite on Windows To connect to a SQLite database on PyCharm you have two options: 1. Manual connection and 2. Automatic connection. Manual connection Use the following steps to perform the manual connection: 1. Open the Database tab in PyCharm (usually on the right hand side) 2. Right-click and select the New >