-
Friday Links 395
Google Cloud Platform Blog: Your favorite languages,now on Google App Engine timelion/FUNCTIONS.md at master · elastic/timelion Data | The World Bank timelion/FUNCTIONS.md at master · elastic/timelion Fasting for three days can regenerate entire immune system,study finds 2016 JavaScript Rising Stars Module Bundling and Webpack in Simple Terms AppSec Europe 2017: Web Application Security Essentials Troy…
-
SideCARCLI–Finish process after some time
One of the feature is to let the original process execute just a limited amount of time. For this,I have defined an option var maxSeconds = app.Option(“-mS|–maxSeconds”,”max seconds for the StartApp to run”,CommandOptionType.SingleOrNoValue); and the code for waiting is Process p = new Process() { StartInfo = pi }; //code var res=p.WaitForExit(this.MaxSeconds); //code if (res)…
-
SideCarCLI – Line interceptors
For the SideCarCLI I have the concept of Line Interceptors. That means for each line from the original program another program will be start . The json looks like this “LineInterceptors”: [ { “Name”: “WindowsStandardWindowsOutputInterceptor”, “Arguments”: “/c echo \”{site} {line}\””, “FullPath”: “cmd.exe”, “FolderToExecute”: null, “InterceptOutput”: true }, { “Name”: “NextInterceptor”, “Arguments”: “/c echo {line}”, “FullPath”:…
-
SideCarCLI-send arguments to interceptors
For the SideCarCLI I want the interceptors ( line,finish,timer) to receive parts of the command line of the original application. But how to parse the command line and how to pass to the interceptors ? RegEx to the rescue! I will let the user define the command line of the starting application and parse the…
-
SideCarCLI- finish interceptors
The idea for FinishInterceptors is very simple – when the initial process,StartApp,is finished –then run some other programs . And here comes some decisions: Pass the ExitCode of the StartApp ? ( YES) Pass the output lines of text of the StartApp ? ( NO – could be enormous ) What to do if the…
-
Friday Links 394
Sciter/HTML/C# based desktop apps walkthrough – CodeProject The Best Sites for Storing Photos Online Improving .NET Application Performance – DaedTech Was Linus Torvalds Right About C++ Being So Wrong? – Slashdot THESE ARE REAL COMPLAINTS RECEIVED BY “THOMAS COOK HOLIDAYS” FROM DISSATISFIED CUSTOMERS – Newsroom24 Expression Trees in C# with an example – DotNetCrunch Sharing…
-
SideCarCLI–create releases
Because all code is in Github,the easy way is GitHub Actions,https://github.com/features/actions . Some modifications are required on CSPROJ file to build for Linux or Windows : <PropertyGroup> <OutputType>Exe</OutputType> <TargetFramework>netcoreapp3.1</TargetFramework> <RuntimeIdentifiers>win-x64;linux-x64</RuntimeIdentifiers> </PropertyGroup> And after 6 commits,this is the ( almost) final version: name: .NET Core on: push: branches: [ main ] pull_request: branches: [ main…
-
SideCarCLI–refactor command line
When starting to implement the project,suddenly realize that list interceptors command does not belong to start app command . So the application should be refactored to new specifications – StartApp command – contains the whole list of commands for starting the app,including timer,adding interceptor – Interceptors command – should list the interceptors (timer,line,finish) The interceptors…
-
SideCarCLI–Architecture and specs–part 2
The SideCarCLI application should start another application and intercept in various ways . What will execute when intercept is not known in advance – so should be read at runtime . So the SideCarCLI will load the interceptors and make then available to the application. Let’s say that,for the moment,the SideCarCLI will take all the…
-
SideCarCLI | Command Line – description –part 1
There are those days a great deal of command line applications that performs a variety of things. The problem is that you cannot control them . The command line performs their duty well – but,from time to time,you need something else integrated with this. The pattern for this is https://docs.microsoft.com/en-us/azure/architecture/patterns/sidecar – it is applied to…
I am ok , you are ok