Advertisement

Results for "Author: ulli"

5_2007-2008 #175882
Complicators and Simplifiers (New Paragraph about the API)

This is a project I want to start: Collect hints and examples which might help Newbies (and maybe some of the Oldbies) to improve their coding style and efficiency. Comments therefore are welcome as are suggestions, additions or alterations.

5_2007-2008 #175883
Tray Progress Bar (Update)

A progress bar is a very temporary thing but still requires permanent space in a form. Wouldn't it be better to use a temporary space for it also? This project temporarily uses the system tray to display a customizable progress bar. Just include form fProgress and clsSystray with your project and set it's properties. A lil testform is included to show how it could be used. I know there are hundreds of progress bars in PSC, but this one is a little different - try it, download is 8 kB.

5_2007-2008 #175884
Text To Speech

This little gadget shows how to use the MS Speech Object Library. You drop or open a textfile and it will read it to you (english language; other languages work but will be pronounced rather american-ly).

5_2007-2008 #175885
Your Computer Components

This little utility lists most of the components of your computer, together with their properties. In fact it tells you everything Windows knows about your hardware and associated drivers. Tested with WinXP only. Download is 11 kB.

5_2007-2008 #175886
Font Rotation

Little class and demo showing how to rotate fonts.

5_2007-2008 #175887
Collection Item Keys

Unfortunately Collections do not expose the Keys of Items or the Index of Keys. So I made two little functions which return an Item's Key by Index -> Key = ItemKey(Index, Collection) - and vice versa -> Index = ItemIndex(Key, Collection). Download including samples on HowTo is only 2 kB.

5_2007-2008 #175888
A quicker Quicksort (up to 100 times faster)

Quicksort which works by sorting string pointers only instead of the strings themselves. In particular for long strings around 1000 chars there is a 15 times improvement in speed, going up to 100 times for really long strings, and speed is almost indepent of string length; one million strings are sorted in under five seconds. For short strings below 10 chars or so speeds are more or less identical. The screenshot shows the compiled timing.

5_2007-2008 #175889
Game Of Life

This is my implementation of Conway's Game of Life. Included is a folder with more than a hundred initial patterns found in the web, some of which have been adapted to fit in our wrap-around universe of 900 x 600 pixels (variable grid sizes of 90 x 60 to 450 x 300 cells) and produce quite interesting effects, machines, or perpetuum mobiles. Try it, download is 58 kB.

5_2007-2008 #175890
Statitistical Chance Evaluation of Monty Hall's TV show "Lets make a Deal".

Suppose you're on a game show and you're given the choice of three doors. Behind one door is a car; behind the others are goats [that is, booby prizes]. The car and the goats were placed randomly behind the doors before the show. The rules of the game show are as follows: After you have chosen a door, the door remains closed for the time being. The game show host who knows what is behind the doors now opens one of the two remaining doors, and the door he opens must have a goat behind it. If both remaining doors have goats behind them, he chooses one randomly. After he opens a door with a goat, he will ask you to decide whether you want to stay with your first choice or to switch to the last remaining door. Imagine that you chose Door 1 and the host opens Door 3, which has a goat. He then asks you "Do you want to switch to Door Number 2?" Is it to your advantage to change your choice? ~~~ Note that the player may initially choose any of the three doors (not just Door 1), that the host opens a different door revealing a goat (not necessarily Door 3), and that he gives the player a second choice between the two remaining unopened doors. All situations with different door numbers form equivalent formulations of the problem and lead to the same conclusion.

5_2007-2008 #175891
Connect Four (aka The Captain's Mistress)

During his long sea voyages, Captain Cook was often absent in the evenings and eventually the crew began to joke that he must have a mistress in his cabin. When they discovered that the Captain had simply been playing this game with the ship's scientists, the game was christened "The Captain's Mistress". ~~ This program uses bitmaps to represent the Board, iterative Search deepening, Alpha-Beta pruning, and Principal Variation search. No positional evaluation is made at the search tree leaves, it simply relies on search depth to find winning combinations. Search depth is about 10 to 12 with a two seconds time check (Advanced level). The program is hard to beat even in Beginner mode. See Screenshot. ~~ Download is 33kB.

5_2007-2008 #175892
Convert two dWords to a qWord

How to convert two 32-bit dWords to a 64-bit qWord.

5_2007-2008 #175893
A li'l Unicode

This is the result of playing with Unicode a little and it is by no means perfect, but as a beginning it may be helpful to some of you. Download is 2 kB. ~~ PS:- I speak none of the languages; I just picked some characters that looked typical too me.

5_2007-2008 #175894
New Shores

Thanks and Good Bye

5_2007-2008 #175895
Internet Radio Recorder Update #2

Tune to internet radio stations and record music on your hard disk while listening at the same time. This app was almost completely rewritten from code by Coder Ghost *CodeId=64608*. A few ideas by some of you have been implemented: a- Sticky Discard Button and b- Selective Title List. (Includes one or two re-usable coding treasures). Download is 39 kB.

5_2007-2008 #175896
The Sixth Sense?

This little piece of code tries to read your mind... Download ist only 3 kB.

5_2007-2008 #175897
Lights Out (Update #1)

This was inspired by an earlier submission to PSC (whis seems to have disappeared when I looked for it again to give credit to the original author) and it will dim your monitor after a period of idleness or when you expicitely want it. It runs in the system tray and requires no measurable resources. ***Updated for smooth transition and TimeoutDisable. Try it, download is only 8.5 kB.

5_2007-2008 #175898
Screensaver

Dafhi's four corner animation turned into a screensaver proper. Tested under WinXP only. Download is only 4.2 kB.

5_2007-2008 #175899
Spectrum Analyzer (Major Update # 2)

Gets sound input from the current recording source and displays it as spectrum and as waterfall. Download is 24.1 kB

5_2007-2008 #175900
Utility

A little utility to facilitate the inclusion of assembled .bin files into VB projects. Download is 2.3 kB only.

5_2007-2008 #175901
Animated About Box (Update #1 now has curtains)

Okay, I give in... This is a nice and easy to use animated (scrolling - flickerfree!) About Box with quite a number of color themes. Shows how to make standard command buttons round and a few other goodies. Just add it to your project, set a few properties and you are GO. How-To is included in the code. Try it, download is only 7 kB.

Languages
Top Categories
Global Discovery