« first day (2140 days earlier)      last day (2704 days later) » 

5:00 PM
It's kinda the same actually. rpg.stackexchange.com/a/64810/20830
@NathanMerrill optimize. With a 'z'.
:P
 
Fair enough :P
 
If not by country, then by his initial request, which had "maximize" with a 'z'.
 
I almost always read over either spelling without noticing the difference, unless I'm editing someone else's post then I make a conscious effort to match the local spelling
 
Also, had anyone noticed that I changed by avatar back?
 
It looks familiar, which means I might have missed the one you changed it to in between...
 
5:06 PM
Nov 30 at 21:28, by TuxCopter
user image
From when I hit 10000 rep.
 
Ah yes - I had seen that. Until I saw it again I couldn't put my finger on what had changed.
 
ok, posted
 
5:22 PM
@NathanMerrill "You want your submission to be a polyglot that performs the task in 3 different languages" I assume this was inspired by the recent polyglot that sparked a similar discussion, but just to be clear that one actually performed different tasks in the other languages.
 
yep, I'm aware
 
And regarding your point three, I think in the two answers that sparked this new discussion, exactly this happened.
 
That they weren't interesting?
I don't think that's debated
the debate is whether or not they are competitive
 
The author includes arbitrary input validation because they think that it makes the answer more complete but this restriction doesn't make the answers more interesting at all (which is why we don't do input validation in the first place).
 
oh, I wasn't thinking about the input validation. You do have a point there. The polyglot one (even if it isn't doing the same task) is interesting
 
5:28 PM
Which is why I think that the polyglot is a different discussion. ;) Yes, that one is interesting but it's so far removed from the actual challenge that if we allow it we basically have to allow arbitrary click-baity answers.
 
I mean, they still need to complete the original task, but yeah. I think that "click-baity" really doesn't apply here, as the the actual content is interesting, not just the headline
 
How do you distinguish it from an answer that includes an arbitrary arrangement of the code as ASCII art?
 
You don't. We let people upvote/downvote it as stuff they want to see.
 
Stuff like that gets upvotes though (primarily from HNQ). Which isn't fair to answers that actually put effort into the golfing and explaining rather than into running their source through an ASCII art formatter.
 
oh is that a thing (the ascii art formatter)?
 
5:35 PM
I assume. Even if not, it's a trivial undertaking in most languages without significant whitespace. It doesn't belong in the answer, because it doesn't actually add any useful or interesting content to it, but someone who hasn't seen it before will likely thing it's a huge achievement and upvote it.
 
ok, so lets say there was a question that got on the HNQ, and somebody posted a generated ascii-art version of their code. Tons of people new-comers upvote it. That said, while many regulars would say "I hate this answer, its so boring", there's still clearly people who think that its interesting and indicated that this is stuff they want to see
 
I wonder if the tendency to vote on the answer content rather than its relevance to the challenge is amplified by the ability to send a link to a specific answer, encouraging the recipients to read the answer without seeing the challenge first
 
Furthermore, lets say that the ascii-art generator caught on, and it became super popular
suddenly, people would get rather sick of all of the ascii-art, and more and more downvotes would be applied to those answers
which would discourage such answers
 
If I get 100 upvotes, I might not care about 20 downvotes
 
right, but the 100 upvotes is only going to happen for the first couple of answers
 
5:40 PM
My point is that we have a constant stream of brand new voters who haven't seen any previous answers.
I don't think it is practical to depend on downvotes to control answers any more than downvotes alone can control challenges
 
Downvotes do a good job of controlling interesting questions. We've had several times where users have posted uninteresting questions that were totally on topic, and got downvoted heavily
but the fact that they aren't frequent on the site shows that the voting works, at least to some extent
 
Are you guys talking about this? meta.codegolf.stackexchange.com/q/10835/18487
 
It works well for challenges that don't also attract upvotes
 
@Rainbolt yeah
 
Ok then I'm not totally disrupting the flow here. Based on the upvotes Dennis' answer is getting, I think the community is confusing "serious contender" with "good golfer". You can be serious and bad at the same time. I think creating a list of conditions that posts have to meet in order to avoid deletion (and that's what will happen if Dennis' post remains highly upvoted) is a terrible idea, because it alienates newbies who were serious but are bad at golfing.
 
5:44 PM
I think there are two separate questions here:
Can serious contenders include extra things (in the code) that detract from the winning criterion?
Can serious contenders include extra things (in the post) that aren't relevant?
 
@trichoplax we've had a couple of cases where a challenge was downvoted heavily by the regulars, but was so simple it got on the HNQ, and got lots of upvotes. While this isn't what we want to happen, its an exceptional occurrence IMO
 
0
Q: Make me a fake loader

Mukul KumarMake a fake loader just like this : Parameters : Display loading (space) one of these cyclically-\|/ (space) (percentage counter from 0-100) then a %. The percentage counter is supposed to increment by 1 every time the display changes. The time taken by counter to jump to next iteration ...

 
@Rainbolt Dennis has a footnote for that, although I wonder if the rest of the post could be worded to avoid that confusion earlier. This is more about people setting themselves additional challenges not required by the spec - there's no problem with just being bad at golfing provided they clearly tried.
 
Case in point: on my first ever golf post, someone commented with "Ah, true! I also just realized you can also omit the ' ' from the split, bringing it down to 96 and beating the other python2 solutions." Does that make me a non-serious contender, subject to deletion? Of course not, and that's a ridiculous idea. That's best left as a comment suggestion, not a deletion criteria.
I can't actually prove this - you have to take my word that I was trying to be a serious golfer and win in the Python category
@trichoplax The question was about that, but the answer is definitely more than that. The question "Can serious competitors do extra stuff?" was met with "Here is a list of things serious competitors cannot do.", which really goes outside of the bounds of the question.
 
@Rainbolt I definitely agree with this, and I believe Dennis's answer is intended to agree with it too
 
5:49 PM
And I don't think I am confused. What part of the answer do you think is confusing me?
 
@Rainbolt I meant that the answer may appear to have the opposite meaning to intended, until the footnote is seen:
> or removed is directed at answers that fail this criterion deliberately or completely. We all miss a golfing opportunity every now and then, and a new user will naturally miss more golfing opportunities than an experienced one. In this case, the proper course of action is guidance, not threatening deletion.
 
I'm sorry. You pointed me at the footnote and I ignored you until you copied it here, and now it makes sense.
 
@trichoplax "Can serious contenders include extra things (in the post) that aren't relevant?" I didn't realize this was an issue. What post is this referring to?
 
@trichoplax I've edited my post to make that more prominent.
 
@Rainbolt No problem - it's why I think changing the wording would be better than relying on a footnote. I have a habit of reading footnotes at the point they are referred to, because I have a tendency to overlook them otherwise
@Dennis I find that much easier to read now. If the quote block is the proposed wording, how would you feel about including the clarification paragraph in the proposed wording too? I'm guessing out of the context of this meta discussion it will be even more relevant
 
5:56 PM
@trichoplax is that not how footnotes are supposed to be read? :D
 
also, can I say how excited I am that there's going to be a new version of Dominion (for computers)?
 
@NathanMerrill when is that getting released?
 
Oh, really? Neat :)
 
Jan 1st
 
I don't get to play it (with actual cards) near enough
 
5:59 PM
got an email from them
Thank you for playing Making Fun's version of Dominion. Our license expires on December 31, 2016, after which our version of Dominion will cease to operate (see: Terms of Services).

A new version of Dominion is slated to launch on January 1, 2017.
 
This might seem random, but I'm adding a command to V that will add a space to the begging of the line and remove the first character after the first non-whitespace character. What's a good mnemonic for that?
 
Marquee
Wait that would be removing the last character
Still, maybe "slide" or something
 
Slide is good. I was thinking "squish" but I already use 's'
 
@MartinEnder :) I suppose the only problem is when the content of the footnote is not optional reading
 
Hey @MartinEnder, in Hexagony, how are literal escape characters treated? Are they treated as letter characters, setting the memory edge to 27?
 
6:04 PM
@Dennis I think there's a typo here
(pointing it out because I couldn't guess the meaning at first)
 
Indeed. Thanks!
 
@MistahFiggins in the Ruby implementation yes. I don't think it's defined in the language spec.
 
Thanks!
 
@Dennis Did you change something with tio.run? My company's filter doesn't block it anymore.
 
@Riley I don't think there's anything I could do on my end to circumvent a filter. They must have changed it.
 
6:12 PM
more likely they unblocked .run domains
 
0
A: Sandbox for Proposed Challenges

CrazyPython3-way Polyglot Prime Checker code-golf Make a program that checks if a number is prime in three distinct languages. Two versions of the same language aren't considered distinct languages. Standard loopholes apply

 
@Dennis I wonder if someone that has access to the filter whitelisted it.
 
I love how really golfed PowerShell kinda looks like an esolang.
 
@EᴀsᴛᴇʀʟʏIʀᴋ I tried a bunch of other .run domains and they are still blocked.
 
hm
@Riley maybe they unblocked .run in general, but blocked those specific .run sites? that's the best I got
plot twist: dennis is your boss
 
6:14 PM
dennis is the boss
 
@Dennis I'm not sure I'm understanding your post, given your most recent comment. Are you allowing me posting a quick sort submission when a brute force would be allowed (and shorter)?
 
@Dennis I find it easier to read now, but I agree with xnor's comment that this seems contradictory to the definitions presented in the question. It feels like there's something missing. Maybe need to make more prominent that you're talking about strictly removing code, and not about swapping a loop with an eval?
Apparently, I'm not alone in not understanding.
 
I interpreted Dennis's wording as a necessary condition, but there may also be other reasons that an answer does not show sufficient effort
 
yes, I hadn't understood that when the answer talks about deleting code, it means literally removing a piece of code and making no other changes
 
"It can't be improved solely with a deletion" can't be used in all cases as a defence
 
6:18 PM
it makes much more sense given that
 
I'm trying to think of a wording that would make this immediately clear
 
if I'm RosLup, all I need to do is make a radiation-hardened validation
 
Reading it again, the answer pretty clearly says what it means. I think the issue is just one of context where I expected a more expansive answer that addresses more cases.
 
Meanwhile, on the relevant answer on main I've gone with an absurd analogy which hopefully sums up my view:
I would not criticise a tennis player for not anticipating the opponent using a trebuchet, because a trebuchet is not permitted by the rules of the game. Similarly, a golf answer is not required to anticipate inputs that are not permitted by the rules of the challenge. — trichoplax 4 mins ago
 
@Riley maybe your company did what my school did and accidentally deleted entire blacklist :P
 
6:20 PM
> dod whag
 
actually, couldn't you go a bit further
 
@xnor Perhaps that's where my confusion stems, too. Then, if that's the case, I wouldn't want this answer to become site policy because of its narrowness.
 
if a portion of the code could be deleted, and a comment exists stating that fact, and the user refuses it, then its off topic
 
@TimmyD idk what youre talking about
 
aka, if I was a poor golfer, and somebody offered me a tip to improve it, and I refused it, then I'm not a serious contender, yes?
 
6:22 PM
1
 
@NathanMerrill depends
 
@Downgoat That doesn't seem to be the case :( I kind of hope that the higher ups are users here and they wanted to be able to use tio at work.
 
Can you give a link to senario
 
I'm coming up with a hypothetical
 
@NathanMerrill I'm ambivalent about that. If they clearly tried to golf initially, but don't want to make further improvements, I'd be inclined to call that a serious contender at the point in time it was posted. I don't want to commit everyone to responding to every comment on years old posts
 
6:24 PM
I mean it depends, if thy are actively trying to not golf their code but if its like somethibg "I dont understand your further golfed code", thatd be OK
 
Hopefully people who add in extra code deliberately can be dealt with separately from people who don't want to update their answer every time someone comes up with an improvement
 
> I don't mean a few unnecessary bytes here and there. We all miss a golfing opportunity every now and then, and a new user will naturally miss more golfing opportunities than an experienced one.
 
@NathanMerrill Frequently I get tips and would rather not add then because I feel like it wouldn't be my own submission any more. Sometimes I'd rather be out golfed when someone else was more clever than me
 
@Geobits right I was meaning to take his post further
 
@NathanMerrill @TimmyD @xnor I've added a few counter-examples to my answer, which hopefully clarify my intentions.
 
6:25 PM
@Dennis those examples are good, but see discussion above
 
@Geobits Yes I like that wording as it is. I'm just responding to Nathan's suggestion of making it stronger
 
@Dennis that really helps, thanks
 
I will never forget "change the 'spec's they are wrong"
Change the 'spec's they are wrong... I not change for me it is ok... All answer not code something on error case is inferior of just above code — RosLuP yesterday
 
@Dennis i think the bigger confusion is that people start off reading the question expecting a complete criterion, and you do clarify that, but readers are already confused by that point
 
I don't want to see it made too much stronger as I want people to have the right to post their best attempt and not include suggestions from others
 
6:27 PM
@Dennis "if" is often read pragmatically as "if and only if"
 
@Dennis I'm still not sure about where you stand on polyglot. Lets say I want my submission to work on both python 2 and 3. Would you allow that?
 
@xnor Hm, I addressed that in the question and the answer, but I'll try to make it clearer.
 
@NathanMerrill For me, I have no problem if it happens to work in more languages. I only have a problem if making it work in an extra language makes it a non-serious contender in the first language
 
right, but maybe I need to add a "from future import ****"
or an extra space here or there
 
actually, about the last example, "Answers may choose not to take advantage of some "ugly hacks", such as terminating the program by crashing the interpreter," I could see someone saying that's morally like not taking advantage a "cheap" allowed input format, which is morally like validating inputs
 
6:29 PM
Specifically, an n language polyglot is fine provided it is a serious contender in at least one of them
That rules out the vast majority of polyglots that aren't just "it happens to also work in..."
@xnor It does seem very difficult to draw a clear line
 
If you're writing a polyglot for a challenge that doesn't ask for a polyglot your code needs fit the acceptance criteria in each language and should be scored/listed as the list of all languages used. (my opinion)
 
I definitely think polyglot answers to non-polyglot challenges would be better left to a separate meta discussion
 
nearly all polyglots have characters that can be removed in each language
 
@NathanMerrill Python 2 and 3 can be pretty different or pretty alike, depending on the situation. If a solution happens to work in both versions, great; that's oftentimes the case for lambdas. But in all other cases, I see no benefit in having the shortest Python 2 solution, the shortest Python 3 solution, and the shortest Python 2 & 3 solution in three separate answers. If cross-version portability can be added by a trivial modification, just include a remark in your answer.
 
@trichoplax yes, there do seem to be a lot of edge cases, and situations where the judgment is obvious but it's hard to find a wording that leads to the right conclusion
 
6:34 PM
@trichoplax ? That's exactly what this meta question is for though
"Can serious contenders do more than the challenge asks for?"
 
@Poke It's been brought up as an example, but it seems to be a bigger question
 
a polyglot fits that
 
@Dennis lets say they are pretty different, and that it isn't trivial. You're saying that there's no benefit to having a polyglot answer in that case?
 
@Dennis what would you say to a python program that uses a while condition to terminate cleanly without error, whereas it could be while 1 to terminate with error?
(because the writer thinks terminating with error is "cheap")
 
i honestly don't see how
 
6:36 PM
@trichoplax I think it could definitely be written up as an additional answer to the same post
 
@Poke The main reason I think it would be better as a separate question is that the other examples can be met with "if the surplus tasks add bytes, it's not a serious contender", whereas a polyglot has other subtle questions like "which language does it need to be serious in, and how many?"
 
that said, I'm not really sold on either side, so I'm not the person to write it
 
I also find it harder to judge
 
@xnor OK, while n>1: vs while 1: would technically fit the bill. That's not at all what I intended though.
 
@trichoplax Like I said above, as far as I'm concerned you should think of the list of languages as "the language" the answer is written in
So I guess if the answer to the current meta is "no" then we could have a question specifically about polyglots
where my solution would be one of the answers
 
6:38 PM
@NathanMerrill Yes, exactly. Code golf is about finding the shortest code in each language, not the shortest code in X different languages. We have challenges for that.
 
@Poke I wondered about this. I would think that would require writing an interpreter than gives an error if the code would give an error in any of the languages, which would then make the conglomeration of languages a language by our definition. I still don't want to see such answers, but it seems like a dedicated question would allow discussion of these extra possibilities that don't seem relevant to the current discussion
 
ok
worth noting that I think dennis has plans to support polyglots on tio
so that's neat
 
Do any of you guys have a copy of Mathematica on hand? I'd like to RealDigits a very large fraction
 
@ais523 and other polyglot folk: I wrote a Python interpreter for Cardinal
 
Or rather, a fraction with a very large numerator and a very large denominator
 
6:43 PM
@Dennis Maybe this is worth adding to TIO, since people need it to verify answers on this challenge
 
OK, so, if I take a (long) Jelly code that outputs a PowerShell code that outputs a BrainFuck code that solves the challenge, is that acceptable?
 
@Lynn Sure! Does code in 'usage: {0} code refer to the actual code or a name of a file?
 
if its outputting the code, then it doesn't even meet the challenge requirements
that said, if its evalling the code in the other language, then that's a totally different issue
 
The name of a file (maybe line 4 gives a better example of invocation).
 
My algorithm of choice is "Run this in Jelly, then run that output in PowerShell, then run that output in BrainFuck, and you'll get your answer."
 
6:46 PM
@Lynn I'm totally not a machine and don't ignore comments.
10
 
but its a rather interesting idea. Consider import cjam;cjam.eval("some CJam code")
its impossible to remove any portion of the code while still making it work
actually, chat challenge: find a challenge where the shortest solution is to eval it in a different language
are there any interpreters for golfing langs written in Java?
 
Excellent :>
 
@Poke Yes I definitely don't have a problem with polyglots in themselves - just where they should be posted...
 
7:01 PM
Just added an example to my Sandbox post is pretty massive. 1234/789 goes to a very large fraction because 1/789 has a very large periodic part. See it here meta.codegolf.stackexchange.com/a/10842/47581
 
@NathanMerrill That happens with Bash answers all the time. It's not uncommon to see a "pure" Bash answer and a Bash + coreutils answer to the same challenge, and there's nothing wrong with that.
 
another question: would we allow a language with an interpreter that can only be accessed over the internet?
 
Not sure what you mean. Online interpreters or something else?
 
like, say I make an interpreter for my language, but I never release it
I do however make a website where you can type in commands to evaluate
 
Hm, if you don't release at least the specs, that sounds iffy. Not that different from languages you have to pay for though.
 
7:12 PM
There's no way to know what was added after a challenge was posted, though, unless there's a strict spec or source available.
 
nah, the specs are public
 
@Geobits What are you talking about? My language has always had this one-byte command to do (exactly what the challenge is asking) -- it's just never come up until now.
 
he's talking to me, I think
 
@TimmyD Yeah, we had such a case once.
 
At a minimum, I'd say the specs need to be versioned/dated and entries should comply only with that spec.
 
7:13 PM
I had thought about that in the past. You could create an interpreter that only accepts encrypted code, and not release the key. Nobody but you would be able to write code in it.
 
You could. I'm good at downvoting though.
 
@Dennis oh that's even more devious
 
Definitely a downvote magnet.
 
@Dennis Wait, really? Wow.
 
although, I would argue that the specs aren't public then
 
7:15 PM
I'm gonna write an esolang that has exactly one function, c, that takes a single parameter - the ID number of a ppcg challenge -- and always outputs the correct answer. that is the spec of the language.
 
-1
Q: Can't write to MSQL database from php in html

Peter WeyandI'm having trouble writing to a database from php in html. I'm a new user so my syntax is probably off. [Be nice - if you can't, or don't want to answer my post please move on. If the most help you can provide is to tell me to RTFM then please find a better use of your time. Nasty posts will be f...

1
Q: Rank the Integers

Martin EnderYou're given a non-empty list of positive integers, e.g. [6 2 9 7 2 6 5 3 3 4] You should rank these numbers by their value, but as is usual in leaderboards, if there is a tie then all the tied numbers get the same rank, and an appropriate number of ranks is skipped. The expected output for th...

 
that's already a loophole
 
Oh, MetaGolf. Been there, done that :P
Funny thing is, it would probably still be beaten by Jelly for a lot of challenges ;)
 
I was just thinking about making a language where it takes the code and evaluates it in both python 2 and python 3, and outputs something iff they both match
but then I thought of expanding that into "take two language names and code, pass them to TIO's server, and return a value if both of the outputs match"
then you'd have an effective make-any-challenge-into-a-polyglot language
 
do we have a challenge "output the reciprocal of X"
 
7:19 PM
@Geobits I thought on PPCG the language is defined by the interpreter rather than the spec, so entries aren't expected to comply with the spec.
 
which is problematic, because my (theoretical) langauge is hosted on a server you can't see, so I can change the interpreter at a moment's notice
 
that's not uncommon
 
but if you download an interpreter at a specific version, you at least have some semblance of consistency
 
@EᴀsᴛᴇʀʟʏIʀᴋ PORTAL DOG:
 
@JamesHolderness Yeah. I still don't really think it's a good idea. Just saying that without the spec it's even worse.
 
7:23 PM
:O someone else wrote a V answer! \o/
 
If it were up to me, I'd just expect entries to comply with the spec.
 
Specs can be ambiguous (and will be ambiguous more often than not if you just dig deep enough)
 
But that's better than no spec at all.
 
@Dennis //I just found out how we can talk about Dennis behind his back
 
Why did you ping me with an empty message?
 
7:28 PM
the better question is how did you ping with an empty message
 
@DJMcMayhem Put the ping in the comment next time and it'll be more stealthy
 
​​​​​
 
@NathanMerrill With assymetric cryptography, then can be. With publicly available source code and everything.
 
whoops sorry
 
@Dennis oh, this sounds like great fun: Lets golf my hash!
actually, this even better: Let me write FixedPython. It requires that the source code is exactly 2000 characters.
 
7:32 PM
@NathanMerrill what if I just diddly-darn can't golf my code down that much
 
that way, I can write my code however I want, and it can't ever be golfed :)
@GabrielBenamy then use python
 
I'm gonna write a programming language that after it runs, it randomly deletes one character in the source code
 
a language with a limit on the source code length isn't turing complete, right?
 
No, I suppose not
My boss just walked into my office, tried to explain something to me, realized he was wrong, muttered a bunch of things to himself, and walked out.
2
 
7:37 PM
@GabrielBenamy Sounds fairly normal :P
 
@GabrielBenamy Jelly would still beat it :-P
@NathanMerrill that's a matter of debate; if it gives enough room to let you write an interpreter for a Turing-complete language, some people count it, some people don't
 
See this page on Esolang for more information
anyone know if there's a way to disable images in chat other than opening up the element inspector and deleting them from the DOM individually?
 
@GabrielBenamy Sounds flush with opportunity.
 
@ais523 I removed the onebox
 
7:40 PM
@ais523 I believe there's a userscript to do this on Meta or StackApps, but I don't remember what it's called.
 
you can probably adblock it
basically adblock any <img> tags
 
this is my non-locked-down browser, SE doesn't work in the locked-down one
ooh, it seems Chrome has an option to disable img tags altogether
let's see if it works
 
I can't imagine browsing the internet without image tags would be very fun
 
well, it looks a bit ugly, but I think I prefer it
hopefully this will keep me from ragequitting again
 
ohhh you're doing it for the hats thing
not because of my toilet golf
 
7:48 PM
Quick! Three people go downvote me! :P
 
Anonymous
@DJMcMayhem You don't have to tell me. I'm going to do it anyway :P
 
You will lose 6 rep
You need more to downvote 3 people
gtg
 
@DJMcMayhem Congrats on reaching 20k and a very nice avatar!
12
 
why is it only 3pm I want it to be 5pm so I can go home, feed my cats, and go to sleep
 
8:04 PM
yesterday, by TimmyD
Besides Visualise Bit Weaving have we had any other code-golf challenges where the output is not fixed but still explicitly defined?
 
@TimmyD I had assumed we had many. Is there something about that challenge that is more defined than most?
 
@Dennis BRB, putting a goat in my avatar.
(jk)
 
@TimmyD Oh wait I see what you mean - explicitly defined but still open ended
 
Right.
 
Do you mean specifically golfs?
 
8:09 PM
Yes, I was thinking specifically code golf challenges.
 
It reminds me of some of the optimisation code-challenges, but I can't think of a golf example
 
@TimmyD what about the ones mentioned here meta.codegolf.stackexchange.com/q/10797/8478 ?
 
Yes, Five Favorite Letters is in the same vein that I'm thinking.
Hah. I even answered that one.
 
I hate to bring up work but I'm pretty stuck: I keep getting random "connection reset" errors on a website I'm serving locally.
have any of you run into this?
its on totally different requests, and started happening only recently. (also, when it happens, all requests that I've made to that site are reset at the same time)
 
@Lembik The slower one. I don't remember the name.
 
8:15 PM
@DJMcMayhem ode to hanzo
5
 
@NathanMerrill Code not releasing sockets appropriately causing the app pool to recycle?
 
I hope not, because that would mean its not my bug
 
If not that, it could be a semaphore somewhere that's not handled appropriately.
(i.e., "I can't get a lock on this, so abort connection," but it aborts all)
Those are the two most common that I've come across.
 
yeah, maybe, but then, it wouldn't be my fault. I'm more or less hoping it some configuration with php or in some other location
the code I'm dealing with is pretty high level: mostly html/js and a bit of php as the controller
 
8:21 PM
@EᴀsᴛᴇʀʟʏIʀᴋ hahaha I am laughing so hard right now
 
In JavaScript if I have a function f=(n,t)=>s=n.split('.'), can I call s[1] inside of that function? n would look like '1.2.3'
 
That was beautiful
My only regret is that I have but one star to give
 
I'll give another. I play Hanzo a lot.
 
@DJMcMayhem I will star it on your behalf
 
:3 Winterbash is in 10 days
 
8:28 PM
Is there a builtin to shuffle an array in Matlab? (ie rearranging the elements in a random order)
 
@DJMcMayhem it's mostly from the lyrics of "devil's gone down to georgia", but still hilarious
 
No idea. I was supposed to use Matlab in college, but as I already had Mathematica, and I was a cheapskate, I didn't bother getting Matlab
 
@EᴀsᴛᴇʀʟʏIʀᴋ of course I know that song. ;)
 
8:32 PM
@Dada Maybe something like A(randperm(length(A))) ? You'd think there'd be something shorter though.
 
CMC: shuffle a ragged array. (Each number in the array should have an equally likely chance to be in any other spot)
 
@flawr ermahgerd doggo is nope.avi engineer
 
@NathanMerrill [picks up the array, throws it into the air, and lets it fall down in whatever order it wants]
 
@NathanMerrill I can do this easily with wooden blocks. Start by kicking them down...
 
@Geobits It could work indeed, thanks!
 
8:34 PM
@NathanMerrill PowerShell, 18 bytes -- $args|sort{random}
 
"but he was talking about 10 dimensions. how do you imagine things in 10 dimensions?"
"easy, let n = 3, and imagine things in n dimensions. then, let n go to 10."
 
(assuming that the .NET PRNG is sufficiently random)
 
@TimmyD Will that work for a ragged array?
 
@TimmyD that works? If I input [[1,2,3],[4]], then it'll come out as [[4,2,1],[3]]?
(1/24th of the time)
 
Oh, missed the word ragged.
Umm, lemme test.
 
8:37 PM
the purpose is that the raggedness maintains its shape while the elements get shuffled around
 
Well I made an A in my computer science class, which is relieving because it's bell-curved and only 10% or so get an A.
 
Is the array limited to two dimensions?
 
@Geobits That's called a three-dimensional array, isn't it?
 
@NathanMerrill I really need to add randomisation to Retina. ;)
 
8:38 PM
@PhiNotPi What did the others fail on?
 
An engineer, a mathematician, and a computer programmer are driving down the road when the car they are in gets a flat tire. The engineer says that they should buy a new car. The mathematician says they should sell the old tire and buy a new one. The computer programmer says they should drive the car around the block and see if the tire fixes itself.
 
@NathanMerrill If it's not a dupe, I say put it on main
 
@GabrielBenamy The helpdesk guy says "Let's all get out of the car and get back in."
 
@noɥʇʎPʎzɐɹC What? The example he gave ([[1,2,3],[4]])? If so, then no, it only has two dimensions.
 
@Geobits nvm no context
 
8:40 PM
@TimmyD Geobits opens the trunk to look for a spare, and remembers he never checks his spare, so it's also flat.
 
@noɥʇʎPʎzɐɹC not sure what you mean? But for starters, if one of your homeworks fails to compile, you get a 0 for that homework, which instantly knocks 6 points off your maximum achievable score in the class.
 
A single homework assignment counts for 6 points of the final grade? Not much homework I take it?
 
Only 7 assignments and 2 exams.
 
@PhiNotPi Well then obviously you're in a 101 class.
 
Ah, okay. Yeah I can see it counting for that much then.
 
8:42 PM
A doctor, a lawyer and a mathematician were discussing the relative merits of having a wife or a mistress.
The lawyer says: "For sure a mistress is better. If you have a wife and want a divorce, it causes all sorts of legal problems.
The doctor says: "It's better to have a wife because the sense of security lowers your stress and is good for your health.
The mathematician says: " You're both wrong. It's best to have both so that when the wife thinks you're with the mistress and the mistress thinks you're with your wife --- you can do some mathematics.
 
This is a 200-level class, although the professor does complain that this class shouldn't really be the weed-out class that it is (as a third semester class).
 
@PhiNotPi have you tried turning in a golfed and ungolfed version of the assignment?
 
No, because style counts for half my grade. (Also why does my phone think becuase is a word?)
 
So golf it in style :P
 
There's nothing more stylish than a solution that takes a quarter of the bytes it should
 
8:45 PM
I'm guessing it's becuase you've spelled it that way before.
 
So, my earlier code doesn't work for ragged arrays. It treats the (1,2,3) array as a single element.
 
Beautiful one + golfed version
 
John Glenn just died. 2016 strikes again.
 
That sucks, but he was 95 and got to do some pretty damn cool stuff.
 
@PhiNotPi :(
2016 worst year
 
8:49 PM
Greg Lake (of Emerson, Lake, and Palmer) also died.
(And 9 months ago, Keith Emerson died)
 
@TuxCopter It's not going to end any time soon. Many cultural icons were part of the 40s-50s baby boom and are getting up there in age. I'm guessing the next decade or so will be similar.
 
right :/
 
PowerShell v2+, 86 bytes, takes input as a string that looks like a PowerShell array -- param($n)$a=$n-split'[^\d]'-ne''|sort{random};-join($n-split'\d+'-ne''|%{$_+$a[‌​$i++]})
 
Smbc is fantastic
 
8:56 PM
Huh. That's a lot more pro-capitalist than they usually are.
 
smbc's wisdom is too diluted.
Other than that, it's great
 
Anonymous
@Geobits Zach Weiner doesn't let political/economic beliefs get in the way of a good joke
 

« first day (2140 days earlier)      last day (2704 days later) »