Posts

Vector Search

Image
  Hitch a Ride on the Vector Search Express! (This blog post was entirely generated by chatGPT but it makes for a really interesting read!) Hello, and welcome to my blog! Buckle up, because today, we're going to explore the exhilarating world of vector search. Don't worry, I know "vector search" sounds like it was dreamt up by a mad scientist at midnight, but trust me, it's much simpler than it sounds. I promise not to drown you in geek-speak. So, think of vector search like this: you're a mechanic looking for a missing bolt in a garage packed with parts. The bolt represents the data you need, the garage is your database, and vector search is the superpowered magnet that makes finding that bolt a cinch. The 'Vector Search' Engine In non-nerd terms, vector search is a type of search that works not just by looking at the data's exact match, but also at its context . So, instead of just finding a bolt, it can find a bolt that fits a '67 Ford Musta...

Quantum Computing

Image
  The above complicated looking image is that of a Quantum Computer. Quantum computing is a new field that is based on the principles of quantum mechanics. While classical computers use bits that can be either 0 or 1 to store and manipulate data, quantum computers use quantum bits or qubits, which can exist in a superposition of both 0 and 1 states simultaneously. This property of qubits allows quantum computers to perform certain types of calculations much faster than classical computers. But how exactly do quantum computers work? In this blog post, we'll take a closer look at the key components of a quantum computer and how they work together to perform quantum computations. Qubits As mentioned earlier, qubits are the basic building blocks of a quantum computer. They are similar to classical bits in that they can store and manipulate information, but they have the added property of being able to exist in a superposition of both 0 and 1 states simultaneously. There are many diffe...

Quick post about Terraform

Image
Terraform w/ OpenStack provider It's been a while since I posted to this blog so thought I'd revive it by putting up a quick update on what I've experienced with Terraform using the OpenStack provider recently. At work, I've been the owner of the deployment of FortiSwitch Cloud in new regions. The platform that the application is running on is Kubernetes which itself is running on VMware Integrated OpenStack (VIO). We might discuss them in further detail in future posts.  One of the steps in the deployment entailed creating a new network in OpenStack (project network specifically, you can read more about OpenStack networking here ). I tried creating a network by defining a Terraform Resource block, a simplified version is shown below: resource "openstack_networking_network_v2" "network_1" { name = "network_1" admin_state_up = "true" } resource "openstack_networking_subnet_v2" "subnet_1...

Quick post on Make tool

Image
Make Tool Introduction If you've ever installed software for a Unix-based system by compiling from source, you would have run commands such as 'make compile'. Make is a build automation tool that automatically builds executable programs and libraries from source code by reading files called Makefiles. Let's look at how it works. Simple Example Fig. 1 - Basic Example Code Snippet Here are the key points: We start by creating a ' Makefile ' in the directory.  A Makefile has recipes that use the prerequisites to make the target . target: prerequisites <TAB> recipe We can run the 'makefile' by running the 'make' command at the command line. The make command runs the default target which is also called the 'default goal'. The prerequisites can be files or just a name for recipes, in which case they are called " phony targets ". A few more points to keep in mind: As we can see from the example in fig. 1, the recipe, 'echo ...

Quick post about using Docker for setting R7 Repositories on an R8 VM

Image
A repository is much like a library for the operating system. Had a fun task at work today so wanted to write a quick post about it. A linux system receives its OS and software updates from a location called the 'Repository', for an Operating System such as CentOS or Ubuntu, the repositories come pre-listed with the operating system and there's no addition work involved. Fig. 1 - Ubuntu repolist However, for the Red Hat operating systems which are paid, you need to manually register the system to the Red Hat customer portal and then need to attach a subscription. The command to do so looks like the following:  subscription-manager register --username <username> --password <password> --auto-attach Doing so will give us access to the repositories from which we can install our packages and update existing ones. As you can imagine, different versions of Red Hat would have different repositories and they wouldn't be interoperable. If any of you have tried install...

What I've learned in Java up to Nov' 7th '22

Image
As mentioned in the previous blog post, I started learning Java just to be able to understand solutions to Leetcode problems & solutions discussed in 'Cracking the Coding Interview' book. This blogpost is going to focus a little less on being didactic and more about me just rambling on about what I've learned in the past few weeks. Part 1 - The Basics J ava was developed by  James Gosling  at  Sun Microsystems  and  released in May 1995 according the Java page on Wikipedia. To start writing and developing program in Java, we will first need the JDK ( Java Development Kit)  which provides all the tools, executables, and binaries required to compile, debug, and execute a Java Program.  JDK is a platform-specific software and that’s why we have separate installers for Windows, Mac, and Unix systems.  Java versioning is kinda weird (much like Samsung's S series) but what we need to know is that the long-term supported versions are 8, 11, and 17. I...

Back after a 3 month hiatus! - What's coming soon.

Image
Here's why I haven't been able to post to this blog for the past three months: September - Focussed on learning DSA for coding and got caught up with work. Also was excited about the upcoming trip and was planning/doing purchases. October - Took the month off to travel back home after 4 years. Arrived in Canada in September 2018 as a student and now went back home as a working professional with experience. It was a very good visit and got to visit family after a long time. November - This month, I'm focusing on learning Java. I have the silliest reason for learning this programming language, I picked up this book called Cracking The Coding Interview by Gaayle McDowell and all the solutions to the coding DSA problems are in Java. Also, on the Leetcode website, when you look at the official solutions, more often than not, the solutions are in Java there as well.  I also figured Java would be a good language to learn for the following reasons: 1. Since Java is an Object-o...