- WaitForExit Method (Int32):
- true if the associated process has exited; otherwise, false.
- true if the shell should be used when starting the process; false if the process should be created directly from the executable file. The default is true.
- true if output should be written to Process.StandardOutput; otherwise, false. The default is false.
- true if error output should be written to Process.StandardError; otherwise, false. The default is false.
- true if the process should be started without creating a new window to contain it; otherwise, false. The default is false.
- CreateNoWindow works in conjunction with UseShellExecute as follows:
To run the process without any window:
ProcessStartInfo info = new ProcessStartInfo(fileName, arg); info.CreateNoWindow = true; info.UseShellExecute = false; Process processChild = Process.Start(info);
To run the child process in it’s own window (new console)
ProcessStartInfo info = new ProcessStartInfo(fileName, arg); info.UseShellExecute = true; // which is the default value. Process processChild = Process.Start(info); // separate window
To run the child process in the parent’s console window –-> This is what we are using
ProcessStartInfo info = new ProcessStartInfo(fileName, arg); info.UseShellExecute = false; // causes consoles to share window Process processChild = Process.Start(info);
- WindowStyle :
- is a recommendation passed to the process
- One of the enumeration values that indicates whether the process is started in a window that is maximized, minimized, normal (neither maximized nor minimized), or not visible. The default is Normal.
- git remote prune origin –dry-run
- (Local) git branch -d <localbranch>
- openssl.exe req -x509 -nodes -days 365 -newkey rsa:2048 -keyout myPrivateKey.key -out myCert.pem
- We will mostly use the .key file
- The .pem file is only needed for Classic deployments. Typically we wont use this.
- Look up use of req : https://linux.die.net/man/1/req
- The req command primarily creates and processes certificate requests . Thats why the output of req is a cerificate (myCert.pem)
- But we are interested in the private key (myPrivateKey.key). Hence we are using the -keyout flag
- openssl.exe rsa -pubout -in myPrivateKey.key -out myPublicKey.key
- This did not help. Because Azure complained about SSH2
- ssh-keygen -e -f myPrivateKey.key
- This generated the SSH2 key (public) which I copy pasted into azure
- ssh-add myPrivateKey.key
- eval `ssh-agent -s`
- in windows I had to start
ssh-agentbefore running the
- In AWS, the private key is saved in a .pem file . you just use the .pem file to connect to the instances.
- Ideally the .pem extension is for certificates, not for keys.
- This was one of my confusions – because AWS saves the key in the .pem file
- Use ssh-agent to store private keys. Makes life much simpler!
It seems there is a deluge of terminal options on the windows platform.
- Whats the relationship between cygwin and mintty ?
- The cygwin shortcut on my machine looks as follows:
- C:\cygwin64\bin\mintty.exe -i /Cygwin-Terminal.ico –
- In cygwin, I had an issue whereby the backspace key did not work in the ‘sbt console’ REPL.
- Fix was to go to
Keys, and make sure
Send Backspace as ^His checked. This will allow the REPL to correctly interpret backspaces
- Fix was to go to
Recently I was playing around with multi-dimensional data structures in Python.
Some interesting observations:
- Multi-dimensional lists and multi-dimensional arrays are fundamentally handled differently.
- Slicing of multi-dimensional arrays (numpy) need to be carefully considered in regards to shallow copy etc
Some references below for further examination:
- Authentication and Authorization in ASP.NET Web API.
- Reservoir Sampling.
- Shuffle command in Linux.
- Regex in Python.
- Http Headers.
- Await-Async in C#.
- Singleton in Python.
- Singleton in C#.
- Redis on Azure.
- Horizontal Scalability
- Write Throughput
- Vowpal Wabbit.
- Vowpal Wabbit Format.
- Multi-Threading in C#
- Multi-Threading in Python
- Wikipedia – Linux Solution
- Wikipedia – Spark
- Data Science From Scratch – Clustering.
- Stock Analysis in Python
- Decision Trees
- Confidence Intervals – Discussion
- Question about computing Std Dev.
- Looping over pandas DataFrames – When is it necessary ? When can it be avoided ?
- L1 / L2 regularization error – What does it mean ?
- Learning With Counts
- Difference between HttpClient and HttpRequestMessage
- Count Min Sketch