« first day (1913 days earlier)      last day (2931 days later) » 

5:04 PM
@Optimizer This isn't going to bubble up to the page in the form of a status code or unhandled exception. I'm just going to do nothing. If the user bypasses client side validation and presses the save button, nothing happens.
 
is it a webpage or not?
 
Web Forms
(so yea kinda)
 
then it has to have a response code, right?
 
It'll be 200
 
ok
so no Rest?
 
5:05 PM
Can you be more specific?
Rest means a lot of things to different people
 
nvm
 
Our database has a rest interface, but it isn't woven into the website. It's a separate product with a separate installer
 
@Rainbolt the problem with this is that you require that client side to match server side
aka, say your database has a maximum of 100 chars for something, but your javascript doesn't limit it
if the problems don't bubble up, then the user doesn't know
 
@Zgarb I think this works: }:;(<@|. ;. 1) 0 , a
I'm learning the language, not yet golfing.
 
@CᴏɴᴏʀO'Bʀɪᴇɴ Looks good! Now, can you make it a tacit verb?
 
5:19 PM
Yay! I'll work on that now
 
@NathanMerrill That's a good point. I just hate to do everything twice
i.e. Check if it is valid on the client, if not, do this. Check if it is valid on the server. If not, do this.
 
as do I, but its the life of web development
in fact, with some frameworks, you have to do the checks more than twice
 
prepend =: 0&,
boxify =: <@|. ;. 1
flatten =: ;
slice =: }:

full =: slice @ flatten @ boxify @ prepend
 
e.g., we have a framework, where the models that represent the database entities have a check, but if you wanted errors to appear on the form, you needed additional validation on the form (in php)
 
This works, but why doesn't }: @ ; @ (<@|. ;. 1) @ 0&,?
 
5:23 PM
0
Q: Compute the histogram entropy estimation of a string

orlpWrite a program or function that estimates the Shannon entropy of a given string. If a string has n distinct characters, xi is the i th distinct character, and P(xi) is the probability of that character occuring in the string, then our Shannon entropy estimate for that string is given by: For...

 
I have 800 reputation! :-)
 
@CᴏɴᴏʀO'Bʀɪᴇɴ Adverbs are left-associative, so that's parsed as (<some verb> @ 0)&,
 
Put parens around 0&, and it should work.
 
5:25 PM
}: @ ; @ (<@|. ;. 1) @ (0&,) :D
 
@NathanMerrill I'm doing something similar, except my models are written in the same language that my server side validation occurs in, so I stuff the form into the exact same model and call Validate again.
So I'm never really validating the form on the server
 
@CᴏɴᴏʀO'Bʀɪᴇɴ \o/
 
@trichoplax Cool. :D
 
I'm thinking of making a golf
 
5:30 PM
FGITW'd! \o/
 
Any feedback on the thickness of the threads or the thickness of the outlines?
 
@Zgarb thanks for the problem, I learned more :D
 
@El'endiaStarman Thanks :)
 
@trichoplax Looks pretty good to me. Almost perfect in that aspect.
 
@El'endiaStarman That's handy - because it's neat powers of 2 at present (apart from the sqrt(3), but that's unavoidable...)
 
5:32 PM
haha, nice
 
5:46 PM
2
Q: Compute the histogram entropy estimation of a string

orlpWrite a program or function that estimates the Shannon entropy of a given string. If a string has n distinct characters, xi is the i th distinct character, and P(xi) is the probability of that character occuring in the string, then our Shannon entropy estimate for that string is given by: For...

27 minutes and still no answer?
 
I saw math and was like "I'll do it later"
 
it's super easy :P
Opposed to my usual challenges, this one looks complicated, but is actually quite simple :) — orlp 18 mins ago
 
@orlp I once went an hour without an answer.
 
I once went almost a day without an answer.
 
5:47 PM
@wizzwizz4 I've gone for about a month without answers >_<
 
@CᴏɴᴏʀO'Bʀɪᴇɴ it looks complicated, but it really isnt
 
Ik
It's a lot to digest
 
-n * sum(P(i)*math.log(P(i), 2) for i in range(n))
 
I've gone for w̃̆͊̊ͣ̓̒̿̒͐͊͒͛ͨ͑҉҉̜̼̙̜̳̜̬̺̮ǒ̟̪̮̮̠̳̗͔̲̲̘̻ͭͤ͑ͭ́̽͛͢͜͠w̷̛̮̭̳͓̯͉͍͆̍͗͗͊͌͂̆̐̅̈̋̃̇̏̑̕͟͟ỹ̶̧̡͓̭̗̬͉̣͙̲͉͉̻̖̙̦͖͐ͭ̃̌́̓̿ͩ͘͞o̸͎̰̥̗̠̟̹̫̘̦̥̩̰̱̳͎͙̼̹͑̀ͪ̅̀̎̓̀̀ư̢̭͙̼̪͚̻͚̳̺̼͈̲̄̎ͤ̓̔̽̅͛̀ͧ͑ͦ͊ͪ͞c̨̫̺̗ͭͩ̃͒͋͆̇̄ͤ̉̑̇̄̓́̚͘͡a̧͎̯̫̮̯̖̬͕͙̫̩͉͔͎̞̘̘̐̈́͊ͫ͋ͨͩͨ̒ͯ̀͒̈́̽ͭͮ̄̀͝n̍̏̑̐̈́̓̄̿͛̃͊̋ͮ͜͞͏͏̧̦͚̮̲̝̙̱͎̻̹̱̩̗̻̩̫ͅͅa̸̭̤̟̭̤̽̏̏̄̿͂ͧ̂͝c̸̸̨̫͍͖̤̦͖̿̇͑̿̾ͤ͐̐͒́̄͐̈́͟ț̴̟̭̭͙̱̠̘̫̉ͯͨͯ͛͂̎͋ͥ̌̑̍̇̓͛́̀͟͟ǘ̵̸͎̻̣̙̪͔̙͓̈́͛̿ͫ̓ͪ͛̊ͩ̾͋ͯ͐ͮ̈́̚͠a̸̳̮̙͉͉̲̱̪̼̻̥̹̭̣̲͈̠ͮ̽̅͋̀̂̀͞l̴̛̳̳̭͔̯̖̪̖͓͚ͣ̑̄̂̆̆̐͡l̷̥̲̥͖̟͍̲̲̖͉̟̟̝̩͕͉̫͕̤ͥ͐͊͒͌͒ͩ̆͂͊́̚͜yͪ̇̓͋̎̍̆͌͗̐̇̏͗͐̄̂̚͠҉̵̗̼͓̠̺̪͔̰̖r̶̴̭͖̙͉͙̾̆̂ͮ̿̿̃͐͒̿̾́͟e̶̝͚͙̻͈̦̲̖̳̪͍̘̻̺͚͎͒̓ͬͬͩͨͫͩ̀ͦͧ̏̑̅̓̀͜ǎͬ́̾̆͛ͫ̓͏̝̞͓͖̝͚̻̬͈̼͓̗̳͜͠d̶̢͉͍͕͚͚̏ͫ̓̇ͯͩ͛ͤ̒̈́́̚̕͟ͅ
 
5:51 PM
@wizzwizz4 I have an old challenge that still has 0 answers
8
Q: Find the follow sets

orlpThe challenge below requires you to be familiar with formal parser theory. If you don't know what the question is asking because you don't know what the terms mean, context-free grammars and first/follow sets are covered in a lot of university courses. I can recommend this Stanford course, in pa...

 
o̶̲̝͎̩͉̖͓̪̞̥͕͑̑ͣ̃̿̈́̒̈́ͮ̌̄͆ͤͬͦͫ̑̏̀̚͜͝h̡̡̙͈̺͙̲̭̭̼̝̲͈̙̬̬̪̩̥̖̋̿͐̓̾ͥͯ͒ͦ̆̅̓ ̶̙͚̭͓̞̪͎̱͈̐ͫͦ̀̉̇͆̀ͨͤ́̚dͧͣ̃҉̧̭̩̰̫̮͖̜̦̝͢͞ͅe̡ͫ̅̉ͮͮͨͩͭ̀̅̈ͨ̾͊͐ͦͩͮ͜҉̯̳̗̟̤̭̺͉̘̙͙̻̰͉ą̷͚̟̗̻̖̓̊ͧ̈́̍͋̈́̎͛̾̍̐̎͞r̵̵̙̻͈̫͚̞̭̹̝͈̞̠̗̜̙͍̠͎̿͌͐͒́̃ͥ́ͬ͛͂̾̂̚̚͜͠ͅ ̴̘̝̹̭̞̓̈̔́͊͗́͝͡t͌ͭͮ͑͗̈́͏҉̠̬̲ͅh̵̨̛̝̤͇̖̝̱͉̝̉ͬ̌̿͐͛̀͊̍́́̚͢ẻ̶̢̗̝̼͎̯̞̥̬͖̫̥̞̦͇̳̲̆̎͌ͧ̌ͧ̍̾̍̑
̶͉̳͈̮̦̱̙̩͔ͥ̆͑͗͡͡s̵̴̬̪̬̻̻̮̘̤̤̰̭̣̖͙̮̖̙̺̣̄̀̓͋̈͊̋̑̋ͤ̄͐̀͞͞t̷̝͈̺͓̖̼͉̗̯̥̤̭͉̹̤̼̥̎͌͊̂̈́̓͗͂̑̔̑͟a̶̴̸̶̸̬͇̺̦̮͔̒ͪ̎̽̅̈́ͩ̿̿̈́͐̅̽̅̚̚r̡̤͔͔̠̜ͮ̊̎͆ͫ̓͡b̶͋̊̅͌͛͡͏̸͈͇̻͍̙̖̙̘̰̮̺͞o̫͙̱̳̻͔̬͗͛ͩͪ̎̐̑͂͊̔͋̽͜͡͠ä̡͓̫̫̺̭̟̠͚͙͔̺́ͨ̐ͬͦ͒̊̊̒̋̋͠͠͠͡ȑ͙̖̬͈̰͍̦͉̤̘̮̙̭̥͍̼̐̂̓̅ͪͪͬ͗͆ͪ̒̔̔͜ͅd̵̷̨̯͙̮̫̝̙͚͔͙̤̫̩͇̱̣̲̘̩͊̆ͯͮ͋̆̔̑̕ ̴̢̤̪͙̹̙̲͎̘̰̬̀͌̍̉̿ͣ̍͒͛͗̌̏ͤ̍͐͢î̩̜̙̥͎͓̳̑̆́͘͡
 

Sandbox

Where you can play with chat features (except flagging) and ch...
 
They are messages for real people. Select + Read.
Anyway, they're trapped in their bounding boxes.
 
@orlp I recognize some of those words.
 
5:56 PM
@wizzwizz4 They are visual noise.
 
Ah. Ok.
 
@Zgarb How would I arrange an expression of the form (u x) f (v (w x)) tacitly? It looks like a fork, but the right side throws it off
 
3
Q: Reverse positive runs

ZgarbInput Your input is a list of single-digit numbers in any reasonable format, including a string of digits. The input will not be empty. Output Your output shall be the input list, but with each maximal run of nonzero digits being reversed. Example Consider the input 95883007414830 <---> <----

 
@CᴏɴᴏʀO'Bʀɪᴇɴ u f v@w?
 
dammit i went to go eat lunch and now I can't type my Jelly solution on mobile
 
6:03 PM
@Zgarb Oops, it's actually (u x) f (v (u x))
 
@quartata Copy paste this ṣ0Uj0
 
Meh, too late. There's already a 5 byte solution in another language. Might as well post it with an explanation when I get back
 
but what if you get ninja'd
 
then who cares
 
@CᴏɴᴏʀO'Bʀɪᴇɴ Okay, then it can be u f v@u or (f v)@u, depending on which is shorter.
 
6:06 PM
shrugs
@Zgarb Oo, cool! Thanks!
 
@Doorknob how do you read a Babble program out loud?
 
@orlp Is the sum multiplied by n, or the length of the input string? Your test cases suggest the latter option.
 
@zyabin101 put 10 bubble gums in your mouth, chew for 10 minutes and read an equivalent perl program.
 
@Zgarb oopsie, it should be the length of the string
@Zgarb should be fixed now
 
@Optimizer loudly
 
6:18 PM
thank!
maybe @Doorknob, being a mod, can edit that in.
 
mod-abuse eleventeen plz
 
@EasterlyIrk I am not the only oracle for the almighty NMP though.
 
@CᴏɴᴏʀO'Bʀɪᴇɴ BTW, your J answer can be golfed to 18 bytes.
 
6:29 PM
oh? let me look at it
o_o I don't see how
does it use a chain or something?
 
You can get rid of the &
 
v@(m&u) is equivalent to m v@u ]
if u and v are verbs and m is a noun
 
Cool, thanks!
 
6:54 PM
Anyone who knows String Theory (as in, strings of characters) can instantly impress those who know of the other String Theory :P
 
@CᴏɴᴏʀO'Bʀɪᴇɴ Until they figure out what you're talking about. :P
 
I think the regex one is more apt
 
@El'endiaStarman And as we all know, more nerdy people figure out what you're talking about quicker.
\o/ @RenderSettings you're back!
 
\o/ i am. been back on and off again for a while.
 
@zyabin101 If you did any 3D modeling, you'd see them a lot more often. :P
 
6:57 PM
@El'endiaStarman I use POV-Ray. My render settings are locked in as templates on the drop down list.
 
@El'endiaStarman :P there's always that.
That's some intense lag
@orlp your third answer has arrived :P
 
7:19 PM
@trichoplax can i ask u wut is dat ting which looks as an arabesque ?
 
Deconstruction is a critical outlook concerned with the relationship between text and meaning. Jacques Derrida's 1967 work Of Grammatology introduced the majority of ideas influential within deconstruction. According to Derrida and taking inspiration from the work of Ferdinand de Saussure, language as a system of signs and words only has meaning because of the contrast between these signs. As Rorty contends "words have meaning only because of contrast-effects with other words...no word can acquire meaning in the way in which philosophers from Aristotle to Bertrand Russell have hoped it might—by...
@El'endiaStarman ^
 
7:31 PM
Time to solve the case of the Zodiac Killer
 
Ted Cruz is the Zodiac Killer.
 
Solved
 
TIL Giving a talk while an interpreter is translating is really weird.
 
@VTCAKAVSMoACE shock
 
7:37 PM
@Zgarb why did you make it single digits only :(
rip my answer
 
hitting the random button leads to strange things
 
@orlp Shouldn't it be easier with single digits?
 
Which five posts should I downvote? I'd like to hit 12k exactly.
 
Oh you mean your earlier solution is not competitive...
 
7:54 PM
@orlp f=lambda l,*r:l and[f(l[1:],l[0],*r),r+(0,)+f(l[1:])][l[0]==0]or r (possibly better with 3.5)
 
@Zgarb yes, too easy :(
 
@flawr You could further bury the bottom of the barrel -- codegolf.stackexchange.com/questions?page=107&sort=votes
 
@QPaysTaxes I feel a lot younger now=)
@QPaysTaxes There is a web interface?
 
@TimmyD Would have to be answers, not questions
 
@TimmyD Those are all questions though - flawr wants to lose rep.
 
8:05 PM
Downvote this... then my other answer can become higher scored than it.
 
Ah, misunderstood his request.
 
Next milestone will be 12345 rep
 
Not 12321?
 
@TimmyD "Ah, and 12,321 too. =)"
 
@QPaysTaxes The new UI really does change that a lot. Last time I tried my luck with git (and failed miserably one more time) you were not able yet to upload files. Perhaps I'm not gonna delete my account.
 
8:16 PM
Hmm ... have we had a challenge related to that? Given an input number n, what's the next "interesting" number bigger than n, where interesting is defined as palindrome, strictly incrementally increasing, contains three of the same digits in a row, etc.
 
@TimmyD You know the proof why all numbers are interesting?
@zyabin101 You probably mean 12'321. :D
 
Contradiction. Suppose there is a collection of numbers X that is not interesting. Then, by definition, there is the smallest non-interesting number, and it is therefore interesting and not in X.
 
high five=)
 
There is, of course, varying degrees of "interesting."
 
12321 = 111^2
 
8:19 PM
Those who use ' as a digit group separator should be burnt at the stake.
 
@flawr high five
 
(I'm mostly kidding.)
 
@El'endiaStarman Some people apparently use a comma/decimal point as separator=)
 
Dear Reader: Enclosed is a check for ninety-eight cents. Using your work, I have proven that this equals the amount you requested.
2
 
which means ? powers of 11 are palindomes ?
 
8:20 PM
alt text is the best part
 
@Agawa001 11 ^ 5 = 161051
 
@QPaysTaxes Well thank you anway for making me learn about the UI, that is really valuable. I do not like command lines.
And command lines do not like me.
@El'endiaStarman The nice thing about ' is that there are fewer people who confuse it with a decimal point. But some people use , and others . for the decimal point which can leads to confusion.
In the last few years at uni I'm trying hard to keep my notation as foolproof as possible in order to account for people from any origin=)
@QPaysTaxes Nah=) Sometimes intentionally provocated confusion is necessary for the entertainment.
@QPaysTaxes yay
 
The Makefile for this thing is going to be fugly.
Then again, all makefiles are fugly since they use tabs
 
@quartata ಠ_ಠ
 
Spaces ftw
 
8:31 PM
@CᴏɴᴏʀO'Bʀɪᴇɴ did you see how the tips for jolf hit HNQ?
@quartata poor person... :P
 
How did I live without this: omive.com
 
Hello everybody
Anybody know who this is?:
 
That's Rick Astley
 
Yup
 
Phew ... 8 edits, +9/-9 votes, 39 comments, 43 answers (6 of them deleted), a successful closure vote, and a successful reopen vote ... busy question.
 
8:39 PM
I can't believe it...
This is him when he was younger:
Age really gets to you
 
Depressing screenshot of the day:
>.<
n in the search bar gives here (TNB) and the most posted link in here.....
 
That is actually a good song
 
@R.Kap what does this have anything to do with that video of a cute puppy I posted earlier? ;P
 
@EasterlyIrk wat
 
8:49 PM
Holy dang ... this guy married Gödel's Incompleteness Theorem with demonology and the "True Name" belief. Incredible answer.
150
A: You can control a Demon by knowing its True Name, but why?

Cort AmmonUse of their name forces them to be aware of the one truth they can never know. Tl/Dr: If demons seek permanent power but trust no one, they put themselves in a strange position where mathematical truisms paint them into a corner which leaves their soul small and frail holding all the strings. ...

 
@Maltysen Nothing really...just sharing a really good song by a popular singer
 
@TimmyD I loved that answer XD
@EasterlyIrk Why not rename it "Tips for Jolfing"? :P
 
@QPaysTaxes But...that's not bad
 
Quick, I need a programming language that is named after something that is hard to break
Like iron/steel
 
@Rainbolt Ruby?
 
8:52 PM
@Rainbolt iron python
 
@Rainbolt Brainf*ck?
 
@Rainbolt I can make one right now called "nanotubes"
 
Hey...those are pretty hard to "break"
 
@R.Kap *hard* ( ͡° ͜ʖ ͡°)
 
It's too late... moment passed for me to make a witty retort
 
8:53 PM
͡°ʖ )͡ (°͜
 
Nvm I got an audible laugh out of someone. Thanks guys
I went with Ruby
Oh... they may have been laughing at something else
 
what was the joke?
 
@CᴏɴᴏʀO'Bʀɪᴇɴ yeah, the jolf tips question hit HNQ. :D
:3
 
8:54 PM
@EasterlyIrk :D
 
@Maltysen ( ͡° ͜ ͡°)
 
@CᴏɴᴏʀO'Bʀɪᴇɴ brb renaming quetsion
 
@EasterlyIrk :D
 
done
@R.Kap 0/10 very disturbing
 
@EasterlyIrk XD
 
8:56 PM
Tester: It's a breaking bug
Dev: It's not broken if it never worked... XD
Me: Let's program everything in ruby. Rubies are hard to break.
 
@EasterlyIrk
...
 
I wonder if our HNQ equation will be edited.
 
10/10 very disturbing-IGN
 
Save it to $a and do -join(0..$a.Length|%{[char[]]$a|Get-Random}) ... you get something like ʖ)° ( )͡
((͜) ʖ ) )
(͜)͜° ͡° (°͡
hehe
 
[40, 32, 865, 176, 32, 860, 662, 32, 865, 176, 41]
 
8:58 PM
@TimmyD Yep. I upvoted it when I read it a couple days ago. :P
 
The unicode point values for every character in ( ͡° ͜ʖ ͡°)
 
@TimmyD I have that (ish) for JS bookmarklet
)° °ʖ(͜͡͡
͡° ( ​ʖ͜ )°͡
 
hah :D
 
@CᴏɴᴏʀO'Bʀɪᴇɴ already was... :P
 
@EasterlyIrk really? XD
 
8:59 PM
by me.
:P
 

« first day (1913 days earlier)      last day (2931 days later) »