npm cache clean --force
Search This Blog
Thursday, January 14, 2021
Monday, July 27, 2020
Reset Atlassian SourceTree password
Go to %LOCALAPPDATA%\Atlassian\SourceTree
Etichete:
sourcetree
Monday, March 2, 2020
Friday, April 12, 2019
Install UglifyJS Webpack Plugin
Install UglifyJS Webpack Plugin
npm install uglifyjs-webpack-plugin --save-dev
Thursday, March 28, 2019
node asserts in node_contextify.cc:631 Assertion `args[1]->IsString()' failed
How to solve
node asserts in node_contextify.cc:631 Assertion `args[1]->IsString()' failed ?
Solution:
npm i natives
node asserts in node_contextify.cc:631 Assertion `args[1]->IsString()' failed ?
Solution:
npm i natives
Wednesday, March 27, 2019
Thursday, January 10, 2019
PlantUML jar command cannot be run
Error: PlantUML jar command cannot be run
SOLUTION
You need these things to run PlantUML:
SOLUTION
You need these things to run PlantUML:
Etichete:
PlantUML
Friday, December 21, 2018
Nodejs Assertion args[1]->IsString() failed
Nodejs Assertion args[1]->IsString() failed
node asserts in node_contextify.cc:631 Assertion `args[1]->IsString()' failed
Solution:
run:
| npm i natives |
Etichete:
nodejs
Friday, June 8, 2018
current working directory node.js
node.js > process > cwd
process.cwd() returns the current working directory
process.cwd() returns the current working directory
Etichete:
node.js
Thursday, May 31, 2018
Get File Version of Process c#
c# > System.Diagnostics > Process Class > GetProcesses
GetProcesses: use this method to create an array of new Process components and associate them with all the process resources on the local computer.
Get File Version of Process
GetProcesses: use this method to create an array of new Process components and associate them with all the process resources on the local computer.
Get File Version of Process
var processes = Process.GetProcesses();
foreach (var process in processes)
{
try
{
Console.WriteLine("Process: {0} FileVersionInfo: {1}", process.ProcessName, process.MainModule.FileVersionInfo.FileVersion);
}
catch
{ };
}
Etichete:
c#
Friday, January 19, 2018
View Error List Visual Studio
Visual Studio -> Error List
Click View / Error List
Click View / Error List
Etichete:
Visual Studio
Monday, September 25, 2017
New line in resx file Visual Studio
Visual Studio - > Resource Files
New line
New line
- Use Shift+Enter to insert a new line.
Etichete:
Visual Studio
Wednesday, May 3, 2017
C# Concat Example
C# > String > Methods > Concat
Concatenates strings and it does not add any delimiters.
Example
Concatenates strings and it does not add any delimiters.
Example
string firstName = "Dan";
string lastName = "Trump";
var name = string.Concat(firstName, " ", lastName); // "Dan Trump"
Etichete:
c#
Wednesday, December 14, 2016
Monday, December 5, 2016
Trailing zero numeric format string C#
C# > ToString
Examples:
1. Trailing zero numeric format string C#
"N" or "n" is for number.
double num = 4.2;
Examples:
1. Trailing zero numeric format string C#
"N" or "n" is for number.
double num = 4.2;
string
result = num.ToString("N2"); //
"4.20"
Etichete:
c#
Wednesday, October 19, 2016
Friday, October 7, 2016
ReStructured Text Color
Sphinx documentation > Color Text
.. role:: blue
This text is :blue:`blue text`.
.. role:: blue
This text is :blue:`blue text`.
Etichete:
ReStructured,
sphinx
Monday, September 19, 2016
Multine line text table Sphinx Documentation
Multine line text table Sphinx Documentation
+---------+
| Text |
+=====+
| | line1 |
| | line2 |
| | line3 |
+---------+
+---------+
| Text |
+=====+
| | line1 |
| | line2 |
| | line3 |
+---------+
Etichete:
sphinx
Thursday, September 8, 2016
sphinx-build example from command prompt
run from command prompt:
sphinx-build -b html -d _build/doctrees . _build/html index.rst
sphinx-build -b html -d _build/doctrees . _build/html index.rst
Etichete:
sphinx
Tuesday, September 6, 2016
LINQ OrderByDescending Example C#
C# > LINQ > Enumerable Class > OrderByDescending
Sorts the elements of a sequence in descending order.
Example
Sorts the elements of a sequence in descending order.
Example
List<int> list = new List<int> { 2, 5 ,3
,10, 7 };
IEnumerable<int> ordList = list.OrderByDescending(num => num);
foreach (int num in ordList)
{
Console.WriteLine(num);
}
Subscribe to:
Comments (Atom)
