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

Renaming an SQL Server Database

You can use the following query to rename an SQL Database: USE masterGOALTER DATABASE YOURDATABASENAME SET SINGLE_USER WITH ROLLBACK IMMEDIATEGOEXEC master..sp_renamedb ‘YOURDATABASENAME’,’YOUR_NEW_DATABASE_NAME’GOALTER DATABASE YOUR_NEW_DATABASE_NAME SET MULTI_USER GO The only problem,

Working with Cloud-Based Development Environments

Today’s software is served from the cloud and the world’s data is stored in the cloud. The benefits are clear. Let the cloud platform providers deal with the complexities of

Calculate File Size in C#

In order to calculate a file’s size in C#, you can use the FileInfo object and create some logic to calculate the physical KB, MB or GB of a file.

The SQL Intersect Operator

The SQL Intersect operator returns distinct rows that are output by both the left and right input queries operator. SELECT expression1, expression2, … FROM tablesINTERSECTSELECT expression1, expression2, … FROM tables

Vagrant Provisioning with Puppet

Automating software installations is an important part of deploying virtual machines with Vagrant. This process is called provisioning and can be integrated with DevOps tools, such as Puppet. Let’s see

Detect Internet Connection in C#

There are numerous ways to find out whether or not there is an internet connection present. One of the quickest ways is to use the InternetGetConnectedState API. Here is how

THREAD DUMP ANALYSIS API–do not use

In this modern world, thread dumps are still analyzed in a tedious & manual mode i.e., you have to get hold of DevOps team, ask them to send you the thread dumps, then they will mail you the thread dumps, then you will upload the dumps in to a thread dump analysis tool, then you have to apply your intelligence to analyze it. There is no programmatic way to analyze thread dumps in a proactive manner. Thus to eliminate this hassle, fastthread.io is introducing a RESTful API to analyze thread dumps. With one line of CURL command, you can get your thread dumps analyzed instantly. Here are a few use cases where this API can be extremely useful. Use case 1: Production Health Check Most of the DevOps invokes a simple Http ping to check the application???s health. This ping is good to detect whether application is alive or not. But it won???t inform anything beyond that. It won???t report whether application is poorly responding, it won???t report whether Database connections are locked up, it won???t report whether CPU is spiking up, it won???t report whether memory is leaking. Even if it reports those issue, still you would have to manually analyze to see what is causing these problems. Now with the introduction of this Thread dump analysis API, you will not only know the healthiness of the application ??? but also the root cause the problem. Beauty of this health check is: It doesn???t add any overhead (or negligible overhead). Because entire analysis of the thread dumps are done on a remote server. The only thing you would have to do is capture the thread dumps from your production machines and invoke this API. Use case 2: Performance Tests When you conduct performance tests, you might want to take thread dumps on a periodic basis and get it analyzed through the API. In case if thread count goes beyond a threshold or if too many threads are WAITING or if any threads are BLOCKED for a prolonged period or lock isn???t getting released, it needs to get in to the visibility. It should be analyzed before code hits the production. In such circumstance this API will come very handy. Because analyzing several thread dumps meticulously is impossible for anyone. Use case 3: Continuous Integration As part of continuous integration it???s highly encouraged to execute performance tests. Thread dumps should be captured and it can be analyzed using the API.  If API reports any problems, then build can be failed. In this way, you can catch the performance degradation right during code commit time instead of catching it in performance labs or production. How to invoke Thread dump analysis API? Invoking Thread dump analysis API is very extremely simple: Register with us. We will email you the API key. This is a one-time setup process. Post HTTP request to http://api.fastthread.io/fastthread-api?apiKey={API_KEY_SENT_IN_EMAIL} The body of the HTTP request should contain the Thread dump that needs to be analyzed. You can either send 1 thread dump or multiple thread dumps in the same request. HTTP Response will be sent back in JSON format. JSON has several important stats about the Thread dump. Primary element to look in the JSON response is: ???problem???. API applies several intelligent thread dump analysis patterns and if it detects any issues, it will reported in this ???problem??? element. CURL command Assuming your Thread dump file is located in ???./my-thread-dump.txt,??? then CURL command to invoke the API is: curl -X POST ???data-binary @./my-thread-dump.txt http://api.fastthread.io/fastthread-api?apiKey= ???header ???Content-Type:text??? It can???t get any more simpler than that? Isn???t it?

Sometimes you Don’t Need a Variable

If you’re going to use an object and get rid of it after a few lines, you don’t need to declare a variable to it. Just use With. Here is

Using the SQL MINUS Operator

The SQL MINUS operator makes use of two SQL statements. It takes all the results from the first statement and subtracts out the ones that are present in the second

Explore Polymorphism in Java

Polymorphism is the existence of the same thing in various forms. It is a feature of OOP that enables items to change form based on circumstances. The term polymorphism is

Stackanetes Combines OpenStack and Kubernetes

CoreOS, Intel and Mirantis have released a technical preview of Stackanetes, a new tool which makes it possible to deploy and manage OpenStack cloud computing deployments with the Kubernetes container

Something to Remember When Filtering Keystrokes

Filtering user input is extremely mundane. Who never captured user’s keystrokes in a TextBox in order to avoid some forbidden input, such as numbers or letters? If you went down

IBM Unites SoftLayer and Bluemix

IBM has merged its two primary cloud computing services. The SoftLayer infrastructure cloud has been absorbed into its Bluemix cloud development service. Customers can now access both services through a

Dip Your Virtual Toes into WebVR

Virtual reality is here and many companies are working on VR devices, SDKs, content and frameworks. But, true presence and immersion requires high-end equipment at the moment. It will be

BI-on-Hadoop Benchmarks Compare Analytics Engines

AtScale Inc. has published the results of a new benchmark study of BI-on-Hadoop analytics engines. The study tested Hive, Impala, Presto and Spark SQL, and it found that each of

Using BitBlt to Copy Images in C#

The BitBlt function simply performs a bit-block transfer of the color data corresponding to a rectangle of pixels from a source device context into a destination device context. You can

Memory Tuning: Key Performance Indicators

When you are tuning the application’s memory and garbage collection settings, you should take well-informed decisions based on the key performance indicators. But there is an overwhelming amount of metrics

Oracle Launches Bare Metal Cloud Computing Services

Oracle’s Bare Metal Cloud Services are now generally available. The infrastructure as a service offering will initially run out of a US-Southwest region based in Phoenix, but Oracle hopes to

CA Technologies Acquires BlazeMeter

CA Technologies has announced the purchase of BlazeMeter, a company that offers continuous performance application testing tools. CA plans to integrate BlazeMeter’s technology into its Continuous Delivery solutions, providing better

Gartner Publishes Top 10 Tech Trends for 2017

The prognosticators at Gartner have published their annual list of hot technology trends, and the 2017 list includes several entries that will be of interest to enterprise application development teams.

Google Rolls Out New Cloud Storage Service

Google has launched a new cloud storage service called Coldline. As the name suggests, this service is for “cold” or archival data. Accordingly, it has a very small price tag:

VMware Adds Support for Kubernetes

At the VMworld 2016 Europe event, the big news was that VMware now supports Kubernetes container management on its Photon platform. “With Kubernetes as a service on top of Photon,

Read All Text From a File

There are a number of ways to read all content from a text file. The function below uses only VB6’s features to do that. Public Function ReadAll(ByVal FilePath As String)

Container Wars: Docker vs. Rkt

Containers are making inroads into the mainstream. Many large organizations and startups deploy their software using containers and many other experiment with the technology or plan to do it. When

AWS Adds Ohio Region

Amazon Web Services (AWS) has added another region for its cloud computing services. With the US East (Ohio) Region, AWS now has 14 separate regions. The Ohio region will offer