« first day (1830 days earlier)      last day (3020 days later) » 

8:00 PM
@ETHproductions Like @Lynn said (x&y)^255 works
Just tested it just to make sure JS didn't screw it up
 
@AlexA. Like the classic "My spouse is so stupid." "Yeah, they are." "What?! WHO ARE YOU TO SAY THAT!?"
 
Sorry @quartata for calling you stupid.
 
@RikerW It's OK since it's true
 
@quartata Thanks. Dunno how I didn't think of using that rather than -.
 
@quartata No it isn't. You're smart and beautiful. <3
 
8:02 PM
@CᴏɴᴏʀO'Bʀɪᴇɴ Or the timeless "I'm fat" "I love you anyway" "YOU THINK I'M FAT???"
 
@Roujo Ah, yes, always that.
 
@AlexA. (for the beautiful part)
 
so it would appear the "scaling up votes for questions" has been un-featured on meta. maybe this has been true for a while and I'm just blind
 
hahaha
 
8:03 PM
6
Q: Spiral Permutation Sequence

Martin BüttnerWe can roll up the natural numbers in a rectangular spiral: 17--16--15--14--13 | | 18 5---4---3 12 | | | | 19 6 1---2 11 | | | 20 7---8---9--10 | 21--22--23--24--25 But now that we have them on a rectangular grid we can unwind the spir...

 
OH WAIT @quartata has the glider back YAY
2
 
@NewMainPosts +6 before the bot even mentions it
 
@RikerW CELEBRAAAAAAAAAAAATE GOOD TIMES C'MON
 
@AlexA. make that +8
 
8:04 PM
@CᴏɴᴏʀO'Bʀɪᴇɴ Let me have time to write one first :P
 
Dude, reply button pls
 
@ETHproductions I'm waiting... XD I'm in the process of writing a JS answer
explanation please? — Cᴏɴᴏʀ O'Bʀɪᴇɴ 1 min ago
 
@ETHproductions woah that was fast
 
Pop-con idea: Write a math equation parser and displayer.
 
I have an idea for a koth about prime factorization.
A game sorta thing
 
8:07 PM
o_o explain?
^ why I use windows.
 
Linux is insanely hard if you pick the wrong distro.
 
@RikerW Thanks. I just happened to notice a patter right after the challenge was posted. (I haven't looked at the OEIS page yet.) Take another look if you want a basic explanation.
 
@CᴏɴᴏʀO'Bʀɪᴇɴ why I use mac. and windows
 
Oops, there was a bug in my explanation. Fixed now.
 
@Cyoce A mac user? reloads shotgun
 
8:09 PM
@CᴏɴᴏʀO'Bʀɪᴇɴ their trackpads are really nice. ¯\_(ツ)_/¯
 
trackpads ew
 
@CᴏɴᴏʀO'Bʀɪᴇɴ shoots with 3d printed taser
 
@CᴏɴᴏʀO'Bʀɪᴇɴ what, do you suggest I bring a mouse and mousepad with me for school? only two people do that and they're doofuses (doofi?)
 
doofi
FTW
 
@Cyoce ಠ_ಠ
 
8:10 PM
@CᴏɴᴏʀO'Bʀɪᴇɴ ( ͡° ͜ʖ ͡°)
anyone know how to call a JS function when the mouse is clicked, but not override the existing onclick behavior for the following clicks?
 
@Cyoce element.addEventListener("click",function)
 
will that work once, or every click?
 
Every click.
g2g bye
 
wait
how do I make it only work once
 
I'm not sure if that's possible, but can you have the function deregister itself when it's done running?
Something like element.removeEventListener("click", this)?
Pseudo-code because I don't know JS
 
8:18 PM
idk
I found another way to do it that should work on pages that don't have special onclick behavior, which suits my purposes
yay now I have JS bookmarklets that when clicked will insert a ( ͡° ͜ʖ ͡°), ಠ_ಠ, or ¯_(ツ)_/¯ to next textarea that is clicked (such as the box I am typing this message in)
oops forgot to double-escape the `\`
 
Jelly is hard.
 
@Lynn Agreed.
@Lynn are you new?
Wait no, cause you have a lot of stuff on your PPCG profile.
 
@Cyoce I have i3 keybinds that do that. Other options are zero width space, tableflip, and rickroll link. :P
 
@Doorknob "zero width space" ?
 
3
 
8:27 PM
@RikerW I used to go by “Mauris”
 
what is the purpose of it?
 
It is used when there is not enough space for space.
2
 
@Lynn Okay.
 
@Cyoce Acts like a space, but doesn't actually take up any... space
 
@RikerW javascript:void(document.activeElement.value += "¯\\\\_(ツ)_/¯")
 
8:28 PM
Useful for circumventing minimum length restrictions
 
@Doorknob that's evil
I remember doing stuff like that to circumvent swearing restrictions on minecraft servers
 
@Doorknob Oooh!
 
set $copymenu "copy: (z)wsp  (d)isapproval  (l)enny  (t)ableflip  (s)hrug  (r)ickroll"
mode $copymenu {
        bindsym !!z,d,l,t,s,r exec echo -n !!<​,'ಠ_ಠ','( ͡° ͜ʖ ͡°)',\
            '(╯°□°)╯︵ ┻━┻','¯\_(ツ)_/¯',\
            'http://www.youtube.com/watch?v=dQw4w9WgXcQ'> \
            | xsel -ibl /dev/null; mode "default"
        bindsym Escape mode "default"
}
 
@Cyoce I like the quadruple backslash
 
^^ an excerpt from my .i3/_config
 
8:29 PM
@Lynn I have to escape the JS string and the message
 
@Doorknob I bet this link leads to rick astley, does it?
 
@flawr yep
 
Yeah, one level for JS, one level for Markdown!
I've ran into ` \\\\\\\\ ` before.
Darn. Formatting is hard.
 
yeah chat's markdown is a little finicky
 
¯\_(ツ)_/¯
YAY!
 
8:31 PM
Wow, I just have a notepad window that I copy-paste from
 
¯\_(ツ)_/¯
 
The moment you find that someone else's strategy can be golfed 1 byte further than yours in the same language... sigh
 
@RikerW did you use mine?
 
Yes.
 
I also have it for ( ͡° ͜ʖ ͡°) ಠ_ಠ
 
8:32 PM
@Lynn Reminds me of my javascript answer.
 
Hahaha.
 
(┛ಠ_ಠ)┛彡┻━┻
 
0
Q: Mutating checksum

AnaklusmosismyfavoriteweaponCreate a user specified number of text files in the current working directory, labelled as 1.txt, 2.txt... With the same numbers as their names occupying the first line. The second line of the text file should contain the current md5 sum. Now, since the data in the file has been modified, the thi...

 
Hmm, do we have bots around here that evaluate code?
That would be neat.
 
Data does, but @Mego owns him.
 
8:33 PM
Useful for quick demonstrations
 
@TimmyD it needs the lenny nose ͜ʖ
 
!eval bf +[]
 
Anyway, the Haskell expression fix show is very mindblowing
 
Or !eval (pyth|cjam|seriously|jelly)
 
@Lynn If you want to get started using Jelly, you should ask Dr. Jelly himself (i.e. @Dennis).
 
8:35 PM
 
awwwwwwwwww
 
^
 
(°ʖ°)
 
@AlexA. Dr. Jelly (@Dennis) and Mr. Hide (@AlexA.)
 
Is that you?
 
@ZachGates lel
@flawr hurd u talkin shit
 
The moment you realize your strategy can be golfed 2 bytes further... :D
 
lol
 
@ETHproductions the moment you further realize it doesn't matter because java
 
> Crossed out 444 is still 444.
 
8:39 PM
This guy is offering more than half of his rep as bounty for this challenge 0.o
 
I don't think he realizes that.
@Hosch250 do you?
 
@flawr is 941 post-bounty or pre-bounty?
 
Oh, I don't really know?
 
That would be post-bounty. Your rep is deducted immediately when you offer it.
 
Still more than a third=/
 
8:41 PM
ok so it's not that bad
 
> Member for 2 years, 2 months
Pretty sure zie knows what zie is doing.
 
I just got notified of a chat reply from 15 minutes ago. thanks SE!
 
0.34698126301%
 
Psh, the Jelly source code is so hard to read, too :D
list(filter(None.__ne__, args)) ← So un-Pythonic!!!
 
Don't look at o.c...
 
8:42 PM
@VoteToClose Thanks for bumping me over 3000 rep! :D I always try to have thorough explanations of my code so people not familiar with how PowerShell works (but still understand programming) can follow along.
 
\o/
 
We should make a language where the source code only consists of digits.
 
Hmm ... 3004 ... I should go downvote four answers ... >.>
 
@Cyoce This happens to me all the time for rooms I am in.
 
if chain and arities(chain) + [1] < [0, 2] * len(chain): Wat
 
8:43 PM
@flawr ...numbers are unary?
 
^
 
Rather, 0s indicate "quotes" for integer/float parsing.
 
@VoteToClose make it 1's complement. ¯\_(ツ)_/¯
 
@flawr Lenguage would trivially work for that.
 
v1vq:$
  $+
p,p^
^ q
 
8:46 PM
 
I know there's a way to move the columns so I don't need so many leading spaces, but I can't wrap my head around how
 
Can I remove the spoiler tags from my answer now that people Alex has posted his solution without spoiler tags?
 
Also, Golunar.
Which is like, its own Gödel numbering, or something. Pretty cute
 
My rep over the past few days
XD
 
You're on a downward trend. Obviously by this time tomorrow you'll be negative.
 
8:49 PM
That's the plan
 
I can make it happen
 
You could just set a bunch of bounties.
Accelerate the process.
 
@Optimizer @AlexA. hear him.
 
Why isn't there a stock.exchange.com where we could trade rep?
 
@AlexA. Geobits is on the job!
@flawr Trade rep?
how would that even work?
 
8:51 PM
Well or what ever
 
Stock Exchange has been proposed on Area 51.
 
Bounties.
 
Because that name won't be confusing at all.
 
I offer you a loan of ... rep and I get some interest.
 
Everybody has a question and everybody answers that question.
 
8:52 PM
@AlexA. They could abbreviate it ... sex.stackexchange.com
 
@AlexA. there's many sites that are x exchange/overflow, but that takes the money
 
It worked out for experts-exchange.com
 
Oh wow, I just realized my golfed algorithm is 90% identical to Alex's
 
@TimmyD ( ͡° ͜ʖ ͡°)
 
@TimmyD there was a sexuality proposal going for a while
 
8:52 PM
@Quill Got to private beta and died
 
I didn't follow it, I knew it died, but I figured the CMs killed it
 
alex.SE
 
@TimmyD sexchange.stackexchange.com
 
I was listening to a song, wondering where I've heard it before. It was a music kit song from CSGO --____--
 
Hah.
 
8:54 PM
tack.sexchange.com
 
@Quill Died from inactivity, not murder
 
Some of the CMs were followers of the proposal
 
8:56 PM
@VoteToClose Why would anyone click this
 
^
 
Pen Island
 
flagged as spam
 
> Your penis
> Our business
 
8:57 PM
Les Bocages*
 
Where do you find these sites
 
@AlexA. the internet, obviously
 
Pen Island is pretty famous.
 
silk route
 
8:57 PM
@VoteToClose good god
 
@KevinW. orly? ಠ_ಠ
 
Alexa.com
 
@AlexA. his bookmarks, obviously
5
 
9:00 PM
@Lynn Famous for having a very unfortunate name? :P
> Avoid any project that mentions "Python 3". That'll only confuse you.
 
Yes! Well, of course the whole thing is a joke.
 
I need to get that domain.
 
9:01 PM
lol
 
This is the worst one so far.
 
ugh the detour permalinks are getting ridiculously long, especially with comments
 
bit.ch is already registered =/
 
@Cyoce make it like a bit.ly thing, where it shortens it automatically.
 
What other nice words do end with ch?
 
@RikerW the problem is I have nowhere to store this stuff, so I'm just putting a hash of the source code in the url. :/
 
@flawr cat.ch?
 
@flawr lo.ch, ba.ch
 
Powergen Italia.
Took me a while to find that one.
 
9:04 PM
@RikerW Don't you need 3 characters?
 
@flawr crun.ch
 
@flawr t.co is a well-known URL shortener used by Twitter
 
@flawr a.co
 
> Second-level domain names must be at least three letters long.
 
9:05 PM
New invention: URL lengthener.
 
^^ From the .ch wiki page
 
Okay.
That's the last one.
xD
 
Oh gosh.
 
badURLs.com
dunno if that actually exists, but @VoteToClose could probably create it...
 
@Dennis Minkolang appears to be borked on TIO.
 
Whoa, wtf, VoteToClose is VoteToClose again.
@flawr AHHHHH SO CUTE <3
 
^^????????
 
@VoteToClose You need to give it an empty argument
 
I like @FlagAsSpam better.
 
VoteForSpam
 
9:09 PM
Is it okay if I visit old catalog questions and submit answers on them if they don't have a certain language? Or should I just leave them be?
 
VoteForBernie
 
@Roujo That's kinda the point of catalogs.
 
@Roujo Of course
 
@Roujo Contribute to any challenge at any time
 
The rules even explicitly say that you can do that, even for languages newer than the challenges.
 
9:09 PM
@AlexA. He was second it the Iowa poll/caucause thingy.
Feel the Bern.
 
@quartata We tried that.
 
Cool, thanks everyone ^^
 
@VoteToClose No trust me that's why it doesn't work
 
@RikerW Yep. Really close behind Hillary too.
 
And it doesn't work with the bot either no matter what
Because I'm too lazy to fix it
And you've confused me with your run configs
 
9:10 PM
@AlexA. 0.3%!
 
I was mostly concerned about the age of the challenge - some forums don't like necroposting all that much =P
 
I was going to make a shakespeare entry to a valentines one a while ago.
 
> forum
 
@RikerW I know. ;_; Luckily in Washington you don't need to be registered with a party to vote in caucuses. Though I was considering registering just to be able to vote for Bernie.
 
lol
 
9:11 PM
@Lynn Yes I'm working on a bot that does exactly that
 
@Maltysen In the general sense of "people/audience", not "thread-based discussion website" =P
 
I am not 18/21/whatever age limit to vote.
 
It has gs2 if you want to try it out
@RikerW 18 in 'murica
 
@RikerW 18
 
Okay.
Ninja'd
 
9:12 PM
Ninja'd
 
IDCR
Double ninja'd
 
@Roujo I know what you mean, its just that some people get unreasonably angry when you call SE a forum ;P
 
@quartata Oh, huh.
 
@Maltysen Oh, okay. Sorry, then ^_^'
 
@Maltysen Yeah. PPCG is a Q&A website. ( ͡° ͜ʖ ͡°)
 
9:19 PM
0
A: Sandbox for Proposed Challenges

TheCrimuloStop the dance! Your sister was at the hospital, but now she's fine, awfully, you lost a day of work, one of your most important days. You work at your local television, and they have a contest, called "Stop the dance!", what is it about?: People is dancing, they have a big screen in the wall, ...

 
Wow, I didn't mean to kill chat ... sorry. :(
 
lol
It's okay, we forgive you.
@TimmyD can you ELI5 powershell?
 
Oh goody ... my office is closing at 3:30pm ... my bus doesn't depart until 4:15pm ...
 
lol
 
@TimmyD GLHF
 
9:31 PM
@TimmyD That leaves you 45 minutes to explain PowerShell! =D
 
@RikerW PowerShell began over a decade ago out of a desire to expand and update the command-line based language of earlier Windows (e.g., BATCH and derivatives)
 
1
Q: The confused twister

J AtkinThe basic idea is to write a program that twists itself, and the twisted version untwists itself. The first program will just be the twisting algorithm described here, and when given its own source code as input, outputs a program that reverses the twisting algorithm. How strings are twisted Th...

 
@TimmyD Okay, so bash for windows?
 
Mmm, kinda.
The big thing that differentiates PowerShell from *sh is that the PowerShell pipeline operates on .NET objects, not text.
 
Okay.
So bash for windows that only works with certain things?
 
9:34 PM
@RikerW and a bunch of utils
 
Okay.
So bash for windows that is incompatible with some stuff?
I like plain bash better.
 
As a simple example, $a=@(1,2,3) creates an array [1,2,3] and sets it to $a. We can then send that, as an object, through the pipeline. For example, $a | Foreach-Object{<do stuff>}
But, with the cmdlets that Maltysen references (that's the real term, cmdlet), you can manipulate objects even further
 
I like bash better for sure now.
*nix FTW.
 
A more complex example, using Exchange cmdlets --
Get-MailboxServer $ServerName | Get-Mailbox -ResultSize unlimited | Get-MailboxStatistics | %{$_.TotalItemSize.Value.ToMB()} | Measure-Object -Sum
 
I just got another down vote on this:
:c
20
Q: Symbolic Integration of Polynomials

VoteToCloseApply an indefinite integral to a given string. The only rules you will be using are defined as such: ∫cx^(n)dx = (c/(n+1))x^(n+1) + C, n ≠ -1 c, C, and n are all constants. Specifications: You must be able to integrate polynomials with any of the possible features: A coefficient, possibly...

 
9:37 PM
Gets all mailboxes that live on $ServerName, gets statistic information for each one, converts the values to megabytes, and outputs the sum
Because you're passing .NET objects along the pipe, you don't need to explicitly worry about formatting or string parsing or anything like that
 
I already spent 300 rep on this thing. Why punish me further? cries
 
Doing something similar on *sh, and there's guaranteed to be at least one grep somewhere in there.
 
grep is fun.
 
But grep is annoying
 
grep is wonderful.
 
9:39 PM
^
 
It's also a recognized word in OSX.
 
@TimmyD That's a joke right
 
grep -v 'powershell' sane_people_city.txt
damnit ninjaed
 
I'm not joking when I say that grep is annoying. It's powerful, yes, but it's fundamentally limiting, because you can only work with strings.
 
9:41 PM
everything is strings in perl...
 
Everything in AppleScript/osascript is a string.
 
IDK osascript too well, but I know it for the most part.
And I still like you better as @FlagAsSpam.
And your chat profile is outdated.
@VoteToClose ^
 
OK, let's take a real-world example
Getting a list of processes currently running on the computer
 
grep -v 'powershell' sane_people.txt
In some linux distros top works fine...
 
Sure, and Get-Process in PowerShell does, too
but, now I want to do something with that data
 
9:45 PM
Mine is golfier....
 
or maybe I want to run that same command against dozens or hundreds of machines
 
@RikerW Fixed.
 
or maybe the boss says "This CSV is great, but I really want it as a web page"
 
lsof -i
lsof -i | grep -E "(LISTEN|ESTABLISHED)"
beat that
@TimmyD copy/paste???
 
That's the point, though ... if whatever script or function I'm coding writes its output to the pipeline as an object, I don't have to re-do all of that extraneous stuff
 
9:47 PM
@VoteToClose Thanks for the tips ^^
 
Get-Info works on just my machine, say
 
I don't use F#. ;P Those were general tips.
 
If it's properly pipelined, you can do stuff without worrying about the exact format of the string you're passing from one command to the next, like you would in *sh
Get-ADComputer –filter * | Select-Object @{label='computername',expression={$_.Name}} | Get-Info | Where-Object –filterscript { $_.OSBuild –eq 7600 –and $_.SPVersion –ne 2 } | ConvertTo-HTML | Out-File \\webserver\webroot\fail.html
 
Eh, I could probably do that given enough time
 
(copied from here)
Now instead of ConvertTo-HTML and the rest, pipe those into a different cmdlet that executes an msi
Maybe instead of Get-ADComputer I want to read input from a text file
Or maybe this is the fifth phase in some other thing, and there's a bunch of pre-processing that filters the results based on some other metric that replaces the Get-ADComputer
If I was using *sh, I would have needed to rewrite at least part of my script to properly handle input/output
Fundamentally, that's what differentiates PowerShell
 
9:54 PM
Huh. I like strong typing, but I hadn't realized that PowerShell is basically a strongly typed .NET shell.
That's pretty awesome. Thanks! =)
 
Unfortunately, the vast, vast, vast majority of challenges posted here don't even get close to that level of detail or abstraction, so a lot of PowerShell's advantages don't come through in code golf competitions.
"strongly" typed is a strong word for PowerShell typing ...
 
Well, it's better than stringly typed ^^
 
In a lot of ways, it's really weakly-typed
 
Oh, okay. Stronger-than-bash-ly-typed, then
 
That's fair
PowerShell does a lot of implicit conversion for you behind the scenes, especially for basic datatypes.
$a=1 and $b='2' ... if you do $c=$b+$a you'll get a string 21 ... if you do $c=$a+$b you'll get an integer, 3
And now, I get to go brave the snowstorm ... seeya folks
 

« first day (1830 days earlier)      last day (3020 days later) »