132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for sri_jes13

Hi this is a very simple program explaining of Threads using the runnable interface. I hope this will help in some other way.:)

Software Development java
Member Avatar for finepax007
0
136
Member Avatar for serkan sendur

Set page's scroll position programmatically according to server side processing

Software Development
0
330
Member Avatar for Tight_Coder_Ex

I use GetTickCount in a lot of my applications, so I built this snippet to convert to hours minutes and seconds. Leading extraneous data is excluded from output.

Software Development assembly
0
214
Member Avatar for G-Do

[URL="http://www.bitstorm.org/gameoflife/"]Life[/URL] is a "game" or cellular automaton - an evolving computational state system - developed by a Cambridge mathematician named John Conway. The idea is simple: start with a board of dimensions (x,y). Populate the board with an initial pattern of occupied and empty cells. In every turn, the rules …

Software Development python
0
1K
Member Avatar for serkan sendur
Member Avatar for bruce2424
0
1K
Member Avatar for serkan sendur

SelectTopFrom method gets the top rows from dataview or datatable

Software Development
Member Avatar for serkan sendur
0
328
Member Avatar for serkan sendur

by using the code below you can bind your enums to your dropdown lists Serkan Şendur

Software Development
0
2K
Member Avatar for rhoit

Just playing with the no. points used in the program: 1. Even no cannot be prime except 2 2. % division of odd by even cannot be 0

Software Development c++
Member Avatar for muthu_tek
0
127
Member Avatar for rhoit

Just playing with the no. points used in the program: 1. Even no cannot be prime except 2 2. % division of odd by even cannot be 0

Software Development algorithm c++
Member Avatar for WXuan
0
184
Member Avatar for zandiago

Good day, here is one of the commands that will allow you to get sound in your program. It was compiled using DevC++.

Software Development c++
Member Avatar for t3ch|\/|4n
0
186
Member Avatar for rhoit

Nothing but the VERY HARD Work out for long day and night. It was actually i made it for my project work which my friend loved it very much. This might be the useful stuff to you also. Ya Now days rarely anyone uses the BGI stuff but also it …

Software Development c++
Member Avatar for mukulbudania
0
194
Member Avatar for darkscript

This program generates lines of pascal's triangle, numbers after 23 generate weird output.

Software Development c++ pascal
Member Avatar for technogeek_42
0
204
Member Avatar for darkscript

This program takes a parameter, which is how many prime numbers you need. However if you want to make a program which checks whether a number is prime or not you can delete everything in the main function and put this line instead: cout << isPrime (argv [1]) ? "It's …

Software Development c++
Member Avatar for Dani
0
155
Member Avatar for #include<DAN.h>

This program uses snipets from a couple of other programs that I put together in order to make a program that displays the time and date and refreshes the time and date every second. I commented practically every line to explain, as far as I know, what it does. If …

Software Development c++ display
Member Avatar for stephen84s
0
170
Member Avatar for zandiago

Frequently, you may need to isolate words in a phrase. In this example, we'll use substr to carry out this task.

Software Development c++
Member Avatar for zandiago
0
144
Member Avatar for zandiago

This is a neat little program to calculate the date of easter in any given year. The principle is based on the julian calendar.

Software Development c++
Member Avatar for muthu_tek
0
490
Member Avatar for jerrydusing

Visal has contributed code for computing a formula. I have updated his code to reflect vb.net coding style. I have also refactored the code, so it is easier to understand. I have not checked the code. The vb.net project files are as attached. Jerry Dusing (email: [email]jerrydusing@yahoo.com[/email])

Software Development vb.net visual-basic
Member Avatar for paramesh_dreams
0
179
Member Avatar for JavaGalaxy.com
Member Avatar for frodo_cute21
0
1K
Member Avatar for allan14

A little program to convert angles to and from Decimal degrees, Degrees decimal minutes and Degrees minutes decimal seconds.

Software Development python
0
148
Member Avatar for Duoas

First off, C++ does not know anything about the I/O device you are using. It can be a keyboard and monitor, or a file, or a network connection, or anything which can do I/O. What that means is that there is no standard way to do this in C++. That …

Software Development c++ unix
Member Avatar for Duoas
0
452
Member Avatar for Duoas

First off, C does not know anything about the I/O device you are using. It can be a keyboard and monitor, or a file, or a network connection, or anything which can do I/O. What that means is that there is no standard way to do this in C. That …

Software Development c unix
Member Avatar for dangana
0
229
Member Avatar for allan14

Written using Boa Constructor, with code added to do the conversion from C to F or F to C. The code has been altered to give a single file so don't open it in Boa Constructor.

Software Development python
0
144
Member Avatar for Ancient Dragon

This is a simple example of how to delete a line from a text file. In order to do that you have to completely rewrite the file, leaving out the line(s) you want to delete. First open the input file, then open an output file (doesn't matter what filename you …

Software Development c++ file-system legal
Member Avatar for majestic0110
0
11K
Member Avatar for ankur.dhoot

This code changes color of prompt according to user, suppose if user is root then color would be red and normal user would have color black. This'll diffrentiate in users.

Software Development shell-scripting
0
156
Member Avatar for cms271828

This program generates the 6 faces of a colour cube. The faces are displayed in a JPanel, and they are also saved to C:/Faces as PNG files. So non-windows users might have to alter code slightly.

Software Development java
Member Avatar for cms271828
0
173
Member Avatar for rohit83.ken

hello frnds this is a snippet that removes comments of c, c++ , java files

Software Development c++ java
0
114
Member Avatar for maddog39

This snippet will allow you to separate or "explode" strings into vectors via a character separator or the visa versa. In which case you would take a vector and "implode" it into a string separated by a character. Also keep in mind that this requires the libboost libraries. This was …

Software Development c++
0
571
Member Avatar for vegaseat

A simple example of applying a font to a text displayed with wxPython's wx.StaticText widget.

Software Development python
0
602
Member Avatar for GreenDay2001

Generates all primes till n terms. Not a wonder scripts which will generate till billions, but works pretty fine till few millions.

Software Development c++
Member Avatar for muthu_tek
0
148
Member Avatar for lookof2day

Well any Java programmer knows that a Java Interface only allows declaration of methods. You cannot define the methods inside interfaces. Yet if somebody like me wants you to define a method in interface and wants the program gets compiled and runs successfully, what would you do? Well the answer …

Software Development java
Member Avatar for Ezzaral
0
722
Member Avatar for Hamrick

A simple solution that prints the first n values in the fibonacci series up to the limit of an unsigned long. The program takes either command line arguments or interactive input for n and has code in place to make the program more flexible, like printing to a file.

Software Development c++
0
157
Member Avatar for bumsfeld

The Python module datetime allows you to calculate the days between two given dates with relative ease. I am using the US date format month/day/year, but you can change that by giving attention to the order of the extracted tuple.

Software Development python
0
492
Member Avatar for avgprogramerjoe

This code takes a string a cyphers it by shifting it's position in the alphabet. I've gotten it so it can pretty much take paragraphs. It's quite neat to play with. For example the above when shifted to 5, would be: Ymnx htij yfpjx f xywnsl f hDumjwx ny gD …

Software Development python
Member Avatar for ShawnCplus
0
143
Member Avatar for Tight_Coder_Ex

User can enter an ascii string of up to 48 characters consisting of 1's or 0's, with randomly interspersed whitespace. IE: [B]1011111001011110 [/B]will be evaulated equally to [B][1011][111....cc001cccx01 111hhhh0 [/B]Algorithm parses from right to left so will be truncated at 16 position Purpose is to give all those still programming …

Software Development algorithm assembly
0
438
Member Avatar for jasimp

This one works pretty fast, even for large numbers. Like it says, aproxomite end number, and that is because it will generally go one fibonacci number above what you specify.

Software Development python
Member Avatar for ilovepython1978
0
150
Member Avatar for TkTkorrovi

You likely want something graphical, where the things move. GTK version of the classic arcade game Asteroids.

Software Development c
Member Avatar for TkTkorrovi
0
140
Member Avatar for vegaseat

The wxPython wx.lib.fancytext widget allows you to display super and subscripts in texts, and allows you to change fonts and colours too. All this is done with XML coded strings. XML documentation code is tag based and not that difficult to understand. It looks rather similar to the older HTML …

Software Development python xml
0
416
Member Avatar for jasimp

All this snippet does is asks you for some information and then uses it and some math to guess your age. Pretty simple but I have to start somewhere.

Software Development python
Member Avatar for majestic0110
0
157
Member Avatar for vegaseat

The wxPython GUI toolkit has a number of calendar widgets, but the one that is most customizable is the wx.lib.calendar widget. Here we expanded it to colour the weekends and the holidays supplied by a dictionary of 'month: list of holiday dates in month' pairs. Since some holiday dates can …

Software Development gui python
0
2K
Member Avatar for bumsfeld

The wxPython GUI toolkit has a nice numeric LED widget (LEDNumberCtrl from the wx.gizmos module) that is used here for displaying the current time in very visible 7 segment LED color display. It also shows the application of the time module and wx.Timer(). The code is simple as far as …

Software Development gui python
0
2K
Member Avatar for TkTkorrovi

A small demo about how to use GTK label as a simple console. To compile GTK program, `pkg-config gtk+-2.0 --cflags --libs` should finally be somewhere in the compiler command line in the bash-like shell.

Software Development c
0
313
Member Avatar for darkscript

Gives different combinations(Permutations) of string in input

Software Development c++
Member Avatar for ShawnCplus
0
594
Member Avatar for TkTkorrovi

Replaces every occasion of the pattern, or only the first occasion if there is a subexpression, between \( and \), anywhere in the regular expression, as repeated replace is not what one would expect in that case. The string size is restricted in POSIX regular expressions to the size of …

Software Development c
Member Avatar for xaviv
0
1K
Member Avatar for darkscript

This filters out the letters and numbers in the parameters you give it.

Software Development c++
Member Avatar for hinduengg
0
127
Member Avatar for Sturm

Here are some functions I made for SDL abstraction:

Software Development c++
Member Avatar for Sturm
0
160
Member Avatar for vijayan121

a string which can be used ala std::string, preserves case, but comparisons are not case sensitive.

Software Development c++
Member Avatar for ~s.o.s~
0
463
Member Avatar for Arman Majumder

A JOptionPane version of the game of Penny Pitch. Uses numerical values spread on a board, and computer picks randomly chosen spot to place a penny and at the end of a run adds up the total score. *Two separate programs, PennyPitchGame and Square (Square Class)*

Software Development java
Member Avatar for NovaWarlock
0
2K
Member Avatar for Arman Majumder

A program that compounds interest [FONT=&quot]continuously [/FONT]to a specified premium, rate, and number of years. Displays the total work up in the GUI panel in a tree form.

Software Development gui java
0
178
Member Avatar for Arman Majumder

A simple program that displays the Muller-Lyer Illusion. Also tests the ability to draw simple figures using the Paint Component function.

Software Development gui java
0
1K
Member Avatar for Arman Majumder

A GUI form of the Game of Craps. Takes in total bank roll and bet for each round of the game. *Two seperate programs, Craps and CrapsData(Craps Class)*

Software Development gui java
0
1K

The End.