Author Archives: j5423

I found a good article

https://www.avclub.com/bob-dylan-christian-albums-revisited Bob Dylan remembers the exact moment Jesus Christ entered his life in a way he could not ignore. The physical and emotional tolls of the road had proved exhausting on his 1978 tour. On one particularly draining night in … Continue reading

Posted in Uncategorized | Leave a comment

Start a web server with Python in seconds

python -m http.server 5500 So you don’t need to open your html file directly in browser and avoid CORS issues.

Posted in Uncategorized | Leave a comment

Use the “Show Paint Flashing” tool

Posted in Uncategorized | Leave a comment

Observer and useObserver

Observer is used to replace useObserver and can work with function components. Compare these two code snippets: At first used the second code block and it worked. Then I replaced the “userObserver” with “Observer” and it throwed error. It takes … Continue reading

Posted in Uncategorized | Leave a comment

How to add a symbolic link with Powershell

I tried to add a symbolic link with Git Bash but it didn’t work. It basically just copied the files into a new folder. Then I found this Powershell command:

Posted in Uncategorized | Leave a comment

How to update powershell execution policy

Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser

Posted in Uncategorized | Leave a comment

How to delete a large folder under windows

One thing you want to note is that if you have a symbol link in the directory you want to delete, the above command will delete the referenced resources as well. You should delete that link first before you run … Continue reading

Posted in Uncategorized | Leave a comment

PnPSearch webpart bundle issue

If you are doing “gulp bundle –ship” and exited with code 1, you can try “gulp bundle –ship –warnoff”.

Posted in Uncategorized | Leave a comment

Smart way to expand dates for a month in SQL serve query

with D as (select distinct CreationTime MDATE from [jwtest].[System.Activities.DurableInstancing].[InstancesTable]where CreationTime>=’2023-02-01′ and CreationTime<‘2024-02-01’UNION ALLSELECT dateadd(d, 1, MDATE) MDATEFROM D where datediff(m, MDATE, dateadd(d, 1,MDATE))=0)select MDATE from D

Posted in Uncategorized | Leave a comment

How to loop through JSON if it is not an array but an object

You can use Object.values, Object.keys, and Object.entries. When you are using firebase databases, the keys are automatically generated and you are not interested in them, so you can just use Object.values and use map to loop through them.

Posted in Uncategorized | Leave a comment