Delphi PHP HTML Javascript C# chkdsk C++ Cookie Display Print ShellExecute DateTime C# Print GetPort SMTP setTime IPv6 CreateFile IPv4 SendMail CGI get random value by SQL array getenv QUERY_STRING Print Dialog INI File Open javascript calendar TPrintDialog Delphi Folder Navigation Dialog Substring REMOTE_ADDR Alarm 암호화 JSP Email JSP session control MFC CGI Example MimeBodyPart Morris Mouse Restriction My Pictures My Videos Number Format OnFilePrint OnMediaChanged OnPrintPage Access Key Amazon CloudFront encryption BrowseInfo Calculator include file CGI Example HP DeskJet 930c GetLineBreakCharPosition CloudFront Signed URL GetCookie connection blocking dead code declaration

C PRINT.ZIP

How do I determine the client IP type (IPv4/IPv6) in PHP   (updated at Apr 16, 2024)   112  

In the PHP, there are filters which can determine IPv4 and IPv6: FILTER_VALIDATE_IP, FILTER_FLAG_IPV4, FILTER_FLAG_IPV6.Below code shows how to determine the client protocol:This code snippet checks whether the client's IP address is IPv4 or IPv6 using fil...

Quiz : Twice counter   (created at Jul 14, 2017)   101  

Given an array of 10 words. Some words are repeated twice, we need count such words.Output:Print the count of the words which are repeated twice in the string.Constraints:1<=no of words<=10^51<=length of each word<=10^5Example Input 1)hate love peace love ...

How To Check If Your Printer Is Connected Using C#   (created at Feb 27, 2012)   139  

This code will test whether a printer is connected to your system or not. It works with USB and network printers (haven't tested LPT printers yet). Some printers (like my HP DeskJet 930c) is detected online even though I press the OFF b...

The Delphi function to get My Videos folder   (created at Apr 29, 2011)   161  

In order to get My Videos folder, you need to call SHGetSpecialFolderPath(). But I recommend you to use below wrapper for easy control.function GetSpecialFolderPath(Folder: Integer; CanCreate: Boolean): string;// Gets path of special system folders//// Cal...

Changing the Title of a Print Dialog in Delphi   (created at Apr 20, 2011)   156  

The TPrintDialog component displays a standard Windows dialog box for sending jobs to a printer. Unfortunately, the TPrintDialog does not expose the Title property. By handing the OnShow event of a print dialog you can specify the text for the dialog’s tit...

KMP String Matching Algorithm   (created at Jul 21, 2010)   111  

KMP String Matching Algorithm is well-known algorithm for faster string search. KMP is, as you know, Knuth, Morris, and Pratt. It's complexity is O(n). n is the length of target string and O is big-O notation.Here's the implemented algorithm.//////////////...

How to print external document ?   (created at Sep 08, 2009)   61  

Without complex programming, you can print document by ShellExecute function.use ShellAPI;...ShellExecute(Handle, 'print', PChar('c: est est.doc'), nil, nil, SW_SHOW);

How to add a declaration on JSP code ?   (created at Oct 27, 2008)   98  

If you have developed C or C++ program, you may know below examples.// printf( "a.out");/*  printf( "b.out");*/Above code have no bug, but no code will be compiled, because it's all declarations.In JSP, you can make declarations as well. In some docum...

How to print out text strings on HTML directly ?   (created at Oct 27, 2008)   127  

In JSP, you can print out text strings by out.println(). Here's the example. <%   

XMLRPC example   (created at Jan 07, 2008)   56  

Following is the simple XMLRPC example showing the usage. XML-RPC PHP Demo

XML-RPC PHP Demo

How to declare array in PHP like C/C++   (created at Oct 16, 2007)   101  

simple php array declaration: 'Do', 'Re', 'Me');//print out arrayprint_r($notes);?>

List Devices (LPT, COM ports, ...)   (created at Sep 25, 2007)   64  

The following procedure will list all the devices on your computer. You can then extract the com ports and printer ports by looking for the 'COM' and 'LPT' characters in the list.Add a Memo and a Button and place this code in the OnClick of a button...proc...

Adding and Subtracting Time   (created at Sep 13, 2007)   65  

The time () function generates a long string of numbers representing how many seconds have passed since January 1, 1970. It is possible to add and subtract time by adding and subtracting seconds.

Browse for Computers, Folders, Files and Printers   (created at Sep 10, 2007)   48  

By using the SHBrowseForFolder Windows API function and Delphi we can invoke a Windows system dialog used to browse for files and folders on users hard drive as well as network computers and printers. First, let's look at what SHBrowseForFolder needs. Here...

Send An Email Using A Bean   (created at Aug 30, 2007)   40  

This JSP snippets shows how to send an email using a reuasable javabean    JSP Sample - Send Email     
 
 ...

Javascript implemented Calendar   (created at Aug 30, 2007)   36  

Nice calendar for Web page display. Highlights the date and the day of the week. Well-documented code to help you customize any font,color,or size you want.Javascript & Cookie based Visitor Application   (created at Aug 28, 2007)   101   This cookies records how many times the visitor has visited the page and writes to the page accordingly.visits.jsfunction GetCookie (name) {  var arg = name   "=";  var alen = arg.length;  var clen = document.cookie.length;  var i ...

Adding Custom Paper Sizes To Named Printers   (created at Aug 27, 2007)   65  

My company needed me to programmatically add a custom paper size (a printer form) to the default printer and set the printer to use the custom paper size. After looking around,the best alternative we could find was to make use of the printing and print spo...

Print HTML In C# With Or Without The Web Browser Control And The Print Dialog   (created at Aug 27, 2007)   76  

Printing with the web browser control in .NET platform is not hard work. But the challenge for me was to navigate to a specific URL and then print the document with a single click event. There was another challenge I had to face,when I tried to print an HT...

A Customizable Printing Text Class   (created at Aug 27, 2007)   39  

At least once,in the life of a programmer,it succeeds that the moment arrives to print a text document. The task is quite simple for a .NET programmer,but even more with PrintTextDocument class. This class was written to help in printing text documents,add...

Simplified .NET Printing In C#   (created at Aug 27, 2007)   82  

This is a .NET approach to Simplified Printing in which,we are going to use a RichTextBox to cache all of our text for printing in printDocument.// Form Loadprivate void Form1_Load(object sender,System.EventArgs e){  

How To Print Text In C#   (created at Aug 27, 2007)   54  

If you want to use MultipadPrintDocument in your own code,it's best to rename the class and its constructor to something more appropriate. Then add a variable of type XXXPrintDocument to your form and implement the menu items as follows:void OnFilePrint(Ob...

Simple CGI Programming in C   (created at Aug 27, 2007)   82  

Here's the simplest C based CGI example. #include #include int main(void){    char *data;    printf("Content-Type:text/html;xdxa"); ");&n...

Printing A Page   (created at Aug 26, 2007)   65  

how to print the current page

Get A Print Dialog Box By Clicking A Button   (created at Aug 26, 2007)   46  

In some applications,some times we need a print buttonHere is a sample tip code to get print properties.
    In some applications,some tim...

Array_count_values   (created at Aug 25, 2007)   110  

This code prints array count values

Calculator with basic four functions   (created at Aug 25, 2007)   69  

See below as calculator with basic four functions.
1st number:
2nd number:

What operation would you like to perform?

Number Format   (created at Aug 25, 2007)   68  

In this article we'll make number format like 0001, 0002, 0003 in stead of 1, 2 ,3. It's very easy to do this for your counter, category or product ID. etc. Function AccountCryptPassword($password,$salt)   (created at Aug 25, 2007)   89   Encryption and password account accessFunction AccountCryptPassword($password,$salt) {  if($salt=="")  {   srand(time());   $random=rand();   $itoa64="./0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz"; &n...

How To Show The Print Dialog And Print Text Files   (created at Aug 25, 2007)   68  

This code show an example of how to print a text of a RichEdit component.unit Unit1; interface uses   Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,   StdCtrls, ComCtrls; type   TForm1 = class(TForm)     ...