199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for essential

Making a calendar is a bit more complex than making a timer or clock but mostly because any calendar script is going to be generating HTML to display the calendar and whenever you have programs writing programs things always get a bit funky! We'll do this as a prototype so …

Member Avatar for DealthRune
0
4K
Member Avatar for essential

[color=maroon]This method escapes all &, <, and > symbols in the string, making it safe to display the string on a web page without fear that it will be treated as HTML.[/color]

Member Avatar for westworld
0
211
Member Avatar for ArkM

CPU Performance Counter based clock and stop-watch classes for Win2K++ were implemented in VC++. Details: see sources (I hope, these classes, especially StopWatch, have well-to-do interfaces;)). Warning: no special precautions for multi-threading/multi-core CPU environment. It's not so hard work to translate these codes in C (or other C++ implementations). This …

0
175
Member Avatar for peter_budo

This is simple example how to get data reading from mobile phone's in-built sensor with JSR-256 and Java Microedition SensorMidlet.java [code=java]/** * * @author Peter Miklosko * @homepage http://www.peterscorner.co.uk */ import javax.microedition.midlet.MIDlet; import javax.microedition.lcdui.Canvas; import javax.microedition.lcdui.Command; import javax.microedition.lcdui.CommandListener; import javax.microedition.lcdui.Display; import javax.microedition.lcdui.Displayable; public class SensorMidlet extends MIDlet implements CommandListener { …

0
223
Member Avatar for JLChafardet

this is the other part of my 2nd semester, first quarter project for programming 2. a simple function to convert from arabic numbers to roman numbers.

Member Avatar for JLChafardet
0
218
Member Avatar for JLChafardet

This code was part of my first quarter 2nd semester project for a subject called programming 2. its a simple roman to arabic convertion function.

Member Avatar for JLChafardet
0
309
Member Avatar for teddies

Hey guys. I originally wrote this program as a University assignment. It's basically a simulated game of 'tanks' roaming around a grid blowing eachother up. It isn't intended to be the most exciting game in the universe, infact when you look at the programs' output there will just be a …

Member Avatar for Murtan
0
332
Member Avatar for vckicks

Draw animated GIFs in C# in a frame-by-frame basis. Gives you a finer level of control.

0
237
Member Avatar for JLChafardet

This code is an example of a simple bubble sort function in C++. the function doesnt receive or returns nothing just for the record, some translations "declaracion de constante" = constant declaration "prototipo de funcion" = function prototype "arreglo" = array "Arreglo en el orden original" = original array order …

0
207
Member Avatar for iamthwee

Well technically it isn't an anagram finder, more of a word descrambler program. It is useful for games like scrabble etc. All you need is a dictionary file, which you can find readily online. Make sure the file has the words on each line and they are all in lowercase. …

0
862
Member Avatar for Alex Edwards
Member Avatar for jesse_gador143

int number; Console.Write("Enter a number: "); number = int.Parse(Console.ReadLine()); int ctr = 2; while(ctr <= number) { if(number % ctr == 0) break; ctr++; } if(ctr == number) Console.WriteLine("Prime"); else Console.WriteLine("Not Prime"); Console.ReadKey();

Member Avatar for ddanbe
0
233
Member Avatar for killdude69

This simple command line script is used to pull a prank on one of your buds. What it does is play an anoyying beeping sound over and over again while rendering the computer being used completely unresponsive. The task manager doesnt even respond. The window never loses focus and nothing …

Member Avatar for killdude69
0
137
Member Avatar for killdude69

Put the following code in a C++ Header File. The following function is to make it way more easier to draw text onto the client area of a window. Now the only thing you need to do is include the C++ Header file containing this function into any C++ Source …

Member Avatar for killdude69
0
308
Member Avatar for William Hemsworth

This snippet shows how to use hooks to stop the cursor from entering a certain area of the screen. This example will stop the cursor from going over 300 pixels away from the centre of the screen by using a bit of maths.

0
744
Member Avatar for iamthwee
0
356
Member Avatar for subcom

[B]Introduction[/B] .NET Remoting provides a rich and extensible framework for objects living in different AppDomains, in different processes, and in different machines to communicate with each other seamlessly. .NET Remoting offers a powerful yet simple programming model and runtime support for making these interactions transparent. In this article we will …

0
273
Member Avatar for subcom

[B]Introduction[/B] We can use Microsoft SOAP protocol to transfer any files between client and server.It's easy through firewall and also it cross flatform. [B]Background[/B] I was going to develop an mobile software on pocket pc,but I found there were tiny resouces to use on mobile operating system.finally,I was finding Web …

0
544
Member Avatar for subcom

[B]Introduction[/B] We can use INI file to auto generate the database connection string. [B]Background[/B] It can be used in Webform and winForm.

Member Avatar for sneekula
0
347
Member Avatar for Alex Edwards

This is a program I designed that implements a little bit of vector-math to determine the collision between 2 vectors. Hopefully this program will be useful to those out there designing 2D graphics programs and need a better solution to determining graphical object-to-object collisions when two objects meet, without having …

0
218
Member Avatar for William Hemsworth

Hey, Here is a program I made which has interested quite a lot of people over the past few weeks, so I figured I would share it :) Using a small amount of trigonometry you can create some very fascinating shapes and effects. But in order to draw anything you …

0
170
Member Avatar for alpe gulay
0
294
Member Avatar for alpe gulay

..this is a simple java code w/c allows to produce a beep sound. timer also is being applied here. hope it will help for any reason it may serve. :-)

Member Avatar for toyi
0
1K
Member Avatar for Radical Edward

One problem with C# is that if you want to modify a collection, you have to manually iterate over it. The generic List class supports ForEach, but there's no method that allows global list changes. C# is kind of restrictive in what changes you can make while iterating, so Edward …

0
210
Member Avatar for udaywali

Here is some code that will help you connect a LCD module to Parallel port of a computer. Almost any 16x2 LCD module should work. It has complete VB6 code. It works on Windows XP very well. I have used hwinterface.ocx from Logix4u.net that provides basic Inport and OutPort functionality …

0
563
Member Avatar for Radical Edward

Edward designed this class as a poor man's named property initializer using syntax similar to C99's designated initializers if they worked in a C++ constructor call: [code] Person me( .FirstName="Radical", .LastName="Edward", .Age=23 ); [/code]

0
268
Member Avatar for Shalvin
Member Avatar for bruceraymond
0
162
Member Avatar for credford

Returns the power set of the elements of a given list (even if some of those elements are also lists).

0
290
Member Avatar for Mohan0704

Random numbers from 1-50 are drawn and displayed in a alert dialog box.

0
164
Member Avatar for a1eio

For more information on threading read this [B]excellent[/B] 4 page tutorial: [URL="http://www.devshed.com/c/a/Python/Basic-Threading-in-Python/"]http://www.devshed.com/c/a/Python/Basic-Threading-in-Python/[/URL]

0
398
Member Avatar for mukorera

Iterative and recursive programs.these programs have been tested and run very well.enjoy

0
159
Member Avatar for alpe gulay

.,'this program will simply creates a diamond using asterisk.,' just try out this code i am sure you will be interested.!.. email me about your comment in this simple program!..help me if you know the easiest way to construct this kind of program..'

0
184
Member Avatar for begueradj

Hi from Begueradj, This program written in Turbo C simulates a student data bases using files. Basic operations such as seeking for a given student, deleting, adding and sorting are implemented here. Feel free to give me your points of view. Thanks, Begueradj.

Member Avatar for begueradj
0
161
Member Avatar for vegaseat

Text to speech can be implemented in its simplest form using Microsoft's Component Object Model (COM) connecting to the Speech API (SAPI). The attached Python code shows you how to do this.

0
4K
Member Avatar for joshmo

The code prompts the user for a student name and the marks then prints out the report with a letter grade..It also asks the user for the file name and stores the data in the file.

Member Avatar for MPELANE
0
490
Member Avatar for vegaseat

This short Python snippet shows you how to read mouse wheel events with the Tkinter GUI toolkit. Windows and Linux have different bindings and read different events, but can be included in the same program code for use with either operating system.

0
21K
Member Avatar for tranni

This class Generate A unique string. You can concatenate Timestamp to this Unique String and use it as Unique ID

0
169
Member Avatar for bad_dreams99

This is a very simple program that uses text mode to display a boucing "ball." The ball is just a character that moves across the screen, erasing all in its path. It is coded to work like a screensaver, so the program ends when any key is hit. NOTE: I …

0
400
Member Avatar for digital-ether

Just copy and paste the snippet into a file and save. You need to save this under the web root, not in a web accessible folder. For example, on linux you could save it in your home directory. Say your user is "joe" then save it in /home/joe/ . Ify …

0
272
Member Avatar for Jx_Man
Member Avatar for Shalvin

EventViewer can be accessed by Selecting Event Viewer from Administrative Tools of Control Panel. This code snippet will add an Entry called Shalvin inside the Application section.

0
117
Member Avatar for Shalvin
0
136
Member Avatar for Jx_Man
Member Avatar for Shalvin

aspnet_regsql is a tool user for installing membership, role and personalization tables to Sql Server. 1. Porting all tables to Sql Server 2. Porting only membership tables to Sql Server 3. Removing all membership and role tables 4. Removing Personalization tables. I am be posting a detailed blog on Membership …

0
148
Member Avatar for Shalvin

Web site Administration Tool is accessible only from the hosting server. Many times programmers won't have direct access to the the hosting server. So knowledge of ASP.Net Membership classes is an added advantage in creating an administrative module for the site. In this code snippet we will take up: 1. …

0
103
Member Avatar for Shalvin

CAS is the programatically means by which you secure the resouce of a system like file system, printer, registry, etc. in contrast to Role Base Security (RBS)

0
126
Member Avatar for serkan sendur
Member Avatar for G-Do

Hi all, Have you ever heard of "Petals Around the Rose?" It's a logic puzzle. The way it works is, I roll five dice, then tell you what the "score" is for this round. I can repeat this for you as many times as you want. It's your job to …

0
862
Member Avatar for shaikh_mshariq

Here is the code to write a serverSocket which listens on a given port. I have used a dummy Socket to change serverSocket's port dynamically. This method uses a inner class which is basically a thread and it creates a serversocket in thread by given port no. If you want …

Member Avatar for shaikh_mshariq
0
165
Member Avatar for Shalvin

Serialization is the process of saving the state of an object into persistant medium. BinaryFormatter class is used for serializing and deserializing an object. HybridDictionary is optimized for key-based item retrieval from both small and large collections.

Member Avatar for belynmoon
0
261

The End.