Easiest Way to Use any DSLR as Webcam on PC

Problem?

There are a couple of different ways to turn your Nikon or Canon or Sony DSLR into a webcam for PC. The connection could be based on HDMI or USB as well as if you’re connecting using a PC, a MAC, or ChromeOS.

It is recommended that you use a tripod to keep the feed steady and have a power supply all the time connected. There could also be different audio recording options available to you. One best option is an external microphone because the in-cam mic is not always a great choice for crisp and clear audio.

There are camera-specific apps provided by Nikon and Canon. The limitation of these apps is that they don’t support all the camera models. For example, Nikon supplies Nikon Webcam Utility for PC and Mac. While Canon Webcam Utility is useful if you have one of the supported cameras. Sony has Imaging Edge Webcam for this purpose.

But what if you have a camera that is not the one in the list of supported cameras? Read below!

Solution?

Let’s talk about the best all camera supported app present out there. digiCamControl is the best and free solution. This piece of software can help you connect any DSLR as a webcam.

Features?

  • Control your camera settings remotely from your Windows PC via USB.
  • Trigger image capture via the release button on the camera or remotely from your computer.
  • View histogram and photo metadata.
  • Review images in full screen.
  • See the image live through the camera on your computer monitor before shooting.
  • Record video
  • Histogram
  • Generate a time-lapse video.
  • Countdown counter for delayed capture
  • See a live view of the camera on the screen

How to use?

This image has an empty alt attribute; its file name is image.png
3 types of digiCamControl are available

There are 3 variants of the digiCamControl app. The first one is the stable version with all the advanced features. The second is the lite version with webcam features like a live display from the camera to the PC screen. It lets us set Aperture, ISO, Shutter Speed, Focus Mode, and Exposure Metering directly through this app. The download page can be found here.

Screenshot of digiCamControl Virtual Webcam app

For the purpose of using DSLR as a Webcam, the second version can do the job perfectly. Just download and install it. Plug in your DSLR with a USB provided with it and voila! You can see the live view feed from your camera to your PC screen.

The first version has advanced features like taking pictures, live view, viewing metadata and histogram, and setting a lot of other things. You can set image size, view battery percentage, set location of image storage, use presets, and plugins.

Screenshot of digiCamControl Stable Version

You can also find the list of supported cameras in the list located here – http://digicamcontrol.com/cameras

Keep video calling! 😉

Fav Artist of the month: Mike Posner

Today I discovered that a new album of Mike Posner was released this week. It is titled Operation: Wake Up which truely signifies the meaning in songs.

The songs are like a story in which Mike is the main character. He describes how he is ready to shave off his hairs and his excitement to meet Jessie J. He shares his encounter with blackbear and story of his ex.

The music and beats are breakthrough. Best song is Weaponry with Jessie J followed by Posner’s rap in this song.

A recommended album if you are looking for amazing tracks for continuous 30 minutes. Here’s the link to Operation: Wake Up on Spotify.

Here’s an album for you… Operation: Wake Up Mike Posner
https://open.spotify.com/album/6YGWlDpe9n3spk3akJd0WN?si=UUKRzuqTTjOoccmgrxUB4Q

Happy Holidays and Merry Christmas 🎄🎅🎁

Pure React – Purely the best resource to learn React

There are numerous resources on the internet promising you to teach something in the best way. I agree that developers, creators, and writers have worked hard to deliver the course or a tutorial. It is fairly possible that certain resources can be helpful to some people but not everybody.

Journey

From the beginning when I started learning React in the early days, I was confused. There were tons of helpful resources. From Udemy lessons to dev.to blog posts, everyone was teaching React. Even today, React is the most popular JS library with infinite course material out there.

Today, there are amazing resources like Scrimba which provides a nice live editor to code alongside the video. You must have heard about Codecademy, a bit expensive but has features like side by side editor and easy steps guidance. Frontend Mentor provides an excellent way to practice your web development skills by working on the projects. It then lets you submit it and get the community feedback.

Communities

Discord servers like these have really helped people to ask questions and clarify doubts during the learning phase. Some of the popular servers are (with invite link):

  1. Reactiflux – a chat community of 110,000+ React JS React JS, React Native React Native, Redux Redux, Jest Jest, Relay Relay and GraphQL GraphQL developers.
  2. The Poppers Family – a family of 3400+ members helping each other.
  3. Scrimba Community – community with 8000+ members learning and progressing together.
Reactiflux – Community with a goal to hold developers together

Slack group of Frontend Mentor is popular with 31000+ members and counting. The community is trying to help each other in their coding journey.

Frontend Mentor Challenges is a nice place to test your knowledge

Pure React?

Pure React Book Cover ©

I recently came across the book which promises to teach React in its original form. I bought it to give it a try. The explanation given in the book is impressive. It is easy for a beginner to understand the concepts described in the book.

I have already told my friends who are looking forward to React about the book. Some of them have found this book a nice companion in their React journey. This book is totally recommended for beginners and intermediate learners of React JS.

Pure React is written by Dave Ceddia, who is a software engineer in Boston, USA. He primarily builds UIs with React.

Happy Learning 🦄

Error: Node Sass version 5.0.0 is incompatible with ^4.0.0

How do you solve this error while trying to use Sass in your application?. I was struggling quite for some time with this error when I tried to use Sass.

Get to Know SASS

Using an Scss file to style your React/Angular/Gatsby App can really enhance the CSS. SASS has helped in making CSS more awesome. Syntactically Awesome Style Sheets as its name goes, SASS is a language extension of CSS. Some of its features are:

  • Use Variables to declare the properties of elements
// Declare a variable like this
// $<variable-name>

// Example:

$main-fonts: Arial, sans-serif;

h1 {
 font-family: $main-fonts;
}
  • Nest rules to keep child rules within parent
nav {
 background-color: red;
  ul {
   li {
    color: white;
   }
  }
}

Debug Time

Let’s talk about the error 🍔

Failed to compile.

./src/App.scss (./node_modules/css-loader/dist/cjs.js??ref--5-oneOf-6-1!./node_modules/postcss-loader/src??postcss!./node_modules/resolve-url-loader??ref--5-oneOf-6-3!./node_modules/s
ass-loader/dist/cjs.js??ref--5-oneOf-6-4!./src/App.scss)
Error: Node Sass version 5.0.0 is incompatible with ^4.0.0.

This error is related to versions and dependencies. Node-Sass is deprecated which means it is no longer maintained. Instead of it, we should use Dart Sass.

Latest version of SASS can be installed using this command if you’re using npm.

npm install sass

The error is also related to sass-loader which loads a Sass/SCSS file and compiles it to CSS. In order to solve this issue, you will have to manually install the latest version of sass-loader like this

npm install sass-loader sass webpack

then mention the version like this to install latest (currently v10.1.0)

npm install sass-loader@10.1.0

Once done, this error will no longer be an issue. Let me know if this solved the issue. I was quite frustrated after having tried every random step until I found this solution.

Cheers 🥗

Learn: What’s the Difference Between a URI and a URL?

Both of these mean different things, however are used alike. URI is sometimes confused with URL when in lowercase.

url -> uri

How are these 2 different?

  1. A URI is an identifier of a specific resource generally. Like a page, or book, or a document.
  2. A URL is special type of identifier that also tells you how to access it, such as HTTPsFTPs.
  3. If the protocol (httpsftp, etc.) is either present or implied for a domain, we should call it a URL—even though it’s also a URI.
  4. URL is more specific way of addressing an URI. It provides an access method/location.

Happy Learning 🍕

Display: Grid in CSS explained

This shorthand guide to CSS Grid focuses on major settings required for an efficient grid parent container and the grid child container.

Grid is known to be 2-directional systems. It can handle columns as well as rows. This is different from Flexbox which is used for 1-directional systems. This 2-directional system helps you get a better design control over the CSS elements on the web page or app.

Grid is supported by all the new age desktop, tablets and mobile browsers.

Grid goes well with Media Queries for different viewports/displays. Imagine defining the layout of your entire page, and then completely rearranging it to accommodate a different screen width all with only a couple lines of CSS. Grid is one of the most powerful CSS modules ever introduced.

Parent Properties

.container {
display: grid | inline-grid;
}
view raw grid.css hosted with ❤ by GitHub
.container {
grid-template-columns: 40px 50px auto 50px 40px;
grid-template-rows: 25% 100px auto;
}
view raw grid.css hosted with ❤ by GitHub
.container {
grid-template-areas: " | . | none | …" "…";
}
view raw grid.css hosted with ❤ by GitHub
.item-a {
grid-area: header;
}
.item-b {
grid-area: main;
}
.item-c {
grid-area: sidebar;
}
.item-d {
grid-area: footer;
}
.container {
display: grid;
grid-template-columns: 50px 50px 50px 50px;
grid-template-rows: auto;
grid-template-areas: "header header header header" "main main . sidebar" "footer footer footer footer";
}
view raw grid.css hosted with ❤ by GitHub

Child Properties

This is a 5 Columns and 4 Rows Grid
.item {
grid-area: <rowstart> / <columnstart> / <rowend> / <columnend>;
}
view raw grid.css hosted with ❤ by GitHub
.item {
grid-area: 2 / 3 / 3 / 4;
}
view raw grid.css hosted with ❤ by GitHub
Code for placing an item at a certain place in Grid

justify-self is used when aligning items along horizontal axis. While align-self aligns item along the vertical axis. One easiest way to remember this, as mentioned here, is to pay attention to the name.

justify-self ( justify-items in the case of flexbox) is for horizontal alignment of items. align-self ( align-items in flexbox ) is for vertical alignment.

.item {
justify-self: start | end | center | stretch;
}
view raw grid.css hosted with ❤ by GitHub
.item {
align-self: start | end | center | stretch;
}
view raw grid.css hosted with ❤ by GitHub
.item-a {
place-self: center;
}
view raw grid.css hosted with ❤ by GitHub
.item-a {
place-self: center stretch;
}
view raw grid.css hosted with ❤ by GitHub

Keep CSSing 🎈

How to add Dark Mode to any website?

Dark Mode toggle for Websites is the most demanding feature these days. Dark pixels help save energy in OLED displays while decreasing energy consumption in the case of other displays. It is mild on the eyes and puts less strain as compared to bright white light from the monitor.

Implementing Dark Mode is as easy as it works. Click on the toggle button, and there you are presented with dark colors. I have shared the code for the easiest Dark Mode checkbox which can be used on any website.

HTML:

We would need a simple checkbox that will act as a toggle for Modes. toggleTheme function is defined below in the JavaScript file.

<input
type="checkbox"
onclick="toggleTheme()"
/>
view raw index.html hosted with ❤ by GitHub

CSS:

A dark class is created in CSS with dark colors for the background-color property and light color for text.

.dark {
background-color: hsl(199.2,89.8%,11.6%);
color: hsl(0,0%,94.9%);
}
view raw style.css hosted with ❤ by GitHub

JS:

toggleTheme function toggles the CSS properties of the body to the properties present in the dark class.

function toggleTheme() {
var element = document.body;
element.classList.toggle("dark");
}
view raw script.js hosted with ❤ by GitHub

Find CODE here – https://github.com/JayeshTiwari03/Dark-Mode-Demo

See the DEMO here – https://dark-mode-demo-delta.vercel.app/

Dark Mode Off
Dark Mode On

Another great example of implementation can be found here in this DEV article – https://dev.to/akhilarjun/one-line-dark-mode-using-css-24li

How to easily remove a link or search item from Google Search

17th January 2021: Update: Google has created a new Remove Outdated Content Removal Tool which can be found here – https://search.google.com/search-console/remove-outdated-content. It works the similar way as the old tool.

New tool for Content Removal from Google

Now you can remove links and images from Google Search and Image Search.

Link Removal
Image Removal

14th October 2020: Sometimes content on Google Search is still present even though that link does not exist. For example, I deleted my Flickr account but still can see it in the Google Search. In this post, I will show you how to remove a personal link, profile link, or pictures from Search which doesn’t exist or has expired.

When I open this, the link is not found. It gives 404 error which means I have deleted my Flickr account. Google Search still keeps showing these expired links for a certain number of days or sometimes forever. The only way to remove these personal items from showing up in the Search is by manually removing them.

How can you remove these kinds of personal links from Google Search which no longer exists?

Here is the solution:

  1. Use Search Console to place a request for the removal of expired link – Search Console – My Removal Requestshttps://www.google.com/webmasters/tools/removals
Search Console – My Removal Requests page

2. Paste the expired link to be removed from Search in the box as shown in the screen snip below

Paste the link in the input box

3. Click on Request Removal button

Click on Request Removal, a window appears

4. Now click on Request Removal again on the window which appears on the webpage

Click OK to successfully submit the request for Google Search removal

5. Link summited by you will be visible in the Removal Requests list below on the page. It has Status, Removal Type and Requested Date details in it

List of links submitted by you will be visible below

Remove Outdated Content tool

It takes some days for the Webmaster of that specific website to see the request and take appropriate action. Links from Google Search are removed once Status changes to Removed.

If you go to this link on Google Search Console Help, it is difficult to find the right place. The link to go to the page which lets you remove expired content is hidden deep.

If you still want to navigate to the right place, follow these steps:

On Remove information from Google page>go to Step 2: Take action>Get information off Google Search results>I don’t control the web page>The content no longer exists on the source web page>Remove Outdated Content tool

After you go inside the options mentioned above, the Remove Outdated Content tool link appears

Hi-five if this helped you 🎉

How to solve Cannot Start BlueStacks Hyper-V problem in Windows?

A lot of us have been through this issue when we freshly install BlueStacks with Hyper-V in Windows 10 PC. After installation, when we first launch the app, it doesn’t run. I think these days BS-4 is shipping with Hyper-V by default when you download the app from their official website. Instead, it gives an error which states –

Cannot start BlueStacks Hyper-V
BlueStacks Hyper-V cannot start as Hyper-V compute platform is not enabled on your PC.
Check FAQ

This is a common error which BS Team hasn’t been able to provide a fool-proof solution to. But there’s always a workaround to issues. In the FAQ link, information is confusing. People are asking in comment boxes about the issues they are facing. Instead of providing a solution, the team is pasting automated messages like this.

Comments asking for help for BlueStacks
Comments asking for help for BlueStacks

These posts in the official BlueStacks Help Center are of no use. The first link below is part of the FAQ link present in the error window.

Error Windows – Hyper-V inaccessible, Cannot start BlueStacks Hyper-V

Error
Error

Here’s the solution:

  1. Right Click on BlueStacks (HyperV) App Icon on the desktop. Go to Run as Administrator option
Right click on BlueStacks app icon
Right Click on the App Icon

2. Click Yes when prompted for Windows Permission to run.

Do you want this app to make changes to your device? YES

3. Now you will see this Error Box stating – Would you like to grant the current user permission to use Hyper-V? A restart will be required for this change.
Grant and restart | Exit

Click on X to close this error window

Error

4. Once you click on X to close the error window, BlueStacks will start to run.

Start Screen
Home Screen

Install games and apps to have unlimited fun!

Among Us Game

I hope this post solved your problem. Thanks for reading 😇

How to use Sass in HTML file?

Sass stands for Syntactically Awesome Style Sheets. Sass is a preprocessor scripting language that is interpreted or compiled into Cascading Style Sheets.

Sass is a stylesheet language that’s compiled to CSS. It allows you to use variablesnested rulesmixinsfunctions, and more, all with a fully CSS-compatible syntax. Sass helps keep large stylesheets well-organized and makes it easy to share design within and across projects.

Steps to use Sass in your HTML project:

  1. Install Sass using npm –
npm install -g sass

2. Compile your Sass to CSS using Sass command:

sass --watch input.scss output.css

In the above terminal command, input.scss is the file from which we are building from. It is outputted to output.css file after compilation. Running sass input.scss output.css from your terminal would take a single Sass file, input.scss, and compile that file to output.css.

--watch flag tells Sass to watch for changes to your input.scss file. It then recompiles if changes are found.

References – https://sass-lang.com/install, https://sass-lang.com/guide