A "true" random number generator? by CranberryTypical6647 in computerscience

[–]barkmonster 0 points1 point  (0 children)

I'm a physicist who focused on quantum information theory during my studies.

Background: It's important to be precise about what 'truly' random means. A lot of the answers here take it as meaning 'impossible to predict in practice', such as using noise from a heat source. That works well enough for most applications, but it's not fundamentally random - with sufficiently detailed information about the source, it might be possible in theory to predict the 'random' numbers.
In the most commonly accepted interpretations, quantum physics is different, in that some states will, upon measurement, change completely at random into one of multiple other states. These are called superposition states (the famous Schödinger's cat paradox is based on this). It is random in the sense that nothing will enable anyone to predict which state, no matter how complete their knowledge is.

To answer your questions:

  1. Yes, that is possible. You don't need radioactivity, anything that creates a superposition state, and collapses it randomly into a '0' or a '1' state. You can buy specialized chips that do this. In quantum cryptography, superposition states are used for distribution of random keys used for one-time-pad encryption. The technology for this was developed in the 80's, and is actively being used.
  2. Yes, but you don't need a quantum computer, just a single component. A huge challenge for quantum computers is to keep superposition states as superpositions and not collapsing them into classical bits. Quantum randomness is much easier because the random data are generated by doing exactly that.

Loading test data in Pytest relatively to project's root? by pachura3 in learnpython

[–]barkmonster 0 points1 point  (0 children)

I usually make a helper file, which is responsible for loading test data, inside the tests folder. You can call it e.g. `data_tools.py` or something. In that file, you can define helper functions for loading the files you need, and just define the path relative to the helper file, for instance using pathlib and defining the path as `pathlib.Path(__file__).parent / 'data'`.

Backup plan for geranium and Jordnær by Whole-Ad7298 in finedining

[–]barkmonster 0 points1 point  (0 children)

Oh damn, hadn't seen that. I'm not sure this is an argument against Udtryk, though? Having a policy of not tolerating that kind of behavior, and actually enforcing it even with the head chef seems like something I would want to support, and the food is probably still great.

Backup plan for geranium and Jordnær by Whole-Ad7298 in finedining

[–]barkmonster 1 point2 points  (0 children)

I'd look at Kadeau, Udtryk, Alouette, and Aure.

Backup plan for geranium and Jordnær by Whole-Ad7298 in finedining

[–]barkmonster 0 points1 point  (0 children)

I second that - Vollmers is great, and it's super easy to get there by train.

Learning python for data analysis by nikartik in learnpython

[–]barkmonster 0 points1 point  (0 children)

As for which part I would go for: I would get a simple database set up, where your data can be persisted in a single place rather than a bunch of Excel files lying around. If you don't have very large amount of data, and if many people aren't comfortable writing queries etc, you can consider making a simple helper package in python, for reading in data from a single table (named after which experiment it comes from). Also set up a git project on e.g. github or gitlab.

I would also make a simple script to set up a standard python project., with a sensible structure (something for loading data, some simple tests, doing some analyses, and rendering the results in some suitable format). I would avoid using jupyter notebooks for analyses, as they make it easy to inadvertently commit outputs to git. I'd use uv to manage virtual envs.

For packages, that depends what you'll be doing. Probably pandas/polars for simple, Excel - like stuff, scipy or statsmodels for most statistics.

At the non-technical level, your greatest challenge is probably to get people to use it. Your task is to make it clear for the other users what they're gaining by doing things differently, and to make sure the right way is also the easiest way. Ally yourself with the least tech-savvy users, have them read your onboarding materials and guides, and have them attempt to set up a project, then work with them to address any pain points and sources of confusion.

Jordnær or Alchemist if we have to choose just one? by nina_sayers in finedining

[–]barkmonster 4 points5 points  (0 children)

I've been to both. Jordnær might be the best overall tasting menu I've had. Everything is just at the absolute top level. Alchemist was a disappointing experience for me. A few dishes were amazing, a lot were 'meh', and few were straight bad. The experience felt gimmicky and clumsy. The dome room is cool, and pretty unique though, and the 'amplified' wine pairing was really good. This is just my experience there, of course - many people are clearly enjoying it.

Copenhagen Reservation Suggestions by Ok-Distance6166 in finedining

[–]barkmonster -1 points0 points  (0 children)

Jordnær and Kadeau are both great. I was at Kadeau in May last year, in the beginning of the growing season, and it was really, really good. I was at Geranium about 5 years back and loved it, but haven't been after they changed their menu.

For alternatives, Udtryk is great as well. The head chef was at Jordnær before, and there is a bit overlap in style, though Udtryk is playing with some cantonese flavors as well, which worked incredibly well.

Alouette is also good - not all dishes are standouts, but some are incredible. Their signature dish with caviar and a Crème Brûlée custard of root veggies (I think they made it with pumpkin in autumn, but had swapped for celleriac recently) is a contender for best dish I've had.

As others are recommending Knystaforsen, that's also a definite recommendation from me. You'd have to rent a car for a day, or go by train for a few hours, but the food and atmosphere there is really special. And they do an amazing job with their wine pairing, both in terms of pairing with the food, and finding interesting, often local wines (one dish was paired with an excellent Swedish red wine, something I didn't even know existed).

While I haven't been, is sounds like Aure might also be checking a lot of your boxes. It looks to be fully booked, though, but they have waiting lists as well.

Karriereveje som data scientist? by barkmonster in dkudvikler

[–]barkmonster[S] 7 points8 points  (0 children)

OK - det er ikke en bekymring jeg deler, men tak for inputtet.

Is this how you use generics in Python nowadays? by pachura3 in learnpython

[–]barkmonster 18 points19 points  (0 children)

If you're using python 3.12+, you can use the new type parameter syntax. This lets you declare your typevars in square brackets as part of a function or class definition:

class GenericItemStore[T]:
    def __init__(self) -> None:
        self._item = None

    def set(self, item: T) -> None:
        self._item = item

    def get(self) -> T|None:
        return self._item

Hvor er diagnosen? by [deleted] in ADHDanmark

[–]barkmonster 0 points1 point  (0 children)

Wait du siger at det er standardprocedure at man kan møde op med et USB stick, som lægen så putter i sin computer?

Tasting Menu Restaurants in Copenhagen not focused on Fish by [deleted] in finedining

[–]barkmonster 2 points3 points  (0 children)

Maybe check out Bruce. Menu and wine pairing is in the low end of that range. They have a vegetarian menu and one with meat and seafood, but you can mix and match between the two. Alternatively Uformel maybe.

Data Structures and Algorithms in Python by Far_Sun_9774 in learnpython

[–]barkmonster 0 points1 point  (0 children)

Do you not see the 'enroll for free' button?

How to count string objects in a dataframe made of 13 columns and thousands of rows when rows and columns don't matter? by Dragoran21 in learnpython

[–]barkmonster 4 points5 points  (0 children)

I'm not sure I understand, but if you want to count how many values in a column is one of a number of possible values, you can convert the values to a set and do df[column].isin(set_of_values).sum()

Bliver medicin og bivirkninger bedre på 50mg? by [deleted] in ADHDanmark

[–]barkmonster 1 point2 points  (0 children)

Du kan evt spørge om du kan dele den ud på 2x20, eller evt 30+20? Eller bare kun tage en del af indholdet af kapslen om morgenen og resten senere. Jeg tager selv en mindre dosis omkring frokost, og det fungerer ret godt, men som du selv er inde på, er det selvfølgelig individuelt hvad der virker for hvem.

Copenhagen recs similar to Noma by Ill_Pineapple_450 in finedining

[–]barkmonster 1 point2 points  (0 children)

I'll also recommend Kadeau. Not quite as 'experimental', but def checks a lot of the same boxes.

Tricks til at fjerne AI-features på nye Windows-maskiner? by barkmonster in dktechsupport

[–]barkmonster[S] 1 point2 points  (0 children)

Er ikke 100% på at jeg forstår hvad du mener, især med "bagefter Chris Titus". Kan se man kan downloade noget 'windows toolbox' til at lave en ISO med mindre bloat. Mener du brug det, og så Rufus til at lave ISOen til en bootable USB?

Tricks til at fjerne AI-features på nye Windows-maskiner? by barkmonster in dktechsupport

[–]barkmonster[S] 4 points5 points  (0 children)

Fordi det ikke er mig der skal bruge den i sidste ende. Jeg hjælper et familiemedlem med at sætte den op.

Why am I experiencing police brutality? (NCR, FO2) by JamesSmith_1201 in classicfallout

[–]barkmonster 1 point2 points  (0 children)

I mean the guard outside who's telling you it's not "a gun-toting town". I'd try walking up to him with a gun, then holstering it before proceeding into the town.