Articles on Trending Technologies

Technical articles with clear explanations and examples

SQL Query to Convert VARCHAR to INT

SQL
guru
guru
Updated on 25-Oct-2024 2K+ Views

In SQL, it is common to store data in different formats like VARCHAR, INT, FLOAT, etc. based on the needs of the application. However, sometimes we may need to convert a VARCHAR column to an INT for performing arithmetic operations, comparisons or other logical queries that require integer values. This article will explore various ways to convert VARCHAR (string) data types to INT in SQL using the built-in functions the potential pitfalls and examples. Why Convert VARCHAR to INT? While working with databases we may need to convert VARCHAR to INT in the following scenarios − ...

Read More

Java program to format strings into table

Samual Sam
Samual Sam
Updated on 25-Oct-2024 1K+ Views

In this article, we will learn how to format strings into a table using Java. Java's System.out.format() method is a convenient way to display formatted output. We will define a string format that specifies column widths to ensure uniform spacing, allowing us to create a neat table layout. By using this approach, we can display multiple rows of string data in a structured and readable format without manually adjusting spaces for each entry. Steps to format strings into a table Following are the steps to format strings into a table − Define a format string ...

Read More

Java program to calculate the time of sorting an array

Samual Sam
Samual Sam
Updated on 25-Oct-2024 978 Views

In this article, we will learn to measure the time taken to sort an array in Java. We will look at two methods to calculate sorting time: using the Date class and the System.nanoTime() method. First, we will use the Date class to track the time before and after the sorting operation, allowing us to calculate the duration in milliseconds. Then, we'll utilize System.nanoTime() to capture the time with greater precision, measuring in nanoseconds and converting the result to milliseconds. Different approaches Below are the different approaches to measure the time taken to sort an array using Java− ...

Read More

Returning even numbers from a stack in java

DrOfEng
DrOfEng
Updated on 25-Oct-2024 297 Views

Stacks in Java A stack is a Last-In-First-Out (LIFO) data structure. As shown below, the last book inserted onto the stack is the first to be removed, and the first book inserted into the stack is the last to be removed. In Java, a stack of integers can be created by importing the java.util.Stack package and invoking the Stack() constructor. Integer objects can be pushed onto the stack using the push() method. An example is provided in the following code snippet. Example Following is an example program − import java.util.Stack; public class Testing { public static ...

Read More

Java ArrayList to print all possible words from phone digits

Neetika Khandelwal
Neetika Khandelwal
Updated on 24-Oct-2024 575 Views

In this article, we will learn to generate all possible words from a string of phone digits using Java. Each digit on a mobile keypad corresponds to a set of letters, and our task is to find every possible combination of letters that can be formed by pressing those digits. For instance, if the input is "23, " the output would include combinations like "ad, " "ae, " "af, " and so on. We will implement a recursive approach to achieve this, allowing us to systematically generate and print all possible words corresponding to the given digits. Problem Statement Write ...

Read More

Java program to paste clipboard text to JTextArea

Smita Kapse
Smita Kapse
Updated on 24-Oct-2024 955 Views

In this article, we will learn to paste clipboard text into a JTextArea using Java. We'll use the paste() method to create a simple program that lets users insert clipboard content directly into a text area. The program will display a basic GUI window with a JTextArea, where any text copied to the clipboard can be easily pasted. Steps to paste clipboard text to JTextArea Following are the steps to paste clipboard text to JTextArea − First, import necessary classes from packages like javax.swing and java.awt to create the GUI components. Create a ...

Read More

Serving Large models - VLLM, LLAMA CPP Server, and SGLang

Komninos Chatzipapas
Komninos Chatzipapas
Updated on 24-Oct-2024 969 Views

Both Large Language Models (LLMs) and Vision-Language Models (VLMs) have exploded in popularity over the last two years. Powered by recent advancements in GPU tech, these models have been pre-trained on trillions of tokens and allow developers to easily leverage state-of-the-art AI, either by fine-tuning them or just using them outright.But how would one go about hosting these models? In this article, we'll compare 3 of the most popular solutions: vLLM, llama.cpp, and SGLang.vLLMReleased in June 2023 by researchers from UC Berkeley, vLLM is a high-performance model LLM backend based on a technique called PagedAttention. PagedAttention optimizes memory management which ...

Read More

Digital Evidence - How to Use FTK for Examining Evidence

N.VIJAYKUMAR
N.VIJAYKUMAR
Updated on 24-Oct-2024 397 Views

What is Digital Evidence?Digital Evidence refers to any actionable information, which is gathered from any electronic device, capable of revealing the mystery behind a crime. Such evidence is admissible in any court of law. Data is retrieved from computer's, electronic devices. Forensic involve sealing the crime scene, collecting fingerprints, electronic evidence, confiscating all related evidence material or otherwise. It is a simple task if the systems are operational. This process forensically is termed as Live Acquisition of Data.What is Cloning?Cloning is a method of creating a replica of a system drive. Clones are critical in scenario's where duplication has to ...

Read More

Top Generative ai tools for small business owners

Mallikarjun Reddy Ganapuram
Mallikarjun Reddy Ganapuram
Updated on 24-Oct-2024 178 Views

As a small business owner, things can get tough for you out there, but using generative AI tools can help in ways more than one. These tools use smart technology to automate tasks, help you come up with new ideas, and save you time. In this article, we are going to see some of the best AI tools that can be used easily by small business owners like you. Jasper AI Jasper AI is amazing for creating content. Whether you need blog posts, social media updates, or email newsletters, Jasper AI can write high-quality text quickly. It's like having a personal ...

Read More

Human Augmentation - What it is, How does it work?

Shirjeel Yunus
Shirjeel Yunus
Updated on 24-Oct-2024 518 Views

What is Human Augmentation? Human augmentation technology is being developed to improve the working capabilities of humans. This technology will enhance the performance, health, and quality of life. Another thing in this technology is establishing the communication between humans and machines and how they can work together. The advancement of artificial intelligence can help in this improvement. Types of Human Augmentation Human augmentation is of three types discussed below − Sensory Sensory technology can restore the abilities of human beings to perform their work well. This technology also helps compensate for human impairments. Interpretation of multi-sensory information can enhance ...

Read More
Showing 31791–31800 of 61,297 articles
Advertisements