Memoization, not memorization, is a technique commonly used in functional programming to enhance application performance. In simple terms, memoization involves caching the result of a function. When the function is called again with the same inputs, the cached result is returned instead of re-executing the function. It is important to note that the memoized function would need to be a pure … [Read more...]
How to change background color on scroll with Tailwind CSS and JavaScript
Today Sunday we are doing a short tutorial on how to change the background color of a header and sections based on the user's scroll position, enhancing the overall user experience and engagement.See it live and get the code Why would we use this approach? More engaging websites: Using parts of your site that react, like a header that shifts color when you scroll, makes your site feel more … [Read more...]
Grandoreiro Banking Trojan Resurfaces, Targeting Over 1,500 Banks Worldwide
May 19, 2024NewsroomBanking Troja / Email Security The threat actors behind the Windows-based Grandoreiro banking trojan have returned in a global campaign since March 2024 following a law enforcement takedown in January. The large-scale phishing attacks, likely facilitated by other cybercriminals via a malware-as-a-service (MaaS) model, target over 1,500 banks across the world, spanning more … [Read more...]
Overview of Performance Metrics
In this post, I wanna dive into Core Web Vitals and other performance metrics that are useful to measure the performance of a website. Largest Contentful Paint (LCP) LCP measures the time it takes for the largest content element to be rendered on the screen. It's a core user-centric metric that helps to measure the perceived loading speed of a page. It's one of Google's core web vitals and … [Read more...]
More of my notes on Web Performance
CSS links should be placed in the <head> of the document, while JavaScript links should be placed at the end of the document, just before the closing </body> tag. This is because CSS is render blocking, while JavaScript is not. Meaning, the browser will not render until it has loaded the CSS. This is why it's important to load CSS first, so the browser can start rendering the page as … [Read more...]
Proxies in JavaScript give your objects superpower
Proxies are a way for you to customize the behavior of objects in JavaScript. For example, let's say you always wanna log when a property is accessed on an object. You can use a proxy for that. It's a way to create a more "powerful" version of an object. Or to be fair, an accurate description would be that it's a way to create a "wrapper" around an object. You create a proxy by calling new … [Read more...]
WeakMap in JavaScript explained
I enjoy reading Open Source code. Especially ones around performance optimization. I have always had a tough time understanding WeakMap in JavaScript. And it's not because it's a complex concept, but rather because I had a wrong mental model of it. Let's say we want to cache the result of an expensive computation based on some object. We can use a Map to store the object as the key and the … [Read more...]
mongooseAggregatePaginate in simple language
Let us begin this by understandingWhat is mongooseAggregatePaginate ? In simple words mongooseAggregatePaginate is a plugin ( a software component that adds a specific feature to an existing program ) for mongoose, a popular mongoDB object modelling tool. This plugin helps you handle sets of data by breaking them into smaller, manageable chunks, which is known as pagination. Now the next question … [Read more...]
From Passion to Profession: My Journey in Mentoring Future Developers
How It BeganI was born in a remote area where I had no idea what programming was. My first encounter with a computer was love at first sight. From that moment on, I dedicated the following years of my life to becoming a programmer. I pursued a degree in computer science in college, where I quickly learned about Python, C++, and other programming languages. During this time, I started looking for … [Read more...]
The Power of Web Development with Brand Bugs
In today's digital age, where the internet serves as the primary gateway for businesses to connect with their audience, the importance of a strong online presence cannot be overstated. Website development has a broader meaning and encompasses many aspects such as website design, content development, and scripting through the client, and much more. So as a result, small-time and even big companies … [Read more...]
What are Web Push Notifications? And How do they work?
IntroductionIn this article, I will answer some prominent questions on web push notifications. Web Push Notifications (aka Browser Push Notifications) is a way to send some message to users even when they are not actively using the website. This provides a very convenient way for website owners to increase user engagement on the website. 💡 However, it should be used conscientiously as … [Read more...]
LATRODECTUS Loader Getting Popular Among Cybercriminals, Is It Replacing ICEDID!
Hackers use loaders to bypass security measures and run harmful code in a genuine process’s memory themselves. This makes it possible for malware payloads to be quietly loaded into the system without being discovered by any of the many file execution monitoring security solutions. Cybersecurity researchers at Elastic Security Labs recently discovered that LATRODECTUS loader is getting … [Read more...]
Easy HTML and CSS Tips for an Engaging Animated Mail Button
Welcome to Day 34 of my #100DaysOfCode Challenge! Today, I'm excited to share with you a fun and interactive project: an animated mail button using HTML and CSS. This step-by-step guide will walk you through the entire process, from setting up the HTML structure to styling with CSS and adding animations. By the end, you'll have a visually appealing and interactive mail button that can be a great … [Read more...]
Redefining the Relationship Between Privacy, Security, and Personal Autonomy
1. IntroductionIn an increasingly digital world, the concepts of privacy, security, and personal autonomy have become central to discussions about individual rights and societal norms. These three pillars, while distinct, are deeply interconnected. Privacy refers to the right of individuals to keep their personal information confidential and to decide how, when, and to whom this information is … [Read more...]
How to set up Bitwarden and keep your passwords safe on a Synology NAS
Bitwarden is a popular password manager that can help you conveniently create and use more secure passwords for all your accounts. By default, the available apps will use Bitwarden's backend cloud infrastructure to store your passwords and provide access anywhere in the world. Because one of the primary goals of setting up network-attached storage (NAS) may be to run some services in-house, taking … [Read more...]
Top 5 weekly: Robot dating, tons of Google announcements, and more
With all of Google's announcements this week, it's only natural to have missed a few that slipped through the cracks. And even if you paid attention to everything, you may have missed some news that flew under the radar amongst all the hype. Whichever camp you're in, here are the top five news pieces we ran this week. Source: xda-developers.com … [Read more...]
From Code to Cloud:
Hello, Web Wizards!In today’s fast-paced tech environment, deploying web applications effectively is just as important as building them. But with a myriad of deployment strategies and platforms, navigating the deployment landscape can be as tricky as sailing through stormy seas. Fear not! I’m here to guide you through some best practices that will ensure your web application not only reaches the … [Read more...]
Why you shouldn't save too much money on a PC case
Some PC cases cost more than $200 but it's possible to buy a chassis for as little as $40. The question many will ask when shopping around is: "Can you save too much money on a PC case?" The answer like all PC components is "yes," but it depends on what you're looking for. Some more affordable PC cases use higher quality materials and have some features typically reserved for more expensive … [Read more...]
Cichlids: A Journey Through Ignorance, Growth, and Dunning-Kruger
Profound insights come from unlikely sources. For me, that source was a group of cichlids swimming gracefully in my home aquarium. This journey began as a simple fascination with the vibrant colors and patterns of these exotic fish, but it quickly evolved into a deeply personal exploration of my own ignorance, growth, and the Dunning-Kruger effect. As I navigated the complexities of cichlid … [Read more...]
This fan-made Gameboy XL turns the pocket-sized pal into a handful
We've seen a lot of people create modern-day devices inspired by the classic handheld consoles of yore, and they usually have some cool additions to the older designs that make them easier to use. However, sometimes you just have to take the original device and make a huge version of it, because why the hell not? That's what someone has done with the Gameboy XL, a hobby project that takes the … [Read more...]
- 1
- 2
- 3
- …
- 3675
- Next Page »