Friday, December 25, 2020

MVC Bootstrap dropdown menu and up down symbols

MVC  Bootstrap has a super easy way to create dropdown menus and add up/down symbols on these menus. Basically we just need to include this style in the css file.


/* Style to reverse the caret icon from pointing downwards to upwards */

.dropdown.open .dropdown-toggle .caret {

    border-top-width: 0;

    border-bottom: 4px solid;

}


Please see a fiddle in action at https://jsfiddle.net/pranavnk/o3z7yxf8/4/


reference: https://www.w3schools.com/bootstrap/tryit.asp?filename=trybs_ref_js_dropdown_icon&stacked=h


Friday, October 9, 2020

Encrypt connection strings

 This guide shows how to encrypt whole connection string in web.config in an IIS website.

https://blog.elmah.io/the-ultimate-guide-to-connection-strings-in-web-config/


In short, run this command inside command prompt as administrator

aspnet_regiis -pef "connectionStrings" "c:\path\to\the\folder\containing\webconfig"

Friday, September 11, 2020

iOS build X Code versions and supported sdks

 The page below lists different X Code versions and corresponding SDKs. This information is necessary when using X Code build task in DevOps

https://github.com/actions/virtual-environments/blob/main/images/macos/macos-10.15-Readme.md

Sign Android apps using upload_cert.der from Google Play Console

To publish an android app on production track, it needs to be signed with the right key. Google can automatically manage signing key in the play console for. But we also need to import the key used by google in our local keystore where android studio is generating the apk file.

http://tigar.nl/2018/05/15/android-app-signing/

 

Regex Email validation in c# dot net core

 Use this regex /^_?[a-zA-Z0-9]([a-zA-Z0-9]*[._+-])*[a-zA-Z0-9_]+@(?!-)[A-Za-z0-9-]{1,63}(?<!-)(\.(?!-)[A-Za-z0-9-]{1,63}(?<!-))*\.[A-...