Jarxi

Blog

[Python] How to Setup Python Env

How to Setup Python EnvUnder project directory, type in terminal 123python3 -m venv envsource ./env/bin/activatepip3 install flask [flask as an example] The first command creates a environment cal......

[Flask] Flask Tutorial

Flask TutorialTutorial with sample project ...

[Elastic Beanstalk] React and Node to Elastic Beanstalk

Deploy React and Node project to Elastic BeanstalkSources:AMS Official docsHow to LogVery good source with sample projectExtra source Important Points tail -n 50 /var/log/web.stdout.log prints last......

[Hexo] How to Use My Hexo

How to Use My HexoSource code repo: BlogWebsite repo: Jarxi.github.io If setting up a new computer, clone the Blog repo is enough.Everytime hexo deploy to Jarxi.github.io and git push to Blo......

[Operating System] Spinlock

1234567891011121314151617struct lock{}void acquire(){ disable_interrupts(); while (test_and_set(&lock, new) == LOCKED) critical section lock = 0}void release()&#......

[C] Initalized struct

12345678910111213141516171819enum mutexstate{ MDESTROYED, MLOCKED, MUNLOCKED};struct kthread_mutex_t{ int mid; enum mutexstate state;};struct{ struct spinlock lock; ......
C

[ubuntu] Bluetooth stopped working after changing /etc/bluetooth/main.config

changed /etc/bluetooth/main.config to connect airpodsChange /etc/bluetooth/main.config does not fix the issue. Instead, it makes the whole bluetooth driver disappear. ......

[胡言乱语] Bridging the gap between experts and decision makers

The Question: Why an Efficient Society Has to be DemocraticI was reading a book called Teaching the Hard History. The book is about how American History on slavery should be taught another way and ......