This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Shamelessly extracted from | |
* https://code.google.com/p/mwop/source/browse/sandbox/server/mwop-server/src/com/mwop/server/cellID/CellIDResolver.java?r=18 | |
*/ | |
public static Coordinate transform(int cellID, int lac, int mcc, int mnc) throws IOException { | |
URL providerAddress = new URL("http://www.google.com/glm/mmap"); | |
HttpURLConnection connection = (HttpURLConnection) providerAddress.openConnection(); | |
connection.setRequestMethod("POST"); | |
connection.setDoOutput(true); | |
connection.connect(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- from https://plus.google.com/+JamesBrotchie/posts/2PQtFTf548F | |
import XMonad.Hooks.ICCCMFocus | |
... | |
, logHook = do | |
takeTopFocus | |
dynamicLogWithPP xmobarPP | |
... | |
or upgrade to 0.11 lol |
NewerOlder