Codes from Developers

Delphi

fine,tuning,delay,loading,mechanism,delphi

This example demonstrates the fine tuning of the delay loading mechanism. Using the provided functionality, you can hook-up various steps in the delay loading process. This example defines three cases, one of which is correct, and two incorrect.


C#

c#,method,hide,hiding

This Code Illustrates Method Hiding


C#

convert,string,to,url,friendly

this c# code will convert string to url friendly string


Delphi

DateUtils,delphi

This example demonstrates the use of some routines in the DateUtils unit.


Delphi

builtin,component,streaming,delphi

This example shows how to use the built-in component streaming support to convert any component into a string and to convert that string back into a component.


PHP

simple,guestbook,application,demonstrating,using,MySQL,and,PHP3

A simple guestbook application demonstrating using MySQL and PHP3 to generate interactive web pages


JavaScript

Get,Bing,Image,Day,using,c#

Get Bing Image of the Day using C# Bing Image of the Day has become quite popular over the years, it comprises of essentially the most spectacular user-submitted images from all over the world which have been showcased on the Bing homepage for the past 5 years. The first step is to retrieve the JSON string from the Bing REST API endpoint. We retrieve the string using an HttpClient,we have an option of using Windows.Web.Http or System.Net.Http namespace. I prefer to choose Windows.Web.Http.HttpClient for the simple reason that the System.Net.Http.HttpClient might get deprecated over time. Another reason is that System.Net.Http.HttpClient supports only .Net Languages, whereas Windows.Web.Http.HttpClient was written with the aim of consolidating all the HTTP APIs for different Windows Application Languages, and therefore it supports all the Windows Store application languages. For the avid readers here is a detailed comparison between the two. Step 2. Parse the JSON string: Now we can parse the retrieved JSON string using 3 methods • Using Windows.Data.Json (Native Way) • Using LINQ-to-JSON API’s JObject from JSON.NET (Newtonsoft) • Using dynamic object and DeserializeObject method JSON.NET (Newtonsoft) JSON.Net has existed since long before Windows.Data.Json came into existence, however, Microsoft introduced Windows.Data.Json with native support for parsing JSON. To use JSON.NET, you need to add the Newtonsoft Nuget package, which adds an additional library dependency. I personally prefer the native way, however for the purpose of this app I have discussed both the ways of parsing the JSON string using both JSON.NET and Windows.Data.Json namespaces.


Java

Grid,Layout,Demo,java

Grid Layout Demo in Java


Java

CLChat,Client,java

CLChat Client in Java


Java

List,users,network,java

List of users in the network in Java


PHP

Recursive,function,to,move,files,on,a,filesystem,php

Recursive function to move files on a filesystem in PHP It can be minor changed in order to copy recursively


Java

Bean,util,java

Bean util in Java


PHP

A,database,abstraction,layer,for,the,PHP,Oracle,8,module

A database abstraction layer for the PHP Oracle 8 module


Delphi

TPanel,OnDragOver,event,handler,delphi

This code is a TPanel's OnDragOver event handler that will not allow a label control to be dropped on the panel and stops the dragging of the label as soon as you drag the label onto the panel.


Java

Handling,invalid,sessions,java

Handling invalid sessions in Java


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


PHP

Authentication,script,to,authenticate,users,in,Active,Directory,through,LDAP,php

Authentication script to authenticate users in Active Directory through LDAP in PHP


C#

c#,find,standart,deviation,of,set,given,numbers

This Code Shows How to Find the Standard Deviation of a Set of Given Numbers


Delphi

dataset,FetchPooler,delphi

This example fills in the parameters of a client dataset from the entries of a list box.


PHP

Check,number,characters,range,php

Check number of characters in a range in php