3
submitted 11 months ago by nothingness@lemmy.world to c/worldnews@lemmy.ml
[-] nothingness@lemmy.world 5 points 1 year ago* (last edited 1 year ago)

like, no, seriously.

What does "like" mean here? What's it for?

5
submitted 1 year ago* (last edited 1 year ago) by nothingness@lemmy.world to c/elixir@programming.dev

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?

61
submitted 1 year ago* (last edited 1 year ago) by nothingness@lemmy.world to c/worldnews@lemmy.ml

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?

[-] nothingness@lemmy.world 7 points 1 year ago

You've forgotten to mention men

11
submitted 1 year ago* (last edited 1 year ago) by nothingness@lemmy.world to c/linux@lemmy.world

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?

[-] nothingness@lemmy.world 3 points 1 year ago* (last edited 1 year ago)

If Russia was so weak, it would've already collapsed under 15k+ sactions and US with West wouldn't have had nothing to worry about. Or they would've already defeated it militarily. Why haven't they still?

How many times have predicted it to collapse, for the last 1.5 years? Dozens. Where's defeat in Ukraine? 50 countries together that can't even come close to match 1 country. Who's winning?

Who then, Russia or West/US, make propaganda?

[-] nothingness@lemmy.world 4 points 1 year ago

look at 2022 - already happened

[-] nothingness@lemmy.world 4 points 1 year ago* (last edited 1 year ago)

Aren't you able to read? It's for 2022 when there was a decline. This year there's a growth.

[-] nothingness@lemmy.world 3 points 1 year ago

Worldbank is bullshit?

[-] nothingness@lemmy.world 4 points 1 year ago* (last edited 1 year ago)

Don't believe. Go to other sources and double check.

8
9

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?

[-] nothingness@lemmy.world 3 points 1 year ago* (last edited 1 year ago)

We, in fact, do not. And knowing a project is hosted in EU helps to know that the company/hosting adheres to our privacy laws.

In fact, you do.

Are you aware of 5 eyes, 9 eyes, 14 eyes or do you pretend that you don't?

And knowing a project is hosted in EU helps to know that the company/hosting adheres to our privacy laws.

It doesn't which I've explained why in my question.

And the fact that you share data with the US intelligence nullifies it anyway.

6
submitted 1 year ago* (last edited 1 year ago) by nothingness@lemmy.world to c/osdev@programming.dev

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? Can the author put the price of $10k/unit on a token?

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

11
submitted 1 year ago* (last edited 1 year ago) by nothingness@lemmy.world to c/rust@lemmy.ml

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?

[-] nothingness@lemmy.world 3 points 1 year ago* (last edited 1 year ago)

A similar meme about US' sleeping Joe would've been called "Chinese propaganda".

Shouldn't this meme then be called "US propaganda"?

Doesn't this tell you whose propaganda, US or Chinese, is a real one here?

[-] nothingness@lemmy.world 4 points 1 year ago* (last edited 1 year ago)

I'd rename it into

"Only good propaganda (news and lie) about USA, only bad propaganda (news and lie) about Russia, China, Iran". And neural about other countries in between, just for fun.

[-] nothingness@lemmy.world 3 points 1 year ago* (last edited 1 year ago)

Strange... no condemnation of the US and West for preparing the ground for the conflict way back in 2014.

No condemnation of NATO for training the ukranian soldiers since 2014, in Ukraine, and sending weapons to them ever since.

No condemnation of US for pushing the ukranian soldiers into the meatgrinders.

[-] nothingness@lemmy.world 5 points 1 year ago* (last edited 1 year ago)

One little question nobody here has asked himself:

How do YOU know that that's true? Can you verify this information for youself? Could the source have any incentive to lie? Have you read any response about this from the other side?

view more: next ›

nothingness

joined 1 year ago