« first day (2042 days earlier)      last day (2784 days later) » 

7:00 PM
@Downgoat No it doesn't.
 
0
A: Sandbox for Proposed Challenges

βετѧ ΛєҫαγCount the bytes code-golf internet Challenge Write a program which takes the URL of a PPCG answer as input and outputs the length of the answer's first code block in bytes. Code Blocks There are three different ways of formatting code blocks: Four spaces before the code (- represents a spa...

 
it's strange why a Follow mechanism between users isn't implemented in a network of coders
 
E.g., when I published this repo, I saw every single new star as "John Doe starred minxomat/..." on my frontpage.
When you follow a user, you used to see every star they applied, too.
 
@mınxomaτ huh I don't remember ever getting those notifications for cheddar. Idk about my other repos
 
Hence this:
I saw that, because I followed Dennis. But it also displayed my own repos. That was before the design changes though
Now I see it again >.>
 
7:16 PM
@MitchSchwartz interesting :)
 
I'm the owner of the bash, sed and dc room and would love! to have feeds coming in of solutions only in those languages. Can this be done?
 
Penny for your thoughts?
0
A: Sandbox for Proposed Challenges

βετѧ ΛєҫαγCount the bytes code-golf internet Challenge Write a program which takes the URL of a PPCG answer as input and outputs the length of the answer's first code block in bytes. Code Blocks There are three different ways of formatting code blocks: Four spaces before the code (- represents a spac...

 
@seshoumara IMO not easily. Especially with all the different header formats
 
@seshoumara You could always write a bot that checks all of the new answers. I don't think a feed is possible
 
so how is the Feed Room working then?
 
7:20 PM
@seshoumara feed room?
 
PPCG Mod Feed Room
 
@seshoumara those feeds are user specific. Much easier than language detection
 
And as Dennis says, you could create your own feed that looks at all of the answers and returns those with bash, sed etc. in the header
 
@βετѧΛєҫαγ the latter is much harder than it sounds
well tbh byte count is harder to extract
 
7:25 PM
Unfortunately till today I haven't needed feeds, so no idea how to do that. Could this be a question? I don't need the bytes count.
no idea how feeds work, I also don't know html programming
 
@seshoumara you have to write a bot, but the problem is that people write names of languages a little differnet
 
I have a regex that does very good on the PPCG design script U could probably use that
 
like bash vs. shell vs. bash + coreutils, etc
 
@Downgoat I wouldn't say so. Just split by newlines, take the first line and check for dc, sed etc. using regex
@seshoumara You want PHP for that
 
yes, as @βετѧΛєҫαγ said, they all start with bash, dc, or sed.
 
7:27 PM
@βετѧΛєҫαγ that doesn't work perfectly as you might think
 
^
but if he has only 3 languages he's looking at, he might be able to get pretty close to perfect just with ad-hoc rules
 
True
 
can I ask for it as a language specific challenge? Or any html related tags.
 
@seshoumara not good idea,
you ususlly can't outsource your coding to PPCG with it ending well
 
Well you could... The answers might be completely illegible though.
Try it and go to SO if all else fails
 
7:29 PM
Does anyone know how Amazon sets their prices? This desk was $800 on Saturday, $350 yesterday, and $270 today. That amount of fluctuation on furniture just seems weird to me.
 
@Rainbolt AFAIK it shows the price of the cheapest seller so you should be asking the seller
 
@Rainbolt nice to see you're working on your "hard problem" at work :P
 
@Rainbolt Clearly, they're using a parabola. Find the minimum and buy it on that day!
Or maybe they're using a decaying exponential function, in which case, you should wait an infinite amount of time until it becomes free!
 
12x^2-15x+10
2^-x
 
;_; y u gotta bring math into TNB
 
7:31 PM
can someone give me some PHP script that is an feed sifter regardless of what it does and hopefully I can understand and tinker with it
 
@Downgoat Isn't coding all about math nowadays?
 
if it was I wouldn't be here
 
@seshoumara php why?
 
^ php is the worst
 
@Downgoat you had a bot or something right?
 
7:32 PM
someone mentioned php as the language where I could do my own feed
 
i'm pretty sure the API is REST
 
@Maltysen chatgoat?
 
@Maltysen I have no retort. I'll get back to work. hangs head in shame
 
0
Q: Question regarding Java 8 solution to Love/HateConundrum

avenger12Hows does the Java 8 solution for the Love/Hate Conundrum code golf work? If j=0 at the start of the loop wouldn't the boolean j++ < i == false and thus the body of the for loop wouldn't execute? Thanks in advance for any feedback.

 
I'm just guessing from what I read on SO @seshoumara
 
7:33 PM
41 secs ago, by Maltysen
i'm pretty sure the API is REST
@Downgoat oh nvm
 
Wat:
-3
A: Word count in Google Slides?

wesleywell first you pull up of the screen and look to catch and shoot like frank

 
@Downgoat I'm tempted to upvote that
 
and assuming for a second I write that code, how do I connect it to my chat room?
 
@seshoumara:
@seshoumara that's the harder question
 
@seshoumara use Python there is a SE chat API for python
 
7:35 PM
@seshoumara You add it as a feed. A mod might have to do that but IDK
 
@Downgoat isn't that third party?
 
anybody used Jython?
 
@NathanMerrill once for a KOTH
 
oooh, really?
 
idk if i ever got it to work
 
7:36 PM
-.-
 
@NathanMerrill and i mean I was an answerer
 
45
Q: Save the last bullet for yourself

James_pic The contest is now over. Coward is the winner. You can watch the last match here. Suddenly zombies appear! OH NOES! In this king-of-the-hill challenge, you must create a bot to survive the zombie apocalypse. Or at least, hold out for as long as possible. At the start of the game, 50 inst...

 
well, I think I'm going to limit the languages that can be run for future KoTHs. Jython for python, Nashorn for JS, and Java derivatives
 
7:38 PM
@seshoumara I tried making a feed for Bash answers. It will have some false positives and I have no idea if it actually works, but if you link me to your room, I could try adding it.
 
@NathanMerrill why not stdin stdout?
 
oic
is jython actually faster though?
 
we'll see
 
Jython and Java compile into the same byte code
 
7:39 PM
@Rainbolt yeah, but its basically a python interpreter written in java
 
yeah, but Jython is slower than Python
 
Ah, I figured it would be faster
 
I currently have 11 Java submissions and 1 python. The 11 java submissions and controller take 10% of my runtime
the python one takes the remaining 90%
 
but is runtime actually a problem in koths?
 
yes
yes yes yes
 
7:41 PM
oh
 
When you run 1000 rounds per game, and then you run multiple games to get ELOs, it starts to matter.
 
a single 50-game tournament takes 10 or so minutes
I want to run thousands of games
 
@Dennis how do I do that? (total noob here when it comes to how sites work)
 
I've also considered zeromq
 
A controller I wrote once aborted when someone took too long to respond, logged it, and then restarted.
Without that submission of course
Wait no... that was the part I never got around to implementing. It restarted with the submission
So I'd get home and manually remove the slow ones
 
7:49 PM
mine just dies if there's a timeout
that said, the timeout is 5 seconds, but when I had it at 1 second, I was frequently hitting the timeout with my python submission
 
@NathanMerrill Are you aware of the naming convention for Java packages?
 
....not entirely, I may have got stuff wrong
 
Naming the package com.ppcg... implies that it is associated with a website called ppcg.com.
 
...and if there isn't a website?
 
@NathanMerrill Really? I had a Python submission that printed "Good" or "Evil" (I forget which) and it took 200 ms to get its output from Java. I'm surprised your Python submission takes five times as long on occasion.
 
7:52 PM
Just name it whatever, I guess.
 
Err... I mean my Java controller took 200 ms to retrieve output from the Python program.
 
Oh not another avatar change
 
@Rainbolt oh, the python one doesn't take 5 seconds. it rarely hit the 1 second, but rarely was enough when I was calling it frequently
 
1 second = 5 times as long as 200 ms
 
oh, "five times"
I read "five seconds"
yeah, I don't know why its slow
was your controller in Java?
 
7:58 PM
running processes is slow
 
but why is his 5x faster?
 
it would be better to keep one instance alive for the entire tournament
 
@mınxomaτ My avatar or someone else's? :D
 
feersum
 
I didn't actually change it.
 
7:59 PM
@muddyfish I'm doing 1 instance per game. The bootup costs aren't as bad as the messaging costs
 
Gravatar just decided to flake.
 
That's even worse. Self-changing gravatars!
 
@NathanMerrill I'm not sure then
 
bah. when I'm looking up this "what should my root package be" the majority of answers say to purchase my own domain -.-
 
Next up: Self-unicoding names.
 
8:01 PM
@NathanMerrill Yes
 
self encoding names?
 
@Rainbolt could I take a look at your code?
 
@NathanMerrill Let me recreate it
 
oh, its the good vs evil
 
The constraint is in that controller. The test was something I wrote and immediately scrapped
 
8:02 PM
oh, you're launching another python submission every call
yeah, I have no idea why mine is so slow
I must be doing something wrong
 
Ugh... Too much on-topic chat here tonight ;)
 
I just realized that ProgrammerDan put a sleep(0) in the wrapper for the Wolf challenge. No wonder my CPU was maxed out.
 
@Rainbolt why does that max your CPU?
 
@Zizouz212 A forum where every username must be a code-injection exploit to even enable registration for that forum. Like a hacking-captcha.
 
@Rainbolt What on earth is the use of sleep(0)?
 
8:04 PM
I have no idea.
 
@βετѧΛєҫαγ Some languages have an overhead for calling Sleep. That way, Sleep(0) in a loop will actually decrease the CPU usage :)
 
sleep(0) says "allow another thread to work"
AFAIK
 
while(running){
    this.sleep(0);
}
 
@NathanMerrill It depends on the language
 
I really like spelling offer offser
 
8:10 PM
oooh, I wonder whether my use of BufferedInputStream is slowing things down
 
Does anyone know if Octave is a sufficiently close clone of MATLAB to be worthwhile learning in order to investigate a MATLAB question?
 
Sure, it's close.
 
Thanks, I'll start learning then...
 
@Rainbolt ok, I measured it, and I'm getting responses in appx 20 ms
on average
 
From Python?
 
8:23 PM
yeah
 
Well that's way better than I was doing
 
yeah, I'm not sure how I was hitting a second on some of the responses, but I was
 
Now I wonder what I was doing wrong, but seeing as how I don't have an active KotH at the moment, I probably won't bother
 
I'm keeping my bots alive
2
 
Oh, that would help
 
8:24 PM
:)
but yeah, I'm doing 1000 rounds, and each round has 3 method calls, so that's 3000 round trips for each game
which adds up to about 60 seconds, which is a bit longer than I was seeing, but still in the right ballpark
 
I had a trial run for eight hours
Right before I gave up on Wolf completely
 
yeah, on my todo list is to push individual game results into a database. That way, rerunning the controller won't invalidate past results
unless, of course, a new bot gets added
oh, the other benefit of Jython and Nashorn JS is that I can provide informational methods rather than passing the entire game state (or whatever is visible)
 
That's a lotta rep ...
 
Hey @flawr, ever heard of Hornussen? TIL about this Swiss sport...
 
Sounds like the benefits of a restricted language KotH are sufficient to justify the exclusion.
@TimmyD Q or A?
 
8:41 PM
@trichoplax An answer
 
@TimmyD Oh - one of those upvotes is mine...
 
It's a really excellent answer. But a 200000+ reputation answer?
 
@TimmyD well i doubt that rep cap let him get all that rep
 
Bah, the rep cap will have eaten most of it.
 
@TimmyD I upvoted that as well
 
8:53 PM
I'm trying to code as much of my language as I can without writing in a parser, preprocessor, or compiler. So far, it's going fairly well.
 
Greetings
 
I don't know how much got eaten by rep cap. Certainly a bunch. But, given that the user in question only has 841 posts total, and the vast majority of them are under 50 upvotes, and the user has ~277000 rep overall, clearly a lot of rep came from that one question.
 
0
A: Convert string to number

TùxCräftîñgRuby, 97 37 44 bytes lambda{|s|s.chars.map{|c|c.upcase.ord}.join} Take the ordinal of each character in s converted to uppercase (to ensure 2 chars per number for ordinals)

no love for ruby ;_;
 
I want to see the upvote/downvote split
 
8:57 PM
 
O_O
the β syndrom
 
rofl the 15 downvotes
 
-1 too long, called me a "victim"
 
okay, this is going to be a hard sequence identification challenge
First 100 terms, starting at n = 0: 0 1 0 0 0 1 0 0 0 1 0 1 1 1 0 0 0 0 0 0 0 0 0 1 0 1 0 1 0 1 0 0 0 0 0 0 0 0 0 1 0 0 0 1 1 1 0 1 0 0 0 1 1 1 0 1 1 1 0 1 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 1 0 1
The sequence will only ever contain 1s or 0s
 
the output of a RNG?
 
9:08 PM
no, it's fully deterministic.
 
is it infinite?
 
a RNG with a seed?
 
@NathanMerrill yes, it is
@muddyfish no, it is not
oo that lines up nicely
 
is it cyclical?
 
I don't know. Want more terms?
hint: it isn't memory-intensive to calculate
 
9:13 PM
Do 0s and 1s always come in groups of some power of 3?
 
@NathanMerrill Further information: I suppose it's slightly cyclical, but they cycle lengths vary (and I'll tell you that cycle lengths strictly increase); one can predict the value of a certain position with ease
 
Anonymous
@ConorO'Brien I'm guessing it's the (possibly absolute) differences of two similar sequences (that differ by at most 1 between pairwise terms), like Hofstadter's F and M sequences.
 
nope, it's only comprised of a single sequence
 
@ConorO'Brien what's the value of n(10000000)?
 
@NathanMerrill 0
 
9:15 PM
so, its an O(1) operation
or, at least O(log(n))
 
it's fast, whatever it is.
 
0s: 1 3 3 1 9 1 1 1 9 3 1 3 1 1 33 1 1...
1s:  1 1 1 3 1 1 1 1 1 3 1 3 3 3  1 1 1...
 
a(1000000000000000000) calculates as soon as I press enter
@El'endiaStarman these are the runs, I suppose?
 
@ConorO'Brien Yep. That 33 kinda screwed up my hypothesis. :P
 
Many thanks to @Dennis that made the feeds for answers in each individual language of the bash, sed and dc chat room. Stop by if interested.
 
9:17 PM
@El'endiaStarman 33 = 11 * 3. idk if that helps
 
@ConorO'Brien I was hoping it would be 27...
 
@ConorO'Brien you don't know what it is?
 
@NathanMerrill Oh, I know what it is. I just don't know if the sequence means anything other than the program I wrote to generate it.
 
ok, better question: what's 100000 by hand?
 
hm
you want me to calculate it by hand?
 
9:18 PM
yes
 
uh, ok
um
that would be hard
 
Anonymous
@ConorO'Brien OEIS doesn't have anything on it, so take that as you please :P
 
@Mego yeah, I looked at OEIS for it :P
hint: base 2 has something to do with the sequence
 
so its something like to_binary(log(n))[midpoint]
 
@NathanMerrill you're moderately close
 
9:21 PM
gross
 
in hindsight
yes, it is
when I was writing it? seemed legit
n =: (0 , }.)&.#:@(2&+)"0
p =: <.@(2&^.)@(2&+)
pad =: [: |. [ $ |. , [ # 0:
str =: '[]' {~ p pad #:@n
res =: [: ". ')1' ,~ '0(' , str
le code
 
Anonymous
Can you write that in non-alien-jibberish? :P
 
oh, yeah, right
maybe I'll just comment it :P
 
Anonymous
How much padding is done?
 
Aug 28 at 17:48, by Martin Ender
@LeakyNun people might show it more love if you added an explanation instead of begging for votes in chat.
 
9:31 PM
i have added a explanation
 
Learn cheddar you'll always get at least one upvotw
 
s/one/two/
 
:D
 
addTwo =: 2&+
over =: @
chopFirst =: 0 , }.
tobin =: #:
chopFirstBinDigit =: chopFirst&.tobin
floor =: <.
log2 =: 2&^.
takeFrom =: {~
eval =: ".

A053645 =: chopFirstBinDigit over addTwo "0
padFactor =: floor over log2 over addTwo

NB. I don't want to explain this really
pad =: [: |. [ $ |. , [ # 0:

str =: '[]' takeFrom padFactor pad tobin over A053645
result =: [: eval ')1' ,~ '0(' , str
 
@ConorO'Brien What language?
 
9:38 PM
J
 
@NathanMerrill It didn't seem funny at all when you said it, but now that "I'm keeping my bots alive" is starred for some reason it is hilarious
 
people pulling things out of context :P
 
@NathanMerrill I built a bot!
 
9:45 PM
congrats!
 
@ReleasingHeliumNuclei you typed ho instead of e
 
@muddyfish hi to you too
 
@ReleasingHeliumNuclei hi!
 
@ReleasingHeliumNuclei such a long conversation we had
 
9:50 PM
i agree
was just bored
 
@ΛεγίωνΜάμμαλϠΨΠʹ my own
 
Question: What would you call a mapping with probabilistic results?
 
@ΛεγίωνΜάμμαλϠΨΠʹ you can tell it's j because assignment is wrong way (=:) :P
 
10:06 PM
0
Q: Count the Bytes!

βετѧ ΛєҫαγChallenge Write a program which takes the URL of a PPCG answer as input and outputs the length of the answer's first code block in bytes. Code Blocks There are three different ways of formatting code blocks: Four spaces before the code (- represents a space, here) ----Code goes here Surrou...

 
Good evening all
 
good evening
@βετѧΛєҫαγ your question encourage calling Zalgo by parsing HTML with regexs...
(because i dont see a golfer way to parse html)
 
@TùxCräftîñg What can I say except that I like my demonic beings? ;)
 
10:22 PM
ṱ͔̟̣͚h̵̩̫͓͔̫͎i̝̺̯̼̻s͟ ̵r̷̦̞̲ͅo͏̜̗͈͍̤o̭̪̠͎̹̺m̢ ̞̰͚̳̮́ͅi̝̭͇̙̘̫͖͝s̢͇͎̹̜̭͚̞ ̣̩̗͖q͇͢u̗i͎͎̪͖̱͜e̖̰̱t̵̺͚
 
Why are you here? No one has parsed any html with regex yet?
 
a͞h ̸̹͍͈̺̰s͚̺͕͙͈͖͔r̮͉͔͘y̶,̱̝ ̩̗̯̞͎̮͍͟i͞'͍̙̮̻̻l͎͝l̖̜ ̡̝̺̩̞b͙͇e͔̦̮̜̫̦ ̰͙̘̠̜̟͝b̗͖̦̲͔̠ͅa̭̤̳c̷̟k̢͓ ͉̩w͖̤̻̜̞͎ͅh͈͙̲͔̙̣͞e̶̯̤̺̭̞ṇ̰ ̰͈̖͙̪h̷͍̠̫̘̥t̪m̯̻̺̕l͏͇̟ ̘͇̀w̘̬̲̺i̳̪̰̣͠l̵ḽ̦͜ ̗̘͎̯̀ͅb͍̖̞͇̞́e̼̖ ̗p̻͜a̫̟͖̭̣̺̩͜r̛̫̝̳s̵̖e̱͚͓̱͡ͅd̯̪̻ ̱̩̣̮w̰̙̫͖̤i̹̤̫͕t̡̠̲h͖͉̯̥ ͍͜r̝͙̫̯̪ͅe̸̯̜g̭̲e͙͔̞̦̫x̯̜
 
Good, go back to Davy Jones' Locker
 
@NathanMerrill Still on alwsl? Any issues?
 
oh
Uncle Scrooge is doing surprisingly well with the update
1.  1308.1220497323848  Cheater
2.  1242.0333695640356  InsideTrader
3.  1158.3662658295411  UncleScrooge
4.  1113.8344000358493  BlackMarket
5.  1051.8370015258993  DartMonkey
6.  983.0545446731494   WarGamer
7.  939.457423938002    Spammer
8.  901.4372529538886   DumbBot
9.  859.0519326039137   ShutUpAndTakeMyMoney
10. 852.9448222849587   VincentKasuga
11. 718.2112067329083   Profiteer
 
10:35 PM
İ have a question about English, but as you can see I can't even write "I" correctly, so please try to understand.
Does English have a question type that asks an ordinal number?
Like, "......?" "The third one."
 
10:46 PM
Please see changes to this challenge @Adnan @flawr @Emigna
@ReleasingHeliumNuclei Define "question type"
 
@MartinEnder i had an idea to re-use one ; but it doesn't work for this particular string: replace the first encountered / by ] and go through the rest backwards, like this but for other strings you wouldn't need no-ops in the middle:
   H ; e ;
  P ; 2 Q /
 d ; l ; r /
l ; ; o . . ]
 ; o ; W ; 0
  @ ; 1 P ;
   . . . .
 
@LuisMendo a type of question?
 
funcs = Prepend[
  DeleteCases[
   Sequence @@ (count ↦
         SymbolName[#][
          count]) /@ (Length[Flatten[#]] & /@
           Select[Union[(del ↦
                Replace[Delete[#, del],
                 Optional -> Identity, ∞, Heads -> True]) /@
               Subsets[Position[#, _Optional]]],
            FreeQ[#, Verbatim[__] | Verbatim[___], ∞] &] &)[
        DeleteCases[
         "ArgumentsPattern" /.
          SyntaxInformation[#], _OptionsPattern]] & /@
    Symbol /@
     DeleteCases[
WHAT HAVE I DONE
 
@mınxomaτ git status still takes forever, but that's not your fault. I actually raised an issue on their github repo. Also, I can't run java. Even when I do java -version, it just sits there
 
That's odd. JRE at least I tested (ran JetBrain's Rider, which is quite heavy). No idea about java.
 
10:56 PM
yeah
its likely my incompetence
 
Does it have a verbose mode or debugging log or something?
 
@ReleasingHeliumNuclei If you mean a word like "what" for things, "where" for places etc no, I don't think there's a word for order
 
@LuisMendo thx
 
@mınxomaτ I've tried -verbose, and each of the possible -verbose options, and nothing
 
Hmpf.
But tbh, Java is way too bloated to trace. I did that to "repare" pacman's libs for WSL, but I won't bother with Java.
 
11:04 PM
@ReleasingHeliumNuclei "Which" could work in the right contexts.
 
@mınxomaτ It feels like its waiting on something that's locked (or non-existent)
 
Dbus?
 
if I pass in invalid options, it throws an error
@mınxomaτ I have no idea what that is
 
@NathanMerrill What's the CPU usage when it hangs?
 
sits around 20%
 
11:07 PM
Maxes out one core?
Could be an NTPL issue with the JVM.
 
ntpl doesn't return anything useful on google
 
It's linux' threading lib
JVM 1.6+ is known to not like the (somewhat) recent changes in that.
 
Just asked my first Math.SE question, hope it doesn't get closed ;)
 
@ΛεγίωνΜάμμαλϠΨΠʹ brb CVing
 
11:40 PM
@El'endiaStarman Haha, that is a great one=)
 
@LuisMendo Very creative solution! :)
 
@El'endiaStarman Yeah, but I've never played it. It really is considered kind of a hillibilly sport. But it looks quite fun=) I've just seen one game so far I think=)
 
It used to be played without helmets, but there were massive head injuries as you can imagine.
@LuisMendo Cool idea, but I have to think it through tomorrow=)
@El'endiaStarman Also consider rock throwing (Steinstossen) youtube.com/watch?v=J229nTWFyXY
 
6hrs no comments, no upvotes no downvotes; what does it mean?
0
A: Sandbox for Proposed Challenges

Jonathan AllanWhen is their birthday? Donald Knuth was born in 1938, on the 20th day of Capricorn. The first day of that occurrence of Capricorn was the 22nd December 1937. Donald Knuth was born on the 10th of January 1938. The challenge Write a program or function which takes three inputs about a person ...

 
11:56 PM
@El'endiaStarman And don't forget the very popular schwingen: youtube.com/watch?v=LCGHRfIQEOQ
 

« first day (2042 days earlier)      last day (2784 days later) »