Monday, March 24, 2025

How to sort array in decreasing order in Java? Example Tutorial

It's easy to sort an array on increasing order by using Arrays.sort() method, which by default sort the array on increasing order, but if you have to sort array into decreasing order then how do you it? For example, if you have an array of Strings {"a", "b", "c"} how do you sort them into descending order? Well, if you remember, Arrays.sort() is overloaded and there is another version, which accepts a Comparator. To sort the array in decreasing order, you can simply providing a comparator which compares element in the reverse order. Thankfully there is one such Comparator already exists in JDK API, Collections.reverseOrder()

Sunday, March 23, 2025

FIX Session is not connecting how to diagnose it? Example Tutorial

In this blog post of the FIX protocol tutorial series I would like to share my experience with connectivity issues around Fix Engines. to exchange messages or say to trade electronically clients connect to the broker using FIX protocol and for that, they use FIX Engine. In FIX protocol connection between two FIX Engines is refereed as FIX Session and we normally say whether FIX Session is connected or not connected. FIX Session normally has their start time, end time, and EOD time (End of day time) also called TradingSession start time, Trading Session End Time, and Trading Session EOD time.

Friday, March 21, 2025

How to Fix java.sql.SQLException: No suitable driver found for jdbc:mysql://localhost:3306/test [Solved]

The error "java.sql.SQLException: No suitable driver found for jdbc:mysql://localhost:3306/test" occurs when you try to connect MySQL database running on your localhost, listening on port 3306 port from Java program but either you don't have MySQL JDBC driver in your classpath or driver is not registered before calling the getConnection() method. Since JDBC API is part of JDK itself, when you write a Java program to connect any database like MySQL, SQL Server, or Oracle, everything compiles fine, as you only use classes from JDK but at runtime, when the JDBC driver which is required to connect to the database is not available, JDBC API either throws this error or "java.lang.ClassNotFoundException: com.mysql.jdbc.Driver".

Wednesday, March 19, 2025

How to Fix Failed to connect to queue manager - WebSphere MQ Error in Java? Example

"Failed to connect to queue manager" error comes in WebSphere MQ if any Client like a Java program is not able to connect to the MQ server due to any reason. The reason is actually identified by reason code in error message e.g. code 2397 comes when SSL is enabled between client and server and Java client is not able to connect to the server due to unknown or expired SSL certificates. If you are working in a Java application that is using WebSphere MQ for messaging over SSL then you are bound to face some setup, certificate, and keystore vs truststore related error. 

Tuesday, March 18, 2025

How to fix java.net.SocketException: Too many files open java.io.IOException in Tomcat, Weblogic Server

Not many Java programmers know that socket connections are treated like files and they use file descriptors, which is a limited resource. The different operating system has different limits on the number of file handles they can manage. One of the common reasons for java.net.SocketException: Too many files open in Tomcat, Weblogic, or any Java application server is, too many clients connecting and disconnecting frequently a very short span of time. Since Socket connection internally uses TCP protocol, which says that a socket can remain in TIME_WAIT state for some time, even after they are closed. One of the reasons to keep the closed socket in the TIME_WAIT state is to ensure that delayed packets reached the corresponding socket.

Friday, March 14, 2025

3 Ways to Solve jQuery - Uncaught ReferenceError: $ is not defined Error

If you are using jQuery, Angular JS, or plain old JavaScript and getting "Uncaught ReferenceError: $ is not defined" error which means $ is either a variable or a method that you are trying to use before declaring it using the var keyword. In jQuery, it's a short name of jQuery() function and most commonly used in $(document).ready(function()). If you are doing some jQuery stuff when DOM is loaded and getting this error it means your browser has a problem loading jQuery library either from the internet or local file system.

Top 5 Udemy Courses to Learn VI Editor or Vim in Linux in 2025 - Best of Lot

Hello guys, if you want to master the  VI editor or Vim and looking for the best online courses then you have come to the right place. Earlier, I have shared the best Linux courses and best shell scripting courses and today, I am going to share the best courses to learn VI editor. If you have worked in Linux, then you may know that VIM is one of the most useful and powerful text editors and every people working in a Linux environment should know about VIM. Also known as VI Editor, it is often touted as the go-to-editor for genius developers who make full use of Vim's capability for code navigation and do fancy things.

Wednesday, March 12, 2025

Top 5 Udemy + Coursera Courses to Learn Computer Vision for Beginners in 2025 - Best of Lot

Hello guys, if you are learning Computer Vision and Open CV library in Python and looking for the best online courses, certifications, tutorials, and projects, you have come to the right place. Earlier, I have shared the best python 3 courses, best data science courses, and best tableau courses. Today, I will share the best Computer vision courses for beginners and experienced developers. These online training courses, certifications, and projects have been created by experts and trusted by thousands of developers around the world; you can also join these courses to learn Open CV and Computer Vision in 2025 and add an in-demand and highly valuable skill to your Resume to give your career a boost.

Top 5 Udemy Courses to Learn GraphQL for Beginners in 2025 - Best of Lot

If you are a full-stack web developer then you might have heard about GraphQL, another exciting technology. GraphQL is gaining a lot of popularity because of its superiority over traditional REST APIs. Many big companies like Facebook, Coursera, Github, and Yelp have already started using it, which has also helped a lot in terms of gaining popularity. There is a good chance that you might have already have heard about GraphQL in blogs pots, on Medium, or, in general, Web, but like many others, not sure whether it's worth learning or not, and if yes, from where to start. Well, I have been learning GraphQL since last week, and I would like to share some of the resources I have been using for my learning.

Monday, March 10, 2025

Top 5 Udemy Courses to Crack CompTIA Linux+ Certification in 2025 - Best of Lot

Hello guys, if you are preparing for CompTIA Linux+ certification and looking for the best online courses and practice tests to pass this certification exam on the very first attempt, then you have come to the right place. In the past, I have shared the best courses to learn Linux and pass certification like CompTIA A+, Cloud+, and Security+, and today, I will share the best CompTIA Linux+ course and practice test. These are created by experts and trusted by thousands of developers, and they are chosen from websites like Udemy, Whizlabs, and other reputed online portals. You can use them to prepare better for this certification and crack in the first attempt.

Top 5 Udemy + Pluralsight Courses to Learn Vue.js in 2025 - Best of Lot

Hello frontend and full-stack developers, if you want to use Vue.js for your next project and looking to learn Vue.js online and looking for the best Vue.js resources then you have come to the right website. In the past, I have shared the best React courses and best Angular courses and today, I am going to share the best Vue.js courses, both free and paid for beginners and intermediate developers. These are the best Vue courses from sites like Udemy, Pluralsight, and Educative and created by experts, and thousands of frontend developers have already enrolled to learn Vue.js online. They are also very affordable and you can buy most of them for under $15. But, before looking into these awesome Vue.js courses, let's learn a bit more about Vue.js and why you should learn Vue.js in 2025. 

Sunday, March 9, 2025

How to System Design Trade Position Aggregator? [Solution]

Hello guys, it's been a long since I shared object-oriented design and system design questions in this blog. It was almost 7 to 8 years when I last blogged about how to solve vending machine design problems in Java and Twitter System Design question? Actually, I had ideas for lots of such design questions at that time, but because of the lengthy nature of these kinds of posts and the amount of time they take, they just sit on my list of drafts. I thought to take them out and publish then slowly improve on them instead of publishing the perfect post for the first time, and today, I am excited to share one of such problems, how to design a trade position aggregator in Java. This program is like portfolio management software that monitors your risk and exposure in real-time based on trades. 

Saturday, March 8, 2025

Top 6 Udemy Courses and Books to learn Rust Programming language in 2025 - Best of Lot

Hello guys, if you are looking to learn a new Programming language that will improve your overall programming skills and practices in 2025, then the Rust programming language can be the right choice. Rust is one of the relatively new (born in 2015) and powerful programming languages which combines the power of C++ with the safety of Java and other interpreted languages. When a Programming language is designed, it was either designed for power like C/C++ or for safety like Java, Python, etc. but we didn't have the best of both. There were many attempts to combine the power of C/C++ and safety offered by Java, and it looks like Rust has got that right. Since it was debut in 2015, Rust has gained the attention of the world and the developer community.

Friday, March 7, 2025

Is Pramp a Good Place for System Design and Coding Mock Interviews in 2025?

Hello guys, if you are preparing for tech interviews in this tough market then you may know that preparing for technical interviews can be a daunting task, especially when targeting top-tier companies like FAANG (Facebook, Amazon, Apple, Netflix, and Google).  But, good resources can make this task slightly easier for you.  In the past, I have shared the best Coding interview bookscourses, and websites as well as System design bookscourses, and websites to prepare well for both Coding and System design interviews. While these books and courses are essential for tech interview preparation if you want to crack FAANG interview then you must do Mock interviews, as many as possible.

Top 5 Udemy Courses to Learn Groovy and Grails Online in 2025 - Best of Lot

Hello guys, If you want to learn Groovy or Grails in 2025 and looking for some awesome resources like books, courses, and tutorials, then you have come to the right place. In the past, I have shared the best Groovy books and best Gradle courses. Today, I will share some of the best online courses to learn both the Groovy programming language and Grails framework .you might have heard about Groovy, if not maybe heard about Grails, Akka, Play, and Gradle, the top 5 Groovy frameworks for Java developers. Instead of competing with Java, Groovy focuses on co-existing with Java and enhancing Java developers' capability on Java's traditional weak areas like scripting.
Page 1 of 2971234567...297Next »Last