Popular source snippets
-
» visitor info
Category: PHP
Visits: 315
- how to use
include ("trace_user.inc");
$tracetest = new trace_user ;
$tracetest->trace_user("found bad user");
-
» UNIX SHARED MEMORY
Category: C
Visits: 314
- If you want to use multiple blocks of shared memory in a single process you might need to pass a different id to ftok() for each one. In any case, the main entry point is open_shm(). It returns a block of...
-
» EMBED AND PLAY MIDI MUSIC
Category: Python
Visits: 306
- Application using Python module base64, to embed midi music data in your program. You also need the module pygame to execute this Python code.
-
» ERATOSTENE SIEVE
Category: Ruby
Visits: 303
- A simple Eratostene Sieve implementation for the computing of prime numbers.
-
» EXTRACTING UNIQUE ELEMENTS FROM SORTED ARRAY
Category: C
Visits: 302
- Efficient code for extracting unique elements from sorted array.
-
» DISABLE FONT SMOOTHING (ANTI-ALIASED FONT)
Category: Delphi
Visits: 297
- This code disables font smoothing for a TLabel component. Can easily be converted for other VCL controls.
-
» COLLECTION OBJECT
Category: C#
Visits: 297
- Provides a generic typed interface to a collection of common objects
-
» DELETE DYNAMICALLY ALLOCATED STL CONTAINER ELEMENTS
Category: C++
Visits: 291
- Shows how to delete dynamically allocated STL container elements by using a function object for the for_each or transform algorithms.
-
» CGI UNIQUE & RAW HIT COUNTER
Category: C++
Visits: 288
- This code snippet actually contains a few nifty things. There are two functions, hasVisited() and main(). hasVisited() makes use of a very handy function for CGI programmers: getenv. You can see I use it to...
-
» COLLECT USERNAME AND PASSWORD AND STORE THEM IN A DATABASE TABLE
Category: Perl
Visits: 283
- CGI script for collecting username and password and storing them in a database table