Andrew
Andrew is a visionary software engineer and DevOps expert with a proven track record of delivering cutting-edge solutions that drive innovation at Ataiva.com.
As a leader on numerous high-profile projects, Andrew brings his exceptional technical expertise and collaborative leadership skills to the table, fostering a culture of agility and excellence within the team. With a passion for architecting scalable systems, automating workflows, and empowering teams, Andrew is a sought-after authority in the field of software development and DevOps.
When not pushing the boundaries of what’s possible with code, Andrew shares his knowledge and insights through his writing, contributing to the growth and success of Ataiva.com’s projects.
Optimizing the Two Sum Problem: Techniques, Trade-offs, and Performance
December 13, 2024
The Problem Statement One of the classic algorithm problems frequently encountered in interviews is the Two Sum problem.
Read More
How to Migrate Docker Repositories to a New DockerHub Username
November 4, 2024
If you’ve ever tried to rename your DockerHub username, you know there’s no direct way to do it.
Read More
Python 3.13 No-GIL Mode: How to Unlock True Multi-Threading and Boost Performance
November 1, 2024
Python 3.13 has quietly introduced a game-changing experimental feature: no-GIL mode!
Read More
How to Create Your Own Programming Language
September 19, 2024
A programming language is a system of communication and computation used to control a computer.
Read More
Poetry vs Pip: Comparing Python Dependency Management and Packaging Tools
September 13, 2024
Poetry and Pip are two popular tools for managing Python dependencies and packaging Python projects.
Read More
A Complete DevOps Guide for Beginners
September 5, 2024
Are you looking to improve your software development workflow and increase efficiency?
Read More
Creating a Docker Alternative in Python
August 26, 2024
Docker is a popular containerization platform that allows developers to easily package applications into lightweight containers that can run isolated on any system.
Read More
Why Different Programming Languages Need to Exist
August 26, 2024
Programming languages allow us to communicate with computers by writing code.
Read More
The Future of AI in Software Development: What to Expect in 2025
August 8, 2024
As we stand on the cusp of a new era in technology, the integration of Artificial Intelligence (AI) into software development is poised to revolutionize the way we create, maintain, and evolve digital solutions.
Read More
Uptime Monitor
July 30, 2024
Welcome to Uptime Monitor, your essential tool for ensuring the reliability and availability of your websites and services.
Read More
Website Analytics
July 30, 2024
Welcome to Website Analytics, your ultimate solution for real-time website analytics.
Read More
Learn Concurrency in Go
July 22, 2024
Concurrency in Go is one of its most powerful features, designed to make it easy to write concurrent programs.
Read More
Learn Go as a DevOps Engineer
July 18, 2024
Go, also known as Golang, is an open-source programming language designed for simplicity, efficiency, and reliability.
Read More
Developing a Custom Kubernetes Controller in Go
June 20, 2024
A custom Kubernetes controller manages custom resources within a Kubernetes cluster, allowing for extended functionalities and custom automation.
Read More
Creating a Monitoring Agent in Go
June 18, 2024
Building a monitoring agent involves collecting metrics from a system and sending them to a monitoring server or displaying them on a dashboard.
Read More
Building a CI/CD Pipeline Tool in Go
June 15, 2024
Developing a custom CI/CD pipeline tool in Go can help automate the processes of building, testing, and deploying applications.
Read More
GoFlood – A Powerful HTTP Load Testing Tool
June 2, 2024
What is GoFlood? GoFlood is a high-performance, concurrent HTTP load testing tool written in Go.
Read More
Everything you need to know to Master API Creation
May 31, 2024
Introduction to APIs An API (Application Programming Interface) is a set of rules and protocols that allows different software applications to communicate with each other.
Read More
How to AWS Assume Role and then revert to the previous role after
May 1, 2024
If you need to assume a role in AWS and then revert back to the previous role once complete, you can use the following snippet of code:
Read More
Essential Policies for Administering an AWS EKS Cluster
March 22, 2024
So, what policies does my role need to create an AWS EKS cluster and be the admin?
Read More
Show the Top 10 Largest Directories on Linux
March 13, 2024
If you need to see the top 10 largest directories on your Linux system, you can use the following command:
Read More
Retrieve the Latest Versioned Tag from AWS ECR in Bash
February 21, 2024
Managing Docker images in Amazon Elastic Container Registry (ECR) is a common task for many developers and DevOps practitioners.
Read More
How to install MySQL on AmazonLinux2023
January 29, 2024
If you are using Amazon Linux 2023 base-image, and you have tried to run yum install -y mysql, you will soon realize that it doesn’t work.
Read More
Run any version of Terrform using Docker
December 22, 2023
So our friend Docker comes around for another usecase. Run Terraform (any version) from Docker In this example, we will try and configure Terraform 1.
Read More
Select * to Show Database Table Sizes MariaDB
December 21, 2023
In database management, understanding the size of your tables is crucial for optimizing performance and ensuring efficient resource utilization.
Read More
The Future Prospects of DevOps in an AI World
November 20, 2023
Abstract DevOps has become an integral part of modern software development, emphasizing communication and collaboration between software developers and IT operations professionals.
Read More
Supercharge Your Code with Amazon CodeWhisperer
October 29, 2023
Amazon CodeWhisperer is a cutting-edge service that leverages advanced AI and machine learning to provide real-time code generation, recommendations, and security analysis.
Read More
A Deep Dive into Machine Learning Algorithms
October 28, 2023
Machine learning algorithms are the backbone of modern artificial intelligence. They enable computers to learn and make predictions or decisions without being explicitly programmed.
Read More
What is GitHub? A Comprehensive Guide from Basics to Advanced
October 27, 2023
GitHub is a platform that has revolutionized the world of software development, enabling individuals and teams to collaborate efficiently on projects of all sizes.
Read More
Connect IPv4 and IPv6 Networks Seamlessly with Amazon VPC Lattice
October 26, 2023
As the internet continues to grow, the transition from IPv4 to IPv6 has become more critical.
Read More
Building Event-Driven Architectures with Amazon EventBridge
October 25, 2023
In the realm of real-time data streaming applications, managing the routing and processing of events efficiently is a complex challenge.
Read More
Splitting Terraform Modules into Separate Git Repositories
October 24, 2023
In the world of Infrastructure as Code (IaC) , Terraform has emerged as a powerful tool for managing infrastructure resources.
Read More
Accelerating Machine Learning with SageMaker Jumpstart
October 22, 2023
Machine learning (ML) projects can be complex, time-consuming, and resource-intensive. Amazon SageMaker Jumpstart aims to change that by providing pre-built solutions, pre-trained models, and end-to-end ML capabilities.
Read More
Understanding the AWS Well-Architected Framework
October 19, 2023
The AWS Well-Architected Framework is more than just a set of best practices; it’s a blueprint for success in the cloud.
Read More
Mastering Advanced Networking in EKS and Kubernetes
October 16, 2023
Kubernetes has revolutionized container orchestration, and Amazon’s Elastic Kubernetes Service (EKS) is one of the most popular managed Kubernetes solutions available today.
Read More
How to Ignore SSL Certificates Globally in Git
October 14, 2023
In the world of software development, Git is an indispensable tool for version control.
Read More
Semantic Versioning with npm
October 13, 2023
Semantic Versioning, often referred to as SemVer, is a crucial convention within the Node.
Read More
Understanding Peer Dependencies in Node Modules
October 12, 2023
When working with Node.js and managing packages for your projects, you’re likely familiar with the dependencies and devDependencies sections in a package.
Read More
How to Programmatically get Amazon IP Ranges/CIDRs
October 11, 2023
Amazon Web Services (AWS) operates an extensive network infrastructure with a vast number of IP addresses and CIDR blocks.
Read More
The Ultimate Guide to Emacs: Mastering the Art of CLI Programming
October 10, 2023
In the realm of command-line interface (CLI) programming, Emacs stands as a legendary text editor, known for its immense power and unparalleled extensibility.
Read More
The Ultimate Guide to VI: Mastering the Art of CLI Programming
October 9, 2023
In the world of command-line interface (CLI) programming, efficiency is paramount.
Read More
AWS Assume to another role
October 8, 2023
OUT=$(aws sts assume-role --role-arn arn:aws:iam::0123456789:role/OrganizationAccountAccessRole --role-session-name test) export AWS_ACCESS_KEY_ID=$(echo $OUT | cut -d '"' -f 6 ) export AWS_SECRET_ACCESS_KEY=$(echo $OUT | cut -d '"' -f 10 ) export AWS_SESSION_TOKEN=$(echo $OUT | cut -d '"' -f 14 ) aws sts get-caller-identity
Read More
Programming Languages Series
October 2, 2023
1. Introduction Welcome to our Programming Languages Series! In this series, we’ll explore various programming languages, understand their purposes, provide code examples, and discuss when to use each one.
Read More
Docker Deep Dive Series
September 22, 2023
1. Getting Started In this first part of the series, we will kick things off by getting Docker installed and running on your system.
Read More
Machine Learning Mastery Series
September 13, 2023
Part 1. Introduction to Machine Learning Welcome to the Machine Learning Mastery Series, a comprehensive journey into the exciting world of machine learning.
Read More
Kubernetes Mastery
September 3, 2023
Part 1. Introduction Welcome to the Kubernetes Mastery Series! In this first part, we’ll set up a Kubernetes cluster using KinD (Kubernetes in Docker).
Read More
Managing Multiple Environments with Terraform Workspaces
September 2, 2023
Managing infrastructure across multiple environments such as development, staging, and production can be a daunting task.
Read More
Controlling and Understanding Parallelism Impact on the DAG
September 1, 2023
When working with large-scale infrastructure deployments, managing the provisioning and orchestration of resources efficiently becomes crucial.
Read More
How to add Payment Subscriptions with Stripe in Django
August 31, 2023
Integrating Stripe subscriptions into your Django site involves several steps. Here’s a high-level overview of the process.
Read More
Private Application Load Balancer for EKS in Terraform
August 30, 2023
Amazon Web Services (AWS) provides a powerful combination of services for building, deploying, and managing applications.
Read More
Kubernetes vs Docker Swarm for Container Orchestration
August 29, 2023
Container orchestration has become a cornerstone of modern application deployment and management.
Read More
Setting Comprehensive CI/CD Pipeline with Jenkins and Docker
August 28, 2023
In today’s dynamic software landscape, the fusion of Continuous Integration and Continuous Deployment (CI/CD) pipelines with robust tools like Jenkins and Docker has emerged as a cornerstone of efficient and reliable application delivery.
Read More
Navigating Microsoft Azure for Seasoned AWS Experts
August 27, 2023
In the ever-evolving landscape of cloud computing, two mammoth players, Amazon Web Services (AWS) and Microsoft Azure, have emerged as titans, offering an extensive array of services that cater to a diverse spectrum of business needs.
Read More
Navigating Google Cloud Platform (GCP) for AWS Experts
August 26, 2023
In today’s rapidly evolving landscape of cloud computing, Amazon Web Services (AWS) and Google Cloud Platform (GCP) have emerged as prominent contenders, furnishing an extensive array of services tailored to cater to the dynamic requirements of modern businesses.
Read More
Create a slug from a name in MySQL/MariaDB
August 25, 2023
How to create a slug from the name of an item in MySQL/MariaDB.
Read More
How to Get a List of Available Regions from AWS CLI
August 23, 2023
AWS (Amazon Web Services) is a prominent cloud service provider that offers a wide range of services to businesses and individuals worldwide.
Read More
[Solved] A Number After a Double Reversal in Python
August 22, 2023
The problem Reversing an integer means to reverse all its digits.
Read More
Common Issues and Mastering Effective Debugging Techniques
August 21, 2023
While Kubernetes offers a powerful platform for deploying containerized applications, managing complex clusters can sometimes lead to challenges and errors.
Read More
K8s CI/CD: GitOps with Jenkins, GitLab, Argo CD
August 20, 2023
Continuous Integration and Continuous Deployment (CI/CD) pipelines are fundamental to the success of Kubernetes deployments , enabling fast and reliable application delivery.
Read More
K8s Monitoring & Logging: Best Practices & Top Tools
August 19, 2023
Monitoring and logging are critical components of a successful Kubernetes deployment , providing insights into the health, performance, and behavior of your clusters and applications.
Read More
K8s Upgrades & Rollbacks Guide to Compatibility & Strategies
August 18, 2023
Keeping your Kubernetes cluster up-to-date is crucial for security, performance, and accessing the latest features.
Read More
K8s Pod Scheduling: Node & Pod Affinity Demystified
August 17, 2023
Efficient pod scheduling is essential to achieving high performance and resource utilization in a Kubernetes cluster.
Read More
Securing Kubernetes: Guarding Against Container Threats
August 16, 2023
Kubernetes has become the de facto platform for deploying containerized applications , revolutionizing software development.
Read More
K8s Cluster Performance: Resource Optimization Guide
August 15, 2023
Efficiently managing resources in a Kubernetes cluster is crucial to achieving peak performance and cost-effectiveness.
Read More
K8s Scaling Mastery: Manual, HPA & Metrics APIs
August 14, 2023
Kubernetes has revolutionized application deployment by providing a scalable and efficient container orchestration platform.
Read More
K8s Storage Demystified: Persistent Volumes & Classes
August 13, 2023
Kubernetes has become the go-to platform for deploying scalable, containerized applications.
Read More
K8s Networking: Pod Communication and Ingress Demystified
August 12, 2023
Kubernetes has revolutionized the way we deploy and manage containerized applications .
Read More
React State Balancing: A Guide to State Management
August 11, 2023
As React apps grow, managing shared and app-wide state can become challenging.
Read More
React + Node: Beginner's Guide to Full Stack Dev
August 10, 2023
React excels at building fast, dynamic frontends. Node.js shines for server-side APIs and microservices.
Read More
Optimal React Patterns: Beginner's Guide
August 9, 2023
As with any framework, React comes with its own set of best practices and optimal patterns.
Read More
Debugging React Apps: Beginner's Guide
August 8, 2023
Bugs are inevitable in complex React applications. Thankfully, React provides great tools to squash bugs quickly.
Read More
Advanced React Patterns: Compound Components & More
August 7, 2023
As React apps scale, you’ll want to structure components for greater reusability and composability.
Read More
React Animation Guide: Libraries and Techniques
August 6, 2023
Animation brings interfaces to life. Thankfully, React has great open source libraries for animation.
Read More
Testing React Apps: Beginner's Guide to TDD
August 5, 2023
Testing is crucial for ensuring React apps are stable and bug-free.
Read More
Data Fetched Fast - A Beginner's Guide to React Query
August 4, 2023
Fetching data in React often means using stale state and complex caching logic.
Read More
Forms Simplified, A Beginner's Guide to Managing React Forms
August 3, 2023
Forms are a common need for many React apps. However, managing form state and validation can be tricky.
Read More
Optimizing React Performance: Beginner's Guide
August 2, 2023
As React apps grow, you may notice performance starting to lag - sluggish interactions, choppy animations, janky scrolling.
Read More
State Management 101 - A Beginner's Guide to React State
August 1, 2023
State management is a crucial concept in React. State allows components to dynamically update UI based on data changes.
Read More
Accessible React Apps: Beginner's Guide to Accessibility
July 31, 2023
Accessibility is an important consideration when building modern web apps. React provides useful tools to make accessible, inclusive products.
Read More
Mystery Boxes - A Beginner's Guide to React Fragments
July 30, 2023
When returning multiple elements from a component’s render method, they must be wrapped in a single parent DOM node:
Read More
Unidirectional Data Flow in React: Beginner's Guide
July 29, 2023
A key advantage of React is its unidirectional data flow. This makes the flow of data predictable, and helps avoid unexpected side effects from data changing unexpectedly.
Read More
Event Handling in React: Beginner's Guide
July 28, 2023
Responding to user events is a crucial part of building interactive UIs.
Read More
Hooked on React - A Beginner's Guide to React Hooks
July 27, 2023
When React was first released, class components were the standard way to build complex UIs.
Read More
Lifting State in React: Beginner's Guide
July 26, 2023
As React apps grow in complexity, managing shared state between components can become tricky.
Read More
Looping in JSX with React Keys: Beginner's Guide
July 25, 2023
Looping over arrays to render lists of elements is a common need in React apps.
Read More
Conditional Rendering in React
July 24, 2023
In React apps, you’ll often need to render different UI components conditionally based on certain state.
Read More
Passing Data Between React Components with Props
July 23, 2023
One of React’s core concepts is reusability through composable components. Components allow splitting complex UI into separate, reusable pieces.
Read More
Fostering DevOps Learning Culture: Lifelong Learning
July 22, 2023
Introduction In the fast-evolving world of technology, where advancements and innovations are a constant, staying ahead of the curve is paramount for any DevOps team.
Read More
DevOps' Role in AI: Enhancing Intelligent Systems
July 21, 2023
Introduction The world of technology is witnessing a remarkable fusion of two transformative disciplines: DevOps and Artificial Intelligence (AI).
Read More
DevOps and Microservices: Scalable, Agile Software Delivery
July 20, 2023
Introduction In the fast-paced world of software development, two crucial methodologies have emerged as game-changers for modern development teams: DevOps and Microservices.
Read More
Nature-Inspired Problem Solving: Genetic Algorithms
July 19, 2023
Introduction Genetic Algorithms (GAs) and Evolutionary Computation (EC) are powerful optimization techniques inspired by the process of natural selection and evolution.
Read More
Python Dynamic Programming: Mastering Optimization
July 18, 2023
Introduction Dynamic programming is a powerful algorithmic technique that allows developers to tackle complex problems efficiently.
Read More
Python Reflection & Metaprogramming: Advanced Power
July 17, 2023
Introduction Python is a versatile programming language that offers powerful features and capabilities.
Read More
Kubernetes ReplicaSets: Scalability & Fault Tolerance
July 16, 2023
Introduction In Kubernetes, ReplicaSets are a vital resource that enables scalable and fault-tolerant deployments of pods.
Read More
Kubernetes Namespaces: Isolation & Resource Management
July 15, 2023
Introduction In Kubernetes, namespaces provide a powerful abstraction that allows you to partition and isolate resources within a cluster.
Read More
K8s Cluster Resiliency: Advanced High Availability
July 14, 2023
Introduction In today’s technology landscape, ensuring the resiliency and high availability of Kubernetes clusters is crucial for maintaining the availability of applications and business continuity.
Read More
K8s Networking Mastery: Advanced Cluster Communication
July 13, 2023
Introduction Kubernetes has revolutionized container orchestration, enabling the efficient management of complex applications.
Read More
Blue-Green Deployments in Kubernetes: Production & DR
July 12, 2023
Introduction In today’s fast-paced and highly competitive digital landscape, organizations strive to deliver seamless and uninterrupted services to their customers.
Read More
AWS Production-DR Failover: Advanced Strategies
July 11, 2023
Introduction Implementing failover between a production (Prod) account and a disaster recovery (DR) account is a critical aspect of ensuring high availability and business continuity in AWS.
Read More
Python Context Managers Mastery: Resource Management
July 10, 2023
Introduction Python context managers provide a convenient and reliable way to manage resources and ensure proper setup and teardown actions.
Read More
Python Decorators Mastery: Advanced Usage Guide
July 9, 2023
Introduction Python decorators are a powerful feature that allows you to modify the behavior of functions or classes dynamically.
Read More
Python's Yield Mastery: Advanced Usage Guide
July 8, 2023
Introduction Python’s yield statement is a powerful feature that allows you to create generator functions.
Read More
Python: Unleashing the Power of Simplicity and Versatility
July 7, 2023
Getting Started with Python Python is a versatile and popular programming language known for its simplicity and readability.
Read More
Python's Advanced Features: Empowering Programmers
July 6, 2023
Introduction: In the vast realm of programming, Python stands tall as a language that caters to developers of all levels.
Read More
Python's Yield: Unleashing Generator Magic
July 5, 2023
Introduction Python, being a versatile language, offers numerous tools and features to streamline our coding experience.
Read More
GitOps Rising: Transforming DevOps for Streamlined Delivery
July 4, 2023
Introduction In today’s fast-paced digital landscape, where businesses strive to deliver high-quality software products with agility and efficiency, DevOps practices have become indispensable.
Read More
Enhancing Security: How DevOps Mitigates Cyber Threats
July 3, 2023
Introduction In today’s digital landscape, where cyber threats are prevalent and evolving, organizations must adopt robust security measures to safeguard their sensitive data and systems.
Read More
Site Reliability Engineering (SRE) in Modern Organizations
July 2, 2023
Introduction In today’s fast-paced and technology-driven world, organizations heavily rely on digital services to deliver their products and serve their customers.
Read More
DevOps & DevSecOps: Bridging Dev-Security Gap
July 1, 2023
Introduction In today’s fast-paced digital landscape, where software development cycles are becoming increasingly rapid and security threats are ever-present, organizations are seeking effective ways to align development and security practices.
Read More
Unleashing the Power: Lambda - A Killer Feature in AWS
June 30, 2023
In the world of cloud computing, Amazon Web Services (AWS) has long been a dominant player, providing a comprehensive suite of services to meet the diverse needs of businesses.
Read More
Python vs Java Performance: Programming Powerhouses
June 29, 2023
In the vast landscape of programming languages, Python and Java have emerged as titans, offering robust solutions for a wide range of applications.
Read More
Teach me the Basics of Data Science in Python
June 28, 2023
An overview of Data Science in Python This is an overview of the basics of data science in Python.
Read More
How to Share a VPC from one AWS Account to Another
June 27, 2023
To share a Virtual Private Cloud (VPC) from one AWS account to another, you can use the AWS Resource Access Manager (RAM) service.
Read More
[Solved] Set CloudWatch Logs role ARN in account settings
June 26, 2023
The error message you mentioned, “CloudWatch Logs role ARN must be set in account settings to enable logging,” typically occurs when you’re trying to enable logging for an AWS service that requires a CloudWatch Logs role, but the necessary role hasn’t been set up or configured correctly in your account settings.
Read More
How to Create CloudFormation with Multiple Files
June 25, 2023
To create a CloudFormation (CFN) stack with multiple files, you can follow these general steps:
Read More
Teach me Hashicorp Vault
June 24, 2023
Introduction to Hashicorp Vault HashiCorp Vault is a popular open-source tool designed for securely storing and managing secrets, such as API keys, passwords, certificates, and other sensitive information.
Read More
How to Generate Terraform using a Bash Shell script
June 23, 2023
To generate Terraform code using a Bash shell script, you can utilize Python within the script.
Read More
How to Generate Terraform using Python
June 22, 2023
To generate Terraform code using Python, you can utilize the power of the language and various libraries to dynamically create and manipulate the Terraform configuration files.
Read More
Make EKS cluster private with NodeGroup access
June 21, 2023
The Theory To make an Amazon Elastic Kubernetes Service (EKS) cluster private and allow nodes to join through a node group, you need to follow a few steps.
Read More
Which is the best language to use in DevOps
June 20, 2023
In DevOps, there isn’t a single “best” language that universally applies to all situations.
Read More
How is Ansible different from Chef or Puppet
June 19, 2023
Ansible, Chef, and Puppet are all popular configuration management and automation tools, but they differ in their approach and architecture.
Read More
Teach me the basics of Ansible
June 18, 2023
Ansible is an open-source automation tool that allows you to manage and configure computer systems.
Read More
How do you create an EKS cluster using CloudFormation
June 17, 2023
The steps to achieve this To create an Amazon Elastic Kubernetes Service (EKS) cluster using CloudFormation, you can follow these steps:
Read More
How to connect an API Gateway to Inline Lambda in Terraform
June 16, 2023
To connect an API Gateway to an inline Lambda function using Terraform, you can follow these steps:
Read More
API Gateway to Inline Lambda in CloudFormation
June 15, 2023
To connect an API Gateway to an inline Lambda function using CloudFormation, you can follow these steps:
Read More
How to connect an API Gateway to Lambda in CloudFormation
June 14, 2023
To connect an API Gateway to a Lambda function using CloudFormation, you can follow these steps:
Read More
Create DynamoDB Table & Add Items using Python 3 from Lambda
June 13, 2023
To create a DynamoDB table and add items to it using Python 3 from AWS Lambda, you can use the AWS SDK for Python, also known as Boto3.
Read More
How to create a Site-to-Site VPN in Boto3 Python
June 12, 2023
To create a site-to-site VPN using the Boto3 library in Python, you can utilize the boto3.
Read More
How to create a Site-to-Site VPN in Terraform
June 11, 2023
To create a site-to-site VPN using Terraform, you can use the aws_vpn_gateway and aws_vpn_connection resources from the AWS provider.
Read More
How to create a Site-to-Site VPN in CloudFormation
June 10, 2023
To create a site-to-site VPN (Virtual Private Network) using AWS CloudFormation, you can use the AWS::EC2::VPNGateway and AWS::EC2::VPNConnection resources.
Read More
How to AWS sts assume role in one command - without jq
June 9, 2023
The issue - what it takes to assume a role To assume an AWS role in the CLI, you will have to do something like this:
Read More
How to create a Lambda in CloudFormation
June 7, 2023
You can create a Lambda in CloudFormation as follows: Option 1 - Inline code Resources: MyLambdaFunction: Type: AWS::Lambda::Function Properties: FunctionName: MyLambdaFunction Runtime: python3.
Read More
How to create a Lambda in Terraform
June 7, 2023
To create an AWS Lambda function using Terraform, you need to define the necessary resources in a Terraform configuration file.
Read More
How to create a Bastion server in Terraform
June 6, 2023
To create a Bastion server using Terraform, you need to define the necessary resources in a Terraform configuration file.
Read More
How to create a Bastion server in CloudFormation
June 5, 2023
To create a Bastion server using AWS CloudFormation, you need to define the necessary resources in a CloudFormation template.
Read More
How to you create a Cross Account Role in Terraform
June 4, 2023
To create a cross-account role in Terraform, you need to perform the following steps:
Read More
How to you create a Cross Account Role in CloudFormation
June 3, 2023
To create a cross-account role in CloudFormation, you can follow these steps:
Read More
How to create Public and Private Subnets in CloudFormation
June 2, 2023
To create public and private subnets in AWS CloudFormation, you can use the AWS CloudFormation Template Language (CFT) to define your network configuration.
Read More
How to create Public and Private Subnets in Terraform
June 1, 2023
To create public and private subnets in Terraform, you can use the AWS provider to define your network configuration.
Read More
Create Internet Gateway & Assign to EC2 in CloudFormation
May 31, 2023
To create an Internet Gateway and associate it with an EC2 instance using AWS CloudFormation, you can follow these steps:
Read More
Create Internet Gateway & Assign to EC2 in Terraform
May 30, 2023
To create an Internet gateway and assign it to an EC2 instance using Terraform, you can follow these steps:
Read More
How to configure Terraform to use Local Providers from Nexus
May 29, 2023
If your organization has blocked registry.terraform.io and has instead downloaded the provider binaries to Nexus, then you can do the following to still make your Terraform execute correctly.
Read More
[Solved] Fargate Can't Read Secrets from Secret Manager
May 28, 2023
If you’re running a Fargate task and it’s not able to read secrets from AWS Secret Manager, there are a few things you can check:
Read More
Golang vs Python: The Ultimate Battle in DevOps
May 27, 2023
In the world of DevOps, two programming languages are often pitted against each other: Golang and Python.
Read More
Why DevOps and Python are Amazing Together
May 26, 2023
In today’s software development world, DevOps and Python are two of the most essential elements for building high-quality software.
Read More
Python & DevOps: Transforming Software Development
May 25, 2023
Introduction: In recent years, the software industry has witnessed a remarkable shift towards DevOps and Python.
Read More
DevOps: The Ultimate Secret Weapon for High-Tech Success
May 24, 2023
DevOps has been a buzzword in the tech industry for some time now.
Read More
How to Deploy a Java Application in AWS ECS using Terraform
May 23, 2023
In order to deploy a Java application into AWS ECS (Elastic Container Service) using Terraform, we need to consider a few different things.
Read More
How to set the Hostname on a Linux server with Terraform
May 22, 2023
If you need to set the hostname on a linux server, and you are using Terraform, then you can do the following:
Read More
What are the different types of AWS API Gateway Protocols?
May 21, 2023
Amazon API Gateway supports various protocols for exposing APIs, including:
Read More
IaC: A Guide to Modern Software Development
May 20, 2023
In the world of software development, efficiency, scalability, and repeatability are paramount.
Read More
DevOps and Microservices: How They Complement Each Other
May 19, 2023
In today’s fast-paced world of software development, DevOps and microservices have emerged as two powerful methodologies that enable organizations to build and deploy applications with speed, agility, and reliability.
Read More
IaC Unlock: Maximize Potential with Ansible
May 18, 2023
In today’s fast-paced world of software development and IT operations, the need for efficient and scalable infrastructure management has become more critical than ever.
Read More
GitOps: Managing Infrastructure as Code with Git
May 17, 2023
Introduction In today’s fast-paced world of software development and operations, managing infrastructure efficiently and securely is crucial for organizations to deliver reliable and scalable applications.
Read More
DevOps Synergy: Boosting Cybersecurity
May 16, 2023
As organizations increasingly rely on technology to power their operations, the need for robust cybersecurity measures becomes more critical than ever.
Read More
The Role of DevOps in Blockchain
May 15, 2023
Blockchain technology is gaining traction across various industries for its ability to provide transparency, security, and immutability.
Read More
The Importance of Testing in DevOps: Strategies and Tools
May 14, 2023
Introduction In today’s fast-paced digital world, software development has become an essential part of business operations.
Read More
DevOps Impact on Customer Experience
May 13, 2023
DevOps has revolutionized the way organizations develop, deploy, and manage software applications.
Read More
Building a DevOps Culture from the Ground Up
May 12, 2023
DevOps has become a crucial aspect of software development, enabling teams to deliver software more efficiently and with higher quality.
Read More
Scaling DevOps for Enterprise Organizations
May 11, 2023
Introduction DevOps has become a popular approach for software development in recent years, enabling teams to collaborate more effectively, increase efficiency, and deliver high-quality software faster.
Read More
The Benefits of Infrastructure as Code in DevOps
May 10, 2023
Introduction The increasing complexity of software systems requires a flexible, scalable, and reliable infrastructure.
Read More
DevOps for Legacy Systems: Challenges and Solutions
May 9, 2023
As organizations continue to evolve and embrace digital transformation, they often encounter legacy systems that are critical to their business operations.
Read More
DevOps Risk Management: Security & Compliance
May 8, 2023
DevOps has transformed software development, enabling teams to build, test, and deploy applications faster and more efficiently.
Read More
Why DevOps is Critical for Digital Transformation
May 7, 2023
Digital transformation is the process of adopting and implementing digital technologies to improve business operations, increase efficiency, and enhance customer experience.
Read More
The Role of Microservices in DevOps
May 6, 2023
In recent years, microservices have become a popular architectural style for building software applications.
Read More
Achieving Continuous Delivery with DevOps and Automation
May 5, 2023
Continuous delivery is a DevOps practice that aims to automate the entire software delivery process, from code commit to production deployment.
Read More
The Importance of Collaboration in DevOps Culture
May 4, 2023
Collaboration is a key aspect of DevOps culture, and it plays a crucial role in driving success and delivering value to customers.
Read More
Cloud-Native: Key to DevOps Success
May 3, 2023
In recent years, cloud-native architecture has become a buzzword in the world of DevOps.
Read More
10 Best Practices for Continuous Integration in DevOps
May 2, 2023
Continuous Integration (CI) is an essential part of modern software development and is integral to the DevOps methodology.
Read More
DevOps vs. Agile: What's the Difference and Why it Matters
May 1, 2023
Introduction In the world of software development, there are two methodologies that are often mentioned: Agile and DevOps.
Read More
The Future of DevOps: Emerging Trends and Technologies
April 30, 2023
In recent years, DevOps has emerged as a key practice for modern software development, helping organizations to achieve faster delivery of high-quality applications.
Read More
Building Resilient Microservices with Istio and Envoy
April 29, 2023
As microservices architecture continues to grow in popularity, it’s becoming increasingly important to ensure that these distributed systems are reliable and resilient.
Read More
5 Key Metrics to Measure DevOps Success
April 27, 2023
As DevOps continues to gain popularity and adoption, it is important for organizations to measure the success of their DevOps initiatives.
Read More
The Importance of Infrastructure as Code in DevOps
April 26, 2023
Infrastructure as Code (IaC) is a methodology that involves managing and provisioning infrastructure through code rather than manually configuring hardware and software components.
Read More
How to Build a Successful DevOps Toolchain
April 24, 2023
DevOps toolchains are essential for streamlining software delivery and ensuring that teams can work efficiently and collaboratively.
Read More
Scaling DevOps: Strategies for Managing Large Teams
April 24, 2023
DevOps has revolutionized software development and delivery, enabling teams to work collaboratively, automate processes, and deliver software faster and more reliably.
Read More
Why DevOps Culture is Critical for Business Success
April 23, 2023
The DevOps movement has been gaining momentum in recent years as organizations realize the benefits of breaking down silos between development and operations teams.
Read More
The Ultimate Guide to Kubernetes Deployment Strategies
April 22, 2023
Kubernetes has become a popular choice for container orchestration, providing developers with a powerful platform for deploying, scaling, and managing containerized applications.
Read More
10 Best Practices for Container Security in DevOps
April 21, 2023
Containers have become a critical component of modern software development practices.
Read More
How to Implement CI/CD Pipelines with Jenkins
April 20, 2023
Continuous Integration and Continuous Deployment (CI/CD) pipelines are critical components of modern software development practices.
Read More
[Solved] AWS Error: TooManyBuckets - Bucket Limit Exceeded
April 19, 2023
If you get the following error: │ Error: creating Amazon S3 (Simple Storage) Bucket (<your-bucket-name): TooManyBuckets: You have attempted to create more buckets than allowed │ status code: 400, request id: 0P1TV2VCEDKGFQNY, host id: gc9di71ONabECoBYkkzc7Lmqs0DOo2DVhV2kqCgNruNO6Okm5K3EXzosdf5MCxP8uI= │
Read More
How to check if a program exists from a Bash/Shell script
April 18, 2023
You can look to use: command -v <the_command> There are also 2 other ways, that we will run through a little further down, but for now.
Read More
The DevOps Culture
April 17, 2023
DevOps is a software development approach that emphasizes collaboration and communication between development and operations teams.
Read More
Teach me Kubernetes - Part 7 - Sidecar Containers
April 16, 2023
Looking for the entire 7 part guide? Start at the Overview In Kubernetes, a sidecar container is a secondary container that runs in the same Pod as the primary container.
Read More
Teach me Kubernetes - Part 6 - Deployments
April 15, 2023
Looking for the entire 7 part guide? Start at the Overview In Kubernetes, a Deployment is a higher-level abstraction that manages the deployment and scaling of a set of Pods.
Read More
Teach me Kubernetes - Part 5 - Services
April 14, 2023
Looking for the entire 7 part guide? Start at the Overview In Kubernetes, a Service is an abstraction that provides a stable, IP address and DNS name for a set of Pods.
Read More
Teach me Kubernetes - Part 4 - Replication Controllers
April 13, 2023
Looking for the entire 7 part guide? Start at the Overview In Kubernetes, a ReplicationController (also known as a “ReplicaSet” in newer versions of Kubernetes) is a controller that ensures that a specified number of replicas of a Pod are running at any given time.
Read More
Teach me Kubernetes - Part 3 - Pods
April 12, 2023
Looking for the entire 7 part guide? Start at the Overview In Kubernetes, a Pod is the smallest and simplest unit in the cluster.
Read More
Teach me Kubernetes - Part 2 - Nodes
April 11, 2023
Looking for the entire 7 part guide? Start at the Overview In Kubernetes, a Node is a worker machine that runs containerized applications.
Read More
Teach me Kubernetes - Part 1 - Overview
April 10, 2023
Kubernetes is an open-source container orchestration platform that automates the deployment, scaling, and management of containerized applications.
Read More
How to Create a Simple Chatbot in Python
April 9, 2023
This is a simple chatbot in Python using the NLTK library.
Read More
Create Transit Gateway with Attachments in Terraform
April 8, 2023
The following example Terraform code snippet creates a Transit Gateway with VPC and VPN attachments:
Read More
How to Create an AWS EC2 Instance in Terraform
April 7, 2023
The following Terraform code snippet creates an EC2 instance for you.
Read More
A Primer on Terraform Concepts
April 6, 2023
Terraform is an open-source tool for building, changing, and versioning infrastructure safely and efficiently.
Read More
How to Learn Recursion by Example in Python
April 5, 2023
Here’s an example code in Python that demonstrates recursion: def factorial(n): if n == 0: return 1 else: return n * factorial(n-1) print(factorial(5)) # Output: 120 This code defines a function factorial that calculates the factorial of a given number n.
Read More
Understanding Site Reliability Engineering (SRE)
April 4, 2023
Site Reliability Engineering (SRE) can also help organizations to be more proactive in identifying and addressing potential issues before they become major problems.
Read More
What is DevOps?
April 3, 2023
DevOps is a term that combines “development” and “operations.” It is a methodology that aims to bridge the gap between the software development and IT operations teams.
Read More
How to Create a Password Generator in Golang
April 2, 2023
Introduction In today’s digital age, password security is more important than ever before.
Read More
How does Disaster Recovery work in the Cloud?
April 1, 2023
Disaster Recovery (DR) in the cloud refers to the process of recovering IT infrastructure and data in the event of a disaster, such as a natural disaster or a cyber attack, in a cloud environment.
Read More
What is DevOps and why is it important?
March 31, 2023
DevOps is a software development methodology that emphasizes collaboration and communication between software developers and IT operations teams.
Read More
What is the Zen of Python?
March 30, 2023
The Zen of Python is an Easter Egg that long time Pythoneer (Tim Peters) channeled the guiding principals for the language’s design principals into 20 aphorisms, of which only 19 of them are written down.
Read More
Bash: Convert HTML to Markdown Recursively with Pandoc
March 29, 2023
You can recursively convert all your HTML files to Mardown format in Bash, by using Pandoc.
Read More
How to Create a Password Generator in C++
March 27, 2023
You can easily create a password generator in C++ with the following simple method.
Read More
How do you architect Disaster Recovery in AWS?
March 26, 2023
Disaster recovery (DR) in AWS involves creating a plan and set of procedures to help your organization recover from a catastrophic event, such as a natural disaster, power outage, or cyber attack, that could impact your business operations.
Read More
What options exist for Infrastructure as Code (IaC)
March 25, 2023
There are several options for Infrastructure as Code (IaC) tools that can help automate the provisioning and management of infrastructure resources, such as servers, networks, and storage, in a reliable and reproducible way.
Read More
How to learn Java in 1 day
March 24, 2023
Learning Java in one day is not a realistic goal, as Java is a complex programming language that requires time and practice to master.
Read More
How to read user input as numbers in Python
March 23, 2023
In Python 3 onwards, the input function returns a string type.
Read More
Capitalize First Letter of Each Word in Python
March 22, 2023
If you have a sentence containing multiple words, and you want each of the words to start with a capital letter, then you can do one of the following:
Read More
How to Create a Password Generator in Python
March 16, 2023
You can easily create a password generator in Python with the following simple method.
Read More
How to Convert Bytes to a String in Python
March 14, 2023
If you need to convert bytes to a string in Python, then you can do the following:
Read More
How to measure the elapsed time in Python
March 13, 2023
Option 1 - using the time module import time start = time.
Read More
How to Change a MariaDB/MySQL Data Directory to a New Location on Linux
March 7, 2023
Step 1 — Moving the MariaDB Data Directory mysql -u root -p select @@datadir; Output: +-----------------+ | @@datadir | +-----------------+ | /var/lib/mysql/ | +-----------------+ 1 row in set (0.
Read More
[Solved] Docker Daemon Connection Error: Daemon Running?
March 4, 2023
If you get the following error when trying to run a Docker container:
Read More
[Solved] M1 Docker Image Platform Mismatch with Host (ARM64)
March 3, 2023
If you get the following error when trying to run a Docker container that was built on an M1 mac:
Read More
How to get the SHA512 sum of a string using Python
March 2, 2023
If you need to get the SHA512 sum of a string using Python, then you can do the following.
Read More
How to get the SHA256 sum of a string using Python
March 1, 2023
If you need to get the SHA256 sum of a string using Python, then you can do the following.
Read More
How to get the MD5 sum of a string using Python
February 28, 2023
If you need to get the MD5 sum of a string using Python, then you can do the following.
Read More
[Solved] TypeError: datetime Not JSON Serializable
February 27, 2023
If you get the following error: TypeError: Object of type datetime is not JSON serializable
Read More
How to Return a List of All AWS Lambda Function Names in CLI
February 24, 2023
If you would like to list all AWS Lambda Function Names in your CLI using the AWS CLI, then you can do this:
Read More
How much faster is Python code?
February 23, 2023
The speed of Python code compared to other programming languages depends on a variety of factors, such as the specific task being performed, the libraries and frameworks used, the quality of the code implementation, and the hardware on which the code is executed.
Read More
Zip & Encode Dict to String & Back in Python
February 22, 2023
If you have a Python dictionary, and want to encode it as a string and zip it to save space, perhaps for passing a dictionary through as an environment variable or similar, then you can do the following
Read More
What Categories of Websites are there?
February 17, 2023
There are many different categories of websites, but here are some of the most common:
Read More
How to Generate a Random Number between 2 numbers in Python
February 16, 2023
If you need to generate a random number between two (2) numbers in Python, then you can make use of the random module.
Read More
How to Install AWS SAM CLI on Mac
February 15, 2023
If you need to install AWS SAM CLI on a Mac, then the easiest option is to use Homebrew with the following commands:
Read More
How to count the amount of rows in MariaDB fast
February 11, 2023
If you need to find the fastest way to count the number of rows in a massive MariaDB, or MySQL table, then you can do the following instead of performing a select count() query:
Read More
How to find the Product of Consecutive Fib Numbers in Python
February 10, 2023
0, 0, 1, 0, 2, 0, 2, 2, 1, 6, 0, 5, 0, 2, 6, 5, 4, 0, 5, 3, 0, 3, …
Read More
How to Solve Van Eck's Sequence in Python
February 9, 2023
0, 0, 1, 0, 2, 0, 2, 2, 1, 6, 0, 5, 0, 2, 6, 5, 4, 0, 5, 3, 0, 3, …
Read More
How to Solve: Help the Bookseller Challenge in Python
February 8, 2023
A bookseller has lots of books classified in 26 categories labeled A, B, … Z.
Read More
How to solve AWS MediaPackage PackagingGroup Quota Limit
January 31, 2023
If you are using AWS Elemental MediaPackage and hit the following error, then you need to either do one of the following:
Read More
How to Run Cdk Bootstrap
January 30, 2023
To bootstrap an AWS CDK environment, you simply need to do the following:
Read More
How to Get Account Number from AWS Lambda
January 24, 2023
If you need to get the current Account Number, or Account ID from within a Lambda execution, then you can access invoked_function_arn from the context and return the associated value as follows:
Read More
Summary of the Frequently Used AWS STS API calls
January 19, 2023
AssumeRole – is useful for allowing existing IAM users to access AWS resources that they don’t already have access to.
Read More
Understanding Locking and Conditional Writes in AWS DynamoDB
January 18, 2023
Optimistic locking is a strategy to ensure that the client-side item that you are updating (or deleting) is the same as the item in DynamoDB.
Read More
AWS CodeDeploy Deployment Type Options
January 17, 2023
CodeDeploy provides two (2) deployment type options: Option 1 – In-place Deployment In-place deployment: The application on each instance in the deployment group is stopped, the latest application revision is installed, and the new version of the application is started and validated.
Read More
Defining Amazon ECS Task Placement Strategies
January 16, 2023
Amazon ECS supports the following task placement strategies: binpack – Place tasks based on the least available amount of CPU or memory.
Read More
Deployment methods in AWS Elastic Beanstalk
January 15, 2023
– All at once – Deploy the new version to all instances simultaneously.
Read More
How to update NTP to sync clock on Linux
January 4, 2023
If you need to sync the clock on Linux using the central NTP clock service, you can do the following:
Read More
How to Find IP Address Ranges used by Amazon S3
December 13, 2022
You can query the ip-ranges Amazon AWS URL, and parse the results through jq as follows:
Read More
How to Find the nth Reverse Number in Java
December 12, 2022
The challenge Reverse Number is a number which is the same when reversed.
Read More
How to Find the Sum of Intervals in Java
December 11, 2022
The challenge Write a function called sumIntervals/sum_intervals() that accepts an array of intervals, and returns the sum of all the interval lengths.
Read More
How to Find the Stray Number in Python
December 10, 2022
The challenge You are given an odd-length array of integers, in which all of them are the same, except for one single number.
Read More
How to Find the EDID UUID of External Mac Monitors
December 9, 2022
You can issue the following command on an Apple Mac’s terminal to show the EDID UUID (unique serial number) of all attached external monitors:
Read More
[Solved] jsii.errors.JSIIError: docker exited with status 1
December 8, 2022
If you get the following error while running AWS CDK:
Read More
How to Filter a Number in C
December 7, 2022
The challenge The number has been mixed up with the text.
Read More
How to Take a Ten Minute Walk in C
December 6, 2022
The challenge You live in the city of Cartesia where all roads are laid out in a perfect grid.
Read More
How to Count Stats of a String in C
December 5, 2022
The challenge You will be given a string and your task will be to return a list of ints detailing the count of uppercase letters, lowercase, numbers and special characters, as follows.
Read More
How to Convert a String to the NATO Phonetic Alphabet in C
December 4, 2022
The challenge You’ll have to translate a string to Pilot’s alphabet (NATO phonetic alphabet).
Read More
How to Add 1 to the Value of each Array in C
December 3, 2022
The challenge Given an array of integers of any length, return an array that has 1 added to the value represented by the array.
Read More
How to Calculate the Sum of a Sequence in C
December 2, 2022
The challenge Your task is to make function, which returns the sum of a sequence of integers.
Read More
How to Solve the Sum of Triangular Numbers in C
December 1, 2022
The challenge Your task is to return the sum of Triangular Numbers up-to-and-including the nth Triangular Number.
Read More
How to Determine if a String Only Contains Unique Characters in C
November 30, 2022
The challenge Write a program to determine if a string contains only unique characters.
Read More
How to Find the Maximum Multiple in C
November 29, 2022
The challenge Given a Divisor and a Bound , Find the largest integer N , Such That ,
Read More
How to Assign a Digital Cypher in C
November 28, 2022
The challenge Digital Cypher assigns to each letter of the alphabet unique number.
Read More
How to Check for All Inclusive in C
November 27, 2022
The challenge Input: a string strng an array of strings arr Output of function contain_all_rots(strng, arr) (or containAllRots or contain-all-rots):
Read More
How to Solve for Factorial in C
November 26, 2022
The challenge In mathematics, the factorial of a non-negative integer n, denoted by n!
Read More
How to Create an Incrementer in C
November 25, 2022
The challenge Given an input of an array of digits, return the array with each digit incremented by its position in the array: the first digit will be incremented by 1, the second digit by 2, etc.
Read More
How to Return the Closest Number Multiple of 10 in C
November 24, 2022
The challenge Given a number return the closest number to it that is divisible by 10.
Read More
How to Reverse Every Other Word in a String in C
November 23, 2022
The challenge Reverse every other word in a given string, then return the string.
Read More
How to Solve Simple Beads Count in C
November 22, 2022
The challenge Two red beads are placed between every two blue beads.
Read More
How to Solve the Maze Runner in C
November 21, 2022
The challenge Introduction Welcome Adventurer. Your aim is to navigate the maze and reach the finish point without touching any walls.
Read More
How to Take a Number and Sum It’s Digits Raied to the Consecutive Powers in C
November 20, 2022
The challenge The number 89 is the first integer with more than one digit that fulfills the property partially introduced in the title of this challenge.
Read More
How to Find the Middle Element in C
November 19, 2022
The challenge You need to create a function that when provided with a triplet, returns the index of the numerical element that lies between the other two elements.
Read More
How to Invite More Women in C
November 18, 2022
The challenge Task King Arthur and his knights are having a New Years party.
Read More
How to Build a Tower in C
November 17, 2022
The challenge Build a pyramid-shaped tower, as an array/list of strings, given a positive integer number of floors.
Read More
How to Calculate A Rule of Divisibility by 7 in C
November 16, 2022
The challenge A number m of the form 10x + y is divisible by 7 if and only if x − 2y is divisible by 7.
Read More
How to Categorize a New Member in C
November 15, 2022
The challenge The Western Suburbs Croquet Club has two categories of membership, Senior and Open.
Read More
How to Solve Deodorant Evaporator in C
November 14, 2022
The challenge This program tests the life of an evaporator containing a gas.
Read More
How to Find the Divisors in C
November 13, 2022
The challenge Create a function named divisors/Divisors that takes an integer n > 1 and returns an array with all of the integer’s divisors(except for 1 and the number itself), from smallest to largest.
Read More
How to Bounce Balls in C
November 11, 2022
The challenge A child is playing with a ball on the nth floor of a tall building.
Read More
How to Find the Capitals in C
November 10, 2022
The challenge Instructions Write a function that takes a single string (word) as argument.
Read More
How to Empty and Delete an S3 Bucket using the AWS CLI
November 9, 2022
Option 1 – Using AWS CLI Step 1 export bucketname='your-bucket-here' Step 2
Read More
What ports to open for FSx connection to AWS Managed Active Directory
November 8, 2022
If you are creating a FSx file system, and want to connect it to AWS Managed Active Directory, then you will need to create a VPC Security Group with the following ports:
Read More
How to Calculate Variance in Python
November 7, 2022
If you need to calculate variance in Python, then you can do the following.
Read More
How to Calculate the Sum of a List in Python
November 6, 2022
If you need to calculate and get the sum of a list in Python, then you can do the following.
Read More
How to add a List to a Set in Python
November 5, 2022
If you need to add a list to a set in Python, then you can do the following:
Read More
How to Remove Punctuation from a List in Python
November 4, 2022
If you have a Python list, and want to remove all punctuation, then you can do the following:
Read More
How to Normalize a List of Numbers in Python
November 3, 2022
If you need to normalize a list of numbers in Python, then you can do the following:
Read More
How to Multiply a List by a Scalar in Python
November 2, 2022
If you need to multiply a list by a scalar in Python, then you can do one of the following:
Read More
How to Find the Index of the Minimum Element in a List in Python
November 1, 2022
If you need to find the index of the minimum element in a list, you can do one of the following:
Read More
How to Convert a Set to a String in Python
October 31, 2022
If you need to convert a set to a string in Python, then you can do one of the following:
Read More
How to Decrement a Loop in Python
October 30, 2022
If you need to decrement a loop in Python, then you can do the following:
Read More
How to Create Zip Archive of Directory in Python
October 29, 2022
If you need to create a zip of a directory using Python, then you can do the following:
Read More
How to Remove the Last Character of a String in PHP
October 28, 2022
If you need to remove the last character of a string in PHP, then you can do the following:
Read More
How to Create Function with Multiple Returns in PHP
October 27, 2022
If you need to create a PHP function that returns multiple values, then you can do one of the following.
Read More
How to Download a File in NodeJS without any Third Party Libraries
October 26, 2022
If you need to download a file in NodeJS without using any third party libraries, then you can do the following.
Read More
How to Execute a Shell Script in NodeJS
October 25, 2022
If you need to execute a shell script in NodeJS, then you can use the exec keyword.
Read More
How to Print Multiple Arguments in Python
October 24, 2022
If you need to print out multiple arguments using Python, then you can do one of the following:
Read More
How to Delete all Resources Except One in Terraform
October 23, 2022
If you need to delete all resources created by Terraform, except for a single, specific one, then you can do the following:
Read More
How to Copy Files between Two Nodes using Ansible
October 22, 2022
If you need to copy files between two (2) nodes, using Ansible, then you can do the following:
Read More
How to Delete Files and Folders in a Directory using Ansible
October 21, 2022
If you need to delete files and folders in a directory using Ansible, then you can do the following:
Read More
How to Copy Multiple Files with Ansible
October 20, 2022
If you need to copy multiple files using Ansible, then you can do the following:
Read More
How to Write Multiline Shell Scripts in Ansible
October 19, 2022
If you need to write a shell script in Ansible, you probably have something like this:
Read More
How to Pass Variables to Ansible Playbook CLI
October 18, 2022
If you need to pass a variable to Ansible playbook, using the command line, then you can do the following:
Read More
How to Create a Directory using Ansible
October 17, 2022
If you need to create a directory using Ansible, then you can do the following:
Read More
How to Disable Screensaver on Mac using the CLI
October 16, 2022
If you want to disable the Screensaver on your Mac, by using the Command Line Interface (CLI), then you can do the following:
Read More
How to Remove Old and Unused Docker Images
October 15, 2022
If you need to remove any old and unused Docker images, then you can do the following:
Read More
How to Convert Milliseconds to Date in Javascript
October 14, 2022
If you need to convert Milliseconds to Date in Javascript, then you can do the following:
Read More
How to Convert String to Title Case in Javascript
October 13, 2022
If you need to convert a String to Title Case in Javascript, then you can do one of the following:
Read More
How to Compile Multiple Java Files from a Single Command in Java
October 12, 2022
If you need to compile multiple Java files using a single command, then you can do the following.
Read More
How to Convert JSON to a Java Object
October 11, 2022
If you need to convert JSON to a Java Object, then you can do one of the following:
Read More
How to Calculate Powers of Integers in Java
October 10, 2022
If you need to calculate the powers of Integers in Java, then you can do one of the following:
Read More
How to Get Today’s Date in Java
October 9, 2022
If you need to get today’s date in Java, then you can do one of the following:
Read More
How to Copy Files from Docker Container to Host
October 8, 2022
If you need to copy files from a Docker Container to the Host, then you can do one of the following:
Read More
How to Get the IP Address of a Docker Container
October 7, 2022
If you need to get the IP Address of a Docker Container, then you can do the following:
Read More
How to Convert Time to String in Golang
October 6, 2022
If you need to convert Time to a String in Go, then you can do one of the following:
Read More
How to Perform a Deep Copy in Golang
October 5, 2022
To perform a Deep Copy in Go, you can use a struct type as follows:
Read More
How to Return Lambda Functions in Golang
October 4, 2022
Go doesn’t typically have Lambda Expressions, but synonymous to Lambdas, or Closures if Anonymous Functions for Go.
Read More
How to Create an Empty Slice in Golang
October 3, 2022
If you would like to create an empty slice in Go, then you can do the following:
Read More
How to Parallelize a for Loop in Python
October 2, 2022
If you need to run a for loop in parallel, then you can do one of the following:
Read More
How to Reverse an Integer in Python
October 1, 2022
If you need to reverse an integer using Python, then you can do the following:
Read More
How to Save a Python Dictionary to a File in Python
September 30, 2022
If you need to save a Python Dictionary object type to a file using Python, then you can do one of the following:
Read More
How to Move Files From One Directory to Another Using Python
September 29, 2022
If you need to move files from one directory to another directory, using Python, then you can do one of the following:
Read More
How to Get the Number of Lines in a File in Python
September 28, 2022
If you need to get the number of lines in a file, or the line count total from a file, using Python, then you can use one of the following options:
Read More
How to Read Specific Lines From a File in Python
September 27, 2022
If you need to read a specific line from a file using Python, then you can use one of the following options:
Read More
How to Get All Files in a Directory in Python
September 26, 2022
If you need to get all the files in a directory using Python, then you can do the following:
Read More
[Solved] dial tcp: lookup proxy.golang.org: i/o timeout
September 25, 2022
If you get a timeout when trying to install go dependencies, the error may look something like this:
Read More
How to Check Operating System in Python
September 24, 2022
If you need to check the Operating System information from Python, then you can do one of the following:
Read More
How to Convert Hex to Byte in Python
September 23, 2022
If you need to convert Hex to Byte in Python, then you can do one of the following:
Read More
[Solved] fatal: Could not read from remote repository with Git
September 22, 2022
If you receive the following error when trying to clone a Git repository:
Read More
How to Install Homebrew on a Mac
September 21, 2022
Prerequisites You should have some familiarity with the Mac Terminal application since you’ll need to use it to install Homebrew.
Read More
How to create an AWS EC2 instance in CloudFormation
September 20, 2022
Create an EC2 Instance in CloudFormation If you need to create an EC2 instance in CloudFormation, then you can do the following:
Read More
How to Run Commands on an AWS ECS Cluster Task or Container
September 19, 2022
If you need to run a command, or set of commands on an AWS ECS cluster container, then you can do the following:
Read More
Understanding the Network Modes in AWS ECS
September 18, 2022
If using the EC2 launch type, the allowable network mode depends on the underlying EC2 instance’s operating system.
Read More
How to Enable ContainerInsights on AWS ECS from the AWS CLI
September 17, 2022
If you need to enable Container Insights for an ECS cluster, by using the AWS CLI, then you can do the following:
Read More
AppMesh and ECS with Imported ACM certificates on Envoy Sidecar through EFS
September 16, 2022
Summary This guide showcases the ability to use imported certificates from a third party provider (e.
Read More
How to Increase the disk size on a Cloud9 instance
September 15, 2022
If you need to increase the disk size of a Cloud9 instance, you can run the following script directly from the terminal in Cloud9:
Read More
How to Get the Instance Profile attached to an AWS EC2
September 14, 2022
If you need to get the IAM Role information from the attached EC2 role directly, you can do the following:
Read More
How to Create an AWS ECR Repository in AWS CLI
September 13, 2022
If you need to create an Elastic Container Registry (ECR) Repository from the AWS CLI, you can do the following:
Read More
How to Scale Out an AWS ECS Service
September 12, 2022
When you create the Amazon ECS service, it includes three Amazon ECS task replicas.
Read More
How to Retrieve AWS ECS Cluster Information
September 11, 2022
For more information about the Amazon ECS cluster, run the following command.
Read More
Types of communication in Amazon EKS
September 10, 2022
There are multiple types of communication in Amazon EKS environments.
Read More
[Solved] Read timeout on endpoint URL: “https://lambda.[region].amazonaws.com/2015-03-31/functions/[function-name]/invocations”
September 9, 2022
If you get the following error: Read timeout on endpoint URL: "https://lambda.
Read More
How to Remove a Passphrase from Certificate Key
September 8, 2022
If you have a Certificate Key that includes a Passphrase and you need to remove it, potentially to use it with AWS App Mesh, then you can do the following:
Read More
How to get Python logger to Print to std out
September 7, 2022
If you use Python’s logger as follows: import logging logger = logging.
Read More
How to Convert a String to an Integer in C
September 6, 2022
If you need to convert a String to an Integer in C, then you can do one of the following:
Read More
How to Convert an Integer to a String in C
September 5, 2022
If you need to convert an Integer to a String in C, then you can do one of the following:
Read More
How to append to an Array in Elasticsearch using elasticsearch-py
September 4, 2022
If you are using the Official ElasticSearch Python library (Docs), and you want to create an index:
Read More
How to Copy Text to the Clipboard in Python
September 3, 2022
If you need to Copy Text to the Clipboard using your Python application code, then you can do the following:
Read More
How to Read a PDF file in Python
September 2, 2022
If you need to read a PDF (Portable Document Format) file in your Python code, then you can do the following:
Read More
How to Convert HEX to RBG in Python
September 1, 2022
If you need to convert HEX (Hexadecimal) to RGB (Red-Green-Blue) in your Python code, then you can do the following:
Read More
How to Refer to a Null Object in Python
August 31, 2022
If you need to refer to a Null Object in your Python code, then you can do the following.
Read More
How to Convert Bytearray to String in Python
August 30, 2022
If you need to convert a Bytearray to a String in Python, then you can do the following:
Read More
How to get the Hostname in Python
August 29, 2022
If you need to get the Hostname in your Python application, then you can do the following:
Read More
How to get the IP Address in Python
August 28, 2022
If you need to get the IP Address in your Python application, then you can do the following:
Read More
How to use SSH in your Python application
August 27, 2022
If you need to make an SSH connection and issues commands over SSH using your Python application, then you can do the following:
Read More
How to Pause a Program in Python
August 26, 2022
If you need to pause the execution of your Python program, then you can do the following:
Read More
How to Convert String to Double in Python
August 25, 2022
If you need to convert a String to a Double in your Python code:
Read More
How to a Run Bash Command in Python
August 24, 2022
If you need to run a bash command in your Python code, then you can do the following:
Read More
How to Force Redeployment of AWS API Gateway using AWS CloudFormation
August 23, 2022
If you have an AWS API Gateway resource, and need it to force a redeployment using CloudFormation, then you can use the TIMESTAMP trick.
Read More
How to Deploy React App to S3 and CloudFront
August 22, 2022
If you would like to deploy a React App to AWS S3 and AWS CloudFront, then you can follow this guide.
Read More
[Solved] export ‘Switch’ (imported as ‘Switch’) was not found in ‘react-router-dom’
August 21, 2022
In react-router-dom v6, Switch is replaced by routes Routes. You need to update the import from:
Read More
How to List all Files/Folders/Directories in Python
August 20, 2022
If you need to list all Files, Folders, or Directories in Python code, then you can use the listdirs method from the os package.
Read More
How to Read a File in Python
August 19, 2022
If you need to read a file in Python, then you can use the open() built-in function to help you.
Read More
How to Drop Columns in Pandas Only If Exists
August 18, 2022
If you have a Pandas DataFrame, and want to only drop columns if they exist, then you can do the following:
Read More
[Solved] An error occurred while calling o86.getDynamicFrame. Exception thrown in awaitResult:
August 17, 2022
If you are running a GlueJob in AWS and get the following error:
Read More
AWS CDK Commands
August 16, 2022
The AWS Cloud Development Kit (CDK) comes with a list of commands that you need to know:
Read More
How to Make a Java Jar File Executable
August 15, 2022
Let’s say you have a Java project as follows: package ms.
Read More
How to List All Resources in an AWS Account
August 14, 2022
If you need to see a list of all the resources in your AWS Account, then you need to look into the Tag Editor.
Read More
Fixed size left column and fluid right column both with 100% height in CSS
August 13, 2022
If you need two (2) columns and want the left column to be a fixed size, but the right column to automatically take the remaining size of the window, then you can use the following solution.
Read More
How to Check if a Volume is Mounted in Bash
August 12, 2022
If you need to check if a volume is mounted in a Bash script, then you can do the following.
Read More
How to Determine if a Bash Variable is Empty
August 11, 2022
If you need to check if a bash variable is empty, or unset, then you can use the following code:
Read More
How to Order by File Size using the du command in Linux
August 10, 2022
If you use the du command to list all the file sizes on Linux:
Read More
How to Join Multiple MySQL Tables in Python
August 9, 2022
First, you will need the mysql.connector. If you are unsure of how to get this setup, refer to How to Install MySQL Driver in Python .
Read More
How to Limit a MySQL Query in Python
August 8, 2022
First, you will need the mysql.connector. If you are unsure of how to get this setup, refer to How to Install MySQL Driver in Python .
Read More
How to Update a MySQL Table in Python
August 7, 2022
First, you will need the mysql.connector. If you are unsure of how to get this setup, refer to How to Install MySQL Driver in Python .
Read More
How to Drop a MySQL Table in Python
August 6, 2022
First, you will need the mysql.connector. If you are unsure of how to get this setup, refer to How to Install MySQL Driver in Python .
Read More
How to Delete MySQL Records in Python
August 5, 2022
First, you will need the mysql.connector. If you are unsure of how to get this setup, refer to How to Install MySQL Driver in Python .
Read More
How to ORDER BY a MySQL Query in Python
August 4, 2022
First, you will need the mysql.connector. If you are unsure of how to get this setup, refer to How to Install MySQL Driver in Python .
Read More
How to Filter WHERE MySQL Queries in Python
August 3, 2022
First, you will need the mysql.connector. If you are unsure of how to get this setup, refer to How to Install MySQL Driver in Python .
Read More
How to Select From MySQL in Python
August 2, 2022
First, you will need the mysql.connector. If you are unsure of how to get this setup, refer to How to Install MySQL Driver in Python .
Read More
How to Insert into a MySQL Table in Python
August 1, 2022
If you need to insert data into a MySQL table using Python, then look no further.
Read More
How to Create a Primary Key for a MySQL Database in Python
July 31, 2022
You can create a Primary Key for your MySQL database in Python as follows.
Read More
How to Create a MySQL Table in Python
July 30, 2022
If you need to create a table in a MySQL database using Python, then you can do the following.
Read More
How to Create a MySQL Database in Python
July 29, 2022
In order to create a MySQL database in Python, you first need to initiate a connection using the mysql.
Read More
How to Install MySQL Driver in Python
July 28, 2022
To begin using MySQL in Python, you need to do the following:
Read More
How to Resize an AWS EBS Volume in Bash
July 27, 2022
If you need to resize an EBS volume in AWS, you can do so using bash.
Read More
How to get all checked checkboxes in Javascript
July 26, 2022
If you need to get all the checked checkboxes using Javascript, then you can do the following:
Read More
How to Setup Credential Helper for AWS CodeCommit
July 25, 2022
AWS CodeCommit is a git code repository service by Amazon Web Services.
Read More
How to Flex Grid 2 Columns using CSS
July 24, 2022
If you would like to flex grid 2 columns in CSS then you need three (3) divs.
Read More
How to Create a Hashtag Generator in Javascript
July 23, 2022
If you want to create a hashtag generator in Javascript, then you can do the following:
Read More
How to Confirm before Leaving Page in Javascript
July 22, 2022
You can implement a function to be called before the user leaves a page with Javascript as follows:
Read More
What are the multiples of 3 from 1 to 1000
July 21, 2022
If you need to calculate the multiples of 3, starting from 1 up until 1000, then you can use the following code:
Read More
How to Count Files in Directory on Linux
July 20, 2022
If you need to count how many files are in a directory on Linux, then you can use a combination of the ls command to list all the files, and the wc command to count how many lines are printed:
Read More
How to Read a File Line by Line in Java
July 19, 2022
If you need to read a file line by line in Java, then you can use one of the following three (3) options.
Read More
How can I clear or empty a StringBuilder
July 18, 2022
You can use Java’s StringBuilder to create and manipulate Strings as follows:
Read More
How to Approve a SageMaker model in AWS CLI
July 17, 2022
Sometimes you will need to manually approve a SageMaker model package from the AWS CLI.
Read More
How to Assume Role across Accounts in AWS
July 16, 2022
If you need to assume role between AWS accounts, or allow an account to assume a role and use resources in another AWS account, then you need to create a role and attach the following policy.
Read More
How to Style an Element using Javascript
July 15, 2022
If you need to style an element using Javascript then you can use the style object to support all your CSS needs.
Read More
How to Wait 1 Second in Javascript
July 14, 2022
If you need your Javascript code to wait one (1) second (or more) while executing, then there are a couple of ways to achieve this.
Read More
How to use forEach method in Javascript
July 13, 2022
Arrays come with a useful forEach function that allows you to loop through the array.
Read More
How to Remove an Element from an Array in Javascript
July 12, 2022
If you need to remove an element from an array in Javascript, then you can use one of the following five (5) options:
Read More
How to get the Alphabet as Array in Javascript
July 11, 2022
If you need to get an array of alphabetical letters in Javascript then you can use one of the following:
Read More
How to get the Screen Width in Javascript
July 9, 2022
Javascript gives a few options to determine the screen width.
Read More
How to Read a File in Rust
July 8, 2022
If you need to read a file in Rust, then you can use the fs package from the standard library:
Read More
How to Convert Array to String in Java
July 7, 2022
If you need to convert an array to a string in Java, then you could look at a solution like this:
Read More
How to Join Two Strings Together in Golang
July 6, 2022
If you need to join two (2) strings together in Golang, you can do the following, using the + concatenation operator:
Read More
How to Recursively Delete all Files in an AWS S3 Bucket
July 5, 2022
If you need to recursively delete all files in an AWS S3 bucket, then you can do the following:
Read More
How to Execute Linux Commands in Golang
July 4, 2022
If you want to execute linux commands in Golang, then you can use exec.
Read More
How to Check for Prime Numbers using Golang
July 3, 2022
If you need to check for Prime Numbers in Golang, then you can use the following method:
Read More
How to Raise a Number to a Power in Golang
July 2, 2022
If you need to raise a number to a power in Golang, then you can use the math.
Read More
How to get CPU Frequency in Linux
July 1, 2022
If you need to get the CPU Frequency in Linux, then you can run the following command:
Read More
How to Disable Warning with Python Pandas
June 30, 2022
How can python pandas disable warnings? If you need to disable warnings with Pandas on Python, then you can use the warnings module and ignore the filter as follows:
Read More
How to Get all Caps Alphabet as List in Python
June 29, 2022
If we take the following list: ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z'] How do we extract only the UpperCase letters of a given word?
Read More
[Solved] Error creating RDS DB Instance: IAM role ARN value is not value or does not include the required permissions for: ENHANCED_MONITORING
June 28, 2022
When you are trying to create an RDS database and you get the dreaded error message:
Read More
How to create an AWS Lambda in Terraform
June 27, 2022
Step 1 – Lambda Code in Python The following code expects a python file with the contents as follows in a file called python/script1.
Read More
[Solved] Instance Profile already exists in Terraform
June 26, 2022
If you get the Instance Profile already exists error when running your Terraform apply, then it is either because an instance profile with that name already existed in the account, or because the previous terraform destroy did not remove it.
Read More
[Solved] An error occurred (UnauthorizedException) when calling ListAccounts operation: Session token not found or invalid
June 25, 2022
If you are using aws configure sso to populate your ~/.
Read More
How to Match Multiple Strings with grep
June 24, 2022
If you need to match a string in a file, then grep is your friend.
Read More
How to Invoke an AWS Lambda from the CLI
June 23, 2022
If you want to invoke an AWS Lambda from your CLI, then the best option is to have the AWS CLI installed.
Read More
How to Exit if a Bash Variable in Not Set
June 22, 2022
Sometimes you might want to exit a command if a variable is not set in Bash.
Read More
How to Force Gitlab pipeline to fail on condition
June 21, 2022
if you have a conditional in your Gitlab pipeline stage that checks if something has succeeded or failed, then you can use this to pass or fail your pipeline stage.
Read More
How to run AWS CLI commands based on AWS CLI Version in Bash
June 20, 2022
If you find yourself having the requirements to support both AWS CLI v1 and v2 simultaneously, then you can use the following conditional in Bash to only run the specific version required:
Read More
[Solved] Unknown options: –cli-binary-format AWS CLI
June 19, 2022
If you have tried calling the AWS CLI and got the following error:
Read More
How to Generate Random Strings with Dash in-between in Python
June 18, 2022
If you need to generate a random string that looks something like this: VUNBXJ-230411, then you can use the following random generator:
Read More
How to Check OS version and flavor in Linux
June 17, 2022
If you need to check the version and flavour of the running Linux instance, then you can try the below commands:
Read More
How to use a Backend-Config File for Terraform S3 State Configuration
June 16, 2022
If you are using S3 as the backend for your state management in Terraform, then you can create environment specific configuration files where you store the bucket, region among other things to be pulled in automatically when switching environments.
Read More
How to Refresh State in Terraform
June 15, 2022
Sometimes your infrastructure may be out of sync with your Terraform state because resources may have been amended or deleted manually.
Read More
How to get the Length of an Array in C
June 14, 2022
There isn’t really a standard way to get the length of array in C.
Read More
How to write If/Else Statements in Terraform
June 13, 2022
If/Else statements are conditional statements that perform decisions based on some known state, or variable.
Read More
How to Reset Udemy Progress
June 12, 2022
If you need to redo a Udemy course and you would like to reset the course’s progress, then you can use the following Javascript snippet below.
Read More
How to Get Last Digit of a Large Number in C
June 11, 2022
The challenge Define a function that takes in two non-negative integers aa_a_ and bb_b_ and returns the last decimal digit of aba^b_a__b_.
Read More
[Solved] Network interface is in use by another service in AWS
June 10, 2022
If you have tried to delete a Security Group, or VPC, or various other resources and you get the dreaded Network interface is in use by another service error, then you can resolve this by deleting the resource through the API.
Read More
How to Uninstall npm packages
June 9, 2022
We typically install an npm package as follows: npm install <package_name> But how do we uninstall an npm package?
Read More
RBG Color Codes
June 8, 2022
Often you need to reference an HTML/CSS Color Code in RGB or Hex.
Read More
How to Sum the Two Lowest Positive Integers in C++
June 7, 2022
The challenge Create a function that returns the sum of the two lowest positive numbers given an array of minimum 4 positive integers.
Read More
How to Sort an Array of Objects by Property in Javascript
June 6, 2022
If you need to sort an array of objects by their property values using Javascript, then you don’t need to look further than the built-in sort functionality.
Read More
How to create a Countdown Timer in Python
June 5, 2022
If you need to count down a specific amount of time, say for example, when a token is set to expire, then a countdown timer will be useful.
Read More
How to Remove a Resource from Terraform State
June 4, 2022
Terraform state reflects the most up to date reference of the infrastructure.
Read More
How to Delete a Specific Resource in Terraform
June 3, 2022
Running terraform destroy will tear down the whole stack associated to some terraform code.
Read More
How to Create a DynamoDB Lock Table for Terraform
June 2, 2022
Provision the DynamoDB Table resource "aws_dynamodb_table" "dynamodb-terraform-state-lock" { name = "terraform-state-lock-dynamo" hash_key = "LockID" read_capacity = 20 write_capacity = 20 attribute { name = "LockID" type = "S" } } Configure the DynamoDB table in Terraform Backend terraform { backend "s3" { encrypt = true bucket = "your-unique-bucket-name" dynamodb_table = "terraform-state-lock-dynamo" key = "terraform.
Read More
How to add Comments in Terraform
June 1, 2022
Terraform , a powerful Infrastructure as Code (IaC) tool, allows you to define and provision infrastructure resources.
Read More
How to log/debug in Terraform
May 31, 2022
If you have Terraform reporting an error but want more information, then you can configure debug logging.
Read More
How to find the number of trailing zeros of N in Rust
May 30, 2022
The challenge Write a program that will calculate the number of trailing zeros in a factorial of a given number.
Read More
How to do RGB To Hex Conversion in Rust
May 29, 2022
The challenge The rgb function is incomplete. Complete it so that passing in RGB decimal values will result in a hexadecimal representation being returned.
Read More
How to Rename a Git Branch
May 28, 2022
If you want to rename a git branch, then you have a few options, dependent on the use-case.
Read More
How to Find the Shortest Word in C++
May 27, 2022
The challenge Simple, given a string of words, return the length of the shortest word(s).
Read More
How to Square Every Digit in C++
May 26, 2022
The challenge You are asked to square every digit of a number and concatenate them.
Read More
How to Count Vowels in C++
May 25, 2022
The challenge Return the number (count) of vowels in the given string.
Read More
How to Calculate the Sum of the Numbers in the Nth row of a Triangle in Golang
May 24, 2022
The challenge Given the triangle of consecutive odd numbers: 1 3 5 7 9 11 13 15 17 19 21 23 25 27 29 .
Read More
[Solved] Terraform Error accessing remote module registry in PowerShell
May 23, 2022
If you are using PowerShell and trying to run a terraform init, you may get an error as follows:
Read More
How to Recursively Delete a Directory in PowerShell
May 22, 2022
If you want to recursively delete a directory/folder using PowerShell, then you have 2 options.
Read More
[Solved] npm ERR! could not determine executable to run
May 21, 2022
If you get the following message, then there’s a very easy fix:
Read More
[Solved] npm ERR! path node_modules/node-sass
May 20, 2022
If you get the following error and need a solution, then look no further!
Read More
How to Install Lodash through Yarn for React
May 19, 2022
You can install lodash through yarn as follows: Step 1 – Install Lodash to get the Library yarn add lodash Step 2 – Get the Typescript info yarn add --dev @types/lodash
Read More
How to SHA256 a String in Golang
May 18, 2022
If you need to SHA256 a String in Go, then you can use the crypto/sha256 package.
Read More
How to Base64 Encode/Decode in Golang
May 17, 2022
Go ships with an encoding/base64 package that allows for encode and decoding of Base64 strings.
Read More
How to Base64 Encode a String in Java
May 16, 2022
Quick solution In short, you can just do this: new String(Base64.
Read More
How to add a Lambda Environment Variable in Terraform
May 15, 2022
If you have an aws_lambda_function block that needs to make use of environment variables, then you can simply do the following:
Read More
How to perform Array Element Parity in Golang
May 14, 2022
The challenge You will be given an array of integers whose elements have both a negative and a positive value, except for one integer that is either only negative or only positive.
Read More
How to Reverse Letters in Kotlin
May 13, 2022
The challenge Given a string str, reverse it omitting all non-alphabetic characters.
Read More
How to Get the ASCII Value of Character in Kotlin
May 12, 2022
The challenge Get the ASCII value of a character. The solution in Kotlin Option 1:
Read More
How to update each dependency in package.json to the latest version
May 11, 2022
You have 2 options: Option 1 – Recommended (Using npx) npx npm-check-updates -u npm install Option 2 – Older way (Using npm globally) npm i -g npm-check-updates ncu -u npm install
Read More
How to Convert IPv4 to int32 in Javascript
May 10, 2022
The challenge Take the following IPv4 address: 128.32.10.1 This address has 4 octets where each octet is a single byte (or 8 bits).
Read More
How to Solve the Grouped by Commas Challenge in Javascript
May 9, 2022
The challenge Finish the solution so that it takes an input n (integer) and returns a string that is the decimal representation of the number grouped by commas after every 3 digits.
Read More
How to Save sed Output Directly to a File
May 8, 2022
You have 3 options here: Option 1: use tee with sed sed 's/Hello/Hi/g' file-name | tee file Option 2: use > with sed sed 's/Hello/Hi/g' file-name > file Option 3: use sed with -i option sed -i 's/Hello/Hi/g' file-name
Read More
How to Convert BigNumber to Int/Number in Ethers/Web3
May 7, 2022
If you have a BigNumber when using web3, then you can convert this to a regular Javascript Number using the ethers library as follows:
Read More
How to Create a Pyramid Array in Javascript
May 6, 2022
The challenge Write a function that when given a number >= 0, returns an Array of ascending length subarrays.
Read More
How to Create a Reverse Polish Notation Calculator in Javascript
May 5, 2022
The challenge Your job is to create a calculator which evaluates expressions in Reverse Polish notation.
Read More
How to declare a global variable in React?
May 4, 2022
If you need to declare a global variable in React, then you can do the following:
Read More
How to Find the Missing Term in an Arithmetic Progression in Javascript
May 3, 2022
The challenge An Arithmetic Progression is defined as one in which there is a constant difference between the consecutive terms of a given series of numbers.
Read More
How to Count Characters in a Javascript String
May 2, 2022
The challenge The main idea is to count all the occurring characters in a string.
Read More
How to Increment/Decrement a value in React/NextJS
May 1, 2022
Use the following code block to get started: function GetCount() { const [count, setCount] = useState(1); const incrementCounter = () => { setCount(count+1) } const decrementCounter = () => { if (count>1) setCount(count-1) } return <div className="_counterWrapper"> <span className="_dec" onClick={() => decrementCounter()}>-</span> <span className="_val">{count}</span> <span className="_inc" onClick={() => incrementCounter()}>+</span> </div> } Then in your HTML code, add it like this:
Read More
How to disable text selection highlighting in CSS
April 30, 2022
If you would like to disable the text selection highlighting that is enabled by default on all browsers, then you can do this:
Read More
Irreducible Sum of Rationals in Golang
April 29, 2022
The challenge You will have a list of rationals in the form:
Read More
How to copy S3 objects between AWS accounts
April 28, 2022
In your source account create a customer-managed policy: { "Version": "2012-10-17", "Statement": [ { "Effect": "Allow", "Action": [ "s3:ListBucket", "s3:GetObject" ], "Resource": [ "arn:aws:s3:::source-EXAMPLE-BUCKET", "arn:aws:s3:::source-EXAMPLE-BUCKET/*" ] }, { "Effect": "Allow", "Action": [ "s3:ListBucket", "s3:PutObject", "s3:PutObjectAcl" ], "Resource": [ "arn:aws:s3:::destination-EXAMPLE-BUCKET", "arn:aws:s3:::destination-EXAMPLE-BUCKET/*" ] } ] } In your destination bucket, update the bucket policy:
Read More
How to find all symlinks in a directory tree on Mac
April 27, 2022
If you need to recursively find all symbolic links in a directory tree on a Mac, then you have a couple of options.
Read More
How to Install App Mesh on AWS EKS
April 26, 2022
You can follow the steps below to install App Mesh on AWS EKS (Kubernetes).
Read More
[Solved] Kubernetes Namespace stuck in Terminating state
April 25, 2022
If you have tried to delete a Kubernetes namespace, and it has been hanging in ‘deleting’ for hours on end, it’s likely that you have dangling resources that have not deleted yet.
Read More
[Solved] Error creating: pods “my-service-a-xxx” is forbidden: error looking up service account my-apps/my-service-a: serviceaccount “my-service-a” not found
April 24, 2022
So you’ve run a deployment and tried to check the pods and there’s nothing there!
Read More
[Solved] error: src refspec main does not match any
April 23, 2022
If you get the following error: error: src refspec main does not match any error: failed to push some refs to 'https://github.
Read More
How to Force a Redeploy in Kubernetes
April 22, 2022
If you need to force a redeploy of a deployment in Kubernetes , then you can use the rollout feature.
Read More
How to Print to stdout in Flask using Python
April 21, 2022
If you are trying to print() to the console/stdout in your Flask app, but nothing is happening, then you just need to flush your prints, as follows:
Read More
How to Restart a Deployment in Kubernetes
April 20, 2022
If you need to restart a deployment in Kubernetes, perhaps because you would like to force a cycle of pods, then you can do the following:
Read More
How to push multiple Dockerfile apps to AWS ECR at the same time
April 19, 2022
I have a parent directory containing multiple sub-directories. Each of these child directories is a different application and contains a Dockerfile.
Read More
How to Create a Horizontal Pod Autoscaler in Kubernetes
April 18, 2022
If you could like to a create a Horizontal Pod Autoscaler (hpa) in Kubernetes, then you could run the following:
Read More
How to Run a Load Generator on Kubernetes
April 17, 2022
If you would like to test hpa, Horizontal Pod Autoscaling, or throw some chaos at a specific deployment in Kubernetes , then you could run a Load Generator
Read More
How to Deploy a Metrics Server in Kubernetes
April 16, 2022
If you would like to deploy a Metrics Server in Kubernetes , then you first need to create a namespace for it to live it, followed by installing the actual metrics server.
Read More
How to create an AWS EKS cluster using eksctl
April 15, 2022
eksctl dramatically simplifies the creation of AWS EKS clusters, by providing a simple command-line interface.
Read More
How to Dockerize a Flask App
April 14, 2022
If you have a Flask app that you would like packaged in a Docker container, then you can do the following.
Read More
How to get an EKS Cluster name from an AWS Region
April 13, 2022
You can use the aws cli to get the EKS cluster name, parse the first result and return it into a variable.
Read More
How to automatically generate a Manifests file in Kubernetes
April 12, 2022
If you want to automatically generate a manifest file in Kubernetes, you can do so by using the kubectl run command coupled with a --dry-run to output directly to yaml.
Read More
How to Sort Pods by CreationTimestamp in Kubernetes
April 11, 2022
If you need to sort a list of your pods by their CreationTimestamp, then do the following:
Read More
How to Jump onto a Kubernetes Pod with Bash
April 10, 2022
If you want to jump onto a particular Kubernetes Pod and run Bash within it, you can do so as follows:
Read More
How to run Shell Commands in a Kubernetes Cluster
April 9, 2022
If you would like to run shell commands inside of your Kubernetes cluster, then you can use the kubectl run command.
Read More
How to Bulk Move All Email from One Account to Another using the CLI
April 8, 2022
If you find yourself in a position where you need to sync all emails from one account to another, then you can use the imapsync command-line tool to bulk copy, or move everything for you.
Read More
How to Install AWS CLI on Linux
April 7, 2022
You can download and install the AWS CLI on Linux as follows:
Read More
How to Reboot Networking on Mac from CLI
April 6, 2022
If you need to reboot, or restart the networking interface on your Mac, by using the CLI, then you can issue the following commands:
Read More
[Solved] fatal: unable to access <git>: SSL certificate problem: self signed certificate in certificate chain
April 5, 2022
If you get the following error: fatal: unable to access <git>: SSL certificate problem: self signed certificate in certificate chain
Read More
How to Extract the Files in a Docker Image
April 4, 2022
Ever needed to extract the files in a Docker container?
Read More
[Solved] Error response from daemon: No such image: Docker
April 3, 2022
If you’ve run into this dreaded error: Error response from daemon: No such image:
Read More
How to Bootstrap a Web Server on AWS EC2
April 2, 2022
When you launch an EC2 instance, you can use the user-data to bootstrap a instance creation script.
Read More
How to Update Kubectl Config from AWS EKS
April 1, 2022
Ever searched for kubectl update config from aws eks and needed a quick result?
Read More
How to Generate a Random String in Java
March 31, 2022
Java provides many ways to generate random strings. 1. Using Apache Commons public void generatingRandomAlphanumericString_ApacheCommons() { String generatedString = RandomStringUtils.
Read More
How to Generate a Random String in Python
March 30, 2022
Python gives the ability to generate random strings out of the box, by using a combination of the string and random modules.
Read More
How to Generate a Random Number/String in Terraform
March 29, 2022
If you need to generate a random number or string in Terraform, then you can use the following:
Read More
[Solved] Unable to connect to the server: dial tcp: lookup with AWS EKS
March 28, 2022
If you have received the following error while trying to issue commands to kubectl:
Read More
How to Store Terraform State in AWS S3
March 27, 2022
Storing Terraform states files locally is not recommended. Instead you should use a backend such as as S3 from AWS.
Read More
[Solved] ZipArchive extension: disabled/not installed on Ubuntu
March 26, 2022
If you have come across the following error: ZipArchive extension:&nbsp;<strong>disabled/not installed</strong>
Read More
Calculating Cartesian Neighbors Distance in Golang
March 25, 2022
The challenge We have been searching for all the neighboring points in a Cartesian coordinate system.
Read More
How to Calculate Dominant Primes in Golang
March 24, 2022
The challenge The prime number sequence starts with: 2,3,5,7,11,13,17,19.... Notice that 2 is in position one.
Read More
[Solved] error: src refspec main does not match
March 23, 2022
When you first try and push to a git repository, you may get the following error message:
Read More
How to Solve Simple Square Numbers in Golang
March 22, 2022
The challenge In this challenge, you will be given a number n (n > 0) and your task will be to return the smallest square number N (N > 0) such that n + N is also a perfect square.
Read More
How to perform Function Iteration in Golang
March 21, 2022
The challenge The purpose of this challenge is to write a higher-order function returning a new function that iterates on a specified function a given number of times.
Read More
Determining Integer Depth in Python
March 20, 2022
The challenge The depth of an integer n is defined to be how many multiples of n it is necessary to compute before all 10 digits have appeared at least once in some multiple.
Read More
How to Reverse a singly-linked list in Python
March 19, 2022
The challenge Implement a function reverse_list that takes a singly-linked list of nodes and returns a matching list in the reverse order.
Read More
Calculating Simple Time Difference in Python
March 18, 2022
The challenge In this challenge, you will be given a series of times at which an alarm goes off.
Read More
Calculating Odd/Even number of divisors in Python
March 17, 2022
The challenge Given an integer n return "odd" if the number of its divisors is odd.
Read More
Calculate possibilities of throwing a coin N times in Python
March 16, 2022
The challenge In this challenge, you will be given an integer n, which is the number of times that is thrown a coin.
Read More
How to Convert Integer to Whitespace format in Python
March 15, 2022
The challenge Hereinafter, [space] refers to " ", [tab] refers to "\t", and [LF] refers to "\n" for illustrative purposes.
Read More
How to Perform Frog Jumping in Python
March 14, 2022
The challenge You have an array of integers and have a frog at the first position
Read More
How to Calculate the area of a regular N sides polygon inside a circle of radius R in Python
March 13, 2022
The challenge Write the following function: def area_of_polygon_inside_circle(circle_radius, number_of_sides): It should calculate the area of a regular polygon of numberOfSides, number-of-sides, or number_of_sides sides inside a circle of radius circleRadius, circle-radius, or circle_radius which passes through all the vertices of the polygon (such a circle is called circumscribed circle or circumcircle).
Read More
How to create an Image Host Filename Generator in Python
March 12, 2022
The challenge You are developing an image hosting website. You have to create a function for generating random and unique image filenames.
Read More
How to Find the Missing Alphabets in Python
March 11, 2022
The challenge Task Given string s, which contains only letters from a to z in lowercase.
Read More
How to move MySQL database to another drive
March 10, 2022
Step 1: Login to your MySQL server, enter your password when prompted:
Read More
How to Find the Sum of Prime-Indexed Elements in Go
March 9, 2022
The challenge You will be given an integer array and your task is to return the sum of elements occupying prime-numbered indices.
Read More
How to Find the Longest Substring in Alphabetical Order in Python
March 8, 2022
The challenge Find the longest substring in alphabetical order. Example:
Read More
Calculate the Most Frequent Weekdays in Go
March 7, 2022
The challenge What is your favourite day of the week? Check if it’s the most frequent day of the week in the year.
Read More
Return Index of Matching Closing Bracket in Go
March 6, 2022
The challenge In this challenge, you will be given a string with brackets and an index of an opening bracket and your task will be to return the index of the matching closing bracket.
Read More
How to Presign an S3 URL in AWS using AWS CLI
March 5, 2022
You can use the AWS CLI to presign URLs so that objects in S3 can be shared publicly even if they are set as private.
Read More
How to Download using Aria2c with Multiple Connections
March 4, 2022
If you use aria2c to download files using the command-line, then you can also use it to download using multiple connections.
Read More
How to Parse HTML/CSS Colors in Java
March 3, 2022
The challenge In this challenge, you parse RGB colors represented by strings.
Read More
Solving Simple Transposition in Java
March 2, 2022
The challenge Simple transposition is a basic and simple cryptography technique.
Read More
How to Binary to Text (ASCII) Conversion in Python
March 1, 2022
The challenge Write a function that takes in a binary string and returns the equivalent decoded text (the text is ASCII encoded).
Read More
How to Find the Row of the Odd Triangle in Python
February 28, 2022
The challenge Given a triangle of consecutive odd numbers: 1 3 5 7 9 11 13 15 17 19 21 23 25 27 29 .
Read More
Solving Number Zoo Patrol in Python
February 27, 2022
The challenge Write a function that takes a shuffled list of unique numbers from 1 to n with one element missing (which can be any number including n).
Read More
Common AWS CDK CLI Commands
February 26, 2022
The AWS Cloud Development Kit (CDK) comes with numerous CLI commands.
Read More
How to Create an S3 bucket with PublicRead in CloudFormation
February 25, 2022
AWSTemplateFormatVersion: 2010-09-09 Description: Basic S3 Bucket CloudFormation template Resources: S3BucketForWebsiteContent: Type: AWS::S3::Bucket Properties: AccessControl: PublicRead Outputs: BucketName: Value: !
Read More
How to Create a VPC in CloudFormation
February 24, 2022
It’s very easy to deploy a VPC using CloudFormation: AWSTemplateFormatVersion: 2010-09-09 Description: Deploy a VPC Resources: VPC: Type: AWS::EC2::VPC Properties: CidrBlock: 10.
Read More
How to Setup Git on EC2 for AWS CodeCommit
February 23, 2022
Connect to the instance: chmod 400 KEYPAIR.pem ssh -i KEYPAIR.pem ec2-user@EC2PublicIP Install Git:
Read More
The Difference of 2 in Java
February 22, 2022
The challenge The objective is to return all pairs of integers from a given array of integers that have a difference of 2.
Read More
How to Make the Deadfish Swim in Java
February 21, 2022
The challenge Write a simple parser that will parse and run Deadfish.
Read More
How to Write Number in Expanded Form in Java
February 20, 2022
The challenge You will be given a number and you will need to return it as a string in Expanded Form.
Read More
Is a Number Prime in Java
February 19, 2022
The challenge Define a function that takes one integer argument and returns a logical value true or false depending on if the integer is a prime.
Read More
How to Calculate Minutes to Midnight in Java
February 18, 2022
The challenge Write a function minutesToMidnight(d) that will take a date object as the parameter.
Read More
How to Change the Timestamp of a File on Mac/Linux
February 17, 2022
If you have a file on your machine, and you want to change the created/modified time/date stamp, then you can use the touch command.
Read More
How to Round up to the Next Multiple of 5 in Python
February 16, 2022
The challenge Given an integer as input, can you round it to the next (meaning, “higher”) multiple of 5?
Read More
How to get the Sum of the First nth Term of a Series in Java
February 15, 2022
The challenge Your task is to write a function that returns the sum of the following series up to nth term(parameter).
Read More
How to satisfy Wilson Primes in Python
February 14, 2022
The challenge Wilson primes satisfy the following condition. Let P represent a prime number.
Read More
How to Boot an EC2 with a WebServer Setup
February 13, 2022
Create a new AWS EC2 instance, and set the User Script to the following:
Read More
Writing a Sleigh Authentication in Python
February 12, 2022
The challenge Christmas is coming and many people dreamed of having a ride with Santa’s sleigh.
Read More
Solving for Multiple of Index in Python
February 11, 2022
The challenge Return a new array consisting of elements which are multiple of their own index in input array (length > 1).
Read More
How to Find an item’s Alphabet Position in Python
February 10, 2022
The challenge When provided with a letter, return its position in the alphabet.
Read More
How to Keep up the Hoop in Java
February 9, 2022
The challenge Alex just got a new hula hoop, he loves it but feels discouraged because his little brother is better than him
Read More
Will there be Enough Space in Java
February 8, 2022
The challenge Bob is working as a bus driver. However, he has become extremely popular amongst the city’s residents.
Read More
How to Swap Node Pairs In Linked List in Java
February 7, 2022
The challenge If you are given the head node in a linked list, write a method that swaps each pair of nodes in the list, then returns the head node of the list.
Read More
How to Solve ‘Finding Neo’ in Java
February 6, 2022
The challenge Neo is somewhere in the Matrix. public interface Matrix { public int size(); public int get(int x, int y); } You are Morpheus, and your job is to find him.
Read More
How to Solve a Pandigital Sequence in Java
February 5, 2022
The challenge In mathematics, a pandigital number is a number that in a given base has among its significant digits each digit used in the base at least once.
Read More
How to get Meta-Data information from an AWS EC2 Instance
February 4, 2022
If you need to query meta-data information from your running EC2 instance, you can curl the following location:
Read More
How to write a Lazy Repeater Helper in Python
February 3, 2022
The challenge The make_looper() function takes a string (of non-zero length) as an argument.
Read More
How to write a String Case Conversion Helper in Python
February 2, 2022
The challenge In this challenge, you will make a function that converts between camelCase, snake_case, and kebab-case.
Read More
How to create Interleaving Arrays in Python
February 1, 2022
The challenge Create a function, that accepts an arbitrary number of arrays and returns a single array generated by alternately appending elements from the passed-in arguments.
Read More
How to Find the Largest product in a Series in Python
January 31, 2022
The challenge Complete the greatestProduct method so that it’ll find the greatest product of five consecutive digits in the given string of digits.
Read More
How to Calculate the Least Common Multiple in Python
January 30, 2022
The challenge Write a function that calculates the least common multiple of its arguments; each argument is assumed to be a non-negative integer.
Read More
How to Solve Caesar Cipher Helper in Python
January 29, 2022
The challenge Write a class that, when given a string, will return an uppercase string with each letter shifted forward in the alphabet by however many spots the cipher was initialized to.
Read More
How to Write Out Numbers in Python
January 28, 2022
The challenge Create a function that transforms any positive number to a string representing the number in words.
Read More
How to do Base64 Encoding in Python
January 27, 2022
The challenge Create a function that converts the value of the String to and from Base64 using the ASCII character set.
Read More
How to Calculate Transport on Vacation in Java
January 26, 2022
The challenge After a hard quarter in the office you decide to get some rest on a vacation.
Read More
Playing with the letter ‘E’ in Java
January 25, 2022
The challenge Given String str, return: If given String doesn’t contain any “e”, return: “There is no “e”.
Read More
How to Sum the Average for NBA Players in Golang
January 24, 2022
The challenge Write a function, called sumPPG, that takes two NBA player objects/struct/Hash/Dict/Class and sums their PPG
Read More
How to Compute a Cube as Sums in Golang
January 23, 2022
The challenge You will be given a number n (where n >= 1) and your task is to find n consecutive odd numbers whose sum is exactly the cube of n.
Read More
The Deaf Rats of Hamelin Challenge in Java
January 22, 2022
The challenge The Pied Piper has been enlisted to play his magical tune and coax all the rats out of town.
Read More
How to Find the Next Perfect Square in Java
January 21, 2022
The challenge You might know some pretty large perfect squares. But what about the NEXT one?
Read More
How to Find the Unique String in Python
January 20, 2022
The challenge There is an array of strings. All strings contain similar letters except one.
Read More
How to convert a PascalCase string into snake_case in Python
January 19, 2022
The challenge Complete the function/method so that it takes a PascalCase string and returns the string in snake_case notation.
Read More
How to Convert a Hex String to RGB in Python
January 18, 2022
The challenge When working with color values it can sometimes be useful to extract the individual red, green, and blue (RGB) component values for a color.
Read More
How to Create a Hashtag Generator in Python
January 17, 2022
The challenge Write a hashtag generator function that takes a string and returns a #HashCodeString of it.
Read More
How to Move Zeros to the End in Python
January 16, 2022
The challenge Write an algorithm that takes an array and moves all of the zeros to the end, preserving the order of the other elements.
Read More
Regex for Gregorian Date Validation in Python
January 15, 2022
The challenge Write a regular expression that validates the gregorian date in the format “DD.
Read More
How to Create Your Own Python Split Function
January 14, 2022
The challenge Write your own implementation of the built-in split function in Python.
Read More
How to create a Domain Name Validator in Python
January 13, 2022
The challenge Create a domain name validator mostly compliant with RFC 1035, RFC 1123, and RFC 2181
Read More
How to start Java Jar as Service on Linux
January 12, 2022
If you have a Java Jar file, you can run it as a service under Linux/Ubuntu.
Read More
How to write a validDate Regex in Python
January 11, 2022
The challenge Your task is to write a regular expression (regex) that will match a string only if it contains at least one valid date, in the format [mm-dd] (that is, a two-digit month, followed by a dash, followed by a two-digit date, surrounded by square brackets).
Read More
How to Validate Passwords with Regex in Python
January 10, 2022
The challenge You need to write regex that will validate a password to make sure it meets the following criteria:
Read More
How to create a Coordinates Validator in Golang
January 9, 2022
The challenge You need to create a function that will validate if given parameters are valid geographical coordinates.
Read More
How to Validate ISBN-10 numbers in Golang
January 8, 2022
The challenge ISBN-10 identifiers are ten digits long. The first nine characters are digits 0-9.
Read More
How to Create a Java GUI App that shows the Logged-in User and Hostname
January 7, 2022
Create a new file called Application.java and paste the following:
Read More
How to view a Terraform Module’s Output
January 6, 2022
An output in Terraform is a way to view the result of an action that has been performed, or resource that has been created.
Read More
How to Count the Characters in Python
January 5, 2022
The challenge The goal of this challenge is to write a function that takes two inputs: a string and a character.
Read More
How to Install Cuda driver for Nvidia on Ubuntu
January 4, 2022
If you have just upgraded Ubuntu on your AWS g4dn instance and need to install/reinstall Cuda drivers for your Nvidia chipset, then you can run the following:
Read More
How to List all Running Services on Ubuntu
January 3, 2022
If you need to view a list of all the services that are either running or stopped (or both) on an Ubuntu server, then you can use the following command:
Read More
[Solved] conflict: unable to remove repository reference in Docker
January 2, 2022
If you get the following error while trying to delete an image in Docker:
Read More
How to Upgrade an Ubuntu Server
January 1, 2022
Upgrading an Ubuntu Server is quite easy, just follow the below commands:
Read More
How to Solve Two-Sum in Java
December 31, 2021
The challenge Write a function that takes an array of numbers (integers for the tests) and a target number.
Read More
How to Sort the Gift Code in Java
December 30, 2021
The challenge Santa’s senior gift organizer Elf developed a way to represent up to 26 gifts by assigning a unique alphabetical character to each gift.
Read More
How to get the Numericals of a String in Java
December 29, 2021
You are given an input string. For each symbol in the string if it’s the first character occurrence, replace it with a ‘1’, else replace it with the amount of times you’ve already seen it.
Read More
How to Replace Noun Phrases with Pronouns in Golang
December 28, 2021
The challenge A Noun Phrase is a phrase that can be replaced by a pronoun [he/she/it].
Read More
Maximum Positive Integer Rotations in Golang
December 27, 2021
The challenge Write function MaxRot(n) which given a positive integer n returns the maximum number you got doing rotations similar to the above example.
Read More
How to “Dashatize It” in Java
December 26, 2021
The challenge Given a variable n, If n is an integer, Return a string with dash'-'marks before and after each odd integer, but do not begin or end the string with a dash mark.
Read More
How to create a Nickname Generator in Python
December 25, 2021
The challenge Write a nickname generator function, nicknameGenerator that takes a string name as an argument and returns the first 3 or 4 letters as a nickname.
Read More
Comparing Array Multiplicities in Java
December 24, 2021
The challenge Given two arrays a and b write a function comp(a, b) (orcompSame(a, b)) that checks whether the two arrays have the “same” elements, with the same multiplicities.
Read More
How to Find the Sum of Angles in Golang
December 23, 2021
The challenge Find the total sum of internal angles (in degrees) in an n-sided simple polygon.
Read More
How to Find the Max Tree Node Value in Java
December 22, 2021
The challenge You are given a binary tree. Implement the method findMax which returns the maximal node value in the tree.
Read More
How to String Search with a Wildcard in Java
December 21, 2021
The challenge The method below is the most simple string search algorithm.
Read More
How to get the AWS AccountID in Terraform
December 20, 2021
If you are automating AWS resources in Terraform, then you will want to not hardcode things as much as possible.
Read More
Error creating AppStream Fleet – InvalidRoleException
December 19, 2021
If you get the following error when trying to run some Terraform:
Read More
How to Create AWS AppStream resources in Terraform
December 18, 2021
AWS AppStream has finally made its way into the Terraform AWS Provider.
Read More
How to Stop a Goroutine in Golang
December 17, 2021
It’s possible to stop a Goroutine by sending a value into it via a signal channel:
Read More
How to Create an Empty Branch in Git
December 16, 2021
If you need to create an empty branch in git, you can follow one of the below options.
Read More
Get the Consonant Value in Java
December 15, 2021
The challenge Given a lowercase string that has alphabetic characters only and no spaces, return the highest value of consonant substrings.
Read More
How to Check for Factor in Python
December 14, 2021
The challenge This function should test if the factor is a factor of base.
Read More
Understanding Bitwise Operators in Python
December 13, 2021
There are 6 binary/bitwise operators in Python: Complement/Not (~) And (&) Or (|) XOR (^) Left Shift (<<) Right Shift (>>) A fantastic python method to help us along our journey is bin().
Read More
Word Values Challenge in Java
December 12, 2021
The challenge Given a string "abc" and assuming that each letter in the string has a value equal to its position in the alphabet, our string will have a value of 1 + 2 + 3 = 6.
Read More
How to update/upgrade all Homebrew packages
December 11, 2021
If you use Homebrew – and you probably should if you’re on a Mac – then you have probably installed various different applications and packages as time went on.
Read More
[Solved] FirebaseError: Missing or insufficient permissions
December 10, 2021
Using Firebase and get the following error in the console?
Read More
[Solved] Error: Cannot find module ‘../lib/cli.js’
December 9, 2021
If you try and run npm i and get Error: Cannot find module '.
Read More
How to use Git Commit in GitHub Actions
December 8, 2021
If you’ve tried to use git commit in GitHub Actions before, you may have come across the following error messages:
Read More
[Solved] Error acquiring the state lock in Terraform
December 7, 2021
If you have been handed the Acquiring state lock error message about ConditionalCheckFailedException: The conditional request then you have 2 options for fixing it!
Read More
How to Install Chocolatey on Windows PowerShell
December 6, 2021
Chocolatey is a software management automation for Windows that wraps installers, executables, zips, and scripts into compiled packages chocolatey.
Read More
How to run PowerShell in Administrator Mode
December 5, 2021
Some PowerShell commands require elevated permissions to complete. To do this, you must first open PowerShell in Administrator Mode.
Read More
[Solved] Permission denied @ apply2files – /usr/local/lib/node_modules/expo-cli/node_modules/extglob/lib
December 4, 2021
If you have recently upgraded your MacOS operating system, you may get the following error in your terminal when installing some Homebrew packages:
Read More
How to Fix “is not authorized to create managed-rule” in AWS Step Functions
December 3, 2021
If you have ever received the following error is not authorized to create managed-rule when running a Step Function through Terraform’s AWS Provider, then you may have jumped through many different hoops trying to figure out what was wrong.
Read More
How to add Account Condition to AWS Lambda Permissions in Terraform
December 2, 2021
If you need to lock an AWS Lambda function down to a source account for security reasons (PCI.
Read More
How to AssumeRole in Terraform LocalExec Provisioner Block
December 1, 2021
I needed to execute a Terraform null_resource provisioner (local-exec) block to run an awscli command, but assume a role passed down to it.
Read More
Split and then add both sides of an array together in Java
November 30, 2021
The challenge You will receive an array as a parameter that contains 1 or more integers and a number n.
Read More
Highest Rank Number in an Array in Golang
November 29, 2021
The challenge Complete the method which returns the number which is most frequent in the given input array.
Read More
Sort Words by Position Index in Java
November 28, 2021
The challenge Your task is to sort a given string. Each word in the string will contain a single number.
Read More
How to get the Current Machine Name and Logged In User in Java
November 27, 2021
It’s very easy to get the current machine name and logged in user using Java.
Read More
How to set ZSH as your default Shell
November 26, 2021
You may have installed ZSH and every-time you open your terminal, it opens BASH by default.
Read More
How to Base64 Encode/Decode in the Terminal/CLI
November 25, 2021
If you need to either Encode or Decode a Base64 value, there are many ways to achieve this, one of them is directly from your commandline itself!
Read More
How to Enable Syntax Highlighting in Vim
November 24, 2021
There are a few different ways to enable Syntax Highlighting in Vim.
Read More
How to Create an AWS Security Group in Terraform - Securing AWS Resources with Terraform Security Groups
November 23, 2021
Security groups are a critical component for securing resources in AWS.
Read More
How to Create an AWS Security Group in CloudFormation
November 22, 2021
Below is a simple CloudFormation script block to create a Security Group in AWS.
Read More
How to provide Default Values for AWS CloudFormation Parameters
November 21, 2021
AWS CloudFormation is very useful for creating template-able infrastructure definitions.
Read More
How to Validate an AWS CloudFormation Template
November 20, 2021
The AWS CLI comes with a useful subcommand to validate a CloudFormation template.
Read More
How to Reverse Sort Integers in Go
November 19, 2021
The challenge The two oldest ages function/method needs to be completed.
Read More
How to view the Encoded Authorization Failure Message in AWS
November 18, 2021
You may come across a message that reads similar to the following:
Read More
How to run/execute a program from Terraform
November 17, 2021
If you need to run a local application from your Terraform scripts, you can call out to the provisioner local-exec and issue the command syntax:
Read More
How to script AWS AppStream 2.0 ImageBuilder
November 16, 2021
AppStream (2.0) is a fully managed non-persistent desktop and application service for remotely accessing your work.
Read More
How to Reimplement the Unix Uniq Command in Golang
November 15, 2021
The challenge Implement a function which behaves like the uniq command in UNIX.
Read More
How to install GraalVM on Mac
November 14, 2021
Install GraalVM with Homebrew Homebrew is the preferred way to install anything on your Mac.
Read More
How to Generate Random Integers with a Range in Java
November 13, 2021
Java comes with many different ways to generate random integers, even if you need to specify a lower and upper bound to constrain your required value for.
Read More
How to create ArrayList from Array in Java
November 12, 2021
The problem If you have a traditional array, that looks something like the following:
Read More
How to Generate a Random AlphNumeric String in Linux/MacOS
November 11, 2021
If you need to generate a random AlphaNumeric string from the Linux/MacOS Command-Line, then you can use the following script:
Read More
How to check if a string is empty in Go
November 10, 2021
If you need to check if a string is empty in Go, then there are two possible ways to immediately verify this:
Read More
How to read a file line by line in Go
November 9, 2021
If you need to read a file line by line in Go, then you can use the bufio package as follows:
Read More
Floating-point Approximation in Golang
November 8, 2021
The challenge Consider the function f: x -> sqrt(1 + x) - 1 at x = 1e-15.
Read More
All the Ways to Divide an Array in Two in Golang
November 7, 2021
The challenge Write a function partlist that gives all the ways to divide an array of at least two elements into two non-empty parts.
Read More
How to check if a file exists in Go
November 6, 2021
If you need to check if a file exists using Go, then you can use one of the following methods, depending on the version of Go you may be using.
Read More
How to convert a string value to an int in Go
November 5, 2021
If you need to convert a string to an int in Go, then you should use the strconv.
Read More
How to convert an int value to string in Go
November 4, 2021
If you need to convert an int to a string in Go, then you should use the strconv.
Read More
How to Efficiently Concatenate Strings in Go
November 3, 2021
If you are using a version of Go >= 1.10, then you should be using the newer strings.
Read More
How to check if a map contains a key in Go
November 2, 2021
If you have a map in Go and want to only perform an action if it contains a certain key, then you can do so easily:
Read More
How to Remove all Vowels from a String in Java
November 1, 2021
The challenge Remove all vowels from the string. Vowels: a e i o u A E I O U The solution in Java code Option 1:
Read More
How to Loop Forever in Golang
October 31, 2021
If you need to loop forever, or infinitely, in your Go code, then you have 2 options:
Read More
Understanding For Loops in Golang
October 30, 2021
In Golang a for loop is a way to loop through an iterable.
Read More
[Solved] go mod init: modules disabled by GO111MODULE=off
October 29, 2021
You’ve probably just tried to initialise a new Go module, and received the following error:
Read More
How to UpperCase the start of each Word in a String in Golang
October 28, 2021
The challenge The task is to take a string of lower-cased words and convert the sentence to upper-case the first letter/character of each word
Read More
How to Solve Max-Min Arrays in Java
October 27, 2021
The challenge You are given an array of unique elements, and your task is to rearrange the values so that the first max value is followed by the first minimum, followed by second max value then second min value, etc.
Read More
How to Find the Smallest Integer in the Array in Golang
October 26, 2021
The challenge Given an array of integers your solution should find the smallest integer.
Read More
How to do Basic Encryption in Java
October 25, 2021
The challenge The most basic encryption method is to map a char to another char by a certain math rule.
Read More
Forming Unique Array Combinations in Golang
October 24, 2021
The challenge You are given an array of arrays and your task will be to return the number of unique arrays that can be formed by picking exactly one element from each subarray.
Read More
How to Check if String is a Palindrome in Python
October 23, 2021
The challenge Write a function that checks if a given string (case insensitive) is a palindrome.
Read More
How to Find the Squares in Java
October 22, 2021
The challenge Complete the function that takes an odd integer (0 < n < 1000000) which is the difference between two consecutive perfect squares, and return these squares as a string in the format "bigger-smaller".
Read More
How to Get Longest Word in Sentence in Java
October 21, 2021
The challenge When given a string of space-separated words, return the word with the longest length.
Read More
How to Sum all the Integers in a String in Golang
October 20, 2021
The challenge Implement a function that calculates the sum of the integers inside a string.
Read More
How to Reverse a String in Golang
October 19, 2021
The challenge Complete the solution so that it reverses the string passed into it.
Read More
Maximum Different of Int-Array in Java
October 18, 2021
The challenge You must implement a function that returns the difference between the biggest and the smallest value in a list(lst) received as a parameter.
Read More
Indexed Capitalization in Java
October 17, 2021
The challenge Given a string and an array of integers representing indices, capitalize all letters at the given indices.
Read More
How to Spacify a String in Java
October 16, 2021
The challenge Modify the spacify function so that it returns the given string with spaces inserted between each character.
Read More
How to Find the Last Digit of a Huge Number in Golang
October 15, 2021
The challenge For a given list [x1, x2, x3, ..., xn] compute the last (decimal) digit of x1 ^ (x2 ^ (x3 ^ (.
Read More
Find the Maximum Length Difference between Lists/Arrays in Python
October 14, 2021
The challenge You are given two arrays a1 and a2 of strings.
Read More
How to Circularly Sort an Array in Golang
October 13, 2021
The challenge An array is circularly sorted if the elements are sorted in ascending order but displaced, or rotated, by any number of steps.
Read More
Largest Number Groupings in String in Python
October 12, 2021
The challenge You are be given a string that has lowercase letters and numbers.
Read More
How to Alternate String Casing in Golang
October 11, 2021
The challenge Write a function toWeirdCase (weirdcase in Ruby) that accepts a string, and returns the same string with all even indexed characters in each word uppercased, and all odd indexed characters in each word lowercased.
Read More
How to Sort a List of Numbers in Python
October 10, 2021
The challenge Finish the solution so that it sorts the passed-in array/list of numbers.
Read More
How to Validate Usernames with Regex in Java
October 9, 2021
The challenge Write a simple regex to validate a username. Allowed characters are:
Read More
Sort Lexicographical Order of Substrings in Java
October 8, 2021
The challenge Given two arrays of strings a1 and a2 return a sorted array r in lexicographical order of the strings of a1 which are substrings of strings of a2.
Read More
How to Perform Alphabetical Addition in Java
October 7, 2021
The challenge Your task is to add up letters to one letter.
Read More
Roman Numerals Decoder in Golang
October 6, 2021
The challenge Create a function that takes a Roman numeral as its argument and returns its value as a numeric decimal integer.
Read More
How to Subtract from Time in Golang
October 5, 2021
The challenge Clock shows h hours, m minutes and s seconds after midnight.
Read More
How to Encrypt Words in Java
October 4, 2021
The challenge You want to create secret messages which must be deciphered.
Read More
Bit Counting in Golang
October 3, 2021
The challenge Write a function that takes an integer as input, and returns the number of bits that are equal to one in the binary representation of that number.
Read More
How to Find Next Higher Number with Same Bits in Golang
October 2, 2021
The challenge Find the next higher number (int) with same ‘1’- Bits.
Read More
How to Find the First Non-Repeating Character in Golang
October 1, 2021
The challenge Write a function named first_non_repeating_letter that takes a string input, and returns the first character that is not repeated anywhere in the string.
Read More
How to Find the Last Fibonacci Digit in Golang
September 30, 2021
The challenge Return the last digit of the nth element in the Fibonacci sequence (starting with 1,1, to be extra clear, not with 0,1 or other numbers).
Read More
How to Validate an IP Address in Golang
September 29, 2021
The challenge Write an algorithm that will identify valid IPv4 addresses in dot-decimal format.
Read More
How to Fold an Array in Java
September 28, 2021
The challenge In this challenge, you have to write a method that folds a given array of integers by the middle x-times.
Read More
Formatting Strings with Fmt in Golang
September 27, 2021
Fmt provides printing to standard output (usually the console) and formatting of strings capabilities.
Read More
Delete Occurrences of an Element if it occurs more than N times in Java
September 26, 2021
The challenge Given a list lst and a number N, create a new list that contains each number of lst at most N times without reordering.
Read More
How to Read from Standard Input in Golang
September 25, 2021
Reading from “standard input” is really useful if you are making a command-line application and require user input.
Read More
How to Install Golang on WSL/WSL2
September 24, 2021
If you need to install Golang on WSL under Windows 10 or higher, you can follow these few steps.
Read More
How to Validate Phone Numbers in Java
September 23, 2021
The challenge Write a function that accepts a string, and returns true if it is in the form of a phone number.
Read More
How to Sort Array by Frequency in Java
September 22, 2021
The challenge Sort elements in an array by decreasing frequency of elements.
Read More
How to Calculate String Rotation in Java
September 21, 2021
The challenge Write a function that receives two strings and returns n, where n is equal to the number of characters we should shift the first string forward to match the second.
Read More
Compare Strings by Sum of Chars in Java
September 20, 2021
The challenge Compare two strings by comparing the sum of their values (ASCII character code).
Read More
How to Add Two Integers Without Arithmetic Operator in Java
September 19, 2021
The challenge Given two integers a, b, find The sum of them, BUT You are not allowed to use the operators + and –
Read More
Counting Method VarArgs in Java
September 18, 2021
The challenge Count how many arguments a method is called with.
Read More
How to Sum Consecutives in Java
September 17, 2021
The challenge You are given a list/array which contains only integers (positive and negative).
Read More
Replacing Occurences of Words in Java
September 16, 2021
The challenge You are given a string. You must replace any occurrence of the sequence coverage by covfefe, however, if you don’t find the word coverage in the string, you must add covfefe at the end of the string with a leading space.
Read More
Convert String to LeetSpeak in Java
September 15, 2021
The challenge Your task is to write a function toLeetSpeak that converts a regular english sentence to Leetspeak.
Read More
Ordered Count of Characters in Python
September 14, 2021
The challenge Count the number of occurrences of each character and return it as a list of tuples in order of appearance.
Read More
Credit Card Issuer Checking in Java
September 13, 2021
The challenge Given a credit card number we can determine who the issuer/vendor is with a few basic knowns.
Read More
Find Count of Most Frequent Item in an Array in Java
September 12, 2021
The challenge Complete the function to find the count of the most frequent item of an array.
Read More
Return Nth Smallest Element in Java
September 11, 2021
The challenge Given an array/list [] of integers, Find the Nth smallest element in this array of integers
Read More
What temperature does your Mac CPU idle at?
September 10, 2021
Sometimes you will find that your Mac is running very hot, and you may want to keep track of it over time to see if it’s persistent or only a spike.
Read More
Split String into Parts in Java
September 9, 2021
The challenge Split a given string into different strings of equal size.
Read More
[Solved] ERROR 1030 (HY000): Got error 168 from storage engine
September 8, 2021
If you are getting the following error in MySQL: ERROR 1030 (HY000): Got error 168 from storage engine
Read More
Largest Pair Sum in Array in Python
September 7, 2021
The challenge Given a sequence of numbers, find the largest pair sum in the sequence.
Read More
Alphabet Symmetry in Python
September 6, 2021
The challenge Consider the word "abode". We can see that the letter a is in position 1 and b is in position 2.
Read More
Exes and Ohs in Java
September 5, 2021
The challenge Check to see if a string has the same amount of ‘x’s and ‘o’s.
Read More
Sum of Odd Cubed Numbers in Python
September 4, 2021
The challenge Find the sum of the odd numbers within an array, after cubing the initial integers.
Read More
Halving Sum in Python
September 3, 2021
The challenge Given a positive integer n, calculate the following sum:
Read More
Convert a LinkedList to a String in Python
September 2, 2021
The challenge Preloaded for you is a class, struct, or derived data type Node (depending on the language) used to construct linked lists in this challenge:
Read More
Most Digits from List in Python
September 1, 2021
The challenge Find the number with the most digits. If two numbers in the argument array have the same number of digits, return the first one in the array.
Read More
Check if all Values in Array are Smaller in Python
August 31, 2021
The challenge You will be given an array and a limit value.
Read More
Maximum Product from List of Integers in Python
August 30, 2021
The challenge Given an array of integers, Find the maximum product obtained from multiplying 2 adjacent numbers in the array.
Read More
Sum of Array Singles in Python
August 29, 2021
The challenge You are given an array of numbers in which two numbers occur once and the rest occur only twice.
Read More
Flatten and Sort an Array in Python
August 28, 2021
The challenge Given a two-dimensional array of integers, return the flattened version of the array with all the integers in the sorted (ascending) order.
Read More
Playing the Alphabet War in Python
August 27, 2021
The challenge Introduction There is a war and nobody knows – the alphabet war!
Read More
Sum of numbers from 0 to N in Python
August 26, 2021
The challenge We want to generate a function that computes the series starting from 0 and ending until the given number.
Read More
Sorted? yes? no? how? ..in Python
August 25, 2021
The challenge Complete the method which accepts an array of integers, and returns one of the following:
Read More
How to Fix String Casing in Python
August 24, 2021
The challenge You will be given a string that may have mixed uppercase and lowercase letters and your task is to convert that string to either lowercase only or uppercase only based on:
Read More
How to Remove Duplicate Words from a String in Python
August 23, 2021
The challenge Remove all duplicate words from a string, leaving only single (first) words entries.
Read More
How to Validate a Regex PIN Code in Python
August 22, 2021
The challenge ATM machines allow 4 or 6 digit PIN codes and PIN codes cannot contain anything but exactly 4 digits or exactly 6 digits.
Read More
Combine strings and remove duplicates in Python
August 21, 2021
The challenge Take 2 strings s1 and s2 including only letters from ato z.
Read More
How to Repeat by String Index in Golang
August 20, 2021
The challenge Create a function that repeats each character by the amount of it’s index value of the original string.
Read More
How to make an arithmetic function in Java
August 19, 2021
The challenge Given two numbers and an arithmetic operator (the name of it, as a string), return the result of the two numbers having that operator used on them.
Read More
Calculate the Third Angle of a Triangle in Go
August 18, 2021
The challenge You are given two interior angles (in degrees) of a triangle.
Read More
Return Short Long Short in Python
August 17, 2021
The challenge Given 2 strings, a and b, return a string of the form short+long+short, with the shorter string on the outside and the longer string on the inside.
Read More
Hello, Name or World in Python
August 16, 2021
The challenge Define a method hello that returns “Hello, Name!” to a given name, or says Hello, World!
Read More
Add Length to Strings in Python
August 15, 2021
The challenge What if we need the length of the words separated by a space to be added at the end of that same word and have it returned as an array?
Read More
How to Reversing Words in a String in Python
August 14, 2021
The challenge Write a function that reverses the words in a given string.
Read More
How to Remove Duplicates from List in Python
August 13, 2021
The challenge Define a function that removes duplicates from an array of numbers and returns it as a result.
Read More
How to Format Dollars and Cents in Python
August 12, 2021
The challenge The company you work for has just been awarded a contract to build a payment gateway.
Read More
Return `5` without any numbers in Python
August 11, 2021
The challenge Write a function that always returns 5 Sounds easy right?
Read More
How to Generate Range of Integers in Python
August 10, 2021
The challenge Implement a function named generateRange(min, max, step), which takes three arguments and generates a range of integers from min to max, with the step.
Read More
Blue/Green Deployment Techniques in AWS
August 9, 2021
What are Blue/Green Deployments? “Blue/Green Deployments” is a software deployment methodology.
Read More
How to Calculate Powers of 2 in Python
August 8, 2021
The challenge Complete the function that takes a non-negative integer n as input, and returns a list of all the powers of 2 with the exponent ranging from 0 to n (inclusive).
Read More
How to Get Planet Name By ID in Python
August 7, 2021
The challenge Create a function that takes in an id and returns the planet name.
Read More
How to Make a Directory if Not Exists in Python
August 6, 2021
If you want to create a directory in Python, but only if it doesn’t exist, you have the following option.
Read More
Square(n) Sum in Python
August 5, 2021
The challenge Complete the square sum function so that it squares each number passed into it and then sums the results together.
Read More
How to Fill an Array in Python
August 4, 2021
The challenge We want an array, but not just any old array, an array with contents!
Read More
How to Fix the ‘Bad Interpreter’ Error from AWS and Python 3.7
August 3, 2021
This error often looks something like: .zshrc: /usr/local/bin/aws: bad interpreter: /usr/local/opt/python/bin/python3.
Read More
Retrieve records from MSSQLServer in Python
August 2, 2021
The below Python code will create a connection to a MSSQLServer instance, and retrieve data from it back into a variable called tblResults.
Read More
How to Remove Trailing Zeroes in Python
August 1, 2021
The challenge Numbers ending with zeros are boring. They might be fun in your world, but not here.
Read More
How to use Profilers in Python
July 31, 2021
When you have performance problems in your Python application, you can use a Profiler to help you.
Read More
If you can’t Sleep, just count Sheep in Python
July 30, 2021
The challenge Given a non-negative integer, 3 for example, return a string with a murmur: "1 sheep.
Read More
Key-Value CLI Arguments in Python
July 29, 2021
If you have a CommandLine application (CLI) written in Python, you have a number of ways that you can take arguments from the user.
Read More
How to use a Translation Table to Replace Characters in Python
July 28, 2021
Python provides the ability to create Translation Tables. our_text = "This is an example of some text" translation_table = str.
Read More
How to Calculate the Sum of all Numbers in a String in Python
July 27, 2021
Let’s take the following string: numbers = "this 1 2 3 4 5 is not a 8 9 10" How can we sum up all the numbers in this string?
Read More
How to Find all Permutations of a String in Python
July 26, 2021
Python comes with a very useful module called itertools, which allows us to calculate permutations directly.
Read More
How to Fix ‘no basic auth credentials’ with Docker and AWS ECR
July 25, 2021
If you are trying to push a Docker image to AWS ECR (Elastic Container Registry) and you get a no basic auth credentials error.
Read More
How to Reverse Words or Sentences in Python
July 24, 2021
Let’s take the following sentence: words = "These are some words" We can use slices to reverse the order of the string:
Read More
How to solve AttributeError: ‘int’ object has no attribute ‘split’ – make: [sharedmods] Error 1
July 23, 2021
If you get the following error while trying to install something via Homebrew
Read More
How to Push a Docker image to AWS ECR
July 22, 2021
By default, Docker pushes its images to Docker Hub. While Docker Hub is a great way to share both your public and private images, you may find the rest of your infrastructure on one of the prominent cloud providers.
Read More
Complete Guide: How to Base64 Encode a String in Python | Python Base64 Encoding Explained
July 21, 2021
How to Base64 Encode a String in Python: A Comprehensive Guide Welcome to our comprehensive guide on how to python base64 encode a string in Python.
Read More
How to Get 10 Random Numbers in Python
July 20, 2021
The random module allows you to generate choices. import random print(random.
Read More
Get the Middle Character in Python
July 19, 2021
The challenge Return the middle character of the word. If the word’s length is odd, return the middle character.
Read More
Convert String to Datetime in Python
July 18, 2021
If you have a string and want to create a Datetime object out of it in Python, then you can use the Datetime Parse Time method, as follows:
Read More
How to Abort SQL statements after a set time in MariaDB
July 17, 2021
Sometimes you don’t want a SELECT query to run for more than a set amount of time.
Read More
Multiprocessing Pools in Python
July 16, 2021
Python ships with a multiprocessing module that allows your code to run functions in parallel by offloading calls to available processors.
Read More
How to Double Characters in Python
July 15, 2021
The challenge Given a string, you have to return a string in which each character (case-sensitive) is repeated once.
Read More
How to Reverse Words in Python
July 14, 2021
The challenge Complete the function that accepts a string parameter, and reverses each word in the string.
Read More
How to Count by X in Python
July 13, 2021
The challenge Create a function with two arguments that will return an array of the first (n) multiples of (x).
Read More
Calculate the Sum of Pairs in Python
July 12, 2021
The challenge Given a list of integers and a single sum value, return the first two values (parse from the left please) in order of appearance that add up to form the sum.
Read More
How to break a list into multiple lists (with maximum size) in Python
July 11, 2021
If you have a large list and want to create smaller lists of it, with a maximum amount of elements, then:
Read More
Get all dates between two dates inclusive in Python
July 10, 2021
If you want to print out a list of all dates between 2 dates (a date range), then you can use the following script:
Read More
How to Append a Python Dictionary to a Pandas DataFrame
July 9, 2021
If you want to append a Python dictionary to a Pandas DataFrame, you can do this:
Read More
Get Secret from AWS Secrets Manager in Python
July 8, 2021
You can store secrets in AWS Secret Manager and reference their ARN in AWS Systems Secret Manager.
Read More
How to do Binary Addition in Python
July 7, 2021
The challenge Implement a function that adds two numbers together and returns their sum in binary.
Read More
How to Auto-Adjust Excel column widths with pandas.ExcelWriter
July 6, 2021
You have successfully written your pandas Dataframe to an Excel file, but when you open it, all the columns are squashed up against each other.
Read More
How to Sort the Odd in Python
July 5, 2021
The challenge You will be given an array of numbers. You have to sort the odd numbers in ascending order while leaving the even numbers at their original positions.
Read More
Calculate the Sum of the two lowest positive integers in Python
July 4, 2021
The challenge Create a function that returns the sum of the two lowest positive numbers given an array of minimum 4 positive integers.
Read More
Unique In Order in Python
July 3, 2021
The challenge Implement the function unique_in_order which takes as argument a sequence and returns a list of items without any elements with the same value next to each other and preserving the original order of elements.
Read More
How to Change the Hostname on Linux
July 2, 2021
On Linux, you can change the hostname by using the hostnamectl command.
Read More
How to Deploy a Docker Container to Kubernetes
July 1, 2021
Once you have a Docker container, it is really simple to deploy containers to Kubernetes .
Read More
How to Replace Characters with Alphabet Positions in Python
June 30, 2021
The challenge Given a string, replace every letter with its position in the alphabet.
Read More
Returning Highest and Lowest in Python
June 29, 2021
The challenge You are given a string of space-separated numbers and have to return the highest and lowest number.
Read More
How to Subtract Arrays in Python
June 28, 2021
The challenge Implement a difference function, which subtracts one list from another and returns the result.
Read More
How to Detect if Numbers are in Order in Golang
June 27, 2021
The challenge In this challenge, your function receives an array of integers as input.
Read More
Alternate Capitalization in Golang
June 26, 2021
The challenge Given a string, capitalize the letters that occupy even indexes and odd indexes separately, and return as shown below.
Read More
Check if a String is Uppercase in Golang
June 25, 2021
The challenge Create a method IsUpperCase to see whether the string is ALL CAPS.
Read More
How to UpperCase a String in Golang
June 24, 2021
In Go, there are multiple ways to make a string UpperCase, each of them are by using the strings package.
Read More
Return the Shortest Words in Golang
June 23, 2021
The challenge Given a string of words, return the length of the shortest word(s).
Read More
How to Solve Pascal’s Triangle in Python
June 22, 2021
The challenge Given an integer numRows, return the first numRows of Pascal’s triangle.
Read More
Creating a Multiplication Table for a Number in Golang
June 21, 2021
The challenge Your goal is to return multiplication table for number that is always an integer from 1 to 10.
Read More
How to Remove Duplicates in an Array in Golang
June 20, 2021
The challenge Remove the left-most duplicates from a list of integers and return the result.
Read More
How to Dry Potatoes in Golang
June 19, 2021
The challenge All we eat is water and dry matter.
Read More
How to Reverse or Rotate in Golang
June 18, 2021
The challenge The input is a string str of digits. Cut the string into chunks (a chunk here is a substring of the initial string) of size sz (ignore the last chunk if its size is less than sz).
Read More
How to use Coroutines in Kotlin
June 17, 2021
Coroutines are a way to handle multithreading in Kotlin, read more about it from the official docs:
Read More
The Pair Type in Kotlin
June 16, 2021
val pair: Pair<String, Int> = "myKey" to 2 What is a Pair Type?
Read More
Get which Quarter of the Year in Golang
June 15, 2021
The challenge Given a month as an integer from 1 to 12, return to which quarter of the year it belongs as an integer number.
Read More
How to Sum The Strings in Python
June 14, 2021
The challenge Create a function that takes 2 nonnegative integers in form of a string as an input, and outputs the sum (also as a string):
Read More
Fixing: ImmutableService requires getRowNodeId() callback to be implemented, your row data need IDs
June 13, 2021
If you have gotten this error before, then you have been trying to implement a rowData mapping onto Ag-Grid.
Read More
How to Undo the most recent local commits in Git
June 12, 2021
If you have accidentally committed the wrong files into Git, but haven’t yet pushed it to the server, you can recover, or undo your commit as follows:
Read More
Deconstruction in Kotlin
June 11, 2021
There are times when you need to extract an object into a number of variables.
Read More
Playing with passphrases in Python
June 10, 2021
The challenge Everyone knows passphrases. One can choose passphrases from poems, songs, movies names and so on but frequently they can be guessed due to common cultural references.
Read More
What is a Unit in Kotlin?
June 9, 2021
Unit corresponds to the void keyword in Java. What is a Unit in Kotlin?
Read More
How to declare a Function in Kotlin?
June 8, 2021
Functions are reusable pieces of code, often called Blocks, that as the name suggests, act as building blocks to piece together a program.
Read More
The differences between Val and Var in Kotlin
June 7, 2021
Among all the many keywords that Kotlin comes with, there exists val and var.
Read More
Automatically Resize All Columns to Fit in Ag-Grid
June 6, 2021
If you have an Ag-Grid, and want to automatically resize all the columns to fit the width of the viewport, you can use this hack.
Read More
How to Get All Rows in Ag-Grid
June 5, 2021
The easiest way to get the content of all rows’ data, back into a Javascript/Typescript array, is as follows.
Read More
Find the Max Area of an Island in Python
June 4, 2021
The challenge You are given an m x n binary matrix grid.
Read More
Using Apache POI to Get or Create a Sheet in Excel using Java
June 3, 2021
Apache POI provides a mechanism to work with Excel documents.
Read More
A Simplistic TCP Finite State Machine (FSM) in Python
June 2, 2021
The challenge Automatons, or Finite State Machines (FSM), are extremely useful to programmers when it comes to software design.
Read More
How to Resolve Scaling Squared Strings in Java
June 1, 2021
The challenge You are given a string of n lines, each substring being n characters long.
Read More
How to Build a Square in Python
May 31, 2021
The challenge I will give you an integer. Give me back a shape that is as long and wide as the integer.
Read More
Check if String EndsWith in Python
May 30, 2021
The challenge Complete the solution so that it returns true if the first argument(string) passed in ends with the 2nd argument (also a string).
Read More
How to add a Git Submodule to an existing codebase
May 29, 2021
Git submodules are a way of including another repository’s code into an existing codebase, without associating it’s code or tracking history in the parent repository.
Read More
How to LowerCase a String in Python
May 28, 2021
Python comes with a built-in method on all String types, by calling lower() on a String, you can immediately lower the case of that String.
Read More
How to Restart Sound Driver on a Mac
May 27, 2021
So for some strange reason, your audio has stopped playing through the Macbook Pro speakers, but if you plug in an external audio device, it still works?
Read More
Number to Binary Conversion in Python
May 26, 2021
If you have a decimal number, and want to get it’s binary value, you can use the built-in bin method.
Read More
Counting Binary Gaps with Python
May 25, 2021
The challenge A binary gap within a positive integer N is any maximal sequence of consecutive zeros that is surrounded by ones at both ends in the binary representation of N.
Read More
How to Delete a Secret in Kubernetes
May 24, 2021
Once you have a secret in Kubernetes, if you know it’s name, you can delete it.
Read More
How to Decode a Secret in Kubernetes
May 23, 2021
Secrets in Kubernetes are encoded using base64. If you have the secret name, you can ask for its value.
Read More
How to Verify a Secret in Kubernetes
May 22, 2021
You have created a secret, and would like to retrieve it.
Read More
How to Create a Secret in Kubernetes
May 21, 2021
Secrets allow applications to not hardcode usernames, passwords or additional information such as hostnames, IP addresses or other protected/sensitive information.
Read More
How to Divide an Array into Chunks in PHP
May 20, 2021
If you have a single-dimensional array, and want to break it into chunks, you can use the array_chunks method.
Read More
How to setup Certbot wildcard certificate on Apache
May 19, 2021
Certbot allows simple, quick and free provisioning of SSL certificates using LetsEncrypt.
Read More
How to retrieve a Secret from AWS Secrets Manager in the CLI
May 18, 2021
If you have stored a secret in AWS using the Secrets Manager, it is possible to use the AWS CLI to retrieve this value at a later date.
Read More
Determine the Last Digits of N^2 == N in Java
May 17, 2021
The challenge Let’s call an integer number N ‘green’ if N² ends with all of the digits of N.
Read More
How to Expose your App through a Service in Kubernetes
May 16, 2021
Once you have deployed an application into Kubernetes , it will not be available to the outside world.
Read More
How to connect to Bash on a Kubernetes pod
May 15, 2021
If you find yourself needing to jump into a Kubernetes pod to either diagnose an issue, or run a particular command, you can use the bash connectivity functionality available from kubectl itself.
Read More
How to get the Environment variables in a Kubernetes Pod
May 14, 2021
In this comprehensive guide, you will learn how to effectively get and list environment variables within a Kubernetes pod .
Read More
How to find out Cluster Info in Kubernetes
May 13, 2021
In Kubernetes, a cluster is a group of machines working together.
Read More
How to set and use a kubeconfig in Kubernetes
May 12, 2021
The kubeconfig file is the main configuration file that allows access to a Kubernetes cluster.
Read More
How to Map over a List of Lists in Java
May 11, 2021
The challenge Write a function which maps a function over the lists in a list:
Read More
How to Differentiate a Polynomial in Java
May 10, 2021
The challenge Create a function that differentiates a polynomial for a given value of x.
Read More
Find the Sums of Perfect Squares in Java
May 9, 2021
The challenge The task is simply stated. Given an integer n (3 < n < 10<sup>9</sup>), find the length of the smallest list of perfect squares which add up to n.
Read More
[Solved] Error: Failed to execute goal org.springframework.boot:spring-boot-maven-plugin:2.4.4:repackage (repackage)
May 8, 2021
If you have come across this error when trying to build and deploy your Spring Boot Maven application then this post will help you!
Read More
[Solved] No main manifest attribute Solution for Jar/Maven/Gradle/Spring Boot
May 7, 2021
You’ve built a Java project and packaged a .jar file.
Read More
[Solved] Error – The following untracked working tree files would be overwritten by merge
May 6, 2021
So you just tried to do a git pull and got the following error:
Read More
How to Strip Script Tags in PHP
May 5, 2021
If you have some HTML input submitted from a user to your application, before saving it to the database, you may want to strip all <script> tags so that you can prevent cross site scripting attacks and other potential issues.
Read More
How to Make a Spiral in Java
May 4, 2021
The challenge Your task, is to create a NxN spiral with a given size.
Read More
Find the Longest Common Subsequence in Java
May 3, 2021
The challenge from Wikipedia: The longest common subsequence (LCS) problem is the problem of finding the longest subsequence common to all sequences in a set of sequences.
Read More
Find First and Last Position of Element in Sorted Array in Java
May 2, 2021
The challenge Given an array of integers nums sorted in ascending order, find the starting and ending position of a given target value.
Read More
Determine if Number is a Power of Three in Java
May 1, 2021
The challenge Given an integer n, return true if it is a power of three.
Read More
How to Count Binary Substrings in Java
April 30, 2021
The challenge Give a string s, count the number of non-empty (contiguous) substrings that have the same number of 0’s and 1’s, and all the 0’s and all the 1’s in these substrings are grouped consecutively.
Read More
How to Download a CSV file using Javascript
April 29, 2021
Ever wanted to generate a CSV (comma separated values) file directly from the browser, using Javascript?
Read More
Array Range between Integers in Java
April 28, 2021
The challenge Complete the function that takes two integers (a, b, where a < b) and return an array of all integers between the input parameters, including them.
Read More
How to clone a table structure in MySQL
April 27, 2021
I have often needed to clone a table without it’s data in MySQL.
Read More
Number of Rectangles in a Grid in Java
April 26, 2021
The challenge Given a grid of size m x n, calculate the total number of rectangles contained in this rectangle.
Read More
Longest vowel chain in Java
April 25, 2021
The challenge The vowel substrings in the word codewarriors are o,e,a,io.
Read More
Determine Unique String Characters in Java
April 24, 2021
The challenge In this challenge, you will be given two strings a and b and your task will be to return the characters that are not common in the two strings.
Read More
Difference of Volumes of Cuboids in Java
April 23, 2021
The challenge In this simple exercise, you will create a program that will take two lists of integers, a and b.
Read More
Sort by binary ones in Java
April 22, 2021
The challenge In this example you need to implement a function that sort a list of integers based on it’s binary representation.
Read More
Binomial Expansion in Java
April 21, 2021
The challenge Write a program that can do some algebra. Write a function expand that takes in an expression with a single, one character variable, and expands it.
Read More
Consecutive strings in Java
April 20, 2021
The challenge You are given an array(list) strarr of strings and an integer k.
Read More
Determine the Highest Scoring Word in Java
April 19, 2021
The challenge Given a string of words, you need to find the highest scoring word.
Read More
Solving Speed Control in Java
April 18, 2021
The challenge In John’s car the GPS records every s seconds the distance travelled from an origin (distances are measured in an arbitrary but consistent unit).
Read More
Calculate Miles per Gallon to Kilometers per Litre in Java
April 17, 2021
The challenge Create an application that will display the number of kilometers per liter (output) based on the number of miles per imperial gallon (input).
Read More
How to Convert an Int to a List of Ints in Python
April 16, 2021
The challenge Given a non-negative integer, return an array / a list of the individual digits in order.
Read More
Find the Greatest Common Divisor in Java
April 15, 2021
The challenge Find the greatest common divisor of two positive integers.
Read More
How to Create a Circular List in Python
April 14, 2021
The challenge Create a Circular List A circular list is of finite size, but can infititely be asked for its previous and next elements.
Read More
How to Guess the Sequence in Java
April 13, 2021
The challenge You must guess a sequence and it has something to do with the number given.
Read More
Reversed sequence in Java
April 12, 2021
The challenge Build a function that returns an array of integers from n to 1 where n>0.
Read More
Count the Digit in Java
April 11, 2021
The challenge Take an integer n (n >= 0) and a digit d (0 <= d <= 9) as an integer.
Read More
Multiply all elements in an array in Java
April 10, 2021
The challenge Create a function multiplyAll/multiply_all which takes an array of integers as an argument.
Read More
[Solved] Fatal: refusing to merge unrelated histories in Git
April 9, 2021
You have received the dreaded fatal: refusing to merge unrelated histories error!
Read More
Credit Card Mask in Java
April 8, 2021
The challenge Usually when you buy something, you’re asked whether your credit card number, phone number or answer to your most secret question is still correct.
Read More
How to Reverse a Number in Java
April 7, 2021
The challenge Given a number, write a function to output its reverse digits.
Read More
Positions Average in Java
April 6, 2021
The challenge Suppose you have 4 numbers: '0', '9', '6', '4' and 3 strings composed with them:
Read More
Determine the Date by the Day Number in Java
April 5, 2021
The challenge What date corresponds to the nth day of the year?
Read More
Correct the time-string in Java
April 4, 2021
The challenge You have to create a method, that corrects a given time string.
Read More
Shifter Words Challenge in Java
April 3, 2021
The challenge You probably know that some characters written on a piece of paper, after turning this sheet 180 degrees, can be read, although sometimes in a different way.
Read More
Find Maximum and Minimum Values of a List in Java
April 2, 2021
The challenge Make two functions, max and min that take a(n) array/vector of integers list as input and outputs, respectively, the largest and lowest number in that array/vector.
Read More
Valid Parentheses in Java
April 1, 2021
The challenge Write a function that takes a string of parentheses, and determines if the order of the parentheses is valid.
Read More
Boggle Word Checker in Java
March 31, 2021
The challenge Write a function that determines whether a string is a valid guess in a Boggle board, as per the rules of Boggle.
Read More
Build a pile of Cubes in Kotlin
March 30, 2021
The challenge Your task is to construct a building which will be a pile of n cubes.
Read More
Which x for that sum in Kotlin
March 29, 2021
The challenge Consider the sequence U(n, x) = x + 2x**2 + 3x**3 + .
Read More
Reverse the bits in an integer in Java
March 28, 2021
The challenge Write a function that reverses the bits in an integer.
Read More
Invert values in Kotlin
March 27, 2021
The challenge Given a set of numbers, return the additive inverse of each.
Read More
Spring Boot no main manifest attribute, in
March 26, 2021
You have created a ./target/.jar and have tried to run it using java -jar <app>.
Read More
Moduli number system in Kotlin
March 25, 2021
The challenge A number system with moduli is defined by a vector of k moduli, [m1,m2, ···,mk].
Read More
Smallest possible sum in Kotlin
March 24, 2021
The challenge Given an array X of positive integers, its elements are to be transformed by running the following operation on them as many times as required:
Read More
Floating-point Approximation in Kotlin
March 23, 2021
The challenge Given a semi-inclusive interval I = [l, u) (l is in interval I but u is not) l and u being floating numbers (0 <= l < u), an integer n (n > 0) a function f: x (float number) -> f(x) (float number) we want to return as a list the n values:
Read More
Multiplication table in Kotlin
March 22, 2021
The challenge Create an NxN multiplication table, of size provided in parameter.
Read More
Strip Comments in Kotlin
March 21, 2021
The challenge Complete the solution so that it strips all text that follows any of a set of comment markers passed in.
Read More
Experimenting with a sequence of complex numbers in Kotlin
March 20, 2021
The challenge Consider the sequence S(n, z) = (1 - z)(z + z**2 + z**3 + .
Read More
pt-online-schema-change Add Index
March 19, 2021
Percona has a great toolkit that allows you to perform schema changes on a MySQL or MariaDB database without any downtime, it works by creating a new table with the same schema, making the changes to it and applying triggers for insertion, deletion and all updates, all while performing your valuable schema updates for you!
Read More
Sums of Parts in Kotlin
March 18, 2021
The challenge Let us consider this example (array written in general format):
Read More
Diophantine Equation in Kotlin
March 17, 2021
The challenge In mathematics, a Diophantine equation is a polynomial equation, usually with two or more unknowns, such that only the integer solutions are sought or studied.
Read More
Matrix Addition in Java
March 16, 2021
The challenge Write a function that accepts two square matrices (N x N two dimensional arrays), and return the sum of the two.
Read More
Numbers that are a power of their sum of digits in Java
March 15, 2021
The challenge The number 81 has a special property, a certain power of the sum of its digits is equal to 81 (nine squared).
Read More
Integer triangles in Java
March 14, 2021
The challenge You have to give the number of different integer triangles with one angle of 120 degrees which perimeters are under or equal a certain value.
Read More
Minimum path in squares in Java
March 13, 2021
The challenge You’re given a square consisting of random numbers, like so:
Read More
Pascal’s Diagonals in Java
March 12, 2021
The challenge Create a function that returns an array containing the first l digits from the nth diagonal of Pascal’s triangle.
Read More
Maximum Contiguous Sum in Java
March 11, 2021
The challenge Given an unsorted array of integer values, find the maximum positive sum of any contiguous range within the array.
Read More
Fibonacci Streaming in Java
March 10, 2021
The challenge You’re going to provide a needy programmer a utility method that generates an infinite sized, sequential IntStream which contains all the numbers in a fibonacci sequence.
Read More
Base-2 in Java
March 9, 2021
The challenge In this challenge you must convert integers numbers from and to a negative-base binary system.
Read More
Unique digits sequence in Java
March 8, 2021
The challenge Consider the following series: 0,1,2,3,4,5,6,7,8,9,10,22,11,20,13,24...There is nothing special between numbers `` and 10.
Read More
Palindrome integer composition in Java
March 7, 2021
The challenge The palindromic number 595 is interesting because it can be written as the sum of consecutive squares: 6^2 + 7^2 + 8^2 + 9^2 + 10^2 + 11^2 + 12^2 = 595.
Read More
Count IP Addresses in Java
March 6, 2021
The challenge Implement a function that receives two IPv4 addresses, and returns the number of addresses between them (including the first one, excluding the last one).
Read More
Shortest Knight Path in Java
March 5, 2021
The challenge Given two different positions on a chess board, find the least number of moves it would take a knight to get from one to the other.
Read More
All Balanced Parentheses in Java
March 4, 2021
The challenge Write a function that makes a list of strings representing all of the ways you can balance n pairs of parentheses
Read More
Human readable duration format in Java
March 3, 2021
The challenge Your task in order to complete this challenge is to write a function which formats a duration, given as a number of seconds, in a human-friendly way.
Read More
Simple string expansion in Java
March 2, 2021
The challenge Consider the following expansion: // because "ab" repeats 3 times solve("3(ab)") == "ababab" // because "a3(b)" == "abbb", which repeats twice.
Read More
Hamming Numbers in Java
March 1, 2021
The challenge A Hamming number is a positive integer of the form 2i3j5k, for some non-negative integers i, j, and k.
Read More
Block sequence in Java
February 28, 2021
The challenge Consider the following array: [1, 12, 123, 1234, 12345, 123456, 1234567, 12345678, 123456789, 12345678910, 1234567891011.
Read More
Roman Numerals Helper in Java
February 27, 2021
The challenge Create a RomanNumerals class that can convert a roman numeral to and from an integer value.
Read More
Closest pair of points in linearithmic time in Java
February 26, 2021
The challenge Given a number of points on a plane, your task is to find two points with the smallest distance between them in linearithmic O(n log n) time.
Read More
Find sum of top-left to bottom-right diagonals in Java
February 25, 2021
The challenge Given a square matrix (i.e. an array of subarrays), find the sum of values from the first value of the first array, the second value of the second array, the third value of the third array, and so on…
Read More
Sweeping trees in Java
February 24, 2021
The challenge You will be given a list of strings representing nodes in a rooted tree.
Read More
Detect Pangram in Java
February 23, 2021
The challenge A pangram is a sentence that contains every single letter of the alphabet at least once.
Read More
Remove the parentheses in Java
February 22, 2021
The challenge In this challenge you are given a string for example:
Read More
What century is it in Java
February 21, 2021
The challenge Return the century of the input year. The input will always be a 4 digit string, so there is no need for validation.
Read More
Lost number in number sequence in Java
February 20, 2021
The challenge An ordered sequence of numbers from 1 to N is given.
Read More
Simple string reversal in Java
February 19, 2021
The challenge In this challenge, we are going to reverse a string while maintaining the spaces (if any) in their original place.
Read More
int32 to IPv4 in Java
February 18, 2021
The challenge Take the following IPv4 address: 128.32.10.1 This address has 4 octets where each octet is a single byte (or 8 bits).
Read More
Perimeter of squares in a rectangle in Java
February 17, 2021
The challenge The drawing shows 6 squares the sides of which have a length of 1, 1, 2, 3, 5, 8.
Read More
Palindrome chain length in Java
February 16, 2021
The challenge Number is a palindrome if it is equal to the number with digits in reversed order.
Read More
String array duplicates in Java
February 15, 2021
The challenge You are given an array of strings and your task is to remove all consecutive duplicate letters from each string in the array.
Read More
Even or Odd Array Sum in Java
February 14, 2021
The challenge Given a list of numbers, determine whether the sum of its elements is odd or even.
Read More
String Permutations in Java
February 13, 2021
The challenge In this challenge, you have to create all permutations of an input string and remove duplicates if present.
Read More
Remove a Specific Element of an Array in Java
February 12, 2021
The challenge You will be given a certain array of length n, such that n > 4, having positive and negative integers but there will be no zeroes and all the elements will occur once in it.
Read More
Upside down numbers in Java
February 11, 2021
The challenge Consider the numbers 6969 and 9116. When you rotate them 180 degrees (upside down), these numbers remain the same.
Read More
Rotate matrix counter-clockwise N times in Java
February 10, 2021
The challenge In this challenge your mission is to rotate matrix counter-clockwise N times.
Read More
Unable to import module “lambda_function”: No module named “pymysql”
February 9, 2021
If you receive the following error message when trying to run pymysql on AWS Lambda:
Read More
Square Matrix Multiplication in Java
February 8, 2021
The challenge Write a function that accepts two square (NxN) matrices (two dimensional arrays), and returns the product of the two.
Read More
Count the divisible numbers in Java
February 7, 2021
The challenge Complete the function that takes 3 numbers x, y and k (where x ≤ y), and returns the number of integers within the range [x.
Read More
Averages of numbers in Java
February 6, 2021
The challenge Get the averages of these numbers Write a method, that gets an array of integer-numbers and return an array of the averages of each integer-number and his follower, if there is one.
Read More
Decimal to Factorial and Back in Java
February 5, 2021
The challenge Coding decimal numbers with factorials is a way of writing out numbers in a base system that depends on factorials, rather than powers of numbers.
Read More
Vowel Count in Java
February 4, 2021
The challenge Return the number (count) of vowels in the given string.
Read More
Equal Sides Of An Array in Java
February 3, 2021
The challenge You are going to be given an array of integers.
Read More
Largest 5 digit number in a series in Java
February 2, 2021
The challenge In the following 6 digit number: 283910 91 is the greatest sequence of 2 consecutive digits.
Read More
Next smaller number with the same digits in Java
February 1, 2021
The challenge Write a function that takes a positive integer and returns the next smaller positive integer containing the same digits.
Read More
Count of positives / sum of negatives in Java
January 31, 2021
The challenge Given an array of integers. Return an array, where the first element is the count of positives numbers and the second element is sum of negative numbers.
Read More
Find the stray number in Java
January 30, 2021
The challenge You are given an odd-length array of integers, in which all of them are the same, except for one single number.
Read More
4 By 4 Skyscrapers in Java
January 29, 2021
The challenge In a grid of 4 by 4 squares you want to place a skyscraper in each square with only some clues:
Read More
How to Fix: package org.junit.jupiter.api does not exist
January 28, 2021
The problem If you have received the package org.junit.jupiter.api deos not exist error when trying to run a JUnit Java Test with Maven, it’s because of a missing dependency in your pom.
Read More
How to Programmatically Filter ag-Grid Columns in Angular
January 27, 2021
You can easily control the column filtering in ag-Grid by using the getFilterInstance and setModel methods associated to the column you need filtering.
Read More
Sum by Factors in Java
January 26, 2021
The challenge Given an array of positive or negative integers
Read More
Count the divisors of a number in Java
January 25, 2021
The challenge Count the number of divisors of a positive integer n.
Read More
My smallest code interpreter in Java
January 24, 2021
The challenge Inspired from real-world Brainf**k, we want to create an interpreter of that language which will support the following instructions:
Read More
Pick peaks in Java
January 23, 2021
The challenge Write a function that returns the positions and the values of the “peaks” (or local maxima) of a numeric array.
Read More
Number of trailing zeros of N in Java
January 22, 2021
The challenge Write a program that will calculate the number of trailing zeros in a factorial of a given number.
Read More
Alphabetic Anagrams in Java
January 21, 2021
The challenge Consider a “word” as any sequence of capital letters A-Z (not limited to just “dictionary words”).
Read More
Remove file from Git without deleting locally
January 20, 2021
If you find yourself in a position where you have already committed some files to git, and they are in the remote repository already, but you want to remove them from you repository without deleting them locally, you can do the following:
Read More
Recover a secret string from random triplets in Java
January 19, 2021
The challenge There is a secret string which is unknown to you.
Read More
Range Extraction in Java
January 18, 2021
The challenge A format for expressing an ordered list of integers is to use a comma separated list of either
Read More
Reversed Words in Java
January 17, 2021
The challenge Complete the solution so that it reverses all of the words within the string passed in.
Read More
CamelCase Method in Java
January 16, 2021
The challenge Write a simple CamelCase method for strings. All words must have their first letter capitalized without spaces.
Read More
Even or Odd in Java
January 15, 2021
The challenge Create a function that takes an integer as an argument and returns “Even” for even numbers or “Odd” for odd numbers.
Read More
Square Every Digit in Java
January 14, 2021
The challenge You need to square every digit of a number and concatenate them.
Read More
Simple number sequence in Java
January 13, 2021
The challenge You are given a string of numbers in sequence and your task will be to return the missing number.
Read More
Roman Numerals Encoder in Java
January 12, 2021
The challenge Create a function taking a positive integer as its parameter and returning a string containing the Roman Numeral representation of that integer.
Read More
First Variation on Caesar Cipher in Java
January 11, 2021
The challenge The action of a Caesar cipher is to replace each plaintext letter (plaintext letters are from ‘a’ to ‘z’ or from ‘A’ to ‘Z’) with a different one a fixed number of places up or down the alphabet.
Read More
Century From Year in Java
January 10, 2021
The challenge The first century spans from the year 1 up to and including the year 100, The second – from the year 101 up to and including the year 200, etc.
Read More
Find the Smallest Number in Java
January 9, 2021
The challenge You have a positive number n consisting of digits.
Read More
Convert Array to Tree in Java
January 8, 2021
The challenge You are given a non-null array of integers. Implement the method arrayToTree which creates a binary tree from its values in accordance to their order, while creating nodes by depth from left to right.
Read More
Common Denominators in Java
January 7, 2021
The challenge You will have a list of rationals in the form
Read More
Primes in Numbers in Java
January 6, 2021
The challenge Given a positive number n > 1 find the prime factor decomposition of n.
Read More
Maximum subarray sum in Java
January 5, 2021
The challenge The maximum sum subarray problem consists in finding the maximum sum of a contiguous subsequence in an array or list of integers:
Read More
Validate Credit Card Number in Java
January 4, 2021
The challenge Let’s implement the Luhn Algorithm, which is used to help validate credit card numbers.
Read More
Find the unique number using Java
January 3, 2021
The challenge There is an array with some numbers. All numbers are equal except for one.
Read More
Find The Parity Outlier in Java
January 2, 2021
The challenge You are given an array (which will have a length of at least 3, but could be very large) containing integers.
Read More
Find the missing letter using Java
January 1, 2021
The challenge Write a method that takes an array of consecutive (increasing) letters as input and that returns the missing letter in the array.
Read More
Determine the order of braces is valid using Java
December 31, 2020
The challenge Write a function that takes a string of braces, and determines if the order of the braces is valid.
Read More
[Solved] PKIX path building failed: unable to find valid certification path to requested target
December 30, 2020
The problem It may happen to you that when you try and pull some Java dependencies, you will get the annoying PKIX path building failed: sun.
Read More
How to Find the odd int in Java
December 29, 2020
The challenge Given an array of integers, find the one that appears an odd number of times.
Read More
Count the number of Duplicates in Java
December 28, 2020
The challenge Write a function that will return the count of distinct case-insensitive alphabetic characters and numeric digits that occur more than once in the input string.
Read More
Calculating Simple Max Digit Sum in Java
December 27, 2020
The challenge In this challenge, you will be given an integer n and your task will be to return the largest integer that is <= n and has the highest digit sum.
Read More
The String Combat Challenge in Java
December 26, 2020
The challenge After a long conflict, the rulers of Nek and Glo have decided that a final duel should decide the fate of their countries.
Read More
Solving Single Word Pig Latin in Java
December 25, 2020
The challenge Pig Latin is an English language game where the goal is to hide the meaning of a word from people not aware of the rules.
Read More
Count the Days in Java
December 24, 2020
The challenge Little Annie is very excited for upcoming events. She want’s to know how many days she have to wait for a specific event.
Read More
Java HashMap Create or Increment Value
December 23, 2020
If you are using a HashMap to keep a running total of a series of elements, then you often need to increment a HashMap item, but if it doesn’t exist in the map yet, then you need to rather create it.
Read More
Get the Strongest even number in an interval in Java
December 22, 2020
The challenge A strongness of an even number is the number of times we can successively divide by 2 until we reach an odd number starting with an even number n.
Read More
What time is it? in Java
December 21, 2020
The challenge How many times have we been asked this simple question in our daily lives by family, friends and strangers alike?
Read More
Building a String Pyramid in Java
December 20, 2020
The challenge You have to build a pyramid. This pyramid should be built from characters from a given string.
Read More
Cartesian coordinates from degree angle in Java
December 19, 2020
The challenge Write a simple function that takes polar coordinates (an angle in degrees and a radius) and returns the equivalent cartesian coordinates (rounded to 10 places).
Read More
Sort array by sorting its smallest sub-array in Java
December 18, 2020
The challenge Given an array of integers, arr, find out 2 indices m, n(0<=m<=arr.
Read More
Excessively Abundant Numbers in Java
December 17, 2020
The challenge An abundant number or excessive number is a number for which the sum of its proper divisors is greater than the number itself.
Read More
Unique Substring From Joined Strings in Java
December 16, 2020
The challenge Write a function that takes two strings, A and B, and returns the length of the longest possible substring that can be formed from the concatenation of either A + B or B + A containing only characters that do not appear in both A and B.
Read More
Converting from Base 10 to 16 (Decimal to Hex) in Java
December 15, 2020
The challenge Convert an integer which is base 10, to a hexadecimal base 16 string.
Read More
How to Format Numbers by Prepending 0 to single-digit numbers in Javascript
December 14, 2020
If you have a single-digit number, and you need to format it to always have at-least two digits, then you can use the below function to solve your problem:
Read More
String polynomial converter in Java
December 13, 2020
The challenge Your task is to programe: String convertToString(int[] pol) {.
Read More
How to Remove all Exclamation Marks from a String in Java
December 12, 2020
The challenge Write function RemoveExclamationMarks which removes all exclamation marks from a given string.
Read More
How to Convert a Number to a String in Java
December 11, 2020
The challenge We need a function that can transform a number into a string.
Read More
How to Remove Spaces in a String in Java
December 10, 2020
The challenge Simple, remove the spaces from the string, then return the resultant string.
Read More
How many stairs will Suzuki climb in 20 years? in Java
December 9, 2020
The challenge Suzuki is a monk who climbs a large staircase to the monastery as part of a ritual.
Read More
Determine if N is divisible by X and Y in Java
December 8, 2020
The challenge Create a function that checks if a number n is divisible by two numbers x AND y.
Read More
How to Sum a Mixed Array in Java
December 7, 2020
The challenge Given an array of integers as strings and numbers, return the sum of the array values as if all were numbers.
Read More
Calculate the Volume of a Cuboid in Java
December 6, 2020
A Cuboid is a geometric object that is more or less cubic in shape.
Read More
Find the first non-consecutive number in Java
December 5, 2020
The challenge Your task is to find the first element of an array that is not consecutive.
Read More
Alternating String Casing in Java
December 4, 2020
The challenge altERnaTIng cAsE <=> ALTerNAtiNG CaSe Define String.prototype.toAlternatingCase (or a similar function/method such as to_alternating_case/toAlternatingCase/ToAlternatingCase in your selected language; see the initial solution for details) such that each lowercase letter becomes uppercase and each uppercase letter becomes lowercase.
Read More
Solving the Pythagorean Triple in Java
December 3, 2020
The challenge Given an array of 3 integers a, b and c, determine if they form a pythagorean triple.
Read More
How to Correct the Mistakes of the Character Recognition Software in Java
December 2, 2020
The challenge Character recognition software is widely used to digitise printed texts.
Read More
Solving “Duck Duck Goose” in Java
December 1, 2020
The challenge The objective of Duck, duck, goose is to walk in a circle, tapping on each player’s head until one is chosen.
Read More
Calculate averages from an int array in Java
November 30, 2020
The challenge Write function avg which calculates average of numbers in given list.
Read More
How to Rotate a String in Java
November 29, 2020
Rotating a String in Java is a common interview question, and albeit it quite a simple one, it tests many fundamental concepts.
Read More
Calculate the Sum without highest and lowest number in Java
November 28, 2020
The challenge Sum all the numbers of the array except the highest and the lowest element (the value, not the index!
Read More
How to Convert a String to an Array in Java
November 27, 2020
Java makes it easy to convert a string to an array by providing the built-in .
Read More
How to Loop and Combine Three Strings in Java
November 26, 2020
The challenge Create a function that will return a string that combines all of the letters of the three inputed strings in groups.
Read More
How to Localize The Barycenter of a Triangle in Java
November 25, 2020
The challenge The medians of a triangle are the segments that unit the vertices with the midpoint of their opposite sides.
Read More
How to Calculate a Valid Square in Java
November 24, 2020
The challenge Given the coordinates of four points in 2D space p1, p2, p3 and p4, return true if the four points construct a square.
Read More
How to Calculate Age Range Compatibility as an Equation in Java
November 23, 2020
The challenge Everybody knows the classic “half your age plus seven” dating rule that a lot of people follow (including myself).
Read More
How to Find the Longest Mountain in Array in Java
November 22, 2020
The challenge Let’s call any (contiguous) subarray B (of A) a mountain if the following properties hold:
Read More
How to tell what the CHMOD value of a file/directory is
November 21, 2020
chmod alters the permissions for a file or directory, you could allow full read/write access to a file or directory by running the following command:
Read More
How to Solve the “Decode a String” Challenge in Java
November 20, 2020
The challenge Given an encoded string, return its decoded string.
Read More
How to cleanup a /var/log/journal in Linux
November 19, 2020
You may find your /var/log/journal directory taking up a lot of disk-space.
Read More
How to Find the Maximum Difference Between Node and Ancestor in Java
November 18, 2020
The challenge Given the root of a binary tree, find the maximum value V for which there exist different nodes A and B where V = |A.
Read More
How to Find the Integral using Java
November 17, 2020
The challenge Create a function that finds the integral of the expression passed.
Read More
How to Build Strings from a Size in Java
November 16, 2020
The challenge Write a function stringy that takes a size and returns a string of alternating '1s' and '0s'.
Read More
Best Time to Buy and Sell Stock in Java
November 15, 2020
The challenge Say you have an array for which the ith element is the price of a given stock on day i.
Read More
How to Solve the “To square(root) or not to square(root)” Challenge in Java
November 14, 2020
The challenge Write a method, that will get an integer array as parameter and will process every number from this array.
Read More
Solving the Rule of Divisibility by 13 in Java
November 13, 2020
The challenge "A divisibility rule is a shorthand way of determining whether a given integer is divisible by a fixed divisor without performing the division, usually by examining its digits.
Read More
How to Calculate Buddy Strings in Java
November 12, 2020
The challenge Given two strings A and B of lowercase letters, return true if you can swap two letters in A so the result is equal to B, otherwise, return false.
Read More
How to Flip a Binary Matrix in Java
November 11, 2020
The challenge Given a binary matrix A, we want to flip the image horizontally, then invert it, and return the resulting image.
Read More
How to Tilt a Binary Tree in Java
November 10, 2020
The challenge Given the root of a binary tree, return the sum of every tree node’s tilt.
Read More
How to solve the House Robber Challenge in Java
November 9, 2020
The challenge You are a professional robber planning to rob houses along a street.
Read More
How to Solve the Bag of Tokens Challenge in Java
November 8, 2020
The challenge You have an initial power of P, an initial score of ``, and a bag of tokens where tokens[i] is the value of the i<sup>th</sup> token (0-indexed).
Read More
How to Find the Smallest Divisor Given a Threshold in Java
November 7, 2020
The challenge Given an array of integers nums and an integer threshold, we will choose a positive integer divisor and divide all the array by it and sum the result of the division.
Read More
How to Sort and Star a String Array in Java
November 6, 2020
The challenge You will be given a vector of strings. You must sort it alphabetically (case-sensitive, and based on the ASCII values of the chars) and then return the first value.
Read More
How to Count Consecutive Characters in Java
November 5, 2020
The challenge Given a string s, the power of the string is the maximum length of a non-empty substring that contains only one unique character.
Read More
How to Abbreviate a Two Word Name in Java
November 4, 2020
The challenge Write a function to convert a name into initials.
Read More
How to Sort a Linked List using Insertion Sort in Java
November 3, 2020
The challenge Sort a linked list using insertion sort. A graphical example of insertion sort.
Read More
How to Remove First and Last Character in a String in Java
November 2, 2020
The challenge The goal is to create a function that removes the first and last characters of a string.
Read More
How to Distribute Halloween Candies by Rating Value in Java
November 1, 2020
The challenge There are N children standing in a line. Each child is assigned a rating value.
Read More
How to Distribute Halloween Candies in Java
October 31, 2020
The challenge You have n candies, the i<sup>th</sup> candy is of type candies[i].
Read More
How to Solve the Maximize Distance to Closest Person Challenge in Java
October 30, 2020
The challenge You are given an array representing a row of seats where seats[i] = 1 represents a person sitting in the i<sup>th</sup> seat, and seats[i] = 0 represents that the i<sup>th</sup> seat is empty (0-indexed).
Read More
How to Get Character from ASCII Value in Java
October 29, 2020
The challenge Write a function which takes a number and returns the corresponding ASCII char for that value.
Read More
Finding a Needle in a Haystack in Java
October 28, 2020
The challenge Can you find the needle in the haystack?
Read More
How to Solve the Champagne Tower in Java
October 27, 2020
The challenge We stack glasses in a pyramid, where the first row has 1 glass, the second row has 2 glasses, and so on until the 100th row.
Read More
How to Solve the 132 Pattern in Java
October 26, 2020
The challenge Given an array of n integers nums, a 132 pattern is a subsequence of three integers nums[i], nums[j] and nums[k] such that i < j < k and nums[i] < nums[k] < nums[j].
Read More
How to Replace all Vowels in a String in Java
October 25, 2020
The challenge Replace all vowel to exclamation mark in the sentence.
Read More
How to Get the N-th Power in Java
October 24, 2020
The challenge You are given an array with positive numbers and a number N.
Read More
How to Count the Minimum Depth of a Binary Tree in Java
October 23, 2020
The challenge Given a binary tree, find its minimum depth.
Read More
How to Solve the House Robber II Challenge in Java
October 22, 2020
The challenge You are a professional robber planning to rob houses along a street.
Read More
How to Clone a Graph in Java
October 21, 2020
The challenge Given a reference of a node in a connected undirected graph.
Read More
How to Return Random Values in Java
October 20, 2020
The challenge Ghost objects are instantiated without any arguments. Ghost objects are given a random color attribute of white" or “yellow” or “purple” or “red” when instantiated
Read More
How to Compare Version Numbers in Java
October 19, 2020
The challenge Compare two version numbers version1 and version2. If <em>version1</em>&nbsp;>&nbsp;<em>version2</em> return 1; if <em>version1</em>&nbsp;<&nbsp;<em>version2</em> return -1;otherwise return ``.
Read More
How to Return the First N Elements in Java
October 18, 2020
The challenge Create a method take that accepts a list/array and a number n, and returns a list/array array of the first n elements from the list/array.
Read More
How to Search a 2d Matrix/Array in Java
October 17, 2020
The challenge Write an efficient algorithm that searches for a value in an m x n matrix.
Read More
Calculate the Surface Area and Volume of a Box with Java
October 16, 2020
The challenge Write a function that returns the total surface area and volume of a box as an array: [area, volume]
Read More
Find Numbers which are Divisible by given Number in Java
October 15, 2020
The challenge Complete the function which takes two arguments and returns all numbers which are divisible by the given divisor.
Read More
How to Split a Subdirectory to a New Git Repository and Keep the History
October 14, 2020
There comes a time when you need to split out a subdirectory into it’s own git repo.
Read More
Get the Maximum XOR of Two Numbers in an Array in Java
October 13, 2020
The challenge Given a non-empty array of numbers, a, a1, a2, … , an-1, where 0 ≤ ai < 231.
Read More
How to Get the Opposite of a Number in Java
October 12, 2020
The challenge Given a number, find its opposite. Examples: 1: -1 14: -14 -34: 34 The solution in Java We return the number itself multiplied by a negative 1.
Read More
How to Find the Area or Perimeter of a 4-sided Polygon using Java
October 11, 2020
The challenge You are given the length and width of a 4-sided polygon.
Read More
How to Parse Int from Char in Java
October 10, 2020
The challenge We take in a String where the first place contains a number, write a function that takes in this String and returns an int containing it.
Read More
How to Search a Binary Tree in Java
October 9, 2020
The challenge Given a sorted (in ascending order) integer array nums of n elements and a target value, write a function to search target in nums.
Read More
How to Rotate a Singly Linked List in Java
October 8, 2020
The challenge Given a linked list, rotate the list to the right by k places, where k is non-negative.
Read More
How to Insert into a Binary Search Tree using Java
October 7, 2020
The challenge You are given the root node of a binary search tree (BST) and a value to insert into the tree.
Read More
Find the Complement of Base 10 Integer in Java
October 6, 2020
The challenge Every non-negative integer N has a binary representation. For example, 5 can be represented as "101" in binary, 11 as "1011" in binary, and so on.
Read More
Solve the Number of Recent Calls Challenge in Java
October 5, 2020
The challenge You have a RecentCounter class which counts the number of recent requests within a certain time frame.
Read More
How to Calculate the Summation of a Number in Java
October 4, 2020
The challenge Write a program that finds the summation of every number from 1 to num.
Read More
How to Calculate all Unique Combinations of a Target using Backtracking in Java
October 3, 2020
The challenge Given an array of distinct integers candidates and a target integer target, return a list of all unique combinations of candidates where the chosen numbers sum to target.
Read More
Who is going to pay for the wall? in Python
October 2, 2020
The challenge Don Drumphet lives in a nice neighborhood, but one of his neighbors has started to let his house go.
Read More
Calculate the Total Amount of Points using Java
October 1, 2020
The challenge Our football team finished the championship. The result of each match look like “x:y”.
Read More
Calculate the biggest of 3 numbers using Java
September 30, 2020
The challenge Task Given three integers a ,b ,c, return the largest number obtained after inserting the following operators and brackets: +, *, () In other words , try every combination of a,b,c with [*+()] , and return the Maximum Obtained Consider an Example : With the numbers are 1, 2 and 3 , here are some ways of placing signs and brackets:
Read More
Find the missing element between two arrays in Python
September 29, 2020
The challenge Given two integer arrays where the second array is a shuffled duplicate of the first array with one element missing, find the missing element.
Read More
How to Count an Array of Boolean Values in Java
September 28, 2020
The challenge Consider an array/list of sheep where some sheep may be missing from their place.
Read More
How to Solve the Car Pooling Challenge in Java
September 27, 2020
The challenge You are driving a vehicle that has capacity empty seats initially available for passengers.
Read More
How to Repeat a String in Java
September 26, 2020
The challenge Write a function called repeat_str which repeats the given string src exactly count times.
Read More
How to Find the Smallest Integer in the Array in Java
September 25, 2020
The challenge Given an array of integers your solution should find the smallest integer.
Read More
How to Count Odd Numbers Below N using Java
September 24, 2020
The challenge Given a number n, return the number of positive odd numbers below n, EASY!
Read More
How to get the Length of the Last Word in a String using Java
September 23, 2020
The challenge Given a string s consists of upper/lower-case alphabets and empty space characters ' ', return the length of last word (last word means the last appearing word if we loop from left to right) in the string.
Read More
How to Convert a Number to Reversed Array of Digits in Java
September 22, 2020
The challenge Given a random non-negative number, you have to return the digits of this number within an array in reverse order.
Read More
How to Solve Unique Paths III in Java
September 21, 2020
The challenge On a 2-dimensional grid, there are 4 types of squares:
Read More
How to Find the Mean/Average of a List of Numbers in Java
September 20, 2020
The challenge Find the mean (average) of a list of numbers in an array.
Read More
How to Calculate BMI in Java
September 19, 2020
The challenge BMI stands for Body Mass Index and is a value derived from the mass and height of a person.
Read More
How to Solve the Robot Bounded In Circle Challenge in Java
September 18, 2020
The challenge On an infinite plane, a robot initially stands at (0, 0) and faces north.
Read More
How to Convert a String to a Number in Java
September 17, 2020
The challenge We need a function that can transform a string into a number.
Read More
How to Convert an Integer to Binary using Java
September 16, 2020
The challenge Given a non-negative integer n, write a function toBinary/ToBinary which returns that number in a binary format.
Read More
How to create a Logical Operator in Java
September 15, 2020
Exclusive “or” (xor) Logical Operator In some scripting languages like PHP, there exists a logical operator (e.
Read More
How to merge sorted integer arrays (without duplicates) in Java
September 14, 2020
The challenge Write a function that merges two sorted arrays into a single one.
Read More
Find the Force of Gravity Between Two Objects with Java
September 13, 2020
The challenge Your job is to find the gravitational force between two spherical objects (obj1 , obj2).
Read More
How to zoom text by mouse wheel in IntelliJ Idea
September 12, 2020
It’s a common requirement to be able to zoom in or out while working in the code editor in IntelliJ Idea.
Read More
Playing the Bulls and Cows Game in Java
September 11, 2020
The challenge You are playing the following Bulls and Cows game with your friend: You write down a number and ask your friend to guess what the number is.
Read More
Calculate the Sum of Root To Leaf Binary Numbers in Java
September 10, 2020
The challenge Given a binary tree, each node has value `` or 1.
Read More
Remove an Exclamation Mark from the End of String using Python
September 9, 2020
The challenge Remove a exclamation mark from the end of string.
Read More
How to “Rock Paper Scissors” in Java
September 8, 2020
The challenge Let’s play Rock Paper Scissors! You have to return which player won!
Read More
Compare within Margin using Python
September 7, 2020
The challenge Create a function close_compare that accepts 3 parameters: a, b, and an optional margin.
Read More
Get the mean of an array in Java
September 6, 2020
The challenge It’s the academic year’s end, fateful moment of your school report.
Read More
Remove the time challenge in Python
September 5, 2020
The challenge You’re re-designing a blog and the blog’s posts have the following format for showing the date and time a post was made:
Read More
How to Convert Hex to Decimal in Java
September 4, 2020
The challenge Write a function that converts an input string contains a hex value, and return a decimal.
Read More
Character with Longest Consecutive Repetition in Java
September 3, 2020
The challenge For a given string s find the character c (or C) with longest consecutive repetition and return:
Read More
Check if List contains Item in Python
September 2, 2020
The challenge Create a method that accepts a list and an item, and returns true if the item belongs to the list, otherwise false.
Read More
How To Create a User and Grant Permissions in MySQL
September 1, 2020
How to create a user CREATE USER 'myuser'@'localhost' IDENTIFIED BY 'mypassword'; How to delete a user DROP USER 'myuser'@'localhost'; How to grant permissions GRANT ALL PRIVILEGES ON * .
Read More
How to Remove Vowels with Python
August 31, 2020
The challenge Create a function called shortcut to remove all the lowercase vowels in a given string.
Read More
How to find all files in a directory with extension
August 30, 2020
I needed to find all files in a directory on Linux that ended with the file extension .
Read More
How to Sort a List in Python
August 29, 2020
In this tutorial, you will learn how to sort a list in Python, by following the below three steps:
Read More
Cryptanalysis Word Patterns in Java
August 28, 2020
The challenge In cryptanalysis, words patterns can be a useful tool in cracking simple ciphers.
Read More
How to divide a number in Python
August 27, 2020
The challenge Your task is to create functionisDivideBy (or is_divide_by) to check if an integer number is divisible by each out of two arguments.
Read More
How to Read Kubernetes Secrets
August 26, 2020
Kubernetes secrets is a great way to store secret values that only Kubernetes can access in your hosted applications.
Read More
Backspaces in String Challenge using Java
August 25, 2020
The challenge Assume "#" is like a backspace in string. This means that string "a#bc#d" actually is "bd"
Read More
How many times to Kaprekar’s constant using Python
August 24, 2020
Introduction 6174 is known as Kaprekar’s constant after the Indian mathematician D.
Read More
How to check if a String is a Number in Python
August 23, 2020
The challenge Given a string s, write a method (function) that will return true if its a valid single integer or floating number or false if its not.
Read More
How to Write a Custom Comparator in Python
August 22, 2020
Generally, you want to use the built-in sorted() function which takes a custom comparator as its parameter.
Read More
How to delete an AWS WAF – Web ACL
August 21, 2020
Usually, it’s quite easy to delete an AWS WAF, or Web ACL.
Read More
How to Sort an Integer in Python
August 20, 2020
Let’s say that you have an integer with value of 9271 and you want to sort it either ascending(1279) or descending(9721).
Read More
How to Copy a File in Python
August 18, 2020
In this tutorial, you will learn how to copy a file using Python from a directory to another directory, or if you’re on Windows, then from a Folder to another Folder.
Read More
Conway’s Game of Life – Unlimited Edition – in Python
August 17, 2020
What is this? Conways’s Game Of Life is a Cellular Automation Method created by John Conway.
Read More
Most frequently used words in a text with Python
August 16, 2020
The challenge Write a function that, given a string of text (possibly with punctuation and line-breaks), returns an array of the top-3 most occurring words, in descending order of the number of occurrences.
Read More
The SongDecoder Dubstep Challenge with Java
August 15, 2020
The challenge Polycarpus works as a DJ in the best Berland nightclub, and he often uses dubstep music in his performance.
Read More
Break camelCase Challenge in Java
August 14, 2020
The challenge Complete the solution so that the function will break up camel casing, using a space between words.
Read More
Sort Binary Tree by Levels using Python
August 13, 2020
The challenge You are given a binary tree: class Node: def __init__(self, L, R, n): self.
Read More
How to Split a String with Python
August 12, 2020
Splitting a string in Python is really easy. You simply take a string and apply the split() method.
Read More
How to fix the Terraform stuck on “Refreshing state…” problem
August 11, 2020
Terraform is a fantastic tool to help automate your infrastructure as code.
Read More
The “Split Strings” Challenge using Java
August 10, 2020
The challenge Complete the solution so that it splits the string into pairs of two characters.
Read More
Converting to PigLatin with Python
August 9, 2020
The challenge Move the first letter of each word to the end of it, then add “ay” to the end of the word.
Read More
Solving the “Double Cola” Challenge using Java
August 8, 2020
The challenge Sheldon, Leonard, Penny, Rajesh and Howard are in the queue for a “Double Cola” drink vending machine; there are no other people in the queue.
Read More
Convert Seconds to Human Readable Time (HH:MM:SS) using Java
August 7, 2020
The challenge Write a function, which takes a non-negative integer (seconds) as input and returns the time in a human-readable format (HH:MM:SS)
Read More
Solving the “Mexican Wave” Challenge using Java
August 6, 2020
The challenge Task Your task is to create a function that turns a string into a Mexican Wave.
Read More
Multiples of 3 and 5 with Python
August 5, 2020
The challenge This multiples of 3 and multiples of 5 challenge is a variation of the common FizzBuzz question.
Read More
Solving the “Catching Car Mileage Numbers” Challenge using Python
August 4, 2020
The challenge "7777…8?!??!", exclaimed Bob, "I missed it again! Argh!" Every time there's an interesting number coming up, he notices and then promptly forgets.
Read More
Counting smiley faces with Python
August 3, 2020
The challenge Given an array (arr) as an argument complete the function countSmileys that should return the total number of smiling faces.
Read More
Convert String to Camel Case using Java
August 2, 2020
The challenge Complete the method/function so that it converts dash/underscore delimited words into camel casing.
Read More
How to Setup an SSH Server on AWS
August 1, 2020
Basic instructions on how to set up an SSH server on an Ubuntu 16.
Read More
How to Convert Numeric Words into Numbers using Python
July 31, 2020
Challenge Using Python, we want to convert words into numbers. In this challenge, we will explore how to convert a string into an integer.
Read More
Solve The Triangle of Odd Numbers using Python
July 30, 2020
The challenge Given the triangle of consecutive odd numbers: 1 3 5 7 9 11 13 15 17 19 21 23 25 27 29 .
Read More
“Who likes it” code Challenge in Python
July 29, 2020
The Challenge You probably know the “like” system from Facebook and other pages.
Read More
Python 4 New Features Planned
July 28, 2020
It took the Python community a long time to move from Python 2 to Python 3.
Read More
Custom RGB To Hex Conversion with Python
July 27, 2020
The challenge The rgb function is incomplete. Complete it so that passing in RGB decimal values will result in a hexadecimal representation being returned.
Read More
Sort a Java Integer in Descending Order
July 26, 2020
The challenge Your task is to make a function that can take any non-negative integer as an argument and return it with its digits in descending order.
Read More
Get the Sum of Digits / Digital Root using Java
July 25, 2020
The challenge Digital root is the recursive sum of all the digits in a number.
Read More
How to write a Chain Adding Function in Python
July 24, 2020
The challenge We want to create a function that will add numbers together when called in succession.
Read More
Get the next biggest number with the same digits using Python
July 23, 2020
The challenge Create a function that takes a positive integer and returns the next bigger number that can be formed by rearranging its digits.
Read More
Solving Tribonacci Sequence with Python
July 22, 2020
The challenge As the name may already reveal, it works basically like a Fibonacci, but summing the last 3 (instead of 2) numbers of the sequence to generate the next.
Read More
The Casino Chips Problem Solved with Python
July 21, 2020
The challenge You are given three piles of casino chips: white, green and black chips:
Read More
Check if Isogram using Python
July 20, 2020
The challenge An isogram is a word that has no repeating letters, consecutive or non-consecutive.
Read More
Find the Longest Common Prefix using Python
July 19, 2020
The challenge Write a function to find the longest common prefix string amongst an array of strings.
Read More
Count and Say with Python
July 18, 2020
The challenge he count-and-say sequence is the sequence of integers with the first five terms as following:
Read More
The Plus One problem solved with Python
July 17, 2020
The challenge Given a non-empty array of digits representing a non-negative integer, increment one to the integer.
Read More
Solving the Single Number problem in Python
July 16, 2020
The challenge Given a non-empty array of integers, every element appears twice except for one.
Read More
Rotate a Matrix List in Python
July 15, 2020
The challenge You are given an n x n 2D matrix representing an image.
Read More
Check if Valid Sudoku Blocks in Java
July 14, 2020
The challenge of solving valid Sudoku blocks Determine if a 9×9 Sudoku board is valid.
Read More
Find the Intersection of Two Arrays in Python
July 13, 2020
The challenge Given two arrays, write a function to compute their intersection.
Read More
Rotate an Array K Times in Python
July 12, 2020
The challenge Given an array, rotate the array to the right by k steps, where k is non-negative.
Read More
FizzBuzz in Java
July 11, 2020
The challenge Write a program that outputs the string representation of numbers from 1 to n.
Read More
Python Splices reimplemented in Java
July 10, 2020
Python has a fantastic feature called slices. It allows you to work with a list, set or string by it’s index items.
Read More
Solving Two Sum in Python
July 9, 2020
The challenge Given an array of integers, return indices of the two numbers such that they add up to a specific target.
Read More
Get the Next Small Integer in Python
July 8, 2020
The challenge Write a function: def solution(A) that, given an array A of N integers, returns the smallest positive integer (greater than 0) that does not occur in A.
Read More
Is a Valid Palindrome with Java
July 7, 2020
The challenge Given a string, determine if it is a palindrome, considering only alphanumeric characters and ignoring cases.
Read More
Is a Valid Anagram with Java
July 6, 2020
The challenge Given two strings s and t , write a function to determine if t is an anagram of s.
Read More
How to ReImplement strStr() in Java
July 5, 2020
What we want to achieve Return the index of the first occurrence of needle in haystack, or -1 if needle is not part of haystack.
Read More
Third Maximum Number with Java
July 4, 2020
The challenge Given a non-empty array of integers, return the third maximum number in this array.
Read More
How to Quickly Hide all Icons on a Mac’s Desktop
July 3, 2020
Why the need to hide icons? Perhaps you have a screen-share session coming up and you want a nice clean desktop to show everyone.
Read More
First Unique Character in a String using Java
July 2, 2020
The challenge Given a string, find the first non-repeating character in it and return its index.
Read More
How to fix the Release Version 5 Not Supported error in IntelliJ
July 1, 2020
What do you do when you create a new Maven Java project, and when you run it, you get the following error:
Read More
Facebook’s custom IPv6 range
June 30, 2020
I noticed an interesting thing with a certain visitor after posting a blog post to Facebook.
Read More
How to Reverse an Integer in Java
June 29, 2020
The challenge Given a 32-bit signed integer, reverse digits of an integer.
Read More
Reverse a String in-place using Java
June 28, 2020
The challenge Write a function that reverses a string. The input string is given as an array of characters char[].
Read More
Check if a Java array Contains Duplicates
June 27, 2020
The challenge Given an array of integers, find if the array contains any duplicates.
Read More
Find All Numbers Disappeared in an Array using Python
June 26, 2020
The challenge Given an array of integers where 1 ≤ a[i] ≤ n (n = size of array), some elements appear twice and others appear once.
Read More
The Array Height Checker Problem in Java
June 25, 2020
The challenge Students are asked to stand in non-decreasing order of heights for an annual photo.
Read More
Find the Squares of a Sorted Array in Java
June 24, 2020
The challenge Given an array of integers A sorted in non-decreasing order, return an array of the squares of each number, also in sorted non-decreasing order.
Read More
Sorting a Java Array by Parity
June 23, 2020
The challenge Given an array A of non-negative integers, return an array consisting of all the even elements of A, followed by all the odd elements of A.
Read More
Remove Duplicates from Sorted Array in Java
June 22, 2020
Say you have an array of primitive integers and you want to remove all duplicates.
Read More
Replace Elements with Greatest Element on Right Side using Java
June 21, 2020
The challenge Given an array arr, replace every element in that array with the greatest element among the elements to its right, and replace the last element with -1.
Read More
The Valid Mountain Array Problem using Java
June 20, 2020
Introducing the problem Given an array A of integers, return true if and only if it is a valid mountain array.
Read More
HashMaps (aka: Dictionaries) in Python
June 19, 2020
Introduction Java has a built-in called HashMap. It allows you to store and very quickly retrieve key value pairs.
Read More
Find Numbers with Even Number of Digits using Java
June 18, 2020
The challenge Given an array nums of integers, return how many of them contain an even number of digits.
Read More
The Relational Database Model
June 17, 2020
Relational databases first made an appearance in the mid-1970s, between the years 1974 and 1977 with the creation of Ingres and System R which led to the creation of MS SQL Server, Sybase, Wang?
Read More
How to use a Java HashSet by example
June 16, 2020
What is a HashSet A HashSet is an unordered collection containing unique elements.
Read More
Get The Shortest Path in Binary Matrix using Python
June 15, 2020
The challenge In an N by N square grid, each cell is either empty (0) or blocked (1).
Read More
Palindrome Partitioning in Python
June 14, 2020
The problem Given a string s, partition s such that every substring of the partition is a palindrome.
Read More
Faster alternative to MySQL Delete Table Contents / Truncate
June 13, 2020
From time to time you might have some rather big tables that you want to delete all the data quickly and start afresh.
Read More
Best Time to Buy and Sell Stock with Python
June 12, 2020
The problem Say you have an array prices for which the ith element is the price of a given stock on day i.
Read More
IPv4 CIDR Chart
June 11, 2020
CIDR stands for Classless Inter-Domain Routing and is a method for allocating IP addresses as well as for IP routing.
Read More
Recursively Delete Files and Folders and all Contents using PHP
June 10, 2020
Below is a quick and easy way to recursively delete all files and folders in a given path using PHP.
Read More
Product Update: ADD becomes Serengeti
June 9, 2020
As a product update; The “Autonomous Distributed Database”, otherwise known as simply ADD has been renamed to Serengeti.
Read More
SQL to Append all Fields if Shorter than a set Length
June 8, 2020
This came in very handy for me at one point because I needed to have a certain field in each row 14 characters long, but half of them were only 12 characters long.
Read More
Validate Email Address in Javascript
June 7, 2020
Below is a nice little Javascript RegularExpression to validate email addresses.
Read More
Remove hash from window.location in Javascript
June 6, 2020
E.g. URL:<br>http://example.com/?option=1&task=2&listing_id=36&layout=4&table=5#some_hash_value_here So how would you get the current URL using Javascript?
Read More
The Benefits and Dangers of Artificial Intelligence
June 5, 2020
Artificial Intelligence (AI) is usually defined as the science of making computers do things that require intelligence when done by humans.
Read More
The Decoded String at Index using Java
June 4, 2020
The Challenge An encoded string S is given. To find and write the decoded string to a tape, the encoded string is read one character at a time and the following steps are taken:
Read More
Timing Issues in Real-time systems
June 3, 2020
What are Real-time Systems? If you look up the term “real-time” in a dictionary, it will tell you that it is the actual time during which a process takes place or an event occurs (Dictionary.
Read More
Find the Minimum Absolute Difference in BST using Java
June 2, 2020
The question Given a binary search tree with non-negative values, find the minimum absolute difference between values of any two nodes.
Read More
Get the Second Highest Salary in MySQL
June 1, 2020
The problem Write a SQL query to get the second highest salary from the Employee table.
Read More
Find Maximum Subarrays using Java
May 31, 2020
The problem Given an integer array nums, find the contiguous subarray (containing at least one number) which has the largest sum and return its sum.
Read More
Finding Number Complements using Java
May 30, 2020
The problem Given a positive integer num, output its complement number.
Read More
Forensic Analysis on Linux (Unix)
May 29, 2020
Operating Systems come in a few competing choices, of which the major players are Apple’s MacOS, Microsoft’s Windows and then the various flavours of Linux, of which most are open-sourced while the remainder are proprietary to their vendors.
Read More
Self Dividing Numbers using Python
May 28, 2020
Introduction A self-dividing number is a number that is divisible by every digit it contains.
Read More
RuntimeError: thread.__init__() not called (Python)
May 27, 2020
Today I got a really dumb error from Python. RuntimeError: thread.
Read More
All About Distributed Databases
May 26, 2020
A database “is a structured collection of data. Card indices, printed catalogues of archaeological artefacts and telephone directories are all examples of databases”.
Read More
Communications and The Software Development Process
May 24, 2020
Software Engineering or the Software Development Process is broken down into the following phases.
Read More
Get the total size of all the files in a directory
May 23, 2020
It’s amazing how many times I’ve need to find out the total size of all the files in a directory on one of our servers.
Read More
Structured and Object-Oriented Programming
May 22, 2020
Software development has really come a long way over the past few decades.
Read More
Moving a MySQL Database without downtime
May 21, 2020
At Statvoo Analytics we found ourselves in the position where we needed to move our master MySQL database without ANY downtime and for anyone who’s tried to do this, you will know how hard this can be if it is not done exactly right.
Read More
How to use Google Analytics in AngularJS
May 20, 2020
It seems to be quite a popular question with not as many answers to hold the weight.
Read More
Converting from Legacy to Client-Server or Distributed Systems
May 19, 2020
What is a legacy system? A legacy system is a computing system that has been around for a very long period of time, tends to be difficult to maintain, is prone to issues such as lack of scalability and feature additions, usually centralised in operation and is still heavily utilised in a particular organisation.
Read More
Conceptual Architectural Views, with a focus on the Development View
May 18, 2020
What is Conceptual Architectural Views? Architectural views are abstractions, or simplifications, of the entire design, in which important characteristics are made more visible by leaving details aside.
Read More
Assessing Reusable Parts in a Software Architecture
May 17, 2020
During the Software Development Life Cycle (SDLC) the development team will come to realise that parts of any application have already been created before and there is the potential for those parts to be reused time and again going forward.
Read More
An Introduction to 2-Tier and 3-Tier Client-Server Systems
May 16, 2020
All software systems can be grouped in either a 2-tier or a 3-tier formation.
Read More
Remove the Outermost Parentheses using Python
May 15, 2020
The Question A valid parentheses string is either empty (""), "(" + A + ")", or A + B, where A and B are valid parentheses strings, and + represents string concatenation.
Read More
The Pros and Cons of Agile in Software Development
May 14, 2020
What is Agile in Software Engineering? Agile approaches help teams respond to unpredictability through incremental, iterative work cadences and empirical feedback.
Read More
Contemporary and beneficial uses of Big-Data Systems
May 13, 2020
Big data is a term applied to datasets whose size or type is beyond the ability of traditional relational databases to capture, manage, and process the data with low-latency.
Read More
Distributed Database Systems Observations
May 12, 2020
Traditional database systems were a centralised powerful database server that housed all operations pertaining to the database.
Read More
Functions of an Operating System
May 11, 2020
I am in a bit of an unusual situation where “I use” a combination of three different laptops, which each run different platforms.
Read More
ORDER BY RAND() – Faster Alternative
May 10, 2020
MySQL’s ORDER BY RAND() function can be so useful for returning random items from a table, in fact, we have used it a million times over the years.
Read More
Top-down vs Bottom-up Database Design
May 9, 2020
There are essentially two different approaches one can take when designing databases; these, from a high-level analytic point of view, narrow down to what is typically called “Top-down” and “Bottom-up” philosophies or methods.
Read More
How to keep your web server or blog up when you get a traffic spike
May 8, 2020
So you’re about to be featured on some very high ranking website.
Read More
How to get the UTC Timestamp in Python
May 7, 2020
All dates in your server applications should be stored in the UTC timezone.
Read More
How to setup the AWS CLI for multiple profiles
May 6, 2020
The AWS CLI provides the ability to use the wide range of Amazon Web Services tools and services straight from the command-line.
Read More
How to get the size of an AWS S3 bucket
May 5, 2020
If you need to get the size of an AWS S3 folder, or even an entire bucket, you can do so with the following command:
Read More
Comparing Java and Javascript
May 4, 2020
Perhaps the first thing that most people ask when they hear the names of these two programming languages are.
Read More
An Introduction to Data Structures
May 3, 2020
When bringing up the topic of “Data Structures”, it is first important to understand what they are.
Read More
Relational Database Proprietary Extensions
May 2, 2020
Standard Query Language – or SQL for short – is a language designed for relational databases that allows end users such as developers and database administrators (DBAs) to manipulate data.
Read More
Locks used in Database Management Systems
May 1, 2020
Database Management Systems (DBMS?) are designed to store any amount of data that can then be retrieved or manipulated at a later date.
Read More
Tail and Grep: display all output but highlight search matches
April 30, 2020
I tail logs quite a lot. An example would be to tail the Apache2 access logs.
Read More
Convert URL String into a Javascript Object
April 29, 2020
Sometimes you find yourself with a String, something like and you want to repeatably access elements of it correctly.
Read More
How to make an HTTP Request in AWS Lambda using Python
April 28, 2020
The requests module for Python is very useful in helping simplify HTTP/s requests from Python, but how would you use it in an AWS Lambda script?
Read More
How to fix a Javascript Uncaught ReferenceError
April 27, 2020
Sometimes you may get an error that looks something like this:
Read More
Resolving InsufficientPrivilege Errors in Redshift
April 26, 2020
If you are getting the mysterious error: [ERROR] InsufficientPrivilege: permission denied for schema errors
Read More
How to increase column size in Redshift database tables
April 25, 2020
It is only possible to alter VARCHAR columns, and only under the following circumstances:
Read More
[Solved] The provided execution role does not have permissions to call CreateNetworkInterface on EC2
April 24, 2020
If you are trying to get an AWS Lambda added attached to a VPC, but get the error message:
Read More
Entity and Referential Integrity in Relational Databases
April 23, 2020
Data integrity is the overall completeness, accuracy and consistency of data (Techopedia, n.
Read More
Data Warehouses vs Data Marts
April 22, 2020
Although the terms “data warehouse” and “data mart” sound similar, they are quite different.
Read More
Amazon’s custom Whois date entry
April 21, 2020
Whois is an online service that let’s you know registration information about a website or IP address.
Read More
Graph Databases and their Properties
April 20, 2020
The concept of a graph in mathematics is simply a collection of elements which are typically called Nodes and are joined together by Edges.
Read More
How to add SSH keys to GitHub
April 19, 2020
When working with GitHub, you will need to identify yourself. The default way is using your username and password.
Read More
Get the Maximum Length of a Concatenated String with Unique Characters in Python
April 18, 2020
The problem Given an array of strings arr. String s is a concatenation of a sub-sequence of arr which have unique characters.
Read More
Apache Kafka’s Role in Big Data Streaming Analytics
April 17, 2020
The world of Big Data started out as a way of storing and querying obscene amounts of information by comparison to what yesteryears were able to achieve.
Read More
Mitigating Risks with Software Development Outsourcing
April 16, 2020
In the Oxford Dictionary, the term “outsourcing” is simply defined as obtaining goods or services by contract from an outside supplier (OxfordDictionaries.
Read More
The Primary Data Types in Java
April 15, 2020
In Java there are eight basic data types; which are: byte, short, int, long, float, double, boolean and char.
Read More
Comparing Objects in Java
April 14, 2020
TLDR; When to use == in Java When comparing two operands.
Read More
Overloading Operators in Java
April 13, 2020
As with many programming languages such as C, C++ and C# (known commonly as the C family), it is possible to “overload methods” (sometimes called functions if not used in classes, such as C) in order to take a different amount of parameters so that they can be used in multiple scenarios with similar internals.
Read More
uncaught typeerror: $ is not a function
April 12, 2020
The dollar-sign ($) in Javascript has for many years now been associated with jQuery.
Read More
How to get the last element of a list in Python
April 11, 2020
Let’s say that you have a Python list with the following 5 foods:
Read More
How to embed a web server in your Python3 app
April 10, 2020
This is not the first time that I created a Python3 application that spat out some output and required access to it via an HTTP server.
Read More
How to get the Range Sum of Binary Search Tree using Java
April 9, 2020
Given the root node of a binary search tree, return the sum of values of all nodes with value between L and R (inclusive).
Read More
How to duplicate zeros in place using Python
April 8, 2020
Given a fixed length array arr of integers, duplicate each occurrence of zero, shifting the remaining elements to the right.
Read More
A Quick Introduction to Asyncio in Python3
April 7, 2020
Python has never been the best at doing multiple things at the same time.
Read More
How to replace newlines with commas in CLI
April 6, 2020
If you need to replace all newline characters with a comma, or perhaps some other delimiter, then using the build-in tr utility will work very well for you.
Read More
How to make a disk cache using PHP
April 5, 2020
If you have a busy PHP driven website and don’t want to make constant queries to the database for each user that will see the same data, then you can easily resolve this problem by letting the first of these visitors generate a cache for the consecutive visitors.
Read More
How to remove files without a certain extension?
April 4, 2020
You have a directory with a lot of files, and you want to delete only the files that don’t match a specific extension.
Read More
How to debug an Apache 404 error
April 3, 2020
So you are getting an error 404 or perhaps even worse, a 500!
Read More
How to Reorder Data in Log Files using Python
April 2, 2020
Let’s say that you have an array or a list, or logs.
Read More
Another WTF Javascript Moment
April 1, 2020
Javascript is a powerful language, but sometimes it doesn’t always do what you expect it to.
Read More
How to Bring Back GROUP BY in MySQL
March 31, 2020
If you are suddenly not able to perform GROUP BY statements as you used to after a MySQL/MariaDB version update, then you will have noticed the change forced upon you.
Read More
How to implement a Queue using Stacks in Python
March 30, 2020
A common programming interview question, and for a change, one that you will actually be able to use in the job, is that of implementing a Queue by means of using Stacks in Python.
Read More
Find positions of largest groups of characters in a String with Python
March 29, 2020
The question Take a string S of lowercase letters. These letters form consecutive groupings of like characters.
Read More
How to make Git “forget” about a file that was tracked but is now in .gitignore?
March 28, 2020
You can ignore certain files and folders from being committed to Git by means of including a .
Read More
How to Purge the BinLog for MySQL and MariaDB
March 27, 2020
If you see lots of disk space quickly disappearing on your MySQL or MariaDB server, then you may want to look into the BinLog directory, it is located at /var/log/mysql/.
Read More
How to Measure Execution Time in Google Colab
March 26, 2020
Google Colab is a fantastic environment to write Python code using Jupyter Notebooks, hosted for free by Google.
Read More
How to fake a User Agent in Python
March 25, 2020
A User-Agent is a bunch of text that is sent with every HTTP and HTTPS request.
Read More
How to Delete from a Table where rows match in Another Table – MySQL
March 24, 2020
So you have a table where you want to delete a bunch of rows, based on a particular column being matched in another table.
Read More
REPLACE INTO instead of INSERT INTO – MySQL
March 23, 2020
There are many occasions where you need to INSERT a record into a MySQL database table, but the record already exists.
Read More
Read the bottom n lines of a file in Python
March 22, 2020
Using Operating System Commands in Python Use the Linux/Mac tail command to provide the data:
Read More
How to Format a Number as a Currency in Javascript
March 21, 2020
There are quite a few ways to format a number as a currency value in Javascript.
Read More
How to Change the Timezone on Ubuntu Server
March 20, 2020
If you’ve ever typed date into your Ubuntu Server and seen a different time or timezone appear than you expected, then it probably means that this tutorial is for you.
Read More
How to make a Python script Pip-installable
March 19, 2020
As Python developers, we’ve all used pip to install applications, but speaking to other Python developers, it’s not always clear how to make your own application/script pip-installable.
Read More
How to Host an AngularJS site on AWS S3
March 18, 2020
AngularJS is a Javascript Framework that allows you to create dynamic front-end web applications easily.
Read More
How to send emails using Python and AWS SES SMTP
March 17, 2020
Sending emails using Python and AWS’ SES service is really easy.
Read More
Generate a random number between two numbers in JavaScript
March 16, 2020
If you need to generate a random number between two numbers in JavaScript, then you are in the right place!
Read More
Read the top n lines of a file in Python
March 14, 2020
Sometimes you may need to read the top n lines of a file using Python.
Read More
How Fast is your Website?
March 13, 2020
I operate a bunch of different sites and have done for many years now.
Read More
How to Git Reset a Single File
March 12, 2020
It’s very easy to reset files that have not yet been committed to git.
Read More
Introducing Variables in Golang
March 11, 2020
Golang comes with a decent offering around variables that you can use to store, retrieve and manipulate information.
Read More
Golang cannot convert (type string) to type int
March 10, 2020
Every language has it’s ways of converting data types. One of the most common data types to convert between is that of strings (string) and integers (int).
Read More
Remove Special Characters in a String using Bash
March 8, 2020
Programming languages provide the ability to remove special characters from a string quite easily.
Read More
Get the Amount of Days Between Two Dates in Python
March 7, 2020
Let’s say that you have two dates: "2019-01-29" "2019-06-30" How would you create a function that would return the number of days between these two dates?
Read More
How to Always run Python 3 from Bash
March 6, 2020
Given a directory that contains: | |- app.py |- requirements.txt |- .
Read More
How to Run the Kubernetes Dashboard Locally
March 5, 2020
Kubernetes comes with a pretty nice dashboard to view clusters, worker groups, nodes and pods.
Read More
How to tell if a year is a Leap Year in Python
March 4, 2020
Given that we are in a leap year this year (2020), it would be nice to know how to programmatically calculate this.
Read More
How to Reverse a Linked List in Python
March 3, 2020
It’s important to know about data types and one that comes up fairly regularly is that of Linked Lists.
Read More
The Docker Quickstart Guide for Developers
March 2, 2020
This Docker Quickstart Guide for Developers aims to get developers familiar with Docker as quickly as possible.
Read More
How to Follow Redirects with cURL for CLI or PHP
March 1, 2020
Let’s take a really common example. Say we want to follow redirects with cURL for google.
Read More
How to tell if a String contains a Substring in Javascript
February 29, 2020
Javascript comes with some pretty good support for determining if a string contains a substring.
Read More
How to package a Python app (pip) for PyPi
February 28, 2020
In this tutorial, we will create a Python application that can be installed directly from pip that will show the 10 latest blog posts from this website (the one you are reading this on!
Read More
MakePip – Automatically Publish Python to PyPi
February 27, 2020
Automatically Publish your Python applications to the Python Package Index (PyPI) for use through Pip.
Read More
How to find the longest Palindrome in a String using Python
February 27, 2020
This occasionally comes up during coding interviews and is actually quite a decent way to test someone’s aptitude of moving back and forth on a string to determine if and where palindromes exist.
Read More
How to write Anonymous Functions in Javascript
February 26, 2020
There is a lot of power in Javascript syntax. One of those powerful things is that of Javascript Anonymous Functions.
Read More
How to use Docker to test any Linux distribution locally
February 25, 2020
I often need to test a specific Linux binary or make sure something works as expected from yum install or apt install.
Read More
How to get the Maximum Depth of a Binary Tree in Python
February 24, 2020
Let’s say that you have a binary tree and we needed to know it’s maximum depth.
Read More
What is Fizz Buzz?
February 23, 2020
Fizz buzz is a common programming interview question. The problem statement usually reads something like this:
Read More
How to Deploy a Helm “Hello World” app onto Kubernetes
February 22, 2020
We will create a simple Hello World static HTTP Service using Helm, package it and release it to an AWS EKS Cluster.
Read More
How to write a Quicksort Algorithm in Python
February 21, 2020
While there are libraries available for all programming languages that offer abilities to sort list, arrays and collections, it is important to know how this is achieved.
Read More
How to Reverse a String or List using Python
February 20, 2020
Python comes with the power of slicing. Let’s try it with a String:
Read More
How to get the IP address in Python
February 19, 2020
Python exposes a socket library that allows us to perform networking tasks such as getting the IP Address as well as getting the Hostname of our system.
Read More
How to Reverse a Binary Tree in Python
February 18, 2020
Reversing a Binary Tree is a common programming interview question.
Read More
[Solved] Unable to Detach AWS Network Interface
February 17, 2020
You do not have permission to access the specified resource.
Read More
How to delete a file in Python
February 16, 2020
A quick solution in Python import os os.remove("filename.txt") The above code will delete a file in Python, it will not however delete a directory, or a directory containing files.
Read More
How to safely parse JSON in Javascript
February 15, 2020
JSON stands for Javascript Object Notation and has become wildly popular to transport and store data between application, databases and more.
Read More
Check if an HTML Checkbox is checked using Javascript
February 14, 2020
While processing forms in web development, it’s a common requirement to be able to tell if a checkbox has been checked or not.
Read More
How to Push Docker Images to AWS ECR
February 13, 2020
Docker images are usually stored on Docker Hub, but AWS’s Elastic Container Registry can also be used.
Read More
How to monitor Network Traffic on Linux
February 12, 2020
There is a fantastic tool to see and monitor Bandwidth and Network Traffic on Linux.
Read More
How to Merge Javascript Objects
February 11, 2020
A Javascript Object – now just called JSON – is a collection of values and properties stored as a map.
Read More
When to use Pip3 instead of Pip in Python
February 10, 2020
If you have multiple versions of Python installed on a system, such as both Python 2.
Read More
How to use Screen on Linux
February 9, 2020
Screen on Linux is a popular command-line program that lets you multiplex between interactive shells.
Read More
Transfer a domain from Namecheap
February 8, 2020
Namecheap is a pretty good registrar. As its name says, yes, it is usually pretty cheap.
Read More
How to Package a Python App using Nuitka
February 7, 2020
Learn how to package a Python app in this tutorial.
Read More
Introduction to NPM
February 6, 2020
What is NPM? NPM stands for Node Package Manager, and is the default way to extend your Node applications.
Read More
How to create a Symbolic Link on Linux / Mac
February 5, 2020
A symbolic link – or often just sym-link – is a pointer or shortcut to where the actual file lives on a filesystem.
Read More
Non-interactive git clone (ssh fingerprint prompt)
February 4, 2020
If you have ever been in the annoying situation where you had to run git clone from a server that you did not have interactive access to, such as a continuous integration/deployment box or other.
Read More
When your Python code is much faster with PyPy
February 4, 2020
Python is a very powerful language, there are so many libraries available for it.
Read More
What it takes to be a Platform Engineer in 2020
February 3, 2020
Platform Engineering is something that grew out of a mix of what software developers and sysadmins had been doing for years.
Read More
Introduction to PIP – Python Package Manager
February 2, 2020
Python comes with a fully equipped package manager called PIP – which stands for the Python Package Manager.
Read More
How to build a website quickly using PHP
February 1, 2020
PHP is a powerful scripting language created for the web.
Read More
How to replace all occurrences of a string in Javascript
January 31, 2020
I have pretty much resigned myself to the fact that in Javascript, there are really only two ways to do a proper search and replace.
Read More
How to exit Vim
January 30, 2020
If only I had a dollar for every time I saw someone sitting at their computer, trying for the life of them to exit vim
Read More
How to Setup and Use the Python Virtual Environment
January 28, 2020
Python is a fantastic language that continues to help so many businesses and individuals.
Read More
Introducing the Hetzner Cloud
January 27, 2020
I could honestly not tell you how many hosting providers I’ve tried over the past 15 years.
Read More
Multiprocessing in Python3
January 14, 2020
import multiprocessing def runner(k): print(k) processes = [] for i in range(10): p = multiprocessing.
Read More
How to Install MongoDB on Mac
January 4, 2020
You can use Homebrew to install MongoDB on a Mac.
Read More
The Best Note Taking Apps
December 20, 2019
We’re all using a Note Taking App these days, they’re incredibly useful and come jam packed with loads of features.
Read More
How to Delete large amount of files in directory
December 9, 2019
So you have clearly got a very large amount of files!
Read More
How to Merge multiple files, removing duplicate values
November 25, 2019
If you have multiple files and you want to remove duplicate values from, while creating a single file.
Read More
Unable to delete an AWS Internet Gateway
November 22, 2019
So you need to delete an AWS Internet Gateway, sounds good.
Read More
How Distributed Applications Work
July 29, 2019
Distributed Applications come in a wide range of sizes, usages and resource availabilities.
Read More
Why Artificial Intelligence (AI) won’t necessarily take your job
July 9, 2019
Artificial Intelligence, or simply AI these days, is when computers are able to perform tasks that humans would otherwise do.
Read More
The difference between ‘git fetch’ and ‘git pull’
July 8, 2019
Git Pull vs Fetch Many of us take a look at git fetch and git pull and believe them to do the exact same thing!
Read More
7 Ways to Make Money Online from Home
July 8, 2019
1. Create a website / blog There are numerous ways to make money when you create a website or blog.
Read More
Keep that mouse moving!
June 2, 2019
Ever needed to keep your computer from going IDLE? Now it’s really simple using KTMM;
Read More
Serengeti – The Autonomous Distributed Database
June 2, 2019
What is Serengeti? Serengeti is an Autonomous Distributed Database, and proves the theory of a distributed database that is truly autonomous, requires no custom configuration or human intervention.
Read More
Run Javascript – Chrome Extension Help
October 10, 2018
Run Javascript is a Chrome Extension that allows you to run custom Javascript each time you visit a website.
Read More
Investigation of insider attacks with computer forensics
October 7, 2018
Cyber-attacks do not always originate from outside of the target organisation.
Read More
Squid Proxy behind a Load Balancer on AWS
October 4, 2018
Squid is a proxy software that allows a computer without internet access to proxy through another computer that does have internet access.
Read More
How to install a Ruby Gem without Root on a Mac
October 1, 2018
Gems are little packaged Ruby applications that allow you to extend the ecosystem and reuse countless online sources.
Read More
The dark truth behind Advertising on the internet
October 1, 2018
The story Steve has a website which sells carpets in London.
Read More
International hosting governments and forensic email cases
September 30, 2018
Cyber forensics is hard, but it is even harder when servers are hosted in different geographical locations and an investigation needs all localities to cooperate and hand over every part of the data consistently.
Read More
When to give up on your startup/product
September 28, 2018
One of the hardest things you can do after trying to get a startup or product off the ground is to simply give up and call it a day.
Read More
Just SSH to my Jump Box!
September 26, 2018
I am a professional software engineer and do an absolute ton of devops work as well.
Read More
Counting in Python using a list
September 25, 2018
So before we begin, let me just tell you that this is a pretty useless thing to do.
Read More
Show the desktop’s image name on a Mac
September 23, 2018
Sometimes you just need to know where that image shown on your desktop is stored!
Read More
Network Forensics Concerns around GDPR
September 23, 2018
In Cyber Forensic there are a vast array of tools that are used throughout most investigations, however, not all jurisdictions allow or even agree to the usage of some of them.
Read More
A look into Future Developments in Operating Systems from a Cyber Forensics Investigator
September 16, 2018
Operating systems (OS) really have come a long way since the very first one was created by General Motors in 1956 (WIHT, 2017) to run on an IBM mainframe.
Read More
Comparing Interface Types in Cyber Forensics
September 2, 2018
In digital and cyber forensics, there are three main types of categories when it comes to forensic tooling.
Read More
Cyber Forensic Investigative Reports
August 26, 2018
Investigations are not proven in a jurisdiction until a detailed forensic report is created and presented to a judge or jury who can take it to the next level.
Read More
Altering Computer Evidence
August 19, 2018
Ever since it has been possible for humans to operate computers, some have used it to perform criminal activities.
Read More
Connection broken by ‘SSLError(SSLError(1, ‘[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:777)’
July 26, 2018
This happens when your machine does not have the correct certificate bundle to access the Pypi repository, or you are behind a corporate proxy that just loves to block everything!
Read More
Can’t pull a Git branch because of merge conflicts?
June 27, 2018
Sometimes you need to pull a remote branch and want to accept all their commits (and history) and override your own repository.
Read More
Software development processes
May 13, 2018
Introduction to Software Development Processes Gabry defines the Software Development Methodology to be a set of related activities that lead to the production of the software (2017).
Read More
Approaches to software reuse
May 13, 2018
Introduction to Software Reuse Software reuse is the process of creating software from antecedent and extant components.
Read More
Get the output of an application logged in the terminal
April 16, 2018
Just a quick note: You are probably looking for a Linux command called `dtrace`.
Read More
Agile as a Software Development Process
March 24, 2018
Waterfall and Agile are by far the most commonly used software development processes, however, within them, there are many different styles of software development used in the management of software development projects.
Read More
Big Data Security and Privacy Issues
March 2, 2018
Big Data shares what is commonly termed the V properties or characteristics such as Velocity, Volume and Variety which are amongst the most typical or frequently repeated.
Read More
How to delete/revert a Git commit
March 2, 2018
You’ve just pushed something to a Git repository and you immediately regret it!
Read More
[Solved] Pip: There was a problem confirming the ssl certificate
February 26, 2018
If you ever get the following error when trying to install a Pip module under Python:
Read More
How to Learn Python Programming Quickly
February 22, 2018
So you want to learn to program in Python and you don’t have a lot of time?
Read More
NoSQL Pandas Dataframes
February 16, 2018
Pandas Dataframes are simply a table with some rows (McKinney, 2015) and many additional features built right in to make data scientists lives much easier.
Read More
Relational (SQL) vs NoSQL Database Models
February 4, 2018
The Relational (SQL) database has been a central piece to businesses since the 1970s when they first had their claim to fame.
Read More
Netflix Hadoop Big Data Marketing Use Case
January 28, 2018
Netflix is a video streaming service that has a wealth of information about their user base likes, dislikes, general consumer habits, retention lengths and much more.
Read More
Using Hadoop to manage Dark Data
January 19, 2018
Dark Data is the biggest piece of the pie (Datumize , n.
Read More
An Introduction to Client-Server Systems
December 10, 2017
A client-server architecture/system is one where the server maintains all models of the backend datasets and business logic around taking and providing information to fulfill a service request from a client which in turn shows the representation thereof.
Read More
When to use FLUSH PRIVILEGES in MySQL
December 6, 2017
So if you’ve ever created users and given them specific permissions from with SQL or the commandline, you will be familiar with a statement called FLUSH PRIVILEGES.
Read More
MySQL Community Server MSI Installer Hangs on Windows 10
December 6, 2017
I was trying to install MySQL Community Server for Windows 10 using the standard .
Read More
Android device supports x86, but APK only supports Arm
December 4, 2017
I get this error quite a lot when trying to deploy an Android APK to an emulator.
Read More
Weird Dialog Boxes
November 30, 2017
Adobe Setup setup? Got this one while using Chrome, it complains about Safari?
Read More
A bit on SQL Standards
November 12, 2017
SQL (Structured Query Language) for relational databases was maintained and standardised by the American National Standards Institute (ANSI) and the International Organisation for Standardisation (ISO) which is affiliated with the International Electrotechnical Commission (IEC).
Read More
A Brief Talk on Databases
October 29, 2017
Databases have been around since ancient times, when elaborate database systems were deployed by governments, hospitals and organisations to keep track of vast amounts of information; but only until around the 1960s did computerised databases start to take shape and become cost effective for private organisations to start using (Quickbase, n.
Read More
Cloud Computing – The Refute
September 24, 2017
Cloud is great, but when you know what you are doing, think about alternatives (Blippex, 2013).
Read More
Auditing Organisational Information Systems – Security
September 17, 2017
Auditing an organisation?s information systems is a vital part of operating a business at any decent scale.
Read More
Biometric Technology
September 17, 2017
What is Biometric Technology? Biometric verification is any means by which a person can be uniquely identified by evaluating one or more distinguishing biological traits (Margaret Rouse, n.
Read More
Copyright Compensation in the Internet Age
September 9, 2017
The original conception of copyright in 1710 (Craig Joyce, n.d.) was that it usually covers only the expression of a particular idea and not the idea itself, but this was a very long time ago, before the challenges of a digital society.
Read More
Controlling employee digital access
September 3, 2017
Organisations of all sizes have taken to controlling what their employees can access in order to conserve computing resources, keep their employees focused 100 percent on the work they were hired to do and to make sure employees performance is high and as productive as possible (Cyberoam, n.
Read More
Electronic monitoring in the workplace
September 3, 2017
Electronic monitoring is not a new thing, nor one that only affects the workplace.
Read More
The Therac-25 Case Study – What Actually Happened?
August 27, 2017
The Therac-25 was a computerised medical technology radiation therapy machine produced by Atomic Energy of Canada Limited (AECL) in 1982.
Read More
Your Responsibilities as an IT Professional
August 27, 2017
As an IT professional it is extremely important to make sure that you do not take advantage of your position on being able to introduce certain skewed characteristics into a computing system in order to gain unfair advantage to your company or client?
Read More
New capabilities with technology
August 23, 2017
Computing technology has undoubtedly had some very prominent impact on society at large.
Read More
The Printing Press – Technology’s impact on society
August 23, 2017
It’s important to first define what the term “technology” means.
Read More
Google Abuses Search Dominance in the European Union
August 23, 2017
The EU Commission found that Google has been favouring their very own shopping service while demoting those of their rivals as well as the placement of how they are seen in search results online.
Read More
Understanding the Risks of Commercial off-the-shelf software (COTS)
July 8, 2017
Commercial off-the-shelf (COTS) software can be an attractive buy in for many companies when it comes to:
Read More
Identifying Risks in Software Engineering
June 28, 2017
In Software Engineering it is absolutely paramount to identify all risks that may arise in a given project or grouping of tasks.
Read More
Software engineering challenges in the 21st century
June 4, 2017
Software Engineering covers not only the technical aspects of building software systems, but also management issues, such as directing programming teams, scheduling, and budgeting.
Read More
Computer Memory – The Breakdown
December 26, 2016
Storage devices have come a long way in an extremely short amount of time; given how much they have changed from just my personal knowledge alone.
Read More
Current Trends in Computing
December 18, 2016
The American multinational technology company Yahoo, which has been around since the mid nineties has once again been hacked.
Read More
Academic integrity in a cultural context
December 11, 2016
In academia it is vitally important to backup your own thoughts and ideas by using previously written authoritative papers and articles in reference.
Read More
How to get more traffic to your blog
September 3, 2015
If there’s only one thing that keeps website owners up at night, it’s thinking about the next wave of traffic that they aren’t yet getting.
Read More
How big is Amazon S3 really?
September 1, 2015
Amazon’s Simple Storage Service, or simply S3 for short, is a product designed for storing objects (or files are most people know them) in their proprietary cloud hosting (AWS).
Read More
3 Things you should be tracking with your analytics software
August 28, 2015
What should we be tracking? This is a question we get asked quite a often – mainly by new customers as well as people who aren’t certain if what they’re looking at adds any value to their daily business time usage.
Read More
11 of the Best Google Analytics Alternatives
July 29, 2015
So most webmasters know about Google Analytics and have probably used it to some degree, but did you know that there are some pretty good alternatives out there, some even better than the all-famous Google Analytics.
Read More
503 Service Unavailable: Back-end server is at capacity
July 28, 2015
The Web server (running the Web site) is currently unable to handle the HTTP request due to a temporary overloading or maintenance of the server.
Read More
User Testing and Feedback?
May 7, 2015
So now you have a website, you use it and love it, but does everybody else?
Read More
Date ranges are the key to a better index
January 14, 2015
Since AO Analytics originally went live in February 2013, we have been doing focused around individual time based reporting, it worked well and we were able to sort through indexes without doing full table scans.
Read More
Track your Alexa Rank History
January 14, 2015
The Alexa Rank is a way of determining a website’s popularity.
Read More
SSL Encryption – Update
January 14, 2015
We have just rolled out SSL encrytion on Statvoo which means:
Read More
Why Website Analytics Is So Important These Days
January 14, 2015
The web has come a long way since Tim Berners-Lee, a British scientist at CERN, “invented” the World Wide Web (WWW) in 1989.
Read More
Create daterange array of missing dates
February 20, 2014
<?php //fromDate 2014 - 01 - 22 //toDate 2014 - 02 - 20 //$arr Array( [0] = & gt; Array( [ISO_DATE] = & gt; 2014 - 02 - 18[DAY_SUM_AMOUNT] = & gt; 3000[DAY_SUM_VOLUME] = & gt; 2[CONVERSION_PCT] = & gt; 100 ) [1] = & gt; Array( [ISO_DATE] = & gt; 2014 - 02 - 19[DAY_SUM_AMOUNT] = & gt; 4000[DAY_SUM_VOLUME] = & gt; 1[CONVERSION_PCT] = & gt; 100 ) ) //codetime function createDateRangeArray($strDateFrom, $strDateTo) { $aryRange = array(); $iDateFrom = mktime(1, 0, 0, substr($strDateFrom, 5, 2) , substr($strDateFrom, 8, 2) , substr($strDateFrom, 0, 4)); $iDateTo = mktime(1, 0, 0, substr($strDateTo, 5, 2) , substr($strDateTo, 8, 2) , substr($strDateTo, 0, 4)); if ($iDateTo & gt; = $iDateFrom) { array_push($aryRange, date('Y-m-d', $iDateFrom)); // first entry while ($iDateFrom & lt; $iDateTo) { $iDateFrom += 86400; // add 24 hours array_push($aryRange,date('Y-m-d',$iDateFrom)); } } return $aryRange; } function recursive_array_search($needle,$haystack) { foreach($haystack as $key=>$value) { $current_key = $key; if ($needle === $value or (is_array($value) & amp; & amp; recursive_array_search($needle, $value) !
Read More
Speedtest on Ubuntu Server (commandline)
February 19, 2014
Using the speedtest-cli is easy and very useful. You run it as follows:
Read More
URL GET vars to PHP Array
May 14, 2013
Sometimes you will need to retrieve the GET variables passed into the current page URI or you will have a URL string to work from which contains certain GET variables, the below method helps a lot to convert them into an array which you can easily manipulate later.
Read More
python "AttributeError: ZipFile instance has no attribute ‘__exit__"
May 8, 2013
This is actually a very easy error to fix, eventhough off the bat it seems a lot more involved.
Read More
Remove specific HTML tags using PHP
March 21, 2013
There are times when you want to remove a specific HTML tag from an HTML block of text.
Read More
Keep Google Map v3 centered when browser is resized
March 8, 2013
Using Google Maps V3 Javascript API you can keep the map centered to the browser’s window by using the following trick when resizing the window.
Read More
Buy a Google Nexus 10 in the UK!
December 29, 2012
If you are looking to get a Google Nexus 10 inch tablet and are based in the UK you are in for a shocker!
Read More
Let Joomla and MySQL interact!
December 21, 2012
I often need a quick and easy few lines to retrieve some data from MySQL using Joomla without all the MVC nonsense that usually goes about this topic.
Read More
Perform a Mysql Query using Joomla!
November 23, 2012
This is really actually meant for future reference for myself as lately I’ve been doing quite a lot of Joomla!
Read More
Refresh User Data in Joomla
October 21, 2012
I was busy with a custom component in Joomla, and it stored it’s own user_details based off of the main users table, but if the details were changed then I needed the system to update the session to reflect the changes.
Read More
Extract email addresses from a string – PHP
October 9, 2012
Sometimes you need to extract multiple email addresses from a string and the following function will make all your dreams come true.
Read More
How to drive traffic to your website!
September 28, 2012
This is a very hot topic indeed. Definitely one that everyone with a website should know all about.
Read More
jQuery limit fields to alphanumeric characters only
September 26, 2012
I was trying to restrict a form’s field from only allowing the user to enter alphanumeric characters into it.
Read More
Make a dynamic year dropdown using PHP
September 18, 2012
Ever wanted to have a dropdown that automatically showed the current year and the few years before it?
Read More
Pad a string with zeros using PHP
September 17, 2012
Recently I had to create a code/username maker to fit into a certain type of pattern so that all “broker codes” (as they were called) followed the same path.
Read More
ImportError: No module named MySQLdb (Python)
July 23, 2012
Trying to use MySQL with Python and getting an ImportError?
Read More
Search for “arabic” is url request and change codepage – ASP
July 12, 2012
If you are using Classic ASP (yuck) to create an arabic section of a website you can search for the arabic string in your Request URI and then change the session’s codepage as follows:
Read More
Windows 7 is better than Ubuntu 12.04 on desktop!
June 28, 2012
Today we have finalised for ourselves that Windows 7 is definitely a “better” operating system than Ubuntu 12.
Read More
Function split() is deprecated in PHP
June 12, 2012
You heard it right! split() is officially a deprecated function. That means that you can still use it if you are really brave and it will work correctly, but don’t expect to see it in later versions of PHP when they come out.
Read More
Disable Cache in jQuery
May 24, 2012
I usually run into this problem when dealing with good ol’ Internet Explorer (.
Read More
Where is Technology heading, perhaps we should focus more on Software?
May 21, 2012
I often wonder to myself where the technology industry is heading as I see new things come out almost daily.
Read More
How to break out of an iframe
May 9, 2012
So someone’s trying to make their site better by opening a page on your site inside of their site using an iframe?
Read More
Edit hosts file on Windows 7
May 9, 2012
The hosts file is used to manually alter the hostname or IP address in place of it being served by a Nameserver, also known as via DNS.
Read More
(EAI 2)Name or service not known: Could not resolve host name *.80 — ignoring!
May 8, 2012
You are no doubt trying to add a vhost and you get the following error when attempting to affect changes by restarting the http daemon (httpd):
Read More
Virgin Media blocks torrent sites!
May 3, 2012
Virgin Media have done it again! They have gone and started a “downloaders war”, I’m sure of it.
Read More
How to Comment out a line in a Crontab on Linux
May 3, 2012
Firstly let’s just note that crontabs are read in the following way:
Read More
DateTime conversion function using PHP
May 1, 2012
It’s really very simple to convert times in different timezones using the following function.
Read More
Convert seconds to days, hours, minutes, seconds in PHP
May 1, 2012
With the following function you can easily convert an integer containing seconds to a nice days, hours, minutes, seconds string or array.
Read More
Remove dotted outline around anchors
April 30, 2012
This has become quite a common question asked by many website owners.
Read More
Get amount of hours between 2 hours
April 27, 2012
If you would like to get the amount of hours between 10:00 and 12:00 then use this!
Read More
How to embed HTML5 video with fallback
April 27, 2012
A common question with the rise of HTML5 becoming more and more common and the whole iGeneration (iPhones/iPads/iEtc) is “how can I embed a video on my site without using a flash player?
Read More
How to backup all mysql databases
April 26, 2012
In order to backup all mysql databases, you can run the following command in your linux command line:
Read More
Invalid command 'RewriteEngine'
April 26, 2012
If you receive the following error message if means that mod_rewrite is not enabled in Apache:
Read More
How to get the Hours Difference (in HH:MM format) in PHP
April 12, 2012
It’s very simple to get the difference in hours using PHP
Read More
Warning: Invalid argument supplied for foreach()
February 28, 2012
A common error which occurs with foreach loops is the standard “Invalid argument supplied for foreach()” whch gets thrown up as a warning.
Read More
Unable to connect to any of the specified MySQL hosts.
February 19, 2012
If you get the following error while trying to connect to a MySQL database using a third party client such as TOAD or SQL Workbench, then you need to edit your mysql server’s my.
Read More
PHP nl2br on one line
February 18, 2012
I usually store data from a textarea directly to the database as is, then once I retrieve it back into HTML I use that lovely PHP function nl2br() to convert it to HTML
Read More
LEN in MySQL
February 1, 2012
In MySQL 5.1 LEN is called LENGTH, you use it exactly the same and pass in the link, so: LENGTH(link).
Read More
Remove all linebreaks in PHP
January 30, 2012
If you are having problems with a string that keeps adding a line break when output from PHP to HTML then the following code will work wonders for you!
Read More
IE9 adding empty table cells in large table
January 24, 2012
Well as usual, we are once again fighting the woes of the beloved Internet Explorer, and it appears that Microsoft’s latest greatest new and improved browser rival to the market IE9 still has a whole bunch of irritations and retardation to worry about (saw that one coming).
Read More
SELECT Duplicate Items Using SQL
December 20, 2011
If you have a table which has duplicate items in then you can use the below statement to select them.
Read More
MySQL Error: Can’t get hostname for your address
December 14, 2011
This error is thrown by MySQL because it tries to do a DNS lookup on the address connecting to the server and it fails due to the IP not being able to be resolved back to a name or some-other deeper DNS bust problem.
Read More
Adobe drops flash for mobiles!
November 9, 2011
..and it’s official – so says Adobe’s blog (read it here).
Read More
jQuery Colorbox not showing but background shows
November 8, 2011
I was using Colorbox for some lightbox type effects to show larger images when clicking on thumbnails, but for some reason the background was showing up but the pretty little box in the middle where the larger image is supposed to show never showed up, so this is how I made it finally appear after many failed attempts!
Read More
Get Value of Checkbox using jQuery
October 25, 2011
This one is quite an easy one, but a good one to mention non-the-less as it does definitely come in really handy.
Read More
Everybody’s a web host
September 28, 2011
To cut straight to the point, “we’re living in the age where everybody’s a web host”.
Read More
CSS Background Default
September 15, 2011
If you would like to override an already attached class containing a background then you can use the following:
Read More
Restrict PHPMyAdmin to IP Address
August 22, 2011
Would you like to restrict PHPMyAdmin from being accessible to the whole world?
Read More
2014 – Commands out of sync; you can’t run this command now
August 4, 2011
#2014 – Commands out of sync; you can’t run this command now
Read More
Image corrupt or truncated: “unknown”
July 13, 2011
What is “Image corrupt or truncated: ” and what does it mean?
Read More
WordPress wp-admin use different language for user
July 7, 2011
I needed to do some work on a WordPress site a little while ago and all the admins were French – and I cannot speak French other than the popular swear words – so had no idea what was going on in the /wp-admin/ so needed some way of enabling my newly created user account to be in english while letting everybody else use french as they had been up til that point.
Read More
Replace all spaces in HTML with except in HTML tags using PHP
May 29, 2011
If you would like to replace all the spaces in an HTML string with so that you can render it out to the browser but you also want to retain current spaces in HTML tags you can use the below method:
Read More
Using PHP to validate an IP address
May 18, 2011
You can use the PHP code below to check if an IP address is valid or not.
Read More
What is the difference between is_home() and is_front_page()
May 13, 2011
Call me ignorant, or call me an ignorant geek, but I used to think is_home() and is_front_page() was the same thing, until I experimented with them the other day and noticed they did quite different things.
Read More
..near 'option o ON (po.option_id = o.option_id) LEFT JOIN option_description od ON (o.o' at line 1
May 9, 2011
So you’ve just installed Opencart 1.5.0 and when attempting to edit a product or category or etc you get the following error:
Read More
What is 1e100.net?
May 5, 2011
So you are probably reading this because you are not sure what 1e100.
Read More
Hide all error messages PHP
April 28, 2011
PHP Error messages showing up in your web applications are a dangerous thing.
Read More
What is xmlrpc.php?
February 22, 2011
It is a script which allows clients to make procedural calls over the net.
Read More
Windows Genuine Advantage Notifications in a VM
February 11, 2011
Windows Genuine Advantage Notifications I am running a Windows XP SP3 VM used for testing multiple versions of InternetExplorer through Virtualbox.
Read More
Force HTTP using htaccess
December 4, 2010
RewriteEngine On RewriteCond %{SERVER_PORT} 80 RewriteRule ^(.*)$ https://www.example.com/$1 [R,L]
Read More
Stop That Referrer in PHP!
November 1, 2010
Today I will show you a method to stop the traffic that a referrer site is sending your way, you may wonder why you would want to ignore traffic, after all, isn’t inbound traffic to your site fantastic no matter what?
Read More
Viva la 09 F9 11 02 9D 74 E3 5B D8 41 56 C5 63 56 88 C0!
October 26, 2010
You may see this around and not have a clue what the heck it is, weirdly enough, I did.
Read More
Ternary Operation
October 12, 2010
If you do not know what the Ternary operator is, or do not use it while you are coding, let me be the first to tell you how much you are missing out!
Read More
Oops the system encountered a problem (#104)
October 11, 2010
If you get the following error while using Google’s Gmail Service (gmail.
Read More
How to Write Unmaintainable Code
September 22, 2010
I have come across the following article before and again came across it today, after a revised browse through, I thought I may as well add another link to it on the web for whoever ends up clicking on it!
Read More
Captcha Fail!
September 16, 2010
Hey, thought I’d just post this one incase anybody else sees it and thinks it’s funny.
Read More
Test IE versions on any machine!
September 16, 2010
Do you do web development and are unable to test your software in old shitty versions of Internet Explorer?
Read More
Error 500 php_value .htaccess
September 14, 2010
I noticed on some server setups I could not do the following inside a .
Read More
Windows Directory Tree Never Finishes Loading?
September 14, 2010
I am running Windows 7 64-bit and since yesterday whenever I open “My Computer”/“Windows Explorer” (-Windows+E) the initial “showing drives” screen is frozen, so I have to use the address bar to navigate to the path I need to go.
Read More
CSS background image data: base64?
September 9, 2010
What the heck is all that Gobbledygook in the CSS?
Read More
WordPress remove Subscribe to my RSS feed after posts
September 8, 2010
If you are running WordPress and have noticed a line under all your posts that says:
Read More
And then there was Google Instant!
September 8, 2010
If you have visited the Google.co.uk homepage (Yes, that’s Google UK) recently – since about the 8th of September 2010 then you would have noticed a new search feature Google is pushing called Google Instant.
Read More
[Solved] PHP’s typeof – gettype()
September 6, 2010
Quite often you may need the ability to check what type of data type a variable is.
Read More
When to use SSL?
September 3, 2010
There has always been quite a lot of heated discussion around the question of when to use SSL and when to avoid it while building websites.
Read More
IE6 PngFix in Javascript
September 2, 2010
As a web developer you will know just how much we all love hate Internet Explorer 6 – one of the most dreaded browsers and browser versions that still exists in the deep dark corners of the interwebs – and you will probably have figured out that it doesn’t play well with PNG images.
Read More
MSSQL Select Not Null
September 2, 2010
I mainly use MySQL these days, so get screwed over for a few minutes when I have to do something in MSSQL that is slightly different when it comes to it’s custom syntax.
Read More
What is __utma, __utmb, __utmc, __utmz ?
September 1, 2010
__utma, __utmb, __utmc and __utmz are 4 cookies created by Google Analytics, for a detailed and very informative read, go here and here.
Read More
How to Close Bandmix Account
August 31, 2010
If you want to close a Bandmix account, then: Login to bandmix.
Read More
Google Redirect Virus Fix!
August 27, 2010
Now this is an annoying one. You go to any of google’s sites including any site that has google-analytics.
Read More
Chromium Operating System
August 23, 2010
As many of you may know, Chromium is an opensource project that is basically an Operating System built on Linux and is just like working in Google’s Chrome web browser.
Read More
Super Easy Email Validation AS2
August 20, 2010
I needed a quick and easy way to check for the basics of an email address.
Read More
ODBC SQL Server Memory General Network Error
August 9, 2010
Microsoft OLE DB Provider for ODBC Drivers error ‘80004005’ [Microsoft][ODBC SQL Server Driver][Shared Memory]General network error.
Read More
XML cannot be the whole program
July 26, 2010
What the hell does that mean? You can get this error thrown up in your good old trusty Firebug console.
Read More
Mocha Java Decompiler Download
June 25, 2010
Mocha is a Java Decompiler and is 100% FREE to use.
Read More
EAI_NODATA
June 24, 2010
Error message: Connection attempt failed with “EAI_NODATA – No address associated with nodename”.
Read More
1180 Call to a possibly undefined method navigateToURL
June 18, 2010
1180 Call to a possibly undefined method navigateToURL If you get the above error when trying to run your flash actionscript 3 file, you are obviously trying to use the navigateToURL() function but have not imported the flash.
Read More
Test Your Password Strength
June 10, 2010
I came across this site today and it’s quite an interesting one as it works out the approximate time it would take a desktop pc to crack the password.
Read More
How to use a Timer in Actionscript 3
June 10, 2010
It is really easy to create a Timer in Actionscript 3.
Read More
Google Background Image
June 9, 2010
Google now allows you to add a background image to the google homepage to apparently make it more, like, home.
Read More
How to Hire a Hacker
June 9, 2010
I came across a very interesting and quite funny read, take a look here for How to Hire a Hacker: http://www.
Read More
If the program is already running, close it before attempting to run.
June 8, 2010
Launch Failed! If the program is already running, close it before attempting to run.
Read More
Random Number In ASP for no Flash Caching
June 4, 2010
This is an example of how to create a random number in Classic ASP in order to append to a swf file so that the browser does not cache the swf file.
Read More
Why we don’t choose MSSQL!
May 26, 2010
Everybody always raves how great Microsoft SQL Server is, and how much data it can hold, and how much bigger it’s “package” is than your own.
Read More
How Do You Fire A Client?
May 20, 2010
How do you fire a client? Let’s face it, some clients can be a real nightmare.
Read More
How to get ‘how many days in February’ using Javascript?
May 19, 2010
It is quite handy to have a function that can tell you how many days there are in February due to the leap year shift of either 28 or 29 days.
Read More
Weird Pagination on a Google Page
May 17, 2010
Not sure how long this one will last, but for now:
Read More
Actionscript 2 – PHP Data Transfer
May 17, 2010
In the below example we will use Actionscript 2 to call a remote PHP file that will return data to it.
Read More
Unique Random Numbers in PHP
May 13, 2010
If you would like to show random numbers using PHP you can do this:
Read More
HTML mail() Sending as Plain Text
May 11, 2010
$to = "[email protected]"; $subject = "SUBJECT"; $message = "<b>MESSAGE</b>"; $headers = 'MIME-Version: 1.
Read More
Turbo C++ in DosBox for Windows 64bit
May 7, 2010
I had to compile a C++ application under a DOS environment and was running Windows 7 64bit.
Read More
Case Insensitivity with .htaccess files
May 5, 2010
If you have an .htaccess file to control the flow of URI’s on your site you may want to look at adding a nice little “case insensitive” feature to each line/item.
Read More
Actionscript2: Split string by line length with & without word-wrap
May 5, 2010
Split string into sentences by max line length. This uses a character array but doesn’t use word-wrapping.
Read More
Search and Replace Anchor Href using Javascript
April 29, 2010
I have a site that is under development and it was made really badly so I needed a quick way to replace all anchors on page to the relevant path.
Read More
Error 29506 while installing SQL Server Management Studio Express
April 28, 2010
I was trying to install Microsoft SQL Server Management Studio Express (what a long name) on a machine and kept getting error 29506 right near the end with a Rollback action thereafter.
Read More
Swap HTML Elements Using Javascript
April 26, 2010
It is quite easy to use javascript to swap between divs or any other html dom elements.
Read More
A PHP Mail Class
April 26, 2010
Below is a Mail class I created in PHP, it requires 4 arguments on initiation of the class via the constructor and uses the method ->send() to send the created mail once complete.
Read More
iTunes keeps maximizing!
April 26, 2010
Oh my goodness, this can be an annoying issue with iTunes.
Read More
Replace newline break in Excel
April 23, 2010
Ever needed to find & replace the newline character in a large excel document?
Read More
PHPExcel Class Usage
April 23, 2010
I just finished adding an export xls (excel) export feature to a web application.
Read More
unexpected T_IF
April 22, 2010
Getting “Parse error: syntax error, unexpected T_IF” ? Check if the preceeding line ends with a ;
Read More
Worst Websites of All Time
April 19, 2010
http://www.arngren.net/ http://www.lingscars.com/ http://www.theworstwebsite.com/ – beware, alert boxes coming! http://havenworks.com/ http://www.msy.com.au/ http://www.
Read More
Set line leading / line spacing in flash actionscript 2
April 16, 2010
This is how to add text leading using Actionscript 2 for Flash.
Read More
MySQL Main Query Types used in PHP to select, insert, update and delete data
April 16, 2010
MySQL Main Query Types SELECT SELECT * FROM tablename INSERT INSERT INTO tablename (col1, col2, col3,.
Read More
Connect to mysql database from php
April 16, 2010
If you need to connect to a mysql database from php you can do it like this:
Read More
htaccess file and error 500 internal server error
April 14, 2010
I have a question for anyone that can answer it:
Read More
Quake 4 – Fatal Error: could not create destination file
April 9, 2010
If you get an error message similar to this one when trying to run Quake 4…
Read More
phpMyAdmin – Invalid field count in csv input on line 1
April 9, 2010
I was trying to import a massive csv dataset into phpMyAdmin and it kept throwing error:
Read More
Choosing a programming IDE
April 7, 2010
This is somewhat of a debatable topic, but it has come up a lot of times without any real final clarity, so I will try and cover it all.
Read More
Double border in CSS
March 30, 2010
CSS allows you to add a border to almost all html elements.
Read More
[Exception… “Could not convert JavaScript” nsresult: “0x80570009 (NS_ERROR_XPC_BAD_CONVERT_JS)”
March 30, 2010
What the heck is.. uncaught exception: [Exception… “Could not convert JavaScript argument arg 0 [nsIDOMHTMLDivElement.
Read More
Error 1046: Type was not found or was not a compile-time constant: Event.
March 29, 2010
Error 1046: Type was not found or was not a compile-time constant: Event.
Read More
Add a date to a date in Actionscript 2
March 26, 2010
I needed to work out a date range according to the date 3weeks away from the current date.
Read More
Add a month to selectable date range – Date Chooser – Actionscript 2
March 22, 2010
I have been working on a project where I need to select a date range starting today and ending a month from now, so the user cannot select anything in the past or over a month from now.
Read More
hitTest and Actionscript2
March 19, 2010
if (mc.hitTest(_root._xmouse, _root._ymouse, true))) { trace("hitTest Run"); }
Read More
127.0.0.1:4664 and Google Desktop Search
March 17, 2010
Recently I checked my website stats and saw I had a few hits from “127.
Read More
Limited numeric input in flash actionscript 2 textfield
March 16, 2010
If you want to only show numeric characters in a textfield in flash actionscript you can use the following code:
Read More
Embed pound symbol (£) in flash textfield
March 10, 2010
If you use a dynamic textbox in Flash and you want to embed the British Pound symbol (£) then you will want to also embed the “Latin I” glyphs with your textfield.
Read More
Enable / Disable Cursor Hand in Actionscript 2
March 1, 2010
If you have a movieclip that by default has the hand cursor showing on RollOver and you don’t really want this, you can disable it by doing the following:
Read More
USB Device Not Recognized! in Windows
February 25, 2010
Believe it or not, this one is super easy to fix!
Read More
Calling event functions from movieclips in actionscript 2
February 24, 2010
In a flash movie I usually have a frame of actionscript that controls all elements in the file to keep everything in one place.
Read More
Sudo install OpenGL & SDL on Ubuntu
February 22, 2010
A quick and easy way would be to type the following in one line with single spaces in the Terminal.
Read More
How To Modify Hosts File On Windows
February 19, 2010
The hosts file is located at the following address: C:\windows\system32\drivers\etc</span>
Read More
Get all directories in PHP
February 17, 2010
I think this may be the fastest way to get a list of all the directories in a given folder/directory using PHP.
Read More
Security error: securitySandboxError with Flash
February 17, 2010
You have a flash uploader and you get this error:
Read More
Component Inspector in Flash has ISSUES!
February 11, 2010
I discovered a very annoying bug in the Flash IDE a little while ago, and it has happened to me quite a few times.
Read More
Close/Delete Google Checkout Account
February 8, 2010
I have used Google Checkout to receive payments in the past and have had problems with some clients not paying and blaming it on Google Checkout that the money did not go through (like the guys over at Peartree DMS).
Read More
Warning: mysql_affected_rows(): supplied argument is not a valid MySQL-Link resource
February 2, 2010
Warning: mysql_affected_rows(): supplied argument is not a valid MySQL-Link resource
Read More
Capitalize First Letter in Word – Actionscript 2
February 1, 2010
You have a string and you want to capitalize the first character but have the rest of the word in lowercase.
Read More
HP Pavilion Laptop Madness
January 28, 2010
I have got an HP laptop and have started experiencing problems with it starting up for the past few months, it is only about 1.
Read More
Why you should use OpenGL and not DirectX
January 27, 2010
Below is a very interesting article I found that proves all the myths about DirectX being better than OpenGL, a very well written paper describing it best.
Read More
What does __FILE__ in php mean?
January 26, 2010
In php there are a few magic constants and I find FILE to be a very useful one.
Read More
Woopra Failed to Connect?
January 26, 2010
I have used Woopra for a few months now and have started seeing this warning/error almost everyday now:
Read More
Stop mouse click in browsers
January 8, 2010
There have been multiple ways to stop your user/s from right clicking on your site, but many of them now fail due to the way firefox’s contextual menu loads.
Read More
Microsoft apps never care!
January 8, 2010
I often seem to have this issue when dealing with Microsoft software.
Read More
Place HTML Div on top of Flash
January 8, 2010
If you have ever tried to place a div or similar HTML element on top of a swf flash object you will know that it always tries to take precedence.
Read More
Get current working directory of php script/application
January 8, 2010
$myPath = realpath(dirname(__FILE__)); or $myPath = getcwd();
Read More
Stage align and Stage scale in actionscript 3
January 8, 2010
If you want to position the flash top/left and not have it scale when you resize it’s bounding box window, you can set the following code.
Read More
Error 406?
January 6, 2010
So you received an error 406 while trying to upload a file and you have no idea to fix it!
Read More
Firefox error in FeedProcessor.js
January 6, 2010
[Exception… “Component returned failure code: 0x80040111 (NS_ERROR_NOT_AVAILABLE) [nsIChannel.contentType]” nsresult: “0x80040111 (NS_ERROR_NOT_AVAILABLE)” location: “JS frame :: file:///C:/Program%20Files/Mozilla%20Firefox/components/FeedProcessor.
Read More
mySQL select multiple ids
December 18, 2009
SELECT * FROM tablename WHERE `active`='1' AND `id` IN ('107' , '125' ) ORDER BY `id` DESC LIMIT 12`
Read More
Force Download in PHP
December 16, 2009
This script works in all browsers, including Internet Explorer! 🙂
Read More
Remove an onRelease Handler
December 16, 2009
After creating a onRelease handler in Actionscript 2 as follows:
Read More
shortText function toggler in php
December 15, 2009
I often have to show a shortened version of a news item and then a link to show the entire news article or whatever.
Read More
PHP – file() lines
December 15, 2009
$lines = file('all-words.txt'); foreach ($lines as $line_num => $line) { echo "Line number ".
Read More
Windows Live Writer – Beta2
December 14, 2009
Start writing content to your blogs from your Windows Desktop now.
Read More
Reported Attack Site!
December 11, 2009
What the heck is that? So you’ve just visited a website using Mozilla Firefox and this message has popped up telling you that the site looks suspicious.
Read More
Simple HEX Colour Values
December 10, 2009
Actual Display Colour HEX Colour #000000 #FF0000 #00FF00 #0000FF #FFFF00 #00FFFF #FF00FF #C0C0C0 #FFFFFF
Read More
Send Email PHP Function
December 10, 2009
Ever find yourself typing the headers into the php mail() function over and over again?
Read More
mySQL Development Tools
December 9, 2009
I came across a very interesting article about mySQL Development Tools.
Read More
1180: Call to a possibly undefined method getURL. Actionscript 3
December 7, 2009
Hello all actionscripters, you can’t use getURL anymore in Actionscript 3.
Read More
Online Flash IDE Anybody?
December 3, 2009
Anyone up for an online Flash IDE? Take a look at this:
Read More
Papervision Event Listener Idea
December 3, 2009
The problem: While working on a Papervision3D Flash Project I had a problem where a back button that sits above the 3d canvas and acts as a main navigational item was required to change Events according to where the site was in 3d space at the time.
Read More
Don’t cache my swf files!
December 2, 2009
I often have issues where ‘dumb browsers’ cache my published swf files and when they dynamically populate they don’t always update.
Read More
Clear an array in Actionscript 3
December 2, 2009
I personally really like this way of clearing an array’s elements:
Read More
Change combobox font size in Flash Actionscript
November 30, 2009
Ever needed to change the font size of a standard flash combobox component?
Read More
Wordwrap that PRE!
November 23, 2009
Ever used a <PRE> in a limited width div container? You will notice that the line gets cut off almost as if word-wrap was not enabled.
Read More
Barclays ePDQ Payment Gateway
November 23, 2009
Hello all! Today we will be talking about Barclays online payment gateway valled ePDQ.
Read More
BrainWHAT? programming language
November 23, 2009
I came across a programming language today that I have never heard of.
Read More
Transparent swf in html
November 23, 2009
So you have now placed a swf file into your html page and you want to be able to see through it.
Read More
Constant updates?
November 13, 2009
I just hate it how everything always wants to update… and then restart all the damn time!
Read More
Share the mouse and keyboard!
November 13, 2009
A very interesting project I found this morning, take a look at this one!
Read More
What is CWS>+?
November 12, 2009
So what the heck kind of file starts with the characters “CWS>+” ?
Read More
Papervision error 1046
November 5, 2009
Error: “1046: Type was not found or was not a compile-time constant: InteractiveScene3DEvent.
Read More
azupnpav_0.2.23
November 5, 2009
So what the heck is “azupnpav_0.2.23.zip”? It appears to be a plugin for Vuze(Azureus) the torrent client.
Read More
How to Save a Dreamweaver document as UTF8!
November 4, 2009
Today I tried to save arabic text inside a javascript file and on saving encountered a dialog box asking me to first convert the document to UTF8.
Read More
16000 Limit!
November 3, 2009
Today I discovered that Flash truly has a limit! 16,000 frames: Exceeding this limit causes the movie playback to stop.
Read More
htaccess ErrorDocument
November 2, 2009
Create a file called .htaccess in the root of your public_html/htdocs of your domain.
Read More
How to correctly form HTML
November 2, 2009
<!DOCTYPE html PUBLIC ?-//W3C//DTD XHTML 1.0 Strict//EN? ?http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd?> <html xmlns=?http://www.w3.org/1999/xhtml?> <head> <meta http-equiv=?
Read More
Trying to get variables into flash from the browser!
November 2, 2009
Ever wondered how to get variables from an html page to a flash element?
Read More
Flash Tweening
October 20, 2009
tween is an actionscript class and can be used after importing the core files.
Read More
Cube Desktop on Ubuntu
October 20, 2009
Alright, so I run Ubuntu 7.10 and use the Desktop Effects via compviz, anyhow, I could get the 2d workspace but really wanted the 3d cube, even if I set up 4 desktops, it would still only show 2 sides of the cube(aka not a cube).
Read More
Animate with Actionscript [part1]
October 20, 2009
// Created by Andrew Odendaal // // :: DESCRIPTION :: // Animate a ball moving to the top // of the screen/stage and back again // // :: HOW TO USE :: // create a circle shape, convert to a movieclip(mc) and // place the registration point at the bottom center.
Read More
To Install IIS 7.0 on Windows Vista – script
October 20, 2009
start /w pkgmgr /iu:IIS-WebServerRole;IIS-WebServer;IIS-CommonHttpFeatures;IIS-StaticContent;IIS-DefaultDocument;IIS-DirectoryBrowsing;IIS-HttpErrors;IIS-HttpRedirect;IIS-ApplicationDevelopment;IIS-ASPNET;IIS-NetFxExtensibility;IIS-ASP;IIS-CGI;IIS-ISAPIExtensions;IIS-ISAPIFilter;IIS-ServerSideIncludes;IIS-HealthAndDiagnostics;IIS-HttpLogging;IIS-LoggingLibraries;IIS-RequestMonitor;IIS-HttpTracing;IIS-CustomLogging;IIS-Security;IIS-BasicAuthentication;IIS-URLAuthorization;IIS-RequestFiltering;IIS-IPSecurity;IIS-Performance;IIS-HttpCompressionStatic;IIS-HttpCompressionDynamic;IIS-WebServerManagementTools;IIS-ManagementConsole;IIS-ManagementScriptingTools;IIS-ManagementService;IIS-IIS6ManagementCompatibility;IIS-Metabase;IIS-WMICompatibility;IIS-LegacyScripts;IIS-LegacySnapIn;WAS-WindowsActivationService;WAS-ProcessModel;WAS-NetFxEnvironment;WAS-ConfigurationAPI
Read More
Kill Adobe Updater
October 20, 2009
So adobe updater keeps doing updates eventhough you’ve said ‘NEVER DO IT AGAIN!
Read More
Apache Cannot be Run. Another web server is using the web port or port is blocked by firewall.
October 20, 2009
Tried to start EasyPHP: “Apache Cannot be Run. Another web server is using the web port or port is blocked by firewall.
Read More
How to load xml into flash using actionscript 2
October 20, 2009
Create an xml object: var myXmlObject = new XML(); Perform action when xml file has been loaded:
Read More
TypeError: node is null message=node is null
October 20, 2009
The following error message occurs in Firefox 3 when using Firebug.
Read More
Cant start your browser?
October 20, 2009
Cant start your browser? Try checking if any torrent apps are running.
Read More
How to Temporarily Edit the Text of Any Website
October 20, 2009
Have you ever wanted to temporarily edit a webpage displayed in Chrome or another browser?
Read More
PHP __autoload function
October 20, 2009
When PHP encounters a class that hasn’t been defined yet, you can use __autoload to automatically add them instead of including masses of included at the top of your files.
Read More
IE6 on Vista?
October 20, 2009
I find myself constantly fighting the microsoft battle of making things work in their browsers (thanks guys).
Read More
Guillotine-Bug? Bug
October 20, 2009
Yes, it’s called a Guillotine-Bug and it’s yet another bug IE users get to look forward too 😛
Read More
Sending data from javascript to php
October 20, 2009
If you ever find yourself needing to do some ajax and in turn sending strings of characters via javascript then you should really try encodeURIComponent() to wrap your strings in.
Read More
What is Eb in firebug?
October 20, 2009
Gmail produces the following error/warning in firebug. Eb is not defined
Read More
cross browser alpha css
October 20, 2009
.thediv { opacity:.80; filter:alpha(opacity=80); -moz-opacity:.80; }
Read More
Add TinyMCE code button
October 20, 2009
I had quite a few problems adding the htmlCode button to a fairly old copy of TinyMCE (I think around version 2.
Read More
Runtime Error! (abnormal program termination) maya.exe
October 20, 2009
The Problem When starting Maya 8.5 an immediate error message and program termination.
Read More
Need more than hover?
October 20, 2009
I had a hover effect on an html input element but also needed to have an active state.
Read More
Getting an internet connection under VirtualPC running Windows XP and Internet Explorer 7
October 20, 2009
Getting an internet connection under VirtualPC running Windows XP and Internet Explorer 7
Read More
Uppercase text in Actionscript
October 20, 2009
var lowerCase:String = "sample text"; var upperCase:String = lowerCase.toUpperCase();
Read More
Firefox too slow?
October 20, 2009
Is your Firefox starting to get realllllllly slow? Every few months my Firefox starts dragging, so all I do is create a new profile and reimport all my bookmarks and reinstall needed addons.
Read More
Uppercase the first character of each word in a string using PHP
October 20, 2009
You can use “ucwords()” to uppercase the first character of each word in a string.
Read More
Actionscript 3 equivalent of PHP’s print_r
October 20, 2009
A brilliant version of print_r for actionscript: http://dev.base86.com/solo/47/actionscript_3_equivalent_of_phps_printr.html
Read More
Global variables and functions in Actionscript 2
October 20, 2009
In order to reuse a variable from a different timeline within the same fla file you will need to register the inital variable or function as a _global.
Read More
Actionscript conflicting class name
October 20, 2009
I had a problem today where I got a flash source file from one of my developers’ and I couldnt compile it because it said that there was a conflicting class name, however, it turned out to just be a timestamp issue.
Read More
expecting T_PAAMAYIM_NEKUDOTAYIM
October 20, 2009
What the hey? What does this mean? You may one day end up seeing the following error message produced by PHP and wonder to yourself:
Read More