Hack wifi wpa/wpa2 password using python

Hey guys , have you ever wondered how to hack a wifi using python, am going to show you guys how. ...

Python machine learning for beginners (PART 1)

Hello guys, today am going to teach you some basics on machine in python. Machine Learning is a step into the direction...

Switch "ON" Android phone flashlight from web



Hey, have you ever think of switching ON an android phone flashlight from the web? Here is a source code for that below.

1. Open Your IDE



2. Create an HTML file


3. paste the following code:


 <button class="switch">On / Off</button>


4. Add Javascript To your code:


Run the code on your browser and boom 💥,  it works. 

If you have any questions feel free to ask at the comment section. 



//Test browser support
const SUPPORTS_MEDIA_DEVICES = 'mediaDevices' in navigator;

if (SUPPORTS_MEDIA_DEVICES) {
  //Get the environment camera (usually the second one)
  navigator.mediaDevices.enumerateDevices().then(devices => {
  
    const cameras = devices.filter((device) => device.kind === 'videoinput');

    if (cameras.length === 0) {
      throw 'No camera found on this device.';
    }
    const camera = cameras[cameras.length - 1];

    // Create stream and get video track
    navigator.mediaDevices.getUserMedia({
      video: {
        deviceId: camera.deviceId,
        facingMode: ['user', 'environment'],
        height: {ideal: 1080},
        width: {ideal: 1920}
      }
    }).then(stream => {
      const track = stream.getVideoTracks()[0];

      //Create image capture object and get camera capabilities
      const imageCapture = new ImageCapture(track)
      const photoCapabilities = imageCapture.getPhotoCapabilities().then(() => {

        //todo: check if camera has a torch

        //let there be light!
        const btn = document.querySelector('.switch');
        btn.addEventListener('click', function(){
          track.applyConstraints({
            advanced: [{torch: true}]
          });
        });
      });
    });
  });
  
  //The light will be on as long the track exists
  
  
}

Send mail using javascript cdn (No server side required)

Have you ever wondered how you can send mail from front end using cdn? Am going to show you how it...

kivy tutorial for beginner's (python) Part 1

                                            image from kivy.org Start Developing Kivy Apps Right Away! Creating Kivy apps is fun and rewarding. This guide should be...

Laravel Quick Step Installation

  # INSTALLATION                                    Via Laravel Installer              First, download the Laravel installer using Composer. composer global require "laravel/installer=~1.1" Make sure...

Page 1 of 11