Posts

Task Scheduling With AgendaJs and MongoDB

This was a project I wanted to start for my consulting project however my team was using TopShelf to create windows service and handled timers in the main loop. Which is fine but if you wanted to look up execution logs, like last run or if it was currently running you had to be on the machine. Checking the service status, and system logs. Later we used the database with nlog to help us but I think hangfire would have been a improvement. Side not for my calendar project this would have been the route I would have taken for the backend service or at least started looking at. https://thecodebarbarian.com/node.js-task-scheduling-with-agenda-and-mongodb https://medium.com/hacktive-devs/nodejs-scheduling-tasks-agenda-js-4b6824f9457e https://dev.to/andre347/how-to-create-a-task-scheduler-in-nodejs-4lo2 https://github.com/agenda/agenda https://nosqlbooster.com/home https://github.com/timgit/pg-boss/blob/master/docs/usage.md

Angular 9: Loading App

A lot of my articles this month are going to be useless to some people because they arent organized in any way. This is because there were quick notes collected when I was consulting and using angular 9. Which was working for me at that time to complete my work. Until I have another professional angular project, angular 12 is looking like a pain to upgrade from 9 so much so it has slowed my personal projects down. So all research and work I do is on my personal time.  https://medium.com/@tomastrajan/how-to-style-angular-application-loading-with-angular-cli-like-a-boss-cdd4f5358554 https://loading.io/# https://napster2210.github.io/ngx-spinner/

WebApi: Notes & Richardson Maturity Model

I forget how I came across this but certainly need to research more on the subject. For now I'll just leave this article here for myself to remind myself later.  HATEOAS - https://en.wikipedia.org/wiki/HATEOAS idempotent - https://en.wikipedia.org/wiki/Idempotence upserts - https://stackoverflow.com/questions/20861870/web-api-and-upserts/20862830 https://martinfowler.com/articles/richardsonMaturityModel.html What is the   Richardson Maturity Model ? The   Richardson Maturity Model   is a way to grade your API according to the constraints of REST. ... The   Richardson Maturity Model   knows 4   levels   (0-3), where level 3 designates a truly RESTful API.

Configuration Pains with Postfix

In the start of 2018 around February I finally got everything in place to send and receive emails. For now my server just sends emails not receive. I want to investigate more into the authorization system for postfix and currently at the moment I caught up on ways to create listeners which I need for another project. I want to create an aspnet core version of squirrel mail but for now things are where I need them. https://linux-audit.com/postfix-hardening-guide-for-security-and-privacy/#test-the-existing-postfix-configuration https://linux-audit.com/postfix-hardening-guide-for-security-and-privacy/#test-the-existing-postfix-configuration https://www.digitalocean.com/community/tutorials/how-to-install-and-configure-postfix-as-a-send-only-smtp-server-on-ubuntu-14-04 http://postfix.state-of-mind.de/patrick.koetter/smtpauth/smtp_auth_mailclients.html https://serverfault.com/questions/712903/503-5-5-1-error-authentication-not-enabled-when-trying-to-connect-to-my-postf https://github.com/nl...

Angular 9: Bootstrap Model Error handling and a better Component

Constantly pushing my content into modals and so I can make the call asynchronously and speed up the page in little ways. https://stackoverflow.com/questions/37793418/how-to-return-http-500-from-asp-net-core-rc2-web-api https://stackoverflow.com/questions/12948156/asp-net-mvc-how-to-disable-automatic-caching-option Related issue with an example using Jquery https://kwilson.io/blog/post-an-array-of-objects-to-webapi-using-jquery/ Modal Handling with Components http://plnkr.co/edit/3gMgeAUyIoKCjkXq0M9y?p=preview Component scope passing http://plnkr.co/edit/2JNhMguMMMABA7MVVddx?p=preview Angular Interceptor https://scotch.io/@vigneshsithirai/angular-6-7-http-client-interceptor-with-error-handling Extra Notes https://github.com/angular-ui/bootstrap/issues/6501 https://stackoverflow.com/questions/46663568/how-to-handle-ctrl-in-angularjs https://sebnilsson.com/blog/display-local-datetime-with-moment-js-in-asp-net/ https://stackoverflow.com/questions/34958681/what-is-the-best-...

No EventLog for Aspnet Core with Nlog

 If you trying to pass a json object you can still do so just not with the EventLog object. Instead just use the MS LogIformation method with the object as your parameters. I still havent got it to format the json object in the logs but for now this is a solution. Another solution is to pull the nlog object in and not use the MS LogInformation in Logger log = LogManager.GetCurrentClassLogger();  I haven't done this yet but I dont see a logical issue just bad design  https://github.com/NLog/NLog/issues/2106 https://stackoverflow.com/questions/39099601/how-can-i-configure-json-format-indents-in-asp-net-core-web-api https://github.com/NLog/NLog/issues/2629 https://stackoverflow.com/questions/34679727/use-nlog-in-asp-net-core-application https://stackoverflow.com/questions/44048187/layout-nlog-properties-as-json Example:  https://github.com/NLog/NLog.Web/blob/master/examples/ASP.NET%20Core%203/ASP.NET%20Core%203%20-%20VS2019/Controllers/HomeController.cs https://github.c...

Bootstrap: Spacing between Stack Items

For non-frontend developers bootstrap is already an great way to get started, I've said that for years. However I find .net developers using custom styles rather then whats involved in bootstrap. Its why I created flavorstrap, for ppl creating custom styles to use extension or to keep the naming convections similar. Margin utilities -  ml-auto  and When it stacked I recommend the following between the two items.. < div class = "d-block d-md-none col-12 py-3" > </ div > That way it only appears when you need it to and prevent cells from being on top of each other for smaller screens. However with bootstrap 5 this solution is even easier. Using the new Spacing style just follow the documentation,  {property}{sides}-{breakpoint}-{size}.

Popular posts from this blog

Aspetcore: NLog with Postgresql

Mongodb Cheatsheet

Installing Windows on Acer chromebook 15 cb3-532