-
Friday Links 355
Geeksltd/VSIX.TidyCSharp Elasticsearch,Kibana and Docker using .NET Standard 2 – CodeProject Humpty Dumpty and Programming What are your favorite Rstudio addins? – RStudio IDE – RStudio Community Some new time series packages | Rob J Hyndman Mapzen Flex · Mapzen Functions with R and rvest: A Laymen’s Guide – peterjgensler – Medium Docker-izing your work in…
-
Caching data backend–.NET Core–part 49
We have 2 options to cache data: One in webAPI,one when returns from database. For WebAPI,I have read https://docs.microsoft.com/en-us/aspnet/core/performance/caching/response?view=aspnetcore-3.1 and https://docs.microsoft.com/en-us/aspnet/core/performance/caching/middleware?view=aspnetcore-3.1 It is also important to read the conditions for caching : https://docs.microsoft.com/en-us/aspnet/core/performance/caching/middleware?view=aspnetcore-3.1#conditions-for-caching ( e.g. only GET or HEAD is cached) It is just very easy – see github commit https://github.com/ignatandrei/InfoValutar/commit/b8d38658b5135e4d3c93da78f77ffb9f01376829 Also,can be tested by…
-
Caching data frontend- Angular interceptors for Observable–part 48
Now I want to cache data for fast loading site- if it comes next time with the same browser,should have some data returned fast – and then load from HTTP. So first return from cache,then make the request So I need to create an HTTP interceptor to cache things- fortunately,Angular already provide tutorial about this:…
-
[ADCES] Plugins .NET Core and Combining SaaS,PaaS & IaaS Realtime Micro-Communications
Today I have a presentation about .NET Core Plugins . See you at 7 PM here : https://www.meetup.com/Bucharest-A-D-C-E-S-Meetup/events/267162162/ ( The code for the demo is here: https://github.com/ignatandrei/Presentations/tree/master/2020/NETCore3Plugins ) Waiting for you!
-
RxJS–Unsubscribe automatically –part 47
I am searching for a simple method to unsubscribe from Observables. Some of methods are detailed here : https://blog.bitsrc.io/6-ways-to-unsubscribe-from-observables-in-angular-ab912819a78f I do not want remember to unsubscribe being forced to use html ( the async pipe) take operator – I want later to cache first data and then make the http call first operator – same…
-
Friday Links 354
edent/SuperTinyIcons: Under 1KB each! Super Tiny Icons are miniscule SVG versions of your favourite website and app logos daneden/animate.css: A cross-browser library of CSS animations. As easy to use as an easy thing. Animate.css Seth’s Blog: Reading at work Current State of the NewSQL/NoSQL Cloud Arena – Simple Talk The Best Request Is No Request,Revisited…
-
Routing angular with .net core and RxJs switchmap- part 46
Now the problem is that the route works if I access first the index.html file,but it does not route when entered directly Trying to get from SPATemplate https://github.com/ignatandrei/InfoValutar/commit/a364dc57653ac2ba04ab0596f1540a8f9fdb73f6 However,this will redirect ALL routes to index.html – including swagger and API. Trying to learn more – looking at the code. I have observed that I…
-
Displaying banks with Angular routing-part 45
Now I want to have a separate URL for each bank,like https://infovalutar.azurewebsites.net/bank/ECB For this I read routing in Angular,https://angular.io/tutorial/toh-pt5 . However,a small problem : when we change URL,from https://infovalutar.azurewebsites.net/bank/ECB to https://infovalutar.azurewebsites.net/bank/BNR we should re-load component – or the component be aware of changing. Reading https://kamranahmed.info/blog/2018/02/28/dealing-with-route-params-in-angular-5/ makes me change from this.idBank = this.route.snapshot.paramMap.get(‘id’); to this.route.params.subscribe(rp=> {…
-
.NET Core 3.0 to .NET Core 3.1 and .NET Core SSL (https )with VSCode + Docker –part 44
To pass from .NET Core 3.0 to .NET Core 3.1 Modify the .csproj Modify the devops Modify the GitHub Actions Modify the Azure Devops ( because was on Docker,just modify the docker FROM sdk Modify the dockerfile in the .devcontainer folder to run in VSCode Container Some of the modifications here : https://github.com/ignatandrei/InfoValutar/commit/2d5b138ccd6225a6bf69dca47fe76e2270920d2d However,to have…
-
Configure Angular Environment(local and remote) and CORS for .NET Core – part 43
I want to be capable to run Angular with data obtained from local .NET project in development – and from remote website in production. One of the techniques is detailed here https://angular.io/guide/build Generated service : ng g s banks Now I want to see that every modification of the Bankservice will re-compile. Tried in Docker…
I am ok , you are ok