If you ever debugged code that had a list, you wished you could see more than the namespace and class name for the elements in that list. Today we look at one of my favourite features of OzCode to solve exactly that problem.
A good testing strategy may reduce your bugs tremendously. However, some bugs may still slip through and can only be found on your production environment. Today we look at a great feature of OzCode to isolate problematic data to use it in regression tests.
Good test data is as realistic as possible but isn’t from production. Leaks can happen on test systems as well and they are often less protected as production systems. Whenever you need test data you can start creating it from scratch or write a tool. Both options take time and effort. However, there is a third option: test data generators. Today we look how you can create realistic test data without much effort.
The .gitignore file is a great help to ignore certain types of files (like *.exe or *.dll). A little entry in this file and you no longer need to remember only to check in the files you really need but not the other ones.
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);