Say we have some auto committing controls, like dropdownlist, and also a simple ‘next step’ button.How to detect a difference between the two submit events for the form ? The TYPE of the button determines it to be a form submission the NAME of the button can be used as a parameter in the controller […]
Author: bobnoordam
EF Framework core for ling2sql users
Linq2Sql had a few extremely practical tools such as sqlmetal enabling you to generate code form an existing database with a single command, replace a single file and be done with it. EF Core seems to align with the trends lately to make everything more cumbersome, but you can stil use a workflow much like […]
Postfix queue management
Queue management for postfix is done with the postsuper command, which you can use to delete mail in vareious scenario’s. #1 Remove specific mail Run the mailq command to list pending mail, en get the id, next you can delete a specific mail with: #2 Remove ALL mail #3 Remove all deferred (stalled) mail, without […]
HTTPS redirect with web.config
If you configure HTTP to HTTPS redirection from the IIS console, it will get overwritten by the web.config form a published application. Here is how to configure http to https redirection isde your project web.config. We can also add non-www to www redirection, by using the setup below:
Add Class not available in template list
Problem: The option to add a class to visual studio is present in the menu, but the add class template is missing from the list. Cause: This is caused by an incompatibility between Visual Studio 2019 version 16.6.X and Dev Express control suite version 20.1.3 Resolution: Upgrade Dev express control suites to version 20.1.4, or […]
Webmin on debian with let’s encrypt
What do we want to archive Installation of webmin on debian, and adding a certbot SSL certifcate Requirements Debian, certbot How do we get there First step is the installation of webmin, which is perfectly described on the official page. At the current time and version, this amounts to the following steps, asuming a clean […]
UFW Firewall cheat-sheet
What do we want to archive Install and activate the Uncomplicated firewall (UFW) and list some basic commands for adding and removing rules Requirements Debian, Ubuntu, etc How do we get there Installation: Default rules The following defaults will allow all outgoing traffic, and block all incoming traffic, which will make for a nice set […]
Add usr/sbin to path for a local user
What do we want to archieve Add /usr/sbin to the path of the local user Requirements Debian 10, Bash shell How do we get there The directories /sbin, /usr/sbin and /usr/local/sbin are not in a normal user’s path because they contain executables for system maintenance that need administrative priveleges. These are normally only in root’s […]
SQLServer table variables
table variables live in tempdb but are created at the declaration and dropped at the end of the batch. This is a nice alternative to temptables if you do no need access to the temporary data from multiple sessions, queries or sources, and frees you from the managent of temptables. Basic format:
Firefox 75 : Remove horrendous zoom effect in address bar
In a renewed attempt to get rid of users, Firefox added a horrendous zoom effect to the address bar every time you click in it. Here is how to restore the behaviour to a normal box: Type about:config in the address bar to access advanced settings change browser.urlbar.openViewOnFocus to FALSE change browser.urlbar.update1 to FALSE