Alts (mostly for modding)

@sga013@lemmy.world

(Earlier also had @sga@lemmy.world for a year before I switched to lemmings)

  • 20 Posts
  • 359 Comments
Joined 3 months ago
cake
Cake day: January 16th, 2025

help-circle
  • sgaMtoUplifting News@lemmy.worldPeople can be good
    link
    fedilink
    English
    arrow-up
    3
    ·
    edit-2
    23 hours ago

    Sorry for hijacking this comment.

    In many places, especially with big hospitals (or universities, or some big establishment) - Most of them have some form of blood donation camps, especially around major holidays (often the national ones).

    Please donate blood - you can safely do it 3-4 times a year, and be completely healthy (you can do once in roughly 90 days for males, and 110ish days for females, but please confirm this with your general physician). But even if half the people (even a tenth for some countries) do once per year, we will not have a blood crisis.

    And you can always register for organ donation or organ matching/swapping (depending on jurisdiction) - after you are dead, or if you are terminally ill, but have some organs (for example - eyes, kidneys, liver, etc) which function normally, can be donated. Often this is as simple as getting a registeration done, and then just maintain a card with your health records. In case of death or otherwise, most hospitals will then arrange for grafting and storage of organs themselves, with little to no headache for patients family. And in many places, the organ donor is then given some kind of state honor. This also helps reduce organ trafficing, and abuse of poor people who sometimes have/forced to sell their organs.


  • I was once renting a room, where due to part my lack of cleanliness (basically not throwing out garbage frequently enough, i waited for a week or two) and my rooms window being right above a flower bed (and i kept the windows open for the most time) and my room being moist for the most time (i dried clothes in my room) I got lots of small red bugs (hundreds or thousands). they did not bite, but they were annoying. I had a few bad weeks, so i also did not care about them at the time.

    To get rid of them, I had a multi part strategy, basically 1 was trying to physically force them out - by raising the room temp to high, and cycling window open and close, and also cleaning out my room better (taking garbage every 2 or 3 days), worked partially well (maybe more than half gone). Other was to use a chemical irritant (i used a mix of dettol and water) to spray on their usual spots, and llet them be dry otherwise, and stopped drying clothes inside. Once I got to getting rid of them, I got it in a week or so.

    Also where i live currently, it is musquitos. They are everywhere where I live, kinda a public health issue which is largely outside our scope. I cant really do much against them. General advice is to keep surroundings clean and minimise their breeding spots. My folks do try to kill them with the zapping rackets, but that is almost lost cause.


  • sgatomemes@lemmy.worldHappy Easter!
    link
    fedilink
    English
    arrow-up
    2
    arrow-down
    4
    ·
    2 days ago

    my take away was never hating person in photo (that part was just in case we are hating the person in photo, but my second para in the original comment is what i got - old relegious person is rude to service worker). I have not experienced it, so i can not relate, sorry.


  • In our home we have “coolers” (the big kind with metal bodies and large water storage, and padded, perforforated walls). It is outside our house and blowing air inwards. We try our best to seal the area around window with lots of cardboard, fibre sheet and thermocol, and then depending on time of day, confining the space (by closing other doors in home). It is not AC cool, nor is it really effictive when it is hot (50+ C) outside, but other time it works fine. In the nights it does a pretty good job (good enough that i have caught a cold right now). When we do not want the noise, we just run the water pump, so occasional winds from outside come and are cooled by the running water. Water usage is slightly high (we usually require one filling a day, which would be 40-50 litre water i guess), but we sometimes keep cycling between pump on and off to conserve some more water. If noise is a big concern to you, you can try to basically cover whole of the front (with some sound insulating material, like fibre sheets(the polymer ones often found in packaging)) and then make some side channels for air. Or something more simple is using lighter curtains just in front of cooler. This will break the flow of air, but if you have sealed rest of the are, so air can’t leak elsewhere, then you would get air breaking its flow and flow around the obstacles and reach you, but not as loud. We do something similar, we have not covered fully, we have left partially open (60 % i guess from the middle) but to cover noise, we partially close it by window (which is kept in place by curtain over it) so we get a tighter channel of air (as it bends around the edge of window). If you stay in the channel, you get large air flow, but more noise, but if you move away from it (from my casse, even by a foot) then the noise is cut in half. The rest of the room is now cooled by this air current mixing with rest of room air. If room is large, t=you may also have to turn your ceiling fan on for this, but we do not have to.

    In really peak summers (and peak hours of the day), we use ac for few hours (1-1.5 or 2) and when it gets cooler outside, fall back to cooler.



  • sgatomemes@lemmy.worldHappy Easter!
    link
    fedilink
    English
    arrow-up
    3
    arrow-down
    11
    ·
    2 days ago

    I am sorry for your experience, but generalisation is what i did not like. I am not in us, or a place where christianity is the major relegion. The behaviour may be region specific, but still, this seems wierd to me.



  • sgatomemes@lemmy.worldHappy Easter!
    link
    fedilink
    English
    arrow-up
    3
    arrow-down
    24
    ·
    2 days ago

    i don’t have high blood pressure, thankss for the concern though

    i know it is a stock photo (did not know, but guessed), but can i still not find it wrong. i think my original point still stays, hating random old people is not fun to me.


  • sgatomemes@lemmy.worldHappy Easter!
    link
    fedilink
    English
    arrow-up
    6
    arrow-down
    62
    ·
    2 days ago

    I am not religious, and I am not old, but this does not sit right with me. I don’t know who the person in photo is, but we are “hating” on them just because they look old?

    I understand it is a “meme” and i should laugh at “stereotypical karen” but is not that one of the things that people state they disliked about reddit?



  • sgatoToday I Learned (TIL)@lemmy.caTIL the Hairy Ball theorem
    link
    fedilink
    English
    arrow-up
    1
    arrow-down
    1
    ·
    3 days ago

    Even in my original comment i said there are non js ways. But what i primarly meant here is, there are differnt “ideas” of implementing a mobile site, some just change element sizes, and make them vertical viewing friendly, but others do change quite a lot, for example, remove most clickable items from the header-bar or title bar, and move them to a kebab/hamburger menu. And I know even this particular example can be done in pure css, but I still feel my statement is not simply wrong.

    Also I am not a front end dev, so I am sorry if I get stuff wrong.


  • I do not have any other program to add (the only options i know are already commented by others), there is one more, you can use a keepass (and/or -xc) database as a folder, and dump files, it is not visible in os file manager, but still cross platform and simple enough, but because of nature of how the encryption is done for a keeepass database, for each file added, whole database is updated (if you have a large folder, then that would be a large file saved, and encrypteed, so it can get slow). I do something handrolled, where if i use a regular folder, but all the files added to it are encrypted by pass (that is gpg), this way, files are encrypted, but saved atomically. But this has some downsides. due to simplistic nature of pass, the output file is not given any fancy unidentifiable name like cryptomator (they also do some atomic file encryptions only, but also do file chunking (split file in multiple parts, and encrypt them seperately, helps with prevention of identification of file by its size) and maintain a map (which, well, maps the file to a unidentifiable name).

    But what i can say is, it is not much of “added” protection. If you are leaving your system unlocked, and then fear someone will come and check files, then it can potentiall be of help, but if system is locked, and yiu use a secure lock (many systems have locks which either power machine off after certain attempts, or in case they crash (all programs eventually crash), then they also take system down(and this is good, as system is not left unlocked at any point)) or not powered, then normal disk encryyption is enough, even with against a state level adversary. almost no one is breaking encryptions.




  • sgatophysicsgifs@lemm.eeLevitation Melting by Sergey V. Kukhtetskiy
    link
    fedilink
    English
    arrow-up
    2
    arrow-down
    2
    ·
    3 days ago

    eli5 - basically all materials have spins (As in electron spins), and magnetism is basically these tiny spins in materials, if paired - diamagnetism (all materials have this), paramagnetism (if you have unpaired electrons), and ferromagnetism (for now consider it special case of para). When heated up beyond curie temperature, ferro becomes para (kinda like fall back). Almost all metals are either para or ferro.

    Now all materials kinda resist getting their state changed (there are 3 “energies” at play - exchange energies of electrons (consider the friendship force between electrons), electrons and external field, and the temperature “energy” (there is no real temp energy, but there is something like energy in form of k_B T, but that is not for now)). eddy current is basically manifestation of this (consider it like resistance to change of magnetisation by external field, by creating a field in opposite direction).



  • sgatoToday I Learned (TIL)@lemmy.caTIL the Hairy Ball theorem
    link
    fedilink
    English
    arrow-up
    5
    arrow-down
    1
    ·
    edit-2
    3 days ago

    usually it is just a redirection. One of the reasons wiki does this is that their stack is more older device friendly (for the most part, you can use wikipedia perfectly fine without any js), and having adaptive view usually requires js (there are some other ways too), but wiki is constrained. So when browser recieves a request from a mobile user agent, they just redirect to mobile site.


  • it is close to being prompt. You have to look for models which are trianed with tool calling in training (if i am not wrong, mistral 7b 0.3 is one such model, many big models have that, probably phi also, and gemma 3 11/27 b might also have it (this is a thing you can check in their huggingface readme).

    If it is in their training, then they can ouptut a tool calling token (i do not remember what is called, but lets say it is [call-tool]). So when you would ask it do some calculation (many models available on chat interface of huggingface have selectable tools you can decide from, enable or disable them, math is one of them) then they would decide if it is appropriate to call a tool (you would not call math tool if you wrote hello). Once they emit a [call-tool] token, then they would prepare some “structred data” (most models do json) lets say prompt was, find integral of sin for 3/4 of its period. And lets consider the model is smart enough to call a tool, and also smart enough to prepare a reasonable structure of it, for example, for maths stuff, they are usually converted to one of either latex or python compatible first, depending on the interface it was trained. lets say this one is trained for latex, then it would generate [call-token] { type_of_tool: “math”; prompt: “$integral_0^(3/2 * pi) sin (x) dx$”; } then the interface (where you are running code) is expected to take over from here, depending on interface, the generation of response would either be frozen, and then resumed, with the result of input now part of current chain, or some would let it continue its yapping, and then pasted a littel afterwards, and then continued to generate output. the json would now be processed by interface, and a relavent tool would be called, which would process the input, and produce its own output (most likely also json), and then given to input.

    If you want to implement it yourselves, you can probably take a look at llama cpp implementation, if not use it in llama cpp https://github.com/ggml-org/llama.cpp/blob/master/docs/function-calling.md

    also, it would most likely be available in ollama too.

    Most agentic model stuff is basically tool-calling in steroids.