In my previous article, I explained how I implemented browser-side and server-side tracking for a Shopify store using Google Tag Manager, GA4, and Meta CAPI. Once it was done, the next step was making that data useful. This article covers the dashboards I built in Looker Studio/Data Studio using BigQuery as the data source. I came up with two screens: Executive Dashboard: Having typical metrics:…
Most influencers, creators, and professionals use Instagram to offer some service or product to their audience. In order to attract a wider audience, these individuals write a certain keyword at the end of their post(e.g., INTERESTED) and ask their audience to mention that keyword to avail themselves of the offer. Oftentimes, it has been observed that they are not able to reply to each and every…
A few months back, a friend of mine who runs multiple online stores called me after a long time. After the usual chit-chat, I asked about how his online sites were doing. He told me that he had recently started a new site; his first time on Shopify and running Ad campaigns did not yield any results. Previously, he had used OpenCart and WooCommerce for other sites. Around February/March, I had…
This post is part of the Voiceflow Series Chatbots have become a common part of modern businesses. Companies use them to answer customer questions, collect leads, assist with online purchases, schedule appointments, and much more. Their conversational nature makes it easier for users to get the information they need quickly, often reducing response times and improving the overall customer…
This post is part of the GenAI Series. Gemini Function Calling takes AI from just answering questions to actually getting things done. In this tutorial, I will use the Gemini API with Python to build a simple but surprisingly capable AI assistant. It can check your system status, test internet connectivity, and hunt down files on your machine. This real-world example will help you understand how…
This post is part of the GenAI Series. A few moons ago, I built a small AI tool to deal with ticket delays at my company. It wasn’t a big, fancy product. It started as a simple experiment, but it worked really well. We were getting negative feedback from clients about tickets not being completed on time. The real challenge was figuring out the actual reason behind each delay. Was it something our…
This post is part of the GenAI Series. If you ve ever worked in customer support, you know the feeling. It s 2 PM on a Wednesday. Your inbox is overflowing. A customer just sent their third following up email. Your manager wants to know why last week s tickets are still open. And somewhere in the back of your mind, you re wondering: Why does this feel so hard? Here s the thing: Most support teams…
This post is part of the GenAI Series. In March, I received an email from the founder of a website who had created an AI wrapper related to the medical field. He sent me an unsolicited email and subscribed me to his newsletter. I responded to him instantly and asked where he had gotten my email from, but I received no reply. Then I started exploring his website. The first thing I tried was asking…
This post is part of the T4p Series. So in this post, we are going to combine two indicators: RSI and Moving Averages to come up with a strategy. But first, let s talk about what we mean by a strategy. A trading strategy is simply a set of rules that tells you when to buy and when to sell. It s different from just using individual indicators because it combines multiple signals into a complete…
This post is part of the GenAI Series. Back-to-back GenAI-related posts, but I could not resist writing this post instead of a trading-related one. A few days ago, I built a small tool that lets you input an Amazon ASIN and instantly generate marketing copy, including Facebook ads, Amazon A+ content, and SEO product descriptions by using Gemini. The frontend is built with Bootstrap + jQuery, and…
This post is part of the GenAI Series. These days, if you ask a tech-savvy person whether they know how to use ChatGPT, they might take it as an insult. After all, using GPT seems as simple as asking anything and getting a magical answer instantly. But here s the thing. There s a big difference between using ChatGPT and using it well. Most people stick to casual queries; they ask something and…
This post is part of the T4p Series. In the previous post, I had discussed the engulfing pattern. In this post, we will discuss Moving Averages. What Is Moving Average Moving Averages are one of the most widely used indicators. They smooth out price fluctuations by calculating the average price over a specific number of periods, creating a trend-following line that updates as new data becomes…
Introduction Cloudflare s Captcha solutions are one of the biggest hurdles Python developers usually face while writing a web scraper. Cloudflare offers various solutions like bot detection, CAPTCHA challenges (including the newer Turnstile verification), and IP blocking to prevent automated website access for data retrieval. These protections often result in Verify You Are Human checks, 403…
This post is part of the GenAI Series. In the previous post of the GenAI series, I built an adaptive dashboard using Claude APIs. In this post, I’ll introduce the concept of function calling and show how we can leverage it to build a crypto assistant that generates RSI-based signals by analyzing OHLC data from Binance. What is OpenAI Function Calling Function calling in OpenAI s API lets the model…
This post is part of the T4p Series. In the previous post, I discussed the Hammer Pattern. So far, we have been writing everything from scratch to detect a certain pattern. However, there s an amazing library available that has done all the heavy lifting on our behalf and provides easy-to-use interfaces to detect patterns. I will be using the pandas-ta library for this purpose. For certain…
This post is part of the GenAI Series. In my previous post, I introduced OpenAI s image APIs and used them to create avatars. Today, I’m diving into another LLM service, ClaudeAI, which has gained traction for its speed and sharp analytical responses. I asked Claude to brainstorm ideas for my next blog post about itself. Among many fantastic suggestions, I chose Customer Behavior Analysis. Finding…
Last night, I started feeling unwell during a company meeting. As the meeting progressed, I felt cold and began shivering. By the time it ended, the shivering had intensified. Even with socks on, I couldn’t warm up. I went to bed around 2 a.m. but had to get up multiple times to use the bathroom. I didn’t want to disturb my wife, but eventually, I needed medicine. She gave me Panadol and some…
If you’ve ever felt curious about collecting data straight from websites—but instantly thought, “This sounds way too complicated!”—then you’re in for a treat. Web scraping, contrary to popular belief, can be simple, efficient, and even fun… especially if you have the right tools in your arsenal. With just a few lines of Python code and an amazing third-party service like Crawlbase, you can…
This post is part of the T4p Series. In the previous post, we discussed creating your custom signal generation pattern. In this post, we will discuss a famous candlestick pattern called the Hammer pattern. We will discuss the pattern, what it is all about, and how it helps traders to earn money. Introduction A Hammer is a single candlestick pattern that forms during a downtrend and is…
This post is part of the GenAI Series. So far in the series, we have created AI apps that generate text. In this post, I will introduce OpenAI s image generation APIs, which can convert a textual prompt into an image and perform many other tasks related to images. I am going to make an app called AvatarAI. It will generate an avatar based on different parameters. Avatars are very common in the…
As the world s leading e-commerce platform, Amazon not only provides consumers with a seamless and reliable one-stop shopping experience but also serves as a critical data aggregation hub. Its vast repository of product information enables sellers to perform in-depth market research and develop effective sales strategies. How to integrate a substantial amount of data in a structured way to give…
This post is part of the T4p Series. In the previous post, I introduced you to Candlestick patterns, explaining what they are and discussing a couple of well-known patterns and their implementation in Python. We will be discussing further famous patterns in coming posts but here we will learn how you can come up with your own candlestick patterns and implement them in Python. Ultimately, we will…
In this guide, we’re going to demonstrate how to write and run the simplest script for tracking Ethereum wallet balance with GetBlock’s RPC API. What is Token Ownership? Token ownership is just a digital version of holding an asset. It is similar to holding stocks, currencies, or commodities like gold or silver. Each token is linked to an account (or wallet address), and the balance of tokens in…
This post is part of the GenAI Series. In the previous post, I discussed creating a recipe generator AI app in PHP using OpenAI APIs. In this post, I will explain how to use Google s Gemini LLM APIs to create another text-based AI app: an AI cover letter generator. Let s dive in! If you are in a hurry, you may check the demo video below: I introduced you to Google s LLM API recently. At that time,…
This post is part of the T4p Series. In the previous post, I briefly introduced candlesticks and how to detect a bearish and bullish candle in Python. In this post, we are going deeper, discussing candlestick patterns, what they are all about, and how to detect and represent them in Python Introduction As you learned in the previous post, there are mainly two types of candles: Bearish and Bullish.…
This post is part of the GenAI series. Alright, so the first text-based GenAI app that I am going to build is actually an AI-based recipe generator in PHP Laravel using OpenAI APIs. The app will ask about the ingredients and cuisine type and will generate a recipe for you. If you are in a hurry, you can watch the demo of the app below: To build this app, you will need to install Laravel and…
This post is part of the T4p Series. In this post, we will briefly discuss candlesticks, their basics, types, and how you can use OHLC data to identify them. I ll aim to keep it short and to the point. What is a CandleStick Candlesticks are graphical representations of price movements in financial markets, typically showing the opening, closing, high, and low prices for a specific time period.…
This post is part of the GenAI Series The only way we can interact with an LLM model is by passing an instruction to retrieve a response. That instruction is called a prompt. In this post, we are going to discuss what a prompt is and what prompt engineering entails What is a Prompt A prompt is simply the instruction or question you give to an AI or language model to get a response. Think of it as…
This post is part of the T4P Series. In this post, we will be discussing OHLC data. OHLC is the abbreviation of Open, High, Low, and Close. We will discuss its working, its importance, and how to access it. So let s start. What is OHLC Data OHLC data is a common way to represent the price movement of an asset, whether it s a stock, cryptocurrency, or commodity, during a specific time frame (like…
So, I am starting this GenAI series where I will share insights related to GenAI and large language models (LLMs). This is the first post, where I’ll discuss what LLMs are, how they work, and other related topics. What are Large Language Models Large Language Models, or LLMs, are a type of AI that can understand and generate human-like text. They’re the technology behind smart chatbots and writing…
I am starting a new series, Trading for Programmers (T4P), where I will cover topics related to trading and how programmers can leverage their existing skills. This is the first post in the series. Why Programmers Should Explore Trading Before diving into trading, it s important to understand why programmers should consider getting into it, even if they aren t particularly fond of trading. Trading…
There was a time when I effortlessly wrote multiple blog posts each month, a practice that continued for years. However, for the last two years, I ve been struggling to write anything. It s not that I haven t had anything to write about—look, this blog is a platform where I share whatever I learn. I ve written on various topics in the past. It s not like I haven t done anything new in the last two…
Have you ever wondered how to pull out useful information from websites without the hassle? BeautifulSoup is your go-to tool for scraping HTML data effortlessly. In this article, we ll walk you through the basics of web scraping using BeautifulSoup. No prior experience is needed! With its simple syntax and straightforward approach, you ll quickly grasp the essentials of parsing HTML and extracting…
Earlier I had discussed using OpenAI Embeddings API to come up with a product recommendation system. In this post, I am going to discuss Assistant APIs, The APIs OpenAI provided to integrate custom GPTs. I am going to create a blog title generator in Flask that will be generating blog titles in the tech/gadget space. In case you are in a hurry you may want to watch the demo video of it: What is a…
Earlier I had written a post about using OpenAI APIs to create a stock sentiment analysis by feeding news to GPT models. In this post, I am going to introduce the concepts of Word Embeddings or Embeddings in general. I am going to write a product recommendation system using OpenAI embeddings API that consumes product-related datasets from Kaggle. If you are in hurry or not interested in technical…
Introduction Chatbots are essential tools because they make communication between people and technology much easier. These clever programs can answer questions, provide helpful information, and even assist with tasks. In various fields like real estate, chatbots play a crucial role by engaging with potential clients, enhancing user experience, and helping businesses capture valuable leads. They re…
Introduction Earlier I gave you an overview of how you can you GPT APIs to build a stock sentiment analysis system. In this post, I am going to introduce you to Google Bard, Google s answer to OpenAI s chatGPT. Bard has been around for a few months but they recently offered APIs to access their LLM. Initially, they introduced PaLM APIs but very recently they have offered Gemini Pro and Gemini Pro…
This post is the part of trading series. In the past, I gave you a brief intro to Ta-Lib and how it can be used in technical analysis, in this post, I am going to discuss how you can RSI indicator to generate buy or sell signals in Python by using the TA-Lib library. Before I write code about the implementation, let s discuss a bit about signal generation and RSI. What Are Signals In the world of…
A step by step guide how you can automate and schedule your Facebook Page posts using Facebook Graph API in Python The post Automate Your Recipe Posts on Facebook Page with Python first appeared on Adnan's Random bytes .
On-chain data analysis involves studying the information recorded on a blockchain to gain insights into transaction patterns, market trends, and network behavior. By examining the data stored on the blockchain, analysts can uncover valuable information about user behavior, market sentiment, and the overall health of a blockchain network. In this post, I am going to discuss some basics about…
In the last post of the scraping series, I showed you how you can use Scraper API, an online data extractor to scrape websites that use proxies hence your chance of getting blocked is reduced. Today I am going to show how you can use Scraper API to scrape websites that are using AJAX to render data with the help of JavaScript, Single Page Applications(SPAs), or scraping websites using frameworks…
ChatGPT is a large language model developed by OpenAI that has gained immense popularity for its ability to generate human-like text responses to prompts. With its advanced natural language processing capabilities, ChatGPT has become a powerful tool for a variety of applications, including sentiment analysis. By analyzing text data and identifying the underlying sentiment, ChatGPT can provide…
Image Source What Is Application Security? Application security is the practice of protecting computer systems and applications from threats and vulnerabilities. This includes measures to prevent unauthorized access, modification, use, destruction, disruption, or disclosure of an application or its data Application security is important because applications are often the primary targets of cyber…
What Is Synthetic Data? Synthetic data is machine-generated data based on real-world data. It requires building a machine learning (ML) model to capture the patterns in the original, real data before generating new synthetic data based on these patterns. The generated data accurately represents the original data s statistical distributions, patterns, and properties. Synthetic data is useful for…
In my first post about Neo4j, I explored Python modules and their dependencies. Now in this post, I am discussing how you can find the relationship between medicines, their ingredients, and their classification. But why did I choose this dataset in the first place so here is the background Background: Currently, there is a shortage of Panadol in Pakistan, a very famous brand to cure headaches and…
I wrote about ScrapingBee a couple of years ago, where I gave a brief intro about the service. ScrapingBee is a cloud-based scraping service that provides both headless and lightweight, typical HTTP request-based scraping services. Recently, I discovered that they are providing some cool features that other online services are not providing as such. What are those features? I thought to explore…
In this post, I am going to discuss RocksDB. RocksDB is an embeddable persistent key-value store system developed by Facebook. It was originally forked from LevelDB which was created by Google. According to Wikipedia: RocksDB is a high performance embedded database for key-value data. It is a fork of Google s LevelDB optimized to exploit many CPU cores, and make efficient use of fast storage, such…
Image Source What is Laravel? Laravel is a free and open source PHP framework that provides a set of tools and resources for building PHP applications. It is known for its ease of use, provides extensive features and a complete ecosystem of packages and extensions. For example, it provides useful functions like token based authentication, unit testing, and file upload out of the box Laravel…
Image Source Guest Post Cloud computing will continue to grow in 2022. Gartner predicts that global end-user spend on the cloud will grow by 20% in 2022 to reach $600 billion by 2023. The largest spending category is Software-as-a-Service (SaaS), followed by Platform-as-a (PaaS) and Infrastructure as a Service (IaaS). After reading this article, you will understand the state of cloud computing…
This post is part of trading series. In this tutorial, I am going to discuss TA-Lib, a technical analysis library for Python apps. Before I move on and discuss how you can do technical analysis in Python, allow me to discuss what technical analysis is and how it helps to make a decision about whether you buy an asset, sell it, or hold it. What is Technical Analysis From Investopedia: Technical…