Search

Search results

Mac OS X JAVA_HOME location

... which shows that you can demonstrate this by running this command in the Mac Terminal : /Library/Internet\ ... with XCode If you have XCode installed you can now find the JAVA_HOME directory with this command: $ ... You might also be able to find some of these settings in the Mac OS X Control Panel, but I looked just ...

Blog - alvin - Oct 24 2014 - 9:26pm - 0 comments

'Why is my Mac slow?' - How to debug Mac (some) networking problems

... see a lot of information about Unix processes using the ps command or the top utility, but it seems like many system administrators don't know how to find networking information, at least not without a network sniffer. On a ...

Blog - alvin - Oct 14 2014 - 9:14pm - 0 comments

How to see JVM parameters/arguments from within a running Java application

... code that shows how to see Java Virtual Machine JVM command line arguments/parameters from within a running Java (or Scala) ... around the internet for a while I was finally able to find this solution, which helps to show the JVM command line arguments: // ...

Blog - alvin - Oct 6 2014 - 2:39pm - 0 comments

How to use the Linux sed command to edit files in place (and make a backup copy)

... files successfully, or really screw things up, all in one command. :) Yesterday I ran into a situation where I had to edit over ... editing commands I wanted to run -- a series of simple find/replace commands -- but my bigger problem was how to edit the files in ...

Blog - alvin - Sep 29 2014 - 7:10pm - 0 comments

A Java String regex pattern search example

... and Matcher classes, specifically using the find method of the Matcher class. This is shown in the following source code ... the initial String. In this case we use the find command to simply determine whether the original String contains the pattern we ...

Blog - alvin - Sep 29 2014 - 2:13am - 0 comments

Notes on deploying a Play Framework application to a production server

... can deploy to the production server with the Play dist command: $ play clean compile dist That command creates a file ... of the application, then start this version. You can find the PID of the previous version with the ps command, like ps auxw | ...

Blog - alvin - Sep 22 2014 - 12:15am - 0 comments

A collection of Unix/Linux find command examples

...   Abridged examples Basic find command examples Find directories with the Unix find command ...

Blog - alvin - Jul 29 2014 - 3:46pm - 23 comments

Unix/Linux grep command examples

... Case-insensitive file searching with the Unix grep command Reversing the meaning of a grep search Using grep in ... your grep pattern match Power file searching with find and grep Related Unix/Linux grep commands and tutorials ...

Blog - alvin - Jul 29 2014 - 3:45pm - 15 comments

How to read Perl command-line arguments

Perl FAQ: How do I read command-line arguments in Perl? Note: If you want to handle simple Perl command line arguments , such as filenames and strings, this tutorial shows ... can also use: foreach $argnum (@ARGV) Shift I find it easier most of the time to use shift: my variable = shift; ...

Blog - alvin - Jul 22 2014 - 3:20pm - 8 comments

Java exec - execute a system command pipeline in Java

... how to execute a Unix or Linux system pipeline (pipe) command from a Java application, you're in the right place. How to exec ... not locate it. SystemCommandExecutor class You can find it in the "Download" section near the bottom of this page: ...

Blog - alvin - Jun 14 2014 - 3:43am - 2 comments