Skip to content

Content Tagged "string"

Page 1 of 1

Content Tagged "string"

Use a Java Enum with Strings

March 10, 2015Category: Software
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): or an interface (pretty much the same thing): These solutions are prone to errors (e.g. when performing copy-paste and…

Search exact string in a file on Windows

June 6, 2014Category: IT
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: Size: It's one of 20,000,000 XML files Search: I need to find a file containing a string "xocs:doi", which is not interpreted as a single word (due to the colon character, of…

Connect PyCharm to SQLite on Windows

January 25, 2014Category: Software
To connect to a SQLite database on PyCharm you have two options: Manual connection and Automatic connection . Manual connection Use the following steps to perform the manual connection: Open the Database tab in PyCharm (usually on the right hand side) Right-click and select the New > Data…

All tags