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
Get error when installed openoffice desktop integrations, finally i can solved it by complete removed libreoffice. | |
sudo apt-get remove --purge libreoffice-core | |
sudo apt-get remove libreoffice-common |
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
[Solved Your Probs by 3 step] | |
1. Open terminal in ubuntu, and then type gedit .profile | |
2. paste this text: export ANDROID_EMULATOR_FORCE_32BIT=true | |
3. refresh source: source .profile | |
When no effect, finishing that by restart your device (laptop,pc) | |
Okkay happy emulate andev ;) |
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
in generally you can install your deb packages with dpkg -i [file.deb] | |
$ dpkg -i google-chrome-stable_current_i386.deb | |
When get error like Errors were encountered while processing google-chrome-stable, now try this command | |
$ sudo apt-get update | |
$ sudo apt-get install libgconf2-4 libnss3-1d libxss1 | |
$ dpkg -i google-chrome-stable_current_i386.deb |
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
To execute any linux command in background we use nohup. But the problem with scp command is that it prompts for the password (if password authentication is used). So to make scp execute as a background process do this: | |
1> | |
$ nohup scp file_to_copy user@server:/path/to/copy/the/file > nohup.out 2>&1 | |
if it prompts for password then enter password. | |
Then press ctrl + z which will temporarily suspend the command, | |
SCP will give output: |
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
Case : Just sample notes about how to solve windows command error like is not recognized as an internal or external command operable program or batch file error | |
Solutions : | |
1. Click start, right-click My Computer and click Properties. | |
2. In the System Properties window, click on the Advanced tab. | |
3. In the Advanced section, click the Environment Variables button. | |
4. Finally, in the Environment Variables window (as shown below), highlight the Path variable in the Systems Variable section and click the Edit button. Add or modify the path lines with the paths you wish the computer to access. Each different directory is separated with a semicolon as shown below. | |
Default path of windows 7 fresh install : | |
%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\ |
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
* change permission only file in all subdirectories : | |
$ find . -type f -exec chmod 775 {} + | |
* change permission only folder in all subdirectories : | |
$ find . -type d -exec chmod 777 {} + |
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
#!/bin/bash | |
set -o errexit | |
# Author: David Underhill | |
# Script to permanently delete files/folders from your git repository. To use | |
# it, cd to your repository's root and then run the script with a list of paths | |
# you want to delete, e.g., git-delete-history path1 path2 | |
if [ $# -eq 0 ]; then | |
exit 0 |
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
<!-- You can set this on your style.xml --> | |
<resources> | |
<style name="Theme.AppCompat.Light.NoActionBar.FullScreen" parent="@style/Theme.AppCompat.Light"> | |
<item name="android:windowNoTitle">true</item> | |
<item name="windowActionBar">false</item> | |
<item name="android:windowFullscreen">true</item> | |
<item name="android:windowContentOverlay">@null</item> | |
</style> | |
</resources> |
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
///////////////////////////////BACK-BUTTON-PRESSED///////////////////////////// | |
//////////////////////////////////creatorb//////////////////////////////////// | |
//You can choose one method ;) | |
//PopUp | |
@Override | |
public void onBackPressed() { | |
new AlertDialog.Builder(this) | |
.setTitle("Really Exit?") |