2009-09-21 released SFTP for TotalCMD (SFTP4TC): 1.3.60.3 |
---|
Version 1.3.60.3 brings minor fixes for custom sft-command, behaviour with symbolic links and usage of the home folder. Check it out at berlios.de Since the SFTP4TC download link at berlios seems to be slow you may also use this download link: wfx_sftp_1_3_60_3_base_bin.zip |
2009-09-16 a more complete Pair<A,B> class which can be used as key. |
To use a class as key it MUST be immutable plus a working hashCode and equals method. So the tiny helper class needs some extensions:
/** * STL like helper class for pairs. * * @author stefan franke */ public class Pair<A, B> { private A first; private B second; public Pair(A first, B second) { this.first = first; this.second = second; } public static <T, V> Pair<T, V> makePair(T first, V second) { return new Pair<T, V>(first, second); } public A getFirst() { return first; } public B getSecond() { return second; } @Override public boolean equals(Object obj) { if (!(obj instanceof Pair)) return false; Pair<?, ?> p = (Pair<?, ?>) obj; if (first == null && p.first != null) return false; if (second == null && p.second != null) return false; return (first == null || first.equals(p.first)) && (second == null || second.equals(p.second)); } @Override public int hashCode() { int hashCode = 314159265; if (first != null) hashCode += first.hashCode(); hashCode = hashCode * 17; if (second != null) hashCode += second.hashCode(); return hashCode; } @Override public String toString() { return "(" + first + ", " + second + ")"; } } |
2009-08-05 released SFTP for TotalCMD (SFTP4TC): 1.3.60.1 |
Version 1.3.60.1 provides an increased reconnect capability and an improved configuration dialog. Check it out at http://developer.berlios.de/project/showfiles.php?group_id=2273 Since the SFTP4TC download link at berlios seems to be slow you may also use this download link: wfx_sftp_1_3_60_1_base_bin.zip |
2009-07-09 released SFTP for TotalCMD (SFTP4TC): 1.3.60.0 |
This version is restructured and partial rewritten to use more of the PuTTY features:
Since the SFTP4TC download link at berlios seems to be slow you may also use this download link: wfx_sftp_1_3_60_0_base_bin.zip |
2009-07-06 A useful class for Java: Pair<A,B> |
We all know, Java lacks the ability to return more than one value. There are many known workarounds but only one real solution: The Pair class.
package de.bb.util; /** * STL like helper class for pairs. * @author stefan franke */ public class Pair<A,B> { public A first; public B second; public Pair(A first, B second) { this.first = first; this.second = second; } public static <T,V> Pair<T, V> makePair(T first, V second) { return new Pair<T,V>(first, second); } } Pair<String, ArrayList<String>> foo() { ... // this is less typing than // return new Pair<String, ArrayList<String>>(string, arraylist); return Pair.makePair(string, arraylist); } |
2009-07-01 Old but still useful: runback.EXE |
It still happens to me (and others) to run a console application without showing the console. For this purpose I use my good old runback.EXE starter which hides the console. So if u need it, get it here. To use it simple prefix the command line with runback.exe e.g. c:\tools\runback.exe mybatch.bat param1 param2 param3 |