cabhan

joined 2 years ago
[–] cabhan@discuss.tchncs.de 4 points 1 week ago

I'm a huge fan of soda bread, which does not require sourdough (or yeast). You can go from "I have no bread" to "I am eating bread" in about 40 minutes.

The rising is done via buttermilk and baking soda.

[–] cabhan@discuss.tchncs.de 8 points 2 weeks ago (1 children)

Schau bitte dieses schöne Exemplar an

[–] cabhan@discuss.tchncs.de 4 points 4 weeks ago

I purchased my current phone (Fairphone 4) in January 2022. And that was because my last phone's battery was dying, and the screen was very cracked.

I decided for a Fairphone because you can easily replace the battery (already done once) and the screen (not yet broken).

As of now, I still have no plans to buy a new phone.

[–] cabhan@discuss.tchncs.de 3 points 1 month ago

I really enjoyed The Will of the Many, but it was mostly because of thr world and thr mysteries, I think. I agree that the YA-y relationship stuff was less my thing, but it didn't bother me too much.

I binged the whole Gideon series when I was sick once. I found it enjoyable to read, but I agree that I do not get the hype around it.

[–] cabhan@discuss.tchncs.de 4 points 1 month ago

I'm re-reading Eines Menschen Flügel by Andreas Eschbach. It's about a society started by refugees from a far future civilization, and because touching the ground is deadly, modified their children to have wings.

I re-read the book every few years, because it describes essentially a utopian society and I find it very inspiring, while also just being interesting.

[–] cabhan@discuss.tchncs.de 4 points 1 month ago

I remember renting Surf Ninjas on VHS back in the day. I would prefer not to think about how long ago that must be now.

[–] cabhan@discuss.tchncs.de 26 points 1 month ago

Meat. I'm vegetarian, my wife is not. When we go out to eat, if she orders meat, there's a good chance the meat dish will get put in front of me.

We were at a Christmas market on the weekend, and one booth had a sign that said "Make your husband happy", and it was of course a butcher stand.

[–] cabhan@discuss.tchncs.de 9 points 1 month ago

I believe learning languages is generally a net good. But to answer your question, it would help to know: why do you want to learn Russian?

If you just find the idea of the language interesting, then yes! Start leaning it. If you have motivation, that will help.

Is there specific media you're looking to consume in its original language, Russian? Then yes, absolutely :).

Are you just trying to learn "any Slavic language", to extend the language families you have knowledge of? You already have some Polish, so what is it about Russian that attracts you? Is there another language that might have more resonance or utility for you?

As far as I am aware, mostly sue to Soviet influence, Russian is probably the most-widely-understood Slavic language, so this does offer some advantages. I have spoken with Ukranians and Georgians who now don't like speaking Russian, for obvious reasons, though I don't know how widespread this feeling really is. And at least here in Germany, I feel like Croatian, Czech, or Slovakian would be a more useful day-to-day or holiday language, but itball depends on your goals.

And, as a dentist once told me in regards to dental floss, but it applies here too: The best language to learn is the one that you will actually learn. If there's a language you'll actually stick with, that's good.

[–] cabhan@discuss.tchncs.de 1 points 1 month ago* (last edited 1 month ago)

For anyone curious: after a lot of research and then failing to find hearts of palm in any supermarkets, I ended up going for vegan crab cakes with jackfruit. At the end of the day, they didn't taste a huge amount like crab, but with lemon juice, dill, and nori, they evoked vague impressions of seafood, I think. And everyone had seconds or thirds, so they seemed to taste good enough, even for the non-vegetarians :).

I used essentially this recipe, but with jackfruit instead of hearts of palm, and with far more nori: https://www.veganfoodandliving.com/vegan-recipes/vegan-crab-cakes/

Thank you for the ideas!

[–] cabhan@discuss.tchncs.de 2 points 1 month ago (2 children)

I always have this thought. I'm doing it in Rust, so I check if there are negative numbers: if not, use usize. But I'm always terrified there will be an overflow somewhere.

If I were using Kotlin or Java, I might always use BigInteger just out of fear.

[–] cabhan@discuss.tchncs.de 3 points 1 month ago

Rust

Part 1 was very straight forward. I overcomplicated it a bit by using an actual graph library, but I'm used to using it.

I originally tried to brute force Part 2, which of course failed. I then reverted to dynamic programming, which worked well.

use std::collections::{HashMap, VecDeque};

use graphrs::{Graph, GraphSpecs};

use crate::solver::DaySolver;

pub struct Day11Solver;

impl DaySolver for Day11Solver {
    fn part1(&self, input: String) -> String {
        let mut graph: Graph<String, ()> = Graph::new(GraphSpecs::directed_create_missing());
        let edges = input.lines()
            .flat_map(|line| {
                let (start, end_str) = line.split_once(": ").unwrap();
                end_str.split_whitespace()
                    .map(|end| (start.to_string(), end.to_string()))
            })
            .collect();
        graph.add_edge_tuples(edges).unwrap();

        let mut frontier = VecDeque::from([vec!["you".to_string()]]);

        let mut path_count = 0;

        while let Some(path) = frontier.pop_front() {
            let last = path.last().unwrap();

            if last == "out" {
                path_count += 1;
            } else {
                graph
                    .get_successor_node_names(last.to_string())
                    .unwrap()
                    .into_iter()
                    .filter(|next| !path.contains(next))
                    .map(|next| {
                        let mut new_path = path.clone();
                        new_path.push(next.clone());
                        new_path
                    })
                    .for_each(|new_path| frontier.push_back(new_path));
            }
        }

        path_count.to_string()
    }

    fn part2(&self, input: String) -> String {
        let mut graph: Graph<String, ()> = Graph::new(GraphSpecs::directed_create_missing());
        let edges = input.lines()
            .flat_map(|line| {
                let (start, end_str) = line.split_once(": ").unwrap();
                end_str.split_whitespace()
                    .map(|end| (start.to_string(), end.to_string()))
            })
            .collect();
        graph.add_edge_tuples(edges).unwrap();

        how_many_paths(
            &mut HashMap::new(),
            &graph,
            ("svr".to_string(), false, false),
        )
            .to_string()

    }
}

fn how_many_paths(
    cache: &mut HashMap<(String, bool, bool), usize>,
    graph: &Graph<String, ()>,
    current: (String, bool, bool),
) -> usize {
    if let Some(&c) = cache.get(&current) {
        c
    } else {
        let (node, has_dac, has_fft) = &current;
        if node == "out" {
            let count = if *has_dac && *has_fft { 1 } else { 0 };
            cache.insert(current, count);
            count
        } else {
            let count = graph
                .get_successor_node_names(node.clone())
                .unwrap()
                .into_iter()
                .map(|next| {
                    let next_state = (next.to_string(), *has_dac || next == "dac", *has_fft || next == "fft");
                    how_many_paths(cache, graph, next_state)
                })
                .sum();
            cache.insert(current, count);
            count
        }
    }
}

#[cfg(test)]
mod tests {
    use super::*;

    #[test]
    fn part1() {
        let input = include_str!("../../inputs/test/11");

        let solver = Day11Solver {};
        assert_eq!("5", solver.part1(input.to_string()));
    }

    #[test]
    fn part2() {
        let input = include_str!("../../inputs/test/11-2");

        let solver = Day11Solver {};
        assert_eq!("2", solver.part2(input.to_string()));
    }
}
[–] cabhan@discuss.tchncs.de 1 points 1 month ago

I've never heard of dulse before, but just looked it up. Certainly sounds interesting. What do you usually make with it? Or just add it to a soup?

I'm also not sure where I would buy that, but maybe some of the organic markets around here have some.

 

Hi folks! On Friday, some friends are coming over to play Unfathomable, a board game set on a boat in the Cthulhu mythos, so I thought it would be fun to cook something with a bit of a seafood / ocean taste. Only catch: I'm vegetarian, so no fish.

I'm looking for inspiration for something that might have this sort of flavor. So far, I've thought about something using wakame or nori sheets, but although I do have experience cooking Chinese and Japanese dishes, I couldn't think of any sort of full dish that might have the right taste.

I'm aware that there are vegan "fake salmon" or "fake tuna" things that you can buy, but I haven't been too impressed with those so far.

Any thoughts?

 

Hallo Leute! Ich fange an, ein wenig mit Arduino zu spielen. Ich habe ein paar Ardunios, die ich über die Jahre gesammelt habe, aber ich merke, dass viele andere Teile fehlen (zB Displays, LEDs, usw).

Ich kann diese Teile sicher im Internet kaufen, aber wisst ihr, ob es irgendeinen Laden hier in München gibt, der sie verkauft? Früher gab's ein Conrad, aber das hat vor ein paar Jahren geschlossen.

Vielen Dank!

 

Hi all! We'd like to stop using our plastic cutting boards due to cutting little bits of plastic into our food. Unfortunately, the most obvious alternative, wooden cutting boards, are more of a pain to clean.

I'd love suggestions on what I could use instead. I saw there's a brand called Epicurean that uses some sort of other material that can be machine washed. Has anyone used them before?

I'd especially love something made in Germany or in the EU, but I'm open to looking farther afield if necessary.

Thank you!

25
submitted 7 months ago* (last edited 7 months ago) by cabhan@discuss.tchncs.de to c/dach@feddit.org
 

Hallo alle! Am Wochenende habe ich ein Brettspiel (Cthulhu: Death May Die) gespielt, wo ein Monster "Dunkles Junges" geheißen hat. Und dann habe ich gesagt, dass "Das dunkle Junges hat mich angegriffen", und meine Freunde haben mich korrigiert: "das dunkle Junge".

Und meine Frage an euch: Warum? Ich bin kein Muttersprachler, aber ich habe bis jetzt kein anderes Wort begegnet, das ein "s" im Akkusativ hat, aber keins im Nominativ. Gibt es andere ähnliche Wörter? Gibt es eine Klasse von Wörtern, zu der "Junges" gehört, zum Beispiel wie die Wörter, die im Genitiv mit "n" enden statt "s"?

Danke für eure Hilfe!

Edit: Ich habe hier Akkusativ / Nominativ gesagt, aber die Frage ist wirklich über den bestimmten oder unbestimmten Artikel

 

Hallo Leute! Ich suche ein paar Dinge für den Saunagang, in diesem Fall einen Saunakilt. Ich habe früher Handtücher und Bademäntel von Amazon gekauft, und ich habe mich damals schlecht gefühlt, und ich würde voll gern eher von einem Laden hier in München kaufen. Kann irgendjemand mir was empfehlen?

Ich habe schon in dem kleinen Laden im Phönix Bad geschaut, aber sie haben viel mehr für das Pool als für die Sauna.

Vielen Dank!

 

Hi all! I have a Fairphone 4 that is serving me very well, but it occasionally reacts as if someone had touched the screen, such as scrolling randomly, zooming in in the camera, pulling down the settings menu, etc. I assume that there's something on the display that occasionally activates something.

I have cleaned the display several times, but still have the issue. Before I buy a new display to swap it out, which costs 70€, I'd like to know if anyone else has had this issue, and if you found a good way to fix it other than swapping out the display :).

Thank you!

 

A specific question, but maybe someone here knows! My shower has a drain. When I remove the cover and the "thing" inside of it, there's a stopper with an O-Ring.

We used to be able to pull the stopper out and clean inside the pipe (suggested by a plumber), but I now can't remove the stopper anymore. It appears to be quite stuck, and the angle is also terrible to get a better grip on it. I don't want to use pliers, because I'm afraid I might snap the thing that you hold, and then I'm really in trouble.

Can anyone give me suggestions what I can do to get the stopper out? Is there a technique I don't know? A device I could buy?

Thank you!

 

Hello all! I've been a Software Developer for almost 15 years now, and after staying at my last few companies for only 2 years each, I'm starting to think about the possibility of becoming a freelancer/contractor. I'm looking for more flexibility in my work and getting out of parts of the corporate culture that I have grown to dislike.

I'm in a good place financially, and so I'm looking to see if it's a possibility. I speak English and German fluently, and have primarily a background in webservice and FE development, though I can also do quite a bit of Rust and have dabbled in Android apps a bit. I also have some experience with medical software. I think my biggest issues right now are business model development / pricing and finding customers.

Does anyone know of any good resources? I find quite a bit online, but a lot seems geared towards being self-employed generally, and not to the software industry itself. I'd be looking for either good websites or books, or general starting points for research.

Thanks in advance for any suggestions or advice!

 

I have the feeling that over the past years, we've started seeing more TV shows that are either sympathetic towards Hell and Satan, or somewhat negative towards Heaven. I just watched "Hazbin Hotel" today, which isn't too theological, but clearly is fairly negative towards Heaven.

In "The Good Place",

Spoilers for The Good Placethe people in The Bad Place end up pushing to improve the whole system, whereas The Good Place is happy to spend hundreds of year not letting people in.

"Little Demon" has Satan as a main character, and he's more or less sympathetic.

"Ugly Americans" shows demons and Satan as relatively normal, and Hell doesn't seem too bad.

I only watched the first episode of "Lucifer", but it's also more or less sympathetic towards Lucifer.

I have a few more examples (Billy Joel: "I'd rather laugh with the sinners than cry with the saints", or the very funny German "Ein Münchner im Himmel", where Heaven is portrayed as fantastically boring), but I won't list them all here.

My question is: how modern is this? I've heard of "Paradise Lost", and I've heard that it portrays Satan somewhat sympathetically, though I found it very difficult to read. And the idea of the snake in the Garden of Eden as having given free will and wisdom to humanity can't be that modern of a thought, even if it would have been heretical.

Is this something that's happened in the last 10 years? Are there older examples? Does anyone have a good source I could read?

Note that I don't claim Satan is always portrayed positively, or Heaven always negatively :).

 

Hallo Leute!

Ich versuche anzufangen, als Tanzlehrer als Nebenjob zu arbeiten. Ich plane ziemlich wenig zu verdienen (weniger als 1000€ im Jahr), und ich suche einem:r Steuerberater:in, von wem ich Beratung bekommen kann, was ich machen muss. Ich habe Lohi kontaktiert, aber sie bieten nur Lohnsteuererklärungen an.

Kann jemand mir einen:r Steuerberater:in empehlen?

Vielen Dank!

 

An English post is below.


Ich hoffe es ist erlaubt: Mein schottischer Tanzverein bietet am 18.11 einen Ceilidh im Wirtshaus im Hirschgarten an. Ein Ceilidh ist eine schottische Tanzparty, und wir werden ganz viele Tänze machen, die für alle geeignet sind. Alle Tänze werden gezeigt und erklärt, und es gibt auch die Möglichkeit, eine schöne Whiskyflasche zu gewinnen.

Falls jemand Fragen hat, sag einfach Bescheid. Und vielleicht sehen wir ein paar von euch dort!


I hope this allowed here: my Scottish dance Verein is hosting a ceilidh in the Wirtshaus in Hirschgarten on the 18th of November. A ceilidh is a Scottish dance party, and we will do lots of dancing, which is appropriate for everyone: no experience necessary. All dances will be shown and explained, and there will even be the chance to win a nice bottle of whisky.

If anyone has questions, just say so :). And maybe we'll see some of you there!

 

Please forgive me...I'm over 30 and was never a clubber.

In a number of songs, women "get low". In "Low":

Shawty got low low low low low low low low

In "Belly Dancer", they drop down and touch the ground;

Hey, ladies drop it down, just want to see you touch the ground

...

You ain't even gotta drop down if you want to

What activity is being described here? What are these women doing?

view more: next ›