This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2D rect making using workspace coordinate so padding unit is not pixel |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1. Add this line to dockerfile | |
EXPOSE 8080 | |
2. Use -p 8080:8080 for docker run | |
3. Allow network when windows popup permission dialog. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1. Install following nvidia docker document, no need their image | |
2. Build image with ENV NVIDIA_DRIVER_CAPABILITIES all or set it while run |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-tune hq -cq 19 -qp 19 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Go to C:\Program Files\Unity\Hub\Editor\<unity version>\Editor\Data\PlaybackEngines\AndroidPlayer | |
Open Property of SDK folder | |
Open Securty | |
Select Users to change permission | |
Grand full control. | |
Apply | |
OK |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pygame | |
import time | |
# Initialize Pygame | |
pygame.init() | |
# Set the window size | |
size = (640, 480) | |
# Create the window |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From Android Q, an application cannot launch other application if it does not satisfy these update: | |
https://developer.android.com/guide/components/activities/background-starts |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
https://secure.jadeworld.com/JADETech/JADE2020/OnlineDocumentation/content/resources/encyclosys2/jadetimezone_class/ianawindowstimezonemapping.htm |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1. Find your good commit id : git log | |
2. git rebase --exec 'git commit --amend --no-edit -n -S' -i <your latest good commit id> | |
3. just save and quit when prompted | |
4. git push origin <branch name> --force |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Dependencies: Python 3 | |
# pip install av pillow | |
import av | |
import sys | |
def h265ToJpg(): | |
inputFileName = "rawStream-1-20220519-132954.hevc" | |
container = av.open(inputFileName) | |
print("container:", container) | |
print("container.streams:", container.streams) | |
print("container.format:", container.format) |
NewerOlder