« first day (1935 days earlier)      last day (2898 days later) » 

5:00 PM
@NathanMerrill Not necessarily. Just build the array as you go along.
 
 for range():
      if true_second():
         for loop():
      if true_first():
         for loop():
 
....oh right. Hmm.
If you could attach labels to loops, that could basically solve the problem entirely.
Or have one magic variable that stores the iteration count of the most recent loop.
 
feature-request: when the entire program is wrapped in matching {{{<<...>>}}}, the program is converted to rickroll
 
@CᴏɴᴏʀO'Bʀɪᴇɴ ಠ_ಠ
 
ಠ╭╮ಠ
 
5:13 PM
ಠ╭──╮ಠ
 
does anyone know much about the base64 format of pngs?
 
:< ̄`ヽ、       / ̄>
 ゝ、  \ /⌒ヽ,ノ   /´
   ゝ、( ( ͡° ͜ʖ ͡°) /
     >     ,ノ
     ∠_,,,/´”
5
 
Hmm. That one didn't work as well.
 
5:20 PM
These memes be too dank
send teh halp
Also, WTF TEN STARS?
 
22 hours ago, by VTCAKAVSMoACE
Three men who were lost in the forest were captured by cannibals. The cannibal king told the prisoners that they could live if they pass a trial.

The first step of the trial was to go to the forest and get ten pieces of the same kind of fruit. With that, the three men went their separate ways to gather fruits.

The first one came back and said to the king, "I brought ten apples."

The king then explained the trial to him. "You have to shove the fruits up your butt without any expression on your face or you'll be eaten."
 
Weekly "dare to answer?" question:
5
Q: Actually Integer Metagolf

MegoBackground Actually (the successor to Seriously) is a stack-based imperative golfing language I created in November of 2015. Like many other golfing languages, it has one-byte commands that perform different functions based on the contents of the stack. One of its specialties is mathematics - it...

 
Convert all star numbers to binary: [].slice.apply(document.querySelectorAll(".times")).forEach(function(e){e.inner‌​HTML = parseInt(e.innerHTML, 10).toString(2)});
 
5:27 PM
@zyabin101 I added a 500 rep bounty to this.
 
5:38 PM
@Mego working on your problem
 
Upvoted @dmckee's comment but just have to add that "-funroll-loops" always sounds like the name of a cool roller-coaster at a theme park to me :-) — Vicky Jan 10 '13 at 17:24
 
@El'endiaStarman I think I've figured out how to define _
its a context value
 
how do I get the readline module for python?
 
aka, in Java, the word this is basically the same thing
but you can't do something like this = 4
 
@El'endiaStarman That was kinda what my plan for \pos was although I'm not sure whether to have it keep the last value
 
5:43 PM
@CᴏɴᴏʀO'Bʀɪᴇɴ If it's not a standard library, then pip install readline. If you don't have pip, then look up how to install that (probably easy_install pip or something like that).
 
@CᴏɴᴏʀO'Bʀɪᴇɴ pip install module or easy_instal module
 
I have neihter of those
 
ninja'd
 
@CᴏɴᴏʀO'Bʀɪᴇɴ Then find the setup.py file for easy_install and run it.
 
@CᴏɴᴏʀO'Bʀɪᴇɴ You absolutely have easy install
 
5:44 PM
@quartata It's named easy_install?
@El'endiaStarman where would that be? o_o
 
Setuptools comes by default nowadays I thought
 
@CᴏɴᴏʀO'Bʀɪᴇɴ Google it. :P
But yeah, I'd expect that you already have easy_install.
 
I don't.
C:\Users\Conor O'Brien\Documents\Programming\PPCG\actually metagolf>easy_install

'easy_install' is not recognized as an internal or external command,
operable program or batch file.

C:\Users\Conor O'Brien\Documents\Programming\PPCG\actually metagolf>
 
wait, why easy_install?
isn't pip the preferred module?
 
I don't have pip
 
5:45 PM
literally impossible
not to have easy install that is
 
@NathanMerrill It is. easy_install is like Internet Explorer in this regard. You use it to get a better tool.
 
so.. I need to install something to install easy_install to install pip to install readline. Can I just download readline or something?
 
It's probably in a place that isn't in your path
 
@CᴏɴᴏʀO'Bʀɪᴇɴ if you want to use python, you should always use pip
 
Poke around where you installed python it must be there
 
5:46 PM
that said, pip comes with python 3
 
@NathanMerrill I don't want to use python.
I need to.
 
so, just install python 3
 
And I bloody have python 3
 
python3 -m pip
what happens if you type that?
 
C:\Users\Conor O'Brien\Documents\Programming\PPCG\actually metagolf>python3 -m p
ip
'python3' is not recognized as an internal or external command,
operable program or batch file.

C:\Users\Conor O'Brien\Documents\Programming\PPCG\actually metagolf>
 
5:47 PM
python -v
 
windows amirite fellas
 
a whole crapload of text ending with python: can't open file 'pip': [Errno 2] No such file or directory
 
@CᴏɴᴏʀO'Bʀɪᴇɴ when you do python -v
?
 
@quartata No, not windows. If you want to insult something, insult me--I'm the problem
@NathanMerrill yeah
 
5:48 PM
then something is really wrong
 
@NathanMerrill Should be a capital V.
 
@NathanMerrill that's verbose mode lol
 
--version
 
my bad
python -V
 
5:49 PM
> python 2.7.11
wtf
I have python 3
 
Yeah that always throws me off too
 
Get a package manager.
 
Well, you can always do C:\Python35\python.exe as a substitute for python3.
 
A manager of program packages.
 
5:49 PM
gee thanks
 
It makes commands easier, at least in unix.
 
Basically, you can call it to install things or uninstall things.
 
@CᴏɴᴏʀO'Bʀɪᴇɴ I'd go into C:\Python35 and rename python.exe to python3.exe
 
I don't have 35
only 34
 
5:50 PM
36?
that's fine
also, make sure that your path contains the 34 folder
 
It doesn't, but I'll just use the direct location
 
yeah
you can do python3 -m pip install whatever
assuming you renamed it
 
yeah I did
C:\Users\Conor O'Brien\Documents\Programming\PPCG\actually metagolf>"C:\Python34
\python3" -m pip install readline
Downloading/unpacking readline
  Running setup.py (path:C:\Users\CONORO~1\AppData\Local\Temp\pip_build_Conor O'
Brien\readline\setup.py) egg_info for package readline
    error: this module is not meant to work on Windows
    Complete output from command python setup.py egg_info:
    error: this module is not meant to work on Windows

----------------------------------------
Cleaning up...
ಠ_ಠ @Mego
 
5:53 PM
lol
 
can I ask tryitonline to eval code for me?
 
why do you need readline?
 
to use seriously
 
> error: this module is not meant to work on Windows
...what? o.O
It's a frikkin' cross-platform language!
 
language ≠ module
 
5:54 PM
its a binding to GNU readline
 
Hey, the module has good taste.
 
Or you and the module have bad tastes
 
@VTCAKAVSMoACE Certainly. It's just weird that something developed using a cross-platform language wouldn't be cross-platform itself.
 
at least the module errors on install (instead of just not working)
 
5:55 PM
at least
 
And now that I know it's meant to act like a Unix-specific feature, that makes more sense.
 
I'm pretty sure gnu readline would be a pain in the ass to port
It's really a unix thing
 
I think I'll just edit seriously
 
Anyways just use TIO
 
I still don't know why seriously needs readline
 
5:57 PM
@BaldBantha Looks like it's an encoding of complexity sorted like binary ... E is dot, T is dash, I is dot-dot, A is dot-dash
 
@quartata I need to run a program on 600+ numbers. ಠ_ಠ
 
@CᴏɴᴏʀO'Bʀɪᴇɴ bonne chance
 
@VTCAKAVSMoACE you were able to ask TIO for data in data, right?
 
@CᴏɴᴏʀO'Bʀɪᴇɴ Well, yeah.
 
is that not a good idea?
 
5:59 PM
@CᴏɴᴏʀO'Bʀɪᴇɴ You wanna be bound to the internet?
 
@VTCAKAVSMoACE Well, it seems I have no other choice.
unless @mego is willing to allow windows users to use his program
 
@CᴏɴᴏʀO'Bʀɪᴇɴ Do you have both Python 2 and Python 3 installed? Which one is first in your %PATH% environment variable?
 
@TimmyD no, only python3; neither.
 
where's the repo?
 
¯\_(ツ)_/¯ Alright. You have access to data, just clone down the code and port it to output to console instead.
 
6:01 PM
for seriously?
 
@VTCAKAVSMoACE okay I think I'll just let him test it
 
...er
AFIAK, he doesn't even use readline
I mean, he imports it, but doesn't actually use the module
 
yeah, simply remove the references listed there, and you should be good
 
6:03 PM
in PPCG Code Snippet Chat Bot, 19 secs ago, by Data
Bot restarted after crash.
 
that said, maybe readline does magic stuff (and doesn't need to be called)
but I doubt it
 
C:\Users\Conor O'Brien\Documents\Programming\PPCG\actually metagolf>seriously
Requested Python version (3) is not installed

C:\Users\Conor O'Brien\Documents\Programming\PPCG\actually metagolf>
wtf
My computer is haunted
 
you didn't add it to your path
 
C:\Python34\python3.exe seriously
@El'endiaStarman you should automatically parse - and -- arguments
 
6:07 PM
I don't care enough to fix this >_<
 
Adding Python to your path isn't just for Seriously.
 
try using anything that isn't windows
 
@Quill (a) not an option, I'm 15 and this computer works fine. (b) no.
 
On a serious note, you should try a linux or unix os at some point in your life
 
if anything, I'd go mac.
Never
 
6:11 PM
@Quill *nix has PATH variables, too
 
The Ubuntu OS can be run alongside windows
@TimmyD yes, me and my tears know
 
set PATH=%PATH%;C:\Python34
 
I have a path editor
I'd just rather not add much to my path
 
I do, too -- it's called CMD ;-)
 
there you go
linux on windows
natively!
 
I'm sure there's some PowerShell way to do it, too, but I've never looked it up because set is just so dang easy
 
/me steps back into the mist
 
6:15 PM
@CᴏɴᴏʀO'Bʀɪᴇɴ Python is, of all things, absolutely worth adding to your path.
@NathanMerrill Huh what?
 
@El'endiaStarman I've only ever used it for three things: (1) getting familiar enough with the language so I can say I know another lang, (2) running calvin's picture programs, and (3) trying to run seriously
 
@El'endiaStarman it'd be so convenient to automatically have a list of arguments passed to your programs, including a dictionary of arguments passed like -option=value
 
@NathanMerrill I already parse a few arguments for Pytek. Stuff like -t for printing the AST and -c or --code for passing in code as an argument as opposed to a filename.
 
not pytek itself
 
Oh, @NathanMerrill -- speaking of $_ here's a couple more PowerShell fun automatic variables -- $^ is the first token of the previous command, while $$ is the last token of the previous command.
 
6:18 PM
but programs that use pytek
 
Oh, I see. Hmm, maybe.
 
PS C:\Tools\Scripts\Golfing> Get-Variable true

Name                           Value
----                           -----
true                           True



PS C:\Tools\Scripts\Golfing> $^
Get-Variable

PS C:\Tools\Scripts\Golfing> $$
true
 
hi all
 
I don't think I have ever used them.
 
important question of the say.. why has everyone moved to .mkv from .mp4 these days?
 
6:20 PM
I still use .mp3.
 
.mp4 is more streamable, right? Depending on your codec?
 
@VTCAKAVSMoACE apparently mkv supports higher quality codecs?
 
@El'endiaStarman did you just mod edit that to get my attention? >_>
 
but I am not sure I believe it
@CᴏɴᴏʀO'Bʀɪᴇɴ surely ogg vorbis or flac! :)
 
@Lembik ¯\_(ツ)_/¯ Why is Donald Trump the final Republican candidate? The world is full of strange inconsistencies.
 
6:22 PM
ok I now have the answer
"MKV is more flexible - it is designed to accept virtually any video and audio compression CODECs, supports embedded subtitles in numerous formats, allows attached metadata such as chapter information, etc.

MP4 is limited only to MPEG4 audio and video. In practice, this mean that you can use H264 video, and AAC audio only. DTS and AC3 audio CODECs are not officially supported, neither are MP3, etc."
 
@VTCAKAVSMoACE Trump is clearly the right choice for the US and the world.
ahem...
:)
 
But .mkv is just a container
Usually containing an .mp4 file
 
@TimmyD yes but apparently it support h265 for example where the mp4 container doesn't?
 
@CᴏɴᴏʀO'Bʀɪᴇɴ What? No. There's no edit icon either.
 
6:24 PM
@TimmyD I am not sure that makes sense.. mp4 is also a container which supports MPEG-2 Part 2, MPEG-4 ASP, H.264/MPEG-4 AVC, H.263, VC-1, Dirac, others
 
@El'endiaStarman because I just got pinged by that again
 
Some sort of fluke/glitch, then.
 
hmm.. I think my h.265 comment was wrong.. who knows
 
@El'endiaStarman my internet is acting super weird rn and idk why--maybe it's causing that
 
Well, yeah ... dumping HEVC (H.265) into .mp4 is technically possible, it is definitely not widely supported
 
6:29 PM
so really I have no idea why everyone has gone .mkv mad
 
It's open and it supports dang near everything
 
is mp4 not open and what doesn't it support that people want to use?
if that isn't phrased in too confusing a way :)
 
All I really care about is that it plays in VLC. :P
 
.mp4 is from the MPEG task force, which is technically open in that it's an ISO/IEC standard, but there's a lot of patent cruft that's associated with it. Matroska is both "free as in speech" and "free as in beer"
 
@El'endiaStarman :)
@TimmyD thanks!
 
6:34 PM
Hi
 
hi
 
@Lembik You're very welcome! Home theater is a hobby of mine, so I'm decently up to speed on the ins and outs.
 
@KennyLau "Not Kevin", you say...
I have invented a new type of stealth ping:
 
0
Q: collatz conjecture code golf

shai horowitzWhat is the most efficient algorithm to check whether all number up to N will end in $x=1$ under iterating $f (x)=x/2$ if x is even and $f (x)=(3x+1)/2$ if x is odd. Hint all one needs so show that for all x

 
6:38 PM
@TimmyD Anti-ping!
 
trying to come up with a new fiendishly hard challenge
so far I think searching for better matrix multiplication is the winner
 
@Lembik That's like a CS PhD research topic.
 
@El'endiaStarman well.. and.. you mean slightly below the usual standard here? :)
@El'endiaStarman there is a more or less brute force search approach
 
Brute force for matrix multiplication? o.O
 
@El'endiaStarman codegolf.stackexchange.com/a/77212/9206 is also PhD level
 
6:42 PM
@wizzwizz4 Null byte between the @ and my name?
 
@El'endiaStarman yes.. let me show you gregorybard.com/papers/early_release.pdf
 
@TimmyD Close...
@TimmyD Not quite, though!
 
It's just a ZWSP.
 
@El'endiaStarman Yes! :-)
 
Time to bring back stealth pings.
 
Anonymous
6:47 PM
@CᴏɴᴏʀO'Bʀɪᴇɴ You can just remove readline on windows
 
lol, I've never learned matrices.
Somehow I totally missed it.
 
@Mego some other shite happened. I'm just using a TIO request
 
@Mego Remember the node version of databot that was made? He's using that.
 
@ping Done.
 
9/10 terrible execution
 
6:51 PM
@PhiNotPi :-(
How about this:
 
does anybody else enjoy refactoring?
 
@Cᴏɴ How...?
 
@NathanMerrill somewhat
 
its the second time this week I had a good refactor idea, and now things are so much better
 
6:53 PM
10 mins ago, by El'endia Starman
It's just a ZWSP.
 
@CᴏɴᴏʀO'Bʀɪᴇɴ Hmm...
/me thinks every time somebody posts "It's just a ZWSP.", they get a star...
in RPG General Chat, Oct 25 '10 at 12:13, by C. Ross
I think I'll play with it a bit myself
Why does RPG General Chat keep getting the powers of two?!?
 
@QPaysTaxes Noooooooooo come back to the void
 
@QPaysTaxes :)
 
@QPaysTaxes :DDDDD YOU SURVIVED >_> no sugery after all.
 
@wizzwizz4 It's just a ZWSP.
 
7:03 PM
@QPaysTaxes have fun :)
HECK YEAH NO MORE SCHOOL FOR ME I JUST REALIZED
 
@zyabin101 Wow, it got a star?!?
 
@wizzwizz4 It didn't.
 
Aaand it's gone.
 
@CᴏɴᴏʀO'Bʀɪᴇɴ now PPCG can consume all of your time
 
@Quill it already had
 
7:04 PM
@CᴏɴᴏʀO'Bʀɪᴇɴ HELL NO, MORE SCHOOL FOR ME I JUST REALIZED
 
@zyabin101 aw.
 
@CᴏɴᴏʀO'Bʀɪᴇɴ you doing homework nearly became a meme around here
 
@Quill really ? o-o
 
Sorry, got to do @CᴏɴᴏʀO'Bʀɪᴇɴ's homework...
 
@wizzwizz4 haha go ahead
I have a paper
 
7:07 PM
@CᴏɴᴏʀO'Bʀɪᴇɴ To write?
 
Well, I'm not doing that then! :-p
 
@CᴏɴᴏʀO'Bʀɪᴇɴ I have a nose and you don't! Ha ha!
 
wat
 
7:08 PM
someone got my nose at an early age
3
 
@CᴏɴᴏʀO'Bʀɪᴇɴ Starboard. Starboard. Starboard.
 
@stealthping@
Wait...
Stealth @ping
 
0
A: Sandbox for Proposed Challenges

muddyfishParse a 1D language Given a string containing only 0's 1's, 2's and brackets, output the grammer tree of the string. A 2 requires 2 arguments - one to the left and one to the right A 1 requires a single argument - to either the left or right A 0 doesn't require any arguments and is the base c...

 
1337
Q: How to make a great R reproducible example?

AndrieWhen discussing performance with colleagues, teaching, sending a bug report or searching for guidance on mailing lists and here on SO, a reproducible example is often asked and always helpful. What are your tips for creating an excellent example? How do you paste data structures from r in a tex...

> 1337
noice
 
7:21 PM
@EᴀsᴛᴇʀʟʏIʀᴋ Notice that there are now 1340 votes on it.
105k views?!?
I only managed 10k... :'-|
OK=
O<<
 
@wizzwizz4 >_>
@AlexA. difference between numeric and integer in R?
 
@EᴀsyToStealthPing
 
nope, no ping
:DDD
@VTCAKAVSMoACE from fortune?
 
@EᴀsᴛᴇʀʟʏIʀᴋ No, actually.
 
Sᴍᴀʟʟ Cᴀᴘs ɪs ʀᴇᴀʟʟʏ, ʀᴇᴀʟʟʏ ᴀɴɴᴏʏɪɴɢ. Pʟᴇᴀsᴇ ᴅᴏɴ'ᴛ ᴜsᴇ ɪᴛ sᴏ ᴍᴜᴄʜ.
 
7:28 PM
@wizzwizz4 No.
 
@trichoplax But if I do the "non-zero probability for every board" doesn't that seem to imply a brute-force algorithm is really the only way? Kinda seems like it.
 
@zyabin101 ¡uʍop-ǝpısdn ʇxǝʇ ɹnoʎ ןןɐ ƃuıuɹnʇ sı oS
 
@TimmyD What's your motivation for requiring randomness?
 
C:\Users\Conor O'Brien\Documents\Programming\PPCG\actually metagolf>node golfnum
 16
4╙

sending to TIO for response

TIO result: 16

Result is same as input!

C:\Users\Conor O'Brien\Documents\Programming\PPCG\actually metagolf>
 
Ⓑⓤⓑⓑⓛⓔⓢ ⓐⓡⓔ ⓠⓤⓘⓣⓔ ⓐⓝⓝⓞⓨⓘⓝⓖ ⓢⓞⓜⓔⓣⓘⓜⓔⓢ◎◎◎
 
7:31 PM
I'm trying to avoid a "boring" board, where the top-left is always 4 A's, the next one over is all B's except for an A to the left, etc.
Asking that each tile be unique helps with that, but I don't think eliminates.
 
Makes sense.
 
@VTCAKAVSMoACE huh, really.
 
@TimmyD I guess if you allow only that there must be at least 2 variants, they could just be two boring variants (even shifted versions of each other)
 
D̶o̶u̶b̶l̶e̶ ̶s̶t̶r̶i̶k̶e̶t̶h̶r̶o̶u̶g̶h̶
 
@wizzwizz4 how is it done??
 
7:32 PM

Sandbox

Where you can play with chat features (except flagging) and ch...
@wizzwizz4
 
@CᴏɴᴏʀO'Bʀɪᴇɴ Noice.
 
Yay, sand! :-)
 
Wow, the Deep Web private beta started an hour ago and already there's a bunch of questions
Quill already has 280 rep dammit
 
@CᴏɴᴏʀO'Bʀɪᴇɴ noice!
 
Oh well, I know nothing about this stuff so I can't really answer anything
 
@quartata you think "What is the Dark Web actually?" would be a good question?
or subjective/broad
 
@TimmyD In between the two extreme cases, you could ask for a minimum size of the range of outputs. For example, there must be at least 10 different possible outputs. Or there must be at least m*n different possible outputs.
 
That's probably the best approach. Something like "Your code must be non-deterministic, in that it must produce a different board for a given input each run. However, not all possible boards for that input must necessarily be possible -- only at least two boards must have non-zero probability. This does mean your code is allowed to only produce two distinct boards for a given input, and just randomly choose between them for output."
I'll work on the wording.
 
Oh I just realized I'm dumb
6
You can't see that
 
7:41 PM
I can.
I joined the Private beta.
 
Unbelievable, Quill actually has the most rep on Deep Web SE and it's only been an hour
 
2 hours actually i think.
the linked question is 2 hours old
 
I have no idea how the deep web works anyway, so, not signing up for that.
 
7:42 PM
I'm pretty sure it's some FBI sting operation, anyway. ;-)
 
@VTCAKAVSMoACE :D
Thanks for putting a bounty on that.
 
@zyabin101 :D I have no idea why we're grinning.
o
You're welcome?
 
0
Q: How to find the item in a list whose f(item) is the smallest?

Dr Green Eggs and Ham DJI have a list, l and a function f. f is not strictly increasing or decreasing. How can I find the item in the list whose f(item) is the smallest? For example, let's say the list is: l = [1, 2, 3, 4] and list(f(x)for x in l) is: [2, 9, 0, 3] f(3) is smaller than f of any of the other ones, s...

 
chat mini challenge -- given an integer N, output the corresponding integer K so that sum([1,K]) = N. You may assume there exists such a number K.
 
what does sum do?
 
7:50 PM
Sum from 1 to k.
Probably.
 
Arithmetic sequence formula?
 
@VTCAKAVSMoACE ssssshsh
 
7:54 PM
@EᴀsᴛᴇʀʟʏIʀᴋ Uhh, this finds the sum, not the k value.
 
why not a function?
 
PowerShell v2+, 44 bytes ... param($n)1..$n|%{if(($j+=$_)-eq$n){$_;exit}}
 
@CᴏɴᴏʀO'Bʀɪᴇɴ because I was dumb and idk if that would be shorter
 
Good. Chemobot isn't here.
 
@CᴏɴᴏʀO'Bʀɪᴇɴ Jelly, 6 bytes: ×8‘½’H
 
@wizzwizz4 a bot for providing Cancer treatment?
 
@Doorknob hwat
 
@Optimizer A bot for providing Chemistry help.
 
7:59 PM
Mmm, I suppose I could get rid of the ;exit portion there ... it shouldn't output any additional values, it'll just keep executing. Also, will only work for values of N smaller than 50,000 since that's the limit of dynamic ranges ... 39 bytes param($n)1..$n|%{if(($j+=$_)-eq$n){$_}}
 

« first day (1935 days earlier)      last day (2898 days later) »