Archive for the ‘Programming’ Category
Use Docker Swarm secrets in ASP.NET Core Configuration
Thursday, January 2, 2020 15:28 No CommentsNeed to pull in docker swarm secrets into the asp.net core configuration? The following article linked here: Use docker swarm secrets in Asp.Net core demonstrates how to write a custom configuration provider to do just that, or pull the existing NuGet package and let it do the work.
Xamarin & .NET Core how to ignore SSL certificate errors
Monday, September 30, 2019 14:40 No CommentsThe following article talks about ignoring SSL Certificate errors in Xamarin and .NET Core (Xamarin.Android, Xamarin.iOS, SignalR, Refit): Ignore ssl certificate errors in xamarin & .Net core / “Servercertificatevalidationcallback” is not called anymore on android
GIT – How to merge specific files from another branch
Monday, September 3, 2012 16:41 No CommentsUsing GIT you can merge specific files from another branch using the ‘checkout’ command. After you checkout the files do a commit on the current branch. Example: $ git checkout anotherBranchName path/to/file.etx path/to/file2.ext path/to/file3.ext $git commit -m “Merged files from anotherBranchName”
Doxygen
Tuesday, June 23, 2009 20:33 1 CommentDoxygen is a source code documentation generator tool. Comment blocks are constructed like this: (JavaDoc style) /** * multiline bloc… some text */ /// single ling comment… some text “some text” can be replaced with various special commands in order to make the generated documentation more user friendly. Doxygen special commans overview.
C++ static keyword
Tuesday, June 23, 2009 1:10 No CommentsThe static keyword can be used in the following situations. When you declare a variable or function at file scope (global and/or namespace scope), the static keyword specifies that the variable or function has internal linkage. When you declare a variable, the variable has static duration and the compiler initializes it to 0 unless you [...]
C++ Generate random numbers in Range
Monday, June 8, 2009 17:06 No CommentsTo make use of the rand() command you must include the cstdlib library #include <cstdlib> Before we generate a random number we call the srand(int) function to seed the randomizer so we dont get the same random number each time. #include <ctime> srand(time(NULL)); // time(NULL) returns seconds since 1.1.1970 To get the random number in [...]
Eclipse square bracket [] problem
Saturday, June 6, 2009 18:04 No CommentsSome people will experience a problem with Eclipse when trying to close the square brackets []. Eclipse will complain about not beeing able to evaluate a text selection and it won’t allow you typing that closing bracket. I got frustrated a bit because of not knowing whats going on. It wasn’t possible to write simple [...]
VC++ .net2 application doesn’t run on Windows 2000?
Monday, September 15, 2008 1:59 No CommentsQuite often there is a problem that VC++ applications won’t run on a Windows system that doesn’t have Visual Studio installed. The two most common reasons for that are: – Missing VC++ runtime libraries You can get them directly fromo Microsoft – The application is compiled in “Debug” mode. Some application require to be build [...]
How to change the default language in Vistual Studio 2005
Tuesday, August 19, 2008 1:12 No CommentsI ran into a problem of not knowing how to change the default language from C# to C++ in Visual Studio 2005, but finally discovered the solution which wasn’t simple and easy to find as presumed so I thought it would make a good tip for you guys reading this ;) – Go to Tools [...]