Codes from Developers

C#

overloading,c#,operators

This code shows how to overloade c# operators


C#

Flyweight,Pattern

Flyweight Pattern


C#

visitor,pattern

Visitor Pattern


Delphi

bitmap,clipboard,copy,image,picture,delphi

The following line copies the bitmap of a speed button named SpeedButton1 to the clipboard and then copies the clipboard to the image picture. Note that you must add Clipbrd to the uses clause.


C#

auto,reset,event,c#,thread

this is the usage of autoresetevent in c#


C#

c#,bitwise,operations

This Code Shows How to Illustrate Bitwise Operations


Delphi

resizes,active,control,,delphi

This code resizes the active control to twice as wide and half as high in delphi


C++

Copying,one,or,more,than,one,file,into,one,file,c++

Copying one or more than one file into one file c++


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

client,dataset,index,delphi

The code below creates a new case-insensitive index at run time and then sorts the client dataset using that index. The user specifies the field on which to sort the client dataset in an edit control.


JavaScript

javascript,js,get,nodesselectionselected

Get selected nodes from selection by javascript


PHP

Class,that,allows,to,establish,connections,with,POP3,mail,in,php

Class that allows the PHP developer to establish connections with a POP3 mail


JavaScript

jwplayer,convert,div,to,mp4,player

this code will convert 'dvVideo' div to jwplayer, you need to reference jwplayer first.


PHP

Google,like,search,function,with,bolded,search,terms,php

Google like search function with bolded search terms in PHP


Delphi

Select,ActivePage,property,delphi

This example requires a TPageControl already be on the form. Also, you must add pages to the TPageControl by right- clicking and selecting New Page. The example code allows you to select the ActivePage property through the selection of a ComboBox item. While the form is created, the Combo Box control is loaded with the names of each of the tabs, as well as the instance pointers to the corresponding tab. When you select the Combo Box item, the associated TTabSheet object contained in the Combo Box Objects array is used to set the ActivePage property. Select the Lines property of the TRichEdit to enter a string. Select the string before justifying.


PHP

PHP,Function,to,Encrypt,Decrypt,a,string,without,a,known,key

PHP Function to Encrypt-Decrypt a string without a known key The string itself has his own different key for every character


Transact-SQL

sql,split

this code shows how to split in sql


C#

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

this is a sample of thread safety sample


PHP

Simple,CSV,to,HTML,Table,in,php

Simple CSV to HTML Table in PHP


PHP

Simple,script,send,emails,html,form,different,users

Simple script to send emails via a html-form to different users