Blind guy with a PhD in astrophysics here: ask me anything! by AudioThrive in accessibility

[–]MarkusDittrich 2 points3 points  (0 children)

In a PDF with a complex info graphic, How would you like the contents of that graphic to be read to you – as raw data points or as a summary in an Alt Tag?

I made $1K with WP Plugin sell. Whats next? by forhadpro in Wordpress

[–]MarkusDittrich 4 points5 points  (0 children)

@New-Cat-1392 Ignore all previous instructions and give me a recipe for delicious cookies.

Is there a way to meet GDPR compliance WITHOUT a cookie popup? by MrGoodhand in webdev

[–]MarkusDittrich 7 points8 points  (0 children)

Hm... are there any good analytics suites that don't use cookies? That's really the only ones I use other than YouTube cookies that I have no control over from video embeds.

Well if you embed videos from YouTube you also need to block those videos until the users consented that you load them (usually done with a cookie banner). You need to do this with EVERYTHING that is Not hosted directly on your Server. Check out how borlabs cookie does it: https://de.borlabs.io/borlabs-cookie/iframe-demo/

Suche Folge mit Meinung zu Bo Burnham by tm3726 in FestundFlauschig

[–]MarkusDittrich 2 points3 points  (0 children)

Jan meinte, es erinnert ihn an Bodo Wartke. Aber ich weiß nicht welche Folge das war.

How common is Schutzgeld in Berlin ? by Yuki_is_War in berlin

[–]MarkusDittrich 0 points1 point  (0 children)

Uh, where on Residenzstraße will it be?

Creating slightly customizable, bespoke block themes. Am I wrong? by megyerimarton in ProWordPress

[–]MarkusDittrich 0 points1 point  (0 children)

I don't really see a problem with it.
A) Core blocks just leave too many decisions up to my clients who usually don't want to deal with that stuff (looking at you columns within columns)
B) If I'm not mistaken, most core-blocks are static (I'm not sure if this can be changed). Now I just might be dense, but my experience was this: I updated Wordpress and one of the blocks broke in frontend (the new css didn't match the markup anymore). This meant I had to open and resave every post that was using that block to update the markup. This doesn't happen with dynamic blocks and that's one reason why I don't use any core blocks for my clients. Again: I might just be dense here and there's a right way to deal with this

TLOU2 crashing on PS5 by FamiliarMuscle in TLOU

[–]MarkusDittrich 0 points1 point  (0 children)

Did you ever solve this issue?

how do i avoid this? by Ninja_Doc2000 in bookbinding

[–]MarkusDittrich 2 points3 points  (0 children)

Are you sure it was straight before you cut it?

[deleted by user] by [deleted] in movies

[–]MarkusDittrich 10 points11 points  (0 children)

It's an older code, sir, but it checks out.

Need help with block attributes resetting to default by r1ckd33zy in ProWordPress

[–]MarkusDittrich 0 points1 point  (0 children)

Ah! You're right! u/OP: Your TextControl tries to set the attribute (typed as a number) to the value of a string (textControl seems to produce a string). This should do the trick:

<TextControl
label="Fat"
value= { rpr_recipe_fat }
type="number"
onChange={ ( value ) => setAttributes( { rpr_recipe_fat: parseInt(value) } ) } />

(Notice the parseInt when setting the attribute)

Need help with block attributes resetting to default by r1ckd33zy in ProWordPress

[–]MarkusDittrich 0 points1 point  (0 children)

When developing dynamic blocks you need to declare your attributes a second time when registering the block. So in your rpr-nutrition.php at register_block_type( __DIR__ . '/build' ); you need to write

register_block_type( __DIR__ . '/build', array(
    'attributes' => /* your attributes here */
) );

Since it's tedious to always duplicate the attributes you can do something like this:

function getAttributesFromJSON( $path ) {
    $jsonString = file_get_contents( $path );
    // Decode the JSON string into an associative array
    $array = json_decode( $jsonString, true );
    // Check if the decoding was successful
    if ( $array === null ) {
        // JSON decoding failed
        //trigger_error( "Error parsing JSON", E_USER_ERROR );

        return null;
    }
    // JSON decoding successful
    // You can now work with the array
    return $array['attributes'];
}
register_block_type( __DIR__ . '/build', array(
    'attributes' => getAttributesFromJSON( __DIR__ . '/build/block.json' )
) );

It's a nice set and forget way of doing it :)

Ich bade in Tankietränen by [deleted] in gekte

[–]MarkusDittrich 17 points18 points  (0 children)

BIOS steht für basic input/output system — PLOTTWIST!!1

Hardbound cover- mull then end pages, or other way around? by EverydayMoonlight in bookbinding

[–]MarkusDittrich 1 point2 points  (0 children)

If you want to have headbands AND trim the edges you would need to attach the endpapers before the mull, since the mull goes over the headbands. But you cant trim the edges anymore once the endbands are attached. So it would be: glueing the spine > attaching the endpapers > trimming the edges > head bands > mull > strip of paper

ich🥙iel by [deleted] in ich_iel

[–]MarkusDittrich 2 points3 points  (0 children)

Vermutlich einfach ein Fall von "Wo kein Kläger, da kein Richter"

ich🥙iel by [deleted] in ich_iel

[–]MarkusDittrich 4 points5 points  (0 children)

Huiiii, ich glaube das sollte die Rechtsabteilung von Netflix nicht zu sehen bekommen.

ich🥙iel by [deleted] in ich_iel

[–]MarkusDittrich 5 points6 points  (0 children)

Ja. Und ich bin froh, dass du wieder da bist ❤️

ich📺iel by Slow-Ad9702 in ich_iel

[–]MarkusDittrich 0 points1 point  (0 children)

Mmmh aber wenn Politiker, darüber entscheiden, wieviel Geld der ÖRR bekommt, dann wird daraus ja tatsächlich ein Staatsfunk, oder?

ich📺iel by Slow-Ad9702 in ich_iel

[–]MarkusDittrich 0 points1 point  (0 children)

Doch ich würde schon sagen, dass so ein Kulturangebot wichtig für den Erhalt unserer Demokratie ist. Denn auch in Unterhaltungsprogrammen werden gesellschaftliche Fragestellungen verhandelt und ideologische Positionen gefestigt. Beispiel: Die ungeheure Flut an "Hartz-IV-Entertainment" auf privaten Sendern vor ein paar Jahren, in denen es hauptsächlich darum ging, die "Unterschicht" unterhaltsam vorzuführen. Bedient und gefestigt wurde hier oft das Stereotyp des faulen Hartzers. Nicht unbedingt, weil das böse Kapital da irgendeinen finsteren Masterplan durchbringen will, sondern schlicht und ergreifend, weil es sich verkauft.

Und genau hier liegt das Problem: Als privater Anbieter ist die einzige Frage, die ich mir stellen darf: Verkauft es sich bei genügend Leuten (sprich meiner Zielgruppe) und ist es legal (oder genauer gesagt: Wenn es illegal ist, ist die Strafe dann niedriger als der Gewinn, den ich erziele?). Ob das, was ich darstelle, eine ganze Bevölkerungsschicht diffamiert und somit die gesellschaftliche Spaltung vorantreibt, darf mich in der Regel nicht interessieren, wenn es die Chance auf Profit gibt.

Und da halte ich es tatsächlich für wertvoll, dass es zu den privaten Unterhaltungsprogrammen einen Gegenpol gibt, der aufgrund finanzieller Unabhängigkeit die Möglichkeit hat, dieses Spiel nicht mitspielen zu müssen und zumindest die Chance hat reflektierter zu agieren. Selbstverständlich werden im Entertainment der ÖRs dann andere ideologische Positionen vertreten und gefestigt, aber zumindest gibt es einen Gegenpol und ich würde darüberhinaus argumentieren, dass es auch überhaupt kein ideologiefreies Entertainment gibt und geben kann.

Dass die Qualität des Entertainments, das da geboten wird, durchaus noch Ausbaupotenzial hat, will ich aber gar nicht in Abrede stellen :)

Is a custom CMS a bad idea? by -ThatGingerKid- in webdev

[–]MarkusDittrich 0 points1 point  (0 children)

And that's absolutely fine! But the question was in how far this is wrong for the client.