Tab separated table - Excel / Google Sheet to Wiki table converter
Input : Paste Tab-separated table data ( eg : row/column from Excel, Google Docs etc)
Output : MediaWiki formatted table
Source : GitHub
DEBUG for fine‑grained diagnostic messages that help you trace flow and variable values. These should never appear in production – set your root logger to INFO or higher to silence them. In your code: logger.debug("Processing request id={}", id);INFO for normal, informative messages that mark significant application events (startup, shutdown, important state changes). Think of it as a “verbose” mode. Example: logger.info("Connection pool initialised with {} threads", poolSize);WARN for potential issues that do not stop the application from functioning. Use it when you fall back to a default, or when a deprecated API is called. The system carries on without a problem. logger.warn("Configuration key 'max.retries' missing – defaulting to 3");ERROR for application errors that still allow the application to hobble along.
These indicate a real problem – an exception caught, a service call failed, but the operation can be retried or the user can continue. Like a missing admin‑supplied config value that falls back to a hard‑coded default. logger.error("Unable to reach inventory service, using cached prices", ex);FATAL for critical failures, after which the application quits abnormally. After logging a fatal message, the system is considered dead. For example, in Log4j2: logger.fatal("Database connection pool exhausted, aborting."); <g:if test="${env != "production"}">
//your logic
</g:if>
switch(Environment.current.getName()){
case "development":
//do your stuff 1
break;
case "test":
//do your stuff 2
break;
case "production":
//do your stuff 3
break;
case "my_environment": // for custom environment : my_environment
//todo:
break;
}
if(Environment.current.getName()=="development") {
//do your stuff
}
git config --global credential.helper cache
This caches the credentials for 15 minutes ( 900 seconds) by default. If you want a longer timeout period (say3600 seconds), you can do the following :
git config --global credential.helper 'cache --timeout=3600'
String url = "http://........"; // your media URL here
//String url = "rtsp://........";
//String url = "file:///sdcard/intro.3gp"; //local file
MediaPlayer mediaPlayer = new MediaPlayer();
mediaPlayer.setAudioStreamType(AudioManager.STREAM_MUSIC);
mediaPlayer.setDataSource(url); //Sets the data source (file-path or http/rtsp URL) to use
mediaPlayer.prepare()
mediaPlayer.start();
mediaPlayer.prepareAsync();
//You can show progress dialog here untill it prepared to play
mediaPlayer.setOnPreparedListener(new OnPreparedListener() {
@Override
public void onPrepared(MediaPlayer mp) {
//Called when the media file is ready for playback.
mp.start();
}
});
mediaPlayer.setOnErrorListener(new OnErrorListener() {
@Override
public boolean onError(MediaPlayer mp, int what, int extra) {
return false;
}
});