การติดตั้งของ Ubuntu, Debian น่าจะคล้าย ๆ กันเปลี่ยนแค่
dnfเป็นapt
sudo dnf remove "wine*"To install a font in WSL, follow these steps:
Check Font Location: Confirm that the font file (e.g., VictorMono.ttf) is located in a directory accessible from your WSL instance. You can copy the font file to your WSL home directory for simplicity.
Install Font: You can use the fc-cache command to update the font cache in WSL and make the font available. Open a terminal in your WSL instance and run the following commands:
sudo cp /mnt/c/path/to/VictorMono.ttf /usr/local/share/fonts/
| [ | |
| { | |
| "zipCode": "10100", | |
| "subDistrictList": [ | |
| { | |
| "subDistrictId": "100801", | |
| "districtId": "1008", | |
| "provinceId": "10", | |
| "subDistrictName": "ป้อมปราบ" |
If you develop against of containerized mongo instance using the official Docker Mongo image and make attempt to use transactions, you will most probably face the following error:
com.mongodb.MongoCommandException: Command failed with error 20 (IllegalOperation): 'Transaction numbers are only allowed on a replica set member or mongos' on server localhost:28017. The full response is {"ok": 0.0, "errmsg": "Transaction numbers are only allowed on a replica set member or mongos", "code": 20, "codeName": "IllegalOperation"}
This single docker-compose.yaml will solve the problem by creating replica set out of single node.
If you're trying to install the postgresql gem pg and it is failing with the following error message:
Installing pg 1.2.3 with native extensions
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
current directory: ~/.rbenv/versions/3.0.0/lib/ruby/gems/3.0.0/gems/pg-1.2.3/ext
~/.rbenv/versions/3.0.0/bin/ruby -I ~/.rbenv/versions/3.0.0/lib/ruby/3.0.0 -r ./siteconf20210125-97201-pycpo.rb extconf.rb
| <?php | |
| /** | |
| * Overrides original SoftDeletes::runSoftDelete method to include observer changes in `deleting` event. | |
| * @see SoftDeletes | |
| * @uses SoftDeletes::runSoftDelete() | |
| */ | |
| namespace App\Traits; |
See the following links for further updates to Github Desktop for Ubuntu. These are official instructions. (also mentioned by fetwar on Nov 3, 2023)
For the sake of "maintaining the tradition" here is the updated version.
| var deferredPrompt | |
| // Event นี้จะเกิดขึ้นตอนที่ Banner จะโผล่ขึ้นมา | |
| window.addEventListener('beforeinstallprompt', e => { | |
| // บังคับไม่ให้ Banner ของ Browser ทำงาน | |
| e.preventDefault(); | |
| // เก็บตัวแรก event ไว้ใช้ต่อ | |
| deferredPrompt = e; | |
| // https://gomakethings.com/check-if-two-arrays-or-objects-are-equal-with-javascript/ | |
| var isEqual = function (value, other) { | |
| // Get the value type | |
| var type = Object.prototype.toString.call(value); | |
| // If the two objects are not the same type, return false | |
| if (type !== Object.prototype.toString.call(other)) return false; | |
| // If items are not an object or array, return false |