The plugins for WordPress are uncountable. But not all are up-to-date and work with the newest version. The result are countless hours spent finding the right plugin for the job. Today I want to share 5 plugins that are a great help for me running this blog.
Hangfire.io is a nice tool to perform background processing in .Net. Those background jobs can go from simple method calls you don't want to block the user interface for up to recurring tasks for maintaining your application. It's licensed under the LGPL v3 and can be used in closed source software. Should you need more features or support, you can take the Pro version.
A very helpful feature in Visual Studio 2017 is Paste Special. You can copy a XML or JSON file to the clipboard and paste a class definition that matches your file. That doesn't sound like much but it can help you to save a lot of time - especially when your XML file has no namespaces and no schema.
No week passes by without a big announcement of stolen account data. Usernames with their corresponding passwords and email addresses are “lost” on a regular basis. This is not only a problem of small sites: LinkedIn, Adobe and MySpace alone add up to more than 600 Million leaked accounts.
Sending emails with C# is straightforward. You only need a few lines of code and a bit of configuration for the mail server as described in an earlier post. Taking the effort to send an email as a base line, you could jump to the conclusion that it shouldn't be a problem to display your company logo inside your generated emails. But unfortunately it's not that easy. That logo should be displayed in the content of the email and not just be added to the list of attachments. And embedded images are a totally different story.
What seems to be an easy task can take hours. However, if you are willing to take some dirty shortcuts you can implement that requirement in a few lines of code.
vartoAddress="[email protected]";varfromAddress="[email protected]";varmessage="your message goes here";// create the emailvarmailMessage=newMailMessage();mailMessage.To.Add(toAddress);mailMessage.Subject="Sending emails is easy";mailMessage.From=newMailAddress(fromAddress);mailMessage.Body=message;// send it (settings in web.config / app.config) varsmtp=newSmtpClient();smtp.Send(mailMessage);
The constant demand to create an account with every web site or app is annoying. As if this is not bad enough, it also puts your data at risk. You use your email everywhere, even when you only need this free WiFi for an hour or two. The data remains on the site and as we can see on sites like Have I been pwned?, it gets "lost" quiet often – and not only by small companies. Combine those leaked accounts with the fact that most people reuse their passwords and you end up with a serious security problem.
A new feature of Visual Studio 2017 is really annoying: Whenever you run a web application, it opens a different browser (Google Chrome or Internet Explorer). Not just a new window, but an entirely different executable without your plugins or your settings for self-signed SSL certificates on localhost. To make things worse, those alternative browsers are (at least on my machine) unbearable slow.
The test runner inside Visual Studio is great while developing code. In this phase I only care if tests fail and when everything works, I don’t want to be bothered. However, if I need to create a report for someone that just wants to know the high-level view, then this tool is not good enough: Too much details and no visualisation.
Developing applications with SSL client certificates are a challenge because there are so many little things that can go wrong. You quickly want to open the debugger, but that can be a challenge in itself, especially when the whole chain only works on a remote server. A much simpler way is to use IIS Express with a configuration that accepts SSL client certificates. This setup allows you to debug your application on your local machine without the need to configure the full IIS – at least as long as the errors are in your application.