|
Thanks for your consideration of this. I really appreciate your input!
Real programmers use butterflies
|
|
|
|
|
honey the codewitch wrote: Some time ago I created self-hosting service executable, which presented a neat way to control your service, install/uninstall it as a service, or simply run as a normal console application that blocks until it receives a kill signal.
tl;dr - yes please
long version - I think they are still 'needed' - Having previously written services with TopShelf, Quartz, when I was 'cut loose due to Covid-19' I started experimenting with self-hosting, DI & IOC, plus async/wait etc so I'm always looking for better/different ways of doing things - oh, plus logging of course .. if someone comes to me with an issue in a 'service' but no logging etc, my response is 'yes, you have an issue, come back when you really understand what at a minimum services should have'
(I think Topshelf & Quartz are still good, but would re-arrange the Quartz jobs for example using DI/IOC)
Quote: normal console application that blocks until it receives a kill signal. I've always hated the 'press any key to exit program' and much favoured the Control-C/Break trap/handler to send a quit signal
looking forward to seeing what you have - an old dog who does learn new tricks
|
|
|
|
|
I initially thought dev time would be a day or two with the article, but I ran into an issue wherein the service class doesn't give me access to the main message loop (ServiceBase.Run() blocks like Application.Run() does)
That means either my message queue or the service class itself must run on an auxiliary thread. This is complicating things, because it means post await code itself may fire on the main thread like it's supposed to, but things like OnStart() and OnStop() fire from an auxiliary thread, and that's even if I can call ServiceBase.Run() from a different thread than Main() 's but i think it will let me.
As far as the console mode it terminates on Ctrl+C or running it again elsewhere with the command switch /stop
Edit: having to articulate the problem helped me work through it. I just need to figure out what to do about the original OnStart() method. Hmmm
Real programmers use butterflies
|
|
|
|
|
Quote: having to articulate the problem helped me work through it you need a teddy bear to articulate to - it doesn't need to solve the issue (and likely won't), but as you've discovered, just articulating forces clarification (most times) in your head
good luck, I'm sure you'll figure it out
|
|
|
|
|
|
|
I'd be interested - it would be a lot better than the inherited setup I'm supporting now, which basically starts a process, sleeps for a random time (2-7 minutes), then looks to see if the process it started is still running so take another nap, or if it should send an email saying it's done. I'd love a better control process than the "it's running, I guess it's OK" or "it's not running, I guess it finished successfully" that I have now.
|
|
|
|
|
|
My wife and I re-watched Robin Hood (the good old, corny one) last night. She really was beautiful.
104! We decided that if you break 100 you have won the game of life - as much as you can win, anyway.
- I would love to change the world, but they won’t give me the source code.
|
|
|
|
|
� Forogar � wrote: 104! We decided that if you break 100 you have won the game of life - as much as you can win, anyway.
Pretty much!
I'm not sure how many cookies it makes to be happy, but so far it's not 27.
JaxCoder.com
|
|
|
|
|
The new settings for the 3D printer work well! The prints take remarkably less time (9.5 hours vs. previously 16 hours), Cura also calculates a smaller amout of filament needed, the print quality also seems to have improved a little, supports do their job well and come off easily. AND. NO. COBWEBS. AT. ALL. The prints are as clean as they can get.
There is only one problem. I have no idea why the new profile works so well. There seems to be no significant difference to the old one, but the results say something else. Sooner or later I will get behind it.
To celebrate this, I have put together the Eagle for the first time. The entire rear is made of the low quality parts from the orgiginal 3D model, the cargo container in the middle (a huge brick) is still missing and everything is held together only by clothes pins, masking tape and a few drops of a weak, rubbery glue. It would fall apart if I tried to carry it outside for a picture. At least I know how big and heavy it's going to be.
It's right in the middle between the 44 inch and 22 inch studio models with about 33 inches. Looking at it standing on the floor, I'm slowly beginning to forgive that it has been scaled down. Still, full size would have been glorious.
Now it's back to CAD and redesigning the rest of the parts. I have found videos that show the original studio model hafter restoration (Space: 1999 Original Eagle 1 Studio model (as seen today) - YouTube[^]) and building a replica (44" Eagle Transporter Work in Progress Part 1 - YouTube[^]). That will help, but I'm certainly not going to begin soldering together brass tubes and end up with a 35 pound model.
I have lived with several Zen masters - all of them were cats.
His last invention was an evil Lasagna. It didn't kill anyone, and it actually tasted pretty good.
|
|
|
|
|
Excellent!
Save your settings somewhere so you can reuse them if it happens again?*
* Yes, yes, I know: teaching my GrandWraither to suck eggs ...
"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!
|
|
|
|
|
Already done. In the 'project folder'. Unfortunately I also saw another folder with another thing I want to finish. How about going into the air again with this[^]?
I have lived with several Zen masters - all of them were cats.
His last invention was an evil Lasagna. It didn't kill anyone, and it actually tasted pretty good.
|
|
|
|
|
Your 3D CAD skills must be waaaaay better than mine!
"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 cheat. An entirely 3D printed body would be too heavy, but detailing it is no problem. The Huey was good practice for that. For example, I have already made great legs for the retractable landing gear. They go over the plain steel ad look exactly like the ones of a real Sea King. Tuch details and a good paint job do a lot to turn a cheap fiberglass body from China into a unique and realistic model. The Huey even has some real dirt from Vietnam mixed into the paint on the belly and the landing skids.
I have lived with several Zen masters - all of them were cats.
His last invention was an evil Lasagna. It didn't kill anyone, and it actually tasted pretty good.
|
|
|
|
|
|
Sure. How about this obe: Space 1999 Fan Film - Flight of the Eagle - YouTube[^] . Look what UI they use for the cockpit displays.
I have lived with several Zen masters - all of them were cats.
His last invention was an evil Lasagna. It didn't kill anyone, and it actually tasted pretty good.
|
|
|
|
|
I raise my glass to you (with Akvavit or a prune smoothie)
|
|
|
|
|
As our holiday in Denmark this year seems to be approved I celebrated it with a glass of Aalborg Akvavit from a small bottle which I still had left from our vacation last year.
Alcohol percentage 45%, sadly not high enough against the Corona virus, but tasty nevertheless.
Cheers!
|
|
|
|
|
|
And there is more: as we had a lot of prunes from our prune tree in the garden and still had some left after baking prune cakes and making jam, I also made a prune smoothie.
Cheers again !
modified 26-Jul-20 12:51pm.
|
|
|
|
|
prune smoothy ? sounds .. explosive
Skål
|
|
|
|
|
I also played with the thought of spicing it up a little with some Akvavit
|
|
|
|
|
we used to have a comedy sketch here (Aus) about two airline stewards, and one of the funniest skits was about (punchline) "ring-damage" .. explosive prune smoothy && Akavit .. brings tears to my eyes
.. and I shall say no more, lest I be banned
|
|
|
|
|
(Do not want to spoil yours, but my - local! - vacation has been cancelled only 9 days before it's date...)
"The only place where Success comes before Work is in the dictionary." Vidal Sassoon, 1928 - 2012
|
|
|
|