Codes from Developers

C#

thread,safety,in,c#,lock,unsafe,code

this is a sample of thread safety sample


Delphi

mask,edit,components,delphi

This example uses three mask edit components on a form, where the third mask edit box is set to be read only. When the application runs, it initializes the mask edit boxes to contain the empty string, to use the Courier font, and to use a particular mask, corresponding to IP address coding conventions. The mask edit boxes display the IP address, the subnet mask, and the subnet address respectively. When the user exits the subnet mask edit box, the subnet address is automatically calculated using bitwise AND operations and displayed in the third mask edit box. An additional test is made to assure that the values in the IP address and in the subnet mask are in the interval from 0 through 255, as this validation test cannot be accomplished using the edit mask property alone.


Java

Interface,List,and,class,LinkedList,example

Interface List and class LinkedList example in java


PHP

DB,Operations,Handles,almost,all,routine,mysql,queries,php

DB Operations - Handles almost all routine mysql queries in PHP


PHP

Checking,if,Email,address,is,deliverable,php

Checking if Email address is deliverable in PHP


C#

convert,string,to,url,friendly

this c# code will convert string to url friendly string


Java

Using,layout,managers,java

Using layout managers in Java


JavaScript

Searchable,Images,Jquery,Javascript

Searchable Images with Javascript


Delphi

TDBImage,TClientDataSet,TDataSource,delphi

This example requires a TDBImage, a TClientDataSet and a TDataSource already on the form. A custom data set is created and a record is added to it, containing a sample image. The TDBImage control then displays the 'Image' field in the data source. The Proportional flag of the TDBImage control is set to True in order to make the sample image fit the bounds of the TDBImage.


C#

c#,linq,select,clause,details

This Code will Display the Student Details using Select Clause LINQ


C#

c#,insertion,sort

This Code Shows How To Perform Insertion Sort. Here it takes an element from the list and places it in the correct location in the list. This process is repeated until there are no more unsorted items in the list.


C#

improve,garbage,collector,performance,finialize,dispose,pattern

Improve garbage collector performance using finalize/dispose pattern


Delphi

TEdit,FileOpen,delphi

This example requires a TEdit, a button, and a string grid. Enter the file name in the TEdit and click the button to open that file. Notice that the file cannot be read. Remove the fmOpenWrite and the fmShareDenyNone access and the string grid will load.


Delphi

FMXTBitmapDataPixel,delphi

This example shows how to use the TBitmapData.GetPixel and TBitmapData.SetPixel methods. This sample draws and fills the rectangle on an image, pixel by pixel. To build and test this example, create a Multi-Device Application - Delphi, then add the folowing objects to the form: A TImage to display the TBitmap. A TLabel to display the value of the TTrackBar. A TTrackBar to control the amount of Red in relation to which the transparency of certain pixels changes. Add the following code to the OnChange event handlers of the track bar.


Java

Listing,all,running,threads,java

Listing all running threads in Java


C++

A,simple,example,using,a,virtual,function,in,c++

A simple example using a virtual function in C++


C++

Program,to,implement,Circle,Drawing,Algorithm,c++

Program to implement Circle Drawing Algorithm in C++


Delphi

type,character,delphi

The following example demostrates the use of some routines in Character unit that allow to determine the type of a character. When the user types something in the first memo, the second one gets filled with relevant information.


JavaScript

jquery,approach,event,close,getting

This code block runs when specified is approached


C#

singleordefault,firstordefault,methods,linq,sql

SingleOrDefault and FirstOrDefault Methods in LINQ to SQL This code shows the differences between the SingleOrDefault and FirstOrDefault Methods in LINQ to SQL.