Video equipment tips for Video Bloggers

Being a YouTube creator requires at least a foundational knowledge of video equipment. You might be asking yourself: What type of camera will I use? How will I handle sound and lighting? Here’s an overview of some common production equipment choices that can help you get started.

Cameras

There’s no ‘one size fits all’ – consider what you want to achieve with your videos. Here are two common types:

  • Point-and-shoot cameras are simple, all-in-one devices that are great for frequent vlogging in almost any setting. Some models have a reversible LCD screen so that you can see your shot. These no-fuss cameras can deliver full HD (1080) image quality, and many creators use them in their everyday videos.
  • DSLR cameras can deliver a more cinematic look, but may require a learning curve to operate. They use interchangeable lenses, are much heavier and are sometimes trickier to focus. These cameras cost more and they are typically used by creators who want a more artistic or professional look.

You can always start with your mobile device’s camera. It’s a great option before you invest in a standalone camera.

Take a look at camera reviews from other YouTube creators to find out what brands and models they recommend.

Sound

Good sound is a must. Viewers often don’t mind imperfect lighting, but they are less accepting of poor sound quality in the video.

If you’re using your camera’s onboard mic, you may need to stay about a metre away from the camera for the best audio.

  • Some creators buy a ‘shotgun’ mic; since these have directional recording, they can be effective at picking up natural sound from a longer range.
  • When you need to record at a distance, you can use a wireless lavalier mic, which can be attached to you. For example, a lav mic might be appropriate for the instructor in a fitness video.

Confirm whether your camera has a port for an external mic before buying one.

Lighting

  • Many creators use a ‘two-point’ lighting system. This involves lighting your main subject from two light sources at opposing directions. In this setup, the ‘key light’ gives the primary lighting, while the ‘fill light’ balances out the shadows.
  • Another option would be ‘soft lights’, which sometimes cost less, consume less power and are more flattering. A single soft light can be great for close-up shots. You can add lights to illuminate the background or other parts of the scene, as needed.
  • Don’t forget about one of the brightest (and cheapest) lights in existence – the sun! Try recording outside or using natural daylight through a window.
  • For shooting on the go, consider camera-mounted lights.

We recommend

  • If you have a lot of questions, consider your creative style and production goals as you select the right equipment. Some creators aim for a highly polished video, while others are OK with something casual and authentic.
  • If you want to keep costs down, you could buy the most affordable equipment and upgrade later based on your video-making needs.
  • Often, the best piece of equipment is the one you have to hand. Use your mobile device to get started immediately.

javascript in indexed array store localstorage

var colors = ["red","blue","green"];
localStorage.setItem("my_colors", JSON.stringify(colors)); //store colors
var storedColors = JSON.parse(localStorage.getItem("my_colors"));

JavaScript array

JavaScript Simple Array

const nouns= ["Aditya", "Amit", "Ajay"];

JavaScript indexed Array

const cars = [];
cars[0]= "Saab";
cars[1]= "Volvo";
cars[2]= "BMW";

bootstrap 4 modal

Vertically centered

Add .modal-dialog-centered to .modal-dialog to vertically center the modal.

<!-- Button trigger modal -->
<button type="button" class="btn btn-primary" data-toggle="modal" data-target="#exampleModalCenter">
  Launch demo modal
</button>

<!-- Modal -->
<div class="modal fade" id="exampleModalCenter" tabindex="-1" role="dialog" aria-labelledby="exampleModalCenterTitle" aria-hidden="true">
  <div class="modal-dialog modal-dialog-centered" role="document">
    <div class="modal-content">
      <div class="modal-header">
        <h5 class="modal-title" id="exampleModalLongTitle">Modal title</h5>
        <button type="button" class="close" data-dismiss="modal" aria-label="Close">
          <span aria-hidden="true">&times;</span>
        </button>
      </div>
      <div class="modal-body">
        ...
      </div>
      <div class="modal-footer">
        <button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
        <button type="button" class="btn btn-primary">Save changes</button>
      </div>
    </div>
  </div>
</div>

Validate phone number and email in php

Phone number validation using regular expression

$user_phone = $_POST['user_phone'];

if(!preg_match('/^([0-9]+)$/', $user_phone))
{
    $_SESSION['info']="Please enter valid phone number";
    header('location:/register');
}

Phone number validation using is_numeric function

$user_phone = $_POST['user_phone'];
if(!is_numeric($user_phone))
{
    $_SESSION['info']="Please enter valid phone number";
    header('location:/register');
}
if (filter_var($user_email, FILTER_VALIDATE_EMAIL) == false){
    $_SESSION['info']="Please enter valid email";
    header('location:/register');
}
  • is_int or is_integer
  • is_numeric
  • regular expressions
  • ctype_digit
  • filter_var

is_integer()

for this function these values are are not valid: “0010”, “123”

is_numeric()

for this function these values are valid: 1.3, +1234e44 and 0x539

filter_var()

for this function a value as “00123” is not valid

CONSLUSION

it seems that only regex and ctype_digit work always fine.

Invalid or missing Livepatch token

  1. Disable Livepatch either through the GUI or by running canonical-livepatch disable as root
  2. Uninstall Livepatch with snap remove canonical-livepatch as root (optional. Try it first without doing this)
  3. Run the command rm /etc/machine-id as root to remove your current machine ID (if it says the file or directory doesn’t exist, you can safely ignore it)
  4. Run the command systemd-machine-id-setup as root to regenerate the ID
  5. Reinstall Livepatch with snap install canonical-livepatch as root (if you removed it earlier)
  6. Either grab your key from https://auth.livepatch.canonical.com and follow the instructions there to re-enable or use the Livepatch GUI

check ubuntu version

lsb_release -a

Upgrade Ubuntu

sudo apt upgrade

Unable to upload large file in website

Unable to upload large file in php website, here is setting for htaccess file, after this you can upload 500 mb file size, and also change this value.

php_value upload_max_filesize 5000M
php_value post_max_size 5000M
php_value memory_limit 256M
php_value max_execution_time 300
php_value max_input_time 300

404 redirect to homepage wordpress

if( !function_exists('redirect_404_to_homepage') ){

    add_action( 'template_redirect', 'redirect_404_to_homepage' );

    function redirect_404_to_homepage(){
       if(is_404()):
            wp_safe_redirect( home_url('/') );
            exit;
        endif;
    }
}