Monday, June 20, 2022

bootstrap footer always bottom

<div class="d-flex flex-column min-vh-100">
<footer class="mt-auto earth">
</footer>
</div>

Thursday, June 9, 2022

Git Change Repo

both are Same (Set new origin)

git remote set-url origin https://github.com/123123.git

git branch -M main

git push -u origin main

-----------------


git remote rm origin

git remote add origin https://github.com/123123.git

git branch -M main

git push -u origin main


------------------


after git push

git tag v1.0.1

git checkout v1.0.1


firebase login:use <email>



Tuesday, May 31, 2022

Change Firebase Project

  1.  firebasesrc change to correct firebase project
  2. Enable Firestore (set region asiasoutheast1)
  3. Try to Deploy First (must blaze project)

firebase login:add
firebase login:list
firebase login:use


change another login and deploy

Wednesday, May 25, 2022

Git Replace without MR


 https://www.nickang.com/2017-09-30-replace-git-branch-code/

Monday, September 20, 2021

POSTMAN Running

Running and store the result to Environment



  • Runner to Run CSV file 
  • In the collection, click "Run Button"

  • This how you put the Body mapping to csv file.
  • Careful the ""
  • Import the CSV and run.
  • can be json file too
x

Sunday, June 14, 2020

C# Interview questions

What is serialization?
When transport an object through a network, then we have to convert the object into a stream of bytes. The process of converting an object into a stream of bytes is called Serialization.
Deserialization is the reverse process of creating an object from a stream of bytes.
Can we use "this" command within a static method?
We can't use 'This' in a static method because we can only use static variables/methods in a static method.
What is the difference between constants and read-only?
Constant variables are declared and initialized at compile time. The value can't be changed afterward. Read-only is used only when we want to assign the value at run time.
What are sealed classes ?
We create sealed classes when we want to restrict the class to be inherited. Sealed modifier used to prevent derivation from a class. If we forcefully specify a sealed class as base class, then a compile-time error occurs.
What is an object pool in .NET?
An object pool is a container having objects ready to be used. It tracks the object that is currently in use, total number of objects in the pool. This reduces the overhead of creating and re-creating objects.
Object Pooling allows objects to keep in the memory pool so the objects can be reused without recreating them.
Use the Factory pattern for this purpose. which will take care of the creation of objects.If there is any object available within the allowed limit, it will return the object, otherwise, a new object will be created and give you back.
What are delegates in C# and the uses of delegates?
Is an abstraction of one or more function pointers 
You can treat a function as data. 
It allow functions to be passed as parameters.
Why Do We Need Delegates?
Callback is to handle button-clicking.
is a solution for situations in which you want to pass methods around to other methods.
You do not know at compile time what this second method is. That information is available only at runtime, hence Delegates are the device to overcome such complications.
What is a Virtual Method in C#?
A virtual method is a method that can be redefined in derived classes. A virtual method has an implementation in a base class as well as derived the class.
The overriding method also provides more than one form for a method. Hence, it is also an example of polymorphism.



Monday, November 26, 2018

Redis Cache Test in Local Host

port : 6379
- In Local, for Redis, need to create a Redis Server to debug:
-Download server: https://github.com/MicrosoftArchive/redis/releases version 3.2.1
-Unzip on a directory  (for example C:\Program Files\RedisServer 5.0)
- cd C:\Program Files\RedisServer 5.0
- redis-server --service-install redis.windows-service.conf --loglevel verbose    ßinstall service
- redis-server --service-start  ß start Service
- redis-cli.exe ßrun client to check keys (get, set, delete)
-Change in app.config ip for Redis (msHost) with 127.0.0.1