The Latest

Variable Argument Method

The following class describes a method that can accept a variable argument instead of a fixed argument list. This can be handy where the developer is not sure of the

Turn on Line Numbers in SQL Developer

By default, line numbers are not turned on in SQL Developer. To turn them on, go to Tools ? Preferences: Click on the + next to Code Editor. Click on

Using the SQL LCASE Function

The LCASE() function simply converts the value of a field to lowercase. Syntax: SELECT LCASE(column_name) FROM table_name; Related Posts Get All the Available Time ZonesThe Next System Programming LanguageValidating an

Performance Comparison: Apache vs. IIS

There has been a lot of discussion regarding which of the two most popular Web servers is better. In this article, we will try to compare their characteristics and performance.

Find Which Port Is Being Used by a Process

There are many instances when we struggle to find out which port is being used by our applications. On Windows, you can use the same netstat command, where the filtering

DevX - Software Development Resource

Enhancing the WebBrowser control–do not use

The Webbrowser control does not show the notifications of the document like  a) downloading web page.. b) resolving proxy…  c) hyperlink url’s  You can quickly enable this by using the StatusTextChanged Event of the webbrowser control. It is a two-step process:  Step 1: Attach an event handler to the Webbrowser’s StatusTextChanged event, Like myWebBrowser.StatusTextChanged += new EventHandler(myWebBrowser_StatusTextChanged);  Step 2: Use the Webbrowser’s StatusText property to retrieve the current status notification. Create the event handler. private  void myWebBrowser_StatusTextChanged(object sender, EventArgs e)  {    //get the current status text from the webbrowser control  //and assign it to a control in the status bar.      statusStrip1.Text = webBrowser1.StatusText;  } Related Posts Unleashing AI Power with Microsoft 365 CopilotIBM Launches Quark IoT Development ToolThe Most Often Ignored

Generate Random Passwords

Use the following method to generate random passwords. private string GenerateRandomPassword(int minLength, int maxLength) { StringBuilder randomPassword = new StringBuilder(); Random rand = new Random((int)DateTime.Now.Ticks); int randLength = rand.Next(minLength, maxLength);

New Features in ASP.NET Core

ASP.NET Core is the latest Web application development framework from Microsoft. It is a significant redesign of the legacy ASP.NET framework and has already become widely popular. ASP.NET Core is

Failing Test After Time Expired in Mockito

Failing test after expiring the set period of time in Mockito: @Timed(millis=2000)public void testTwoSecondTimeout(){ // some logic that should not take longer than 2 seconds to execute} Related Posts How

Method Overloading in C#

Method Overloading means that you can have different methods having the same code, but with different parameters. Here is an example: class MyMath{ public static int Add(int number1, int number2)

How to Undo Dropping a Table in Oracle SQL

Have you dropped a table by mistake and want to restore it? In some cases you can. Let’s say you’ve run this statement: DROP TABLE yourtable; Now, you want to

Cloud Platform Overview

In this article, I’ll introduce you to Cloud platforms, discuss the services they provide, the cost (not just monetary cost) and the problem of lock-in. I’ll also discuss hybrid systems

Displaying the Euro Sign in a Textbox

Don’t you just hate it that the Euro monetary symbol is not present on all computers? With this simple trick you can add the Euro sign to a textbox. Put

DevX - Software Development Resource

Check if an HttpRequest is an Ajax Request

A quick way to check if an HTTP Request is an Ajax request is by examining the X-Requested-With Header value. Please see below: bool isAjaxRequest = request.Headers[“X-Requested-With”] != null &&

Defining a Parameter in Jenkins

As you know, Jenkins accept parameters in different kind of projects, including pipelines. Depending on the operating system where Jenkins is running, we can refer to the parameters as follows,

Change the Output Format of a Date with TO_DATE

If you’re working with DATE fields in Oracle, and select this data, you’ll see the dates in the default output format. Depending on your location, the default date format could

Python 3.6 May be the Tipping Point

Python is a major programming language, eco-system and community. It is influential in numerous domains: scientific computing, Web applications, DevOps, education. It is being used extensively by prominent companies and

MySQL vs. MariaDB

Many developers have used MySQL, while they have only heard of MariaDB. Let’s explore the differences between these two database management systems. History MySQL and MariaDB share common history. MySQL

Introduction to WebSockets

In this article, I’ll introduce you the WebSocket technology using a sample application based on Socket.io. At the end of this article you will have a good idea what WebSockets

Limit Characters in a Column with SQL TEXTSIZE

TEXTSIZE can limit the amount of data returned for the following data types: varchar(max)nvarchar(max)varbinary(max)textntextimage To set the TEXTSIZE use the following command: SET TEXTSIZE (number) So, if I were to

Understanding OFFSET in MySQL

Imagine that you have already fetched a few hundreds records matching certain criteria. Now, all that you need is the next 10 from that point on. MySQL has a handy

Quick Way to Download a File in C#

Add the following function: public void DownloadFile(string urlAddress, string location) { using (webClient = new WebClient()) { webClient.DownloadFileCompleted += new AsyncCompletedEventHandler(Completed); webClient.DownloadProgressChanged += new DownloadProgressChangedEventHandler(ProgressChanged); Uri URL = urlAddress.StartsWith(“http://”, StringComparison.OrdinalIgnoreCase)

Using Python for Big Data Analysis

It’s no surprise that big data?is becoming an integral part of any business conversation. Desktop and mobile search are providing data to marketers and companies around the world on an

DevX - Software Development Resource

Five Ways to be Happier, More Productive Developers

A non-developer who works with developers details 5 workplace practices every team member can implement (today) for happier and more productive developer teams. Related Posts Identify Troublesome Web Queries in IISKudu Now a Top-Level Apache ProjectHaving a Global Configuration, Parameters, Constants ClassThe Best Malware Removal Software in 2023Red Hat Adds More Container

Using DATEFROMPARTS SQL Function

The DATEFROMPARTS function returns a date value with the date portion set to the specified year, month and day, and the time portion set to the default. An example follows:

The Future of Tech Careers

There has been a lot of talk recently about job losses and how the recovery from the recent recession has been jobless. Historically, technological revolutions have eliminated many jobs but

Check if a String Contains a Phrase

The following snippet will allow you quickly determine whether or not a specified phrase exists in a string: If (!String.IsNullOrEmpty(STRINGTOCHECK.ToString()) && STRINGTOCHECK.ToString().ToLower().Contains(“PHRASETOSEARCHFOR”)){//Found}Else{//Not Found} Related Posts Microsoft, HPE Outline Hybrid Cloud

Working with Files and I/O in Java

The java.nio package contains the types required to perform input output operations in Java. The introduction of the java.nio package has simplified input — output operations. This article presents a discussion on

Using REPLICATE for SQL Strings

The following example replicates a # character five times in front of a Student Number in the Students table: SELECT [Student Name], REPLICATE(‘#’, 5) + [Student Number] AS ‘Student Number’FROM