devxlogo

We are an award-winning tech entrepreneurship website where trusted experts can provide value globally.

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.

devxlogo

Trusted for 26 years

Over 30K Articles

1M+ Readers

Expert-reviewed

10K+ Tech Terms

As seen in:

microsoft logo
business_insider_logo
wired_logo
berkley
arstechnica_logo
hackernoon

The Latest

Calculating Availability

Availability is measured in so-called nines notation, that corresponds to the percentage of time that a service is available. For example, if a service is available 99.9% of the time, we can say that has “three-nines availability”. This notation is used to gives us the specific amount of downtime that a service is allowed to have.  Next are the availability and downtime calculations for 99% availability to 99.999% availability : 99% availability (two-nines):         * 3.65 days/year (of allowed downtime)         * 7.20 hours/month         * 1.68 hours/week         * 14.4 minutes/day 99.9% availability (three-nines):         * 8.76 hours/year         * 43.8 minutes/month         * 10.1 minutes/week         * 1.44 minutes/day 99.99% availability (four-nines):          * 52.56 minutes/year        * 4.38 minutes/month        * 1.01 minutes/week        * 8.66 seconds/day 99.999% availability (five-nines):        * 5.26 minutes/year        * 25.9 seconds/month        * 6.05 seconds/week        * 864.3 mimiseconds/day

Quickly escape the escape characters in a string.

C# provides you a way to escape the problematic characters in a string through the ???@??? symbol. Just place it before the string, and the compiler will escape those characters.For e.g. String filePath = @???c:windowssystem32???;Thus you do not have to escape the slashes in the string in the above example.

View the Certificate of a Website in Chrome

You can easily access a website’s certificate in Chrome via the developer tools. Go to developer tools (F12), Security tab. In the Security Overview section, choose “view certificate.”

Avoid Scrolling for Information

Avoid?Scrolling?in?the?same?document?for?some?information. Using?the windows?”split”?feature?available?in?the?VS.NET IDE?and?you?can?split?the?document?window?into?two?and?have?two?windows?with?the?same?content?aligned?horizontally. You?can?thus?find?the?information?you?were?looking?for?and?avoid?long?scrolls.

The sp_spaceused Procedure in SQL

The sp_spaceused special SQL procedure displays the number of rows, disk space reserved, disk space used by a table, or indexed view in the current database. Here is a small

CORS Support in Spring

Spring MVC has implicit CORS support, so to use the controller method CORS configuration with @CrossOrigin annotation in your Spring Boot application does not require any specific configuration. The global

Display of Bit Field on UI

Fields with ‘Bit’ Data Types, when displayed on Web Pages show as True/False. They don’t show the actual ‘0’ / ‘1’. If you are using a DataReader to retrieve such

Creating the Hash for Short URLs

The hashing function is used to generate random strings of six characters, that can be numbers or upper and lowercase letters. We need to make sure that a string is

Merge Two DataTables, Preserving the Old Values

The datatable1.Merge(datatable2) statement will merge datatable2 into datatable1. You cannot retrieve the old values in the datatable1 after the merge happens. A quick way to do that, is by creating

Add a selectedIndex Changed Event Handler to a ComboBox

When you create the datagridview associate an event handler for its ‘EditingControlShowing’ event. sampleDataGridView.EditingControlShowing += new DataGridViewEditingControlShowingEventHandler(DataGridViewEditingControlShowing); And in the event handler add the selectedIndexChanged eventhandler to the combobox. private

Setting a JPA Hint in Spring

How to set a Java Persistence API hint in Spring: @Override@QueryHints(value = { @QueryHint(name = “org.hibernate.cacheable”, value = “true”)})public List findAll();

Retrieving Data from a Deleted row in a Dataset

You would get the ‘DeletedRowInaccessibleException‘?when you try to access a deleted row in a dataset. To retrieve the information of a deleted row in a dataset, use the overloaded property

UUID in Java

/*A UUID is a 36 character string, 32 alphanumeric characters and 4 hypens123e4567-e89b-12d3-a456-426655440000Java supports generation and usage of this using the java.util.UUID class*/public class JavaUUID{ public static void main(String args[])

Can’t use the “Between” Keyword in a LINQ Query

You can’t use the “Between” keyword in a LINQ query. The sample snippet below shows how you translate between two date fields. DateTime fromDate = DateTime.Now.AddMonths(-3); DateTime endDate = DateTime.Now;

Flyway with Multiple Databases

Let’s suppose that we have Flyway installed in D:/Flyway folder: copy the conf/flyway.conf file to a file called conf/prod.conf open it and update the username, password and url properties: flyway.url=jdbc:mysql://localhost:3306/db

Comparison of Arrays

public class CompareArrays{ public static void main(String args[]) { compareArrays(); } private static void compareArrays() { int[] intArray1 = new int[5]; int[] intArray2 = new int[5]; //Changing the value so

Change case of the text in word with ease

Microsoft word gives us various options to change the case of the text. Changing to upper/lower is just a click away. Access the ???change case??? button in the Paragraph ribbon menu, and you will see options like Lower case, Upper case, sentence case. Applying it is very easy as well.  Just click on the text on which you want to change the case, and then select an option from the ???change case??? options. 

Quick way to copy a format in Microsoft Office applications

Is there a format/style of the text that you want to quickly copy in Office applications like word, excel, powerpoint etc? Just click on the text from which you want to copy the format, and then click on the ???Format Painter??? button in the clipboard ribbon menu and then click on the text where you want to apply. The format is copied over.

Working with an SQL Output Parameter in C#

When working with an SQL Output parameters, you need to specify the parameter’s Direction property once you have created it. Here is a nice little example method: private float checkValue()

Capturing Textboxes Available in a Google Authentification Page Using Selenium

A list of textboxes available in a Google authentication page can be captured using this snippet of code: driver.get(“https://accounts.google.com/”);List Textbox =driver.findElements(By.xpath(“//script[@type= ‘text/javascript’]”));System.out.println(“Overall textboxes:”+Textbox.size());