Keeping track of interesting places I put my feet on in the software development world.
Search This Blog
Monday, August 12, 2019
Monday, August 5, 2019
Wednesday, June 26, 2019
Get Date Out of an Elastic Timestamp
I am not sure, but I think the answer to the question on how to get a date out of an elastic timestamp,
can be using the Current Epoch Timestamp To Date
converter in this site.
can be using the Current Epoch Timestamp To Date
converter in this site.
Monday, June 24, 2019
Print call stack in javascript
From https://til.hashrocket.com/posts/478143b559-print-call-stack-on-javascript
Print call stack on Javascript
If you want to print the javascript **call stack** you can use:
```javascript
console.log(new Error().stack);
```
Here it is an **example**:
```javascript
function firstFunction() {
secondFunction();
}
function secondFunction() {
thridFunction();
}
function thridFunction() {
console.log(new Error().stack);
}
firstFunction();
//=> Error
// at thridFunction (<anonymous>:2:17)
// at secondFunction (<anonymous>:5:5)
// at firstFunction (<anonymous>:8:5)
// at <anonymous>:10:1
```
h/t @rondale_sc
viniciusnegrisolo
June 10, 2016
Tuesday, June 11, 2019
Increasing maximum allowed post body content size in .NET Web Api
This SO answer did the job.
I used int.MaxValue instead.
Sunday, May 19, 2019
Turning off .net core Transfer-Encoding Chuked automatic header
var objectContent = new ObjectContent<Dictionary<string, DataTable>>(dataTablesDic, new JsonMediaTypeFormatter(), "application/json");
var json = Newtonsoft.Json.JsonConvert.SerializeObject(dataTablesDic);
//setting request's content ContentLength's header was the only way I found to turn off .net core automatic Transfer-Encoding=Chunked setting, which was resulting in web api post object binding failure
objectContent.Headers.ContentLength = Encoding.UTF8.GetByteCount(json);
var result = httpClient.PostAsync($"http://localhost:65000/File/GetExcel?bucketDestinationPath={fileName}&S3bucketName=myBuketName", objectContent)?.Result;
var json = Newtonsoft.Json.JsonConvert.SerializeObject(dataTablesDic);
//setting request's content ContentLength's header was the only way I found to turn off .net core automatic Transfer-Encoding=Chunked setting, which was resulting in web api post object binding failure
objectContent.Headers.ContentLength = Encoding.UTF8.GetByteCount(json);
var result = httpClient.PostAsync($"http://localhost:65000/File/GetExcel?bucketDestinationPath={fileName}&S3bucketName=myBuketName", objectContent)?.Result;
Wednesday, April 17, 2019
Disable automatic assembly redirect
https://docs.microsoft.com/en-us/dotnet/framework/configure-apps/how-to-enable-and-disable-automatic-binding-redirection
Did not read the following, but may be of help:
Did not read the following, but may be of help:
Subscribe to:
Posts (Atom)