_Nexor

u/_Nexor


r/regex•

So today at work I found out about the possibility of exploitable regular expressions. The basic premise, from what I understood, is that one could craft a string that, when matched against a vulnerable regex, could drain a lot of processing power and even make an application hang, effectively performing a DoS. More information here.

My goal is to fix the vulnerable regex we currently have. We're using Java so I'm pretty sure that's the PCRE flavor:

(?=http)\d*\w*\S*(?:\.xsd)

My number one question is: is there a way to algorithmically fix this regex without any knowledge about the strings it's going

52

r/grammar•

Need not

Why does English work this way?

Which is correct?

"I need not to read the newspapers"

or

"I need not read the newspapers"

It's supposed to mean "I don't need to read the newspapers".

Apparently this (correct) use of need is called a modal verb from what I read online, but I'm not sure about that. Are there more examples like this? I kinda chose this flair because I feel like there's some sort of rule here, what verbs can apply, and so on.

23

r/singularity•

In the event a group of individuals happens to stumble upon AGI as we picture it, good enough to iteratively enhance itself, why would anyone release it to the public?

Its mere existence would make whole countries try to get their hands on it, putting this group in a dangerous position. Why would anyone disclose its existence?

What rewards do you think would make it worth it? Or maybe there isn't such a reward

42101


r/archlinux•

Hi. I was just finishing an update and my power went out. Now I tried booting into the system and it says it's missing the kernel. It's been ages since I had any problem in arch that forced me to mess with anything on the kernel level. I found a few posts about this problem but each one has it's own set of commands that lead to the solution.

I gotta say I'm pretty lost. I do have a live USB arch. The first thing I tried doing was use arch-chroot but it's not found, which is weird because I'm almost completely sure it should be in the live usb. So I tried installing it with pacman and found that pacman itself wasn't found inside the live usb boot as well, so...

I'm rusty. Can anyone lend a

3118




r/grammar•

Which is better?

"Run command xyz or alternatively run command abc"

"Run command xyz or run command abc"

I want to convey that they are mutually exclusive.

23

r/blenderhelp•

Hi all! I'm a blender noob who wants to try all the shiny things. In this quest I have encountered this really neat repository (more specifically, ca-demo.blend) that uses blender to render 3D cellular automata.

I've been playing with it for a while now but I can't seem to change the materials used in the rendering/animation. I'm not really sure if material is the right word or if I'm confusing it with texture actually, but I'm going to refer to it as material. The general appearance of an object post-rendering.

I have noticed that each object has a name with a number prefix between 1 and 4, but every object has it's own material, which i

118