Selasa, 22 Agustus 2017
Sabtu, 20 Mei 2017
Disable auto start apache2 linux
sudo update-rc.d apache2 remove
You can use the argument
defaults to add apache2 back into the autostartsudo update-rc.d apache2 defaults
Then you're able to enable/disable
sudo update-rc.d apache2 disable
sudo update-rc.d apache2 enable
Jumat, 02 Desember 2016
Problem can't find -lgfortran
Just make sure you:
gcc --version
And
gfortan --version
Is the same.
/usr/bin/
Contains the different versions.
Eg: If
gcc--version returns 4.7.3 and gfortran --version 4.8, a simple hack could be to do the following.sudo cp /usr/bin/gcc-4.8 /usr/bin/gcc
Rabu, 30 November 2016
Problem updating R
- Explaining the issue
Setting up r-base-core (3.3.2-1trusty0) ... Preserving user changes to /usr/share/bash-completion/completions/R (renamed from /etc/bash_completion.d/R)... mv: cannot stat ‘/usr/share/bash-completion/completions/R’: No such file or directory dpkg: error processing package r-base-core (--configure): subprocess installed post-installation script returned error exit status 1The post-installation script (/var/lib/dpkg/info/r-base-core.postinst) didn't check if/usr/share/bash-completion/completions/Rfile exist before trying to move it. - Quick fix / Workaround
- Just create copy of the file.
sudo cp /etc/bash_completion.d/R /usr/share/bash-completion/completions/R - Fix the interrupted installation
sudo apt-get -f install
- Definitive fixAs bodhi.zazen said, raise a bug report to the project.
Sabtu, 08 Oktober 2016
How to Import JavaCV libraries to Android Project
If you haven't yet installed the Android Development Environment, you can follow this link which contains everything you need to get started quickly. Watch the tutorial video and follow the instructions underneath to install Eclipse, the Integrated Development Environment (IDE) for Android development and create a new project.
Once you have installed everything and have created the project, use the following procedure to import JavaCV libraries to the Android project:
Finally,import JavaCV functions to your code
Once you have installed everything and have created the project, use the following procedure to import JavaCV libraries to the Android project:
- Download the JavaCv libraries:
a. From this link download "javacv-0.7-bin.zip" and extract the files:
- javacpp.jar
- javacv.jar
- javacv-android-arm.jar
b. From this link download "javacv-0.7-cppjars.zip" and extract the files:
- opencv-2.4.8-android-arm.jar
- ffmpeg-2.1.1-android-arm.jar - Go to File > New > Folder, select your project as parent folder, type "libs/armeabi" as Folder name, and click Finish.
- Copy javacpp.jar and javacv.jar into the "libs" folder.
- Extract all the *.so files from javacv-android-arm.jar, opencv-2.4.8-android-arm.jar, and ffmpeg-2.1.1-android-arm.jar directly into the "libs/armeabi" folder, without creating any of the subdirectories found in the JAR files. (The easiest way to extract the .so files from the .jar is by using 7-ZIP software which can be downloaded here).
- Navigate to Project > Properties > Java Build Path > Libraries and click "Add JARs...".
- Select both javacpp.jar and javacv.jar from the "libs" folder.
Finally,import JavaCV functions to your code
import static com.googlecode.javacv.cpp.opencv_core.*; import static com.googlecode.javacv.cpp.opencv_imgproc.*; import static com.googlecode.javacv.cpp.opencv_highgui.*;
and use some sample code to check that everything is working correctly.
Jumat, 16 September 2016
Find Out Ram Speed, Make, Form Factor, Type and Other Information
Find Out Ram Speed, Make, Form Factor, Type and Other Information
You need to use the dmidecode command:
OR
OR
Sample outputs:
# dmidecode --type 17OR
# dmidecode --type memoryOR
# dmidecode -t 17Sample outputs:
# dmidecode 2.11 SMBIOS 2.5 present. Handle 0x0017, DMI type 17, 27 bytes Memory Device Array Handle: 0x0016 Error Information Handle: No Error Total Width: 72 bits Data Width: 64 bits Size: 2048 MB Form Factor: DIMM Set: 1 Locator: DIMM1A Bank Locator: Bank1 Type: DDR2 Type Detail: Synchronous Speed: 667 MHz Manufacturer: 5185 Serial Number: 05009F22 Asset Tag: Not Specified Part Number: 72T232220HFA3SB
Features for: 99U5428-018.A00LF RAM 8 GB DDR3L 1600 Mhz 1.35 V Kingston Kingston
Allgemeine Daten
Condition
NEW
Technical Data
Capacity
8 GB
Typ
DDR3L-RAM
Memory modul
PC3L-12800
Clockrate (MHz)
1600 MHz
Number of memory chips
Sabtu, 23 Juli 2016
Install atom di linux
sudo add-apt-repository ppa:webupd8team/atom
sudo apt-get update
sudo apt-get install atom
Langganan:
Postingan (Atom)

