devxlogo

Recent

Parallax Scrolling Effect in HTML

This web design technique moves the background image at a different speed from the images in the foreground. Sample Code: Parallax Scrolling .parallax { background-image: url (???example.jpg???); height: 100%; background-size:

Controlling Exceptions in C# 6.0

With C# 6.0, you can control exceptions with a conditional if. See below for an example: Listing 1. Control Exceptions try{ //Code that creates an exception}catch (System.DllNotFoundException dllEx) if (version

Reasons for Android Runtime Garbage Collection

In Android Run Time (ART) environment, Garbage Collection activity could be triggered due to one of these reasons: Concurrent A concurrent GC that does not suspend app threads. This GC

Sort a List in C# by Date

We can use the Sort Method of LINQ, and use the CompareTo delegate. If your List contains collection of objects, where each object has a date identifier, you could use

Encode and Decode HTML with Fiddler

Fiddler comes with a set of very useful tools that will help developers to quickly do some encoding and decoding functions. It is buried under the “Text Wizard.” You can

Concatenate Elements in a String Array in .NET

Use the String.Join method to concatenate elements of a string array. See below for sample code. var stringArray = new string[] {“element1”, “element2″};var combinedString = String,Join(” | “, stringArray);

Get the Size of a File in FTP with C#

Using the System.Net.WebRequestMethods.FTP class, we can use the “SIZE” FTP Protocol method to get the size of the file in FTP. Below is an example in C#: var request =