Killing a process with a PowerShell script

Microsoft PowerShell

To kill a process in a Windows script environment, PowerShell is the perfect tool. Just make a PowerShell script file: script file: kill_process.ps1 This script kills the process named MyProcess if it exists. The error action prevents the script from outputting information if an error occurs, for example if the process does not exist. [shell … Continue reading Killing a process with a PowerShell script

First steps with ANTLR4 in C #

texte de grammaire csharp

1. What is ANTLR? ANTLR4 is a lexer / parser generator. A parser takes a text input, and according to a grammar, extracts the recognized lexicons terms (action of the lexer), and produce an AST: Abstract Syntax Tree (action of the parser). We can have parsers without grammars (the PEG: Parsing Expression Grammar, which are … Continue reading First steps with ANTLR4 in C #

Use Google Translate for free on the command line

image

The official Google Translate API is available to businesses by paying a license fee ... But it is possible to call the secret API translate.googleapis.com which is used internally by the extension for Google Translate Chrome! On his website Digital Inspiration, the famous Amit Agarwal (historically the 1st Indian blogger) informs us of this possibility … Continue reading Use Google Translate for free on the command line

Transform the separators of a CSV file

CSV file image

The CSV Comma Separated Values) files are text files that describe a table. Columns are identified on a line of text by a particular character. For CSV it is normally a comma (comma). The common separators are: comma (,) semicolum (;) tabulation (\t) space ( ) We often use Excel to open the CSV, and … Continue reading Transform the separators of a CSV file