Skip Navigation
How's "made in Germany" on a website any better data-protection wise than "made in South Africa, Indonesia, Bolivia"?
  • Then why don't you go to North Korea? Or Iran? Or China. According to you, if you do nothing wrong, you won't have any problem there. And if you end up with a problem with a police there, then you're a criminal, therefore must be punished anyway.

  • Single module User for both Ecto and Open API Specs?

    at https://hexdocs.pm/open_api_spex/3.2.0/readme.html there's a definition of a module User

    defmodule MyApp.Schemas do alias OpenApiSpex.Schema

    defmodule User do @behaviour OpenApiSpex.Schema @derive [Jason.Encoder] @schema %Schema{ title: "User", description: "A user of the app", type: :object, properties: %{ id: %Schema{type: :integer, description: "User ID"}, name: %Schema{type: :string, description: "User name"}, email: %Schema{type: :string, description: "Email address", format: :email}, inserted_at: %Schema{type: :string, description: "Creation timestamp", format: :datetime}, updated_at: %Schema{type: :string, description: "Update timestamp", format: :datetime} }, required: [:name, :email], example: %{ "id" => 123, "name" => "Joe", "email" => "joe@gmail.com" } "x-struct": MODULE } def schema, do: @schema defstruct Map.keys(@schema.properties) end

    In order to avoid re-describing it like that for Open API Specs whilst having already done so for Ecto, is it possible to combine the two definitions in a single module somehow? That is, my Ecto schema User would serve its purpose for Open API Specs too. With some required tweaks.

    And if I do combine them, won't this mess up with the methods of the 2 modules and other things?

    0
    Putin Unleashes Record Bombing in Ukraine as the World Watches Gaza
  • But why have the US and West not been able to kick him out? Isn't Russia a gas-station? Isn't Putin weak? Isn't the Russian army weak? Isn't "the whole world" agaist Putin? Isn't UA winning all the time, at any given time?

  • Russia to ease investment for ‘friendly’ countries
    www.aljazeera.com Russia to ease investment for ‘friendly’ countries

    Favoured countries include China, India, Brazil, Saudi Arabia, Turkey, Kazakhstan and Belarus.

    Russia to ease investment for ‘friendly’ countries

    There's no usual "That's because Putin is in panic!!!!!" in the article, so I'm adding it here -- just in case.

    How will Europe and US respond?

    7
    How to check balance of a wallet via third-party API?
  • The Monero blockchain does not hold data in plaintext like other blockchains. You cannot just query the blockchain data through an API. You have to decrypt transactions with private view keys.

    I'm not asking "What Monero is, how it works?"

  • How to check balance of a wallet via third-party API?

    I'm a developer.

    I've already added payments in Solana and ETH onto my website and now want to add ones in Monero.

    So I'll generate a 100 wallets that will be assigned to each user. How will I checking their balances? Will it be possible at all, without my own node, or with a third-party API only? Or will I have to run a node?

    The key is to be able to do it automatically, in a web app.

    13
    How to simplify sending emails via a *local* self-hosted email server?

    On one server I run MailCow and other - Postfix and Dovecot. I also have a script that sends emails. For the moment I run a script from my local laptop and it works fine.

    If I, however, ran a script on each of the 2 servers themselves, I'd be able to connect to the MTAs and get authenticated simpler.

    How would I do it?

    What would I have to set up, what permissions grant?

    0
    Questions and Answers on Israel’s Use of White Phosphorus in Gaza and Lebanon
    www.hrw.org Questions and Answers on Israel’s Use of White Phosphorus in Gaza and Lebanon

    Human Rights Watch has determined based on verified video and witness accounts that Israeli forces used white phosphorus in military operations in Lebanon and Gaza on October 10 and 11, 2023, respectively.

    Questions and Answers on Israel’s Use of White Phosphorus in Gaza and Lebanon
    1
    Can't compile "iwlwifi" module in Linux

    I'm trying to build iwlwifi module manually and for my needs.

    https://git.kernel.org/pub/scm/linux/kernel/git/iwlwifi/iwlwifi-fixes.git/tree/net/wireless/

    When I run Makefile as make, I get:

    ``` subcmd-util.h: In function ‘xrealloc’: subcmd-util.h:58:31: error: pointer ‘ptr’ may be used after ‘realloc’ [-Werror=use-after-free] 58 | ret = realloc(ptr, 1); | ^~~~~~~~~~~~~~~ subcmd-util.h:52:21: note: call to ‘realloc’ here 52 | void *ret = realloc(ptr, size); | ^~~~~~~~~~~~~~~~~~ subcmd-util.h:56:23: error: pointer ‘ptr’ may be used after ‘realloc’ [-Werror=use-after-free] 56 | ret = realloc(ptr, size); | ^~~~~~~~~~~~~~~~~~ subcmd-util.h:52:21: note: call to ‘realloc’ here 52 | void *ret = realloc(ptr, size); | ^~~~~~~~~~~~~~~~~~ cc1: all warnings being treated as errors make[4]: *** [/data/iwlwifi-fixes/tools/build/Makefile.build:97: /data/iwlwifi-fixes/tools/objtool/help.o] Error 1 make[3]: *** [Makefile:59: /data/iwlwifi-fixes/tools/objtool/libsubcmd-in.o] Error 2 make[2]: *** [Makefile:63: /data/iwlwifi-fixes/tools/objtool/libsubcmd.a] Error 2 make[1]: *** [Makefile:69: objtool] Error 2 make: *** [Makefile:1349: tools/objtool] Error 2

    ```

    Why is it? How to fix it?

    7
    privatelife - privacy, security, freedom advocacy @lemmy.ml nothingness @lemmy.world
    How's "made in Germany" on a website any better data-protection wise than "made in South Africa, Indonesia, Bolivia"?

    Whenever I encounter the label "made in EU", "Germany", "Estonia", "France" ...... in the footer of a web project, which implies enhanced data-protection, apparently, I wonder:

    How can it be so? There're some data-protection laws, yes. But one can't control a hosting provider 24h/day. One can't know whether an employer there copies all data on his memory-drivers.

    Can't the police, if need be, seize a server as easily as it would in any other country on Earth?

    Don't the majority of all of countries in Europe share information with the intelligence of US by the agreements of the 5 eyes, 9 eyes, 14 eyes? Whereas the 2nd and 3rd world countries don't.

    !

    How is it better than a label "made in South Africa", "Thailand", "Costa Rica", "Egypt", "Kuwait"?

    I can see how "made in Germany" or EU makes a project worse in terms of privacy and data-protection. How could it make it better, though?

    15
    How to tweak a WiFi driver in Linux?

    I want to take aт existing, a standard or one of the popular ones, WiFi driver for Linux and tweak it. I'll inroduce a whitelist into it. That is, to the consumer a driver will show the networks from a whitelist only ignoring all other ones.

    It's a PoC. I want to implement it as simply as possible.

    Can this be implemented? And how, in a high level?

    1
    Can a custom token be priced however much the owner may want? (self.CryptocurrencyDev)

    Can a custom token be priced however much the owner may want? Can the author put the price of $10k/unit on a token?

    The question isn't whether or not it'll then be selling.

    6
    How to run background jobs?

    Is there any library for the queueing mechanism?

    What's used by the most - Cron? But a task or rather script executed by Cron won't access to the context of an application. Meaning, a task will have be an independent unit. Whereas I want is a library to use inside a project such that it'll have access to everything.

    Anything similar to Sidekiq exist in Rust?

    17
    InitialsDiceBearhttps://github.com/dicebear/dicebearhttps://creativecommons.org/publicdomain/zero/1.0/„Initials” (https://github.com/dicebear/dicebear) by „DiceBear”, licensed under „CC0 1.0” (https://creativecommons.org/publicdomain/zero/1.0/)NO
    nothingness @lemmy.world
    Posts 10
    Comments 44