|
|
I did this research already. just check around if any better ideas exist...
diligent hands rule....
|
|
|
|
|
I built one years ago that's still in production today. It was written in C#.
The rules are not a custom language or anything of the sort. Each rule is an implemented derived class and each rule has inputs and outputs (which can be anything). Then, you just string those rules together, where the output of one rule connects to the input of another rule. This has two benefits: 1) you don't have the overhead of a custom parser for determining the end-result, i.e., it's already a language you know; 2) you can reuse these rules in various combinations for a variety of tasks.
The rules can live in the same or separate assemblies and are then loaded into an AppDomain upon execution. There is a Rule Execution Engine that takes a "map" of how each rule is connected and then loads the appropriate assemblies, from where said rules are located, and executes them in the correct order and asynchronously if needed.
This may be a simpler approach than a custom language solution. I do not have a general-purpose one written. I intended to write one years ago (after writing the one for the company I work for), but I never got around to it. This approach may or may not work for you, though.
|
|
|
|
|
|
thank you very much! I will take a look at it.
diligent hands rule....
|
|
|
|
|
Drools.NET download | SourceForge.net
I used the Java version to build a Sudoku solver that works with human strategies.
This is one those legacy Rules Based systems that have lost out to ML.
|
|
|
|
|
Last week I replaced the EPOS system in our social club which left me with three touch-screen tills (running Windows) looking for a role in life.
We have a problem with radio reception in the building and can usually only get one station on FM so the staff tend to use one of the Sky TV boxes to play a music channel though the sound system. But this falls apart if both Sky boxes are needed to show TV.
We already had an Ipod on the back bar also wired into the sound system.
So, I ran an ethernet cable from the router, through the ceiling to this point. Connected up the internet and the audio to the till and have a simple Winforms app which has 20 buttons, each with a radio station logo on the touch screen - along with a volume slider and mute/unmute button.
Just plugged it all in at lunchtime and it flew first time. The staff seem to like it ...
So, who can come up with a sillier idea than using a till (I think it cost around £1,000 when new) as a radio (worth a tenner)?
|
|
|
|
|
I mean, if it was already used and done with it has probably long since amortized its cost, so actually you're making it worth something again. Just sayin'
Real programmers use butterflies
|
|
|
|
|
Rich Leyshon wrote: So, who can come up with a sillier idea than using a till (I think it cost around £1,000 when new) as a radio (worth a tenner)?
1. Replace the front door bell with one, add an application requiring visitors to identify themselves, and use it to "screen" your visitors.
2. If you are asleep - require potential visitors to deposit a sum in the till if they wish to wake you. If, upon waking, you agree that they had a good reason, you refund the money. otherwise, you spend it on booze. [Taken from Robert Heinlein's The Cat Who Walks Through Walls]
Freedom is the freedom to say that two plus two make four. If that is granted, all else follows.
-- 6079 Smith W.
|
|
|
|
|
Repurposing an ATM to Play Doom on[^]?
Not me - I was always far to busy playing it to spend the huge time investment on that ...
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
"Common sense is so rare these days, it should be classified as a super power" - Random T-shirt
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
I've never really had any formal electronics training, so a few decades ago, I was rather happy with myself having hooked up a discarded 2-line LCD display unit (the kind you used to find attached to cash registers) to a serial port, with no documentation whatsoever, and figuring out settings (parity, baud rate, data bits, etc) through trial and error, to make it display any string sent to it. I turned it into a simple clock showing full date and time.
Definitely not much of a thing compared to what some people here manage to do, but it was enough for coworkers called me a nerd when they saw it. I wore that badge with pride...
|
|
|
|
|
... are for the people that can't get away with not wearing them.
In fact, I sort of gauge success as how much of your life you can go through without wearing them.
If you spend most of your time without pants on, you've made it in life.
Edit: If you are from the UK I am referring to trousers, not underpants, but I suppose the latter could be included if you're so inclined.
Real programmers use butterflies
modified 29-Nov-21 12:18pm.
|
|
|
|
|
Well I work from home and I suppose I don't need to wear pants most of the time, strictly speaking, but I still might need to go answer the door at a moment's notice.
Even if I didn't have to? I'd still do it, out of habit more than anything else.
|
|
|
|
|
A maxi skirt is way more comfortable, and still handles the door situation.
*hides*
Real programmers use butterflies
|
|
|
|
|
And protects the furniture.
|
|
|
|
|
I suppose that Scots could wear a kilt, Arabs could wear an caftan, etc., but I don't believe that is what you meant...
Freedom is the freedom to say that two plus two make four. If that is granted, all else follows.
-- 6079 Smith W.
|
|
|
|
|
I also love skirts, but my wife always wants them back.
|
|
|
|
|
Skirts just aren't for me. I'd also get strange looks.
|
|
|
|
|
I assume you are referring to outer leg coverings.
In the UK, going without pants is "going commando" which I suspect is not what you are discussing.
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
"Common sense is so rare these days, it should be classified as a super power" - Random T-shirt
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
Yes, you would call them trousers, but if an American says that we get looked at funny. Two nations divided, by a common language and all that.
The Streets:Two Nations - YouTube[^]
Real programmers use butterflies
|
|
|
|
|
Also divided by spell checkers.
Labor/Labour
Centre/Center
|
|
|
|
|
I prefer shorts, does that mean I've only half made it?
The less you need, the more you have.
Even a blind squirrel gets a nut...occasionally.
JaxCoder.com
|
|
|
|
|
Shorts = made it because you can't typically wear them in an office.
Real programmers use butterflies
|
|
|
|
|
I did so daily for the first 3.5 years at my current job. The last year and a half I've been in the office during working hours exactly once; and was wearing shorts then too.
Did you ever see history portrayed as an old man with a wise brow and pulseless heart, weighing all things in the balance of reason?
Is not rather the genius of history like an eternal, imploring maiden, full of fire, with a burning heart and flaming soul, humanly warm and humanly beautiful?
--Zachris Topelius
|
|
|
|
|
Even if I was working from home, it's too cold to not be wearing pants right now
|
|
|
|