cabhan

joined 2 years ago
[–] [email protected] 2 points 3 weeks ago

I finally tried resocketting the cable, and I've only seen the issue a little bit since, but not as extreme. But I'm not sure if it's real or just my perception ;). I'll keep an eye on it. Thanks for the idea!

[–] [email protected] 3 points 1 month ago (1 children)

I had a similar question a while back and ended up with Voip.ms.

https://discuss.tchncs.de/post/2418116

 

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!

[–] [email protected] 27 points 1 month ago* (last edited 1 month ago)

When I toured the concentration camp at Dachau some years ago, the tour guide was very clear on this point: people did elect the Nazis.

In 1932, the Nazi party became the largest party in the German parliament, with 37.3% of the vote. It is true that it was not mandatory to make Hitler chancellor, but as the head of the largest party, it would have been expected.

The Nazi party received massive support in democratic elections, where the expectation of the voters would have been that if the Nazi party gained enough seats, Hitler would become chancellor.

This is an important point to me, as it shows that it is possible for democratic elections to result in a fascist government that dismantles democracy. Ignoring this historical example prevents us from applying the lesson to new situations.

[–] [email protected] 1 points 2 months ago

Hah. I tried doing some research about what this kind of drain is called, but I have no idea. I've never had a drain like this before, but I guess it must not be too rare?

In my case, the issue is that it starts to stink a lot. We had a plumber out a few years ago, and he opened that thing up and used a plunger to remove a ton of hair. He then suggested we wash it out every now and again, but I haven't been able to do it for a while now, since I can't get that thing open.

[–] [email protected] 1 points 2 months ago (1 children)

Not at all a silly question! I have tried, yes. Also, I've been able to remove it before, but the last time I put it in, I really jammed it in, I guess. There are no threads, so the turning is really just about generating force.

[–] [email protected] 1 points 2 months ago

This looks very promising! Have you used something like this before? Most references I see online use this to remove the entire drain, not simply to turn the little thing inside. Is that accurate?

[–] [email protected] 8 points 2 months ago (1 children)

It's not the most complex game, but Dixit has really beautiful cards, in my opinion.

[–] [email protected] 4 points 2 months ago

I agree that the cards are great! Have you heard of the Fan Art Pack? It has variants of a bunch of the cards in a different style, which I also quite like.

[–] [email protected] 2 points 2 months ago

As St IGNUcious said, proprietary software is the sin. Using vi the penance.

 

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!

[–] [email protected] 2 points 3 months ago

I bought Ghost of Tsushima in one of the recent sales, and I've been enjoying it a great deal, so I'll likely be joining you there.

[–] [email protected] 3 points 3 months ago* (last edited 3 months ago)

Rust

I was stuck for a while, even after getting a few hints, until I read the problem more closely and realized: there is only one non-cheating path, and every free space is on it. This means that the target of any shortcut is guaranteed to be on the shortest path to the end.

This made things relatively simple. I used Dijkstra to calculate the distance from the start to each space. I then looked at every pair of points: if they are a valid distance away from each other, check how much time I would save jumping from one to the next. If that amount of time is in the range we want, then this is a valid cheat.

https://gitlab.com/bricka/advent-of-code-2024-rust/-/blob/main/src/days/day20.rs?ref_type=heads

The Code

// Critical point to note: EVERY free space is on the shortest path.

use itertools::Itertools;

use crate::search::dijkstra;
use crate::solver::DaySolver;
use crate::grid::{Coordinate, Grid};

type MyGrid = Grid<MazeElement>;

enum MazeElement {
    Wall,
    Free,
    Start,
    End,
}

impl MazeElement {
    fn is_free(&self) -> bool {
        !matches!(self, MazeElement::Wall)
    }
}

fn parse_input(input: String) -> (MyGrid, Coordinate) {
    let grid: MyGrid = input.lines()
        .map(|line| line.chars().map(|c| match c {
            '#' => MazeElement::Wall,
            '.' => MazeElement::Free,
            'S' => MazeElement::Start,
            'E' => MazeElement::End,
            _ => panic!("Invalid maze element: {}", c)
        })
             .collect())
        .collect::<Vec<Vec<MazeElement>>>()
        .into();

    let start_pos = grid.iter().find(|(_, me)| matches!(me, MazeElement::Start)).unwrap().0;

    (grid, start_pos)
}

fn solve<R>(grid: &MyGrid, start_pos: Coordinate, min_save_time: usize, in_range: R) -> usize
where R: Fn(Coordinate, Coordinate) -> bool {
    let (cost_to, _) = dijkstra(
        start_pos,
        |&c| grid.orthogonal_neighbors_iter(c)
            .filter(|&n| grid[n].is_free())
            .map(|n| (n, 1))
            .collect()
    );

    cost_to.keys()
        .cartesian_product(cost_to.keys())
        .map(|(&c1, &c2)| (c1, c2))
        // We don't compare with ourself
        .filter(|&(c1, c2)| c1 != c2)
        // The two points need to be within range
        .filter(|&(c1, c2)| in_range(c1, c2))
        // We need to save at least `min_save_time`
        .filter(|(c1, c2)| {
            // Because we are working with `usize`, the subtraction
            // could underflow. So we need to use `checked_sub`
            // instead, and check that a) no underflow happened, and
            // b) that the time saved is at least the minimum.
            cost_to.get(c2).copied()
                .and_then(|n| n.checked_sub(*cost_to.get(c1).unwrap()))
                .and_then(|n| n.checked_sub(c1.distance_to(c2)))
                .map(|n| n >= min_save_time)
                .unwrap_or(false)
        })
        .count()
}

pub struct Day20Solver;

impl DaySolver for Day20Solver {
    fn part1(&self, input: String) -> String {
        let (grid, start_pos) = parse_input(input);
        solve(
            &grid,
            start_pos,
            100,
            |c1, c2| c1.distance_to(&c2) == 2,
        ).to_string()
    }

    fn part2(&self, input: String) -> String {
        let (grid, start_pos) = parse_input(input);
        solve(
            &grid,
            start_pos,
            100,
            |c1, c2| c1.distance_to(&c2) <= 20,
        ).to_string()
    }
}

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

    #[test]
    fn test_part1() {
        let input = include_str!("../../inputs/test/20");
        let (grid, start_pos) = parse_input(input.to_string());
        let actual = solve(&grid, start_pos, 1, |c1, c2| c1.distance_to(&c2) == 2);
        assert_eq!(44, actual);
    }

    #[test]
    fn test_part2() {
        let input = include_str!("../../inputs/test/20");
        let (grid, start_pos) = parse_input(input.to_string());
        let actual = solve(&grid, start_pos, 50, |c1, c2| c1.distance_to(&c2) <= 20);
        assert_eq!(285, actual);
    }
}

 

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?

0
submitted 2 years ago* (last edited 2 years ago) by [email protected] to c/[email protected]
 

Hi all! I'm looking for a service where I can port my phone number, and then make and receive phone calls and SMS, all over data, not cell service. My particular use case is that I live in Germany, but I still have a US phone number, and occasionally need to receive SMSes or phone calls on that number.

I am aware that Google Voice offers this service, but as you can probably guess given that I'm here, I am unwilling to use it :). I saw JMP here: https://lemmy.world/post/1033514, but TBH, I don't think that it will give me the experience that I'm looking for, given that it seems to translate everything back to generic Jabber.

Edit: Thank you all for the suggestions! I have decided to go with VoIP.ms: I tested it today, and am working on transferring my number to them now.

view more: next ›