« first day (4484 days earlier)      last day (457 days later) » 

3:41 AM
Sweet potatoes and melon are for people. Corn & sunflower are for the chickens. 🤪❤️💖
 
 
4 hours later…
7:54 AM
Someone requested me to develop a system that allows to send and receive predetermined TCP messages. Based on the received replies the application transitions to different FSM states. Nothing fancy so far.
However...
they don't want to recompile the application every time. Meaning the application has to read an input file stating which tcp messages it has to send at which frequency (and for how long), which input messages it has to support and all state transition conditions based on the received messages.
I initially thought JSON could be a good fit. But turns out doing this in JSON would be too verbose because they want a "lihgtweight" input file or input scripting mechanism. It is the temporal aspect and FSM part that makes the JSON files very bloated very quickly
Any ideas of something that could be more suited?
The file currently looks something along those lines:
{
    "outputMsgs":[
                      {"msgPayload":123,456,789, "outputFrequency":200},
                      {"msgPayload":789, 456, 123, "outputFrequency":100},
                      ],

      "inputMsgs":
                     [
                          {"msgID":22, "timeout":500,}
                          {"msgID":23, "timeout":500,}
                          {"msgID":24, "timeout":500}
                     ]
}
This does not even contain any states or whatsoever or more complex stuff. This just describes what messages to send and what messages to expect every 500ms I think it is needless to say that if more stuff needs to be added it quickly becomes very verbose...
 
8:38 AM
@LandonZeKepitelOfGreytBritn I'm going to assume you work for script kiddies rewriting: en.wikipedia.org/wiki/Low_Orbit_Ion_Cannon
I initially thought JSON could be a good fit.
RIP
@LandonZeKepitelOfGreytBritn It would appear the spec is dictated to you: Don't use named fields. I'd stick with something that resembles rs232 or fintech exchanges. COMMAND OPTION1 OPTION2
 
@Mikhail dunno, doesn't sound very user friendly either... You just managed to remove the named fields. Nobody explicitly mentioned named fields are not allowed. This solution makes it even more difficult to clearly see what every value stands for. The scenario description can be very complex...
eg: in state 1 msg1, msg2 and msg3 need to be sent. If 0xFF is received in under 500ms you transition to state 2 and now the second byte of msg2 has to be set to 0xFF otherwise go to state 3. If now 0x55 is received whilst being in state 2 you have to transition to state 33 and send msg5, msg6, msg7 instead of 1,2,3.
^ That would IMO be way too complicated to describe in a rs232/fintech format ^
 
 
5 hours later…
1:36 PM
@LandonZeKepitelOfGreytBritn JSON is positional and you could also use something like BSON. So a lot of that you don't need
at least if this is an internal thing
 
1:49 PM
@Mgetz BSON would not quite be an option either because you need to be able to easily write these scripts/scenarios. Having it in binary format implies you d have to write a second application that interpretes your input file, converts it into binary and then feeds it into the target application. This adds an unnecessary step. You just want some kind of lightweight script/json/.... that can be parsed by the application
 
2:15 PM
OMG, my computer suddenly shows up a lot of ghost drives, what to do, what to do??!
Some sort of phantom disks ...
 
disable the USB device or controller in hardware manager
 
 
6 hours later…
8:05 PM
 
 
3 hours later…
10:46 PM
@Mgetz im starting to believe that what they are asking is impossible. Even after googling around I did not quite find anything that fits the bill
 
11:10 PM
@LandonZeKepitelOfGreytBritn might be that they want a dataflow representation :-)
I think boost had some state machine libraries that simplified saving/loading state machines
 
11:28 PM
nice
 

« first day (4484 days earlier)      last day (457 days later) »