Mukul Latiyan

Mukul Latiyan

363 Articles Published

Articles by Mukul Latiyan

Page 11 of 37

Check if a String is Present in a Pdf File in Python

Mukul Latiyan
Mukul Latiyan
Updated on 02-Aug-2023 852 Views

In today's digital world, PDF files have become an essential medium for storing and sharing information. However, sometimes it can be difficult to find a specific string of text within a PDF document, especially if the file is lengthy or complex. This is where Python, a popular programming language, comes in handy. Python provides several libraries that allow us to interact with PDF files and extract information from them. One common task is to search for a particular string within a PDF file. This can be useful for various purposes, such as data analysis, text mining, or information retrieval. In ...

Read More

Change the View of Tensor in PyTorch

Mukul Latiyan
Mukul Latiyan
Updated on 02-Aug-2023 332 Views

PyTorch is an open−source machine learning library developed by Facebook's AI Research team. It is primarily used for deep learning applications, including natural language processing, computer vision, and reinforcement learning. PyTorch provides two main features: a multidimensional Tensor object and a collection of functions that operate on these Tensors. Torch The Tensor object in PyTorch is similar to NumPy's ndarray, but with added capabilities for utilizing GPUs and building dynamic computational graphs. These computational graphs are constructed on−the−fly during the execution of the program, allowing for efficient memory usage and more flexible model architectures. Additionally, PyTorch has a modular design ...

Read More

Web Components: Building Custom Elements with JavaScript

Mukul Latiyan
Mukul Latiyan
Updated on 25-Jul-2023 561 Views

Web components are a powerful tool for building reusable and encapsulated UI elements in web applications. They allow developers to create custom elements with their own markup, style, and behavior, which can be easily reused across different projects and shared with other developers. In this article, we will explore the fundamentals of web components and learn how to build custom elements using JavaScript. What are Web Components? Web components are a set of web platform APIs that allow you to create reusable, encapsulated, and composable UI elements. They consist of three main specifications: Custom Elements, Shadow DOM, and HTML Templates. ...

Read More

Web Assembly (Wasm) with JavaScript

Mukul Latiyan
Mukul Latiyan
Updated on 25-Jul-2023 593 Views

Have you ever wondered if it's possible to run high-performance applications on the web without sacrificing the portability and security that JavaScript provides? Well, wonder no more! With the introduction of WebAssembly (Wasm), it is now possible to bring native-like performance to web applications while still leveraging the power of JavaScript. In this article, we will explore the basics of WebAssembly and how it can be used alongside JavaScript to unlock a new world of possibilities. What is WebAssembly (Wasm)? WebAssembly, often referred to as Wasm, is a binary instruction format designed specifically for web browsers. It is a low-level ...

Read More

Robotics: Building Autonomous Robots with Raspberry Pi and JavaScript

Mukul Latiyan
Mukul Latiyan
Updated on 25-Jul-2023 608 Views

In recent years, the world of robotics has seen a significant shift towards open-source technologies and platforms. One such platform that has gained immense popularity is Raspberry Pi, a small and affordable single-board computer. Coupled with the power and versatility of JavaScript, developers can now embark on exciting journeys into the world of robotics. In this article, we will explore how to build autonomous robots using Raspberry Pi and JavaScript, diving into code examples, explanations, and their output. Setting Up Raspberry Pi Before we delve into the realm of JavaScript robotics, it is essential to set up our Raspberry Pi ...

Read More

Parallel Programming in JavaScript with Web Workers and SIMD.js

Mukul Latiyan
Mukul Latiyan
Updated on 25-Jul-2023 786 Views

JavaScript is a versatile programming language that runs on the client-side as well as the server-side. Traditionally, JavaScript executed tasks in a single-threaded manner, which limited its ability to handle computationally intensive operations efficiently. However, with advancements in web technologies, parallel programming in JavaScript has become possible through the use of Web Workers and SIMD.js. This article aims to introduce parallel programming concepts in JavaScript, focusing on Web Workers and SIMD.js, along with code examples to illustrate their usage. Understanding Parallel Programming Parallel programming involves dividing a task into smaller subtasks that can be executed concurrently, thereby utilising multiple resources ...

Read More

Optimising JavaScript Bundle Sizes: Strategies for Code Splitting and Lazy Loading

Mukul Latiyan
Mukul Latiyan
Updated on 25-Jul-2023 306 Views

In today's digital landscape, web applications have become increasingly sophisticated, offering a wide range of features and functionalities to users. However, this evolution comes at a cost: larger JavaScript bundle sizes. When a user visits a website, the browser is responsible for downloading and executing the entire JavaScript bundle, which can be a time-consuming process. This results in slower load times, increased network usage, and, ultimately, a negative impact on the user experience. To address this challenge, developers have turned to various techniques to optimize JavaScript bundle sizes. Two popular strategies that have gained traction are code splitting and lazy ...

Read More

Advanced JavaScript Memory Profiling and Heap Analysis

Mukul Latiyan
Mukul Latiyan
Updated on 25-Jul-2023 399 Views

Efficient memory management is crucial for optimising the performance and stability of JavaScript applications. Memory leaks and excessive memory usage can lead to degraded performance, crashes, and poor user experiences. To address these issues, JavaScript provides several advanced techniques for memory profiling and heap analysis. In this article, we will explore these techniques, accompanied by code examples and outputs, to gain a comprehensive understanding of how to optimise memory usage in JavaScript applications. Understanding Memory in JavaScript JavaScript uses automatic memory management, where a garbage collector frees up memory by identifying and deallocating objects that are no longer needed. However, ...

Read More

JavaScript Testing Techniques: Integration Testing, E2E Testing, and Mocking

Mukul Latiyan
Mukul Latiyan
Updated on 25-Jul-2023 358 Views

Testing plays a crucial role in ensuring the quality and reliability of JavaScript applications. While unit testing is widely adopted, advanced testing techniques such as integration testing, end-to-end (E2E) testing, and mocking are equally important in delivering robust applications. In this article, we will explore these advanced JavaScript testing techniques, providing theoretical explanations, code examples, and their benefits. Integration Testing Integration testing focuses on verifying the interactions and dependencies between different components of an application. It ensures that individual units work together harmoniously. JavaScript frameworks like Jest, Mocha, and Jasmine provide excellent support for integration testing. Example Scenario Let's consider ...

Read More

JavaScript Robotics: Computer Vision and Object Recognition with JavaScript

Mukul Latiyan
Mukul Latiyan
Updated on 25-Jul-2023 390 Views

In recent years, JavaScript has gained tremendous popularity as a programming language for developing robotic applications. Its versatility, ease of use, and extensive ecosystem make it an excellent choice for building interactive and intelligent robots. One of the most exciting aspects of robotics is computer vision, which enables robots to perceive and interpret their environment. In this article, we will explore how JavaScript can be used to implement computer vision and object recognition tasks. We will delve into the theory behind computer vision, discuss relevant JavaScript libraries and frameworks, and provide practical examples with detailed code snippets and their corresponding ...

Read More
Showing 101–110 of 363 articles
« Prev 1 9 10 11 12 13 37 Next »
Advertisements