« first day (2461 days earlier)      last day (2379 days later) » 

This fails to meet the documentation :P
 
@ATaco C#, takes a Func<int, int>: f=>{for(var i=0;;i<10)for(var j=0;;j<10)Console.Write(f(j++)==i++?' ':'x');}
Basically, for each point (j,i) in the grid, see if f(j) equals i, and if it is, put an 'x' there.
 
floor?
 
And yes, ' ':'x' is backwards.
@HyperNeutrino Func<int, int>
huehuehue
 
:P
but I mean if the function generates floats should it floor, round, or ceil @ATaco
 
12:12 AM
Up to the coder.
 
Wow I just wrote an entire quicksort script and got it first try.
 
nice
@ATaco Proton: f=>'\n'.join([''.join(int(f(j))==i?'x':' 'for j:0..10)for i:0..10][by-1])
sad. just 3 bytes shorter than C#
 
12:34 AM
Oh, I've been breaking the law. Australia follows the Cookie Law, and I've not been showing a "This site uses cookies" warning on A-ta.co
 
12:48 AM
@HyperNeutrino f=>{for(var i=0;;i<10)for(var j=0;;j<10)yield return f(j++)==i++?' ':'x';}
@HyperNeutrino f=>{int i=0,j=0;for(;i<10;)for(;j<10;)yield return f(j++)==i++?'x':' ';}
I got 'x' and ' ' backwards in ^^, fixed in ^
Aug 8 at 1:51, by Pavel
ono needs to have annoying warning about cookies
Aug 8 at 1:52, by ATaco
(Not in Australia!)
 
Yeah but I wasn't aware that Australia enforced the EU cookie laws.
It's not like I'm a lawyer ;-;
 
;_; C# beats Proton wtf
 
@HyperNeutrino def p(f):for i in range(10):for j in range(10):yield'x'if f(j)==i else' '
 
@Pavel well you'd need newlines but cool
 
@HyperNeutrino No, since it's just once statement after everything
 
12:55 AM
also yield'x'
@Pavel nope python is weird that way
also, else' '
 
why the even wat
 
rip no yield in proton
wait if that's valid then:
Proton: f=>[''.join(int(f(j))==i?'x':' 'for j:0..10)for i:0..10][by-1]
now beating C# by 10
Actually this:
Proton: f=>[[int(f(j))==i?'x':' 'for j:0..10]for i:0..10][by-1]
f=>[[' x'[int(f(j))==i]for j:0..10]for i:0..10][by-1]: 53 bytes
 
@HyperNeutrino There we go. That looks much better.
Also make yield
 
I will once I figure out how it should work :P
and also once addition is implemented
hey cool was not aware this worked
f=>[' x'[int(f(j))==i]for j:0..10for i:0..10][by-1]: 51 bytes
 
@HyperNeutrino Just return a python iterator
 
1:00 AM
lolno I'm attempting to get away from everything being a python thing
 
I don't suppose rolling your own yield is too complicated.
 
probably not
 
@Pavel ono no yield in lambdas
 
why not
(oh you were talking about C#)
International Standards Proposal: Since open brackets determine the bracket type and the close bracket is unambiguously pairable with an open bracket, have the close bracket be just one bracket type and use the other two close brackets as open brackets so you can have 5 bracket types.
 
I took a video of the moon and you can watch it move :|
it was on a tripod on smooth pavers
 
1:07 AM
Is hacktoberfest.digitalocean.com borked for anyone else
I checked isup.me but the issue is that a page loads, just not the one that's expected.
 
It works fine
I am going to earn my tee-shirt
 
@Christopher2EZ4RTZ I keep getting time out ;-;
@Christopher2EZ4RTZ It turns out you can abuse the system by making PRs to your own public repos.
 
I feel like abusing system just for free t-shirt but also feel too lazy
 
@Pavel Lol im just going to write my language :P
 
@Pavel well of course that borks, you can't return from lambdas either lol
 
1:11 AM
@HyperNeutrino Well you asked "Why not" thinking I meant python
So
 
oh ok :P
 
@HyperNeutrino I managed to make 3 legitamite PRs and accidentally made a 4th one to one of my own then realized it counted.
 
oh lol
 
@HyperNeutrino what is this about free shirt
 
@Riker Hacktoberfest
 
1:12 AM
if PRs work then I got this I've been meaning to make like 7
 
idk ask pavel
 
You make 4 prs they send you a tshirt
 
@Pavel how do dis
@Pavel to anywhere?
 
@Riker Sign up here
 
and anytime in oct? or today/next day
 
1:13 AM
You have until October 31st
 
@Pavel PRs can be anywhere?
 
oh cool got like under a week
 
@Riker Any public repo, even your own.
 
@Pavel >_> I've been meaning to let some guy know about a bajillion bugs I can do this ;P
 
@Riker PRs you've already made this month count, they don't have to be after sign-up
 
CMC: Construct a complete and grammatically correct sentence using only common [subjective] abbreviations and at least 3 abbreviations. I and a may not be used if not in an abbreviation (so idk and ikr are valid). Articles and short prepositions that may or may not be present in abbreviations that hide them may or may not exist depending on whether or not you want them to.
 
ikr
It's a sentence.
 
oh
updated (at least 3 abbvs)
 
:\
 
sorry :P
also punctuation is allowed
 
1:26 AM
@Pavel ran into timeout
 
1:43 AM
@Pavel ah ok cool
@Christopher2EZ4RTZ that pyro update one isn't even accurate lol it's been longer
but the point stands: over a year :p
@HyperNeutrino idk, lmk jic
 
(i don't know) (let me know) (jic?)
?
 
just in case
 
oh ok
 
I don't know, let me know just in case
 
nice :P
 
1:45 AM
does sup count?
 
not really but I guess I can count it for the challenge
it's borderline I guess
 
tbh idk, ttyl
sorta
if bad letter replacments count:
 
anyways gtg bye o/ brb o/ rip lol
 
glhf, dm u l8r
 
@Christopher2EZ4RTZ ಠ_ಠ
@Riker u is not really an abbreviation by my standards but I guess it counts since you have the other 3 and it's border-line
also, -1 byte: l8r
 
1:48 AM
@HyperNeutrino I mean it's shorter :p
so it does "abbreviate"
k now I'm done reliving 7th grade
 
sure :P
@Riker HAH lol
 
Why are words like abbreviate and acronym so long?
 
cuz greek is long
 
greek is not a golfing language
 
@HyperNeutrino I swear some people haven't passed there yet (9/10th now)
 
1:50 AM
well I still use some abbreviations too much (lol, rip, brb, gtg) but for the most part I use the actual words (10th grade lol)
 
2:16 AM
-
 
Lojban is a golfing language.
la lojban cu golfing bangu*
 
 
2 hours later…
4:36 AM
@HyperNeutrino I'm gonna try to program the next sequence in lolpython
so I'm gonna first write a python program that works hopefully
 
I fixed the intdiv operator in Funky. Also it was broken.
 
5:24 AM
@WheatWizard I don't think this is a duplicate of the 6*9=42 challenge... It's related, but you must use very different approaches to solve it (at least in the languages I know). Hammering it after 38 answers, 3k views, and no other duplicate votes seems a bit excessive...?
 
5:35 AM
And now funky has comments, which take the form of $Comment or $*Comment*$
I've replaced it with the lua style --, and --[[]]
Forgot about var--, changed it back.
 
 
1 hour later…
7:13 AM
Just spent a lot of time debugging an UB in Pascal (forget to put return value). (next OEIS) - FP compiler doesn't emit any warning at all.
4 and 5 returns 1 and 2 correctly. 6, after a long time, returns 7.
However it's probably O(n!² × n³) now. Need to reduce to about O(n! × n⁵ log n).
 
7:41 AM
Or not. Implementing sort in Pascal is not fun, anyway.
@HyperNeutrino What languages / is there any languages that you are familiar to and is still usable (a.k.a., not used twice) in the OEIS challenge?
 
8:07 AM
Funky still has a use :P
 
Because it is only used once?
 
Yeah
It's also gotten a bit better since last time, too.
 
Not sure if HyperNeutrino knows Javascript. Anyway enlist is not used too (but I don't know how complete it is now).
 
@ATaco :|
 
I know why it was broken, and I'm amazed I didn't realize it sooner.
 
8:21 AM
@user202729 Should be i.e. instead.
 
@user202729 D: how could someone not know JS
 
I don't know JS.
 
8:37 AM
@ATaco 0/10
 
 
1 hour later…
9:50 AM
@ASCII-only MapCommand(PeekDirection(...), ...) fails if I peek past the bottom of the canvas :-(
 
@Neil crap :| forgot to take that ino account
 
costs me 6 bytes to work around
 
"Oh, your code is 3-2, you clearly want to call 3 with -2 as the argument."
 
@ATaco what language is this
 
Take a guess.
 
10:00 AM
@ATaco fun fact: vsl command chains actually made this happen before i fixed it
 
It was funky.
 
@ATaco i think everyone can guess lol
 
10:19 AM
discovers the Shift + Win + S keyboard shortcut
 
O_o that is a thing
 
@Neil What does that do? I can't see any effect.
 
I don't suppose anyone here knows how to properly implement stuff to do with Steam workshop who isn't under NDA about it?
 
10:40 AM
@user202729 screenshot an area of the screen
 
10:51 AM
I guess it is OneNote specific. superuser.com/questions/498204/…
 
:|
but i have onenote off
 
It isn't; I can do it on my PC
Thanks for the tip btw :P
 
@muddyfish protip: get lightshot (i suppose gyazo is fine too)
 
printscreen+ms pain works for me
 
11:28 AM
i just had the worst language idea ever
 
@EricTressler ?
 
ok... just kidding
 
an unholy taxi + seed + monopoly combination:
taxi for execution - arrive at a place to call the respective function
seed to seed the dice generator
monopoly for route layout
 
would the dice serve any real purpose, or just to make the language terrible
 
11:31 AM
roll format is <roll determining number of rolls to move> <n rolls, sum will be used as movement>
dice are really to make it hard to golf
because really any seed giving the right sums will work (it uses two dice btw)
 
but then for long enough programs, depending on the properties of the PRNG, there may be no seed that generates the functions you need
and in particular the language would have a finite number of expressible programs
 
hmm I guess that's true
But you could say the same about Seed
plus that can be easily worked around by having modules
 
11:59 AM
@user202729 I think there are still a couple versions of Java left. I also do happen to know JavaScript and I think I could use Funky if I tried.
 
Ok good. Just posted my answer.
 
Yay! :D
 
Probably you understood why I asked that.
 
looking at the next sequence, yes
 
12:47 PM
:O i must have discovered an easter egg
 
1:17 PM
Anyone know how to clear stars in a room?
 
@muddyfish Not sure if typo or ...
 
@AdmBorkBork Intended
I search for pain to open it. Works every time
 
1:36 PM
@cairdcoinheringaahing If you're a moderator or room owner, you can click the drop down menu of a message and click "clear stars". There is no way to clear all stars in an entire room as far as I know; that would probably cause a bit of strain on the servers if, say, Dennis decided to clear the stars from all 25572 starred messages in TNB :P
 
Anonymous
@cairdcoinheringaahing What HN said, but specifically it's the dropdown menu on the message on the starboard. There's a userscript for clearing stars from the transcript that you can find on Mother Meta.
 
Thanks, both of you!
 
np :)
@Mego Is it not on the message itself in the main area of the chat window? That's odd...
 
Anonymous
@HyperNeutrino Probably a bit of a strain, though it would be easy to do. It's just a POST request to /messages/<id>/unstar with your fkey.
 
Ah ok.
huh I wonder - has anyone made a desktop chat client for SE chat?
 
Anonymous
1:48 PM
 
(sorry imgur is blocked by school wifi so I can't see that)
 
@HyperNeutrino Then find some way to bypass that.
 
Anonymous
It's an image of the RO dialog for messages on the starboard, with a freehand red circle around the "cancel stars" button
 
@HyperNeutrino you can use the app which makes website into electron
 
Anonymous
1:49 PM
 
Anonymous
Better?
 
[no oneboxes just say "Image not found"]
 
Anonymous
Ah, I was thinking stack.imgur.com might not be blocked
 
But the image source is still imgur.
Try using some other (image) pastebin.
 
Anonymous
@user202729 There's someone that's a regular in here who has i.imgur.com blocked but not stack.imgur.com
 
Anonymous
1:50 PM
I couldn't remember who it was
 
Hello everyone o/
 
@HyperNeutrino nativeifier
 
thanks :D
and ah ok I see
 
2:01 PM
@Mego dunno if that's me but I have the same
 
Comments on the CNR concept here?
 
I like the idea, gave it a +1 and fixed a minor little thing :)
 
So the cops have to golf the solution, too, and thus make submissions even harder to crack. (golf = unreadability)
 
@StewieGriffin So, essentially you're posting golfed code and the robbers have to find ungolfed code?
 
No, robbers code must be shorter or equal.
 
2:08 PM
@J.Salle o/
 
Oh, I see, the golfed code is the hidden code.
 
@AdmBorkBork Yes,,, or both can be golfed.. :)
@HyperNeutrino thanks :)
 
np :)
 
Right. So suppose I have a 6-byte Jelly answer and a LD of 2 to get a 5-byte answer. I post the 6-byte and say LD of 2, and the robbers have to find some code that's an LD of 2 from my 6-byte (no longer than the revealed code), which constitutes a crack.
But they could find a 6-byte that's an LD of 2 that solves it.
I like it. Definitely requires some creativity on the robbers' part.
 
@AdmBorkBork Agreed
 
2:14 PM
@AdmBorkBork Yes, that's right :)
 
Anonymous
I like the idea. I think the cops have the tougher job
 
Tougher job for the cops, more creativity required for the robbers. Should result in some interesting answers.
 
@Mego, agree... Do you think it's too though?
Forcing LD==x instead of LD<=x makes it a bit harder (and might require a bit more creativity) for the robbers.
LD=0 would solve every cop post... It could be 1<=LD<=x though...
 
Sorry, misunderstood the messages.
 
Anonymous
@StewieGriffin Not at all.
 
Anonymous
2:22 PM
@StewieGriffin Oh, I misread. I thought it was LD==x. I think LD==x is a much better version than LD<=x.
 
Anyway no "serious contender" cops will post answer with Levenshtein distance = 0.
 
Anonymous
Though both would be good
 
And what's x? Cop's answer length?
 
x is the LD specified by the cop
yay I'm now at 85% to gold badge
 
So what's LD?
 
2:23 PM
levenshtein distance
 
Lichtenstein Distance ;-)
 
@AdmBorkBork ._. what
wow there are no more unanswered chemistry questions left on PPCG :P
 
Anonymous
@HyperNeutrino It's how far away you are from a small country in Europe
 
ah ok :P
 
LD = Liechtenstein Distance = 2... Number of borders to cross in order to get to the sea...
 
2:26 PM
Apparently it's Liechtenstein with an "e." My mistake and that's probably where HN's confusion came from.
 
no I didn't know the real spelling anyway and I knew it was a small country in europe already lol
 
2:49 PM
I once posted a challenge about Damerau-Levenshtein distance. I still don't know if it was an improvement over regular Levenshtein distance.
 
Anonymous
3:00 PM
@Pavel Depends on the goal
 
3:15 PM
22
Q: Balance the Brackets

PavelYour objective: Given a string of brackets, output the minimum Damerau-Levenshtein Distance required to turn the input string into a string where the brackets are balanced. Input The input string will only contain brackets and no other characters. That is, it is a combination of any of the cha...

 
Anonymous
@Pavel For that, I think DLD is more appropriate than LD. For plaintext, I think LD is usually a better choice.
 
3:31 PM
:)
Doing test cases for that challenge was a massive pain though.
 
CMP: Do you solve your own challenges for the purposes of making test cases, or do you just roll the test cases by hand?
Personally, I extremely rarely solve my own challenges.
 
@AdmBorkBork Sometimes, usually depending on how complicated it is
 
@AdmBorkBork I generally do them by hand. In the case of BtB me and Wheat Wizard worked together on them for a good few hours, and then still ended up with suboptimal solutions for several of them.
 
Anonymous
@AdmBorkBork Same as DJ. I'll usually make my own test cases if it's easier than writing a solution to generate test cases. Frequently, though, I'll have a solution already that inspired the challenge. For example, my Largest Prime Exponents challenge came about from a piece of code I wrote for another challenge (that I incorrectly read).
 
Well, at least I know I'm in good company.
 
3:39 PM
CMC: Compute the Damerau-Levenshtein distance between two strings or int arrays, your choice.
Mathematica: DamerauLevenshteinDistance
 
Anonymous
@AdmBorkBork I'd just leave it at "company" :P
 
Nah. PPCG-ers are some of the smartest people I've ever had the pleasure of interacting with.
5
 
This is the most reasonable and intresting corner of the internet I've encountered.
 
It's a friendly place here where you can mostly guarantee everyone here being remarkably competent at what they do
 
3:46 PM
@muddyfish Well I wouldn't go that far.
 
:P
 
Some of us here are absolutely experts, and some of us are high school CS students.
And being from the latter category, it's amazing all the things I've learned talking with the former category.
 
@Pavel I think this is one of the few places of the internet I know of which people aren't tools to each other just for the sake of being tools. Or just aren't tools at all.
 
@Pavel I feel like I'm somewhere in the middle there...
 
PPCG users comprise the majority of my [vaguely defined] friends :P
 
3:48 PM
@J.Salle Might be caused by rudeness being enforced by temporary suspension.
 
@Pavel yup, and I agree 100% with that policy. If people can't be civil, well, they should leave.
 
SE really shows that strict moderation greatly improves a community and doesn't drive off or unfairly punish users.
More forums should adopt similar policies.
 
Anonymous
@Pavel Some users tend to think the moderation policies are unfairly strict, but they tend to be the ones who break the rules often and refuse to consider that they are the problem.
 
That was me for about a month after discovering TNB. I didn't realize the way that most people treated this place.
 
@Mego Precisely. In my experience, when the same people complain too often about moderation, they're usually the problem
 
3:52 PM
I was awful towards El'Endia, I feel terrible about now.
 
C++ Question: If I have a simple struct, say struct foo {int a; double b; std::string c;}, then can I make a foo with foo bar(1, 2.0, "hello"), or do I need to explicitly define that constructor?
 
@Mego It's a common archetype. Consider folks in games like League of Legends and Overwatch. It's always their team who is bad and the reason they're losing. They're always diamond ELO.
 
@DJMcMayhem You can't.
But you can do {1, 2.0, "hello"} and then it should be converted to the desired type.
(C++11 uniform initialization)
 
@Poke Except me. I really am diamond ELO and just get stuck with crappy teams. ;-)
 
:D
 
3:54 PM
Hmm. So foo bar; bar = {1, 2.0, "hello"};?
 
@DJMcMayhem Correct.
 
@Poke I see the same thing a lot. It is pretty annoying to see
 
@Poke I think that games can afford to suspend players for bad behaviour, esecially F2P ones. The fact that most people are assholes in a relatively unmoderated environment doesn't mean they are incapable of being polite in a more moderated one.
 
Anonymous
@Poke Yep, I have a friend who is like that sometimes. If it wasn't for his other qualities being redeeming, we probably wouldn't be friends. Also the fact that he is often right about the teammates being the problem helps.
 
Anonymous
@DJMcMayhem You can even do foo bar{1, 2.0, "hello"};
 
3:55 PM
@Mego Oh, that's even better
 
@Poke that's why I like 1v1 games (I'm an MtG addict >.>). You lose, it's either your fault or your opponent's merit, no one else can be blamed.
 
@DJMcMayhem Dota 2 allows you to report people for being a dick, and you can get communications suspended for 3 matches if you get reported by enough people in just a signle match.
 
Although on the other hand, playing a round of Junkenstien's revenge where everyone immediately locks in the worst team comp imaginable (Torbjorn, Widowmaker, Genji), and I'm forced to go healer, before the widowmaker ends up leaving is pretty frustrating
 
@Pavel god, I miss playing dota.
 
0
A: Sandbox for Proposed Challenges

AdmBorkBorkDraw a Telephone Keypad code-golf ascii-art Specifically, output this exact text 1 2 3 ABC DEF 4 5 6 GHI JKL MNO 7 8 9 PQRS TUV WXYZ 0 A single trailing newline is allowed, but no additional leading or trailing whitespace or other formatting changes are...

 
3:56 PM
@cairdcoinheringaahing Jelly, 1 byte: ²
 
I suppose it would have been worse if the Torbjorn left, haha
 
@Mego Even when those people are correct they sure as hell didn't play perfectly. There's always something you could have done better that may have swung the game more in your favor. It's better to self-reflect than to blame others
 
@Pavel OW has a report system too, but it's a lot less transparent about how reports become suspensions
 
Anonymous
@Poke I agree. That's one of the redeeming qualities. We hold our teammates as well as ourselves responsible for mistakes.
 
Although apparently they'll now email you if someone you reported ends up being suspended.
 
3:58 PM
Blizzard seems to suspend folks in waves. Their system is weird
@Mego fair enough
 
Anonymous
We play a lot of Destiny 2 together, where the PvP is highly team-focused. Queueing with less than a full fireteam frequently results in losses because not being able to have voice comms with your whole team is a huge detriment.
 
I've only ever reported someone once before, and that was because he called me both a racist and a homophobic slur >_>
 
Anonymous
Too often we have to deal with blueberries (slang term for non-fireteam teammates) running off on their own, trying to be heroes and getting slaughtered by organized teams for it.
 
@DJMcMayhem that's mostly due to the fact that Blizzard does everything they can to make players have a good experience. HotS doesn't even have an all-chat.
 
@Mr.Xcoder A little late :P
 

« first day (2461 days earlier)      last day (2379 days later) »