« first day (2039 days earlier)      last day (2819 days later) » 

9:00 PM
am I making any sense?
If I have a random double, and I square it, what distribution will it be?
 
the best thing in my game: you are a helicopter being rekt by flying cats
 
Nyan rekt
 
@NathanMerrill more heavily waited towards the top end?
 
Flying cats being rekt by helicopters would be even better
 
...its more heavily weighted towards the bottom
aka, you're more likely to get a value from [0-10] than [90-100]
 
9:03 PM
@NathanMerrill whoops my heads not on right
@NathanMerrill yeah thats right
0-10 is a 3/10 chance
90-100 is a 1/30 chance or so
If I may ask, what is the goal for this random number
 
^ Level 7 Downvote
 
@RohanJhunjhunwala for my KoTH. I need a name for it for my post
 
@NathanMerrill idk what to call it
@NathanMerrill the title might not have to reflect gameplay.
 
I need my post to be self-contained :)
 
9:06 PM
@NathanMerrill I don't disagree.
@NathanMerrill but you don't need to explain it in the title
 
its not in the title
 
Oh
@NathanMerrill perhaps just say that the generator creates a truly random double and then squares it which provides a heavier weightage to the lower outputs
 
...there's a name for it
 
@NathanMerrill oh then I'm afraid I'm not much help.
 
where's a math major when you need one?
oooh, its a Chi-square distribution
0
Q: Normal distribution squared probability

user138565Let $X_1,X_2,X_3,X_4$ be independent standard normal random variables and $Y=X^2_1+X^2_2+X^2_3+X^2_4$. Find the probability that $Y≤3$. Enter your answer as a decimal and make sure that at least $10$ digits after the decimal point are correct. I am confused about something. Since the normal dis...

 
9:16 PM
@Adnan You forgot my own Mthmtca in that list of yours
 
?
what list?
 
@TùxCräftîñg Sorry, wrong user
 
@ΛεγίωνΜάμμαλϠΨΠʹ Thanks! Added.
 
Woah wait what, this comment has double the votes of the question!
slurp.chomp.comb... Perl is weird. — Mego Aug 26 at 6:31
 
SLURP!!! CHOMP!!! COMB!! Here comes the Perl monster! — Jop V. 24 mins ago
 
Anonymous
9:19 PM
@El'endiaStarman What can I say? I'm witty.
 
no love for neoscript ;_;
1
A: This isn't rocket science

TùxCräftîñgNeoscript, 76 bytes {s|" | /_\\ "+(s as Array):map({e|" |"+e+"| "}):fuse()+" |_| /___\\ VvV"}

 
Anonymous
See? Just like that.
 
I have no idea what neoscript is, and there isn't a link or explanation to help it make sense.
 
yesterday, by Martin Ender
@LeakyNun people might show it more love if you added an explanation instead of begging for votes in chat.
 
Anonymous
I find it fascinating that people try to argue that Perl isn't an esolang
 
9:22 PM
1
Q: Stock Exchange KoTH

Nathan MerrillThe stock market is all about the speed of knowledge. Unlike previous challenges, the current stock price is not random: it is determined by those playing the game. If you can identify an under-priced stock before anybody else, then you've written yourself a money-making program. Each player st...

 
i always forget the link >_>
 
Anonymous
Oh wow there's an old-school red phone booth at each gate at this airport.
 
Apparently, there are exactly 31 0-byte messages in TNB. Lolz. :P
 
Anonymous
Even more amazing - I see somebody using one!
 
@El'endiaStarman wat
 
9:24 PM
@El'endiaStarman you have to post a bel character to bug it
 
@NathanMerrill isn't the only winning move not to play?
 
A friendly reminder that any valid entry to this challenge gets a 350 rep bonus in 2 days.
 
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
 
In PPCG:
This indentation thing is nonsense — edc65 Jun 15 '14 at 12:49
 
one more message now
 
@RohanJhunjhunwala nope. If you buy some stock for less than they are worth, then your ending net worth will be larger
 
9:29 PM
@NathanMerrill but there is no way to know if you are buying some stock for less than its worth
@NathanMerrill If i attempt a no-op strategy will you be offended?
 
semi-onebox?
 
Yeah, the whole "secret value" thing has me thrown. What sort of stock market trading happens if nobody knows any prices?
 
Wait, I forgot to restrict it to question comments
 
the secret value is the secret end value
aka, the amount its worth when you trade them all in
not the current price
in real stock markets, the "current price" is simply the last price it was traded at
 
But how can that be, if the stock prices are determined by the players (as said in bold)?
 
9:31 PM
...they are. If I sell you a stock for X, then that is the new price
 
So it's not the "end" end value?
 
The highest ratio for a question with non-1 score:
But, further, why is a code golf question scoring based on votes? It's code golf, not a popularity contest — doppelgreener Mar 6 '14 at 8:38
 
@trichoplax It wasn't counted as a onebox since there isn't a <div class="onebox ob-type">...</div> thing, but it still looks and feels like a onebox.
 
@Geobits right. The "value" is the amount you'll get paid for each stock at the end. the "price" is whatever people are selling it for
 
@NathanMerrill is it ok, if I put up a no-op strategy. I genuinely believe it can win.
 
9:32 PM
Is the hidden end value analogous to confidential profit figures being released which affect the price later in an unpredictable way?
 
@RohanJhunjhunwala yes
@trichoplax its basically insider knowledge, yes
 
@RohanJhunjhunwala No-ops have been done for many koth. As long as it's not an emo-suicide entry you should be fine.
 
@NathanMerrill is this a valid entry
package com.ppcg.stockexchange;


    import com.ppcg.kothcomm.game.AbstractPlayer;
    import com.ppcg.kothcomm.utils.Tools;

    import java.util.List;

    public class WarGamer extends Player {

        /**
         * @param offers All available offers
         * @return An offer you want to accept, or null if you want to accept neither.
         */
        public abstract Offer acceptOffer(List<Offer> offers){
return null;
}


        public abstract Offer makeOffer(List<Stock> currentStock){
 
@Geobits Yeah, suicidal entries are typically not fun, but just in this case, I kinda wanna see a Fry bot. "Shut up and take my money!" :P
 
@El'endiaStarman that is the sort of bot that would cause me to lose
 
9:35 PM
So each player knows the end price of a single stock. Doesn't that just mean whoever gets the best secretValue stock from the start has a huge advantage, since they can just buy up any being sold at almost any price?
 
Will that push the price up?
 
The price maybe, but not the actual value you get at the end.
 
Depends on whether there's time for the price to adjust before they've bought the lot, I guess
 
@Geobits From my point of view, do you think bots will sell stocks of an unknown price
 
The highest ratio for an SO question with non-1 score (284/11 ≈ 2581.82%):
Stop using new so much. I can't see any reason you used new anywhere you did. You can create objects by value in C++ and it's one of the huge advantages to using the language. You do not have to allocate everything on the heap. Stop thinking like a Java programmer. — Omnifarious Aug 7 '10 at 1:20
 
9:37 PM
@ΛεγίωνΜάμμαλϠΨΠʹ That is why Java is bettern than C++.
 
@RohanJhunjhunwala That's an issue, too. I can see myself trading on the single stock I know the value of, but trading on any others doesn't make much sense, so you'd be relying on others using blind strategies I guess.
 
new Foo(new Bar(new Baz));
 
Can anyone suggest an SE site?
 
Computer Graphics
 
@ΛεγίωνΜάμμαλϠΨΠʹ This one seems okay.
 
9:38 PM
»  curl github.com/nathanmerrill/StockExchange/raw/archives/… > StockExchange.jar
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   154  100   154    0     0     75      0  0:00:02  0:00:02 --:--:--   108
Elie@elie-asus — ~
»  java -jar StockExchange.jar
Error: Invalid or corrupt jarfile StockExchange.jar
???
 
(SE Meta itself doesn't seem to work, which is odd)
 
lets say I start selling stock at X+5. You now know (somewhat) how much that stock is worth
 
What stock challenge are you guys talking about?
 
6 mins ago, by ΛεγίωνΜάμμαλϠΨΠʹ
But, further, why is a code golf question scoring based on votes? It's code golf, not a popularity contest — doppelgreener Mar 6 '14 at 8:38
 
0
A: Stock Exchange KoTH

Rohan JhunjhunwalaWarGamer Upon a perfunctory examination of the rules I have decided that the primary winning move is not to play. Anyone offering to sell stock likely knows the price and will profit from the sale package com.ppcg.stockexchange; import com.ppcg.kothcomm.game.AbstractPlayer; import com...

 
9:39 PM
@ΛεγίωνΜάμμαλϠΨΠʹ Oh, I just meant in general. You asked for an SE site to suggest. I say this one.
 
@NathanMerrill is that a valid submission I want to make sure I got the specs right
 
its fine
 
@NathanMerrill thanks! I would laugh it does fairly well
 
@trichoplax The highest ratio for an CG question with non-1 score (200%):
Could you refine your question? You have a nice introduction, but it's difficult to know what you're really asking. How to use GL_POINTS? How to use points to draw a 2D shape? etc.. — RichieSams Sep 23 '15 at 18:34
 
I missed the beginning of this conversation and I'm not sure what the score relates to
Is it comment score/post score?
 
9:41 PM
@RohanJhunjhunwala Did you try to compile your entry?
 
My first arbitrary guess would be SO for the highest ratios
 
@RohanJhunjhunwala can you include ", Java" in your title?
 
»  ./gradlew
Downloading services.gradle.org/distributions/gradle-3.0-all.zip
...............................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................
wat
2 many dots
 
The lowest ratio for an SO question with non-minus-1 score (-113/2 = -5650%):
Thanks to all who helped Justin with his university assignment: your solutions are his solutions. Justin has been monitored by the course staff for some time now and will meet shortly with the Dean to discuss his future academic career. — user539066 Dec 11 '10 at 19:10
 
9:43 PM
the auto-downloader doesn't work without it
 
@ΛεγίωνΜάμμαλϠΨΠʹ which one is that?
 
@ConorO'Brien See the message directly below it
 
»  ./gradlew

FAILURE: Build failed with an exception.

* Where:
Build file 'C:\Users\Elie\StockExchange\build.gradle' line: 38

* What went wrong:
A problem occurred evaluating root project 'StockExchange'.
> Could not resolve all dependencies for configuration ':compile'.
   > Configuration with name 'default' not found.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

BUILD FAILED

Total time: 1.926 secs
wat halp
oh solved
 
@ΛεγίωνΜάμμαλϠΨΠʹ What's the highest ratio on code golf?
 
9:48 PM
16 mins ago, by ΛεγίωνΜάμμαλϠΨΠʹ
But, further, why is a code golf question scoring based on votes? It's code golf, not a popularity contest — doppelgreener Mar 6 '14 at 8:38
 
@RohanJhunjhunwala I specifically need ", Java" (the comma is important, and should go after the name)
 
@NathanMerrill oh, my bad
@TùxCräftîñg ninjad me on the edit
 
»  ./gradlew build --info
Initialized native services in: C:\Users\Elie\.gradle\native
Connected to daemon DaemonInfo{pid=12412, address=[4ae208c1-0535-4fa5-8025-588e273da969 port:58010, addresses:[/127.0.0.1, /0:0:0:0:0:0:0:1]], idle=true, lastBusy=1472507474193, context=DefaultDaemonContext[uid=a0d2d1e6-8e3f-43ce-92a9-8c96512fdf61,javaHome=C:\Program Files\Java\jdk1.8.0_77,daemonRegistryDir=C:\Users\Elie\.gradle\daemon,pid=12412,idleTimeout=10800000,daemonOpts=-XX:MaxPermSize=256m,-XX:+HeapDumpOnOutOfMemoryError,-Xmx1024m,-Dfile.encoding=windows-1252,-Duser.country=FR,-Duser.language=fr,-
.___________________.
 
Someone posted a submission without even attempting to compile it themselves. Do I A) tell them exactly what they did wrong, or B) make them go compile it themselves and stop creating work for other people?
 
9:53 PM
@Rainbolt If you're really bored, A. Otherwise, B. The onus is not on you to prove correctness of solutions.
 
Nathan spoiled it already
 
@El'endiaStarman Pretty sure you have to escape the dot in regex...
 
i am only thrid ಠ_ಠ
 
@El'endiaStarman -_-
@TùxCräftîñg d(-_-)b
 
@El'endiaStarman your regex also match ಠ_ಠ
revised query
and i am by far the first
 
10:00 PM
@TùxCräftîñg The code isn't loading for me
 
<C-F5>
or restart your browser
 
@TùxCräftîñg thx
 
@Doorknob Aw shoot, you're right. I switched from LIKE to ~ and forgot that the whole syntax changed...
@TùxCräftîñg Yeah, that makes wayyy more sense. :P
 
0
A: Sandbox for Proposed Challenges

βετѧ ΛєҫαγDNA Encode a String code-challenge string kolmogorov-complexity compression Challenge You must write an encoder (and a separate decoder) which takes a string as input and outputs the string encoded in the style of a strand of DNA. DNA DNA is made up of four types of nucleotide: Adenine (A)...

 
Exception in thread "main" java.lang.RuntimeException: java.lang.IllegalAccessException: Class com.ppcg.kothcomm.loader.FileReader can not access a member of class ShutUpAndTakeMyMoney with modifiers "public"
wat
 
10:08 PM
Is the class itself public?
 
#javaisstupid
 
@TùxCräftîñg <disapproval face>
(text replacement is borked for me :/)
 
The goat truly has joined the dark side. Bravo.
 
0
A: Stock Exchange KoTH

TùxCräftîñgShutUpAndTakeMyMoney, Java import java.util.List; import com.ppcg.stockexchange.*; public class ShutUpAndTakeMyMoney extends Player { public ShutUpAndTakeMyMoney() {} public Offer acceptOffer(List<Offer> offers) { try { return offers.get(0); } catch (Excepti...

 
Yay improvement
 
10:11 PM
55 secs ago, by Downgoat
@TùxCräftîñg <disapproval face>
 
I slept at 5 am yestersay
Now im sleeping at 1 am
Gn
 
@ReleasingHeliumNuclei TIL decays need to skeep
 
tqdm is a progress bar libraries that pretty much gives you instant progress bars.
import tqdm, time
for i in tqdm.tqdm(range(100)):
    time.sleep(0.1)
 
@Downgoat half life bro
:p
 
@TùxCräftîñg thanks
just like, that progress bars
 
10:13 PM
no love for ShutUpAndTakeMyMoney ;_;
 
fastest library out there
 
Question: Is it possible, in C, to send a keystroke to a given X display?
 
yes
idk how but yes
 
g'n
g'n me too, bai
 
10:15 PM
bah
already finding bugs
 
@ΛεγίωνΜάμμαλϠΨΠʹ Maybe xdo is what you are looking for. It also works on non-0:0 displays.
 
@mınxomaτ Great, there seems to be a libxdo
 
@TùxCräftîñg I'm exploting your bot for cash
 
For once, @EᴀsᴛᴇʀʟʏIʀᴋ doesn't top that list. Still second place, though. :P
 
10:26 PM
@NathanMerrill please take a look at my code, and let me know if it is valid
 
I've made it super easy to run my KoTH
you don't even need to compile anything
 
I altered the code to rob Shut up and take my money blind
Also how many different stocks are there?
 
simply download the Jar, run java -jar StockExchange.jar download, then java -jar StockExchange.jar run
depends on the number of players
 
One per player?
 
10:29 PM
@NathanMerrill How are offers ordered?
 
what do you mean?
oh!
I read that as "ordered", as in a restaraunt
randomly
 
When you call makeOffer or acceptOffer, how will the list be ordered?
 
makeOffer doesn't matter. acceptOffer is the only one, and its random
 
have any of you guys seen such a piano system?
 
@NathanMerrill That is good
 
10:31 PM
haven't seen you in a while rainbolt
 
although I don't randomly order each turn. Patching
 
@orlp I'm always in here, and I pipe up occasionally, but this is the first time in a while I have been interested in participating on main.
 
@orlp too bad that I can't hear it :\
 
@NathanMerrill What am I doing wrong with java -jar StockExchange.jar -download? Nothing happens when I call it like that.
 
no dash
just download
 
@ΛεγίωνΜάμμαλϠΨΠʹ you don't have ears? :(
 
@Rainbolt let me know how good wargamer does
 
@orlp I don't have working headset. :(
 
@NathanMerrill Still nothing happens
 
It defrauds Shut up and take my money quite effectively (hopefully)
 
10:42 PM
java -jar StockExchange.jar download
 
check for a /submissions folder?
 
My working directory is the directory containing the jar and nothing else. No submissions folder
 
I didn't have much ability to test it, but it worked for me
 
@NathanMerrill how does WarGamer do?
 
what happens if you run it without download?
I'm running into an issue with my python bot
 
10:45 PM
C:\Users\jrainbolt\Downloads\StockExchange>java -jar StockExchange.jar
No command given, executing 'run' by default
Exception in thread "main" java.lang.RuntimeException: Compiler not available.  Either include tools.jar in your classpath or run from the JDK
        at com.ppcg.kothcomm.loader.Compiler.<init>(Compiler.java:20)
        at com.ppcg.kothcomm.loader.FileReader.<init>(FileReader.java:18)
        at com.ppcg.stockexchange.Main.run(Main.java:44)
        at com.ppcg.stockexchange.Main.main(Main.java:34)
 
ok, so you're running it fine
also, you do need to run it from the JDK
otherwise, you won't be able to compile the downloaded submissions
but that's not true of the "download" command
 
I don't know what it means to run "from the JDK" lol
3
 
do you know what the JDK is?
better question: have you ever compiled a Java program on your computer?
 
Yes, but I thought a jar was already "compiled" (into the special Java byte code or whatever)
 
@NathanMerrill do you mean like javac Code.java ?
 
10:49 PM
@Rainbolt it is, but we actually compile the submissions
 
I run everything through my IDE's gui mainly
 
Okay maybe I am not being clear. I can compile Java. I can run compiled Java. I do not know how to "run from the JDK".
I am probably just being dumb, so I'll let it go.
 
no its fine
so, there are two java.exe's on your computer
one of them is in your jre folder
the other one is in your jdk folder
you are running jre/bin/java.exe
where I require jdk/bin/java.exe
 
I see. So instead of java blah blah I need path_to_jdk\java blah blah
 
yep
either that, or change your PATH
(my preferred solution, but that's totally up to you)
 
10:53 PM
I searched a long time ago for a way to clean up unused parts of my path. I never found a solution, and so I became paranoid and never want to change my path again.
 
are you on windows 10?
they made the path nice and easy to edit
 
The path on my laptop (running Windows Vista) is extremely long and I have no idea which parts I can safely remove.
 
ah, nevermind :)
 
I used it to run the Wolf KotH and so my path exploded
I think we had submissions in like twenty languages
 
10:57 PM
I'll have to revisit. Guy wants to do maintenance on the servers and he thinks I am still working.
Thanks for the help
 
@Rainbolt oh! I know why it isn't working for you
its 100% my fault
the API is still updated to question 0
 

« first day (2039 days earlier)      last day (2819 days later) »