I’m a technical kinda guy, doing technical kinda stuff.

  • 0 Posts
  • 55 Comments
Joined 1 year ago
cake
Cake day: September 27th, 2023

help-circle
  • I don’t think there’s anything commercially available that can do it.

    However, as an experiment, you could:

    • Get a group of photos from a burst shot
    • Encode them as individual frames using a modern video codec using, eg VLC.
    • See what kind of file size you get with the resulting video output.
    • See what artifacts are introduced when you play with encoder settings.

    You could probably/eventually script this kind of operation if you have software that can automatically identify and group images.



  • If you’re interested in the systems behind Apollo, go find and read “Digital Apollo”.

    It goes all the way through the project and describes in good detail everything, how they developed the control systems, the computer hardware, how the software was designed, how they implemented one of the first real computer systems project management, all the interactions between astronauts/test pilots who still wanted to “manually fly the lander”, the political back and forth between competing teams, the whole thing.

    It’s a great read if you have a technical mindset.



  • Usually iterations of:

    “Closed and locked due to duplicate of: (question asked 9 years ago about Visual Studio 2011 and Visual Basic, when you’re using VS code '22 and C#)”

    “This seems like an XY problem, what are you really trying to accomplish?”, after a one thousand word post describing in detail exactly what you are trying to accomplish and the many different reasons why you can’t just use #GENERIC_EVERYDAY_METHOD.

    Either that or the quick and dirty method that I want for a one off data conversion that uses standard libraries is heavily down voted and lost while the elaborate, all-cases-considered, 7-third-party-library-using answer becomes the top result.


  • True. Hence my caveat of “most cards”. If it’s got LEDs on the port, it’s quite likely to signal which speed it is at with those LEDs.

    I haven’t yet come across a gigabit card that won’t do 10Mbit (edit: switches are a different matter) but sometimes I’ve come across cards that fail to negotiate speeds correctly, eg trying for gigabit when they only actually have a 4 wire connection that can support 100Mbit. Forcing the card to the “correct” speed makes them work.


  • in which case I will go one level down, to the calculateExtraCommissions() method.

    In which case you will discover that the calculateExtraCommissions() function also has the same nested functions and you eventually find six subfunctions that each calculate some fraction of the extra commission, all of which could have been condensed into three lines of code in the parent function.

    Following the author’s idea of clean code to the letter results in a thick and incomprehensible function soup.







  • Dave.@aussie.zonetoSelfhosted@lemmy.worldMy homelab had the stupidest outage ever
    link
    fedilink
    English
    arrow-up
    159
    arrow-down
    1
    ·
    edit-2
    2 months ago
    1. Replace CMOS battery.
    2. Get small UPS.
    3. Discover that small UPS’s fail regularly, usually with cooked batteries.
    4. Add maintenance routine for UPS battery.
    5. Begin to wonder if this is really worth it when the rest of the house has no power during an outage.
    6. Get small generator.
    7. Discover that small generators also need maintenance and exercise.
    8. Decide to get a whole house battery backup a-la Tesla Powerwall topped off by solar and a dedicated generator.
    9. Spend 15 years paying this off while wondering if the payback was really worth it, because you can count on one hand the number of extended power outages in that time.
    10. In the end times a roving band of thugs comes around and kills you and strips your house of valuable technology, leaving your homelab setup behind and - sadly - without power. Your dream of unlimited availability has all been for nought.

    Conclusion: just replace the CMOS battery on a yearly basis during planned system downtime.



  • What if I want to buy a cheese sandwich today with BTC?

    A cheese sandwich can remain the same fixed price in dollars for years, with only the relatively slow change in actual value due to inflation.

    I’ve seen BTC swing 10% in 24 hours. Does the cheese-sandwich-maker have to look up the rate this instant and calculate a spot price for me?

    Will they have more or less dollars at the end of the day, when they need to pay their bills and buy more cheese from their suppliers?

    “Just buy cheese from someone who takes BTC”, doesn’t help, it just kicks the can further down the road.

    “Just add a bit of a buffer in the price to take fluctuations into account”, means that I go buy a cheese sandwich with dollars from next door because it’s 50 cents cheaper for the same thing.

    As an investment vehicle, BTC is doing hot laps of the track (with occasional accidents), but until its volatility issues are sorted and it becomes “boring”, it’s not going anywhere as an actual currency.



  • I end up having to play twenty questions with chatgpt. For example, I’ve been asking it for code examples for ffmpeg mpeg4 encoding with C++.

    It will happily spit out completely non-working code, where the core part - feeding image frames to the encoder - works, but it doesn’t initialise or tidy up the encoding afterwards.

    Until I say, “hey this code doesn’t seem to work and creates corrupted files”, and then it’s like, “oh yeah you also need to do a bunch of other stuff, just like this”. Repeat as it slowly adds more and more pieces until finally you end up with something that actually works.

    Or it will happily dream up function names or mix python and C functions, or will refer to older APIs even when I’ve specifically said “use API version x.y” and so on and so forth.

    If I didn’t know enough about the subject already, I’d never be able to tease out the answer. So in a sense it’s a mostly useful reference, but it can’t be relied on to actually and consistently provide a result because it’s all statistics and fuzzy text generation behind the scenes, not actual knowledge.