« first day (2559 days earlier)      last day (2289 days later) » 

8:01 AM
Okay, admin logs first. They didn't turn on the monitoring system on AWS
Don't know if that makes the logs disappear but who knows
Second, the HTTPS stuff is a mess and they haven't yet made time to transition everything over
But yes, a lot of this is unsafe and unwise
 
Anonymous
I'm going to say this in the nicest way possible: your friend has no idea what he is doing when it comes to webhosting. He has failed to implement even the most basic of security measures, and without logs, he cannot determine the cause of any exploits. He has a moral (and possibly legal) obligation to tell all of his customers about the incident.
 
Anonymous
Also he needs to hire a security professional ASAP to fix all of the problems. If he doesn't, stuff like this (and worse) will continue to happen, and his business will fail.
 
Anonymous
If the hacker was able to access the server to change files, they were also likely able to access the DB and read all of the customers' information.
 
@Pavel Everything's working perfectly now, thanks for the help. Also I remembered to get rid of packagekit :D How do I install discord though? I ran the command you told me to run and I can't seem to figure out where it puts everything
 
@Mego Fair points and well made
Alright I'm going to talk to the boss ASAP
 
while'['in x: for starters
for i in range(int(x[b+1])):w+=c
 
Anonymous
@ManishKundu for i in range(int(x[b+1])):w+=c -> w+=c*int(x[b+1])
 
Actually, since w is ''
 
Anonymous
Or just w=c*int(x[b+1])
 
since w starts as '' you might as well make that w=c*int(x[b+1])
 
Anonymous
8:33 AM
ninja'd
 
Ninjas, all of you :D
 
so then x=x[a:]+c*int(x[b+1])+x[b+2:]
which then lets you get rid of the declaration of c as well
 
Basically most of the time you can just try to remove each spaces and see which of them doesn't cause syntax error or wrong answer.
Why is HyperNeutrino here?
 
:42595386 No, he's setting x in the while loop
 
it's never too 3 am for anything
^^ yeah i realized as i was looking at the indentation levels :p
so -40 bytes combining all suggestions together
also, since you no longer have nested blocks, move everything into that line
 
8:36 AM
thanks
yeah right.
 
also, don't name your function b and then declare b in the function :p i mean apparently nothing broke but it bothers me :p
 
i once thought about it too xD
but I didnt bother cuz it didnt harm the code
 
i feel like turning this into a recursive lambda but i'm not sure if that would save bytes
 
Anonymous
8:39 AM
@HyperNeutrino Why Cython?
 
No lambda because there are assignment.
 
@Mego ask OP idk :P
 
Promote new TIO language, probably?
 
lambda itself takes 6 bytes. if it was something like l, then it would have been cool
 
@user202729 well that would just require nesting lambdas but that takes a horrible amount of space because python lambdas are dumb
hm could this be done recursively using regex...
 
8:42 AM
why does the flip-flop challenge has so less entries?
 
Don't worry, it has more answers than the toroidal challenge...
 
(explanation: if isinstance(a,int), ~a is nonzero if and only if a is not -1)
 
Anonymous
I tried writing a regex solution but then realized my sin
 
this keyboard layout is annoying. whenever i try to press end i open the logout dialog because the power button is where the end button would be :p
 
8:45 AM
TFW you write a solution (for this) that works great on almost all of the test cases but gives MemoryError on the largest one... :(
 
Change it.
 
I can't change the power button...
 
(keytweak for windows, something I don't know for linux)
 
pretty sure power button is hardware-wired? idk
 
Is it more "special" than other buttons?
 
8:46 AM
@Mego embrace the dark side ;)
 
No, if it doesn't kill your OS then it's software.
 
if i hold it down then it cuts the power
 
... so it's probably hardware. So just set the action when press power button to "do nothing".
 
i guess
 
Anonymous
@HyperNeutrino s/dark/zalgo
 
8:47 AM
(then don't try to hold it)
 
Mego, I've figured out that it wasn't our project to begin with (thank Christ)
 
well i only ever tap it so making it do nothing would probably work fine :p
dilemma: re doesn't support recursive regex but regex doesn't support passing a lambda for the replacement argument for sub...
 
We inherited it from "the muppets who wrote this site" and they hardcoded "http:" everywhere
This is a project at my workplace, incidentally, though it was a classmate of mine that I was discussing this project with
 
Anonymous
@user202729 Usually power buttons are connected directly to the MOBO on the ACPI pins
 
8:49 AM
So at least my job isn't dumb. It's just a pain in the ass to fix everything
 
Anonymous
@Sherlock9 I'm sure muppets wasn't the word used :P
 
on any decent computer holding down the power button for long enough causes it to die
 
I am quoting
Because he's typing in the company group chat
It probably wasn't the only word used though :D
 
Anonymous
I'm used to much more vulgarity from security people :P
 
More quotes:
"https does't[sic] allow loading any insecure assets (css, js, images)
So shit breaks if we force https right now"
Well, he's the CTO, so not deep enough in the security bits, I expect :P
 
Anonymous
8:51 AM
Well then make your assets secure :P
 
Anonymous
Load them over https. Problem solved.
 
The other thing is we don't use PHP. We use React.JS
So this is more of a mess to fix than usual
Okay I'll suggest it
 
Anonymous
I'm not really familiar with React but I am familiar enough with PHP to know that literally anything else is better :P
 
Anonymous
I really should just start a security consulting business :P
 
I'm sure they'd agree :D
 
Anonymous
8:53 AM
Of course, I can't, because I just signed a full-time contract earlier today
 
Mazel tov!
May your work and colleagues be good to you
And may your bugs be ever easy to excise
 
@Mego Congratulations. What is your new job?
 
Anonymous
@Adám Software developer at a local SaaS startup
 
@Mego Yay! That's awesome!
 
Anonymous
It's not quite as much pay as I'd like starting out, but they do aggressive raises and have great benefits. Plus it's about a 10 minute drive from my apartment.
 
9:05 AM
That's good
When do you start?
When do you disappear to go do work?
 
Anonymous
Feb 12 is my starting date
 
Anonymous
I'm still gonna be around :P
 
9:25 AM
My boss's response to "load the assets over HTTPS"

"Well yaaaaa
But we have to find all that stuff in the code"
Christ, the more I hear about these original programmers, the worse everything sounds
 
Write everything from scratch.
 
@Sherlock9 Can't you just search for http:// ?
 
That is the current plan
 
Anonymous
Replace http:// with //. Easy enough.
 
Someone may write "htt" + "p://"...
 
9:32 AM
They did that. It works, "but we can't force redirect the api endpoints yet"
And I think that's because of the mobile app
 
Anonymous
nginx: server { server_name whatever; listen 80; return 301 https://$server_name$request_uri; }
 
Anonymous
Or whatever the equivalent is for whatever reverse proxy is being used
 
Anonymous
It's so simple, it only took me an hour to set it up for PPCG v2 :P
 
Ah, not a mobile app. PHP stuff
Thanks Mego, pasted it to them
"But we can't put that redirect on all endpoints"
Alright, I'm going back to Tametsi now
It's less mindbendy XD
 
Anonymous
@Sherlock9 Sure they can :P
 
Anonymous
9:41 AM
Seriously though, I should send your boss an invoice :P
 
Anonymous
There's a difference between "we can't do that" and "we don't want to expend the effort to do that". If you don't put in the effort to do it right, don't be surprised when things keep going wrong :P
 
I get the feeling that they're doing this in steps
Because we only have the one PHP dev
Or at least not very many
But yeah, I don't know if they don't want to send people bug-hunting or they want to patch other stuff first
*don't want to send people bug-hunting yet
Also, any invoice you send is probably coming out of my pay since I'm the one who did the consulting :P
 
Anonymous
Lol
 
noooooo my money ;_;
Seriously though, I think they're a good coding house stuck with a bad job
Ah wait. They made a "mistake in the mobile app (hard coded)", which is why the redirects will be a PITA
More details later when they aren't being explained to me over WhatsApp
Thanks a bunch, Mego
Once again, I owe you one
 
Anonymous
No worries :)
 
9:56 AM
@Mr.Xcoder ES6, 27 bytes: n=>(1<<32-Math.clz32(n))+~n
 
10:15 AM
@DJMcMayhem @Pavel Matlab is very common in telecommunication engineering, at least from my experience. For research and simulation of communication systems, it is the standard language. Octave is used less often
 
11:00 AM
@Pavel I do too
 
In mathematics, especially in the area of abstract algebra known as combinatorial group theory, the word problem for a finitely generated group G is the algorithmic problem of deciding whether two words in the generators represent the same element. More precisely, if A is a finite set of generators for G then the word problem is the membership problem for the formal language of all words in A and a formal set of inverses that map to the identity under the natural map from the free monoid with involution on A to the group G. If B is another finite generating set for G, then the word problem over...
 
11:41 AM
Is there amy difference between put on hold and closed?
 
12:00 PM
@Mego Congratulations, that’s awesome!
 
Any feedback?
Title text: "Next lesson: Wednesday at 18:30 UTC"
 
@Adám I don't get the 3 1∘⍴ D:
 
@J.Sallé Well, then you need to head over to The APL Orchard!
 
I've only been able to think of convoluted solutions to this bracket expansion problem codegolf.stackexchange.com/questions/154345/bracket-expansion in J, and would love to see an expert solution. Any J experts here I could entice to answer? @Adám maybe you could put in a request to your friend Marshall?
 
@Jonah I can ask him. But I'll also attempt a pure APL solution, which you should be able to translate.
 
12:12 PM
@Adám perfect, ty
will check back later today
 
Can functions take argument from global variable?
 
@user202729 You mean as input method in a challenge or in general in FP?
 
What is FP?
floating point?
 
@user202729 Functional Programming.
 
In a challenge.
 
12:17 PM
@user202729 No. You may not assume a pre-set value in a variable.
 
This answer takes input from the global variable n.
Can I returns a 2D array of integers (this answer) or must I format it?
 
@user202729 It does say "draw", but I'd ask OP anyway.
 
I doubt the OP will reply. Last seen in '17.
May we output an array of arrays of ints? — TheLethalCoder Jun 12 '17 at 12:32
(no reply)
 
CMC: given a positive integer n, output the maximum length of output of a brainfuck program with n characters among those that halt
@Adám ^ :)
 
10 hours ago, by user202729
@LeakyNun Impossible.
 
12:22 PM
:/
CMC: given a brainfuck program, return the shortest brainfuck program with the same behaviour when given no input
 
0
A: Sandbox for Proposed Challenges

NathanielSum an array on GPU Write a program or function that: Takes as input a list or array of 128 integers Sends that array to a GPU Performs a calculation on the GPU to sum the elements of the array Gets the answer from the GPU, and displays it So your program will simply return the sum of its in...

 
> "for almost each object it is not possible to compute even a lower bound for its Kolmogorov complexity (Chaitin 1964), let alone its exact value"
 
:/ u guys r ruining every cmc of mine
 
@LeakyNun Every CMC of yours is impossible.
 
@Adám :'(
 
12:26 PM
Solvable CMC: given a bf program, return the shortest bf program (with length n) with the same behaviour (output the same thing) and terminate in less than 100**n steps, when given no input.
 
(y)
 
@NewSandboxedPosts Does anyone have an environment such that this is verifiable?
 
12:43 PM
Again,
24 mins ago, by user202729
Can I returns a 2D array of integers (this answer) or must I format it?
Have we got Latex back?
 
nope
there's a clear consensus but the mods need to talk to SE staff to flick the switch
17
Q: Can we have Mathjax back?

totallyhumanIt's been a couple years since PPCG voted against Mathjax. Since then, the vote ratio has changed significantly, and most seem to be in favor of Mathjax. However, it is status-completed and no change will be enacted on the current votes. The issue then was weird-looking search results, odd inde...

 
1:14 PM
Will SE staff give us a design with latex?
 
nope
definitely not :P
 
 
2 hours later…
2:52 PM
@HyperNeutrino It does it automatically, might just take a bit. It'll appear in your "start" menu.
 
3:03 PM
The problem started to occur everywhere...
 
3:18 PM
probably the longest post i've seen him make
yay security?
 
@Mego What does SaaS mean?
 
Software as a Service?
 
0
A: Sandbox for Proposed Challenges

Nathan MerrillCasinos and Gamblers king-of-the-hill This is a two-part KoTH: You either play as a casino, or as a gambler. Casinos offer bets, and gamblers choose bets to take. Casinos want to make money, gamblers want to have more money than others. Read that sentence again, it is the core concept here. ...

 
@Pavel I've waited overnight and I still can't seem to find it...? I maybe did something wrong idk
 
@Adám I plugged it into Dyalog and it just printed 3 1∘⍴ right back without evaluating it.
 
3:33 PM
@Pavel It is a tacit function. It needs an argument, e.g. ⊂'Apple'
 
@HyperNeutrino Huh. I don't know why that might be
Maybe you'll have more sucess installing it from something else?
 
> As an EU citizen I am grateful for the ability of the EU to moderate the effects of America's extremism, at least in Europe. America helped save us from the worst of our own in the past. Maybe we can return the favour some day.
@Poke ^
Yay for that comment.
 
@Pavel I tried downloading it from discordapp.com and I can start it up but it just gives a blank grey screen
 
@HyperNeutrino Also try service discord-installer start && service discord-installer enable
 
Failed to start discord-installer.service: Unit packagekit.service not found
 
3:36 PM
@HyperNeutrino Yeah that's the same issue I had. It works if you start the executable from the command line, sometimes.
 
Wait why is the discord installer a daemon
 
because notifications when you get stuff if it's not active
@Pavel hm okay. I'll try that
 
@betseg The Copr repo got taken down for legal reasons, so now there's a service that automatically keeps it updated.
@HyperNeutrino ಠ_ಠ I think that means you have to install PackageKit
 
yeah it looks like that is the case :/
after I run the installer I might be able to get rid of it?
or is that not how it works
 
Well, I don't have PackageKit and it works just fine
 
3:38 PM
hm ok
 
Solution: use Arch, I have discord and it's up to date
 
well I ran the command again and it didn't immediately die so I guess that's a start :P
 
I remember when I first installed discord on linux last year it was a great PITA
Had to install a bunch of useless stuff before it would actually work, and then the sound settings were completely screwed.
 
@HyperNeutrino For the record, the snap app has the same issue as the official targz with the stuck gray screen.
 
hm ok.
The service command supports only basic LSB actions (start, stop, restart, try-restart, reload, force-reload, status). For other actions, please try to use systemctl.
 
3:41 PM
Right. systemctl enable --now discord-installer
 
@J.Sallé trizen -S discord
 
well it worked nevertheless \o/ idk how
 
Arch Linux
 
@betseg Don't you lot have pacman
 
my discord installation is apparently corrupt
 
3:42 PM
@HyperNeutrino It's not, but it complains anyway.
 
oh ok thx.
oh god every message sent here gives me notifications because #tnb_chat_forwarding D: must mute notifs
is there any way to get rid of that red bar on top that complains about my installation
 
@HyperNeutrino Remove the directory it made in your home folder and it might fix itself
 
oh huh ok
 
@Pavel pacman is for the official repositories, but discord isn't in official repositories for legal reasons. Arch has something called AUR (Arch User Repositories) and trizen is one of the "helpers" for AUR
 
@HyperNeutrino If it's still broken, Discord support inspect element like chrome does.
 
3:44 PM
lol :P
@Pavel which one, /home/hyper_neutrino/.config/discord?
 
@HyperNeutrino Yep
 
ok so just rm -r it?
 
Yeah
 
ok did that
 
Restart discord
 
3:46 PM
mhm
 
(You'll have to sign in again)
 
oh ok
still has the red bar :/ i'll just like inspect element it
 
@hype you were on mint right?
 
fedora now
 
Oh
 
3:47 PM
@HyperNeutrino It went away by itself after a while for me
 
hm ok. maybe it stops telling you after you ignore it for long enough :p
as long as I don't restart discord itself, closing the window doesn't make it come back :D
 
Arch didn't have a red bar even for a second. Arch > everything else
There is even a page called Arch is the best in the Arch Wiki
 
Should I post the challenge? has been quite some time
 
@betseg I think it's great that you lot have Discord functioning out of the box, but I prefer a distribution where I can actually find official packages for software.
 
@NathanMerrill I just want to commend you on always coming up with interesting KotH challenges.
 
3:50 PM
this mouse's sensitivity is slightly different from my other computer's and I can't tell normally, just when playing Minecraft, and I can't figure out how to make it feel the same so I just need to get used to it :P
 
thanks :)
I've had these ones floating around in my head for months, and I needed to get them written down before I forgot them
 
@Pavel download page for Discord has .deb and .tar.gz, so either Fedora isn't supported or all of Linux is
 
... I have a habit of insta-delete questions that have too much downvotes...
 
@betseg Discord is an exception, but I see software package for dpkg, rpm, and nothing else more often than not.
Obviously Ubuntu has even more packages, but Ubuntu also has outdated software at all times.
 
That's because Arch doesn't have a separate package format at all, it uses tarballs
 
3:53 PM
My recent question on meta stackoverflow used to have 3 downvotes.
I guess most voters on SO are copycats...
 
@betseg ¯\_(ツ)_/¯ Discord being the exception, I just don't see why use Arch over Fedora.
 
Actually I don't have an argument for Fedora
 
@ManishKundu Probably yes.
But remember that the sandbox is not perfect.
... The sandbox is not perfect. :( / You can just measure "distinct bytes" instead of "distinct characters", because characters are related to encoding and other problems. — user202729 2 days ago
@user202729 and meta SO.
@user202729 and PPCG.
 
its hard not to copycat
knowing the score as you read something influences what you think
people enjoy games more if they think it has a high review score
similar concept
 
4:03 PM
@betseg Significantly easier installation and configuration
 
@betseg Never used Arch. I tried to install it on Debian 9, iirc.
 
Don't try to ninja NewMainPosts.
 
1
Q: Find The Local Maxima And Minima

Manish KunduDefinition The maxima and minima of a function are the largest and smallest values of the function either within a given range or within the entire domain of the function. Challenge The challenge is to find the local maxima and minima of a given polynomial function using any method you may li...

 
@user202729 because you'll f... succeed?
 
Yes, you will (definitely) success, but that doesn't mean you should.
 
4:07 PM
@NewMainPosts Bye!
 
4:19 PM
@HyperNeutrino I get (-1,0,-1).
 
@Adám no, don't be discouraged!
(or is it a reference to the ninja?)
 
@EriktheOutgolfer I'm just saying Bye! in anticipation of NMP's being dragged off to the eternal unknown…
 
btw @user202729 as long as they don't onebox I think it's perfectly fine to "ninja" NMP so as to make their challenge more visible earlier
 
@EriktheOutgolfer Oh.
 
4:23 PM
otherwise good challenge though
 
But NMP are often pretty fast anyway.
 
usually. sometimes takes like 8 years :p but usually within like 5-10 mins
 
@HyperNeutrino Yes that's (-1,0,-1). Two -1.
 
@HyperNeutrino Am I the only one who thinks that looks kinda like a tooth?
 
@cairdcoinheringaahing no :P
@user202729 mhm yeah I was mostly just showing Manish that it should be (-1, 0, -1)
 
4:38 PM
Unnoticed typo. Thanks for pointing out
 
5:20 PM
oh i need := nvm figured it out right after i posted
 
@ManishKundu sorry for rollback'ed edit, the shown-markdown-rendering thing lied to me about what it looked like
idk why
 
@HyperNeutrino 0/10
 
@HyperNeutrino Or, you know, f=Length
 
how do i make a polynomial object in mathematica
@Pavel or just use Length but like no I just needed to set up the function first except it wasn't even working
 
5:26 PM
@HyperNeutrino what's wrong with 3x^2+8x-17
 
oh wait I can just do that, right.
how do I derive it though
 
does (3x^2+8x-17)' or d(3x^2+8x-17)/dx work
 
@HyperNeutrino F[x] is normal, F'[x] takes the derivative
 
it doesn't seem to treat the thing as a function
just an expression of a variable
 
also, knowing mathematica, there must be a extrema function :P
 
5:29 PM
yes :P
 
@HyperNeutrino Oh, if you need your polynomial to be a funciton, make a lambda: poly = 3#^2+8#-17&, poly'[42]
 
oh ok
 
Or just literally poly'[x] to get the derivative in terms of x.
 
5:32 PM
Oh cool thanks.
 
@betseg similar to my second thing
also after a few mins in google, i dont think that there is a builtin local extrema function in wolfram ಠ_ಠ
 
tha'ts odd
since I can do "local minima of x^2" in WA
>.>
 
Along with it's related function, FindMinimum
 
@Riker FFF i didnt add "local" in WA, thats why it didnt give me an answer
 
5:36 PM
lol
 
@HyperNeutrino Your solution. I is ImaginaryI
 
I know but aren't there meant to be integer solutions o_O
 
@HyperNeutrino Nice (and depressive) new about me.
 
@HyperNeutrino Nope
 
5:37 PM
@Pavel doesnt it give the maxima in the interval that you input tho? it doesnt automatically give local maxima?
 
@HyperNeutrino You can also use Reals instead of Integers
 
ok
@Mr.Xcoder lol o someone actually noticed :p but ye ty
 
@betseg No. It finds a local maximum.
 
also thanks for golf
 
Np (lol)
 
5:39 PM
hey @Dennis can you add the packages "ForwardDiff" and "Polynomial" to julia 0.6 on TIO
 
anyway gtg for a bit, probs will be back soon o/
 
seeya
@betseg you don't have to have a specific range to give a/some local min/maxima
 
@HyperNeutrino For what it's worth, Reduce acts almost the same as Solve and I generally find it better.
 
it's pretty simple to just check the derivative for 0 points
 

 talk.tryitonline.net

For general discussion and feature requests regarding tryitonl...
Feature requests should be made there, Dennis doesn't always see them here.
 
5:41 PM
@Riker i think i understood it wrong but the definition of the function reads like "input a function and range, get the maximum value in that range"
 
@Riker I don't mind that edit tho.
 
@ManishKundu no, see history, it was messed up formatting
the recent one was a fixed versino of ^ though
 
@betseg No, it's input a function and an x value, get the nearest local maxiumum right of that x value.
It also has some more advanced options.
For example, to search for all in a range.
 
Okay thanks
 
6:13 PM
congrats!
 
Announcement: APL Cultivation in the APL Orchard in 15 minutes
4
 
Nice new name
 
@Adám starred for name 10/10
even tho I'm too busy to join in :/
 
@Mr.Xcoder @Riker Thanks. Pavel's idea.
 
6:41 PM
0
Q: Hey, I heard of you!

0x45The Task You are given 2 Parameters: Any word from a dictionary. Any Depth of numeric value. With these two Parameters you have to Find words which are from the same wordfamily, synonyms, associating words. depending on depth more "abroad", "abstract" combinations. This means, higher dept...

 

« first day (2559 days earlier)      last day (2289 days later) »