-
as seen on Server Fault
- Search for 'Server Fault'
There are some programs which can display used disk space using a treemap, such as WinDirStat for Windows and KDirStat for KDE/Linux:
I'm looking for something similar, but for a headless Linux box.
Alternatively, what are other good ways to visualize used disk space with just SSH access?
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I have the following TreeMap:
TreeMap<String, Integer> distances = new TreeMap<String, Integer>();
and it contains both strings, "Face" and "Foo", with appropriate values, such that:
System.out.println(distances);
Yields:
{Face=12, Foo=2}
However, distances.get(Face) returns…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I have the following TreeMap:
TreeMap<String, Integer> distances = new TreeMap<String, Integer>();
and it contains both strings, "Face" and "Foo", with appropriate values, such that:
System.out.println(distances);
Yields:
{Face=12, Foo=2}
However, distances.get(Face) returns…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I'm switching from scala 2.7 and ordered to scala 2.8 and using ordering. It looks quite straight forward but I was wondering could I make it a little less verbose. For example:
scala> case class A(i: Int)
defined class A
scala> object A extends Ordering[A] { def compare(o1: A, o2: A) = o1…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I have the following object Node:
private class Node implements Comparable<Node>(){
private String guid();
...
public boolean equals(Node o){
return (this == o);
}
public int hashCode(){
return guid.hashCode();
}
...
}
And I use it…
>>> More