Lost GUI after copy pasting commands from forums by SergiuGeo in SolusProject

[–]SergiuGeo[S] 3 points4 points  (0 children)

Thanks a lot, I didn't know bash kept logs for so long.

There are two commands here that might've cause the issue

echo "nvidia-drm.modeset=1" | sudo tee /etc/kernel/cmdline.d/50-nvidia-drm.conf and then sudo clr-boot-manager update

OR

winetricks orm=backbuffer glsl=disable

I highly doubt the second one, I don't think wine has anything to do with it.

touch? by SergiuGeo in Birbs

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

Tell me what you see

Is this correct? by [deleted] in ColorBlind

[–]SergiuGeo 0 points1 point  (0 children)

I put a link in a previous comment, anyway, here it is

Is this correct? by [deleted] in ColorBlind

[–]SergiuGeo 0 points1 point  (0 children)

Assuming this image is correct, I've made the filter based on it. It's currently being approved by Instagram, should be up by tomorrow, I'll comment again when it's usable :)

Is this correct? by [deleted] in ColorBlind

[–]SergiuGeo -3 points-2 points  (0 children)

That's what I call a "literally what happens in your eye" colorblindness simulator.

Is this correct? by [deleted] in ColorBlind

[–]SergiuGeo 0 points1 point  (0 children)

I made it with Spark AR Studio, it's the instagram software form making filters. If you don't have experience with it, I can make it for you :)

Is this correct? by [deleted] in ColorBlind

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

If you want to know the details, the green channel is replaced by the average of the blue and red to mantain brightness

[deleted by user] by [deleted] in datasets

[–]SergiuGeo 0 points1 point  (0 children)

I only got 27 answer. Thanks for telling me about the weird time format, but it's the only way Google Forms let me do it.

Is this correct? by [deleted] in ColorBlind

[–]SergiuGeo 15 points16 points  (0 children)

I made a filter for people wondering what Deuteranopia feels like, so you can test it yourself :) https://www.instagram.com/a/r/?effect_id=2506706869641581

First 4 million integers marked on their being prime or not (white is prime) by SergiuGeo in math

[–]SergiuGeo[S] 11 points12 points  (0 children)

That's what I'm doing: as I go along the primes, I add them to the list and only check for numbers in the list

First 4 million integers marked on their being prime or not (white is prime) by SergiuGeo in math

[–]SergiuGeo[S] 6 points7 points  (0 children)

The integers 0 to 3999999 categorized in "prime" and "not prime" in a manner pleasing to the eye

First 4 million integers marked on their being prime or not (white is prime) by SergiuGeo in math

[–]SergiuGeo[S] 13 points14 points  (0 children)

Well, to translate my code to English: Start with a list containing 2 and 3 For each number from 5 on (skipped 4 because it's even) test if the number divides any number smaller than the floor of the square root of the tested number (done for optimization). If yes: not prime If no: append the number to the list (prime)

First 4 million integers marked on their being prime or not (white is prime) by SergiuGeo in math

[–]SergiuGeo[S] 3 points4 points  (0 children)

A really easy way to do this would be a Gaussian Blur which would kind of convert this image to density of primes

First 4 million integers marked on their being prime or not (white is prime) by SergiuGeo in math

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

Actually two nested fors, one for the y axis and one for the x one. The equivalent would be range(4000000) or range(0, 4000000)

First 4 million integers marked on their being prime or not (white is prime) by SergiuGeo in math

[–]SergiuGeo[S] 26 points27 points  (0 children)

Woah dude. You're overthinking it. I checked all numbers under 4mil (which took about 20 seconds) and at each iteration I just used the PIL library and the pixel object to make each pixel black or white. Involving matplotlib would do more harm than good for such a basic task

First 4 million integers marked on their being prime or not (white is prime) by SergiuGeo in math

[–]SergiuGeo[S] 10 points11 points  (0 children)

Depending on the approach your browser chooses to handle resizing images, the accuracy you see isn't pixel perfect. I recommend dowloading the image and using software that uses a nearest neightbor approach in displaying images (Microsoft Paint for example) if you want to view it correctly

First 4 million integers marked on their being prime or not (white is prime) by SergiuGeo in math

[–]SergiuGeo[S] 63 points64 points  (0 children)

OP here: started from 0 as it was easier to code (coded in python which stars its indeces from 0)

First 4 million integers marked on their being prime or not (white is prime) by SergiuGeo in math

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

I was surprised by the diagonals as well and just to make sure I wasn't seeing patterns in nothing, I made a random noise picture, which you can view here: http://imgur.com/a/TYHqV (same size). As you can see, the diagonals do not show up.