Codes from Developers

C#

auto,reset,event,c#,thread

this is the usage of autoresetevent in c#


Delphi

TCalendar,,calendar,delphi

This code shows the use of the TCalendar component. It uses a Calendar, some buttons, a checkbox, an edit box and some labels. Basic calendar cycling functionality is covered by the btnNextMonth, btnPrevMonth, btnNextYear, and btnPrevYear buttons.


C#

update,web,config,appsettings,value

this code block updated web.config appsettings value on codebehind


C#

c#,generate,transpose,matrix

This Code Shows How to Generate the Transpose of a Given Matrix


C#

webpage,preview,thumbnail,website,get,image,c#,url,link

this code will get you preview image of any website or url


C#

Get,online,users,from,session

This code will return you all online users of your website using sessions.


Delphi

FindText,delphi,TRichEdit,TButton,TFindDialog

This example requires a TRichEdit, a TButton, and a TFindDialog. Clicking the button Click displays a Find Dialog to the right of the edit control. Filling in the "Find what" text and clicking the Find Next button selects the first matching string in the Rich Edit control that follows the previous selection.


Delphi

decoding,recoding,TDateTime,delphi

This example demonstrates the use of the decoding and recoding routines used for TDateTime variables.


PHP

Color,picker,php

Color picker in PHP


C#

Amazon,S3,Multipart,Upload,c#

Here how to do multipart upload to Amazon S3 Storgae with c# If you have a stream that is broken up into 10 chunks you will be hitting this method 10 times, on the first chunk you will hit step 1 & 2, chunks 2-9 only step 2 and on the last only step 3. Your need to send back to your client the upload id and the etag for each response. At step 3 you will need to provide the etag for all pieces or else it will put together the file on S3 without 1 more pieces. On my client side I had a hidden field where I persisted the etag list (comma delimited).


Delphi

ExtractFileName,fileread,delphi

The following example uses a button, a string grid, and a Save dialog box on a form. When the button is clicked, the user is prompted for a filename. When the user clicks OK, the contents of the string grid are written to the specified file. Additional information is also written to the file so that it can be read easily with the FileRead function.


Delphi

TButtonedEdit,edit,control,delphi

This exemple demonstrates the use of a TButtonedEdit edit control. The code will load two bitmaps located as resources in the executable and generate an image list at run time. The two loaded images are then used for the left and right buttons of the edit control.


Java

An,example,of,using,ByteBuffer,java

An example of using ByteBuffer in Java


JavaScript

Using,the,Slider,Jquery,Javascript

Using the Slider with JQuery


C#

clone,class,model,copy

This code block clones a model with values and so that referencial changes does not affect new class.


Java

Delegate,servlet,requests,to,a,handler,java

Delegate servlet requests to a handler in Java


C#

c#,npr,factorial,permutation

This Code Shows How to Calculate nPr This C# Program Calculates nPr. Here There are n! (n factorial) permutations of n symbols. A r-permutation of n symbols is a permutation of r of them. There are n!/(n – r)! different r-permutations of n symbols.


C#

truncate,substring,text,keeping,preserving,word,without,cutting,complete,words

C# method to truncate a text by keeping words.


Java

Fade,Image,java

Fade an Image in Java


Java

Calculating,compound,interest,java

Calculating compound interest in Java