C fopen vs open

First, there is no particularly good reason to use fdopen if fopen is an option and open is the other possible choice. You shouldn’t have used open to open the file in the first place if you want a FILE *. So including fdopen in that list is incorrect and confusing because it isn’t very … Read more

How to recursively download a folder via FTP on Linux

You could rely on wget which usually handles ftp get properly (at least in my own experience). For example: You can also use -m which is suitable for mirroring. It is currently equivalent to -r -N -l inf. If you’ve some special characters in the credential details, you can specify the –user and –password arguments … Read more

How do I install chkconfig on Ubuntu?

The command chkconfig is no longer available in Ubuntu.The equivalent command to chkconfig is update-rc.d.This command nearly supports all the new versions of ubuntu. The similar commands are

How to install Android SDK on Ubuntu?

Option 1: The location of Android SDK on Linux can be any of the following: /home/AccountName/Android/Sdk /usr/lib/android-sdk /Library/Android/sdk/ /Users/[USER]/Library/Android/sdk Option 2: Download the Android Studio. Extract downloaded .zip file.The extracted folder name will read somewhat like android-studio To keep navigation easy, move this folder to Home directory. After moving, copy the moved folder by right clicking it. This action will place … Read more

How to set JAVA_HOME in Linux for all users

find /usr/lib/jvm/java-1.x.x-openjdk vim /etc/profilePrepend sudo if logged in as not-privileged user, ie. sudo vim Press ‘i’ to get in insert mode add:export JAVA_HOME=”path that you found” export PATH=$JAVA_HOME/bin:$PATH logout and login again, reboot, or use source /etc/profile to apply changes immediately in your current shell