Posts

Azure Synapse Analytics

Azure Synapse Analytics: A Unified Analytics Service Azure Synapse Analytics is a fully managed, enterprise analytics service that brings together data warehousing and Big Data analytics. It provides a unified experience for data preparation, data access, and data governance, and it supports a wide range of analytics workloads, including SQL, Spark, and Machine Learning. Azure Synapse Analytics is built on top of the Azure Data Lake Storage Gen2 platform, which provides a scalable, secure, and cost-effective way to store and manage large amounts of data. Synapse Analytics also includes a powerful analytics engine that can process data at scale, and it offers a wide range of built-in tools and services for data preparation, data access, and data governance. Azure Synapse Analytics is a powerful and versatile analytics service that can be used to address a wide range of business challenges. It is a good choice for organizations that need to: Manage and analyze large amounts of data Run a

Offcanvas menu for Bootstrap

Bootstrap is one of the most widely used front-end development frameworks, offering an extensive range of pre-built components and features for creating responsive websites. One of the features of Bootstrap is the off-canvas menu, which is a navigation menu that slides in from the side of the screen, taking over part of the viewport. This type of menu is especially useful for mobile devices, where screen real estate is limited. In this article, we will discuss how to create an off-canvas menu for Bootstrap. Step 1: Import Bootstrap CSS The quickest and easiest way to use Bootstrap is to import it from the official Bootstrap CDN site. At a minimum you'll want to import the CSS and Javascript files. Below is an example how to import Bootstrap v5.2.3 into an HTML file. <link rel= "stylesheet" href= "https://cdn.jsdelivr.net/npm/bootstrap@5.2.3/dist/css/bootstrap.min.css" integrity= "sha384-rbsA2VBKQhggwzxH7pPCaAqO46MgnOM80zW1RWuH61DGLwZJEdK2Kadq2F9CUG65&

Spring RedirectAttributes

Spring is a popular framework for building web applications, and one of its key features is the ability to handle requests and responses using controllers. When a user submits a form or makes a request to a Spring controller, the controller may need to redirect the user to a different page or display a message on the next page. This is where RedirectAttributes come in. RedirectAttributes is a class in Spring that allows a controller to pass attributes to a redirected URL. When a user is redirected, the controller can add attributes to the RedirectAttributes object, and these attributes will be available in the next request. This is useful for displaying success messages, error messages, or any other information that needs to be displayed on the next page. To use RedirectAttributes in Spring, we first need to add the necessary Spring web dependencies to our project. We can do this by adding the following to our Maven or Gradle file: <!-- For Maven --> <dependency> <gr

Spring Boot Features

Spring Boot is a popular open-source framework used for building web applications in the Java programming language. It is designed to simplify the development of production-ready applications by providing a set of pre-configured tools and libraries that can be easily integrated into your project. In this article, we'll explore some of the key features of Spring Boot and how they can be used to develop web applications. One of the main features of Spring Boot is its ability to auto-configure itself based on the dependencies in your project. This means that you can get up and running with a basic web application in just a few minutes, without having to spend time configuring your project or setting up a development environment. Spring Boot also includes a built-in web server, so you can run your application without having to deploy it to an external server. Another important feature of Spring Boot is its emphasis on convention over configuration. This means that the framework comes w

Cutomize Bootstrap Look and Feel

Bootstrap is a popular front-end framework used to create responsive and mobile-first web pages. With its pre-built components and easy-to-use styling, it allows developers to create professional-looking websites quickly and efficiently. While Bootstrap comes with its own set of themes, sometimes you may need to create a custom theme to fit your project's unique design needs. In this article, we'll walk you through the steps of configuring a custom Bootstrap theme. Set Up Your Development Environment Before we can begin, we need to set up our development environment. This involves downloading Bootstrap and setting up a project folder. You can download Bootstrap from the official website , or you can use a package manager like npm or Yarn. Once you have Bootstrap installed, create a new project folder and add the necessary files. Next, install the Sass compiler . Bootstrap uses Sass files and in order to take advantage of it's variables, maps and mixins you'll need to se

Use JQuery DOM manipulation to glean data from HTML

Recently I had a request to help scrape data from a website. These tasks can be tricky and take quite a bit of time. But if the developer who wrote the code generating the HTML decided to go off script it can get downright ugly. In this article, I'm going to show you one method to clean up the HTML text nodes to make it easier to parse data. I'm going to use JQuery but you can certainly also do this with vanilla javascript.  Note : This is representative of the HTML I was working with but is not the actual data or fields.  Problem Statement I needed to pull out the business name, support phone numbers and contact email addresses. The data was jumbled together and as you can see, there are mulitple text nodes separated by break elements and the overall HTML was sporadic.  <div> <div> <img src= "image.png" data-userid= "123456789" > </div> <div id="business"> Business name<br> <div>

Use Java Enums with JPA

Java Persistence API (JPA) is a widely used standard for object-relational mapping (ORM) in Java applications. One of the common challenges when working with JPA is mapping database columns to Java enums. This can be especially challenging if the database column is not a string, such as when using an integer or a byte as the database column type. In this article, we will explore how to use Java enums with JPA. Mapping Java enums to database columns Before we dive into the details of how to use Java enums with JPA, let's first discuss how JPA maps Java enums to database columns. JPA provides two basic ways to map Java enums to database columns: Ordinal-based mapping : This maps the enum's ordinal value (the position of each enum value in the enum declaration) to the database column. For example, if we have an enum named Status with values ACTIVE, INACTIVE, and SUSPENDED, ACTIVE will have an ordinal value of 0, INACTIVE will have an ordinal value of 1, and so on. Name-based mappi