1. Microsft Edge and Microsoft Edge for Business .1 Microsft Edge (Personal Profile) MSAL(Microsoft Authentication Library) using sessionStorage, localStorage, and Cookie .2 Microsoft Edge for Business (Business Profile) AAD ( Azure Active Directory ) using third party cookies and localStorage edge://settings/content/cookies msalInstance = new msal.PublicClientApplication(msalconfig); 코드가 Chrome에서는 작동하지만 Edge for Business에서는 작동하지 않는 경우 .1 […]
Read moreClass class A Object a = Instance = A() class (static) variable Instance varialbe in the __init__(self) __private _protected public static variable def __init__(self): instance variable import module from module import function comments To help you and your team to make your code more readable and maintainable. #Single […]
Read more%, { } str_format1 = “%d %x %c” %( 51, “Test”, “J” ) str_fromat2 = “{1} {2} {3}” . format(51, “Test”, “J”) str_format3 = “{firstname} {lastname} {age}”.format(age=51, firstname=”Test”, lastname=”J” ) age = 51 firstname = “Test” lastname = “Jeong” str_format3 = f”{firstnamt} {lastname} {age -1}” print(f”{‘ name ‘:=^20}”) ======= name ======= k_ssn = “710711-1234567” […]
Read moreOperators are special tokens that represent computations like addition, multiplication and division. + : Addition – : Subtraction * : Multiplication / : Division 18 / 4 # 4.5 ** : Exponentiation // : truncated division 9 // 5 # 1 7.0 // 3.0 # 2.0 % : (Integer) […]
Read moreQuery String is a way of passing some extra data to the server with the request, uisng the URL. ?id=101&name=iPhone if ( context.Request.Query.ContainsKey(“id”) && context.Request.Query.ContainsKey(“name”) ) { string id = context.Request.Query[“id”]; string name = context.Request.Query[“name”]; […]
Read more1] How to publish an ASP.NET Core project? $ dotnet publish -c Release -o /var/www/html $ sudo systemctl restart htmlaspnet.service 2] MVC is a wide-used architectural pattern that separates an application into three district components to manage complexity and promote code reuse. Model presents your data and business logic. It is consisted of classes […]
Read moreregister_nav_menus _sidebar _rest_route 1. define( ‘ABSPATH’, __DIR__. ‘/’ ); 2. if( file.exist( ABSPATH. ‘wp-config.php’ ) ) { require_once ABSPATH. ‘wp-config.php’; } 3. $GLOBALS[ ‘wp’ ] = new WP() [‘wp_rewrite’] = new WP_Rewrite() [‘wp_the_query’] = new WP_QUEUE() $GLOBALS[‘wp_locale’] = new WP_Locale(); 4. $local = get_loade(); $local_file = WP_LANG_DIR . “/$local.php”; if( file_exists( $theme. ‘/functions.php’) […]
Read more