• 0 Posts
  • 19 Comments
Joined 1 year ago
cake
Cake day: August 2nd, 2023

help-circle









  • Feels like some of that stuff, like the SSD’s are a bit overkill for a media server. Most of them still use spinning disks to maximize size vs. cost.

    Additionally, the CPU/GPU needs of a media server are pretty minor, unless you need to transcode on the fly, and even then, single streams aren’t very intensive either.

    So unless you’re capping the outgoing bandwidth to multiple external sources, you’re most likely just streaming the video source as-is to the destination, which just needs a stable network stream. If you don’t need to transcode at all, you don’t really even need a GPU on the hardware.



  • I would just write down the steps I would take, just some psudocode. It doesn’t have to work, it just has to make sense in the style of the language you’re talking about.

    import random library  
    import any GUI/display libraries required for the outcome desired
    
    build array of integers [1..52] (or 0..51 if you're being fancy)
    for loop 1..1000
           select random number A 1..52 (or 0..51 if you used that above)
           select random number B 1..52 (or 0..51 if you used that above)
           swap elements in the array A and B
    pop first two elements from array
    decode at display time what the two numbers represent in terms of playing cards
    

    If the test requires more than that, then they’re crazy. The syntax doesn’t matter, just that you can logic yourself through the problem.
    You can use the IDE, google, or whatever to fill in the specifics. If you wanted me to do that in literally any programming language, once the psudocode is done, you just spend an hour or so looking up the details.