« first day (2069 days earlier)      last day (2777 days later) » 

8:00 PM
Anyway, we've ostensibly graduated, but we're waiting on changes to site text and UI that will better support our focus on challenges, and then we'll get our design.
 
So yes, we've graduated. But we don't have the design yet (clearly), and most other things are exactly as they were (including privilege levels, etc).
Basically, the "beta" got removed from the site's header, but that's really about it.
 
@quartata I was. One block isn't the end of the world
 
Also, welcome back A Nerd - I to Programming Puzzles & Code Golf chat! \o/
 
Ok, cool. No change since I "left." Keep up the good work!
 
> it's a TeXbook, get it?
groan
 
8:02 PM
I thought our new design was just removing the "Beta" from the title?
 
@TimmyD They're going to subtly change the background color one value per day, starting November 1st.
 
Also, I still want β to be our icon
 
Is that a thing? Why that in particular?
 
As in "beta"
 
It's a Beta.
 
8:04 PM
Ninjango'd
 
Yes, well now I feel like an idiot >_>
3
 
@Geobits You could convince me of this.
 
@Poke I'm not sure what else I could say that would if you don't already believe it.
 
What the heck is "Basecamp" -- legit site?
 
@Geobits I believe in you.
 
8:06 PM
ideone.com is down
 
@Poke Well it's not the first time I've said the design comes in November. It's just the first time I felt comfortable giving specifics. I'm just not sure how much I'm allowed to say.
 
@mbomb007 I disagree
 
It's not going to be your "standard" design overhaul, let's just say that.
 
@Geobits 6 - 8 weeks.
 
@Geobits ohhh, they are just toggling it between 2 values. that makes total sense
 
8:07 PM
@Poke Maybe flush your cache. I checked using isup.me
 
@mbomb007 Close. 6-8 weeks would be in the latter part of November.
 
@mbomb007 The load times seems a bit wonky but I was able to compile some sweet sweet java
 
I get 503 Service Temporarily Unavailable.
 
@EᴀsᴛᴇʀʟʏIʀᴋ Yea, I'm not sure how to word it better. Basically it will eventually change to the new color, but in very small steps, one day at a time. The goal is to confuse the users about when exactly it changed, making it a puzzle, keeping with our theme.
 
well i'm convinced
that sounds like a really dumb idea
but i'm convinced it's what they're doing
@Geobits++
 
8:09 PM
@mbomb I'm not even getting slow load times. It pops right up for me.
 
:(
 
@Geobits oh, cool
 
So, someone who's not been on the site in a while will come back, see the background color has changed, go in chat like "OMG, we got our design!" and everyone else is like "lolwut?"
5
 
is it a constant rate though?
 
5/7, excellent trolling
 
8:11 PM
can it lapse backwards?
 
@TimmyD The joke's on us. We've had our design for months, now!
 
@EᴀsᴛᴇʀʟʏIʀᴋ That's pretty much all I know. I got the feeling it was only forward though.
 
@Geobits ...but we're not Puzzling.SE...
 
@El'endiaStarman Well I know that, but I get the feeling SE has always been a bit confused about our scope overall.
 
8:12 PM
Hello!
 
hi
 
Hello!
 
Simple question: Is (p ∨ q) ∨ r ≡ p ∨(q ∨ r) true?
 
@flawr oh god i'm stuck in r/hmmm why did you ever introduce me to that
 
8:13 PM
@EᴀsᴛᴇʀʟʏIʀᴋ I do not know what that subreddit is, but if you think it is interesting or weird, then you have seen nothing yet.
 
I don't. It's just fun to read.
 
Don't go down the switcheroo hole, though.
You will regret it.
 
@TheBitByte is that referring to ((p ∨ q) ∨ r) ≡ (p ∨(q ∨ r)) or (p ∨ q) ∨ (r ≡ p) ∨ (q ∨ r)?
 
@TheBitByte woah we're at the same subject too
 
@EᴀsᴛᴇʀʟʏIʀᴋ It's referring to, well, how can I say it without revealing the answer?
@betseg ?
 
8:15 PM
@TheBitByte ???
 
If you know the answer, ask it as a riddle/puzzle. The way it's worded makes it seem like you need help.
2
 
in the school we study logic too
 
that's the point. I want the answer...
@betseg oh cool, it's not a class in america. :/
 
@EᴀsᴛᴇʀʟʏIʀᴋ a subject in maths
 
@Geobits Okay, hahaha, will do, hopefully.
 
8:16 PM
yeah, it's not included in our math
:32607270 no, the answer to my question
yeah
 
Sooo I had never actually used the Java 8 functional features until today...
They're actually not that bad
 
@TheBitByte yes, if you mean ((p ∨ q) ∨ r) ≡ (p ∨ (q ∨ r)). That's pretty simple.
And I guess my question was dumb, because #2 doesn't make sense.
 
@EᴀsᴛᴇʀʟʏIʀᴋ Pretty simple, maybe, but what's your answer?
 
?
yes, that's true
 
@EᴀsᴛᴇʀʟʏIʀᴋ Okay, what law is this called?
 
8:19 PM
But they feel grossly out of place and I can't quite put my finger on it
It just feels like streams are really separated from the rest of the language and I don't quite like it
Also having to use .forEachOrdered leads to a lot of unnecessary code for the more basic operations IMO
 
@TheBitByte Associativity?
 
@TheBitByte Yes
 
It just feels off
 
it's a law, don't remember that name
 
It's called the associative law
 
8:21 PM
@EᴀsᴛᴇʀʟʏIʀᴋ No, that's (p ∨ q)∨r ≡ p∨(q ∨ r), which is not what I originally wrote.
What I originally wrote was the distributive law.
 
@TheBitByte yes it is
oh, nvm
 
0
Q: Is it OK to promote my own posts in chat?

DJMcMayhemOccasionally I see other users posting links to their own answers or challenges in The Nineteenth Byte. Is this OK? Can I promote my own posts as well?

 
@EᴀsᴛᴇʀʟʏIʀᴋ Okay, what are the identity laws? :D
 
I'm not going to discuss any more logic right now, sorry.
I have HW to do.
 
@EᴀsᴛᴇʀʟʏIʀᴋ Which subject?
Maybe I can help. :P
All you have to do is prove the axiom of choice. :D
 
8:25 PM
no
i'm fine
 
See you later then
 
@EᴀsᴛᴇʀʟʏIʀᴋ Haha, okay. Is it science hw?
 
no.
I"m good.
bai! see you all later
 
bye
 
@EᴀsᴛᴇʀʟʏIʀᴋ Bye!
 
8:27 PM
@DJMcMayhem Wow, you type fast. ;-)
 
@TimmyD Yes he does type very fast indeed.
Indeed he does type very fast I can see that.
In fact I doubt that I am faster than him.
 
I'm just disappointed he didn't post a link to the question in chat.
 
Is it allowed to advertise chat rooms?
 
@Geobits Why are you disappointed do not become that that is bad. /s
 
@TheBitByte /s /s
 
8:29 PM
@Adnan Got an affiliate link? /s
@Geobits /s is bad ⇔ /s is bad.
 
@Adnan I'd say that promoting chat rooms and messages from them is in a similar vein, though perhaps a little more lenient.
 
@Geobits I thought about it. :P
 
If you open up a new room, I think it would be fine to let others know about it. I don't think it's necessary or polite to promote it regularly, though. Of course, if people are talking about nethack, something like "we can take this to the nethack room (link)", would be fine
 
@El'endiaStarman I agree, lenient little more chat promoting rooms. /s
 
Oh okay, I'll do a mild advertisement then: It's black's move :P
 
8:32 PM
Is that the correct usage of ?
 
@Adnan Oh, right, I forgot about that room. :P
 
If this is okay, then want to play actual 2D (not ascii chess) with me?

https://lichess.org/NNOoAb5F
 
Sure, one game
 
Has anyone been in the Nethack room in ages?
 
Challenge idea: You have a 2D grid of size N*N. Each point in the array needs a unique integer number. For each pair of adjacent points, the "adjacency cost" is abs(A-B)^2. You need to minimize the total adjacency cost for the entire grid
 
8:34 PM
@EᴀsᴛᴇʀʟʏIʀᴋ hmmm
 
@Sherlock9 No, not in a while
 
Guess what crashed today?
 
A helicopter
 
a server!
 
@NathanMerrill Wouldn't that just be put a small number in the upper-left and increment-by-one as you go across?
 
8:35 PM
@quartata 100 points!
 
Whoa I got it in one
I was just picking something that flies and wasn't a plane
haha
 
@flawr I thought that was a Space Shuttle replica at first.
2
 
@TimmyD say N is 500. Two points, one below another, will have an adjacency cost of 500^2
 
So for an N=2, you'd want:
-1 0
 1 2
For a total of 10?
 
@El'endiaStarman Almost=)
@El'endiaStarman It was one of those:
 
8:38 PM
@NathanMerrill The only other way I can think off hand to do it is diagonally incrementing, but I get a larger total for the N=2 case.
 
0 1
2 3
Also 10
 
@Sherlock9 I made a random poll.
 
Of?
 
 0  1  4 = 10
 2  3  6 = 10
 5  7  8 = 5
 =  =  =
13 20  8
Total of 66
I would think that's the optimal pattern
 
Just doing it from top-left across, then down gives 60 I think
0  1  2 = 2
3  4  5 = 2
6  7  8 = 2
=  =  =
18 18 18
 
8:46 PM
Oh, you're right. Hmm.
 
How cool is that
 
@Geobits Well, obviously, that minimizes the horizontal rows. You can't do better than 1 difference each pair horizontally, so your minimum for each row is n-1.
 
@Sherlock9 here
 
0  1  5 = 17
2  4  6 = 8
3  7  8 = 5
=  =  =
5  18 5

For 58 if I'm not mistaken
 
@Laikoni (3 to 7 is 4 = 16) + (7 to 8 is 1 = 1), for 17
 
8:53 PM
@zyabin101 Oh that one. Sorry I didn't respond. I have no idea what to do in that situation
 
@TimmyD ok, looks like I'm getting to tiered to do basic maths ...
 
G'night
 
@Laikoni You're not a mathematician until you can no longer do basic multiplication.
16
 
Ok, so obviously we can minimize the horizontal rows by incrementing across. Since they all have to be unique, the minimum total difference we can get for the next row is 3*n, which follows page reading order. I don't see how it can get any better.
 
@Geobits Yeah.
Grr ... PowerShell v2 doesn't have a way to redirect the Warning stream. That feature was introduced in v3
 
8:56 PM
starting at the top left is a bad idea
nevermind, it doesn't make a difference
 
0
Q: Jelly- can we really score it by character count?

tuskiomiJelly is one of those languages that doesn't use ANSI text in its code. Why should we score Jelly by its character count when each character can take up to 4 bytes? For example, take this answer (Authored by Dennis): ḃ2-*µSN;+\>-Ạ 1Ç#Ṫḃ2ṭ2;1ị⁾][ From a character counter, one can see that this...

 
34 minutes, New Meta Posts? Slacker.
 
@TimmyD ?
 
@TheBitByte the feedbot took 34 minutes from the question creation to post it in chat.
 
Hmm. So the general formula for that method is n^4 - n^3 + n^2 - n. How unwieldy.
 
9:06 PM
bah, I thought I had a good method
but I got 80
 
@DJMcMayhem thank you for writing up that meta post
10
 
got 62
 
@MartinEnder Which meta post?
 
DJ didn't write all that many recently ;) (the one regarding self-promotion in chat)
 
Today is ball pen day! :D
@MartinEnder Nice, then posts on are ignored to me and not displayed altogether to me.
I can't see them in the main list.
 
9:17 PM
Congrats on that.
 
I had to go to the tag page to see it. :{
 
@zyabin101 why ignore chat posts???
 
Minxomat wrote a post about my allegedly bad activity in chat (including other users', too.)
 
s/allegedly/evidently/
5
 
commented
 
9:20 PM
No offense but if someone says you're contributing noise and everyone seems to agree, you should probably listen instead of ignoring the help
2
 
@MartinEnder Aw thanks, no problem!
Do you think I should make it CW? I don't have any problem with other users adding thoughts to it
 
The worst part about ignoring someone is when you end up confused about the conversation, and then have to ask what was said, derailing the whole thing. Which wouldn't have happened if they weren't ignored.
 
@Geobits indeed. though it usually isn't as much of a problem if they aren't actually contributing anything.
 
I occasionally self promote
if I'm proud of an answer
 
^
 
9:26 PM
moi aussi
 
or if it's an answer to an older question that would not get seen otherwise
 
I even other-promote
and same
 
but some users obsessively keep posting like every answer is chat until they get upvoted
 
^ exactly
 
@Downgoat how do i shim oninput. jquery does not have it
 
9:27 PM
shim...?
 
That, as well as some meta comments asking "I self-promote, is that OK?" Was what drove me to writing that post
 
@DJMcMayhem no. CW isn't for adding thoughts, that's what answers are for
 
el.val = "goat"; el.oninput();
@ConorO'Brien ... that is the fourth time I've been linked that
 
We can get it to ten if we try hard enough :D
 
9:28 PM
@Downgoat but that doesn't work everywhere. that's what i meant by shim. jquery does it for everything else, like key events and stuff, but not oninput
 
and yes, that is Tiedgoat. He's quite the idiot
 
@Downgoat four is the cosmic number, so I'm okay with that.
 
I have an answer that sits at 97 votes, 3 votes away from a golden badge
the meta post says that posting here shouldn't be done
but how sinister would it be if I edited a link to that answer into the question
as an example of what you shouldn't do
in the hope that people click on it? :D
 
@orlp but what if people from the chat request the link, like me?
 
then you can go to my profile
 
9:29 PM
facepalm
 
and find it yourself :)
 
@Geobits the italics go well with your user name
 
Why thank you sir. You should make all yours links so they match your name also :)
 
@Geobits bleeet :P
 
9:31 PM
(that could have gone smoother...)
 
@orlp I don't want to come across as anti-self promotion. I've self promo'd 130 times so I'm not really in a position to tell you not too, haha.
 
If I still had small-caps, that means all my messages would be smallcaps...
 
I'm more just anti-over-self-promotion
 
@NathanMerrill brute force using [0, ..., N-1] returns Timmy's solution as optimal for 3x3
 
@orlp fantastic answer! upvoted
 
9:34 PM
@El'endiaStarman I thought your mom... I mean... nvm.
 
@ConorO'Brien in hindsight it isn't actually that great at solving the problem
it's a good sampling algorithm
but it doesn't use voronoi's properties at all
49
A: Draw an Image as a Voronoi Map

BoojumC++ My approach is quite slow, but I'm very happy with quality of the results that it gives, particularly with respect to preserving edges. For example, here's Yoshi and the Cornell Box with just 1000 sites each: There are two main parts that make it tick. The first, embodied in the evalua...

this one should've won IMO
 
I think we need more challenges. I just completed this one, and it was pretty fun.
180
Q: DISARM THE B.O.M.B.!

AverroesYou have been hired for your tech knowledge as a Secret Agent's sidekick to ensure that the good guy can get his job done and the world can be saved. This is your last mission before retiring with a high paycheck and the gratitude of the whole world. But before you have to disarm the Evil Genius...

Unfortunately, I couldn't disarm the bomb contained in my username.
@TimmyD 2 + 2 = 5 for extremely large values of 2.
And late at night, 2*4=6
 
now I'm working on that now :D
 
I found a great and nerdy shirt:
 
-1: doesn't include the ; line ending that is required for many languages, not to mention , these challenges are typically not well received in the first place... — tuskiomi 2 hours ago
-.-
@mbomb007 haha
 
9:48 PM
@ConorO'Brien Yeah. I don't get it. Must be having a bad day, or only knows Java.
 
XD yeah
 
@mbomb007 i dont understand
 
@orlp i want to actually write this
 
@Sherlock9 Actually, I just did.
 
9:58 PM
@orlp too much truth in there
 
10:10 PM
@MartinEnder wait, which solution is optimal? I found one that was 60, but he said his was 66
er, 62
 
restricted source challenge idea: must not contain words from the dictionary. does <x>
 
Hey @Conor, I've been working on Addict
Haven't pushed the changes yet (before you look)
 
yeah?
 
I now have abc[var] syntax working, and * syntax
I added a couple other features to that: 1* grabs all but the first input, *1 grabs all but the last, etc.
 
oo nice
 
10:23 PM
And also, I made 0 do what you suggested for $ (it stays at 0 no matter what)
So for example, this code prints every charcode that's inputted to it:
a outputall
 c 1
 outputall 1*
 i 0
 
nice! I meant that $ would be a local variable, and it would have 0 by default, but could be modified by the function and its children
 
That would be very tricky to implement, but I'm sure it's possible
 
@NathanMerrill I thought his idea was to write the numbers in increasing order across the rows (which gives 60)
 
Can anyone do a ls -l /usr/bin on their centos or Debian computer and paste results here? I'd really appreciate it :3
 
@ETHproductions it's okay, not a problem
 
@Downgoat it's kind of long, do you want all of it?
 
yes
 
Pastebin link please, don't fill up the chat directly with it.
 
obviously
 
Doesn't hurt to verify
I have a raspbian install at home, when I get home if you still need it I can see about opening it
 
10:38 PM
@ConorO'Brien :/ windows is different unfortunetly. thanks anyway though
 
well, windows doesn't actually have ls
 
CMC: What's the longest English word where the absolute difference between consecutive values is strictly increasing?
 
-2
Q: Tell me about this element!

Oliver NiGiven a atomic number N (1 <= N <= 118), print information about the element that the atomic number corresponds to. This includes: Element name Atomic mass Electron configuration Examples Input -> Output 1 -> Hydrogen, 1.00794, 1s^1 56 -> Barium, 137.327, [Xe] 6s^2 etc. Remember, this is c...

 
@DJMcMayhem Do we ignore hyphens and apostrophes?
 
Sure
 
10:48 PM
2 days ago, by quartata
@Downgoat Have you given any thought to something like Cheddar on Rails
@Downgoat Did you ever see this
 
why on rails?
 
yes, why not ruby on autobahn?
 
that is, what does "on rails" mean?
 
Tell Me About This Element: yeah I doubt Mathematica can be beaten unless another language has a built in that does it - I was just about to post a boring 83 byte answer
@ConorO'Brien rails is the name of a library for building websites
 
yeah, but why rails :/
 
10:53 PM
@flawr aliteration?
 
@ConorO'Brien It was made in reference to Struts I think
Struts holds you up rails takes you places
I guess??
 
as in, apache?
 
Apache Struts yes
Java EE MVC
 
It possibly came from a throw away comment made by the creator that he "put [ruby] on rails" - not much info on wikipedia: en.wikipedia.org/wiki/Talk:Ruby_on_Rails#Name
probably in reference to struts, yeah
 
11:07 PM
in Ask Ubuntu General Room, 28 mins ago, by Downgoat
# /mnt/usr/lib64/libaudit.so.1 ./sudo
Segmentation fault
pls halp sudo is borked
 
11:20 PM
@Downgoat which sudo
try su someotheruser
make a new shell with an empty profile
@Downgoat
 
this is not so simple...
the object files are not linked/linking properly
 
CMC: provide a list of lists of all positive numbers that add to N given N
 
@ConorO'Brien wasn't that a posted challenge the other day?
 
You mean a list of lists?
 
@mınxomaτ yes
@JonathanAllan idk
 
11:23 PM
Because if you find a different single number that adds to N, I'm impressed :P
 
N + 0i? :P
 
Is 0i positive?
 
Jelly, 6 bytes: 1ẋŒṖḅ1
 
@mınxomaτ ....probably not
 
5
A: List all ordered partitions of n

Jonathan AllanJelly, 7 6 bytes -1 byte thanks to @Dennis (convert from unary ḅ1, rather than sum for each for each S€€) 1ẋŒṖḅ1 TryItOnline How? 1ẋŒṖḅ1 - Main link: n e.g. 4 1ẋ - repeat 1 n times [1,1,1,1] ŒṖ - partitions of a list [[[1],[1],[1],[1]], [[1],[1],[1,1]], [[1],[1...

 
11:24 PM
@mbomb007 Uh wait what?
 
@orlp TP++ will cause a tragic event anywhere in the world. Options include school shooting, bombing, and even plane attack on the World Trade Center. Only $50 a month!
@Downgoat did any of the things mentioned work? Maybe you can install a rootkit as a workaround.
 
@noɥʇʎPʎzɐɹC :O how?
 
@zyabin101 Thoughts And Prayers Plus Plus. See video on starboard.
 
19
Q: Calculate the partitions of N

DJMcMayhemYour challenge is simple: GIven an integer N, ouput every list of positive integers that sums to N. For example, if the input was 5, you should output [1, 1, 1, 1, 1] [1, 1, 1, 2] [1, 1, 3] [1, 2, 2] [1, 4] [2, 3] [5] These lists do not have to be output in any particular order, nor do the nu...

 
perfect, thanks. steals J answer
 
11:35 PM
There's a two byte pyth answer
I don't remember it though
 
Hello
 
@DJMcMayhem ./ maybe? idk the problem i just saw the word partition
 
It's not allowed
At least not for int
{SMlMM./U is the top answer currently
 
For that challenge, sure but it is for the CMC
 
Partitions?
 
11:45 PM
Oh, @ConorO'Brien they need to be unique up to rearrangement?
 
I think so?
 
In that case Jelly, 9 bytes: 1ẋŒṖḅ1Ṣ€Q
same as above with sort of each list then unique items
 
@ConorO'Brien program crashes when given an input greater than 4
:P
 
?
are you using tryj.tk?
 
it was a joke
 
11:48 PM
ties with winner of DJs question
 
@ConorO'Brien you said you were using the j answer for something
 
so i was expressing my amusement at you using a golf answer for something real
 
oh, lol
I'm using it for a personal inquiry :P
 
oic
whoa jquery $.extend is really cool
 
11:53 PM
CMC: Go on to Code Review and post a question about Jelly code.
7
(or maybe Brain-Flak?)
 
Are there any cool things I can do with massive inductors?
 
induction!
 

« first day (2069 days earlier)      last day (2777 days later) »