« first day (2117 days earlier)      last day (2726 days later) » 

4:13 AM
well, I'm off to bed. I was hoping for at least a couple of entries, but its apparently too complex (or maybe I need a better theme)
 
hi guys
 
@Geobits they have cookie monster running on server side obviously
 
No (This isn't to anyone in particular)
 
Question: how should syntax for date literals work while not being ambiguous with subtraction
hm i could use 2016/01/01
 
Needs a T in there somewhere, so we can remember that the date is Terran
 
4:24 AM
What's wrong with "2016/01/01"::Date
Or whatever
 
@quartata The slashes. :P Dashes are ISO standard.
 
Well aside from that :P That was what he used
 
I don't see how slashes would be better than dashes for operator reasons though. Is slash no sort of operator at all?
 
Isn't division a thing?
 
I didn't want to assume he chose a sane division operator :P
 
4:28 AM
No division only multiplication by floats to ensure no runtime divide by zero errors
 
Dividing two dates doesn't make sense though... subtracting two dates does, not that I know exactly what I'm defending yet
 
But dividing two numbers does: 2016/12/12
 
How about 2016÷11÷14?
 
Unicode gross
Julia does that for integer division and it's one of the main reasons I don't use it
 
Wait really? Gross.
 
4:31 AM
I would still assume / is some operator though. The only real reason to use something different for division is if / is already used.
 
÷ is Unicode in the same way 2 is...
 
What does / do?
 
It's not like operators in themselves are unambiguous... what is 2^3? 8, or 1?
 
@quartata date literal > string -:> data cast
@Doorknob DAMMIT
 
@HWalters They are within a single language. Or should be.
 
4:32 AM
Sheesh, there are 7 solutions to my challenge and only one of them was valid upon its posting. The rules aren't even that complicated!
Wait, never mind, there's an eighth answer that appears to be valid.
 
@Downgoat If you can't be bothered to write 8 extra keystrokes in production code don't know what to say
You'll need ::Date anyways
 
primarially because everything in cheddar is slow and who knows how long it'll take to make a simple date
Also, planning on changing ternary from: a ? b : c to a if b else c to be more idomatic
idk if good idea tho
 
Eeeeeeeeeew
 
a if b else c then
 
@Geobits ಠ_ಠ python does it
 
4:35 AM
Doesn't make a difference whether it's at compile or run in an interpreted language. It will be equally slow
 
@Downgoat and it's bad there too
 
^
;_: then how will i do time literal
do i need to do like DateTime::"12:00:00AM"
Has anyone here actually used Cortana/Siri on their computer (not phone)?
 
I have (and very much like) windows 10, and I have literally never once used cortana
 
^
Mac OS X Sierra is basically: Siri, Siri, Siri, Siri, Siri, upload entire HDD to iCloud, Siri, Siri, Siri
and now i have to update because apple has discontinued apps for OS X 10.11
this is stupid
why is apple trying to make better argument for me to switch to linux
 
Woah. Turtléd is beating MATL
 
5:01 AM
hi guys
 
@Downgoat you mean b if a else c?
 
no
that is just weird :P
 
Yeah, it's missing a then
 
@Downgoat then idiomatic should be if a then b else c IMO
 
5:11 AM
The order of Python's ternary comes with a certain amount of confusion. Proposed fix: a only if b else c
 
Nah, Forth set the standard... a IF b ELSE c THEN
 
@betseg s/IMO/fi/
 
better idea: a then b else c or: if a then b else c
 
Personally, I think a ? b : c is the best choice.
 
if a: b else: c
 
5:19 AM
if(a,b,c) is a decent alternative
Just up and make the ternary operator look functional
 
One of the main reasons I don't like a if b else c style is that it separates the branches (making multi-line especially messy). With a ? b : c you have your condition up front, with two branches following. Branch-conditional-branch is just bad.
 
I'm winning against a golfing lang!!!
 
I don't even know the proper way to do a multi-line a if b else c, come to think of it. I can't think of anything that would look good.
 
The dangling else is a problem in computer programming in which an optional else clause in an if–then(–else) statement results in nested conditionals being ambiguous. Formally, the reference context-free grammar of the language is ambiguous, meaning there is more than one correct parse tree. In many programming languages one may write conditionally executed code in two forms: the if-then form, and the if-then-else form – the else clause is optional: if a then s if b then s1 else s2 This gives rise to an ambiguity in interpretation when there are nested statements, specifically whenever an if...
 
wat
halp meh i need halp
 
5:31 AM
Tell us
 
wat
I have a program in Ruby on Rails. It's a system where you can check item in/out
I have a table and ActiveRecord model called Item. I want to make a search box on the check out page where you can search items as you type
 
wat
5:49 AM
Then on the Check In page, you put in your User ID and you et a list of your checked out items that you can check in
I port forwarded it to my VPS, have a look: i.dkudriavtsev.xyz:8081
 
Turtlèd is beating a golf lang!
 
wat
(I hope this chatroom is mature enough to not delete anything)
 
@wat For serious help try Stack Overflow
 
wat
They're useless
I asked them a while ago, got 5 comments and nothing else
 
More than you're getting here...
 
wat
5:55 AM
^
0
Q: Materialize CSS / Rails: Roboto font not loading

Dmitry KudriavtsevUsing Ruby on Rails and Materialize CSS, the Roboto font is not rendering. My layout: application.html.erb <!DOCTYPE html> <html> <head> <%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track' => true %> <%= javascript_include_tag 'application', 'data-turbolinks-t...

 
I agree. I can't stand stack overflow. It's a great resource, but asking questions on SO never works out well
 
wat
Yes, this is real
(Sorry for the tint, I have f.lux on)
 
What do you expect from a "plz debug my code" question?
 
wat
@feersum I've tried everything I could think of
 
eyes twitch
 
6:06 AM
PCMR
 
what is wrong
 
wat
@DrMcMoylex Um.
Wat.
 
@Downgoat Everything
 
you hate computers?
 
Sometimes
 
6:14 AM
Why does it feel like my least popular code golf answers are the best ones?
 
wat
^
 
One python answer I wrote beats all but one python answer, that uses numpy, while mine does not. Has no upvotes yet
 
My thinking when I code my most popular 2 answers: ooh an easy question. I'm on mobile. Lemme do something quickly and post.
 
@betseg If only
 
wat
ok, turning off the port forwarding ina few minutes, if anyone can help me please let me know.
 
6:17 AM
I wrote a Turtlèd answer, and while in terms of complexity it isn't my best, it is currently winning. An esolang, beating a golfing lang
that answer has 1 upvote
 
wat
ok, turning it off onw
it's off
 
can I show you my voteless python answer without getting downgoated?
 
wat
ye
 
6:36 AM
k then
0
A: Monte Carlo estimator of Pi

Destructible WatermelonPython, 69 bytes Apparently shorter than the other python entries, save one that uses sympy numpy (misremembered) from random import* print(eval(('+(1>('+2*'+random()**2)')*2000)/500) Wow, it's been a while since I posted a multiline answer on this site... I've been using Turtlèd too much for...

you better not
 
0
Q: Multiplication Fibonacci

OliverThe Multiplication Fibonacci sequence starts with 1 and 2, then each term is the product of the last two terms: Fn = Fn-1 × Fn-2; F1 = 1; F2 = 2 The sequence starts out like this: 1 2 2 4 8 32 256 8192 2097152 17179869184 36028797018963968 618970019642690137449562112 Given a positive int...

 
 
1 hour later…
8:01 AM
will the chat resume now @Fatalize?
 
?
 
the chat lay dormant for 1 hour
I guess not?
 
I have nothing of interest to say so the chat will keep sleeping
 
Hello
The chat is now revived!
 
8:03 AM
well, I beat a golfing lang with an esolang
 
I still have tests :(
 
darn
I'm currently beating MATL with Turtlèd on a challenge. Wanna see?
 
I have a french test tomorrow... does anyone here speak French?
 
@Qwerp-Derp Yes
 
Parlez-vous français?
 
8:04 AM
I'm French so I hope I do :p
 
lol
 
My grandad is learning french
 
Uhhh I need to do a writing task for French :(
 
write oui a bunch of times
 
@DestructibleWatermelon Non :(
@Fatalize How do you say "easy"?
 
8:06 AM
Write a story about a chicken who asks people if they speak french a bunch of times
 
@Qwerp-Derp « facile » or « simple »
 
Like "that's too easy"
Oh
 
« C'est trop facile » or « C'est trop simple »
 
So "c'est trop facile"?
 
yes
 
8:07 AM
Krep ninja'd
 
how say ninja'd in french?
 
That's three words for your writing task, only 197 left :p
@DestructibleWatermelon You don't
 
how do you know it is 200 words?
 
@DestructibleWatermelon "ninja'd", pronounced "neen-juhhhhd", with the h sound pronounced like coughing up phlegm
 
Just a guess
 
8:10 AM
No word limit
Cause it's peewee French
 
only +inf words left
 
"how do you say 'yes' in french?" "You don't. You say oui"
 
Programming languages in French? Or is it all the same except with different pronunciations
 
Langages de programmation
Note that langage does not have a u compared to language
 
I thought it would be "langue"
 
8:14 AM
Langue is used for human languages
 
Oh
What
 
(also, langage is masculine whereas langue is feminine)
 
Where's "Le dix-neuvieme byte"?
 
Probably got frozen by now
or deleted
 
I thought there was rep when you outgolfed people ;_;
 
8:18 AM
So for something like "it's English now", can I do "c'est anglais maintenant"?
 
Depends on the rest of the sentence
 
As in "we have English now" (apparently you can drop the "le"when talking about what you have")
 
not sure what you mean here
 
Ummm
 
Still not sure what you mean by “we have English now”
 
8:21 AM
"Look at my timetable! It's English now!"
 
oh, you mean an English course?
 
-> "Regarde mon emploi du temps ! C'est anglais maintenant !"
ya
 
sorry to tell you this fatalize, but your answer on set digits n = set digits n^3 is invalid
 
Yes that would work. « On a anglais maintenant » is a bit more idiomatic
 
Fatalize?
 
8:22 AM
@DestructibleWatermelon Example where it does not work?
 
1234567890
wait a minute
that is below the limit isn't it?
Either way, you probably need to check that there isn't a digit in input that is not in output
wait nvm
it is above limit
but I could probably find one where it is invalid
if there isn't one, than you should probably note the anomaly in your answer
 
Wait
 
above*
mistype
 
So you're saying it's wrong when the Input has digits that are not in the output
and my answer only checks that there are no digits in the output that aren't in the input
I get it
 
yup
TBH it still could be valid
get a brute force checker on the case
 
8:28 AM
Assuming the first case can never happen, but I don't know if that's true
I'll fix it
 
I think the algo has to theoretically work upwards of the limit anyway
 
8:39 AM
@DestructibleWatermelon I fixed it, still 11 bytes
 
yay
Turtlèd is actually winning this challenge right now...
1
A: Draw diagonal lines of text

Destructible WatermelonTurtlèd, 28 26 bytes Oh my, I appear to be beating a language specifically designed for golfing. this is a great day. !_4[*.[ rd+.]ul[ ul]r;_+]_ Try it online! note trailing space. Input also needs trailing space. seeing as python can take a list, this is a lot like taking a list in Turtlèd

 
@Fatalize For reference, that's what Dennis' 106239 case is intended to test
 
oh
I literally just found that myself :P
 
8:56 AM
Challenge idea: input n. Find all numbers that it's sum of digits equals to number^n's sum of digits
 
I'm fairly sure that's just powers of 10
 
9?
 
9^2 =81, so yes
 
9^9 = 387420489?
 
I wonder what other cases
 
9:00 AM
Whoa wait what that's crazy
 
Oh right, nvm, misunderstood
 
@Sp3000 Input n = 2
 
I thought we were looking at n^n
 
106239^3 has all the numbers of 106239
 
@Sp3000 Ah k
 
9:01 AM
Whoa
 
Keep in mind we have this as a challenge, which is quite similar: codegolf.stackexchange.com/q/15244/21487
 
Wait are there any other numbers that do that?
Is there a number n that shares the same number set as n^3, no more and no less?
 
Anonymous
Any mods around?
 
Er... isn't that the whole point of the challenge? (so yes)
 
No more and no less
So 106239 doesn't count, because 106239^3 doesn't contain 6
Other than numbers that contain all digits
 
0
A: Sandbox for Proposed Challenges

ZgarbMagic mirror madness code-golf string Introduction I have a room full of magic mirrors. They are mysterious artifacts that can duplicate any item, except another magic mirror. More explicitly, a duplicate version of the item will appear on the other side of the mirror, at the same distance. ...

 
that challenge was alreadu posted
 
I mean, just take one of the true test cases from the challenge, e.g. 107624 -> True
 
@Mego Not a mod, but how come?
 
9:05 AM
i=0
z=int(input())
while True:
if sum(int(x) for x in str(i**z)) == sum(int(x) for x in str(i)):
print(i)
i+=1
awww
 
No need for <pre>, just have all the code in a text box and hit the "fixed font" button
(or Ctrl+K or whatever the shortcut was)
 
Anonymous
If a new tag is created, do mods have tools to add it to a bunch of questions without bumping them, or will it have to be done in waves (to prevent flooding the front page)?
 
@Sp3000 it was a reply
 
Usually I just do the reply after
And re:Mego, from memory every time Martin did that it was in waves
 
Anonymous
Ok cool
 
Anonymous
9:08 AM
I'll start with adding it to 5 challenges now, and then do more later
 
@DestructibleWatermelon s;f(n){s=0;for(;n;n/=10)s+=n%10;return s;}i;main(c){for(;i<10000;i++)if(f(i)==f(pow(i,c)))printf("%d\n",i);}
 
What tag are you creating?
 
All numbers that are less than 10000
@Fatalize golf?
 
I'm winning a challenge for the first time! This is great. only gonna last a little while until jelly comes along
wow, that was a long delayed ping noise
 
Gonna have to add that to a lot of challenges :p
 
9:12 AM
More advertisement
4
Q: Manoeuvre the grid!

Qwerp-DerpBriefing: You are a bot, in a 2D grid that extends infinitely in all four directions, north, south, east and west. When given a number, you must move the bot so that you get to the target number. Here's how the grid works: You can move in 4 directions: north, south, east or west. Once you move...

 
Anonymous
Yep :P
 
look pls
 
Anonymous
Gotta do it slow or else the front page will get flooded
 
it has been a very long period and noone has upvoted my monte carlo estimator of pi
 
Anonymous
Here's the post with the master list of challenges. Please please please please please add any challenges you find where the tag would apply.
 
9:19 AM
Never made a challenge of that type, strangely enough
 
Stackylogic applies?
 
Should I revitalise Pyramid?
Dude we can work on Pyramid
 
Anonymous
I've made exactly one
 
exactly one what?
why is my challenge so unpopular
:(
 
At which point does a linear congruential generator become non-random, if one code-golfs the parameter numbers with shorter numbers?
 
9:23 AM
wait what
 
Depends on what you call random... which LCGs are pretty bad at being :P
 
@Mego How did you not think of “Is this number a prime” in your list of challenges that fit the tag? :p
 
18 or so days with no votes on an answer...
 
Woah 7 works for input 4
8 works for 3
 
9:31 AM
My challenge idea
 
k...
very helpful...
 
Just an I interesting piece of information ;_;
 
@Sp3000 exactly! If LCG's are allowed to be called random numbers, it can't hurt much to snip the numbers a little bit.
 
What's the context for the LCGs, anyway?
Would probably depend on the challenge
 
0
A: Monte Carlo estimator of Pi

AngsHaskell, 116 bytes d=8^9 g[a,b]=0^(fromEnum$a+b+d^2<a^2+b^2+div d 2) p n=4*(sum.take(floor n)$g<$>iterate((\x->mod(9*x+1)d)<$>)[1,5])/n Because dealing with import System.Random; r=randoms(mkStdGen 2) would take too many precious bytes, I generate an infinite list of random numbers with the al...

 
9:34 AM
@betseg if you do post, link to this somewhere
"almost cryptographically strong linear congruential generator" <-- er... am I missing something or is this a contradiction? And also how are you thinking of snipping the numbers?
 
@Sp3000 Haskell doesn't come with a random number generator without imports so I rolled my own, this was as far I dared to golf it ;)
 
@Sp3000 Oh...
My challenge is dupe
 
@Sp3000 e.g. Java uses x↦25214903917*x+11 mod 2^48 but it probably wouldn't hurt to use x↦252149*x+11 mod 2^48, right?
 
Yeah, but you have x*9+1 mod 8^9 here...
Personally it seems to me like the period's too short for any reasonable approximation to pi, but then again the challenge doesn't exactly specify anything about that... :/
 
p 1000 actually gives 3.144 which is quite good already
Anyway, I wonder where is the actual limit of a random number generator being unacceptably bad.
 
Anonymous
9:43 AM
@Fatalize Because I was going down the front page, my challenges, and the 4 that DJ linked in the comments
 
I'm fairly sure we've had debates about this, either in chat or on meta, but it's a hard one to draw a line in the sand for :/
But 3.144 is not too terrible
 
Anonymous
3.144 is close enough to pi for any terrestrial concern
 
And arguably any LCG is bad for that challenge because two consecutive random numbers aren't independent so the point on the square has a bad distribution.
 
Anonymous
(diameter of Earth) * 3.144 is ~12 miles off of the actual circumference of the equator
 
@PhiNotPi What are the limitations on X/Y? The result can exceed 1
 
10:00 AM
Hey does anyone speak french here now?
I have a french query
 
@Sp3000 and 8^9=134217728, so the square can be thought of as a 134217728×134217728 grid that the samples will cover in a uniform lattice if enough are taken.
 
I speak french
 
@Qwerp-Derp Short memory :p
 
But Fatalize you weren't on for a while
So I assumed you were off
 
I am omnipresent
 
10:08 AM
So if I want to say "I need to study as well"
Do I do "Je dois reviser aussi"?
 
yup
 
Ah thanks
 
« Je dois aussi réviser » is technically more correct
 
@DestructibleWatermelon Should I revitalise Pyramid?
 
though both can be said orally
 
10:09 AM
Ah
:(
 
There could be a lot of variants depending on the previous sentence
that would be more or less fitting
 
Maybe it's technically more correct but it really doesn't matter in an oral conversation (and even on paper, I would probably write either without second thoughts)
 
Also, "Look at my timetable! It's English now!" becomes "Regarde mon emploi du temps ! C'est anglais maintenant !", right?
Anything wrong with that?
 
The "c'est anglais maintenant" doesn't sound right, not sure why tho
 
"c'est anglais maintenant" is correct but sounds strange
 
10:11 AM
Is it grammatically correct?
 
« on a anglais » is more natural
 
What would sound right?
Oh yeah
@Fatalize Oh yeah forgot about that
 
@Dada I wouldn't ever write aussi at the end of a sentence unless it's dialogue
 
It's dialogue
 
@Fatalize "aussi" at the end end sounds less formal... and I like to sound not too formal! But you're right, it's grammatically more accurate on the middle
 
10:18 AM
@Fatalize Can I plop a "maintenant" at the end of that (so, "on a anglais maintenant")?
 
Yes
(Did you only get 2 sentences done in those few hours? :p)
 
Nope, just curious
It's for a writing test tomorrow anyway
:p
 
How long did you study French?
 
1 year
How trash am I from not trash to trash?
 
not trash at all for only 1 year
 
10:29 AM
My speaking skills aren't that good though
 
When you wrote "Regarde mon emploi du temps !", did you intentionally not put an s at the end of "regarde"? :p
 
Ummm
Maybe...
 
That's actually correct because it's the imperative form, so no s unlike the normal "tu regardes"
I'd be impressed if you knew that after only one year
 
Oh wait
Well there's no tu
So I guess it should be regarde
And regarder sounds off
 
There's no tu but that's still the singular second person form
Like in english when you say "Look at that" it's implied that it's "(You, ) look at at"
anyway forget it :p
 
10:33 AM
True
 
A lot of native speakers would have incorrectly written "Regardes mon emploi du temps"
 
Huh
 
This needs a Stack Snippet so we can easily see a list of uncracked solutions! — DLosc 7 hours ago
 
hey, can one of you try cloning a repo for me? git clone --recursive git@github.com:nathanmerrill/Fellowship.git Do you get a network error?
 
Anyone want to create a snippet? I lack the skills :(
2
 
10:48 AM
git why you do this to me ;_;
 
@NathanMerrill Worked fine for me. I didn't add the recursive flag though
 
you need the recursive flag
that's the problem we're running into
the submodule isn't cloning
 
@NathanMerrill got a permission denied on the sub repository
 
its ok, I think
I think I just figured it out
 

« first day (2117 days earlier)      last day (2726 days later) »