Guys, pengen bahas cloud ni. Enaknya bikin tutorial apa ya?
Show more
2 years ago • Manusia Setengah Chi Kuadrat
Guys, pengen bahas cloud ni. Enaknya bikin tutorial apa ya?
0
0
2 years ago • Manusia Setengah Chi Kuadrat
Pengen menghidupkan playlist ngobrol2 lagi. Rencana nya pengen buat QnA kuliah IT di luar negeri. Adakah yang ingin ditanyakan? Silahkan drop di kolom komentar ya 😊
Cara dapat beasiswa gimana bang?
Bang, inggrisnya harus jago gak?
Bisa dapat jodoh bule?
Isi sendiri di kolom komen ya hehe
13 votes
0
0
2 years ago (edited) • Manusia Setengah Chi Kuadrat
#MiniZinc #GlobalCardinality 1. global_cardinality(x, v, c) This constraint ensures that each value v[i] appears exactly c[i] times among the variables in the array x. Example: Suppose we have an array x = [x1, x2, x3, x4] and we want the value 1 to appear exactly 2 times, and the value 2 to appear exactly 2 times as well. We could define v = [1, 2] and c = [2, 2]. The constraint global_cardinality(x, [1, 2], [2, 2]) would be satisfied by solutions like x = [1, 1, 2, 2] or x = [2, 1, 1, 2]. 2. global_cardinality_closed(x, v, c) This version of the GCC constraint is similar to global_cardinality but it also ensures that only the values listed in v appear in x. It's a "closed" version meaning that no other values except those specified are allowed. Example: Given x = [x1, x2, x3, x4], to enforce that only the value 1 appears exactly 2 times and the value 2 appears exactly 2 times, with no other values allowed, we would use global_cardinality_closed(x, [1, 2], [2, 2]). In this case, x = [1, 1, 2, 2] is a solution, but x = [1, 1, 2, 3] is not, because the value 3 is not allowed. 3. global_cardinality_low_up(x, v, lo, hi) This constraint allows for a range (specified by lo and hi) for how many times a value v[i] can appear in the array x. Example: If we want the value 1 to appear 1 to 3 times and the value 2 to appear 2 to 4 times in the array x = [x1, x2, x3, x4, x5], we could define v = [1, 2], lo = [1, 2], and hi = [3, 4]. The constraint global_cardinality_low_up(x, [1, 2], [1, 2], [3, 4]) would be satisfied by x = [1, 2, 2, 1, 2]. 4. global_cardinality_low_up_closed(x, v, lo, hi) This constraint combines the "closed" aspect of global_cardinality_closed with the flexible cardinality ranges of global_cardinality_low_up, ensuring that only the specified values appear in x, each within their respective ranges. Example: For an array x = [x1, x2, x3, x4, x5] where we want only the values 1 and 2 to appear, with 1 appearing 1 to 3 times and 2 appearing 2 to 4 times, we would use global_cardinality_low_up_closed(x, [1, 2], [1, 2], [3, 4]). A valid solution could be x = [2, 1, 2, 1, 2], ensuring no other values are present and each value appears within its specified range.
0
0
2 years ago (edited) • Manusia Setengah Chi Kuadrat
#Jupyternotebook #Error If you get error like: ImportError: cannot import name 'PLUGINS' from 'mistune' or another error that related about mistune or if you try to open the jupyter notebook but you get 500: internal server error. Then you can try to upgrade the jupyter-server using this command: !pip install --upgrade jupyter-server
0
0
2 years ago (edited) • Manusia Setengah Chi Kuadrat
#HTML #Jupyternotebook #Googlecollab #Error Sometimes jupyter notebook or google collab produce weird error when we try to export our notebook into html format. This is common error: [95](https://github.com/mrdbourke/pytorch-...) metadata['widgets'][WIDGET_STATE_MIMETYPE]['state'] if [96](https://github.com/mrdbourke/pytorch-...) KeyError: 'state' While at first, I thought that it comes from ipywidget library, but even after I remove the ipywidget, this eror still can occur. Here is the step to solve thats problem: 1. Open .ipynb file in notepad 2. Copy file JSON contents 3. Go to https://jqplay.org/ 4. Paste contents into JSON field 5. Copy/paste del(.metadata.widgets) into filter pane (Thanks @hs211216) 6. Copy result from right Result field 7. Paste into original .ipynb file 8. Save file and exit It should work now Source: ndjhartman in https://github.com/jupyter/nbconvert/...
0
0
3 years ago (edited) • Manusia Setengah Chi Kuadrat
#UTM #vm #linux #macos #copyclipboard Ingin copy paste text dari host os ke guest os (saya pakai linux lubuntu as guest os): 1. Centang enable share clipboard di UTM setting -> tab sharing 2. Run apt-get install spice-* di terminal 3. Reboot
0
0
3 years ago • Manusia Setengah Chi Kuadrat
#Linux Cara run linux command ketika reboot secara otomatis dengan crontab 1. Ketik crontab -e 2. Scroll down ke baris paling bawah 3. Ketik @reboot xxxx dimana xxxx adalah linux command kamu 4. Jangan lupa save dan exit dari "crontab -e" 5. Lakukan reboot
0
0
3 years ago (edited) • Manusia Setengah Chi Kuadrat
#OBS #RecordingProblem #RecordingSolution Bagi yang record screen di OBS studionya tidak full screen maka bisa lihat ini: https://www.youtube.com/watch?v=7RgdQ...
0
0
3 years ago (edited) • Manusia Setengah Chi Kuadrat
#TechEvent #JuaraGCP Juara GCP is coming bro: https://events.withgoogle.com/juaragcp8/
2
0
4 years ago • Manusia Setengah Chi Kuadrat
Quick Tips #11: .DS_Store (Desktop Services Store) adalah file berisi informasi setiap file dan jendela pada sebuah folder di Finder. File ini sangat menyebalkan ketika kita bekerja dengan git dia akan ikut ter-commit, setelah sekian lama mencari caranya untuk mengabaikan dia, maka saya menemukan step-step ini: 1. Buat file .gitignore 2. Masukkan manual ke .gitignore dengan cara mengetik .DS_Store atau dengan perintah terminal Create echo .DS_Store >> .gitignore 3. Setelah itu, kedepannya .DS_Store akan diabaikan ya, tapi yang sekarang sudah terlanjur ada di folder kita atau di github perlu dihapus juga dengan script: find . -name ".DS_Store" -delete Nah selesai. Memang file-file kecil tersembunyi kayak gini kadang bikin angry-angry wkwk
0
0