Posts

Why you should learn version control

I usually Suggest my followers on social media accounts to learn some techniques to improve their code readability. One day I found a lot of students think that git or any version control software is not useful, what a surprise for me!! What is version control? According to Wikipedia, A component of software configuration management,  version control , also known as  revision control  or  source control , is the management of changes to documents, computer programs, large web sites, and other collections of information. So normally version control is the process of keeping track of code changes along the time. What is git? According to Wikipedia, Git  (/ɡɪt/) is a version control system (VCS) that is used for software development and other version control tasks. As a distributed revision control system it is aimed at speed, data integrity, and support for distributed, non-linear workflows. Okay, git is just a software and we can't ...

R in the Android

In Android developing you are using res folder to create resources like music, images, layout files and strings. But when you want to deal with your resources in your program, How can you do this? If you are using Android studio, the IDE creates for you class names R.java, It is public static have all values you need to refer to your layout. Where can I find it? okay usually If you press ctrl and click on any class in your code, Android studio opens it for you. However, in recent versions of Android Studio if you did that with R class it will open the resource file instead of R.java file. It is okay you can click double shift and search for R.java, you will find more than one, the one we need is the same have your package name. R class has inner public static classes those have static final integers, but why integers? Okay all methods you use to refer for resources like setContentView() takes int parameter (you can check their code, Android is open source). Good Luck.

Detecting obstacles and warning - Arduino, ultrasonic and buzzer

Image
This is tutorial to help you understand ultrasonic and buzzer and go deeper into learning Arduino, follow these steps and give me feedback please. 1. Prepare your material and tools 1. Test Board 2. Ultrasonic sensor 3. Arduino cable 4.  +5V buzzer 5. Male to male pins 6. Arduino uno board Tools and materials are shown in the pics 2. Connect your circuit          Connect the Buzzer positive terminal to the Arduino pin 2 and the negative terminal to the Gnd.          Connect the VCC pin of ultrasonic to +5v pin and the Gnd to the ground.          Connect trig pin to pin 10 and echo pin to pin 9.          The pictures shows you the connection.  3. Load the code to your Arduino          You can find code in codebender.cc here , it is well described a...

operating systems for mobile you may think they are not exist

you may know only few operating systems for mobile devices and think there is no more systems available for your mobile, however there is very much operating systems available for you to download and install for your mobile i collected list of them for you Android         have    the largest installed base worldwide on smartphones. AOKP          short for Android Open Kang Project is an custom ROM which based on  Android Open Source Project(AOSP) . Similar to CyanogenMod, AOKP allows Android users who can no longer obtain update support from their manufacturer to continue updating their OS version to the latest one based on official release from Google AOSP and heavy theme customization together with customizable system functions. ColorOS          ColorOS  is based on the open source  Android Open Source Project(AOSP)  and develop by  OPPO Electronics Corp . Curren...