Skip to main content

Posts

Visualising Your Google Location History

Step 1: Download Your Google Location History First, you need to download your location history data from Google. Follow these steps to get started: Go to Google Takeout : Visit Google Takeout to begin the process. Select Location History (Timeline) : Make sure to select the “Location History (Timeline)” option. 3. Export Your Data : Google will compile your data, which might take some time. You will receive an email once your data is ready to be downloaded. 4. Download the Data : Follow the instructions in the email to download your data. Step 2: Extract the Downloaded File Once you’ve downloaded your data, locate the file and extract it. The location data will be in a JSON file at the following path: takeout-202XXXXXTXXXXXXZ-001/Takout/Location History (Timeline)/Records.json Step 3: Convert JSON to CSV To make the location data usable, we need to convert it from JSON to CSV format. Although you can convert it to KML or geoJSON formats, we’ll focus on CSV for this post. 1.  Clone th

Unleashing the Power of Personal Photo Management with PhotoPrism

As an avid photographer and a lover of memories, I've always struggled with managing and organizing my ever-growing collection of digital photos. It was a constant battle to find specific photos, especially as I often forget to tag or rename them. That's when I stumbled upon PhotoPrism , a powerful open-source photo management tool that has revolutionized the way I interact with my photo library. In this blog post, I'll guide you through the process of installing and using PhotoPrism, sharing my personal use cases along the way. Whether you're a professional photographer, a hobbyist, or simply someone passionate about preserving memories, PhotoPrism is a game-changer. Getting Started To start our journey with PhotoPrism, the first step is to install it. Head over to the official repository on GitHub and follow the installation instructions provided there. Don't worry, the installation process is well-documented and straightforward, making it accessible even for no

A Guide to Generating Fantasy Novels with GPT-Author

GPT-Author is an innovative tool that allows users to generate original fantasy novels using GPT-4 and the Stable Diffusion API. With just an initial prompt and the desired number of chapters, GPT-Author can create a complete novel in just a few minutes and output it as an EPUB file. In this blog post, we will explore how to run and use this tool to generate your very own fantasy novel. How it Works GPT-Author uses artificial intelligence to generate a list of potential plots based on a given prompt. It then selects the most engaging plot, improves upon it, and extracts a title. Next, it generates a detailed storyline with a specified number of chapters and improves the storyline. Each chapter is then individually written by the AI, following the plot and taking into account the content of previous chapters. Finally, a prompt to design the cover art is generated, and the cover is created. The novel is then compiled into an EPUB file for users to download and read. Usage GPT-Author can

PrivateGPT: A Step-by-Step Guide to Installation and Use

In this blog post, we will explore the ins and outs of PrivateGPT, from installation steps to its versatile use cases and best practices for unleashing its full potential. What is PrivateGPT? PrivateGPT is a cutting-edge program that utilizes a pre-trained GPT (Generative Pre-trained Transformer) model to generate high-quality and customizable text. Built on OpenAI's GPT architecture, PrivateGPT introduces additional privacy measures by enabling you to use your own hardware and data. This ensures that your content creation process remains secure and private. Installation Steps Before we dive into the powerful features of PrivateGPT, let's go through the quick installation process. PrivateGPT is a command line tool that requires familiarity with terminal commands. Let's get started: 1. Clone the Repository: Begin by cloning the PrivateGPT repository from GitHub using the following command: ``` git clone https://github.com/imartinez/privateGPT.git ``` 2.Navigate to the Direc

Terraform accessing data from maps and list in the variable

In this post, we will discuss a use case where we want to access the variable value which is part of the list or the map. let’s try to understand the use case with an example: resource "aws_instance" "myec2" { ami = "ami-082b5a644766e0e6f" instance_type = <INSTANCE_TYPE> } variable "list" { type = list default = ["t2.nano", "t2.micro", "t2.medium"] } variable "types" { type = map default = { dev = "t2.nano", int = "t2.micro", prod = "t2.medium" }, } here we want to assign a value for the instance_type from either variable list or from variable types. Variable list is a list type and variable type is a map type. First, let’s use the list variable. To access the value from the list variable we will use the position. We want to assign let’s say t2.micro in that case we want position 1. resource "aws_instance&

Terraform different approaches for variable assignment.

In this post, we will discuss different approaches to variable assignment in Terraform. Here are the different approaches: Variable Defaults Command-line flags From a file Environment variables We will go into detail one by one and see examples of using them. 1. Variable Default In this approach, we create a variable.tf file and define a variable and assign a default value to a variable. variable "instance_type" { default = "t2.micro" } This is referred to as variable default if no value is mentioned for the variable then the default value will be assigned. Here comes the question what will happen if we don’t provide a default value? Let’s try it out. We removed the default value and now our variable looks like this. variable "instance_type" {} And do a terraform plan terraform plan You will get an output like this: var.instance_type Enter a value: so if you have not defined a default variable terraform will ask you for the value from the command lin

Using Terraform Variables

Introduction Terraform variables are a central source from which values can be imported. In this way terraform variables are helpful in creating and managing centrally controlled reusable values. Let’s see how we can use the terraform variables to write clean code and avoid repetition using reusability. We are creating an AWS security group to demonstrate the variable's usage. resource "aws_security_group" "sg" { name = "demo-security-group" ingress { from_port = 443 to_port = 443 protocol = "tcp" cidr_blocks = ["116.30.45.50/32"] } ingress { from_port = 80 to_port = 80 protocol = "tcp" cidr_blocks = ["116.30.45.50/32"] } ingress { from_port = 53 to_port = 53 protocol = "tcp" cidr_blocks = ["116.30.45.50/32"] } } Take a not at cidr_blocks we are repeating t