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

12:01 AM
Unfortunately, that also means that if the guests are terrible, the show will be terrible, too. But is usually isn't.
 
Oooh, found an interesting OEIS
You are given an number N
 
and you need to find as many partitions of N such that the sum of the partitions times one of (-1, 0, 1) can equal any number from 1 to N
 
For f*cks sake Windows...
 
12:15 AM
How do you fail at creating an error code? There should be at least some dummy value.
 
At least your computer doesn't need you to sign in twice after a cold boot
 
What slang words does the US have especially?
UK has bob, arse, bloody, faff, etc.
 
@AlexA. I'm on the mobile, my Internet connection is down. I just saw your message. If I can still be of help. ..
 
there's probably some buzzfeed article and/or video out there if you're up for wasting 10 minutes of your life
 
@Quill I'm in The Nineteenth Byte aren't I?
 
12:21 AM
;)
 
function m = f(A)
a = diag(A);
n = length(A);
for i = 1:n
    u(i) = g(a(i));
end
m = min(u);
u = u - m + 1; % Ensures min(u) = 1;
% Remove any gaps from the integer sequence in u.
uq = unique(u); % The unique values in u.
for i = 1:length(u)
    m(i) = find(u(i) == uq);  <------- what?
end
 
@AlexA. Sorry, gotta go now
 
Dimwad?
 
@LuisMendo Oh okay. The message above what you said is the code I'm looking at that I was trying to figure out. If you get some time later I'd love your help but otherwise don't worry about it. :)
 
12:26 AM
@AlexA. I'll take a look tomorrow. Is it only that line or the code in general? Sorry that I can't right now!
 
No problem! Yeah it's just that line that's confusing me.
 

So this is what happens when I step out...

1 hour ago, 7 minutes total – 27 messages, 6 users, 0 stars

Bookmarked 11 secs ago by Geobits

 
thanks Travis :/
 
@Geobits I don't know why you would have expected anything else
 
That's a reasonably fair point.
 
12:36 AM
Whats the differece between saying margin-left: 50% or margin-left: 50vw in css?
 
@Geobits technically shouldnt you be Mediumbits?
 
No, I'm earth-sized.
 
Oh. That's unfortunate
 
@HelkaHomba It's not so bad. I have a decent amount of gravity and can attract a moon or two.
 
12:42 AM
@Geobits This had me really, really confused for a second because XKCD substitutions substitutes minutes for years
> 1 hour ago, 7 years total
 
It was a long conversation.
 
@CᴏɴᴏʀO'Bʀɪᴇɴ replace conga with katosky kick and it's more or less accurate
 
🔜🚽
 
@quartata mannaerobics, now
 
gotta love SO, its where all the noobs (who are now pros) before you went to vent their troubles :D
 
12:48 AM
@CᴏɴᴏʀO'Bʀɪᴇɴ Not really, I usually see more kick than robics on most silly servers
Conga does seem to be making a comeback though
 
huh
I haven't been on a friendly server recently
 
By the way everyone, Geobits's new name is Bitsy. Just though I'd let you guys know.
 
Yeah, that's not a thing. People will die.
 
People die regardless
 
1:01 AM
Yea, but it's not every day that someone named A Nerd - I dies.
 
Calm down Bitsy
 
et tu, Calvin?
And to think, I starred your Helka is better post.
I guess that's that. I'm gonna have to actually kill someone this time so people will start taking it seriously.
 
Um ok, another CSS question. If I have this selector:
body {
color:red;
}
and this:
table {
color:
}

how can I set table's color equal to bodys color? (Like whatever it may be, not necsarrily red)
like maybe body.color?
 
not possible
 
1:12 AM
just use javascript
 
no
use a CSS preprocessor
then you can set variables for CSS values, and use them in multiple places
 
o_o
what a hipster
;)
 
@AshwinGupta does inherit work for colors?
 
Anyone know of any good free animation programs?
 
@AshwinGupta yeah inherit works
 
1:15 AM
@Maltysen inherit works only for parent relationships, and if the table was inside a blue div, you would only be able to inherit blue
 
@N3buchadnezzar 2-3 days later (not sure if that's all of them, but hopefully it is)
 
@NathanMerrill true, but it might work in his case
 
1:30 AM
0
Q: CIOL Intepreter

MoonHia, this is another golfing challange, im challangeing you all to golf a language known as CIOL, Just like any other golfing challange, your goal is to make as small as a intepreter as possible, and for ciol, id say that might be just a little hard, follow the information here for assistance wit...

 
1:42 AM
Promise: my child's first words will be "I'm a fucking baby"
 
TIL screaming is a musical profession
 
Chat mini-challenge: determine the effect of the following five-state Turing machine:
State 0 read 0 write 0 move left goto state 2
State 0 read 1 write 0 move left goto state 3
State 1 read 0 write 0 move left goto state 3
State 1 read 1 write 0 move left goto state 4
State 2 read 0 write 0 move left goto state 0
State 2 read 1 write 1 move left goto state 0
State 3 read 0 write 1 move left goto state 0
State 3 read 1 write 0 move left goto state 1
State 4 read 0 write 0 move left goto state 1
State 4 read 1 write 1 move left goto state 1
 
@GamrCorps what kind of animation
 
@LegionMammal978 challenge accepted
 
@HelkaHomba It's called dubstep
 
1:46 AM
@LegionMammal978 where is the termination?
 
@KennyLau Once it reaches the left end of the tape
 
@LegionMammal978 completely confused
can i give up
 
@KennyLau no
 
-1
Q: Random Text Generation

Michael SternI've come to appreciate challenges that are judged by the quality of output rather than the brevity of code, and thus throw down the following gauntlet -- In the language of your choice, write code that accepts a source text and generates a random imitation. This is a popularity contest in which...

 
mini-challenge: write a program/function that errors if and only if it is given a prime number.
 
1:52 AM
n->isprime(n)&&error()
 
@CᴏɴᴏʀO'Bʀɪᴇɴ PrimeQ@#&&1/0&
 
n->error()
Does it need to do something else when not given a prime?
 
@CᴏɴᴏʀO'Bʀɪᴇɴ That's rather problematic since 05AB1E doesn't actually "throw" errors.... it just keeps going when it runs into an error...
 
@quartata kehehe
 
@quartata then use a different language
 
1:54 AM
in Pyth: htP
 
It would have just been p\ in 05AB1E
 
@KennyLau how?
 
prime factorizes
returns second element
 
Ah.
Jolf: Έ?m{
Έrror if? isprime (m{)
I have a 9-byte J answer :3
 
1:58 AM
Jelly...
prevents all kinds of errors...
 
I particularly like incidental error challenges, as it complicates some golfing languages :3
 
there is not a single raise in jelly's source...
 
ohai "This script will install:"
^ found in Homebrew source code
 
@KennyLau in real life too
 
Julia        n->isprime(n)&&error()
Mathematica  PrimeQ@#&&1/0&
J            (p:*#:)&0
J            1&{@q:
Jolf         Έ?m{
Pyth         htP
 
2:01 AM
Pyth is still the king
 
if I made a 1-byte prime command :|
 
Wow, it is really difficult to get pl to throw an error. Damn Perl
 
every range in jelly's source code is with extra protection so as to not raise error...
jelly: ÆPNX (4 bytes)
 
how'd'ya manage that?
 
The function X raises an error if the argument is negative
that's almost the only function that can raise an error
the rest of the algorithm is elementary
 
2:04 AM
how does it raise if there are no raises to be found in the code?
 
ÆPNX      Main monadic link. Argument: n
ÆP        Tests if n is a prime.
    N     Negates it.
      X   black magic
@CᴏɴᴏʀO'Bʀɪᴇɴ range(1,0) is error
 
well not really
it's more complicated then that
 
by the way, link
 
2:06 AM
n=>[...Array(n-2)].map((_,i)=>i+2).every(x=>n%x)
 
oh ok
 
I think this is the shortest prime-tester in JS -- can you confirm @Downgoat?
 
  File "/usr/lib/python3.4/random.py", line 255, in choice
    raise IndexError('Cannot choose from an empty sequence')
range(1,0) is empty
X is random choice
 
Well Kenny, I tried transpiling your Pyth answer to Python
I'm not sure what I'm doing wrong but it's 276 bytes
def q(s):
 t=list;n=len;e=enumerate;z=t(t(map(int,t(m)))for m in s.split());d=t([0]*(max(map(n,z))-n(j))+j for j in z);x=['']*n(z)
 for i,a in e(d):
  for j,c in e(a):m=max(t(zip(*d))[j]);x[i]+="|"*(m-c+0**m+(j>0))+":8."[(c<2)|-(j<n(a)-1)]*c
 for r in zip(*x):print(*r,sep='')
 
2:07 AM
wat
n=>[...Array(n-2)].map((_,i)=>i+2).every(x=>n%x)&&t
 
@Sherlock9 lambda n:[x for x in range(1,n)if n/x*x==n][1]
 
@KennyLau Wrong number, Kenny :D
 
@Sherlock9 ?
 
JavaScript   n=>[...Array(n-2)].map((_,i)=>i+2).every(x=>n%x)&&t
Python       lambda n:[x for x in range(1,n)if n/x*x==n][1]
Julia        n->isprime(n)&&error()
Mathematica  PrimeQ@#&&1/0&
J            (p:*#:)&0
J            1&{@q:
Jolf         Έ?m{
Pyth         htP
wait
 
2:09 AM
I think the shortest in Pyke is Pth like the Pyth solution :/
Kinda makes me mad 05AB1E doesn't throw errors
 
@quartata what does y do in Pyke?
 
@KennyLau That code is not relevant to quipus
 
@KennyLau Nothing
Well, actually it throws an error
 
Pyth         htP
Jolf         Έ?m{
Jelly        ÆPNX
J            1&{@q:
J            (p:*#:)&0
Mathematica  PrimeQ@#&&1/0&
Julia        n->isprime(n)&&error()
Python       lambda n:[x for x in range(1,n)if n/x*x==n][1]
JavaScript   n=>[...Array(n-2)].map((_,i)=>i+2).every(x=>n%x)&&t
 
because it doesn't exist yet
 
2:10 AM
@KennyLau So either you're replying to the wrong person or that's an answer to the wrong question
 
is there a way to make it not throw error
 
no
 
@Sherlock9 what?
 
I suddenly posted in chat about quipus
Sorry for not clarifying
 
oh.........
 
2:11 AM
Ooh, I didn't try MATL
 
I thought my Pyth answer refers to htP
 
Yeah, sorry for the confusion
 
0**m?
 
You get a cookie if you do this in Seriously
 
I tend to start talking when my brain is already halfway through the conversation :P
 
2:13 AM
You take after your namesake.
 
@KennyLau So that when m is 0, we get 1, and 0 for all other m. Gets a "|" even when every number in that decimal place is a 0
@CᴏɴᴏʀO'Bʀɪᴇɴ Mostly the apparent scatterbrained-ness and not so much the "being really observant" bit
 
@Sherlock9 you can do it
 
Thanks :D
I should now observe the class that I'm in :P
 
@Sherlock9 I don't get it
is s a string?!
 
@KennyLau Yeah, it's the input string
 
2:16 AM
I don't use a string
that's why my solution is shorter
 
Oh no bleeping wonder @_@
Gosh darn it, why didn't I use a list earlier?
Oh, I don't currently have a decent way to split digits in Python
 
Huh. wilson's theorem is shortest in JS.
f=x=>x?x*f(x-1):1;n=>f(n-1)%n==n-1
Pyth         htP
Jolf         Έ?m{
Jelly        ÆPNX
J            1&{@q:
J            (p:*#:)&0
Mathematica  PrimeQ@#&&1/0&
Julia        n->isprime(n)&&error()
JavaScript   f=x=>x?x*f(x-1):1;g=n=>f(n-1)%n==n-1&&t
Python       lambda n:[x for x in range(1,n)if n/x*x==n][1]
JavaScript   n=>[...Array(n-2)].map((_,i)=>i+2).every(x=>n%x)&&t
 
nice @CᴏɴᴏʀO'Bʀɪᴇɴ
 
where's the error?
 
2:19 AM
&&t.
It short circuits if false, so leaves t unevaled, but evals it if true.
 
ok
 
Even better: f=x=>x?x*f(x-1):1;g=n=>f(n-1)%n-n+1||t
 
@CᴏɴᴏʀO'Bʀɪᴇɴ why is 01/ (prefix notation) a no-op in seriously...
how to raise an error in seriously...
 
@KennyLau you can't.
 
wtf...
 
2:25 AM
All errors are (Presumably) no-ops.
 
then what does this do
        except:
            if self.debug_mode:
                traceback.print_exc()
 
@EL'ENDIASTARMAN SHOW ME WEBSIIIIIIIIIIIIIIIIIIIIITE
 
NOT YET
 
OKAY
NICE JOB ON GETTING A JOB TASK THINGY
 
THANKS
Okay, that's enough all caps.
 
Alright Kenny, now it's up to 288 characters with a list
def p(s):
 e=enumerate;f=lambda x:f(x//10)+[x%10]if x else[];z=list(map(f,s));d=[[0]*(max(map(len,z))-len(j))+j for j in z];x=['']*len(z)
 for i,a in e(d):
  for j,c in e(a):m=max(list(zip(*d))[j]);x[i]+="|"*(m-c+0**m+(j>0))+":8."[(c<2)|-(j<len(a)-1)]*c
 for r in zip(*x):print(*r,sep='')
 
@CᴏɴᴏʀO'Bʀɪᴇɴ The terms in this sequence are the cumulative sums of distances from one prime to another. For example for the distance from the first to 26th prime, 2 to 101, the cumulative sum of distances is 99, always the last prime, here 101, minus 2.
 
Please excuse my jumping in at random again
 
2:32 AM
@Sherlock9 lambda n:map(int,`n`)
sorry for so many pings
 
I'm working in Python 3
No worries
 
I advise you to use string if string is shorter?
 
I have it lambda n:map(int,str(n))
 
you can't just translate an answer in Pyth to python and expect that it will be the shortest
Pyth is good at mapping
well python also
but what was your old approach?
 
@Sp3000 here's my code
def all_solutions():
    n = 7
    available_digits = set(range(n))

    def construct_grid(grid):
        if len(grid) == n**2:
            yield grid
        if len(grid) % n == 0:
            grid.append(len(grid)/n)
        position = len(grid)
        row = grid[(position/n)*n:]
        column = grid[position % n::n]
        remaining = available_digits.difference(row, column)
        for r in remaining:
            new_grid = grid[:]
            new_grid.append(r)
            for g in construct_grid(new_grid):
I'm really not sure what you are asking
 
2:35 AM
@KennyLau I haven't edited my answer yet, so you can look at it here: codegolf.stackexchange.com/a/67687/47581
This is the one using string
@KennyLau I'm just trying out your algorithm :D
 
chat mini challenge: starting at one, with n corresponding to the nth line: given n, output the nth term in this series:
 
I see
 
 2
 3  3
 5  5  5
 5  5  5  5
 7  7  7  7  7
 7  7  7  7  7  7
11 11 11 11 11 11 11
11 11 11 11 11 11 11 11
11 11 11 11 11 11 11 11 11
(n primes of the next prime)
 
but the algorithm basically builds a latin square by filling in the top and left, then, for each square, identifies available numbers, and picks one
 
Mostly because I'm bored in early morning class and this is a good way to stay awake
 
2:36 AM
@Sherlock9 Hi! It's almost midnight here, so there's a good chance you're somewhere generally below me, and vice versa. ^_^
 
then, it rotates each of the columns and rows to ensure that the square is rotation safe
 
@CᴏɴᴏʀO'Bʀɪᴇɴ *]fP_TQ
 
@NathanMerrill Well, for example, you don't include [[0,1,2,3],[2,0,3,1],[1,3,0,2],[3,2,1,0]], which is understandable since it's the same as the first one with two rows switched. But it's still a valid rotation-safe grid.
 
Pyth       *]fP_TQ
J          ]*4&p:
 
def p(s):
 e=enumerate;f=lambda x:f(x//10)+[x%10]if x else[];z=list(map(f,s));d=[[0]*(max(map(len,z))-len(j))+j for j in z];x=['']*len(z)
 for i,a in e(d):
  for j,c in e(a):m=max(list(zip(*d))[j]);x[i]+="|"*(m-c+0**m+(j>0))+":8."[(c<2)|-(j<len(a)-1)]*c
 for r in zip(*x):print(*r,sep='')
 
2:37 AM
So what I mean is I don't know what sort of assumptions you've made, e.g. excluding grids with the same columns/same rows/equivalent if you permute the numbers
 
@Sp3000 which is why I ensure that the left column is always [0,1,2,3]
 
@CᴏɴᴏʀO'Bʀɪᴇɴ ... below? ...
 
Point [0,N] and [N,0] are always the same symbol
 
@CᴏɴᴏʀO'Bʀɪᴇɴ Jelly, 3 bytes
 
@Sherlock9 yeah. earth position wise
 
whyyyyyy XD
"next prime, times"?
 
Ænx Main monadic link, argument:n
Æn  first prime strictly greater than n
  x repeat n times
 
@CᴏɴᴏʀO'Bʀɪᴇɴ Ah. I think the word you're looking for is east :D
 
@Sherlock9 doh I'm tired
 
oh
so it wouldn't work
 
2:40 AM
why not?
 
One more byte then
’Ænx
 
@NathanMerrill I see, so number of rotation-safe squares where the left column and top row are fixed.
 
I can't actually tell from your post, but do answers have to do the same?
 
Because 11 would give 13
 
2:40 AM
I wasn't sure whether that was a restriction or a property you were pointing out
 
@KennyLau it should
 
it removes a lot of duplicates
 
@CᴏɴᴏʀO'Bʀɪᴇɴ then add one byte to pyth then
*]fP_ThQ
 
# 279 bytes
def q(s):
 e=enumerate;z=list(map(lambda n:list(map(int,str(n))),s));d=[[0]*(max(map(len,z))-len(j))+j for j in z];x=['']*len(z)
 for i,a in e(d):
  for j,c in e(a):m=max(list(zip(*d))[j]);x[i]+="|"*(m-c+0**m+(j>0))+":8."[(c<2)|-(j<len(a)-1)]*c
 for r in zip(*x):print(*r,sep='')
 
2:42 AM
Pyth       *]fP_ThQ
J          ]#4&p:
Jelly      Ænx
Is that an x or a multiplication symbol?
 
latin letter x
 
@NathanMerrill But do answers have to do the same, is what I mean
If you were really trying to remove dupes as hard as you could, you wouldn't have 5906
 
@CᴏɴᴏʀO'Bʀɪᴇɴ I'm tired too. Midnight would put you either in Newfoundland or somewhere in South America according to timeanddate.com
 
2:44 AM
@Sherlock9 Well, more like quarted til 11
 
Or I could just remember where you live, but I haven't the brainpower left to retrieve
 
@CᴏɴᴏʀO'Bʀɪᴇɴ o__O so many there that look like they could be done better
 
Yeah, UTC-3
 
@Sp3000 those are all the submissions, even previous :3 which ones?
 
Oh DST. You're on the East Coast, aren't you?
 
2:45 AM
c'est vrai
 
@Sp3000 well, since answers only need to print a single grid, technically, I could have left that out, but I didn't
that said, there are some symmetries I missed (like rotation and reflection)
 
@CᴏɴᴏʀO'Bʀɪᴇɴ Python and Julia at least. Especially the latter, who even uses error()? o_O
 
but those are significantly harder to enforce without simply keeping a set of previous grids
 
54 mins ago, by Alex A.
n->isprime(n)&&error()
 
@NathanMerrill If that's a requirement of answers you should probably make that clearer, because to me it just looks like an observation on your part as opposed to part of the rules
 
2:46 AM
It is. I'll make it clearer
 
(although imo it'd make more sense to not have such a restriction)
 
I bolded the line :)
 
That doesn't help :/
It's the "A couple of things you'll notice:" that needs changing
 
@CᴏɴᴏʀO'Bʀɪᴇɴ Je ne parle pas français :P
 
not that line
If you use numbers, the top column and row must be 0,1,2,3,... If you use letters, then it must be A,B,C,D,....
 
2:48 AM
@Sherlock9 aw :|
 
I know my un to dix and that's about it
 
not even zero? :P
 
Well, I mean, do points 1. and 2. under "A couple of things you'll notice:" have to be implemented for submissions too?
 
non
 
2:49 AM
What're you guys talking about? (@Sp3000 and @NathanMerrill)
 
8
Q: Rotation-safe Latin squares

Nathan MerrillA Latin square is a square that has no repeated symbols in either the X or Y columns. For example: ABCD DABC CDAB BCDA is one such square. Notice how every column and row contains a permutation of the same 4 letters. However, our Latin square has a problem: If I were to rotate the seco...

 
@CᴏɴᴏʀO'Bʀɪᴇɴ zéro?
 
@Sp3000 that's what I meant by that line
 
@Sherlock9 idk
 
Eh, Google Translate :P
Back soon
 
2:51 AM
... right
 
I'm not sure how to make that sentence clearer
The top line and the right column must have 1,2,3,4...
 
Well I mean, I think it'd be better if it was said a bit more direct rather than "A couple of things you'll notice:", like "The output grid must have the following properties:"
 
I wasn't intending that portion of the spec to actually be the spec
just an introduction
see my edit?
 
@Maltysen oh ok I didn't know that was real syntax, that was just me expressing what I wanted in java terms. LOL
 
Hm... nevermind, don't worry
 
2:56 AM
hmm doesn't seem to work tho
 
0
Q: Calculate the Fermat Point of a Triangle

soktinpkThis is somewhat similar to The centers of a triangle, but with a different point. The Fermat Point is the point P in triangle ABC such that the value of AP + BP + CP is minimized. There are two cases: If there is an angle greater than 120 degrees, that vertex is the fermat point. Otherwise, dra...

 

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