« first day (1960 days earlier)      last day (1482 days later) » 

12:00 AM
Ok, I really go to sleep now, bye
@El'endiaStarman lazy language devs I guess
@Bálint bai
@Upgoat I'm just mostly bewildered by the technical aspect of debugging itself because something didn't work in itself. It's like...how is it running?
@MartinEnder For every N-length string, there is also an N*2 length string obtained by doubling it. For every even N this gives two even strings, and for every odd N it gives one odd and one even. Clearly there are more evens >_>
@MartinEnder Can you not establish a 1-1 correspondence of some kind? You should be able to do that between two countably-infinite sets.
Q: Dot Product of Diagonals

MaltysenThis challenge is very simple. You are given as input a square matrix, represented in any sane way, and you have to output the dot product of the diagonals of the matrix. The diagonals in specific are the diagonal running from top-left to bottom-right and from top-right to bottom-left. Test Cas...

12:12 AM
@Dennis I think the zero term thing comes from CS, where people think of indices as offsets. I personally totally agree, I think it seems odd to count that way for a mathematical sequence.
Q: Compute the Discrete Fourier Transform

milesImplement the Discrete Fourier Transform (DFT) for a sequence of any length. This may implemented as either a function or a program and the sequence can be given as either an argument or using standard input. The algorithm will compute a result based on standard DFT in the forward direction. The...

Q: Write a program that reverses the name of its source file

Helka HombaIn a single file, write a program that requires no input and produces no output. When run it should reverse the name of the file it is contained in, regardless of what the name is, without altering the code or producing other lasting side effects. Any way of achieving this is fine. It only matte...

@FryAmTheEggman Context?
Oh uh, the Euler question. Hang on...
NMP is on a roll!
I personally despise it, but there are people who refer to the term at index 0 as zeroth term. Independently of our thoughts on that matter, the question should be as clear as possible. Also, a few test cases to verify that the solutions are working correctly, would be very helpful. — Dennis ♦ 13 mins ago
12:19 AM
@FryAmTheEggman Ah, I see.
@NewMainPosts Interesting choice of tie-breaker.
12:50 AM
@NewMainPosts This one's gonna be hard for me to shorten. D:
@VTCAKAVSMoACE I thought Vitsy couldn't do it?
@HelkaHomba It can if it uses shell.
So it's really more like Vitsy + bash
Or really any of *sh
It's really cheaty.
@VTCAKAVSMoACE Why "Whoops"?
@HelkaHomba I did it wrong the first time.
Chat mini-challenge: given four numbers a b c d, return the real part and the imaginary part of (a+bi)^(c+di) without complex built-ins.
1:03 AM
@LeakyNun it's an old question and nobody's competing on it. Besides I should have used that instead yesterday and only just noticed it later.
oh ok
besides, we must spread the gospel of J far and wide
@miles O.o
@Dennis: Nice using w3m. If we join forces, w3m ...|jq .items[].score saves one more byte!
Or, wait, I think I miscounted
Ah, because of ^I.
1:32 AM
@miles indeed, brother
Any anarchists here?
anarchists to J?
or just general anarchists
@CᴏɴᴏʀO'Bʀɪᴇɴ what does that mean?
@LeakyNun people who have not witnessed the glory of functional programming
@CᴏɴᴏʀO'Bʀɪᴇɴ loading... loading... loading failed.
or is there anything you would like to ask an anarchist :p
@CᴏɴᴏʀO'Bʀɪᴇɴ (;/~@i.@#)1 1 1 1
why does this not return a 2-d table of pairs?
lemme take a look
(;/~@i.@#)1 1 1 1
;/~ i. # 1 1 1 1
# 1 1 1 1         NB. 4
i. # 1 1 1 1      NB. 0 1 2 3
;/~ i. # 1 1 1 1  NB. 0 1 2 3 ; 0 1 2 3
1:41 AM
Try ;"0 instead of ;
@Lynn nice, thanks!
Or <@,"0 if you want pairs... ahh, I’m sure there’s a shorter way to proceed from 0 1 2 3 to a table of pairs though
In non-golfy J, I feel like the natural thing for me to write is ;/ to get a list of boxes, and then ,each/~ to table-pair them. Okay, who am I kidding? There is no such thing as non-golfy J.
Ah, of course, monadic { (Catalogue) exists.
Try { ;~ 0 1 2 3
@Lynn nice!
13 :'fghijklmx'
seven @s :p
my solution only has 6, so I don't need this trick
still, each verb could have more than one char
it doesn't matter
.+\\(.+?).js$ why doesn't .+ match all it possibly can before moving on to the `\`?
@CᴏɴᴏʀO'Bʀɪᴇɴ which string are you applying it to?
A filepath like C:\Users\Conor O'Brien\Documents\Programming\node js\empty\test.js
hey @BrainSteel
Haven't met you, but I know you used to be fairly active.
@CᴏɴᴏʀO'Bʀɪᴇɴ works well for me
^ what flavor?
@LeakyNun oh wait
1:51 AM
which flavor?
I might have the g flag
how would that matter?
@EᴀsᴛᴇʀʟʏIʀᴋ A long long time ago in a galaxy far far away
1:52 AM
@LeakyNun you can do it in 25 bytes! go!
@miles ok, wait...
@EᴀsᴛᴇʀʟʏIʀᴋ I actually think of BrainSteel as being active in bursts.
1:53 AM
@CᴏɴᴏʀO'Bʀɪᴇɴ You're French?
@LeakyNun no ಠ_ಠ
Irish-American with a bit of Antarctic Dragon.
@LeakyNun he speaks it though
1:54 AM
in the French keyboard, the place where we have m is the comma
Fatalize and somebody else I forgot are french
@LeakyNun but the comma is next to the m key >_>
@LeakyNun they are right next to each other on qwerty
@EᴀsᴛᴇʀʟʏIʀᴋ fatalize and agawa001 and someone else I forgot
1:56 AM
user image
To add to that previous discussion, in J { can also be thought of as a cartesian product. For example, , { 3 # < 0 1 will output all 3-tuples of [0, 1].
@Upgoat 1. I almost called you "upgolf". 2. Can you help me golf this?
turns out my dog likes my room because my desk smells of corn chips ;-;
2:03 AM
@CᴏɴᴏʀO'Bʀɪᴇɴ .replace(/(.+\\)(.+?).js$$/,(x,y,z)=>y+[...z].reverse().join``+".js"
is the extension not part of the file name?
@LeakyNun I already did that trick
@Quill no, you're not supposed to reverse it
that reverses the path
2:06 AM
still doesn't work
F=__filename,F.replace why can't you just skip F
@CᴏɴᴏʀO'Bʀɪᴇɴ yes to me or teh goat
@EᴀsᴛᴇʀʟʏIʀᴋ you
2:07 AM
pyro kinda looks like the dude from mad max
@Upgoat ^_^
@LeakyNun do you know any node js? this still doesn't work :P
@CᴏɴᴏʀO'Bʀɪᴇɴ why not?
Say the program is called alert.js
C:\Users\Conor O'Brien\Documents\Programming\node js\empty
λ node alert.js
      throw err;  // Forgot a callback but don't know where? Use NODE_DEBUG=fs

Error: ENOENT: no such file or directory, rename 'C:\Users\Conor O'Brien\Documents\Programming\node js\empty\alert.js' -> 'C:\Users\Conor O'Brien\Documents\Programming\node js\emptysj.trela\alert'
    at Error (native)
the dot
C:\Users\Conor O'Brien\Documents\Programming\node js\empty
λ node alert.js
      throw err;  // Forgot a callback but don't know where? Use NODE_DEBUG=fs

Error: ENOENT: no such file or directory, rename 'C:\Users\Conor O'Brien\Documents\Programming\node js\empty\alert.js' -> 'C:\Users\Conor O'Brien\Documents\Programming\node js\emptysj.trela\alert'
    at Error (native)
2:10 AM
what's the full program you entered?
@CᴏɴᴏʀO'Bʀɪᴇɴ ([,[...a]]=F.split(/\\|\.js/).reverse(),a.reverse().join``+".js")
node js doesn't have argument destruction

UX Engineer, Front End, Cloud


Google engineers develop the next-generation technologies that change how users connect, explore, and interact with…

Posted on Stack Overflow Careers on May 31, 2016

@CᴏɴᴏʀO'Bʀɪᴇɴ babel-node
@CᴏɴᴏʀO'Bʀɪᴇɴ use babel
@Quill :D :D :D
@CᴏɴᴏʀO'Bʀɪᴇɴ npm install -g babel-node && babel-node
will I have to do this each time I want to use babel?
oh wait no
2:13 AM
it spits errrors at me
npm install -g babel-cli && babel-node
wrong node package
btw thanks @Quill for the suggestion for the cmd emulator. it's beautiful
:) no worries
^ still errors
ReferenceError: Invalid left-hand side in assignment
@LeakyNun r. y which computes e^(i y) is another way to save
2:16 AM
@miles wow!! never knew that!!!!
@CᴏɴᴏʀO'Bʀɪᴇɴ wat. works on safari
@LeakyNun look at my old fft in J version, there's some other tricks there too
@Upgoat ¯¯\_(ツ)_/¯
@CᴏɴᴏʀO'Bʀɪᴇɴ ah, it's complaining a is not defined
run it in non-strict mode or somethin
C:\Users\Conor O'Brien\Documents\Programming\node js\empty\alert.js:1
(function (exports, require, module, __filename, __dirname) { require("fs").rename(F = __filename, [, [...a]] = F.split(/\\|\.js/).reverse(), a.reverse().join`` + ".js");

ReferenceError: Invalid left-hand side in assignment
2:17 AM
I'm reading SO careers and one of these jobs has the benefit of "monthly massage sessions"
@miles I reached 25 now
@CᴏɴᴏʀO'Bʀɪᴇɴ i think babel-node is boorked
var [a,b] = [1,2] is breaking
maybe they removed it :P
might be es2015 syntax
@miles I reached 4!
2:19 AM
yeah, like how firefox changed from the postfix to the prefix array loop
ah yeah
@LeakyNun from 620448401733239439360000 to 24? Impressive!
@CᴏɴᴏʀO'Bʀɪᴇɴ run with flag --presets es2015
but then I'd have to have that added to my byte count, right?
Error: Couldn't find preset "es2015" relative to directory "C:\\Users\\Conor O'Brien\\Documents\\Programming\\node js\\empty"
@CᴏɴᴏʀO'Bʀɪᴇɴ not really because it just specifies what to run with. If anyone complains, just say it's babel 5
@CᴏɴᴏʀO'Bʀɪᴇɴ npm install -g babel-preset-es2015
2:22 AM
same error .-.
wat, try installing again, you borked something bad
my computer is literally haunted
10/10 best gif
@LeakyNun yay you got even more savings, I had 25 on a straight-forward approach
reinstalled, same error
2:23 AM
@CᴏɴᴏʀO'Bʀɪᴇɴ that is really weird. try using npm install --save-dev babel-preset-es2015
@miles what was your 25?
Shit. Chatettiquette
@Upgoat Now it says that F isn't defined
@CᴏɴᴏʀO'Bʀɪᴇɴ are you running in repl?
2:26 AM
+/.*^@o.@(0j2&%*(*/ -)@i.)@#
babel-node --presets es2015 alert.js
@LeakyNun I'm not getting the right outputs for the others except 1 1 1 1
@miles oh.... ****
Well, I gotta go to sleep now
@CᴏɴᴏʀO'Bʀɪᴇɴ do npm install babel-plugin-transform-remove-strict-mode
then add that to the plugins
2:28 AM
@CᴏɴᴏʀO'Bʀɪᴇɴ but you can't
@Upgoat how?
@miles: Is your last name Prower? Do you have an evil twin/brother named Kilo or Kilometers?
@CᴏɴᴏʀO'Bʀɪᴇɴ --plugins transform-remove-strict-mode
TypeError: callback must be a function
it's dead jim
;_; halp, how to babel, goat and dragon tri thirtee minut...
@El'endiaStarman nope
2:30 AM
Darn! :P
this dragon will go to sleep and listen to high-quality audiobooks :P
@El'endiaStarman I feel that Kilometres would be the good twin ;)
@FryAmTheEggman Well of course you'd think that, you live in one of the evil countries!
@El'endiaStarman so I looked up miles prower and learned a new reference
@miles 25 bytes!
2:34 AM
You'll never stop my evil plan, for I have measured everything perfectly!
Also, "one of the the" -> "literally any one other than that one other one I've forgotten" ;)
@miles It's a great pun, it really is.
@FryAmTheEggman Ah, so dastardly! America alone stands to thwart you and your evil brethen!
@LeakyNun yeah that's looks like it works, mine is ordered a bit different, but perhaps combining them might lead to something shorter
Actually, isn't there exactly one other country that uses miles?
Oh, I was wrong, there are two other countries: Burma and Liberia
Same here.
2:37 AM
@miles I golfed it to 4!
@CᴏɴᴏʀO'Bʀɪᴇɴ got it too work
you forgot parens around the expression :P
if you want it to work on windows just change the \/ to `\\`
@LeakyNun oh yeah I forgot to mention that 2p1 also
@miles hwaet is yours?
@LeakyNun +/@:*([:r.2p1**/~@i.%])@#
2:39 AM
@CᴏɴᴏʀO'Bʀɪᴇɴ Vanilla node:
@CᴏɴᴏʀO'Bʀɪᴇɴ g'night!
@LeakyNun they're pretty similar
@miles where is your _2?
@LeakyNun I used division
2:43 AM
@miles where's your division?
@miles 23 bytes! thanks for your idea
@LeakyNun cool
thanks for going miles to golf my code
@CᴏɴᴏʀO'Bʀɪᴇɴ even more golfed:
3:01 AM
@miles 20 bytes!!
@CᴏɴᴏʀO'Bʀɪᴇɴ down to 89 bytes:
@CᴏɴᴏʀO'Bʀɪᴇɴ golfed even more down to 79 bytes (sorry for all the pings):
@LeakyNun Are you sure you don't want to post that yourself? That's a very substantial golf! :)
@FryAmTheEggman ok then :p
Can't believe I didn't realise all the powers were integers while working on it >_<
My DSP prof would be disappointed...
@FryAmTheEggman I think I can still golf it further
3:10 AM
Hmm, I'll let you know if I come up with anything
@CᴏɴᴏʀO'Bʀɪᴇɴ because we don't need to have the extension, this can be 68: require("fs").rename(F=__filename,F.split(/.*\/|/).reverse().join``)
@FryAmTheEggman I'm gonna kill whomever wrote the code to say that 1** anything becomes 1
Golfing probably isn't worth murder, but YMMV ;)
@LeakyNun oo that's a neat trick
@Upgoat he's asleep
3:22 AM
@EᴀsᴛᴇʀʟʏIʀᴋ ik
he probably won't appreciate the pings though
g'night me-self
Haven't seen ETHProductions recently, is he gone?
@EᴀsᴛᴇʀʟʏIʀᴋ yeah >_> I hope my "sorry for all the pings" will make up for it
@EᴀsᴛᴇʀʟʏIʀᴋ yeah his profile says (s)he's taking a break for personal reasons or something,
Hello @Quill and @Sp3000!
zzz hey
Hi there
@Quill do you have the magical rhombus yet
._. my last post on LL was two months ago and yet I'm still on third row...
3:38 AM
I haven't got an email about it yet, they just said soon
There's two elections on two of the top ten sites right now, they're a bit busy
is there a list of sites that have recently entered private beta?
A51, beta tab
that is mostly showing sites in pubic beta
All the freshly graduated sites are there getting their cool new design... and then there's PPCG ;_;
@Upgoat That must mean we're next! /s
no, they're going to wait for the rest of the sites on Area51 to graduate before doing ours :P
3:45 AM
Maybe it's goat prejudice. Best disguise yourself as a zebra.
ಠ_ಠ................. i already disguised myself by rotating and becoming green
I had blood pooling in my head for weeks...
It's hard for the designers to come up with designs that don't evoke a colour scheme
Abby T. Miller on May 19, 2014
Welcome to Stack Exchange Podcast #58 brought to you by the Stack Exchange iOS app! Our hosts Joel Spolsky, David Fullerton, and Jay Hanlon are joined this week by our guests, the Stack Exchange Design Team: Jin Yang, Stéphane "The French Guy" Martin, Courtny Cotten, and Josh Hynes.
They did a podcast on this a while ago
@Upgoat Go into superposition. If you got in a box we'd never be sure if you were Upgoat or Downgoat until we opened it.
3:52 AM
> a young mad scientist who accidentally invents a quantum suicide machine, his elderly doppelgänger from the future, a time-traveling milk goat and a homing pigeon that can fly across time and space.
@HelkaHomba idk i call it both terminal and command line
20 messages with 'console' 18 messages with 'terminal' 17 messages with 'shell'. So I guess console but by a small margin
@HelkaHomba I call it the cmd
@LeakyNun like: "see-em-dee"?
4:01 AM
@Upgoat yep
Hasn't our question per day dropped to below 10. How can you see what it's at?
@miles SE api or Alex's script
Over the past 2 weeks, PPCG has had...
4.5 questions per day
7.6 answers per question
oh god that's low
@HelkaHomba looks like @CalvinsHobbies wrote more challenges, you should totally switch back :P
tbh question rate's not something I think we should concern ourselves with, more question quality
@Sp3000 our low Q/D isn't bad imo, just shows that we're getting lazy after graduation
Or rather, shows we've gone back to normal, which is a slight relief :P
4:14 AM
@Upgoat I've posted 5 questions in the last 6 days. You can't ask more than that
More of you just need to write good questions -.-
@HelkaHomba I can ask for you to go back to Calvin's Hobbies
@HelkaHomba I write good questions!
Why should I become a tiger if you won't become a zebra?
@HelkaHomba I'll definitely become a zebra if you go back to Calvin's Hobbies
We need to make a list of promises that people have made if @HelkaHomba swaps back
I promise to be snarky about giving into peer pressure and changing it
@Quill You should totally change your name to Plumage if Helka goes back to Calvin
4:19 AM
@Upgoat Write more questions than me and I'll consider a name change ;)
halp, everyone donate their sandboxed posts to me
@HelkaHomba Until your most recent challenges, I wrote more challenges than you.
we can do this, #makeupgoatwritemorequestionsthanhelkasohewillchangebacktocalvinshobbies2016
@DrGreenEggsandIronMan I mean overall. I have 215
on a completely unrelated note, does this look ready to post:
A: Sandbox for Proposed Challenges

UpgoatParse a Formal Grammar Given a context-free grammar, and a string, parse the string using the formal grammar and output the matches for the non-terminals. Examples First line is string, following lines are grammar, last line is output, examples are separated by --- 123 n -> any of 0 1 2...

4:21 AM
Oh. Yeah, none of us can compete.
@HelkaHomba they are > 1000 posts in the sandbox. I can still do this
challenge donations anyone?
@Upgoat Rules on builtins?
(or parsing libraries)
@Sp3000 doubt they will be any builtins
@HelkaHomba I would, but 99% of them would get heavily downvoted and quickly closed
@Upgoat Here's a head start: Challenge to output a zig-zag increasing in magnitude
   4     10  12
1 3 5   9      13
 2   6 8         14
      7            15
4:23 AM
@HelkaHomba cool thanks! :)
@Upgoat reference.wolfram.com/language/ref/GrammarApply.html shrugs (on a more serious note, parsing libraries are more common and I wouldn't be surprised if someone tried to use one)
Although I'm eighth overall, so even though I probably won't hit 1st, I can be happy with that. =)
@Sp3000 wtf mathematica, where do the builtins end
they don't
though I should of realized mathematica has everything built-in when an answer used goat recognizer built-in
4:26 AM
They don't. There are builtins for friggin goat recognition.
Dammit, double ninja'd.
@Quill ._. I got a bai ad on that video
Q: Voxel Islands - Level terrain generation

Ethan BierleinIn Voxel Islands, each individual voxel is represented by their own unique class. Each of those unique classes is a subclass of a parent, Voxel class: using UnityEngine; using System.Collections; using VoxelIslands.Engine.Utilities; namespace VoxelIslands.Engine { /// <summary> /// This...

Time to post this:
A: Sandbox for Proposed Challenges

Leaky NunAin't there nothing up my sleeves code-golf kolmogorov-complexity Note: reference to Nothing up my sleeve number. Your task is to take no input and generate this exact output: d76aa478 e8c7b756 242070db c1bdceee f57c0faf 4787c62a a8304613 fd469501 698098d8 8b44f7af ffff5bb1 895cd7be 6b901...

@Quill Oh, that's so pretty.
4:45 AM
@LeakyNun Did you repost this by accident?
@El'endiaStarman I just want to see how NewMainPosts will react lol
Q: Ain't there nothing up my sleeves

Leaky Nun Note: reference to Nothing up my sleeve number. Your task is to take no input and generate this exact output: d76aa478 e8c7b756 242070db c1bdceee f57c0faf 4787c62a a8304613 fd469501 698098d8 8b44f7af ffff5bb1 895cd7be 6b901122 fd987193 a679438e 49b40821 f61e2562 c040b340 265e5a51 e9b6c7aa d62...

any smart people see any flaws in this spec? I don't want to look like an idiot if something is very wrong when I post it on main.
@LeakyNun That's a bit excessive.
4:50 AM
@DrGreenEggsandIronMan great. now I'm curious as to what was posted :/
His challenge.
Haha, I'm glad I added a way to access the original file before helka posted his last challenge.
A: Write a program that reverses the name of its source file

Dr Green Eggs and Iron ManV, 29 bytes :se ri iz w:f/Ddd:e z @"dL Since this contains unprintables, here is a hex dump: 00000000: 3a73 6520 7269 0d0a 6912 7a20 773a 1b66 :se ri..i.z w:.f 00000010: 2f44 6464 3a65 2012 7a0d 0a40 2264 4c /Ddd:e .z..@"dL Note: this will not run on v.tryitonline.net since TIO does no...


« first day (1960 days earlier)      last day (1482 days later) »