[-] Shadow@lemmy.ca 2 points 1 day ago

Gloomhaven is up there.

[-] Shadow@lemmy.ca 23 points 1 day ago* (last edited 1 day ago)

Oddly this doesn't deter me at all, but I don't buy mains connected components off aliexpress. Tons of DC stuff and I've never had an issue

5
Stoner Cats Supercut (www.youtube.com)
submitted 1 month ago by Shadow@lemmy.ca to c/videos@lemmy.world

I don't know how I missed this when it came out: https://en.wikipedia.org/wiki/Stoner_Cats

Stoner Cats is a cartoon that stars Mila Kunis, Ashton Kutcher and Chris Rock as cats that use medical marijuana.[1] The show also stars Jane Fonda, Seth MacFarlane, and Vitalik Buterin with guests Dax Shepard, Gary Vaynerchuk, and Michael Bublé. The producers were fined by the US Securities and Exchange Commission because they sold unregistered NFTs as a means towards a pass to view the show

177
submitted 1 month ago by Shadow@lemmy.ca to c/news@lemmy.world
4
submitted 1 month ago* (last edited 1 month ago) by Shadow@lemmy.ca to c/thunder_app@lemmy.world

I'm routinely running into an issue where if I haven't used the app in a while (a few hours), it hangs trying to connect. I then force restart and it's fine.

I was running onto this on the play store version but I'm on 0.7.0-1 now and still seeing it regularly.

Known issue? Or any suggestions on how to debug?

97
submitted 1 month ago by Shadow@lemmy.ca to c/canada@lemmy.ca

If you're still going down there for lunch / shopping, even more reasons to stop.

173
submitted 1 month ago* (last edited 1 month ago) by Shadow@lemmy.ca to c/canada@lemmy.ca

OTTAWA — OTTAWA - Elections Canada says more than 68 per cent of eligible voters cast a ballot in the federal election -- more than 19.5 million people.

While this election was widely expected to see increased turnout, it did not surpass the record set in March 1958, when 79.4 per cent of eligible Canadians voted.

But the nearly 68.7 per cent turnout was the best since the 1993 federal election, which saw 69.6 per cent of eligible voters cast a ballot.

Elections Canada says early estimates indicate 11 million people voted at their polling station or in their long-term care facility on election day.

The agency says nearly 7.3 million Canadians voted at advance polls while 1.2 million voted by special ballot.

Elections Canada does not gather demographics data so it’s not clear which groups turned out to vote, but it says postelection surveys can show which groups faced barriers to voting and what can be done to address them in future elections.

The Liberal party ended the election with 43.7 per cent of the total vote and 169 seats, while the Conservative party secured 41.3 per cent of the vote and 144 seats.

The Bloc Quebecois and the NDP both took 6.3 per cent of the vote, and will hold 22 and seven seats, respectively.

36
submitted 1 month ago by Shadow@lemmy.ca to c/canada@lemmy.ca
15
DIY X-ray Machine (www.youtube.com)
submitted 2 months ago by Shadow@lemmy.ca to c/videos@lemmy.world
30
submitted 2 months ago by Shadow@lemmy.ca to c/canada@lemmy.ca
14
submitted 2 months ago by Shadow@lemmy.ca to c/world@lemmy.world
152
submitted 3 months ago by Shadow@lemmy.ca to c/canada@lemmy.ca
12
submitted 3 months ago* (last edited 3 months ago) by Shadow@lemmy.ca to c/lemmy@lemmy.ml

cross-posted from: https://lemmy.ca/post/40761824

Sorry everyone I know how much you love the attention she gives you, but I've implemented some quick and dirty filtering for private messaging.

We now have the ability to automatically mark PM's as deleted or read, depending on content inside of them. If we accidentally filter something you legitimately wanted (ie, not Nicole) please let me know.

If any other instances would like to implement this, here's the code. Note that you'll need to set your hostname at the top here for some reason I haven't exactly identified.

SET lemmy.protocol_and_hostname = 'https://lemmy.ca/';

CREATE TABLE private_message_filters (
    id SERIAL PRIMARY KEY,
    phrase TEXT NOT NULL,
    behavior VARCHAR(10) NOT NULL CHECK (behavior IN ('delete', 'mark_read'))
);

CREATE OR REPLACE FUNCTION filter_private_messages()
RETURNS trigger AS $$
DECLARE
    banned_phrase_record private_message_filters%ROWTYPE;
BEGIN
    FOR banned_phrase_record IN 
        SELECT * FROM private_message_filters
    LOOP
        IF LOWER(TRIM(NEW.content)) ILIKE '%' || LOWER(TRIM(banned_phrase_record.phrase)) || '%' THEN
            IF banned_phrase_record.behavior = 'delete' THEN
                NEW.deleted := true;
                RETURN NEW;
            ELSIF banned_phrase_record.behavior = 'mark_read' THEN
                NEW.read := true;
                RETURN NEW;
            END IF;
        END IF;
    END LOOP;
    RETURN NEW;
END;
$$ LANGUAGE plpgsql;

CREATE TRIGGER trg_filter_private_messages
AFTER INSERT ON private_message
FOR EACH ROW
EXECUTE FUNCTION filter_private_messages();

To add filter words:

insert into private_message_filters (behavior, phrase) values ('delete', 'spamtestdelete');
insert into private_message_filters (behavior, phrase) values ('mark_read', 'spamtestread');

If you want to quickly disable / enable filtering while testing:

ALTER TABLE private_message DISABLE TRIGGER trg_filter_private_messages;
ALTER TABLE private_message ENABLE TRIGGER trg_filter_private_messages;

I'll leave it up to you to figure out what phrases to filter on. MAKE SURE YOU TEST. If there's an error, private messaging could break completely. You should not get an error message from the UI while sending a message with a banned word.

Edit: I like flamingos-cant's solution here better: https://lemmy.ca/post/40761824/15209462

1
submitted 3 months ago* (last edited 3 months ago) by Shadow@lemmy.ca to c/main@lemmy.ca

Sorry everyone I know how much you love the attention she gives you, but I've implemented some quick and dirty filtering for private messaging.

We now have the ability to automatically mark PM's as deleted or read, depending on content inside of them. If we accidentally filter something you legitimately wanted (ie, not Nicole) please let me know.

If any other instances would like to implement this, here's the code. Note that you'll need to set your hostname at the top here for some reason I haven't exactly identified.

SET lemmy.protocol_and_hostname = 'https://lemmy.ca/';

CREATE TABLE private_message_filters (
    id SERIAL PRIMARY KEY,
    phrase TEXT NOT NULL,
    behavior VARCHAR(10) NOT NULL CHECK (behavior IN ('delete', 'mark_read'))
);

CREATE OR REPLACE FUNCTION filter_private_messages()
RETURNS trigger AS $$
DECLARE
    banned_phrase_record private_message_filters%ROWTYPE;
BEGIN
    FOR banned_phrase_record IN 
        SELECT * FROM private_message_filters
    LOOP
        IF LOWER(TRIM(NEW.content)) ILIKE '%' || LOWER(TRIM(banned_phrase_record.phrase)) || '%' THEN
            IF banned_phrase_record.behavior = 'delete' THEN
                NEW.deleted := true;
                RETURN NEW;
            ELSIF banned_phrase_record.behavior = 'mark_read' THEN
                NEW.read := true;
                RETURN NEW;
            END IF;
        END IF;
    END LOOP;
    RETURN NEW;
END;
$$ LANGUAGE plpgsql;

CREATE TRIGGER trg_filter_private_messages
AFTER INSERT ON private_message
FOR EACH ROW
EXECUTE FUNCTION filter_private_messages();

To add filter words:

insert into private_message_filters (behavior, phrase) values ('delete', 'spamtestdelete');
insert into private_message_filters (behavior, phrase) values ('mark_read', 'spamtestread');

If you want to quickly disable / enable filtering while testing:

ALTER TABLE private_message DISABLE TRIGGER trg_filter_private_messages;
ALTER TABLE private_message ENABLE TRIGGER trg_filter_private_messages;

I'll leave it up to you to figure out what phrases to filter on. MAKE SURE YOU TEST. If there's an error, private messaging could break completely. You should not get an error message from the UI while sending a message with a banned word.

[-] Shadow@lemmy.ca 140 points 10 months ago* (last edited 10 months ago)

So, I worked on this. I built their in game support system (irc backed!), wrote a bunch of the web auth code, and accidentally once deleted the production user database from the secondary site (whew, disabled and re-replicated from primary).

It was a lot of fun and got me a trip to E3 back when it was the big thing.

It was an interesting concept because no matter what, you would play the american side and fight the terrorists. (you would look like a terrorist to the other team)

[-] Shadow@lemmy.ca 220 points 10 months ago

Sounds like they could use some more sites linking to them to improve SEO. https://clownstrike.lol/

[-] Shadow@lemmy.ca 133 points 10 months ago

https://en.m.wikipedia.org/wiki/Steven_van_de_Velde

Under a treaty between the Netherlands and UK, Van de Velde was transferred to the Netherlands to serve his sentence. The sentence was at that time adjusted in line with Dutch law, and the charge of rape was substituted for that of fornication.[11] After serving a year of his original four year sentence, he was released from prison.[8]

So basically the Dutch think it's ok for a 19 year old to get a 12 year old drunk and rape her.

The victim would eventually go on to self-harm and once overdosed.

Some people are saying it ok because it was consensual, this doesn't make it sound very consensual to me.

Wtf.

[-] Shadow@lemmy.ca 112 points 11 months ago

Bro was doing a graceful windows power off by hitting his front power switch. Not cutting it via the PSU switch.

Results invalid, needs doing over.

[-] Shadow@lemmy.ca 125 points 1 year ago

Oh fuck yes, finally.

[-] Shadow@lemmy.ca 237 points 1 year ago

Before everyone gets their pitchforks out - Person from the image posted on Hacker News, CEO replied and said this charge shouldn't have happened and they wouldn't be charging the client anything.

https://news.ycombinator.com/item?id=39520776

[-] Shadow@lemmy.ca 115 points 1 year ago

Implication is that you're incapable of being self sufficient.

Too broke to move out, your parents still cook for you / do your laundry, can't bring a girl home without your parents hearing you get it on, etc.

[-] Shadow@lemmy.ca 117 points 1 year ago* (last edited 1 year ago)

Watch the video. It just means external to the CPU, not an external device.

They demo the attack on a Lenovo laptop in the first minute of the video.

Edit: nm I just realized that was a 10 year old laptop and they're in all the modern procs. I'm a lot less impressed now.

Sounds like intel has external and amd internal with their ftpm?

[-] Shadow@lemmy.ca 199 points 2 years ago* (last edited 2 years ago)

I personally hate all the reddit cross post stuff, and it seems like the majority of lemmy users do too. I don't understand why people obsess over this as a way to "grow" lemmy.

It doesn't contribute to active conversations, in fact it deters users who reply locally and then never get a response.

Just let lemmy grow organically by making good content and contributing, stop forcing it with mirrors from reddit.

I wonder if we could get the top admins to threaten defederation with any instance that doesn't flag automated posts as bots. This way at least the users have some visibility.

[-] Shadow@lemmy.ca 140 points 2 years ago

This is pretty normal, you get a surge of users and then it tapers off a bit as people don't like it.

Could be a lot worse, take a look at the user graph for threads.

view more: next ›

Shadow

joined 2 years ago
MODERATOR OF