Posts

place holder to extract information from commits

link --  https://git-scm.com/docs/pretty-formats Placeholders that expand to information extracted from the commit: %H commit hash %h abbreviated commit hash %T tree hash %t abbreviated tree hash %P parent hashes %p abbreviated parent hashes %an author name %aN author name (respecting .mailmap, see  git-shortlog[1]  or  git-blame[1] ) %ae author email %aE author email (respecting .mailmap, see  git-shortlog[1]  or  git-blame[1] ) %al author email local-part (the part before the  @  sign) %aL author local-part (see  %al ) respecting .mailmap, see  git-shortlog[1]  or  git-blame[1] ) %ad author date (format respects --date= option) %aD author date, RFC2822 style %ar author date, relative %at author date, UNIX timestamp %ai author date, ISO 8601-like format %aI author date, strict ISO 8601 format %as author date, short format ( YYYY-MM-DD ) %ah author date, human style (like the  --date=human  option of  git-re...

TO DO :--

 1. GIT AND GITHUB 2. LINUX

Important topics of Computer subjects

  link - https://mega.nz/folder/FDRCELoI#GE57I8nOKtEhxtmzx2lB_A   Operating System ---        1. Multithreading       2. Algorithms        3. Process synchronization       4. Kernel       5. Virtual memory

sqlite3 commands and window commands

  sqlite3   Command to open up the sqlite3 program in the Command Prompt. sqlite3 shelter.db  Command to open up the sqlite3 program and directly open up the following database file. You can substitute shelter.db for any other existing database file. .open shelter.db  Command inside the sqlite program to open a database file. In this case we are opening the shelter.db file. You can substitute any other existing .db file for shelter.db .help  Command to pint out a list of available commands .quit  Command to quit the sqlite application Terminal Commands Windows Specific echo %cd%  echo asks the computer to print to the screen. In this case, we ask the computer to print the "current directory" (e.g. the directory we are currently working in) using %cd%. cd  Display the current drive and directory. Doe the same as above.

Fragment

Image
  Fragment Lifecycle Because a Fragment can be created, added to the screen, then removed from the screen, it has its own lifecycle. And guess what? Android provides asynchronous callbacks where you can get notified of these state changes. The style of these callbacks is similar to the Activity. Imagine an Activity containing a Fragment that takes up the whole screen. When the Activity is created, the Fragment is created as well. When the Activity is resumed and active, the Fragment is resumed and active as well. There is a close relationship between the Activity lifecycle and the Fragment lifecycle. The Fragment also has additional callbacks where you, as the developer, can get notified when it is attached to the enclosing Activity, or detached from the Activity. If multiple fragments make up a whole screen, then they all need to tie into the same activity. They need to know when the activity is resumed / paused, so they can resume or pause what they’re doing within the fragment. ...

touch feedback in android

Release method for releasing the resources when they are not in use.

  release Added in  API level 1 public void release () Releases resources associated with this MediaPlayer object. It is considered good practice to call this method when you're done using the MediaPlayer. In particular, whenever an Activity of an application is paused (its onPause() method is called), or stopped (its onStop() method is called), this method should be invoked to release the MediaPlayer object, unless the application has a special need to keep the object around. In addition to unnecessary resources (such as memory and instances of codecs) being held, failure to call this method immediately if a MediaPlayer object is no longer needed may also lead to continuous battery consumption for mobile devices, and playback failure for other applications if no multiple instances of the same codec are supported on a device. Even if multiple instances of the same codec are supported, some performance degradation may be expected when unnecessary multiple instances are used at ...