It’s not evil, but close if you don’t know which build-in primitive data type you need to use. When running around in C# it’s a fundamental good idea to have a grasp about what different data type you can use. So you need you need to hold a number of 55000? Which primitive type would
Tag: Tips and Tricks
What does the =~ mean in bash
The character ~ is called tilde. And in relation to bash it’s used for regular expressions. The tilde ~ is part of the operator, so you need to use the equal and tilde like =~ If you e.g. have It will perform a regular expression match of your string, in this case txt matching you
RStudio run all
To run all the lines in your R file use the Source command or the shortcut Ctrl + Shift + S or if you want the echo feedback use Ctrl + Shift + Enter. The latter is close do the run a single line Ctrl + Enter. This will run the source command:
WordPress Jetpack statistics don’t count yourself
When you add the Jetpack plugin it should by default have you disabled on the statistics. You can check up on this by going to Make sure Administrator, Editor or Author is disabled depending on which kind of users you want to ignore stats on. You might just want all types to be disabled.
Convert nuget sources update to dotnet nuget
Converting nuget or msbuild for that matter, find the equivalent in dotnet. For converting your nuget sources update you have to change almost all words. Here an example: You add dotnet at the start. Remember to change sources to source without the s. Update and source has moved places. All argument will be changed from
Resize pictures in GitHub
As the guide suggest to add an image to a readme.md markdown file use (Source: https://guides.github.com/features/mastering-markdown/) But if you want to resize you could use the html img tag instead. Replace the syntax with this
Convert a list or array to string in C#
You need to use the string.Join to go through the list to actually get their values. Source: https://docs.microsoft.com/en-us/dotnet/api/system.string.join
Azure DevOps Pipeline Badge not showing
You’ll like to have a cool badge from Azure Pipelines like this But it doesn’t show and a no-image is displayed This could be because you have renamed you’re pipeline. Microsoft DevOps Pipeline has an error where the updated badge link doesn’t work from “Status Badge” You get the sample markdown looking similar to this:
C# WPF run a function every second
To run a function every second use the DispatcherTimer Class https://docs.microsoft.com/en-us/dotnet/api/system.windows.threading.dispatchertimer?redirectedfrom=MSDN&view=netframework-4.8 DispatcherTimer will tick evey second calling dispatcherTimer_Tick. You can set the interval with a timespan
GitHub Action WorkFlow HCL to YML for AWS Lambda Deploy
To migrate https://github.com/marketplace/actions/aws-lambda-deploy to using yml. Your workflow looks something similar to this: Migrating this to YML Note that you need to add the Access Key ID and Secret Access Key to Github Security