Results for "Author: ulli"
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.
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.
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.
How to convert two 32-bit dWords to a 64-bit qWord.
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.
Thanks and Good Bye
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.
This little piece of code tries to read your mind... Download ist only 3 kB.
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.
Dafhi's four corner animation turned into a screensaver proper. Tested under WinXP only. Download is only 4.2 kB.
Gets sound input from the current recording source and displays it as spectrum and as waterfall. Download is 24.1 kB
A little utility to facilitate the inclusion of assembled .bin files into VB projects. Download is 2.3 kB only.
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.
This class contains the basic arithmetic operations (+ - * / mod) and a square root function for integer operands of virtually any size. A few helper functions are also included. There is no real limit on the number of digits but your memory size and time (up to a theoretical maximum of more than four thousand million digits). However, extracting for example the root of 10,000-digit number giving a result of 5,000 accurate(!!) digits will let you drink a cup of coffee while waiting (faster when compiled -- about 27 seconds on my 1800 Athlon). The Screenshot shows the square root of 2 with about 1000 digits. Download is 8 kB.
This Visual Basic Add-In will format your code for a generally accepted indentation - one tab per structure level, the tab width being obtained from the IDE. It will also check your code for some of the most common ommissions and traps. Included are a Code Printer, a Copy Facility, a Code Structure Viewer and an option to create WinXP manifest files and to modify your code to make use of them. Simply compile the DLL into your VB directory and then use the AddIns Manager to add it to the AddIns Menu. A few fixes and line number support. Download is 136 kB.
This little program lets you alter file dates: date created, date last modified, and date last accessed. Download is just 7.2 kB. Give it a try. Update now lets you also drag'n'drop files onto the app without using the browser.
Magnifies an area at the mouse cursor hot spot; size, shape and magnification factor can easily be adjusted at compile time. To terminate magnification move the mouse into the screen top lefthand corner. Download is 5 kB.
Find, decrypt, and show your Windows Digital Product Id (download is only 5.5 kB)
This AddIn will put all necessary instrumentation into your project to create a run profile. Then during execution profile data are acquired and finally evaluated and shown. The data include: ~ number of hits for each line of code ~ total time spent executing each line of code ~ average time spent executing each line of code ~ the code line itself ~ Timing accuracy is quite good and depends on the CPU high resolution timer (which in my AMD Athlon XP1800+ ticks about 3.5 million times a second giving a resolution of .279 µsecs), and utmost care has been taken to remove all data acquisition overhead effects from the execution times shown. Updates include check for isDirty (in which case you may loose the changes you made), better evaluation routine and printing.
This Add-In analyses all (or selected) controls in a form and assigns or generates the necessary accelerator hotkeys, ie those keys that you press together with the Alt-key to access a control (the underlined characters which are preceeded by an ampersand in code). The problem is that a different accelerator key should be selected from the caption of each individual control. To achieve this one has to generate all possible permutations to find the best solution where the accelerator keys are all different and as far to the left as possible.