|
JavaScript code:
|
# ? Oct 9, 2018 22:24 |
|
|
# ? Jun 7, 2024 23:25 |
|
Double-postin':XML code:
Oh, whoops, except you can still do e=%31 and see the dump anyway. Oh well.
|
# ? Oct 9, 2018 23:53 |
|
Magissima posted:What about for those of us not stuck in the Android ghetto? Kotlin works anywhere Java works. Android is the main place it's used but far from the only place.
|
# ? Oct 10, 2018 00:27 |
|
TheresaJayne posted:Each language has its place or it wouldnt have been created. (except that religious language and operating system - that is idiotic) TempleOS and HolyC were created for noble and pure reasons, and I'm not being ironic in the least. They were created to be a modern home computer system in the vein of the Commodore 64, with all the creative freedom that came with them, and parts of their design are sheer genius. They were also created out of religious devotion: god told Terry to build him a temple, and he built him a temple in the only way he knew. Terry was insane and a douchebag, but he deserves mad respect for what he did and why
|
# ? Oct 10, 2018 00:28 |
|
CPColin posted:
Please don't post forums code
|
# ? Oct 10, 2018 16:27 |
|
Sereri posted:Please don't post forums code Sorry. How about this sequence of events:
I think this vendor isn't very good at this "security" stuff.
|
# ? Oct 10, 2018 17:36 |
|
CPColin posted:Sorry. How about this sequence of events: I guess they could have shown you the page anyway when WFFORM was zero, so it could have been worse....
|
# ? Oct 10, 2018 18:40 |
|
CPColin posted:I think this vendor isn't very good at this "security" stuff. Is this a vendor you could dump?
|
# ? Oct 10, 2018 20:21 |
|
redleader posted:Is this a vendor you could dump? I wish!
|
# ? Oct 10, 2018 20:28 |
|
node.js would silently stop calling setTimeout or setInterval callbacks once your app hit 25 days' uptime. Choice maintainer comments: quote:For what it's worth you are not supposed to rely on timers staying running for a month. Uh huh. quote:Note that what I meant by that isn't that your services aren't expected to be up for a month. It's that redundancy is expected (2+ instances behind a load balancer) so servers are resilient to failure. Right, the fix is to have two node instances up for 25+ days so they can take turns not calling their callbacks.
|
# ? Oct 10, 2018 23:25 |
|
pokeyman posted:Right, the fix is to have two node instances up for 25+ days so they can take turns not calling their callbacks.
|
# ? Oct 10, 2018 23:44 |
|
I'm trying to remember an old Ruby horror. It was a graphics manipulation library, someone noticed it performing poorly, the root cause was something like "per-pixel methods relied on the method failing to be found at every level of the hierarchy and hitting the one defined at the top level". Anyone recall what I'm talking about?pokeyman posted:Right, the fix is to have two node instances up for 25+ days so they can take turns not calling their callbacks.
|
# ? Oct 11, 2018 00:34 |
|
To be fair, having a single server up continuously for a month without interruption is not ideal.
|
# ? Oct 11, 2018 07:27 |
|
return0 posted:To be fair, having a single server up continuously for a month without interruption is not ideal. why not
|
# ? Oct 11, 2018 07:50 |
|
QuarkJets posted:why not The closest thing to a correct answer is kernel upgrades, but a lot of web developers will say that restarting your server periodically is the best solution to memory leaks.
|
# ? Oct 11, 2018 10:42 |
|
Keeping a server running without a break for such a long period of time could violate local labour laws, and gives the server a chance to take a quick breather to gather their thoughts.
|
# ? Oct 11, 2018 12:32 |
|
This website is available 9-5 Monday through Friday
|
# ? Oct 11, 2018 13:03 |
|
Magissima posted:This website is available 9-5 Monday through Friday Literally every government site that accepts payments. If I make a payment at 6pm on Friday for student loans it doesn't post to my account until Tuesday or wednesday
|
# ? Oct 11, 2018 13:04 |
|
QuarkJets posted:why not If you're not deploying every two weeks you're not agile and therefore bad and wrong. Don't question the time period - it must be two weeks because that is the agile way. creatine posted:Literally every government site that accepts payments. Balance reconciliation takes multiple business days because the bank can hold the money and earn penny shavings off of it for free and so has no incentive to make the process faster. Munkeymon fucked around with this message at 13:35 on Oct 11, 2018 |
# ? Oct 11, 2018 13:32 |
|
Canada Revenue Agency login is only available 21 hours a day. They have maintenance daily from 3am to 6am est. Lame, I like managing my taxes at 4 am.
|
# ? Oct 11, 2018 15:53 |
|
xtal posted:The closest thing to a correct answer is kernel upgrades, but a lot of web developers will say that restarting your server periodically is the best solution to memory leaks. We rolling replace hosts frequently in case any prior vulnerability caused that host to be owned as one plank of a defence in depth policy.
|
# ? Oct 11, 2018 17:26 |
|
return0 posted:We rolling replace hosts frequently in case any prior vulnerability caused that host to be owned as one plank of a defence in depth policy. Oh snap I like that idea
|
# ? Oct 11, 2018 18:06 |
|
Munkeymon posted:Oh snap I like that idea I like it too, and hadn't thought of it when I made my post. But I think it would also have hardly any impact in practice. The host would get immediately, automatically re-owned unless the reboot fixed the vulnerability, which is the time when you would do a manual reboot. Since it would force the attacker to try again, it may be valuable for defense in depth if the cost is low enough, but it doesn't add any real security. xtal fucked around with this message at 18:18 on Oct 11, 2018 |
# ? Oct 11, 2018 18:15 |
|
Consider a hypothetical vulnerability, either in application code, kernel, etc., which owns a host and allows arbitrary fuckery, such that the fuckery survives a subsequent reboot and/or patch. It’s to mitigate this by reducing the scope of the impact by replacing the host. It’s not a silver bullet, but I think it’s a worthwhile and cheap addition to the defence.
|
# ? Oct 11, 2018 18:53 |
|
Does replacing the host simply entail wiping and reinstalling? If you reinstall the same vulnerability, the attacker can just repeat it. But if you replace as part of an update after a vulnerability fix, you also close any backdoors or similar left after the vulnerability first provided access.
|
# ? Oct 11, 2018 19:39 |
|
Replacing in this context refers to taking a host out of the load balancer and returning it to our cloud provider while simultaneously provisioning and bootstrapping a new host, and adding it to the load balancer.
|
# ? Oct 11, 2018 20:37 |
|
Co worker asked me to look at an SQL query that was returning odd results for him. It's selecting a series of values from a historic table, where he wants only the most recent value. I'm actually kind of amazed it nearly worked:code:
|
# ? Oct 11, 2018 20:44 |
|
1. gently caress off 2. gently caress offffffff
|
# ? Oct 12, 2018 11:13 |
|
Jaded Burnout posted:1. gently caress off I'm going to bet that this is the product of someone who learned to code at university while doing a thesis of some kind. I'll also bet that they claim that they understand it just fine...
|
# ? Oct 12, 2018 11:27 |
|
AstuteCat posted:I'm going to bet that this is the product of someone who learned to code at university while doing a thesis of some kind. I found the culprit for the copy/paste block of garbage single-letter variables. Of course *some* people think it's good code.. https://stackoverflow.com/questions/149055/how-can-i-format-numbers-as-dollars-currency-string-in-javascript/149099#149099
|
# ? Oct 12, 2018 12:14 |
|
Jaded Burnout posted:2. gently caress offffffff IMO you should change the variable names so that they spell out "gently caress this"
|
# ? Oct 12, 2018 13:58 |
|
Jaded Burnout posted:I found the culprit for the copy/paste block of garbage single-letter variables. Of course *some* people think it's good code.. A choice quote: Someone who probably calls themselves a 'rockstar' un-ironically posted:Wow, sure the code may not be the prettiest, but if you're worth your salt as a 'programmer', it is definitely not overly complicated or undecipherable, assuming you know how to read code, that is.
|
# ? Oct 12, 2018 14:31 |
|
Hammerite posted:IMO you should change the variable names so that they spell out "gently caress this" And it's half way there already!
|
# ? Oct 12, 2018 14:36 |
|
The best part of that SO post is the guy in the comments who chose to focus on the use of x == undefined instead of typeof(x) === 'undefined'.
|
# ? Oct 12, 2018 14:36 |
|
Jaded Burnout posted:I found the culprit for the copy/paste block of garbage single-letter variables. Of course *some* people think it's good code.. Also, you all missed the real obvious significance of these single letter variable names: c = "count of significant figures after the decimal point" d = decimal point t = triple digit separator s = sign i = I gave up trying to think of how to describe this j = justify using a triple digit separator Khorne fucked around with this message at 15:50 on Oct 12, 2018 |
# ? Oct 12, 2018 15:47 |
|
Khorne posted:Also, you all missed the real obvious significance of these single letter variable names: I actually wound up digging this up because I needed to find someone who had translated them. `t` could also be "thousands" and `s` is presumably "symbol". The whole thing needs replacing but I just removed half the configuration since we were only ever passing in `0` as `c` and everything else stayed default.
|
# ? Oct 12, 2018 16:02 |
|
Jaded Burnout posted:I found the culprit for the copy/paste block of garbage single-letter variables. Of course *some* people think it's good code.. Someone's spent too long reading minified code and thinks it's actual code. LOOK I AM A TURTLE posted:The best part of that SO post is the guy in the comments who chose to focus on the use of x == undefined instead of typeof(x) === 'undefined'. But what if x is null??
|
# ? Oct 12, 2018 17:31 |
|
Doom Mathematic posted:But what if x is null?? Ah, a nihilist
|
# ? Oct 12, 2018 18:15 |
|
Jaded Burnout posted:I actually wound up digging this up because I needed to find someone who had translated them. `t` could also be "thousands" and `s` is presumably "symbol". Also it doesn't cover east asian numbering systems, which divide on ten thousands for culturo-linguistic reasons
|
# ? Oct 12, 2018 20:41 |
|
|
# ? Jun 7, 2024 23:25 |
|
Tarezax posted:Also it doesn't cover east asian numbering systems, which divide on ten thousands for culturo-linguistic reasons .... lakh, crore....
|
# ? Oct 12, 2018 20:54 |