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
CoordinateReferenceSystem sourceCRS = CRS.decode("EPSG:9803") ; | |
CoordinateReferenceSystem targetCRS = DefaultGeographicCRS.WGS84; | |
MathTransform tr = CRS.findMathTransform(sourceCRS, targetCRS); | |
DirectPosition sourcePt = new GeneralDirectPosition(coordinates.getDouble(0), coordinates.getDouble(1), 0); | |
DirectPosition targetPt = tr.transform(sourcePt, null); | |
System.out.println("Source point: " + sourcePt); | |
System.out.println("Target point: " + targetPt); |
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
public class MyActivity extends Activity { | |
// define the wakeLock as attribute | |
PowerManager.WakeLock wakeLock ; | |
@Override | |
public void onCreate(Bundle savedInstanceState) { | |
super.onCreate(savedInstanceState); | |
setContentView(R.layout.main); |
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
// problem when closing the app, this one crashed without any reason | |
bindService(new Intent(this, PlayerService.class), this.playerServiceConnection, Context.BIND_AUTO_CREATE); | |
// solution | |
bindService(new Intent(this, PlayerService.class), this.playerServiceConnection, Context.BIND_DEBUG_UNBIND); |
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
#!/usr/bin/env ruby | |
# Replace the following by the url given to you in your project's edit page | |
POST_RECEIVE_URL = 'http://integrity.url.com/project_name/push' | |
# Set user and password if Integrity is protected with basic auth | |
USER = "***" | |
PASSWORD = "***" | |
####################################################################### |
NewerOlder