Skip to main content

Posts

Learn CSS selectors with examples that are used in everyday life of web ...

Learn :empty, :active, :checked, :focus in CSS

Beautiful CSS for curved lines

 CSS for the following image <style> .container{   height:100vh;   width:100%;   background:#000;   }   .in{     margin: auto;    position: absolute;     top: 0;     left: 0;     right: 0;     bottom: 0;   }   .inner{   height:180px;   width:180px;   background-image: linear-gradient(to bottom,yellow 20px,#000 20px);   background-size:100% 41px;   }   .inner1{   height:200px;   width:180px;   background:#000;   border-radius:0 100% 100% 0;   margin-left:10%;   }   .inner2{   height:200px;   width:180px;   background:#000;   border-radius:100% 0 0 100%;   margin-right:10%   } </style> <div class="container">   <div class="in inner">   </div>   <div class="in inner1">   </div>   <div class="in inner2">   </div...

Change detection of input parameter in angular

We can find change detection of input parameter as follows:  @ Input ()  set   showLoader (value :   boolean ) {     this._showloader  =  value;      if  (this.showLoader) {       this.showspinner. showloader (this.viewContainerRef, this.tabCounter);     }      else  {       this.showspinner. hideLoader (this.viewContainerRef, this.tabCounter);     }   }    get   showLoader () :   boolean  {      return  this._showloader;   }

Get Time zone in sql server

Do you want to get timezone in sql server Here is the script DECLARE @TimeZone VARCHAR ( 50 ) EXEC MASTER .dbo. xp_regread 'HKEY_LOCAL_MACHINE' , 'SYSTEM\CurrentControlSet\Control\TimeZoneInformation' , 'TimeZoneKeyName ' , @TimeZone OUT SELECT @TimeZone

Solution to find the largest unique string in given string

There is a problem like we need to find the largest distinct string in a given string. For example, there is a string - ababa and the largest distinct string in it such that no two adjacent characters are same is "ababa" Second example - we are given string - aaaaac so largest distinct string is - "ca" How to find the solution for this Solution : We need to create a vertical array for this - character by character Like a string is given - "abccdderteerveedsseqwsaxztybb" So we will create a vertical array as below - a b cc  d   d   e   r   t   ee    r    v    ee     d     ss      e      q      w      s      a      x      z      t      y      bb Whenever there is a repeated word we need to put that in same line else to...

Enable Audit Record in Sql server

Command in Sql Server Master database USE MASTER GO CREATE SERVER AUDIT audit_test                                           TO FILE (FILEPATH = 'G:\') GO CREATE SERVER AUDIT SPECIFICATION audit_test_spec       FOR SERVER AUDIT [audit_test] ADD (FAILED_LOGIN_GROUP), ADD (SUCCESSFUL_LOGIN_GROUP) WITH (STATE=ON) GO Now check in Security-> Audit -> Audit log