
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.
Getting elements using their tag names is often used to collect autosuggestions, checkboxes, ordered lists, and so on. The following line of code is an example of capturing elements trough
The WebBrowser control does not show notifications such as: Downloading web page… Resolving proxy… Hyperlink URLs You can quickly enable this by using the StatusTextChanged Event of the WebBrowser control.
public class ArraySize{ public static void main(String args[]) { changeArraySize(); } private static void changeArraySize() { int[] intArray = new int[5]; System.out.println(“Before change: size(): ” + intArray.length); // Increasing the
The default designer that comes with the Web Controls is great but there are times when you might need to customize it. It’s pretty easy to do. You need to
Memory utilization on the mobile app has a significant impact on the customer experience. If your app creates a lot of objects, then Garbage Collection (GC) process will be triggered frequently to evict unused objects. Even though Garbage Collection is an automatic process, however, frequent Garbage Collection consumes a lot of CPU + it will also pause the app. Frequent pauses can jank the app (i.e. stuttering, juddering, or halting). Thus, you need to understand how many objects your app is creating, how frequently Garbage collection is triggered, how much time it takes to complete, how much memory is reclaimed after every event. All this information is present in the runtime log messages. Whenever a GC event runs, a log line is printed in the runtime log messages. You can view those log lines through logcat. GC log line format varies based on whether app runs on Dalvik VM or Android Run Time (ART). In the earlier article, we saw how to analyze ART GC log line. In this article, let???s see how to analyze Dalvik GC log line.
A quick and dirty way to see if the application’s current platform is 64 Bit or 32 Bit is to test the size of the System.IntPtr variable, as shown in

Here is a list of the most popular Docker network commands: docker network create – creates a network docker network connect – connect a container to a network docker network

A situation may arise in which you would need to hide certain sections of your page from crawlers or determine what actions to take based on the referrer of the
In a multithreaded environment, there are always doubts about the latest value that a variable is holding, since there can be numerous thread instances updating, and also holding localized copies
Use this function to break the data links in an Excel workbook. It shows a message asking the user to confirm to break. private void BreakDataLinks(Excel._Workbook wb){ if (DialogResult.Yes ==
The?best?way?to?copy?pictures?in?C#?is?most?probably?with?the?use?of?the?BitBlt?API.?Here?is?a?small?example?of?its?implementation: ????public?partial?class?Form1?:?Form ????{ ????????const?int?SRCCOPY?=?0xcc0020; ????????[System.Runtime.InteropServices.DllImportAttribute(“gdi32.dll”)] ????????private?static?extern?int?BitBlt( ??????????IntPtr?hdcDest,?????//?handle?to?destination?DC?(device?context) ??????????int?nXDest,?????????//?x-coord?of?destination?upper-left?corner ??????????int?nYDest,?????????//?y-coord?of?destination?upper-left?corner ??????????int?nWidth,?????????//?width?of?destination?rectangle ??????????int?nHeight,????????//?height?of?destination?rectangle ??????????IntPtr?hdcSrc,??????//?handle?to?source?DC ??????????int?nXSrc,??????????//?x-coordinate?of?source?upper-left?corner ??????????int?nYSrc,??????????//?y-coordinate?of?source?upper-left?corner ??????????System.Int32?dwRop??//?raster?operation?code ??????????); ????????public?Form1() ????????{ ????????????InitializeComponent(); ????????} ????????private?void?Form1_Paint(object?sender,?PaintEventArgs?e) ????????{ ????????????Graphics?g?=?e.Graphics; ????????????g.FillRectangle(Brushes.White,?ClientRectangle); ????????????g.DrawRectangle(Pens.Black,?10,?10,?40,?40); ????????????IntPtr?dc?=?g.GetHdc(); ????????????BitBlt(dc,?70,?0,?60,?60,?dc,?0,?0,?SRCCOPY); ????????????g.ReleaseHdc(dc); ????????} ????}
The SQLCommandBuilder has the helpful DeriveParameters command that gives you the list of parameters of a stored procedure. All you have to do is: Set the commandText of the command
You can specify the information you want to return by requesting a specific element. For example, to return the container’s IP address, you should use this command: $docker inspect -f
The java.util.list is not thread safe by default. There can be situations where you would want to use the list in a multithreaded environment for processing. An effective mechanism is
HTTP RESTful ObservationGET Read safe and idempotentPOST Create neither safe nor idempotentPUT Update not safe, but idempotentDELETE Delete not safe, but can be considered idempotent Related Articles Working with Swagger
The Command Window (Ctrl+Alt+A) in the VS.NET IDE has many more features than it appears to have. It is mainly used as the interactive debug window but also you can
After you have deleted the unwanted emails, at times the pst file does not automatically shrink and lowers its space used on disk. A quick way is to use the ???Compact PST??? feature. You can right click on the PST file in outlook, and choose Data File properties. Then click on Advanced and choose the Outlook data file settings. You will be provided with an option to compact the file.

Once you get the hang of the CASE WHEN SQL Statement it can be easy to overuse it. Sometimes you do not need to even use the CASE WHEN Statement
If you have been using a virtual machine on MacOS, Windows or Linux, you will need to get the IP address of the virtual host instead of using localhost. You
Cron jobs are also known as scheduled jobs. After adding several of them, you might want to identify what jobs have been added. The following command helps. [root@rivers cron]# crontab
var configFilePath = @”C:CodeClassifiedConfigurationsapp.config”;var sectionName = “appSettings”;EncryptConfigSection(configFilePath, sectionName);private void EncryptConfigSection(string configFilePath, string sectionName){ var configurationFileMap = new ExeConfigurationFileMap { ExeConfigFilename = configFilePath }; var configuration = ConfigurationManager.OpenMappedExeConfiguration(configurationFileMap, ConfigurationUserLevel.None); var configSection
You can encrypt your connection string to a database. Let me rephrase that: you should encrypt data connections. Here is an example of encrypting a connection string and decryprting a
An easy way to create a new interactive bash shell in the running container: docker?exec -it bash Related Articles Detach from a Docker Container Getting the IP of the Virtual
Use the CamelCasePropertyNamesContractResolver class of the Newtonsoft.Json assembly to return the JSON serialized string in camel case. var responseObject = employeeProxy.GetAllEmployees();var serializedObjectInCamelCase = JsonConvert.SerializeObject(responseObject, new JsonSerializerSettings { ContractResolver = new
RESTful services have been popular for quite some time now. They are widely-used, primarily for improved performance, ease of use and maintenance. Swagger is a popular API for documenting your

It is quite easy to enumerate (list) all the possible SQL servers to which you want to connect. Here is a small example: using System;using System.Data;using System.Text;using System.Windows.Forms;namespace SqlServerEnumeratorCS{ public
http .formLogin().loginPage(“/login”).successForwardUrl(“/”).defaultSuccessUrl(“/”) … .sessionManagement().maximumSessions(1).maxSessionsPreventsLogin(false) .sessionRegistry(sessionRegistry()) …@BeanSessionRegistry sessionRegistry() { return new SessionRegistryImpl();}@Autowiredprivate SessionRegistry sessionRegistry;sessionRegistry.getAllPrincipals().stream().filter((principal) – (principal instanceof User)).map((principal) – (UserDetails) principal).filter((userdetails) – userDetails.getUsername().equals(email))).forEachOrdered((userDetails) – { sessionRegistry.getAllSessions(userDetails, true).forEach((information) -{ information.expireNow(); }); });
When you are exporting a DataRow value using a Stream Writer to formats like CSV, we write as dr[counter].ToString(). If this value starts with zero, Excel removes the leading zeroes
Let’s say you have a set of string values (such as values in a column) and you want to remove the last character. But, the string values are all different
Devart released the new versions of Delphi Data Access Components for RAD Studio 10.2 Tokyo with support for Linux. Devart, a recognized vendor of database connectivity solutions for Microsoft .NET and Embarcadero Delphi development platforms as well as database development and management software, has released new versions of Delphi Data Access Components for RAD Studio 10.2 Tokyo with support for Linux. The latest versions of Lazarus 1.6.4 and Free Pascal 3.0.2 are also supported. An update includes the following new features: * The new UniDAC version includes a new MongoDB provider which allows working with a cross-platform document-oriented database MongoDB. Its main features are high performance, easy deployment and comprehensive support for the latest versions of the MongoDB server.*Support for the Direct mode in DBF provider is added. Using DBF data provider, it???s possible to work with a variety of database formats: dBaseIII-dBase10, dBase for Windows, HiPer-Six, FoxPro 2, Visual FoxPro.*More appealing work with Oracle in the Direct mode. Support for Oracle 12c authentication, Oracle Cloud (DbaaS), Oracle Encryption, Oracle Data Integrity, and for the ANYDATA type is added.*A new option to manage batch operations using a transaction and to obtain an active transaction number using DBMonitor for Interbase and Firebird is added*Support for using ConnectionString and the TFmtBCD fields in NexusDB data provider is added. Read more about new Data Access Components for Delphi by Devart at the product pages: UniDAC 7.0 – http://www.devart.com/unidac/ODAC 10.0 – http://www.devart.com/odac/SDAC 8.0 – http://www.devart.com/sdac/MyDAC 9.0 – http://www.devart.com/mydac/IBDAC 6.0 – http://www.devart.com/ibdac/PgDAC 5.0 – https://www.devart.com/pgdac/LiteDAC 3.0 – https://www.devart.com/litedac/VirtualDAC 10.1 – https://www.devart.com/virtualdac/ About Devart Devart is one of the leading developers of database tools and administration software, ALM solutions, data providers for various database servers, data integration and backup solutions. The company also implements Web and Mobile development projects. For additional information about Devart, visit http://www.devart.com/











