• 0 Posts
  • 17 Comments
Joined 4 years ago
cake
Cake day: October 20th, 2020

help-circle









  • I used waydroid for whatsapp, though any android emulator will probably work. To create the account, there was an option to verify a phone number by sending a text message (to a dumb phone with a burner sim card in my case). I use whatsapp web to read and send messages, and only have to open waydroid every few months to sign-in again.






  • 56!@lemmy.mltoTechnology@lemmy.worldWhy a kilobyte is 1000 and not 1024 bytes
    link
    fedilink
    English
    arrow-up
    4
    arrow-down
    1
    ·
    6 months ago

    Unlike many comments here, I enjoyed reading the article, especially the parts in the “I don’t want to use gibibyte!” chapter, where you explain that this (the pedantry) is important in technical and formal situations (such as documentation). Seeing some of the comments here, I think it would have helped to focus on this aspect a bit more.

    I also liked the extra part explaining the reasoning for using the Nokia E60.

    I don’t quite agree with the recommendation to use base 10 SI units where neither KiB or kB would result in nice numbers. I don’t see why base 10 should have an influence on computers, and I think it makes more sense to stick to a single unit, such as KiB.

    The reasons I have this opinion are probably to do with:

    • My computer has shown me values using KiB, Gib, etc for years - I think it’s a KDE default - so I’m already used to the concept of KiB being different from kB.
    • I dislike the concept of base 10 in general. I like the idea of using base 16 universally (because computers. Base 12 is also valid in a less computer-dominant society). I therefore also think 1024 is a silly number to use, and we should measure memory in multiples of 2^8 or 2^16…

    p.s, I agree with other commenters that your comments starting with “Pretty obvious that you didn’t read the article.” or similar are probably not helping your case… I understand that some comments here have been quite frustrating though.


  • I think it’s just normal Lua code.

    Here’s a quick json converter (based on https://stackoverflow.com/a/55575074), assuming you have lua installed:

    local function to_json(obj)
        local result = {}
        for key, value in pairs(obj) do
            if type(value) == "string" then
                value = string.format("\"%s\"", value)
            elseif type(value) == "table" then
                value = to_json(value)
            end
            table.insert(result, string.format("\"%s\":%s", key, value))
        end
        return "{" .. table.concat(result, ",") .. "}"
    end
    
    function item(obj)
        print(to_json(obj))
    end
    
    dofile(arg[1])
    

    It just defines the item function to print json, and executes the data file.

    arg[1], the first command line argument, is the path to the data file:

    $  lua to_json.lua path/to/datafile.list
    

    and pipe the output to something.json or whatever else you want to do.


  • I think the second part of the comment is what’s important:

    If you are in a more comfortable environment you will be better at working

    Maybe that is windows for you. I have barely ever used windows, so the concept of searching for installers online and running them just seems clunky and time consuming to me. It’s just not what I’m used to.

    However if you are willing to learn multiple systems, you might find that one is better than the others.