Example of If Statement in python
all: Used for all media type devices aural: Used for speech and sound synthesizers braille: Used for braille tactile feedback devices embossed: Used for paged braille printers handheld: Used for small or handheld devices print: Used for printers projection: Used for projected presentations, like slides screen: Used for computer screens tty: Used...
How to read text file and print its contents to the console line by line.
Shows how to upload a single file to a FTP server.
Delphi Code Example for Print Screen using Quick Reports
The pyperl dist provide an interface to the Perl DBI (dbi.py). This allow direct access to all the perl supported databases from python. Full documentation of the API from 'perldoc DBI' or the ORA "Programming the Perl DBI" book, by A. Descartes and T. Bunce.
I would like to find the position of the last occurrence of a character in a string and print every thing after that.
The example Python code to Rotate sequences left or right
Sending short text messages with socket datagrams is simple to implement and provides a very lightweight message passing idiom.
C++ example code for showing how to allocate and free memory
Fortran programmer should always write new code in Fortran 90 or Fortran 95, but for those of you stuck on a desert island with only a FORTRAN 77 compiler at your disposal, here's a way to write a recursive subroutine. FORTRAN 77 subroutines and functions are not allowed to call themselves directly. Attempting to do such will result in a compile...
C++ code example shown here how to write to text file.
This snippet to show how to use the Last-Modified and the ETag header to optimize the caching of a website. If used correctly this will speed up your page loads.
Source code of C/C++ program, showing how to work with arrays.
An example code to Copy data into dotNet array
Showing how to work with dynamically allocated arrays
Throwtest an application that demonstrates how to define, throw, and handle exceptions. This application doesn't do anything other than print out some text, but if you might want to study it and play around with it to learn more about how exceptions work in Java. See the usage instructions in the source code.
Php code to guessing a number using in html page
This is the general page template. It has all of the essentials (along with a favicon link - not essential).
There are two methods for creating separate styles depending on the media type. both example given below: