The Latest

data scientist

Microsoft XNA: Ready for Prime Time?

No longer constrained to enterprise systems, database-driven applications or web service layers, with XNA, .NET developers can now spread their digital wings and let their pixelized imagination run wild. Their

The rapid growth of the gig economy has produced massive changes in the way peer-to-peer enterprises around the world do business.

Tech Trends in the Gig Economy

As our modern world continues to evolve, the relationship between technology and business is adapting constantly. The rapid growth of the gig economy has produced massive changes in the way

MySQL FULLTEXT queries run roughly 90 times faster than LIKE wildcard searches

Understanding FULLTEXT Searches

Updated April 2026. MySQL’s FULLTEXT indexes turn the classic LIKE ‘%keyword%’ pattern into a proper natural-language search — fast, ranked, and stopword-aware. On a one-million-row text column the difference is

Diagram showing how Spring's IoC container resolves and injects beans at runtime

How to Use the Spring Example API

Spring Data’s Query By Example (QBE) API is still one of the simplest ways to build dynamic, type-safe queries without hand-writing JPQL or a Criteria chain. You populate a probe

DevX - Software Development Resource

How to log transactions details in Spring Boot

To log transactions details in a Spring Boot application simply add the following settings in application.properties: logging.level.ROOT=INFO logging.level.org.springframework.orm.jpa=DEBUG logging.level.org.springframework.transaction=DEBUG logging.level.org.hibernate.engine.transaction.internal.TransactionImpl=DEBUG Related Articles How to Set hibernate.format_sql in a Spring Boot

DevX - Software Development Resource

How to log HikariCP details in Spring Boot

To log HikariCP details simply add in application.properties the following settings: logging.level.com.zaxxer.hikari.HikariConfig=DEBUG logging.level.com.zaxxer.hikari=DEBUG  If you need a deeper level of details then replace DEBUG with TRACE. Related Posts JavaScript Continues to Rise in PopularityUnderstandng toExactInt method in java.lang.Math packageIn-Store Payments: Evolution and InnovationAutomate Business Processes with Azure Logic AppsApple AirTags at lowest price

Native math operators are 20x faster than bcmath

Explore More Methods in the java.lang.Math Package

The java.lang.Math package ships with several methods related to Euler’s number (e ≈ 2.71828) that are easy to overlook. Two of them, Math.exp(x) and Math.expm1(x), come up all the time

DevX - Software Development Resource

Retrieving a file from a jar file

JAR file in Java is a compressed format and is used for packaging of the deliverables. At times, you may want to manipulate this file.Below example indicates a scenario for the same. import java.util.jar.*;import java.io.*; public class RetrievingJarEntry{   public static void main(String args[])   {      RetrievingJarEntry retrievingJarEntry = new RetrievingJarEntry();      retrievingJarEntry.proceed();   }      private void proceed()   {      String sourceJarFile = “files/contacts.jar”;      String sourceFile = “2.txt”;      String destFile = “files/new2.txt”;      try{                  JarFile jarFile = new JarFile(sourceJarFile);         JarEntry jarEntry = jarFile.getJarEntry(sourceFile);         System.out.println(“Found entry: ” + jarEntry);         if ( jarEntry != null)         {            //Getting the jarEntry into the inputStream            InputStream inputStream = jarFile.getInputStream(jarEntry);             //Creating a output stream to a new file of our choice            FileOutputStream fileOutputStream = new java.io.FileOutputStream(destFile);            System.out.println(“Attempting to create file: ” + destFile);            while (inputStream.available()  0)             {                 fileOutputStream.write(inputStream.read());            }            System.out.println(“Created file: ” + destFile);            fileOutputStream.close();            inputStream.close();         }      }catch(IOException ioe)      {         System.out.println(“Exception: ” + ioe);      }   }} /* Expected output: [root@mypc]# java RetrievingJarEntryFound entry: 2.txtAttempting to create file: files/new2.txtCreated file: files/new2.txt */ //Please note: You have to create a folder with name files and a jar file contacts.jar which has files 1.txt, 2.txt and 3.txt Related Posts Add Log4j2 in a Spring Boot ApplicationHow To Unlock Android PhoneOverview of the New Features in .NET Framework 4.6Reverse a

DevX - Software Development Resource

Navigating an enum

Enums are predefined place holders in Java. Knowing the contents of an enum will be handy in many instancesLet us look at how to navigate the elements of an enum public class NavigatingAnEnum{   public static void main(String args[])   {      NavigatingAnEnum navigatingAnEnum = new NavigatingAnEnum();      navigatingAnEnum.proceed();   }      enum Criteria {      LOW,      MEDIUM,      HIGH   }      private void proceed()   {      System.out.println(“Elements of the enum Criteria…”);      for (Criteria criteria : Criteria.values()) {         System.out.println(criteria);      }   }} /* Expected output: [root@mypc]# java NavigatingAnEnumElements of the enum Criteria…LOWMEDIUMHIGH */ Related Posts KwikBucks Algorithm Transforms ClusteringApple banks on AI to boost iPhone 16 salesSurvey: Most Enterprises Still Focus on Structured DataThe Big Data Skills

DevX - Software Development Resource

Understandng java.net.PasswordAuthentication

PasswordAuthentication holds the data that will be used by the Authenticator. The username and password are stored in the PasswordAuthentication object. The methods getUserName() and getPassword() are made available that return the userName and password respectively. import java.net.PasswordAuthentication; public class UnderstandingPasswordAuthentication{   public static void main(String args[])   {      UnderstandingPasswordAuthentication understandingPasswordAuthentication = new UnderstandingPasswordAuthentication();      understandingPasswordAuthentication.proceed();   }      private void proceed()   {      //Initializing the user name      String userName = “devUser”;      //Initializing the password – This is a char array since the PasswordAuthentication supports this argument      char[] password = {‘d’,’e’,’v’,’U’,’s’,’e’,’r’};            PasswordAuthentication passwordAuthentication = new PasswordAuthentication(userName, password);      System.out.println(“Details being retrieved from PasswordAuthentication object post initializing”);      System.out.println(“UserName: ” + passwordAuthentication.getUserName());      //The below getPassword actually returns the reference to the password as per the Java API documentation.      System.out.println(“Password: ” + passwordAuthentication.getPassword());      //You can get the password in normal string       System.out.println(“Password: ” + String.copyValueOf(passwordAuthentication.getPassword()));   }} /* Expected output: [root@mypc]# java UnderstandingPasswordAuthenticationDetails being retrieved from PasswordAuthentication object post initializingUserName: devUserPassword: [C@15db9742Password: devUser */ Related Posts Complete Windows 11 Installation Guide For Beginners.Cloud and Hybrid Application Lifecycle Management with OneOpsHPE, Micro Focus Sign $8.8 Billion Software Spin

DevX - Software Development Resource

Understandng HashMap.getOrDefault() method

HashMap is a class which which facilitates storing data in the form a key value pair. One thing to note of HashMap is that this is not synchronized and has to be used with caution in multi threaded environment. We may find cases where the key is not present and we maybe trying to perform operations using the key. Following method will help us in using a default value when the key in question is not available in the avaialble set of data. import java.util.HashMap; public class UnderstandingHashmapGetOrDefault{   public static void main(String args[])   {      UnderstandingHashmapGetOrDefault understandingHashmapGetOrDefault = new UnderstandingHashmapGetOrDefault();      understandingHashmapGetOrDefault.proceed();   }      private void proceed()   {      HashMap hashMap = initHashMap();      int currencyId = 12;      System.out.println(“Value of currency ” + currencyId + ” is ” + hashMap.getOrDefault(currencyId, “Unknown”));      currencyId = 100;      System.out.println(“Value of currency ” + currencyId + ” is ” + hashMap.getOrDefault(currencyId, “Unknown”));   }    private HashMap initHashMap() {      //HashMap declaration with 2 arguments (Integer and String)      HashMap hashMapCurrency = new HashMap();      //Adding predefined contents to the HashMap      hashMapCurrency.put(10, “Ten Dollars”);      hashMapCurrency.put(20, “Twenty Dollars”);      hashMapCurrency.put(50, “Fifty Dollars”);      hashMapCurrency.put(100, “Hundred Dollars”);      hashMapCurrency.put(200, “Two Hundred Dollars”);      return hashMapCurrency;   }   } /* Expected output: [root@mypc]# java UnderstandingHashmapGetOrDefaultValue of currency 12 is UnknownValue of currency 100 is Hundred Dollars */ Related Posts NASA astronaut captures moon over PacificUnbelievable Razer Blade 17 DiscountMicro Focus Brings COBOL to Visual Studio 2015Tools that Highlight the

DevX - Software Development Resource

Understandng toExactInt method in java.lang.Math package

java.lang.Math has numerous methods and our interest here is toIntExact() method.Consider the following example public class MathExact{   public static void main(String args[])   {      MathExact mathExact = new MathExact();      mathExact.proceed();   }      private void proceed()   {      long l = 100000000;      int i = (int) l;       System.out.println(“i: ” + i);            System.out.println(“Math.toIntExact(“+l+”);: ” + Math.toIntExact(l));   }} /* Expected output: [root@mypc]# java MathExacti: 100000000Math.toIntExact(100000000);: 100000000 */ Related Posts CISA guide assists in secure software procurementLiquid Web Buys Rackspace’s Cloud Sites UnitTop .NET Development CompaniesUsing Visual Studio to Program in

SQL formula for calculating the first day of the current month using DATEADD and DATEDIFF

Get the First Day of the Current Month

Month-start boundaries show up everywhere in reporting queries, billing cycles, cohort aggregations, and partition pruning. Hard-coding a date string works for one run but quickly rots. Deriving the first day

DevX - Software Development Resource

Find error log location

It is quite easy to find the error log location through a quick query such as : SELECT SERVERPROPERTY(‘ErrorLogFileName’) AS ‘Error log file location’   This shows where your Error log file is stored Related Posts Volvo EX30 Electric SUV Arrives in EuropeWalmart Releases OneOps Open Source Cloud Development and ALM PlatformIdentify All the Foreign Keys in Your DatabaseHow To Mirror

DevX - Software Development Resource

DBCC SHRINKDATABASE

DBCC SHRINKDATABASE The command shrinks the size of the data and log files in a database. Here is a small example: DBCC SHRINKDATABASE (Database_Name, 10);  –This allows for 10 percent free space in the database. Related Posts Having a Global Configuration, Parameters, Constants ClassMost retirees unsure of Social Security benefitsUnderstanding the Collections.unmodifiableCollectionFind the Sign of a Number in C#Challenges and Excitement in

DevX - Software Development Resource

Monitor Log space in SQL Server quickly

You can use the following command to monitor all your databases’ log file’s free space DBCC SQLPERF (‘LOGSPACE’) Related Posts Transforming side jobs into sustainable entrepreneurshipLimiting the rows returned – MySQLDetach from a Docker Container and Leave it RunningUsing the SQL LCASE FunctionUsing Symbolic Links in

Browsers warn that synchronous XHR on the main thread is deprecated and hurts UX

How to Trigger a Synchronous GET Request

Java’s modern HttpClient (introduced in Java 11, fully stable through Java 21 and 25) is the canonical way to issue HTTP requests from server-side Java. For a simple synchronous GET,

DevX - Software Development Resource

Check for finite numbers in Python

Use the math module???s isfinite method to determine if a value is finite or not.  If it is not a number, the function returns false.  See below for an example:math.isfinite(10) returns True Related Posts OnePlus Watch 2R impresses with affordabilityCloudFoundry Announces PaaS Certification ProgramGitHub Adds Project Management FeaturesIBM Cloud Computing Revenue Climbs 30%Accessing and Managing Third-Party Libraries

DevX - Software Development Resource

How to detect Python version at runtime

At times, we want to run our code only if the version of Python engine is above a certain version. See below for sample code. Import sysversion = sys.version Related Posts Using FILEPROPERTY to Check for Free Space in a DatabaseDatabricks Adds Deep Learning and GPU Acceleration to SparkLiquid Web Buys Rackspace’s Cloud Sites UnitHP Debuts Distributed

DevX - Software Development Resource

Return multiple values from a function in python

Python can return multiple values at a time. See below for a simple example. def multipleValueFunc():     z = 11     b = 22    return z, b  j,k  = multipleValueFunc () print(j, k)  Related Posts Is anyone faster than Devart? Support for MySQL v8.0 is already in dbForge StudioAvoid Repeated Execution of LINQ Queries in C#Getting the Last ID in MySQLComparing

DevX - Software Development Resource

Remove occurrences of a characters trailing within a given string

Use the rstrip method to return the string with all occurrences of the trailing characters removed.  For e.g. inputString = “devxyyy”inputString.rstrip(???y???) gives ???devx??? Related Posts IBM Launches Globalization Pipeline App Translation ServiceAsync Query ResultsFormat the Currency for a Culture in C#Apple announces iPhone 16 event for SeptemberEFCC raids night clubs in

DevX - Software Development Resource

Reverse a string in Python

Its pretty ease to reverse a string in Python. ???Devx Jan???[::-1]  gives ???naJ xveD??? Related Posts Docker 1.12 Offers Full Mac and Windows VersionsImprove Performance of Web Pages with CSS3 StylesRESEED Identity Columns of All TablesMicrosoft Releases Team Foundation Server 2015Tech Sector Turmoil:

Modern Java null-handling: explicit null, Objects.requireNonNull, Optional

Simplifying Null Check in Java

A tiny refactor that has survived every Java version from 8 to 25: flip the null check. To guard against a NullPointerException when comparing a string to a literal, most

FIND_IN_SET returns the position of a value within a comma-separated list

Using Find_in_Set in MySQL

MySQL has several ways to locate a substring, and FIND_IN_SET is the right pick when your data is stored as a comma-separated list in a single column. It returns the

Get All the Tables with a Count of Their Records

Get all the tables with a count of their records with the following query: CREATE TABLE #Temp ( TableName VARCHAR(MAX), Rows INT ); EXEC sp_MSForEachTable @command1 = ‘INSERT INTO #Temp(TableName,