Skip to content

u/Arheisel

In this archive from Jul 2018 to Oct 2023

8
posts
17
comments
5
media
210
score
2 saved before deletion

Does anyone knows if as light travels through space the duration of these events gets stretched?

What I'm going at is if a quick explosion that maybe lasts a couple seconds or minutes can get stretched and be observable for an entire day, as if some photons got slightly ahead of the others in the thousand of years they took to get here.

1 points

With PHP you can't create your own memory leaks

That's absolute bullshit, with PHP you can:

  • Write a SQL request to a file with a random name.

  • Call a C program that forks off to a FORTRAN program, return, and tell PHP to wait 1 minute.

  • Use the FORTRAN to read the file, interpret the SQL and then execute it on a csv repurposed as a noSQL DB with no simultaneous read/write protection.

  • Write the result to another file for PHP to read after the timeout and leave the FORTRAN program on a while loop and the file handlers open.

  • Quote the client a beefy 24-core, 128GB of RAM system to keep up with the bad code.

  • Use a cron job to reboot the server once a month in the busiest moment possible.

  • Make everything at least 10,000 lines worth of spaghetti code and ensure your employment forever.

  • When the disk is full you just delete 90% of the request/response files at random and hope none of them is a running batch job.

  • Also an accounts.php with a hardcoded array is required. And to maintain sessions you just pass along ?username=usr as part of the URL

-2 points

You sound a lot like those business owners that like to call at 2 am because all their financial records have been encrypted.

Think of it this way, would you rather not have seat belts in your car just because it's bodywork is designed to absorb the impact energy? You never crashed but would you risk it?

Would you go skydiving without a second parachute? It almost never fails anyway, just in movies right?

I mean yes, it's rare, but why risk it for the sake of it? You're getting nothing in return. Routers were and will continue to be attacked, all it takes is a missing patch on something important. Windows desktop has a firewall for this very reason, so does Linux. Why poke holes in it just because?

1 points

Js would not handle any security, it's only job would be to read the csv and transfer it. That would avoid me the trouble of managing files and it just becomes a variable in my script.

What the user sends me it's still up to him, but because of the nature of the input I'm not expecting any special characters other than @, so I can strip them all away with 0 consecuence.

1 points

The CSV is for bulk user creation, it should just be a name and an email address. Then the system should create an username and email the user to change his automatically generated password.

I'm aware this can be used for spam but this functionality is only for paying customers who ideally won't have a need to send spam.

All in all spam would just be detected by the hosting provider and blocked, and not break my system.

2 points

End of this list.

Back to top

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

โ†orโ†’
Previous / next file
โ†‘orโ†“
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.