21h
comment Link and execute external JavaScript file hosted on GitHub
Also works for gists. I was able to replace gist.githubusercontent.com with rawgist.com and got it working.
1d
comment Creating an iframe with given HTML dynamically
I used <body><div id="fooid">Foo</div></body> as the HTML and when I tried to retrieve the div by id using document.getElementById("fooid"), I got nothing. Any idea why?
Jan
27
comment Difference between pipe open '|' and '|-' (safe pipe open)
You would want to skip using shell when you really don't need it to avoid unexpected shell expansions taking place and improve security against script injections.
Jan
26
awarded Necromancer
Jan
24
awarded Nice Answer
Jan
11
awarded Nice Question
Jan
7
comment What is the proper indentation for bash scripts?
Thanks @törzsmókus, didn't know about this enhancement.
Jan
5
comment run main class of Maven project
You can also pass arguments using exec.args property, e.g., -Dexec.args=1 2 3. I found reading through the documentation helpful: mojo.codehaus.org/exec-maven-plugin/java-mojo.html
Dec
9
awarded Notable Question
Dec
9
answered Why can't I link2sd the Play Store and Maps apps?
Dec
3
awarded Supporter
Nov
28
comment Calling Thread.sleep() with *interrupted status* set?
This answer completely misses the original question, not sure why OP accepted this. The question is whether calling Thread.sleep() when the interrupted flag is already set will result in the method throwing InterruptedException, and this doesn't try to answer that at all.
Nov
19
comment How to get all garbage collector MX beans in java of a remote jmx URL?
Since you are connecting to remote JVM, you should use jmxConn.getMBeanServerConnection() instead of ManagementFactory.getPlatformMBeanServer() ?
Nov
17
revised How to tell eclipse NOT to validate pom.xml without changing pom.xml?
Link moved.
Nov
14
comment how to pass password for rsync ssh command
Didn't know about sshpass, came handy in a tricky situation.
Nov
10
comment Monitor non-heap memory usage of a JVM
@PeterLawrey I don't actually know how to check which of these [anon] blocks are thread stacks, that is in fact part of my question. I tried to compare the size column against the Xss (which we had as 296) and found only one.
Nov
8
comment Monitor non-heap memory usage of a JVM
@PeterLawrey Using pmap -d on RHEL 6.5, I get the fields Address Kbytes Mode Offset Device Mapping and none of the entries are for threads. All entries are either files or [anon]. Example entries: 0000000000400000 4 r-x-- 0000000000000000 009:00002 java and 0000000001002000 132 rw--- 0000000000000000 000:00000 [ anon ].
Nov
7
comment Monitor non-heap memory usage of a JVM
"You have a bunch of threads using 64 MB stacks." -- How did you figure it out from pmap output?
Nov
7
comment Virtual Memory Usage from Java under Linux, too much memory used
Can the pmap output be useful in understanding memory issues in off-heap usage?
Nov
7
answered Can anyone explain precisely what IOWait is?
1 2 3 4 5