Codes from Developers

C#

c#,binary,integer,recursion

This Code Prints Binary Equivalent of an Integer using Recursion


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.


C#

search,element,array,indices,index

This Code Shows How to Search an element with Array Indices


Java

Count,total,number,occurences,String,text,file,java

Count total number of occurences of a String in a text file in Java


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.


PHP

Display,MySQL,database,rows,alphabetically,in,PHP

Display MySQL database rows alphabetically in PHP


C#

get,deserialized,json,object,c#

get deserialized json object


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.


C#

c#,left,join,linq

This code block shows how to left join in c# using linq


C#

Parallel,For,c#

Parallel For


PHP

Class,for,ini,Files,in,php

Class for INI Files in PHP


PHP

Gradient,Image,php

Gradient Image in PHP


Java

Color,selected,cells,in,a,JTable,java

Color selected cells in a JTable in java


Java

Creating,Checkbox,buttons,java

Creating Checkbox buttons in Java


C++

Files,and,Folders,using,Data,structure,c+

Files and Folders using Data structure in C++


C#

c#,zip,file,unzip,file,with,SharpZipLib

this code will let you zip file via c#


C#

c#,passing,pass,parameter,for,thread

This Code Shows How to Illustrate the Concept of Passing Parameter for Thread


PHP

Image,Upload,And,Resize,Script,php

Image Upload And Resize Script in PHP


C#

c#,perform,radix,sort

This Code Shows How to Perform Radix Sort. Radix Sort is a non-comparative integer sorting algorithm that sorts data with integer keys by grouping keys by the individual digits which share the same significant position and value


C++

Word,Frequency,c++

Word Frequency in C++