Posts

Get Started with Debugging JavaScript in Chrome DevTools

Image
This tutorial teaches you the basic workflow for debugging any JavaScript issue in DevTools. Step 1: Reproduce the bug Finding a series of actions that consistently reproduces a bug is always the first step to debugging. Click  Open Demo . The demo opens in a new tab. OPEN DEMO Enter  5  in the  Number 1  text box. Enter  1  in the  Number 2  text box. Click  Add Number 1 and Number 2 . The label below the button says  5 + 1 = 51 . The result should be  6 . This is the bug you're going to fix. Figure 1 . The result of 5 + 1 is 51. It should be 6. Step 2: Get familiar with the Sources panel UI DevTools provides a lot of different tools for different tasks, such as changing CSS, profiling page load performance, and monitoring network requests. The  Sources  panel is where you debug JavaScript. Open DevTools by pressing  Command + Option + I  (Mac) or  Control + Shift + I...

Amazfit Sports Smartwatch 2 and 2S bring a mighty five days of battery life

Image
Xiaomi   is looking to continue its wearable conquest with a duo of new smartwatches from sub-brand Huami, the Amazfit Watch 2s and Sports Smartwatch 2, 2017's successors to the  Amazfit Pace . Both watches have the 1.34-inch display with 320 x 300 pixel resolution and stainless steel buttons, but the 2S ups the style with a ceramic bezel, sapphire glass on top and a nice leather strap. Both, however, look a lot nicer than the Amazfit Pace. Naturally the Sports Smartwatch 2 is where fitness types will want to look. It supports 11 different types of activity, from indoor running to open water swimming and triathlon and comes with a built-in GPS and an optical heart rate sensor. The Watch 2S doesn't come with the GPS or heart rate skills - that one's all about style - but both watches are waterproof to 50 meters. More interestingly, the Sports Smartwatch 2 will supposedly recognize whether you're in open water or not. We've no idea how that might work, but...

29 Linux Commands You Must Know

Image
Linux distributions support various GUIs (graphical user interfaces) but the old command line interface (bash) still proves to be  easier and quicker in some situations . Bash and othe r  Linux shells  require you to type in commands to complete your tasks, and thus gets named the  command line  in terface. Commands are directives for the computer to carry out a task. You can use commands to shut down your computer, or show a list of files in the current directory or the contents of a text file, or to show a message on the screen. They’re easy and powerful at the same time. If you are new to this and have always wanted to try it out, we’ve compiled a list of various basic Linux commands that you can learn and use for various tasks in sever al  Linux distros . The list is not exhaustive but it should make for a good start for beginners or intermediate Linux users or administrators. ls – List ls  lists the contents (files and folders) of t...

Popular posts from this blog

How to download a file using command prompt (cmd) Windows?

How to Secure Session Management in Node

Angular 9 - User Registration and Login Example & Tutorial