Nov 1, 2016 | Quick Tips, Troubleshooting |
The basic principle is, just restart where the slave left off. The problem arises if a binary log, on the slave side, remains corrupt. The recovery is relatively simple, just follow the recipe: STOP SLAVE SHOW SLAVE STATUS Note down ‘Relay_Master_Log_File’...
Oct 24, 2016 | Quick Tips |
Previously, in order to use Volley, the only way was to add the “jar” file to the project – not anymore – official volley is now available, just change the app.gradle file: dependencies { compile 'com.android.volley:volley:1.0.0'...
May 17, 2014 | Quick Tips |
Just use the following method: public boolean isOnline() { boolean status=false; try{ ConnectivityManager cm = (ConnectivityManager) getActivity() .getSystemService(Context.CONNECTIVITY_SERVICE); NetworkInfo netInfo = cm.getActiveNetworkInfo();...
May 15, 2014 | Quick Tips |
The syntax is very simple. The example below is invoked from inside a Fragment, so the first parameter (Context) is the activity that holds the fragment: Toast.makeText(getActivity(),R.string.asset_added_fav,Toast.LENGTH_SHORT).show(); The second parameter is the...
Nov 13, 2013 | Quick Tips |
The command is very very simple: just type curl -T localfile.ext ftp://username:[email protected]/remotedir/ If you want to use a different destination filename just add it at the end: curl -T localfile.ext...