Visual Studio – vdproj is incompatible

vdproj is a MSI creation project for Visual Studio. Its been deprecated and most people have moved on to either WIX or NSIS or a professional grade installer creation tools such as Install Shield. If you do not require an installer for your product just exclude the vdproj project from the solution and continue with your life for fun if you want … Read more

Contains method for a slice

Mostafa has already pointed out that such a method is trivial to write, and mkb gave you a hint to use the binary search from the sort package. But if you are going to do a lot of such contains checks, you might also consider using a map instead. It’s trivial to check if a specific map … Read more

Categories go Tags

What does HTML.Raw do?

Text output will generally be HTML encoded. Using Html.Raw allows you to output text containing html elements to the client, and have them still be rendered as such. Should be used with caution, as it exposes you to cross site scripting vulnerabilities.

What does ESOCKET error mean when I’m trying to send an email?

Per https://github.com/nodemailer/nodemailer/issues/889#issuecomment-488267379 (and it’s follow-ups): same problem here. resolved it by using IP address as host, see https://nodemailer.com/smtp/#general-options For us it seems to be related to throttling as circa 140 messages go through in a batch while the remainder get this error (and all are being sent to the same email address, so no issue re: bad email … Read more

Difference between pic Vs pie

From the gcc documentation: -fpicGenerate position-independent code (PIC) suitable for use in a shared library… -fpieThese options are similar to -fpic and -fPIC, but generated position independent code can be only linked into executables….

How to use the command update-alternatives –config java

You will notice a big change when selecting options if you type in “java -version” after doing so. So if you run update-alternatives –config java and select option 3, you will be using the Sun implementation.Also, with regards to auto vs manual mode, making a selection should take it out of auto mode per this page stating: When using the –config option, alternatives will list all of the choices … Read more