
Since 1998, DevX has helped people start businesses, build websites, and provide enterprise technology to people globally. Interviewing the likes of Microsoft’s co-founder, Steve Ballmer, the publication brings comprehensive, reliable, and accessible insights to the Internet.
There are situations when we need to understand the time taken for executing a section of code. We are also aware that System.currentTimeMillis() provides a good estimate of time. System.nanoTime()
The system variables are exposed through the GetEnvironmentVariables method in the System.Environment class. var environmentVariables = System.Environment.GetEnvironmentVariables();foreach (var ev in environmentVariables){ DictionaryEntry de = (DictionaryEntry) ev; Console.WriteLine(string.Format(“Key: {0}, Value: {1}”,

It is a good idea to use @RestController (instead of simply @Controller), because it ensures you that it will return a Java Object rather than a reference to an HTML
Unlike Visual Basic, C# doesn’t have built-in string methods to extract parts of string from the Left, Right or a location specified through Mid. Unfortunately you have to create the
Managing large clusters of machines is non-trivial. Even in the cloud where the cloud provider takes care of a lot of the complicated stuff, such as networking, isolation and redundancy,
The PROPER function in Excel allows us to convert text to the right case in a quick way. You would have to use the Proper function with the cell address.

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
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
The LCASE() function simply converts the value of a field to lowercase. Syntax: SELECT LCASE(column_name) FROM table_name;
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.
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
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; }
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);

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 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}
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)
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
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

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
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 &&

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,
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 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
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
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
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
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
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)
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
A non-developer who works with developers details 5 workplace practices every team member can implement (today) for happier and more productive developer teams.











