Posts

Showing posts with the label code

Scientific-Calculator using Eclipse in java program

Image
Code src GITHUB : http://bit.ly/2CEMk9p

HOW TO BECOME A HACKER!?

Image
1/ Start with Linux: Run a UNIX-like operating systems are the operating systems of the internet, while you can learn to use the internet without understanding UNIX.   For this reason, the hacker culture today is pretty strongly UNIX-centered. There are many types of UNIX-like operating systems, the most popular being Linux, which you can run alongside Microsoft windows on the same machine. 2/ Learn HTML: If you don’t know how to program, learning basic Hypertext mark-up language (HTML) and gradually building proficiency is essential. What you see when you look at a website of pictures, images and design components is all codes using HTML. 3/ Learn the language of Programming: Python is a good “language “to start off with because it’s cleanly designed, well documented, and relatively kind to beginners. Despite being a good first language, it is not just a toy; it is very powerful, flexible, and well-suited for large projects. Java is an alt...

Programming in Java

Image
Programming is mostly all about writing code in High-Level languages like Java, C++, Python & so on. The set of statements written in a text editor like NotePad ++ or Eclipse is called the source code. The thing is that Computers don’t actually understand these High-Level Languages. The only thing they understand is machine code. Machine code, also known as machine language, is the elemental language of computers. It is read by the computer's central processing unit (CPU) and is composed of digital binary numbers. ⠀⠀⠀⠀⠀⠀⠀⠀⠀ ⠀⠀⠀⠀⠀⠀⠀⠀⠀ ⠀⠀⠀⠀⠀⠀⠀⠀⠀ A compiler/Interpreter is a tool that translates source code into another language like Machine Code. Each type of CPU uses a different Machine Language (because of their architecture) which means that the same executable file created by the compiler won’t work on different platforms. The real difference between a compiler and an interpreter is how they go about things. The compiler will actually scan the whole program...

How do I make a custom IDE

Image
instagram : @bentaherghassenblog A lot of you have been asking how to make them. Apparently there is a site called // carbon.now.sh  that allows you to make custom IDE’s. I personally make them on photoshop. The windows, the buttons for the window, the code & colours is all custom made. ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀ There are some good photoshop tutorials on YouTube. You don’t need to know much to get started. Just try to be creative & you can fucking do it.

arduino for beginners – behind the fundamentals – Part 4

Image
This tutorial is about arduino and we going to learn some basics things together. In this Part we going see what is behind the fundamentals. Sending input from the serial console to the arduino:   To send inputs from the Serial Monitor to the arduino, we need to use the Serial.read() function, and as example we make a Morse code generator take the serial inputs and generate them on light and sound using LED and buzzer. In this experiment we need: -1 LED. -1 Buzzer. -6 Wires. -220 Ohm Resistor. -BreadBoard. -Arduino Uno. And This code: Morse_buzzer_led See The Arduino for Beginners Tutorials

arduino for beginners – Adding Components – Part 3

Image
This tutorial is about arduino and we going to learn some basics things together. In this Part we going add Components. Adding an LED:   -1 LED. -2 Wires. -220 Ohm Resistor. -BreadBoard. -Arduino Uno And This Code:  Led_on This will Turn the LED On for Ever . Fading an LED’s brightness with Pulse Width Modulation (PWM):   In this experiment we going see how to increase and decrease LED’s brightness with PWM, by using analogWrite() function. -1 LED. -2 Wires. -220 Ohm Resistor. -BreadBoard. -Arduino Uno And This Code: Led_pwm   Turn the led on/off using a push button:     In this experiment we going see how to turn on/off the LED using a push button. So we need: -1 LED. -1 Push Button. -6 Wires. -220 Ohm Resistor. -10 Khm  Resistor. -BreadBoard. -Arduino Uno And This code: led_button Fading an LED with PWM based on Potentiometer value:   In this experiment we going see how ...

arduino for beginners – Setting Up – Part 2

Image
This tutorial is about arduino and we going to learn some basics things together. In this Part we going setting up arduino. Buying an arduino: Getting an arduino board, we going use  Arduino  uno. Other Components we need: -USB Cable. -Breadboard. -Flexible Wires. -Push Button. -Potentiometers. -Resistors. -LEDs. -RGB LED. The Arduino Board: Microcontroller ATmega328 Operating Voltage 5V Input Voltage (recommended) 7-12V Input Voltage (limits) 6-20V Digital I/O Pins 14 (of which 6 provide PWM output) Analog Input Pins 6 DC Current per I/O Pin 40 mA DC Current for 3.3V Pin 50 mA Flash Memory 32 KB ( ATmega328 ) of which 0.5 KB used by bootloader SRAM 2 KB ( ATmega328 ) EEPROM 1 KB ( ATmega328 ) Clock Speed 16  MHz Length 68.6 mm Width 53.4 mm Weight 25 g Note : The 6 Digital I/O (Provide PWM output) with the tide ~ symbol next to the number on the board, they allow for  Pulse width Modulation (PWM) , witch is a techni...

arduino for beginners – Electronics background – Part 1

Image
This tutorial is about arduino and we going to learn some basics things together. In this Part we going to see some Electronics  Background. Understanding Power Flow: Let start with the basics about voltage, current and resistance. These three components come together in the Ohm’s Law, which is the key to understanding a circuit. Ohm’s law says v is equal to i times r, or voltage is equal to current, which is measured in amps times resistance, which is measured in ohms. Ohm’s law: V = I x R Voltage(Volts) = Current(amps) x Resistance(ohms). Resistors: -Limit the flow of electron. -Resistance is measured in ohms. Finding the correct Resistor: -Know how much voltage is used up. Example 1 :  Simple One LED Specs. Vs : Power Supply 5-Volt circuit. Vl :  LED use 2-Volt. I : 20mA. R = (Vs-Vl) / I. R = (5-2) / 0.02 A. R = 3 / 0.2 = 150 Ohm. So we can use 150 Ohm or higher than,  but not less than 150 Ohm. Example 2  : Connecting LEDs ...

Arduino for beginners

Image
In this tutorial we going learn how to get start with Arduino, see some basic electronic background, Setting up arduino and add some components and finally we going see some advanced project with arduino. Electronics background – Part 1 Setting Up – Part 2 Adding Components – Part 3 Behind the Fundamentals – Part 4

Let's play with arduino : Building an Autonomous Car Platform

Image
Tthose steps taken from Instructable   What is PiCar? PiCar is an open sourced autonomous car platform. It isn’t autonomous by itself, but you can easily add sensors to control the car with an Arduino or Raspberry Pi. Why use PiCar instead of an RC car? Using PiCar is very similar to using an RC car as a platform. However, PiCar gives you more control and is easier to modify than an RC car. The chassis for the PiCar is 3D printed, and you can easily edit the 3D model to add more space in the car if needed. In addition, all of the parts are either easily available online or can be 3D printed. Who made PiCar? PiCar was designed at Washington University in St. Louis in the lab of Humberto Gonzalez and Silvia Zhang. The car was designed in May of 2017 and was entered into a robotics competition in June. The PiCar came in the top 10 out of 30+ international teams in the Silk Road Robotics Innovations Competition at Xi'an Jiaotong University in Xi...