|
Language:
All
|
C#
|
C++
|
Java
|
Javascript
|
Objective C
|
PHP
|
Python
|
Rails
|
RegEx
|
Ruby
|
SQL
|
VB.NET
|
VBScript
|
XSL
Read and Write from a console window.
Read and Write from a console window.
Language:
C#
Category:
Text
use BackgroundWorker to start asynchronus process.
Shows how to execute a process asynchronously using the BackgroundWorker object in C# 2.0
Example for starting BackgroundWorker
Example for DoWork event
Example for RunWorkerComplete event
Language:
C#
Category:
Threading
Capture output from a console application.
Executes specified console app and captures its screen output to a string.
Language:
C#
Category:
text
Activate application by it's process ID. Bring to foreground.
This finds the specified application by it's executable name. then brings it to the foreground using it's ID.
Language:
C#
Category:
Windows
Activate an application by it's name. Bring to Foreground
Activate an Application by it's name. This brings the window to the foreground.
Language:
C#
Category:
Windows
Alter the compression ratio of a JPEG
Alter the compression ratio of a JPEG
Language:
C#
Category:
Image
Create an image and write back as a file
Create an image and write back as a file
Language:
C#
Category:
Image
Return an image from an aspx page
Return an image from an aspx page.
Language:
C#
Category:
Image
Use XslTransform to transform XML from a textbox
Code to take XML from one text box, transform it with XSL from another text box, then write the results to a third text box.
Language:
C#
Category:
XSL
Regex whole word replace
Simple function to demonstrate use of Regex. Replaces "SomeText" with "-SomeText-" \b indicates whole word match $& indicates entire match substitution
Language:
C#
Category:
Regex
Get Strongly Typed Data From A DataReader
Get Strongly Typed Data From A DataReader
Language:
C#
Category:
ADO.NET
Insert a row into an Access database using OleDbConnection
Insert a row into an Access database using OleDbConnection
Language:
C#
Category:
ADO.NET
Open & Read A Binary File
Open & Read A Binary File
Language:
C#
Category:
File I/O
Add A Row To An XML File
Uses a DataSet to read an XML file, adds a row, and saves the file back out.
Language:
C#
Category:
XML
Upload And Resize A Picture
Code to upload and resize a picture.
Language:
C#
Category:
File I/O
Generate User Breakpoint
Generate User Breakpoint
Language:
C++
Category:
Remove the document name from the title of an MFC application
Clearing the FWS_ADDTOTITLE from the style member of the window's CREATESTRUCT variable will remove the standard document name (or "Untitled") from the top of an MFC Document / View application.
Language:
C++
Category:
MFC
Validate presence of a CD in a CD-ROM drive
This code will check all CD-ROM drives for the file "SOMEFILE.DAT".
Language:
C++
Category:
File I/O
Compact an MDB database with ODBC
Compact an MDB database with ODBC
Language:
C++
Category:
ODBC
Function to determine whether a file exists.
Function to determine whether a file exists.
Language:
C++
Category:
File I/O
Convert a date from a string to a CTime
You wouldn't think it would be that difficult to convert a string to an MFC CTime object, but it's a little tricky.
Language:
C++
Category:
MFC
Set Full Row Select on a List Control
Set Full Row Select on a List Control
Language:
C++
Category:
MFC
Java File IO
Java File IO
Language:
Java
Category:
File
Create and iterate over a generic collection
Create and iterate over a generic collection
Language:
Java
Category:
Generics
Create a temporary file
Create a Temporary File
Language:
Java
Category:
IO
Close the browser window.
Close the browser window.
Language:
Javascript
Category:
Browser
Validating a text box
Validating a text box
Language:
Javascript
Category:
Browser
Setting text box value when focus received.
Setting text box value when focus received.
Language:
Javascript
Category:
Browser
Change the text on the browser status bar
Change the text on the browser status bar
Language:
Javascript
Category:
Browser
Redirect the browser window
Redirect the browser window.
Language:
Javascript
Category:
Navigation
Convert char* to NSString
Convert char* to NSString
Language:
Objective C
Category:
Test
Form validator class
Form validator class with checks like isNumber, isInteger, isAlpha, etc.
Language:
PHP
Category:
RegEx
RegEx valid email address check
Postback form with check for valid email address.
Language:
PHP
Category:
RegEx
Simple RegEx with foreach loop
Simple RegEx with foreach loop
Language:
PHP
Category:
RegEx
Read attributes from XML file
Read attributes from XML file
Language:
PHP
Category:
Read multiple elements from XML file
Read multiple elements from XML file
Language:
PHP
Category:
XML
Session page counter
Session page counter
Language:
PHP
Category:
Check cookie and set
Check cookie and set
Language:
PHP
Category:
Cookie
Page to insert a database record
Page to insert a database record
Language:
PHP
Category:
MySQL
Page to list and delete database records
Page to list and delete database records
Language:
PHP
Category:
MySQL
mysql_fetch_object
Use mysql_fetch_object to retrieve rows.
Language:
PHP
Category:
MySQL
Access a MySQL database
Access a MySQL database
Language:
PHP
Category:
MySQL
PHP loop through array
PHP loop through array
Language:
PHP
Category:
Control
Post form back to self
Uses for loop to create a table based of columns and rows submitted by form on same page.
Language:
PHP
Category:
Basic
for loop
Basic PHP for loop
Language:
PHP
Category:
Control
Change File Dates
Add one year to file dates.
Language:
Python
Category:
File
Form Validation
Validation
Language:
Rails
Category:
Views
Select Combo
Display select combo for foreign field.
Language:
Rails
Category:
View
Find Horizontal Lines
Find Horizontal Lines
Language:
RegEx
Category:
HTML
Validate HTML color value
Validate HTML color values such as: #00ccff, #039, ffffcc
Language:
RegEx
Category:
Validator
Write Pretty XML File with REXML
Write Pretty XML File with REXML
Language:
Ruby
Category:
XML
Create PDF from XML file
Requires PDF::Writer (gem install pdf-writer)
Language:
Ruby
Category:
File
Read & Write File
Read values from one file and write to another.
Language:
Ruby
Category:
File
Restore Database
Restore Database with MOVE
Language:
SQL
Category:
Find dates newer than one week ago
Find dates newer than one week ago
Language:
SQL
Category:
MySql
Split Full Name Into First And Last
Split Full Name Into First And Last
Language:
SQL
Category:
Backup Database
Backup a database to a file.
Language:
SQL
Category:
Utility
Format Phone Numbers
Changes phone numbers from 1234567890 to 123-456-7890
Language:
SQL
Category:
Text
Insert From
Insert rows selected from another table.
Language:
SQL
Category:
Insert
SQL Server License Info
Determine SQL Server version and number of licenses.
Language:
SQL
Category:
Configuration
Paging Query
Paging Query
Language:
SQL
Category:
Query
Group Date / Times By Date
Group Date / Times By Date
Language:
SQL
Category:
Query
Generate SQL Pay Period End Dates
Generate SQL Pay Period End Dates
Language:
SQL
Category:
Query
Use Of A Temporary Table To Group Results
Use Of A Temporary Table To Group Results
Language:
SQL
Category:
Import Phone List
Query to import a phone list into UserDefinedData in DNN
Language:
SQL
Category:
Query
Read Data From An SQL Server Into A DataSet
Read Data From An SQL Server Into A DataSet
Language:
VB.NET
Category:
ADO.NET
Open an SQL database using an SqlDataReader
Open an SQL database using an SqlDataReader
Language:
VB.NET
Category:
ADO.NET
Open & Read A Text File
Open & Read A Text File
Language:
VB.NET
Category:
File I/O
Select Case
Select Case Statement
Language:
VB.NET
Category:
Syntax
Client side VBScript to transform an XML file with an XSL file
This is the html file generated by Microsoft Access 2003 to to transform an XML file with an XSL file.
Language:
VBScript
Category:
XML
XSL transformation to convert RSS XML output to HTML
XSL transformation to convert RSS XML output to HTML from the DotNetNuke RSS XSL.
Language:
XSL
Category:
RSS
|