Posts

Showing posts from May, 2020

Understanding focal length and aperture | Become a photographer with Shubham Part-9

Image
1. What if focal length Focal length is the distance from the center of the lens to the imaging point 2. Focal length and aperture relation: The aperture is a fraction that describes the ratio of aperture (entrance pupil) diameter to focal length. 3. How to differentiate between lenses: Camera name itself says, like: Nikon 18-55mm f/3.5-5.6 AF-P. Maximum aperture is f/3.5 but it shifts gradually from f/3.5 at the wide end to just f/5.6 at the longer focal lengths. It can be identified by column as well, like:Nikon 50mm 1:1.4G(Max aperture f/1.4). Nows lets get into the details: 1. What is focal length: Focal length is the distance from the center of the lens to the imaging point (focal plane) where the light for the image is collected. When a lens is described as a "50mm lens," it is referring to its focal length. Different focal lengths create different levels of magnification and change the viewing angle of the resulting photograph. As the focal length value decreases, the ...

Important websites for a programmer

Feeling stressed? Get some relaxing natural sounds:  https://asoftmurmur.com/ Having something to write again and again and don't want to use regex:  https://nimbletext.com/Live Write front code on the go:  https://codepen.io/ Always fighting with cron job timings, here is one to do that for you:  https://crontab.guru/ See the regex working in a real environment:  https://regexr.com/ Working in an industry or running your own business overseas, troubling with time zones. Let this site bear all that trouble for you:  https://everytimezone.com/

Chrome extensions for pro coders and time saving

Read Aloud   JSON Viewer Wappalyzer Onenote webcliper Get pocket Momentum

Six simple ways to improve communication skills | Learn English with Shubham - Part 2

To speak english fluently, you will have to start thinking in english. For that follow these 6 simple steps Start naming everything in english. Instead of "Chai", say it "Tea". Try to speak every days happenings in english. Try to speak new happenings in english.(What you did new today) Try to make paragraph from the sentences made in step 2 and 3. Check the grammar, review yourself. Speak, record, review repeat.

How to deliver a perfect talk | Learn English with Shubham - Part 1

Reach the venue well before in time, say 15 mins. Talk to audience before talk,  get familiar with them. You can watch these familiar faces during the talk without facing difficulty. Spot 3 spots, right one, left one , and the middle one. Use these spots to watch during the talk. Rather than starting by saying "Good morning friends, I'm here to talk about ...bla bla bla, it's good to start by your subject "Cleanliness is next to godliness". Have some activities in between to get the audience involved. Find common things about you and the audience, use those to relate with your talk. WITFM: What is there for me.  Lets your audience be clear about what they are going to get. Do not act like a self-centric-speaker, rather behave like audience-centric-speaker. Do not talk much about you. Voice modulation is very very very effective in a talk. Mind you meal before the talk. Have some luke warm water and high fiber diet before the talk.  You can have water during the t...

Merge Sort | Learn Data Structure with Shubham part 2

function mergeSort ( array , left , right ) { if ( array && ( left < right )) { const mid = Math . floor (( left + right ) / 2 ); /* THIS CAN BE BY FLOOR ONLY, consider the case [0,1,2,3] mid = Math.ceil(0+3)/2 would be 2, will break the array [0,1,2] and [3] an un-even break */ if ( left != mid ) { /* optinal check, otherwise recustion with return this condition from the first if condition */ mergeSort ( array , left , mid ); } if ( mid + 1 != right ) { /* again optional condition */ mergeSort ( array , mid + 1 , right ); } mergeSubArray ( array , left , mid , mid + 1 , right ); } return array ; } function mergeSubArray ( array , left1 , right1 , left2 , right2 ) { let resultant = [], c1 = left1 , c2 = left2 ; while ( c1...

Quick Sort Implementation in JS | Learn Data Structure with Shubham part 1

function quickPartition ( array , start , end ) { if (! array || start == end ) { return null ; } const pivot = array [ end - 1 ]; let i = start - 1 ; for ( let j = start ; j <= end - 1 ; j ++) { if ( array [ j ] < pivot ) { i ++; array [ i ] = array [ j ] + array [ i ] - ( array [ j ] = array [ i ]); /* swap ith and jth element */ } } i ++; // swap ith and ni1th element array [ i ] = array [ end - 1 ] + array [ i ] - ( array [ end - 1 ] = array [ i ]); return i ; } function quickSort ( array , start , end ) { if ( start < end ) { const partionedElement = quickPartition ( array , start , end );           if ( partionedElement == null ) {                return           } quickSort ( start , partionedElement - 1 ); quickSort ( partionedEle...

Sunrise Photography | Become a photographer with Shubham Part-9

What you want is a picture where the bright parts (i.e. the sun and sky) aren’t too bright, and the dark parts (i.e. the foreground) aren’t too dark. Basically you want an HDR image, but rather than shooting on a tripod and combining multiple exposures in post-production, you can do it with a single image by shooting in RAW. There are a couple of ways to expose for the sun so it’s not too bright. You can set your camera to Center-Weighted metering , which ensures the middle of your picture is not too bright or too dark. Another method (and the one which I prefer), is to have your camera evaluate the entire scene but use exposure compensation to under-expose by roughly two stops. Regardless of how you meter the scene and set your exposure, the end result is the same. In your resulting image, you want the sun to be visible and not too bright. Small aperture helps : If you have a high-end zoom lens like a 70-200 f/2.8 or a 300mm f/4, you might be tempted to shoot sunrise pictures...

Capture sunset perfect clicks and Silhouette Photography | Become a photographer with Shubham Part-8

Silhouette Photography is a type of photography where the main subject is dark and background is kept coloured. [Good to have] Focus the subject, then turn off the auto focus. It's required because making a dark object in-focus could be challenging for the camera. But make sure the camera should hold this position and do not move after turning off the auto focus. ISO: Minimun (100) Aperture: Enough to capture the sharp image. Roughly between f4 to f8. Metering: Spot metering. Pointed towards the background, say sky. Shutter speed: Adjust the shutter speed as the exposure scale should be showing zero. To capture only sun without any other object, do have a slow shutter speed to capture more and more colours in the sky. Use unexposed photos for sun only photos. If you want to capture only sunset, point the sun from any stone or any other object lying on the earth to get it more focused. Since the sun will be at bottom during sunrise/sunset. Zoom: 100-200mm would be a good...

Capture milky way | Become a photographer with Shubham Part-7

Having a tripod or any same gadget is a must to have a stable picture. Use this site to find a place to capture:  https://darksitefinder.com/maps/world If you lie on a green zone, then only you will be able to click one. It's not really possible to capture from white or red spots. Moonless night will be the best one to capture such pics because there will be no light coming from any other source.