how to get and set value from and to from input text using jQuery when we have multiple input textbox in html

how to get and set value from and to from input text using jQuery when we have multiple input textbox in html

 $('#example tfoot input[type="text"]').last().val($(this).val())
# HTML
<input type="text" name="quantity" value="1" class="input-text ">
<input type="text" name="quality" value="2" class="input-text ">

#jquery
$('[name]').first().val() // 1
$('[name]').last().val() // 2

get option text instead of value

<script>

  $( "#selectGeetaId" ).change(function() {
  $('#inputName').val($(this).find(':selected').text());
});

// change event
$('#myselect').change(function(){
    console.log($(this).find(':selected').text());
    console.log($(this).find(':selected').val());
});
</script>

how to get to user preferences in website using JavaScript

1. JavaScript code for setting cookies

First we have some generic code that will set a cookie with a given name and value. In this example we’ve set the expiry date (when the cookie will be removed from your browser) to 30 days and all cookies will be set with a path value of ‘/’ (the root level of the website):

var today = new Date();
  var expiry = new Date(today.getTime() + 30 * 86400 * 1000); // plus 30 days

  function setCookie(name, value)
  {
    document.cookie = name + "=" + escape(value) + "; expires=" + expiry.toGMTString() + "; path=/";
  }

Then comes the form handler function which is also quite simple. We first populate an associative array, prefs, with the selected name-value pairs and then loop through that array setting a cookie for each value:

 var prefs = new Array();

  function setPrefs(form)
  {
    prefs['fontfamily'] = form.fontfamily.options[form.fontfamily.selectedIndex].value;
    prefs['overflow'] = form.overflow.options[form.overflow .selectedIndex].value;
    for(var x in prefs) setCookie(x, prefs[x]);
    return true;
  }

A better approach is to use a single cookie to hold all the values rather then one for each. The reason for this is that browsers will only hold a certain number of cookies from a domain before they start deleting the oldest. 

2. PHP code for reading cookies

In the PHP code that displays the template for this website we add the following code to the HEAD of the HTML page (inside the STYLE tags).

First for the font famliy:

  if(isset($_COOKIE['fontfamily']) && $_COOKIE['fontfamily']) {
    echo "  body { font-family: \"{$_COOKIE['fontfamily']}\"; }\n";
  }

and for the display setting:

  if(isset($_COOKIE['overflow']) && $_COOKIE['overflow']) {
    echo "  #content { max-height: {$_COOKIE['overflow']}px; overflow: auto; }\n";
  }

and so on for other values. You can see the extra CSS properties in the HEAD of each page by viewing the HTML source.

Because the cookies are set with a path of ‘/’ they apply to all pages in this domain. And because we use a single template for every page the preferences you select will apply to the entire site.

The advantage of using JavaScript to set the cookies is that they’re recognised by the browser immediately. If we submitted the form and used PHP to set the cookies then they wouldn’t appear immediately in the $_COOKIE array as the browser hasn’t yet told the server that it has them yet. That would happen on the next request.

To get around this you have to do something like the following:

<?PHP
  if(isset($_POST['fontfamily'])) {
    setcookie('fontfamily', $_POST['fontfamily'], time() + 30 * 86400, '/');
    $_COOKIE['fontfamily'] = $_POST['fontfamily']);
  }
?>

The first command tells the browser to set the cookie, and the second adds it to the $_COOKIE array so our script (above) can see the value right away.

how to upload video on YouTube without notifying anyone

When you upload a YouTube video, you can decide whether the video will send notifications to your subscribers. Viewers get a maximum of 3 upload and live stream notifications from each channel in a 24-hour period. If you upload more than 3 videos in a day, you can disable some notifications to choose which videos have notifications.

Disable upload notifications

  1. Sign in to YouTube Studio.
  2. In the top right-hand corner, click CREATE  and then Upload Videos
  3. Select the file that you’d like to upload and enter your video details, then click SHOW MORE.
  4. When you reach the “License and distribution” section, unclick the “Publish to subscriptions feed and notify subscribers” box.

Subscribers won’t get notifications or see your upload in their Subscription feed. On the “Bell notifications sent” card in YouTube Analytics, you’ll see 0% bell notifications sent.

It’s not possible to disable public live stream video notifications. However, unlisted live streams will not send notifications.

Video editing tips for Video Bloggers

Shoot with editing in mind

The best time to start thinking about editing is during the writing phase. By planning your edits early on, you can anticipate how your video will look and how you want your viewers to react.

Consider your camera positions, angles and movements. Think about how your video will open and close, and what the key moments in between are. For larger projects, you can make a simple ‘shot list’ – writing down all the shots that you’ll need so you don’t forget anything.

Ask yourself:

  • When should I do multiple takes to get the right shots?
  • Will I need extra footage for my B-roll, trailer or teasers?

As you get more experienced with editing, you may decide to buy a more sophisticated editing program. When shopping around, consider these points:

  • Budget. There are many budget-friendly apps on the market and starter apps at budget prices. Higher-end video editing apps are typically used for more elaborate projects. Check for trials or education discounts.
  • Equipment. Are you using a smartphone, DSLR or pro camcorder? Recording in SD or HD? Review the tech specs of each app to see which types of cameras and file formats are supported. Also check the system requirements for your computer.
  • Features. Even affordable programs typically offer a wide range of features, such as colour correction for making your footage really pop. Higher-priced apps may deliver more complex capabilities such as shared team projects and customisable workspaces.

You can optimise your videos in YouTube Studio by adding end screens and trimming sections of your video before or after publishing. You can also add music and sound effects to your video with the Audio Library in YouTube Studio. 

Editing like a pro

Often, the best way to improve your editing is through practice. These tips can help you take your editing to the next level:

  • Know your software. Whichever video editing software you use, try looking up keyboard shortcuts for your most repeated tasks. You can also find lots of videos on YouTube (and other sites) showing you how to do cool editing tricks.
  • Edit for pacing. Think about the pace and rhythm of your video. Do you want to move quickly from shot to shot, to build intensity and excitement? Or do you want to allow viewers more time to absorb and reflect upon what’s happening in front of them? Some editors use ‘jump cuts’ to cover up unwanted lines or filler words.
  • Turn to your audience. What matters most is how you connect with your target audience. If you’ve uploaded some videos already, try looking at your audience retention in YouTube Analytics. Dips can mean that viewers skip those parts or leave your video. Think about the reasons why your top videos kept viewers engaged and how editing might have played a role.

We recommend

Start with what you have. Often, phones and computers come with pre-installed editing software.

(#200) You do not have permission to access this field.

There is no permission called “contact_email”, there is only “email”.

That being said, you need a Page Token to post “as Page”. Use /me/accounts to get Page Tokens for your Pages. The permission error most likely means that you don´t have the appropriate permissions to post to the Page with your Access Token. Make sure it is a Page you manage, and make sure the Access Token includes the publish_pages permission. You can debug your Access token in the Debugger: https://developers.facebook.com/tools/debug/

If this error occur during WhatsApp API configuration, Call me for this solution.

Samsung Galaxy Watch4 Bluetooth(4.0 cm, Black, Compatible with Android only)

Email : adityaypi@yahoo.com, Mobile : +91-9555699081

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>