« first day (1574 days earlier)      last day (3274 days later) » 
00:00 - 05:0005:00 - 00:00

12:01 AM
We did an egg drop project in BC Calc this week.
It was pretty awesome.
 
What did you learn?
 
To give more context, the goal was to design a device, from limited materials, to that will carry the egg and let it survive a two-story fall.
 
What were the materials?
 
Did your egg break?
 
Let me think.... paper, wooden sticks, straws, rubber bands, tape, hot glue, string, maybe something else.
No, our design was literally beautiful.
 
12:04 AM
How much hot glue?
 
Not like "make a giant shell of hot glue"
 
@PhiNotPi haha, I think I've had to do that at least two or three times in various contexts
 
What was the final design?
 
Our group's final design was an 11-inch cube formed by 18 rolled-up-paper tubes arranged in a 3D lattice shape.
 
12:07 AM
Did it work?
 
Yes. The egg was perfectly fine, and I bet we could drop it many more times.
It won the "judge's choice" award for "most innovative"
 
@PhiNotPi Good job then :)
 
There's a photo of it somewhere, but I don't have it with me now.
 
Nice work!
 
Basically, the egg was wedged somewhere inside a massive paper cube. The paper tubes get crushed, while the egg is safe.
Some other teams weren't as lucky.
I actually think, on the part of the teacher, this project had a horrendously arbitrary and random scoring method.
 
12:20 AM
On order, 1. @AlexA. Uh... I'm gonna need a little more than that. :D 2. I have only heard wont pronounced either "wuhnt" or "won't, " and 3. That's a cool project! Oldie but goodie :)
 
@BrainSteel: You don't know Jake the Dog?
 
Like, he operated a "store" of materials and gave each team a budget. Extra points for going under budget and a stiff penalty for going over. Then, there were points for weight, where the lighter projects got points. Then, there was a judging panel that assigned points on literally no criteria whatsoever. Then, when dropped, there were points for accuracy (how close to the target the project landed), and points for egg survival.
 
Hahaha, "literally no criteria whatsoever."
I've seen it, but the reverence went over my head.
 
My team ended up with a 102 (rounds to a 100), but all those bonus points we and a few teams got, were points that other teams didn't get. One team got like an 88.
 
I guess people judging your work by no criteria whatsoever is actually also a useful learning experience.
 
12:25 AM
They literally could have gotten a higher score by dropping the egg out of the window with no protection.
 
I think points should be: points = materialCost - constant * (eggDamage)
That would be how it would be in real life (I think)
If you were hired to save eggs from damage after falling from high altitudes.
 
The problem is that for the weight and judging categories, only the top 5 out of 7 teams got any points for it.
 
@MartinBüttner one day I was just golfing in Pyth
now I'm rewriting the interpreter from scratch
 
well your mistake was obviously step one though
 
ouch
 
12:29 AM
But seriously, not even building a device would probably net you a 100 based on the garbage scoring method.
 
@orlp it's okay, I like Pyth as much as you like CJam ;)
 
@MartinBüttner what's wrong with Pyth?
 
what's wrong with CJam?
 
that it's not Pyth :P
 
12:31 AM
tbh I never used CJam
I just use Pyth, so that's the camp I'm cheering for
 
Horray for Fortran!
 
(70 base points) + (5 self-assessed points) + ($500 in budget * 1 point per $25 under budget = 20 points) + (5 "lightest design" points) + (5 "hits the general area of the bulls eye" points) = 105
 
boo fortran!
yay Pyth!
 
I think I've used Pyth like once (probably for unscramble the source code or something like that)...
I just generally don't like the premise of it essentially just being shorthand for Python
@KyleKanos welcome back in chat! :D
 
@MartinBüttner we're slowly moving away from that
 
12:34 AM
@MartinBüttner TY. I've been back here and there the last couple days
 
@KyleKanos Hooray for Fortran indeed, provided it's 90+. ;)
 
@AlexA. Fortran is implicitly 90+ as 77 screams at you (i.e., FORTRAN)
 
Hahaha
 
how does fortran compare to C?
I never fully understood why its still used
 
Very different.
Legacy and performance
Those are the two reasons I know.
 
12:36 AM
@MartinBüttner That was once the premise, but it's not really the case any more. Pyth has diverged pretty far from Python. It's built-ins make it what it is, not the language it compiles to.
 
@isaacg I'm making some progress on Pyth5 tonight
 
@orlp Nowadays, they're fairly similar in performance. However, Fortran does a lot of things a lot easier than C
 
Awesome.
 
most of the code will end up pretty clean
however the lexer I'm afraid is a lost cause
 
e.g., defining an array with unknown size would be real, allocatable, dimension(:,:) :: var whereas C would require a few mallocs
 
12:38 AM
@isaacg yeah, I'm remotely aware of that... still not my cup of tea somehow.
 
I don't really think there's a clean way to do it - lexers generally are just a big state machine
I have to correctly handle nested comments in strings in comments, in binary strings
(just like in C " /* this is not a comment * / " /* but "this" is not a string */)
 
Pyth doesn't have comments, currently. Are you adding them?
 
Pyth currently does have comments, in multiline mode :)
but yes, a space followed by a semicolon will be comments in Pyth5
there isn't any useful golf that has a space followed by a semicolon, so it doesn't hurt
 
comments via semicolons remind me of IDL :(
 
actually, since a space followed by # is useless too, I guess I could use # as a comment character
makes more sense in a Python theme too
oh nevermind - lines starting with ; are also comments
there are valid golfs that have lines starting with #
 
12:49 AM
the 2D word-rearranging challenge will might be a to find solutions with as few moves as possible as effective optimal algorithms are not easy (if they exists at all)
if you can't find an optimal algorithm post the challenge as with shortest code tiebreaker :)
(worked for "StickStack numbers")
 
Running What Doesn't Kill Me... now. The number of exceptions and invalid commands thrown by these bots is astounding.
 
1:04 AM
@Geobits I'm planning a koth where bots would be launched at every step but it seems to me that takes a lot of time so a round-robin format would not be doable :(
as for the exceptions: you are welcome :P
 
:P
 
a bot invocation seems like >0.05 sec
 
It just means your bot is performing exception-ally
3
 
Most of the exceptions look like they're just not outputting anything on some turns (may not have a default output). Keep getting "no line found" from my Scanner.
 
@AlexA. please leave
 
1:06 AM
:(
 
:P
 
...
 
with the example bots mine run fine, but others run all and it failed :(
 
How long do you think it will be before Alex comes back?
 
hes a duck
throw some bread
 
1:09 AM
and for a time-travel challenge I have to terminate bots at every turn :(
 
 
@orlp he just left some breadcrumbs
 
Yea, I don't see much way around that for TT bots.
 
@AlexA. ^
 
3 mins ago, by PhiNotPi
...
@Geobits I can hope for very few participants...
 
1:10 AM
lol, every challenge-setter's dream
 
I'm not completely sure why you need to quote an ellipsis, but whatever.
 
@PhiNotPi those are the breadcrumbs
 
-> woosh ->
my head
(The joke going over my head.)
 
1:26 AM
@MartinBüttner If IIRC correctly, you were interested in Screeps, right?
 
I was interested in Screeps when it was announced
but it quickly deteriorated into something that smelled very overly commercial
 
Well, I was going to give an update about how it's in Early Preview MMO now, but I'm (for now) locked out of it.
 
quod erat demonstrandum :)
 
And... I'm also concerned about how much this thing is going to cost as a monetized product.
 
I rest my case
 
1:40 AM
The original plan was to do $0.08 per 1 CPU credit, with 1 credit = 1 millisecond of execution time per tick for one month.
And I realized that the 300 CPU credits in the alpha mode would be a $24 monthly subscription.
On the other hand, they will release a Node.js package at the end of Early Preview, allowing people to run their own games.
 
Wait, you can pay for more CPU time? What?
 
16 mins ago, by orlp
but it quickly deteriorated into something that smelled very overly commercial
 
I was interested...
 
@BrainSteel Yeah, the full game would basically have you pay in accordance with your script's time limit.
 
1:51 AM
You could take the cheapest option of $2.40 a month for 30 ms, or the max of $24 a month for 300 ms.
Which is not a lot, considering most PPCG contests give 500 to 1000 ms for "free."
 
PPCG contests also don't generally say "Time limit of 1 second--unless you pay me."
 
also, your paying competitors have a significant advantage
 
pay2win
 
I would much prefer a fixed cost.
One thing to remember is that, as your territory expands, you have more and more stuff to control.
 
1:55 AM
If the game charged $15/mo outright, it would be much better than... this. In order to be good at this game, you have to send them more money. That's a horrible philosophy.
 
I suspect that CPU time is going to be a serious bottleneck.
And I'm really annoyed by the fact that they've disabled the public "survival" and "arena" game modes while the private early preview is going on. I literally have no way to play the game.
Well, I have like a browser-run simulation mode, but I don't think that counts.
 
@BrainSteel Thanks for the idea! I've been wondering how to monetize my KotHs. Next up: Bot Econ 101
 
-54
Q: Is there a way to buy SO reputation?

vikas devdeIs there a feature by which we can buy reputation on SO (e.g 100 rep for $1)?, or a bot by which we can hack and increase our reputation?

 
I'd like to order 3 seconds for your next KOTH, please. My bots get claustrophobic if they don't have enough time.
 
Only $0.01 per extra 10ms for a single turn. Games usually last 10k turns.
 
2:03 AM
I can golf your code for the low cost of $1 per char
 
Huh. [gaming-the-system] is a tag.
 
I thought I'd never seen that meta question. Turns out I've upvoted the top answer.
 
@Geobits It might have been your badge-harvester bot. /joke
 
Maybe. He gets a little wild if I don't pay much attention to him. Nearly feral at this point.
 
All I want is an MMO KOTH on the cheap.
 
2:09 AM
MMOs, KotH, Cheap: pick any two
 
allow me to quote myself
"Software: cheap, quality, fast. Pick none."
 
Fast as in production speed, or fast as in optimized? :D
 
both?
or rather, neither.
 
I dunno, man. Some of you guys answer these challenges in like 10 minutes.
 
Huh. Basically all the top entries to my koth were by new members. Nice.
One of the example bots squeaked into the standings, and Manu made a showing, but all the rest were new.
Just seven more votes to a gold badge... I can taste it :D
 
2:26 AM
Today I had an idea to base KOTHs off of recent news events.
Open up an incognito window, Google "news" and look at the top result on the "news" tab.
 
Congress Stalled into Inaction Yet Again: The Game
 
"Baltimore Grand Jury Indicts Six Officers in Freddie Gray's Death"
 
Can't you feel the inspiration flowing?
 
I can imagine some depressing challenge titles from that.
 
2:29 AM
I love this idea.
 
"Oil Again Fouling California Coast Near Site of Historic Spill" -> Given an oil spill of N liters T time units ago, output a map showing likely dispersal patterns
 
"Your Secret Questions Are Just as Terrible As Your Passwords" - Hack someone's PPCG account.
 
"Suspect in slaying of wealthy family hunted in New York" - literally a game of manhunt with a tasteful hint of murder spree
 
"Clinton Foundation reveals up to $26 million in additional payments" -> Parse accounting books to reveal discrepancies
 
"Paralyzed Man Drinks Beer by Moving Robotic Arm With His Mind" - Give instructions for how to move an "arm" at certain coordinates to pick up a "drink" at different coordinates, given the joints of the "arm" and the minimum and maximum angles they can bend at
 
2:33 AM
O_o
 
@Doorknob Ok, I like that one
 
I might actually make that a thing. :D I haven't written a challenge in far too long now.
 
"Dog saved from raging river and given mouth-to-mouth (+video)" - not sure yet, maybe plotting a course through river to rescue the dog, followed by CPR-themed dance-dance revolution?
 
I can see where this is going. Popularity contest -- write a program that outputs Code-Golf challenges based on articles at news.google.com.
 
2:52 AM
That might actually work.
 
3:20 AM
 
He came back!
 
Well, they left breadcrumbs.
What's a goose to do?
 
I thought you were a duck. I'm so sorry.
 
...
leave now
(actually don't, I don't know what to leave here to get you to come back)
 
Hold on, don't be angry. Geese are basically ducks with long necks, right?
I like pizza, myself.
 
Looks like I was right. So, you're basically a duck, right?
 
Have you learned nothing in our time apart?!
cries deeply
 
I mean, in a physical sense, aren't we always apart?
And there are geese at a little pond in my neighborhood. They're total jerks.
The ducks are nice, though...
 
Geese are such jerks.
They'll getcha.
 
See? So in a weird kind of way, calling you a duck is flattering...
 
3:34 AM
Yeah okay.
 
It's so hard to keep track of everyone's species nowadays...
 
What is your avatar? A trilobite or something?
 
It came from here.
Nautiluses are cool.
 
Does the game tag require the game be preexisting?
 
So you're a mollusk? Alright, that's cool.
Take a gander at this majestic beast:
 
3:39 AM
@Calvin'sHobbies If so we're not doing a very good job of enforcing that. I'd say not.
 
I see what you did there...
 
@BrainSteel ;)
 
Though, it's still a goose.
 
Go to Google, type in geese are and look at the suggested searches.
 
Dinosaurs.
 
3:44 AM
just finished CodeBots 3 controller!
 
Oooo...
 
I would really love it if somebody would test it and break it
I'm sure there are lots of bugs
 
I can break just about anything.
 
Breaking things willy-nilly is basically a hobby.
 
Don't mind me...
 
3:50 AM
What's the average area of the top of a human head (in square meters)? For science.
 
...uh oh.
 
I'm just a mollusk...
You can trust me.
 
Brainsteel, how do you measure the area?
 
Square meters.
 
Preferably less than 1 of them.
 
3:53 AM
do you take a crosssection?
 
Though really, my measurement would be inaccurate if I only cared about the top of a head. I was curious what the resultant downward force on an average upright person is due to atmospheric pressure.
For... reasons.
 
so, what you need is a top-down shadow area
 
Yeah, basically. My ballpark estimate was about 1 square foot for the average head + 2 shoulders, but I don't know how accurate that is.
 
@BrainSteel Seems legit.
 
You guys want to measure your heads real quick? Measure the circumference, call it a circle, extrapolate an area... 3 is a big enough sample size, right?
 
3:57 AM
sounds like a what-if question
oh, are we talking adults?
or are we taking children into account?
 
Adults.
 
One study in the United States estimated the average human head circumference to be 55 cm in females and 57 cm in males
 
Apparently, not many measurements are taken of the adult head.
Oooh, where did you find that?!
 
One of them is in inches and the other centimeters. Ah, society.
 
4:04 AM
0
A: Sandbox for Proposed Challenges

DennisMake a slow error quine maker! code-challenge busy-beaver quine As part of his answer to Make an Error Quine!, @Falko proposed the following algorithm: How to create your own solution in 2 minutes? Open a new file in an IDE of your choice. Bang your head onto the keyboard in fron...

 
The best kinds of sentences are the ones that start with "Assuming their head is average and spherical..."
 
I worry about the kind of experiments you're going to do.
 
I told a buddy that I felt about 200 pounds lighter now that grades were back. He informed me that would put my weight in the negatives. I wanted to know what proportion of air above my head spontaneously disappeared. Nothing weird.
 
Use photos. I'm sure you can find some top-down photos (crowd monitoring/counting, etc). As long as there's something to reference length by, you should be able to measure the pixel area of a person.
Anything with a known standard size would do for a reference, even something like a car.
 
I DO need pictures of stop signs...
 
4:09 AM
Stop signs? What stop signs? ;)
 
But that's for my shape-recognition research ;)
 
isOctagon()&&isRed()&&saysStop()
done
 
The "saysStop()" is the tough bit, haha.
I came up with ~589 pounds of atmospheric pressure on my head. Anybody else do the math?
 
I'm guessing you don't want to use the various OCR libraries to help with that?
Seems a bit low to me. It's ~14/sq in, right?
 
I'm putting effort into finding the bare minimum libraries required to have accurate image recognition. With virtually nothing, I ran the genetic programming simulation for ~80-87% accuracy in deciding whether or not something was a black circle.
But that method is failing fast.
Google says 2.278 pounds/sq cm. (Yes, that is pounds per square centimeter. Please don't shoot me.)
 
4:15 AM
Heresy
 
Nathan gave me the circumference of a head in centimeters, though :(
 
I blame Nathan.
 
Yeah! He obviously knew I needed pounds in the end...
 
So now I have to assume your head is a square, roughly 6.3 inches per side.
 
Seems reasonable.
 
4:19 AM
I assumed my head was spherical. Though, now that I consider it, the surface area of one hemisphere of a ball is 2*pi*r^2, not just pi*r^2...
 
That's your mistake... you only measure squares with square inches/centimeters. For circles you'd be using multiples of unit circles.
Or circle-inches as they're commonly known.
 
^ pretty sure that's BS
 
But I'd have to find the normals of all the points on my head and dot them with weights and such... Nah, my head can be a circle.
But... You can measure circle-inches with square-inches. It's a conversion that the Greeks had a lot of trouble with.
 
@AlexA. Badly Stated? Maybe, but the premise holds.
 
I can only imagine what lies you fill your son's head with.
 
4:21 AM
The best ones.
 
@BrainSteel You can't go the other way easily though. Google 'squaring the circle' :P
 
@Geobits That's what I was referring to with the Greeks comment :P
 
When I was young my dad convinced me that if you spent a little extra, you could purchase a winning lottory ticket. However, those were too expensive, so he only bought ones that didn't win.
 
Say, wasn't there some scheduled incident involving green slime you were supposed to be busy with?
 
I had that feeling right before I pressed enter... went with it anyway.
 
4:23 AM
Green slime? Was that the result of when you were used as a human paddle?
 
@AlexA. That's almost true if by "a winning ticket" you mean "millions of tickets" (and "a little extra" means "a metric shit-ton extra").
 
*Mollusk paddle
 
@Geobits: He didn't buy many lotto tickets. Certainly insufficient to ensure P(win) -> 1.
 
I'm assuming there are rules against buying 26M lotto tickets at once. Too bad, because the jackpot goes above that often enough around here.
 
I think if you can afford 26M lotto tickets, you have better things to do with your money than buy lotto tickets.
 
4:27 AM
^ yes
 
Like fight world hunger and such.
 
Hell no. If I could spend 26M to guarantee 150M, I'd do that regardless of how much I had.
Then I'd have more money to do the humanitarian thing or whatever.
 
But it's 26M tickets. At $5 each or whatever, that's ... (math here)
 
~130M?
 
Oh, well the tickets here are $1 each.
 
4:28 AM
Where are you?
 
Florida
 
Whoa! Fancy...
 
Hot.
Humid.
 
I was with you for a second.
 
In Florida? How did you manage to do that for only a second?
Better yet, why?
 
4:30 AM
"I've been in Florida"
 
Quick dose of heat
Then back to flatness
 
D:
It's plenty hot here, thank you.
And rainy and tornadoy.
 
Tornado? Stay safe!
 
They've missed my house for 14 years, they'll keep missing it :P
 
...did they get it before that?
 
4:32 AM
No, my house didn't really exist before that.
 
:O
 
Was it something I said?
 
Your house didn't exist 14 years ago.
When I lived in Seattle proper, my house was built in like 1910.
 
(Not an exaggeration)
 
4:35 AM
Well, that's very interesting.
 
Not really. Haha
 
Almost all of the people I know live in rather new houses.
 
Pfft. Kansas.
My current condo was built in the 70s.
 
"Pfft." is about as accurate a way to describe Kansas as any... It's like "Mostly Harmless" for Earth.
 
Haha
 
4:38 AM
You people and your mountains.
 
Also I work on the 20th floor of a 20-floor building.
So many heights
I imagine that all buildings in Kansas have 2 or fewer floors
I just realized how douchey that makes me sound. "My buildings are taller than yours! Hah!"
 
I have 3 floors! One is a basement, but there's still 3...
 
That counts. Is the basement also a tornado shelter?
 
Every basement here is.
 
Fair enough. Probably a good idea.
 
4:46 AM
Wait, your basements aren't tornado-protected?
 
They don't need to be.
 
Can... Can I move there?
 
Sure.
We do have seismic braces on supports in basements though.
Just in case of earthquakes.
 
Ugh, it's a tough call between earthquakes and tornadoes...
 
Well, if it helps sway your decision, we also have volcanoes.
 
4:48 AM
We get the occasional earthquake.
 
Tsunami evacuation route signs are commonplace here.
 
Ah, yes. Tsunamis are not a major concern in Kansas :P
 
Haha it'd have to be one hell of a tsunami.
 
That's like an end-of-world scenario right there.
 
Well, you know, give it some time. Let global warming do its thing for a while. Kansas will have a coastline soon enough.
 
4:52 AM
I'm so excited. I can use my boogie board again!
 
Why do you have one? You're in Kansas. :P
 
:( Don't ruin this for me!
 
I'm sorry... u_u
 
I go to beaches sometimes...
 
Where? In Kansas?
 
4:54 AM
I, too, know the pain of a jellyfish.
 
:O I do not know this pain.
 
No, not in Kansas. Kansas doesn't have beaches. Kansas doesn't get pretty things.
In 'bama.
 
Obama?
Like at his house?
 
No, at his beach.
By the way -- it's not a good pain.
 
Is there a good pain?
 
4:56 AM
I mean, there are things that would usually hurt but feel good in certain circumstances. Like, ice packs.
But no, not really.
 
If you think about it, all US beaches are Obama's beaches in a sense. At least until November 2016.
 
Tell him to fix his jellyfish problem >.>
They're everywhere.
Or I visit the wrong beaches. One of the two.
 
Perhaps that could be a candidate's platform in the next presidential election. "I will address the jellyfish problem that plagues our nation's beaches!"
That could be you.
@BrainSteel for President, 2016
 
00:00 - 05:0005:00 - 00:00

« first day (1574 days earlier)      last day (3274 days later) »