Url catching regexp
Not exactly a brilliant piece of engineering, but this is a useful dirty hack. If you want to clean urls from a string, you can match it using this regexp: For http:// kind of urls: text.replace...
Not exactly a brilliant piece of engineering, but this is a useful dirty hack. If you want to clean urls from a string, you can match it using this regexp: For http:// kind of urls: text.replace...
I started working in a new and exciting start up, and the thought of using Java for development crushed my soul, so I began shopping around for a fast-development, fast-deployment, easy ramp up and...
I’ve been looking for a way to checkout only a specific folder from a git repository. Most answers I found to this problem stated that it’s not feasible - but apparently, this feature was added to ...
I’m mainly a back-end engineer - through my not-so-long career, I’ve dealt with sql, no-sql, offline processes, etl mechanisms, billing services, web-crawlers, recommendation system, offline learni...
Some of you may have noticed that the Windows Task Manager doesn’t show you the real memory consumption of the applications you’re running. It’s quite obvious, specially when the actual memory cons...
I’ve been getting a lot of emails lately from a website called”Zorpia” claiming I have a message from someone named Katja. I’ve never signed into this website, and I also don’t know anyone named Ka...
I have a project that mixes Java and Groovy, and the main problem I ran into was that the jar was nicely built, but it only contained the Java classes, and none of the groovy ones. When I ran the ...
XML is not native to Java. Many will disagree, but this is just the simple truth. It’s tedious, messy and generally ugly - specially compares to Groovy or Scala. However, if you DO need to use XML...
I’ve recently encountered few people who were naive about the representations of real (i.e not integers) numbers in computer languages , like double and float in Java (and their counterparts in oth...
java.lang.IllegalArgumentException: Comparison method violates its general contract! Well, this is definitely the weirdest Java exception I’ve had so far. I got it on a Comparator I wrote, which ...