|
If Codeproject TV and Workspaces are gone, why do some members still have the "Premium" avatar in their posts?
The difficult we do right away...
...the impossible takes slightly longer.
|
|
|
|
|
Because MVP was soooo last year!
|
|
|
|
|
Oh No !!
|
|
|
|
|
Would you expect "Postmium"?
|
|
|
|
|
Is that one of the newer transuranics?
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
|
|
|
|
|
Because they're just fabulous people, probably.
Regards,
Rob Philpott.
|
|
|
|
|
Yes, you read right, IE 4
I just clicked a mystery '?' button on a scada display and the IE4 loading screen appeared......... I feel like I have just stepped back 19 years! Which takes me back to https://www.youtube.com/watch?v=8ATA_zyhsWA[^]
Now playing nice and loud!
Edit: until the damn thing stops half way in
|
|
|
|
|
Hmmmmm,
Sounds like the embedded OS is Windows CE 2.x based?
Best Wishes,
-David Delaune
|
|
|
|
|
No, its a windows 95 front end client workstation, I think the ? button was meant to take you to some help files once upon a time, but it is well broken now....
|
|
|
|
|
It never ceases to amaze me how far out of date the entire SCADA industry is. And they're proud of their "State-of-the-Art" crap.
Will Rogers never met me.
|
|
|
|
|
We are replacing the system in 2015 with DeltaV. Engineering is well underway and the plant is convered in new instruments and cabling back to new equipment room with all the new logic solvers in place. As you can imagine the operators are desperate to see this commissioned.
|
|
|
|
|
I'll bet they're looking forward to it! In my business, they still think MODBUS and DNP over RS-485 are pretty neat.
Will Rogers never met me.
|
|
|
|
|
Roger Wright wrote: MODBUS and DNP over RS-485
We still have Modbus links to the standalone generator /pump controls and also modbus links to the VSDs associated with the wells and downhole ESP gauges. These are hooked into the DeltaV via serial cards. Works fine, although the modbus registers need to be configured in a particular way due to the strict requirements of the deltav system. You are limited to 16 datasets per port (2 ports) in each input module and the registers need to be in contiguous blocks of register types. This means that the equipment suppliers sometimes have to do a customer remap.
|
|
|
|
|
DaveAuld wrote: As you can imagine the operators are desperate to see this commissioned
I have been in such situation as well. The problem was once the replacement was done. They start bitching because the new system was too different. At the end I needed 1 month extra just to make everything I could to look like the old system
M.D.V.
If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?
Help me to understand what I'm saying, and I'll explain it better to you
Rating helpful answers is nice, but saying thanks can be even nicer.
|
|
|
|
|
I've got an OED app that opens a built-in version of Netscape 3.
I use it for looking up synonyms of "puke".
And remember CDs that used to be distributed free with computer mags? A lot of them use either Netscape or IE 3/4 embedded.
It's hard to remember them as cutting edge, ain't it?
I wanna be a eunuchs developer! Pass me a bread knife!
|
|
|
|
|
It's been a while since anyone posted one of these, but it's Friday and I just saw this post
List only common parent directories for files[^]
I took a whack at it in C#.
Your assignment, should you choose to accept it, is to write a suitable implementation in your choice of language (except that one).
Given a collection of strings (you may assume no NULLs if you like), return the leading substring common to them all.
I note that his stated result of "/home/nicool/Desktop" should actually include a final slash (/ ).
|
|
|
|
|
1. Enumerate Directories,
2. Inside each directory search whether there is a File.txt, if there is Console.WriteLine(dir + file);
3. If not, go through remaining directories and repeat 2 on each of them.
Tagged: Simple algorithm!
Favourite line: Throw me to them wolves and close the gate up. I am afraid of what will happen to them wolves - Eminem
~! Firewall !~
|
|
|
|
|
No, that's upstream -- this works on the resultant collection of found file names/specs (or any other strings) (step 4 or 5).
|
|
|
|
|
Regardless of language;
Take the shortest string from the list
Test this string against the others, if it StartsWith (however you want to do it) in them all you have the it, if you don't trim back to next '/' and repeat test. If at any point you come across a fail test and it is not the last test element, short circuit the search, trim and repeat.
|
|
|
|
|
Sure, but probably inefficient, in particular I think finding the shortest is a waste of cycles.
I also wouldn't bother sorting them, even though that could lead to only having to find the common portion of the first and last.
Consider a very large collection of very long strings.
|
|
|
|
|
PIEBALDconsult wrote: Consider a very large collection of very long strings.
Thats ok, I'm here till Wednesday....
|
|
|
|
|
You could probably do it with a single pass, by simply moving through the list, comparing / discarding / comparing as you go.
|
|
|
|
|
What I wrote uses a pair of nested for loops -- comparing all the first characters, then all the second characters, etc. until a difference or the end of a string is found.
|
|
|
|
|
Stringsplit the first two paths into two arrays.
Compare the elements until you find a difference.
Compare the common result with the next string.split.
Repeat.
|
|
|
|
|
While the OP wants it to work for the specific case of file specs, the challenge is for it to work in the general case of any collection of strings.
|
|
|
|