diff options
author | Hugo Hörnquist <hugo@lysator.liu.se> | 2020-07-26 22:31:32 +0200 |
---|---|---|
committer | Hugo Hörnquist <hugo@lysator.liu.se> | 2020-07-26 22:31:32 +0200 |
commit | 998be848c374997f58b77224620704bca8761de0 (patch) | |
tree | 29d736970d5b56fa94ebd28bc45c60f0f3a311d0 | |
parent | Sun, 26 Jul 2020 22:31:30 +0200 (diff) | |
parent | Sun, 26 Jul 2020 22:30:58 +0200 (diff) | |
download | wiki-public-998be848c374997f58b77224620704bca8761de0.tar.gz wiki-public-998be848c374997f58b77224620704bca8761de0.tar.xz |
Merge remote-tracking branch 'refs/remotes/origin/master'
-rw-r--r-- | .vimwiki_tags | 2 | ||||
-rw-r--r-- | Dator/Ny.wiki | 2 | ||||
-rw-r--r-- | Media.wiki | 26 | ||||
-rw-r--r-- | Pintos.wiki | 24 | ||||
-rw-r--r-- | TaskApp.wiki | 22 | ||||
-rw-r--r-- | Terminal Driver.wiki | 6 | ||||
-rw-r--r-- | Västgöta/webbsida.wiki | 20 |
7 files changed, 99 insertions, 3 deletions
diff --git a/.vimwiki_tags b/.vimwiki_tags index f5bfeac..7939051 100644 --- a/.vimwiki_tags +++ b/.vimwiki_tags @@ -3,4 +3,6 @@ PSU Dator/4.wiki 2;" vimwiki:Dator/4\tDator/4#Pinout PSU Dator/5.wiki 2;" vimwiki:Dator/5\tDator/5#Pinout dressman Kläder.wiki 16;" vimwiki:Kläder\tKläder#Kläder, klädstorlekar, m.m.#Dressmann "Slim Fit" measurements shs+ Lysator.wiki 69;" vimwiki:Lysator\tLysator#shs+ +todo Västgöta/webbsida.wiki 306;" vimwiki:Västgöta/webbsida\tVästgöta/webbsida#Kalender +todo Västgöta/webbsida.wiki 346;" vimwiki:Västgöta/webbsida\tVästgöta/webbsida#Veckbrev mailproxy y+y Lysator.wiki 89;" vimwiki:Lysator\tLysator#y+y diff --git a/Dator/Ny.wiki b/Dator/Ny.wiki index e330e6c..ad64bcf 100644 --- a/Dator/Ny.wiki +++ b/Dator/Ny.wiki @@ -3,7 +3,7 @@ | Moderkort | MSI B450 Tomahawk | 1200 | https://www.prisjakt.nu/produkt.php?p=4894211 | | RAM | God. T. DDR4 2x8GB | _800 | | | CPU | Ryzen 5 3600 | 2400 | https://www.prisjakt.nu/produkt.php?p=5139853 [1] | -| GPU | Radeon RX Vego 56 8GB | 3100 | https://www.prisjakt.nu/produkt.php?p=4639778 | +| GPU | Radeon RX Vega 56 8GB | 3100 | https://www.prisjakt.nu/produkt.php?p=4639778 | | | | | | | RAM | 2 x Vengenance LPX 8GB 2666MHz | | | | (Totalt | | 7500 | | @@ -5,26 +5,47 @@ Teolog == Books == - Player Piano - https://pragprog.com/book/tpp20/the-pragmatic-programmer-20th-anniversary-edition +- lambda the ultimate +- [[http://www.paulgraham.com/onlisp.html|On Lisp]] +- "List Processing in Real Time on a Serial Computer" by Henry Baker +- Haskell from first principles +- The city of ember +- American Gods, Neil Gaiman +- The Disappearing Spoon, Sam Kean +- Hunger games prequel +- The Mythical Man Month +- Lőkar? + - https://www.thedarkweblinks.com/deep-web-books-sites-links/ + - https://www.reddit.com/r/onions/comments/3ya4vi/best_onions_to_get_free_ebooks_and_pdfs/ == Movies == Filmer jag vill eller har sätt, samt möjligen korta recensioner av dem. -=== Wreck it Ralph 2 === -=== Incredibles 2 === +=== * Wreck it Ralph 2 === +Orginalet var bättre +=== * Incredibles 2 === +Bra, men jag är inte 6 längre. === Juno === Om gravid tonåring === Liar, Liar === +=== Black Mirror === === The Act === TV-Serie, HBO Åtminstånde ett avsnitt handlar om den där tjejen som psykologikst misshandlas av sin mor. +=== HG Wells (War of the Worlds (?), The Time Machine) === +film och bok? + === American ultra === === The Princess Bride === === Last Action Hero === === Metropolis === +=== Gravity === +=== Schindlers List === +=== Fight Club === == Spel == Olika (dator-) spel, troligen en lista på sånna jag vill köra men inte @@ -42,3 +63,4 @@ har kört. === Switch === - [ ] Dead Cells +- [ ] Bloodstained diff --git a/Pintos.wiki b/Pintos.wiki index 05f6d26..feddc40 100644 --- a/Pintos.wiki +++ b/Pintos.wiki @@ -96,6 +96,7 @@ void barrier( void ) } }}} +*2 poäng* 2. @@ -127,6 +128,8 @@ counter to hit 2, which it never will. | increment counter | | 0 + 1 | | store counter | | 0 + 1 | +*2 poäng* + 3. Today, many processors offer some type of atomic operation(s). Can you use here an atomic fetch_and_add operation instead of the mutex lock to guarantee @@ -150,6 +153,8 @@ void barrier( void ) A fetch and add intstruction should behave just as our above example with a lock around the modification. +*2 poäng* + 4. Suggest a suitable way to extend the (properly synchronized) code from question 2 to avoid busy waiting. Show the resulting pseudocode. @@ -177,6 +182,8 @@ void barrier( void ) } }}} +*1 poäng* + 5. Consider the following (Unix) C program. @@ -198,6 +205,8 @@ void barrier( void ) 3 +*1 poäng* + 6. Every process is associated with a number of areas in memory used to store the @@ -213,6 +222,8 @@ void barrier( void ) | The memory used to store a local variable declared in a function | stack | | | | +*3 poäng* + 7. Give an example of a situation (table with jobs) where the SJF @@ -254,6 +265,10 @@ wait for all the shorter processes. Giving the following wait times. | 4 | 1 | Which is an average of ≈ 250 time units. Which is significantly lower than 1000. +*.5 poäng* + *Comment*: the idea is right, but calculated the waiting time instead of turnaround + + 8. Banker's algorithm is a deadlock [detecting] algorithm. Freedom from deadlocks @@ -262,6 +277,7 @@ only so-called [safe] states will be reached by checking every resource allocation request. If a resource allocation leads to an undesired state, the request is [rejected]. +*1.5 poäng* == 9. Explain how paging supports sharing of memory between processes. == @@ -274,6 +290,8 @@ into memory for each process (except the smaller memory usage). Memory pages can also manually be mapped into multiple processes (e.g. mmap), and then be used as a shared data area. +*1 poäng* + 10. Explain why page faults occur, under what circumstances and what happens after. Describe the set of events step by step, considering also the @@ -284,3 +302,9 @@ and then be used as a shared data area. A page fault occurs when a process attempts to access memory in a currently unmapped page. +*1 poäng* + *Comment*: it is right, but missing more information on why do + they occur and when. Missing the second part ( handling of page + faults) completely. + + diff --git a/TaskApp.wiki b/TaskApp.wiki index f356f41..4b550eb 100644 --- a/TaskApp.wiki +++ b/TaskApp.wiki @@ -1,3 +1,4 @@ += Part 1 = notation: @@ -51,3 +52,24 @@ create table updates ( title text not null, body text ); + += Part 2 = +[ ] Possibly database, with sepparate frontend + I want multiple frontends. + The goal would be to have easy access from + the notes anywhere, be it a terminal, a web + browser or a smartphone. + I probably want the terminal based to act + something like a mix between mutt and git + commit trees. + - Vim Frontend + Probably a bad idea. So much of the time + would be spend converting between the text + file and the database spec. + - Curses based + Something like mutt +- overview + I want a calendar view, even if the program is + an agenda manager in its core. + += Part 3 = diff --git a/Terminal Driver.wiki b/Terminal Driver.wiki index 8cced3c..1e26b27 100644 --- a/Terminal Driver.wiki +++ b/Terminal Driver.wiki @@ -19,6 +19,11 @@ och PDF. - https://lwn.net/images/pdf/LDD3/ch18.pdf +== Device-träd == +Barn-nod kan få access till sin förälder, eller vice versa? +Därifrån få tag på device-enheten. + + == Skärm == === `GTC-16041` === - [[https://manualzz.com/doc/17344723/hebei-jiya-electronics-gtc-16041-tr6noc--75-512-11-|Möljgt datablad]] @@ -191,3 +196,4 @@ compatible field $ fdtdump /boot/bcm2708-rpi-b-plus.dtb $ dtc -I dts -O dtb -o ov.dtbo overlay.dts }}} + diff --git a/Västgöta/webbsida.wiki b/Västgöta/webbsida.wiki index fb7a872..0752425 100644 --- a/Västgöta/webbsida.wiki +++ b/Västgöta/webbsida.wiki @@ -14,6 +14,8 @@ - [[#Kalender#Events Manager|Events Manager]] - [[#Kalender#Events Calendar|Events Calendar]] - [[#Kalender#Booking Calendar|Booking Calendar]] + - [[#Veckbrev mailproxy|Veckbrev mailproxy]] + - [[#Veckbrev mailproxy#Några resurser|Några resurser]] = Server = @@ -301,6 +303,9 @@ All kod på den här sidan är manuellt inklippt. Skillnader från det som faktiskt körs kan finnas. = Kalender = +:todo: + +Nuvarande har problem https://git.hornquist.se/vg-cal @@ -336,3 +341,18 @@ Med tillägget Booking Manager Ser bra ut, men har inte heller stöd för upprepande events. Påstår sig ha möjlighet att importera ICS strömmar, men verkar skapa en sepparat bokning då. + += Veckbrev mailproxy = +:todo: + +Veckbrev bör automatiskt publiceras på webbsidan då de skickas till +listan... Uppnås troligen enklast genom att lägga till +publish@vastgota.lysator.liu.se (eller liknande) på listan, och låta +servern fånga upp det. + +==== Några resurser ==== +- https://codex.wordpress.org/Post_to_your_blog_using_email +- https://developer.wordpress.org/reference/functions/wp_insert_post/ +- https://github.com/TheFox/smtpd + + - [X] Läggs `[Västgöta Nation]` automatiskt till i brevhuvud? NEJ |