Laur's blog
Sign in Subscribe

string

A collection of 3 posts
Use a Java Enum with Strings
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"
Mar 10, 2015 1 min read
Search exact string in a file on Windows
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 "
Jun 6, 2014 2 min read
Connect PyCharm to SQLite on Windows
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 >
Jan 25, 2014 1 min read
Page 1 of 1
Laur's blog © 2025
  • Sign up
Powered by Ghost