« first day (1811 days earlier)      last day (3017 days later) » 

2:00 AM
That's better.
Trying this again
 
Still a tourist?? :(
 
@RikerW I love tourist
 
shrugs
 
1
Q: Spoonerise words

xnorGiven two words, spoonerise them by switching their initial consonant clusters. Fewest bytes wins. plaster man -> master plan blushing crow -> crushing blow litigating more -> mitigating lore strong wrangler -> wrong strangler The consonants appearing before the first vowel (aeiou) are switche...

 
"/a|e|i|o|u/".match("plaster") // null
wtf
 
2:08 AM
@Quill null = no matches?
oh i see.
that's weird...
 
@FlagAsSpam Not quite. In theory, I know how to do it, but in practice, doing it in a simple Python script doesn't quite work the same as doing it within a web server process, so I haven't quite figured that out. It's literally the only thing I have left to do with the online interpreter.
@Quill /[a|e|i|o|u]/
 
ty
 
The way you have it matches when the whole string is a single vowel character.
 
@El'endiaStarman it's [aeiou]
 
2:11 AM
"/[a|e|i|o|u]/".match("plaster") // null
 
what language is this?
 
JS, the language of gods
 
/[aeiou]/.match('plaster')
 
@Doorknob Yeah, just realized that.
 
I answered in vim, which is surprisingly suited to this challenge
 
2:12 AM
"/[aeiou]/".match("plaster") // null
 
I saw a bunch of things flashing in my terminal thing
 
god damn rng
 
turns out @quartata died
@Quill what are those random quotes doing there
 
@Doorknob yeah was typing fast
 
Oh wait, JavaScript?
 
2:13 AM
dwarf was right next to staircase and took two darts like a champ
lmao why
 
@Doorknob VM463:2 Uncaught TypeError: /[aeiou]/.match is not a function(…)
you know.... a string
 
RegExp('[aeiou]').exec("plaster")
 
@Quill oh, it's 'plaster'.match(/[aeiou]/) probably
I haven't JS'd for a while
 
My dart throwing speed has reached O(1)
 
@El'endiaStarman what... what is that
 
2:13 AM
I did regexes in JS recently...
 
I no longer check my inventory to see which one is darts
I just hit t-a-<direction>
 
@Doorknob i cri erry tim
 
@quartata f
 
I'm proud of how fast I've gotten
 
 
2:14 AM
f "fires" whatever's in your [q]uiver
 
@Doorknob ...
I did not know this.
It feels more satisfying the way I do it, at any rate.
Like I'm using vim or something.
 
hahaha
 
Just pound out that 300j
I'm not sure honestly what is the breaking point for when you start to get good at nethack.
 
/<{\
\:<?>[+].
 
@Doorknob Wrote it wrong, actually. Fixed it after looking at my code.
 
2:15 AM
I seem to have not gotten any better since I first started.
When do you actually ascend
What does it take
 
@Quill btw if you want the index of the vowel, /[aeiou]/.exec('plaster').index would probably do it (haven't tried it though)
@quartata what does it take?
 
I don't know honestly.
 
What do you mean?
 
When is that point when you start actually improving.
I always seem to hit around lvl 10 and die immediately.
 
@Doorknob have another tear
 
2:16 AM
@quartata To what, usually?
 
Sometimes I get lucky.
@Doorknob Random junk.
Always something unlucky.
Very rarely do I get much farther than that.
 
@Quill you may also want to look into RegExp#test for more tears
@quartata such as...?
 
I was about to say...
also why do you eat rotten corpses
 
that usually meant I failed my "no pet deaths" conduct
 
2:18 AM
also why do you attack shopkeepers
 
@Doorknob because I failed my "no pet deaths" conduct and was lazy
 
#quit
 
That doesn't permanently quit, does it?
 
yes it does
 
Oh.
 
2:19 AM
anyway, if you wanna improve then keep going even when things don't go your way :P
 
Anyone know if Detour is taken as the name for a(n most likely esoteric) language?
 
trying again
this time closing chat because i think it might be causing my lag issues strangely
 
@Cyoce, not as far as I can tell
 
Okay, I just want to be really sure so I can avoid what happened last time
 
You duplicated a name before?
 
2:23 AM
Yeah
Ok, after a search I have determined that an answer with a language entitled "Detour" has not been posted
I'm going for it
$ git init!
 
that just happened
 
I'm not even going to try to justify what I just did
I...
I think I'll play another game for a while.
Obviously it's been a... while... since I've played this.
 
I just did no hw.
 
the repo is up! Nothing in it yet, but it is ready to receive such program, much code!
 
2:32 AM
@Doᴡɴɢᴏᴀᴛ The favorite question star isn't showing up in the userscript anymore for me, yellow or grey (using latest Chrome, userscript version 2.1.0)
3
 
We'll give you stars to compensate.
 
um ok
Another flockdraw type thing: cosketch.com/Rooms/sqnofhs More shapes but fewer colors
 
@Calvin'sHobbies 100% less flash, so I can actually use it
 
Actually it has way more features, like undos and pasting images
 
... it's probably better that you stick with flockdraw, considering my immediate reaction to being able to draw things :P
woah
 
2:47 AM
oh god
 
Yay Martin images!!!
:P
 
I'm so sorry @MartinBüttner. I didn't expect this
 
<T>[+].
{/;<
Fibonacci (12 bytes)
 
Please help me golf:
0
A: Spoonerise words

TanMathPython 2, 364 bytes Please help me golf this! Anyway, at least I am the first Python answerer. And I hope I can beat Java, if there ever is a Java answer! i=raw_input().split() f=l='' for j in 'aeiou': if i[0].find(j)!=-1: if f: if f>i[0][0:i[0].find(j)]:f=i[0][0:i[0].find(j)];break els...

Is there a simpler way to do this in Python?
 
***Golferization: Incoming!***
 
2:51 AM
this is why we can't have nice things
 
Funny, I can't see the alex picture on my screen
 
got overwritten by martins (or did it?)
 
@Quill clearly I closed the tab too early
 
@Calvin'sHobbies I am working on my martin challenge, so I used the image...
:P
 
I can't believe it's not Büttner?
 
2:52 AM
@TanMath Is there a reason you need raw_input().split()? Could you just use input() and require the input be separated by commas?
 
@Cyoce will that be allowed?
 
I don't see why not, as the spec says "given two words", not "given one phrase"
It does not seem unreasonable to me that two words can be inputted separately
anyway, here are some non-questionable improvements:
You should definitely be able to say I=i[0] then replace occurences of i[0] with I
 
@Cyoce I guess...
Could I use regex to do this?
like what would the expression be?
 
0
Q: Cops V. Robbers "What's the Language?"

NoOneIsHereCops and Robbers "What's the language?" This is remake of this. The only difference is you can write any program. var QUESTION_ID=69394,OVERRIDE_USER=48922;function answersUrl(e){return"https://api.stackexchange.com/2.2/questions/"+QUESTION_ID+"/answers?page="+e+"&pagesize=100&order=desc&...

 
2:57 AM
var newtext = text.replace(/i\[0\]/g, "I");
then manually type I=i[0] at the top of the for loop
i[0].find(j)!=-1: can be i[0].find(j)>-1:
 
If only I could figure out .apply ;-;
a[0]=a[0].replace(d,e);
b[0]=b[0].replace(e,d);
 
i[0]=i[0].replace(f,l) #before
i[1]=i[1].replace(l,f)
i[:1]=i[0].replace(f,l),i[1].replace(l,f) #after
 
except it's JS, and i[:1] isn't valid
 
I'm talking to @TanMath about his python answer
 
WAT Oomg
 
3:01 AM
Apparently both doing regex
@TanMath you can also remove the 0 in i[0:…]
 
^ a great video, watch it to the end
 
rofl
 
goddamn
 
No one has noticed the stealth mode martin yet
 
There's a save image button I just realized, though I'm not sure it's saving the most recent one -> cosketch.com/Saved/pRBdsl8Q
 
3:05 AM
@Calvin'sHobbies I think this is the best one
Although the Martin on the bottom is a little covered up
 
After reading through the nominations for best of PPCG, I cannot believe my eyes to see that Dennis hadn't posted a challenge before 2015....
 
GO MARTIN IMAGES!!!!
0
A: Sandbox for Proposed Challenges

RikerWI can't believe it's not Büttner!!! This is an image of our wonderful moderator @MartinBüttner. This is also an image of the same person, or is it? Your task is to determine whether a inputted image is @MartinBüttner in disguise... The input may be taken in any form. You will compare the ...

@GamrCorps Woah...
 
@Calvin'sHobbies the saving messes up the order
it's better to screenshot
 
ok now it's just all martin pictures
 
3:07 AM
what am i doing with my life
 
IDK.
bai
 
Oh my....
 
Also the stealth mode martin is still there
@GamrCorps It's best when you view the image at full size
 
playing tic tac toe in quartata's profile image omg
 
3:08 AM
@quartata why did you every suggest that
 
I'm so sorry @Martin! (and @AlexA. to a lesser extent)
 
but his luscious hat is just so amazing
 
@GamrCorps I am literally uncontrollably laughing right now. I hope I'm not disturbing the neighbors
 
@TanMath you there?
 
@quartata lol
 
3:10 AM
I think the best part is Martin's eye just peeking out of the bottom
That was me
Also stealth mode martin in the upper right corner
 
17 mins ago, by Calvin's Hobbies
user image
new profile picture material
 
<- star this if you think Martin should make that his new profile picture
8
It's just too damn good.
 
<- don't star this if you think Martin won't listen
9
 
>inb4 passes I Can't Believe It's Not Buttner
 
1
A: Sandbox for Proposed Challenges

RikerWI can't believe it's not Büttner!!! This is an image of our wonderful moderator @MartinBüttner. This is also an image of the same person, or is it? Your task is to determine whether a inputted image is @MartinBüttner in disguise... The input may be taken in any form. You will compare the ...

 
3:15 AM
@Cyoce sorry, I went to post the regex based answer...
i am back...lemme do the changes...
 
Wait
@TanMath I have compiled all changes here
I do however suggest testing them
 
@Cyoce thanks!
 
@TanMath Please give edit credit :)
 
@Cyoce oh..I certainly will! I always do...
I will write "Thanks so much to @Cyoce for helping me golf the code"...
 
K
 
3:22 AM
@Cyoce edited...thanks again!
 
Trying to figure out how to add monsters to nethack
 
@TanMath no problem
 
Not going so well since despite the ample comments the thing still is incomprehensible piles of C preprocessor macros
 
@TanMath you spelled my name wrong.
ty ty
 
@Cyoce fixed...
 
3:25 AM
Oh yeah
And since this is python 2, you can mix spaces and tabs for indentation
1 tab = 8 spaces
 
So?
 
0
Q: Compressed days of the week

DoorknobGiven an input of a list of days of the week, output the shortest sorted representation of the list. The format of the input is a string consisting of one or more of the two-character substrings Su (Sunday), Mo (Monday), Tu (etc.), We, Th, Fr, and Sa. The input may not necessarily be given in so...

 
every other nested control structure can be reduced by changing 2 spaces into a tab character
 
@quartata Uh, what? Huh? I thought Nethack already had monsters...?
 
@El'endiaStarman Add more monsters obviously
 
3:27 AM
@Cyoce but that would be more bytes!
 
@quartata Ah, right. Totally wasn't hard enough already.
 
So stupid me decided to run this cjam program up to 100 trillion lines of pascals triangle. Lets see how long it takes!
 
@GamrCorps ...generate every one of 5,000,000,000,000,000,000,000,000,000 numbers?
 
quite possibly
 
Here's a tip: calculate how much hard drive space that would take.
 
3:30 AM
I dont want to know
 
​> 5000000000000000000 gb
 
lol
 
it would be that big if each number were exactly one byte
which is definitely not the case
 
it's been a long time since I played it
but listening to the OST I realize world of warcraft still has the best sound design I've ever seen in a game
by a long margin
 
Hmm. B -> MB -> GB -> TB -> PB -> EB...and I'm not sure if Google's data servers have exabytes of information.
 
3:32 AM
I've heard some of the OST, it's really good.
 
@GamrCorps: You're trying to calculate more data than Google, Facebook, and all the world's governments have combined.
 
yep
 
0
A: Spoonerise words

TanMathPython, 129 bytes import re i=input() f=re.findall('[^aeiou]+',i[0])[0] l=re.findall('[^aeiou]+',i[1])[0] print i[0].replace(f,l),i[1].replace(l,f) This answer uses regex as most of them do. Try it here

 
good luck to myself
darn it, the console crashed.
 
@El'endiaStarman they've passed exabytes of data around, but they don't store that much
 
3:35 AM
@Quill Ah-ha, okay. Just wasn't sure if it was peta or exa.
I think the next level is yottabyte?
Oh, no, it's zettabyte, then yottabyte.
 
Karl Marx Gave The Proletariat Eleven Zepplins, Yo
So yes, zettabyte, then yottabyte
 
Did you come up with that? :P
 
No, I saw it in xkcd
 
@TanMath Can you pls stopping publicizing your posts so much?
@ballesta25 My source for everything...
 
3:42 AM
Ahh, its been a while since I saw that one.
 
That's the one I actually use from those.
 
@RikerW what is wrong with it? I do not mind if somebody else publicizes his posts...
Now I cannot post my sandbox post...
 
Because other people mind...
It is like you are greedy for rep.
 
@ballesta25 Haha, cool. I just remember them directly. I just missed zetta... this time...
 
@TanMath No, a tab character is one byte
 
3:45 AM
I probably should have asked while Martin was around, but do you guys have any suggestions for designing a first programming language?
 
make it simple
 
E.g., should I start with an esolang?
 
@ballesta25 What do you want to do with it?
 
yeah
make it stack based
Each character does something to the stack
Then you don't need to worry about any complicated language patterns, just to get a hang of actually interpreting a language
plus you can then use it for golfing
 
I've been thinking I want something that allows 'sub-word' morphemes, which would mean multiple chars per word, but I was thinking stack-based.
 
3:47 AM
yeah
you can have ways of grouping characters that aren't complicated
 
@ballesta25 How do you mean?
 
Like how in lisp cadr, caddaddddar, and so on mean something specific
but they are implemented separately
 
ah, okay
 
you could separate commands with spaces or newlines, allowing any number of characters per command
 
I want to be able to express things like "println means print and add a newline" and have fwriteln mean fwrite including a newline
 
3:49 AM
Is that defined by the language or are those definable by the PROGRAMMER?
 
definable by the user
 
so like an alias
 
I'm thinking sort of macro-like
 
the syntax could be
 
That sounds quite lisp-like. So a lisp-styled stack-based language...that oughta be interesting.
 
3:50 AM
I guess I'm not sure how lisp macros work; I may have just re-invented them 60 years later
 
macro someMacroName {macroCode;moreMacroCode}
That shouldn't be too hard to parse
You can replace the braces with brackets or parens or whatever you think looks nice
Or you could use quotes if you don't want to worry about nesting
 
I might go for Forth/Factor syntax where it's whitespace to separate all tokens.
 
4 mins ago, by Cyoce
you could separate commands with spaces or newlines, allowing any number of characters per command
 
( Although it looks weird to have to leave space on the inside of parens ( like this ) )
 
Consider what you're going to do with strings with spaces inside them.
 
3:54 AM
Yeah, I suppose there should be an exception for "strings go until the closing quote" (with some escaping rules).
 
Would a NAO user kindly advise me on how to get off the friggin' numpad controls?
 
Wait, you have numpad controls in NAO?
 
Yes..
 
sourceCode = sourceCode.replace(/\(\w/g,"( $&").replace(/\w\)/g,"$& )");
 
I'd been using local since I couldn't get numpad to work...
 
3:55 AM
I hate numpad controls cause I ain't got no numpad.
So I can only move with the numbers on the top of the keyboard...
ARGHH...
 
@RikerW hit o from the main menu
 
Thanks.
 
I always make sure I have a numpad.
 
Which is why my laptop is so huge and heavy, but oh, well.
 
3:56 AM
I just keep my laptop in a backpack with my real keyboard
 
Thanks @Doorknob, fixed now.
 
it's freezing in here
 
@Calvin'sHobbies Nah, that takes seven days of no non-feed messages.
 
it's cold in your heart
 
What heart?
 
4:12 AM
the Christian one
@El'endiaStarman I so want to see if this chatroom will still be strong when I'm 90
 
Who knows what'll happen to Stack Exchange itself in that time? Stack Overflow has only even existed since 2008.
 
Facebook and Google aren't that much older...
 
Who knows what'll happen to them? ¯\_(ツ)_/¯
@DigitalTrauma surpassed me on the all time leaderboards yet again. This is an intense race :P
 
Future of SE and PPCG poll: strawpoll.me/6531890
 
How could anyone not vote for the last option? ;)
 
4:25 AM
It's what you think, not what you wish :P
 
4:35 AM
@Cyoce so how would I use the tabs?
did @Mego come here today?
 
Picked the last one for the hilarity.
Remember, we must keep our plans secret until they are ripe...
 
I call Hawaii
 
@ballesta25 just so you know there is already a LISP golfing language called Arcyou. It is prefix however
I would get you a link but cannot find it
 
I don't see an option for 'Apocalypse shatters our modern world, but SE hangs on, and takes advantage of the new business opportunities by launching Hunting & Gathering SE'.
 
Can I like write a README file on Github using SE Markdown? Are the two markdowns similar enough?
@feersum who would use it when most people are dead...
 
4:45 AM
@TanMath People who are still alive.
 
@feersum Maybe that's tied into the last option
 
@feersum but not all of them would know about SE. There are a lot of weird people (like those who do not know what SE is) out there!
 
5:02 AM
SE isn't even on the list of SE's
 
@TanMath Just press tab in a code editor. In the post, however, type \t instead, then explain that \t means tab character.
 
@Doorknob this one has been rep-capping me for the past couple of days. Beyond that I'm not sure if I can keep up
 
5:22 AM
@Cyoce so what is the point of using the tab? Like where can I use it?
 
How could I convey the idea of using as few different characters as possible?
"Use as few distinct characters as possible"?
 
@ZachGates If this is for a challenge, I think this has already been done.
And won by Lenguage or Unary.
 
It's part of a challenge. Certainly not the entire thing
 
Alright, that said, the way you phrased it is just fine, I think.
 
Alright, thank you
 
5:37 AM
@TanMath In place of indentation using spaces
 
1 tab = 8 spaces
 
56
A: Tips for golfing in Python

JPvdMerweSometimes your Python code requires you to have 2 levels of indentation. The obvious thing to do is use one and two spaces for each indentation level. However, Python considers the tab and space characters to be different indenting levels. This means the first indentation level can be one space...

 
@Cyoce How do you figure that?
 
By testing
 
o_O
 
5:40 AM
If you put 8 spaces on one line of an indented block and a tab on another line of the same block, you don't get an IndentationError
 
58 secs ago, by Dennis
o_O
 
@Cyoce Not really. Python (2 at least) allows variable space indentation.
 
Python 2 is actually OK with that. Mind blown.
 
e.g. these all work
def f():
\tdef g():
\t\tprint 6
\tg()

def f():
 def g():
  print 6
 g()

def f():
  def g():
    print 6
   g()
 
def f():
	1
        2
 
5:43 AM
There isn't a universal standard for tabs -> spaces
 
@Cyoce Oh I see, you mean if you replace a whole run of spaces
 
@Calvin'sHobbies This also works. Line 2 has a tab, line 3 has 8 spaces.
 
@Dennis Yeah that's what I meant
Practical example:
for i in x:
 if y:
\tz()
here you have nested indentation without increasing bytecount for the second level
 
In that case, a tab does not equal 8 spaces
 
5:45 AM
@Cyoce I've known that for a long time. What I didn't know is that the tab acts like 8 spaces.
@ZachGates But it does.
This raises an indentation error:
def f():
 if True:
  if True:
   if True:
    if True:
     if True:
      if True:
       if True:
        if True:
	print True
(last line is tab)
This doesn't:
def f():
 if True:
  if True:
   if True:
    if True:
     if True:
      if True:
       if True:
	print True
 
@Cyoce I see...that makes sense...
Hey @Sherlock9
@CameronAavik lemme introduce you to ideone.com
ideone is a free online interpreter for about 100 languages or so...including Python 3!
you go to the website, paste in your code, and put your input (if applicable), and then run! It runs the program for you! You can edit it afterwards and change the input and code. You can also fork code.
the usefulness of it over here is to show that the code works by including a working ideone link. Make life easier for your readers!
 

« first day (1811 days earlier)      last day (3017 days later) »