Remove Non-ASCII Chars

Quick snippet to remove non-ascii characters from a java string: String clean = dirty.replaceAll(“\\P{ASCII}+”, “”);

Published
Categorized as Uncategorized Tagged

Mail from Java

Sometimes you gotta send mail from outside an app server, in which case, this will get you started: Sending Mail with the JavaMail API You will need the JavaMail library (mail.jar) as well as the Java Activation Framework (activation.jar) to get it running…

Published
Categorized as Uncategorized Tagged

Instructions Required

Found on the internets somewhere… If you need information on how to unzip files, go away and learn before you go anywhere near a development environment or the Internet in general. Seriously.

Published
Categorized as Uncategorized Tagged

Netstat

Ever wonder what network activity is happening on your machine? Use netstat. The most useful command line options: -a = show all network access -b = shows the process, or on windows the process id that is using the network (the process id can be matched up to a process via the task manager) -n… Continue reading Netstat

Published
Categorized as Uncategorized Tagged