Jarxi

Bolderdash

[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 airpods Change /etc/bluetooth/main.config does not fix the issue. Instead, it makes the whole bluetooth driver disappear. solution Boot into windows if......

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

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

[胡言乱语] 山川异域,风月同天

长江日报其实没说错啊,人家日本是别国,当然可以写山川异域,日月同天。我们自己人支援武汉应该怎么喊? 我抛砖引玉啊:“硕鼠硕鼠 无食我黍” 不敢高声语,恐惊天上人。 鹭鸶腿上劈精肉,蚊虫腹内刳脂油 遍身罗绮者,不是养蚕人 官仓老鼠大如斗,见人开仓亦不走。健儿无粮百姓饥,谁遣朝朝入君口? 刑不上大夫,礼不下百姓 庙堂之上,朽木为官,殿陛之间,禽兽食禄 使天下之人,不敢言而敢怒;独夫之心,日益骄固......

[VR] How to connect Oculus Rift to Unity

Learn from Oculuc ...
VR

[ubuntu] Linux install Netease

Learn from source ...

[Hexo] Hexo commands

1.Hexo needs two repos, one for save files, one for display public website 2.Before push to the repo that save files, need to delete .deploy.git 3.git push to save 4.git generate, to regenerate pub......

[ubuntu] Windows & Ubuntu dual boot e.g. Aurora R8

Learned from the Medium post Set RAID ON to AHCI, then reinstall windows (without reinstall, windows is not going to boot. Without AHCI, ubuntu is unable to find windows system. Grub will not be a......

[胡言乱语] 武汉疫情

武汉八名通报疫情医生被抓 从美国发现第一例疫情到现在已经一周,感染人数为8名。相比之下,国内确诊病例14423,且每日仍成上升趋势。 这个12月份就已经确认的新型冠状病毒,硬生生拖了一个月,拖出了武汉封城,拖出了无数家庭的分崩离析。如果12月确诊那天就引起重视,是否今日,全国人民还在欢欢喜喜过节。 什么样的政府,会将8名医生的警告当做谣言。什么样的民众,会支持这句"不信谣不传谣&q......