Skip to main content

Posts

Featured

The Linker Map Is the File Manager for Embedded Systems

When working in embedded environments , you do not have an operating system and a graphical user interface telling you which memory is filled up. There is no friendly prompt telling you what to remove to free up space. The linker map is basically your local disk properties tab, except everything is in addresses and hexadecimal values. I ran into this while working with a Parallax Propeller 1 board, Propeller C, and SimpleIDE . My code looked small: a simple LED blink and an R2U2 runtime verification monitor. The microcontroller had 32 KB of Hub RAM, but the program was still getting too large. That did not make sense. The confusing part The monitor object itself was only about 60 bytes. A blinking LED program is tiny. So why was the whole program acting like it wanted the entire 32 KB chip?   Why I Opened the Assembly and Map Files Before opening the map file, I spent hours rewriting the code and removing things from the source code to reduce the size. Th...
Recent posts

WHAT IS WEBSCRAPING IN PYTHON

  Web scraping is a technique that allows you to extract data from websites and store it in a format of your choice. It can be useful for various purposes, such as market research, price comparison, content analysis, and more. In this blog post, i will show you everything a beginner needs to know about web scraping, from the basics to some advanced tips and tricks.   What is web scraping?   Web scraping is the process of programmatically retrieving information from web pages. It involves sending requests to web servers, parsing the html code of the web pages, and extracting the data you want. Web scraping can be done manually, by copying and pasting data from a website, or automatically, by using a software tool or a programming language.   Why web scrape?   Web scraping can help you access data that is not available through an api or a downloadable file. For example, you may want to scrape product reviews from an e-commerce website, or news ...

AI Learning: How Machines Learn Like Humans

  Today I’m going to write about how the ways AI learns are similar to how I learn. Sounds interesting, right? let me clarify what I mean by AI. AI stands for artificial intelligence, which is a broad term that covers any system that can perform tasks that normally require human intelligence, such as understanding language, recognizing images, playing games, making decisions, etc. AI can be divided into four types: Strong AI: this is the ultimate form of artificial intelligence, it can reason on its own and act human like, it has not yet been made. Weak AI: it cannot truly reason and solve problems, but can act as if it were intelligent. Weak AI holds that suitably programmed machines can simulate human cognition. Applied AI: aims to produce commercially viable “smart” systems such as, for example, a security system that is able to recognise the faces of people who are permitted to enter a particular building. Applied AI has already enjoyed considerable success. Cognitive AI: compu...

Understanding PN Junctions

  A PN junction is a device formed when an N-type semiconductor material is joined with a P-type semiconductor material. The N-type material has an excess of free electrons, while the P-type material has an excess of holes. However, both materials are electrically neutral because the excess of free electrons and holes is balanced by the number of positive and negative ions, respectively. When N-type material is joined to P-type material, the electrons in the N material diffuse across the junction into the P material and fill some of the holes, while the holes in th   e P material diffuse across the junction into the N material and are filled by N material electrons. This process is called junction recombination and it reduces the number of free electrons and holes in the vicinity of the junction. Because there is a depletion, or lack of free electrons and holes in this area, it is known as the depletion region. The diffusion of electrons and holes across the junction will c...

Understanding Infrared Sensors

   we’ll be discussing the basics of infrared sensors, how they work, and their applications. Chapter 1: Introduction to Infrared Sensors ·        What is an infrared sensor? An infrared (IR) sensor is an electronic device used to measure and detect infrared radiation in its surrounding environment An IR sensor can measure the heat of an object as well as detects the motion . ·        How does an infrared sensor work? An IR sensor can detect changes in the amount of infrared radiation impinging upon it, which varies depending on the temperature and surface characteristics of the objects in front of the sensor . These types of radiations are invisible to our eyes, which can be detected by an infrared sensor. The emitter is merely an infrared LED (Light Emitting Diode), and the detector is simply an infrared photodiode sensitive to infrared light of the same wavelength as the IR LED. When infrared light strikes...

Scraping GOOGLE With Python

The Power of Data Extraction with Beautiful Soup 1. Introduction 2. Example: Searching Google with Beautiful Soup     - Importing Libraries     - Setting the URL     - Fetching the Page     - Parsing the HTML Content     - Finding Search Result Titles     - Printing the Titles 3. Additional Resources     - Web Scraping Reference Guides     - Web Scraping Project Ideas     - Other Libraries and Tools for Web Scraping 4. Important Considerations Web scraping is the practise of obtaining information from websites. It entails making a request to a website, obtaining the HTML response, and parsing the data to extract the necessary information. Beautiful Soup, a Python module that makes it simple to read HTML and XML documents, is a popular online scraping tool. Example: Searching Google with Beautiful Soup Here's an example of how Beautiful Soup...