dinsdag 16 mei 2023

Update to Angular 16 (or other new Angular)

ng update

... and follow the instructions listed.

npm uninstall -g @angular/cli
npm install -g @angular/cli
or
npm install -g @angular/cli@17.2
See https://update.angular.io/?v=16.0-17.0

npm cache clean --force

ng update   (gives information on how to update)

Fasm "Hello World!" in x64.

format pe64 console
entry start

STD_OUTPUT_HANDLE       = -11

section '.text' code readable executable

start:
        sub     rsp,8*7         ; reserve stack for API use and make stack dqword aligned
        mov     rcx, STD_OUTPUT_HANDLE
        call    [GetStdHandle]
        mov     rcx,rax
        lea     rdx,[message]
        mov     r8d,message_length
        lea     r9,[rsp+4*8]
        mov     qword[rsp+4*8],0
        call    [WriteFile]
        mov     ecx,eax
        call    [ExitProcess]

section '.data' data readable writeable

message         db 'Hello World!',0
message_length  = $ - message

section '.idata' import data readable writeable

        dd      0,0,0,RVA kernel_name,RVA kernel_table
        dd      0,0,0,0,0

kernel_table:
        ExitProcess     dq RVA _ExitProcess
        GetStdHandle    dq RVA _GetStdHandle
        WriteFile       dq RVA _WriteFile
                        dq 0

kernel_name     db 'KERNEL32.DLL',0
user_name       db 'USER32.DLL',0

_ExitProcess    db 0,0,'ExitProcess',0
_GetStdHandle   db 0,0,'GetStdHandle',0
_WriteFile      db 0,0,'WriteFile',0  

maandag 15 mei 2023

Add authentication token to .npmrc

When you need to authenticate to a Nexus repository, than you must add an authentication token to .npmrc
Do it this way:
npm login --auth-type=legacy

However, if you have several repositories, do it this way
Doe dat als volgt:
npm login --scope=@scopeprefix --auth-type=legacy

Login, and the authentication token will be added to your .npmrc which is located in your user directory.

Also do:
npm adduser --auth-type=legacy

donderdag 11 mei 2023

woensdag 10 mei 2023

Blink with css

 .alerts-border {
    animation: blink 1s;
    animation-iteration-count: 10;
}

@keyframes blink { 50% { background-color: red; }  }
<div class="alerts-border" style="height:40px;width:40px">

</div>