« first day (1862 days earlier)      last day (2985 days later) » 

5:00 PM
But what were you actually doing there?
 
Anonymous
My first Java golf... God I hate this language
 
Anonymous
0
A: Print N Squared

MegoJava 8, 280 bytes interface A{static<T>void p(T o){System.out.print(o);}static void main(String[]a){long n=new Long(a[0]),l=a[0].length();for(long i=0;i<n;i++,p(a[0]));p("\n"+(n>1?a[0]:""));for(long j=2;j<n;j++,p(a[0])){for(long i=l*2;i<n*l;i++,p(' '));p(a[0]+"\n");}for(long i=1;i<n;i++)p(a[0]);...

 
What is a"XOROR" sequence?
 
5:05 PM
17
Q: The XOROR sequence

Cᴏɴᴏʀ O'BʀɪᴇɴCellular Automata are truly fascinating. The ones that are usually talked about are the binary ones, i.e., the ones representable by a number. However, those, in my opinion, have been done to death. Ternary CAs are more interesting, but we have all of ASCII to consider! What fun could that be! I...

 
> That's one hell of a configuration
 
Anonymous
@LegionMammal978 flags as bad
2
 
If alpha was not invented, the alphabet would now be called Betagamm.
 
5:11 PM
Gammadelt
 
Deltaepsilo
 
Zetaet
 
I think we got it...
 
XD
Would that be a good challenge?
 
5:13 PM
@CᴏɴᴏʀO'Bʀɪᴇɴ Chidelt
@CᴏɴᴏʀO'Bʀɪᴇɴ What challenge?
 
0
Q: Making a coin fair

Don MuesliYou have a coin that produces 0 or 1. But you suspect the coin may be biased, meaning that the probability of 0 (or 1) is not necessarily 1/2. A well known procedure to "transform" a biased coin into a fair coin (i.e. to obtain equally likely results), as proposed by von Neumann, is as follows....

 
@CᴏɴᴏʀO'Bʀɪᴇɴ , perhaps?
 
Output all the possible alphabets if the letter A had not been invented
@LegionMammal978 Yeah, that'd make sense.
 
5:27 PM
debugging
user image
3
(i stole that from reddit i'm not actually funny)
 
@undergroundmonorail good memers copy dank memers steal
4
 
Ai that sentence got as many stars as the actual meme itself
 
@isaacg arrghhh, why must the variable for f be T? I could save a byte if only I could use the number 10 in my filter (╯°□°)╯︵ ┻━┻
 
Anonymous
Hmm... I need to map [1,i,1+i] -> [1,1,0]... Any ideas? (i is sqrt(-1))
 
Which language?
 
5:32 PM
^
 
Anonymous
Specifically Seriously, but any mathematical expression will do
 
Anonymous
Since math stuff is super easy/short in Seriously
 
@Mego abs of each value squared?
 
dad gomnit, @Dennis...
 
link?
 
Anonymous
5:34 PM
@EasterlyIrk That gets me [1,1,2], which is easy enough to work with. Thanks!
 
welcome
What challenge?
or feature?
 
Anonymous
6
Q: Making a coin fair

Don MuesliYou have a coin that produces 0 or 1. But you suspect the coin may be biased, meaning that the probability of 0 (or 1) is not necessarily 1/2. A well known procedure to "transform" a biased coin into a fair coin (i.e. to obtain equally likely results), as proposed by von Neumann, is as follows....

 
@Doorknob you can
use ;
 
Anonymous
The only sane way I have of getting pairs of values out of a list in Seriously is with Ç, which pops pairs (a,b) and pushes a+bi
 
@mego How about taking each thing to the fourth root, then keeping only positive values? [1,i,1+i] => [1,1,-4]
 
5:36 PM
@Maltysen ah, thanks
 
@Mego You realy need a better one.
 
Anonymous
So [1,2,3,4]Ç -> [1+2i,3+4i]
 
alphabet betagamm gammadelt deltaepsilo epsilonzet zetaet etathet thetaiot iotakapp kappalambd lambdam mun nux xiomicro omicronp pirh rhosigm sigmata tauupsilo upsilonph phich chips psiomeg omegaalph
 
okai
 
5:36 PM
@LegionMammal978
> chips
 
@CᴏɴᴏʀO'Bʀɪᴇɴ or how about instead of print all of them, print the one after a certain greek letter
like given gamma, print deltaepsilo
 
Why not given delta, print deltaepsilo?
 
Anonymous
@CᴏɴᴏʀO'Bʀɪᴇɴ That would end up being longer than Riker's solution... ªªsu
 
@CᴏɴᴏʀO'Bʀɪᴇɴ or that
 
Anonymous
5:38 PM
Whereas Riker's is AªDY oh wait I'm an idiot they're both 4 bytes
 
roflmao
 
@CᴏɴᴏʀO'Bʀɪᴇɴ actually the premise kinda was that there is no "gamma" so its called deltaepsilo
 
@Maltysen Oh, I like that better.
 
@Mego FGITW use mine pls.
 
5:39 PM
@EasterlyIrk Mine's more mathematically elegant.
 
Anonymous
@EasterlyIrk Already am :P unless floating point stupidity makes me need to use Conor's. Though with Conor's there's probably more floating point stupidity
 
@Mego Who iz zis 'Riker'? I is grump eastern cat?
@CᴏɴᴏʀO'Bʀɪᴇɴ Nope. Mine is simpler.
 
Anonymous
@CᴏɴᴏʀO'Bʀɪᴇɴ Needing to use sgn != mathematical elegance
 
Note to self: Nethack cats are OP.
 
@Mego That's true :(
I like the ^4 bit very much though
 
5:40 PM
You mean ^1/4?
 
YOu said root 4...
 
> taking each thing to the fourth root
 
5 mins ago, by Cᴏɴᴏʀ O'Bʀɪᴇɴ
@mego How about taking each thing to the fourth root, then keeping only positive values? [1,i,1+i] => [1,1,-4]
 
5:41 PM
ninja'ed
 
You knew what I meant.
 
@CᴏɴᴏʀO'Bʀɪᴇɴ yup
@CᴏɴᴏʀO'Bʀɪᴇɴ nope
 
welp, that done screwed up
 
Oh well. Type it into w|a
 
5:42 PM
That is not the right link.
 
[1, i, 1 + i] ^ 1/4
versus
[1, i, 1 + i] ^ 4
 
Anonymous
Ruh-roh
 
Should be ^ (1/4)
 
What?
 
Anonymous
Apparently Ç is broken Q_Q
 
5:44 PM
NOOOOOOÔÖÒÓØŌÕ
 
@LegionMammal978 I don't think so.
 
@Mego what does Q_Q do and how did Ç break it?
3
 
Order of operations
Exponentiation comes before division
 
oh yeah
he doesn't mean the right exponent, he means that is just /4
 
5:44 PM
@LegionMammal978 Blame w|a.
 
Anonymous
@Maltysen Q_Q is a crying face
 
that would make sense…
 
Yep.
:_:
spoder face
︙_︙
6-eyed something face
 
bug-eyed Cᴏɴᴏʀ face
 
5:49 PM
ಠ_o
 
lazy eyed disapproving Cᴏɴᴏʀ face
 
*half-disapproving
 
wow Conor makes a lot of faces
 
Cotton-eyed Joe look of disapproval.
 
@Maltysen Yeah, probably.
Emotes are my punctuation.
 
5:53 PM
119 bytes:
StringRiffle[ToLowerCase[#<>Most@#2]&@@@Partition[Characters@StringSplit[SpokenString@Alphabet@"Greek"][[4;;;;3]],2,1]]
A good chunk of it is just formatting
 
Probably second place.
Jolf, 29 bytes: +pzZΑpΩpZiZhpzZΑpΩpZpzZΑpΩpZi
 
@CᴏɴᴏʀO'Bʀɪᴇɴ Just outputs alphabet for me
 
@LegionMammal978 Try it in a few minutes, sometimes the website doesn't like bug fixes.
 
@Maltysen He made a language called Emoticon. Go figure.
 
But you just added that, didn't you :p
 
5:59 PM
@CᴏɴᴏʀO'Bʀɪᴇɴ You never fixed Jolf on Chrome
 
@LegionMammal978 No, actually. It was a bugfix related to an earlier attempt.
@AquaTart What's wrong, again?
 
Everything.
 
I can't very well fix it if I don't know the problem, can I?
 
2 mins ago, by Aqua Tart
Everything.
 
Anonymous
The problem seems to be related to JavaScript. Namely, the fact that you're using it.
 
Open it up in Chrome, you'll see the errors.
 
@Mego I wonder if you actually think you are amusing in some way.
 
@Mego what do you want him to use instead? Flash? Java?
 
jolf.js:500 Uncaught SyntaxError: missing ) after argument list
conorobrien-foxx.github.io/:65 Uncaught ReferenceError: isValidISO88597 is not defined
Running yields Jolf not defined
 
Anonymous
6:09 PM
@CᴏɴᴏʀO'Bʀɪᴇɴ No need to get rude because I made a joke
 
Anonymous
 
Oh yeah
Chorme doesn't support arrow functions
 
No browser does except Firefox...
 
I don't think I use arrow functions >_>
 
6:11 PM
You do
		s = s.match(/.../g).map(y=>("0000000000"+(+y).toString(2)).slice(-10)).join("");
 
it says chrome supports them
 
Anonymous
@CᴏɴᴏʀO'Bʀɪᴇɴ If you think "No need to get rude because I made a joke" is rude, I'm sorry you feel that way.
 
		return s.match(/.{1,8}/g).map(y=>String.fromCharCode(parseInt(y,2))).join("");
 
Oh, hm.
That is weird.
 
@CᴏɴᴏʀO'Bʀɪᴇɴ just get an es6-es5 compiler
 
Anonymous
6:13 PM
Or just rewrite the arrow function as an actual function
 
████@████████:~$ curl rawgit.com/ConorOBrien-Foxx/Jolf/master/src/jolf.js 2>&-|grep -n "=>"
500:		s = s.match(/.../g).map(y=>("0000000000"+(+y).toString(2)).slice(-10)).join("");
502:		return s.match(/.{1,8}/g).map(y=>String.fromCharCode(parseInt(y,2))).join("");
506:		s = s.split("").map(t=>("00000000"+t.charCodeAt().toString(2)).slice(-8)).join("");
508:		return s.match(/.{1,10}/g).map(x=>parseInt(x,2)).join("");
1313:		eval("x=>x");
1331:				if(t.every((y,i)=>!Math.τ(y,[a,b,c][i])))
1342:		eval("Math.γ.p=function*pythagTriple(){var m=2,n=1,t=[],a,b,c;while(true){a=m*m-n*n,b=2*m*n
 
^^ what I'm doing
I've already done it.
 
Anonymous
Trying to compile from ES6 to ES5 to solve one small issue with an arrow function is the very definition of overkill
 
> matt@basement
rofl
 
Those arrow functions work in Chrome though.
 
6:14 PM
^
 
Maybe they shouldn't be used, just to be safe
 
^ what I'm doing
 
Or in case someone uses... shudder... I... E...
 
Just saying that, if Jolf is broken in Chrome (and it is), removing arrow functions won't fix it.
 
True, but it removes one of the errors
That image ended up in my Chrome cache somehow
Probably too much agar.io
 
6:22 PM
@LegionMammal978 clearly, the NSA put it there
 
^
 
Well, I just emptied it from my Trash
 
Awww, but now how will creepy cartoon world leaders stare at you?
 
We should all change our avatars to those things
 
6:24 PM
@Geobits Through the unallocated sections of my hard drive
 
For now...
 
A user was just removed >_>
 
@Doorknob does my Retina solution not work in sed?
 
6:41 PM
@LegionMammal978 NSA can put it back, you know.
 
@Optimizer They must have mind-controlled me, otherwise I would've shredded it
 
Yeah, we they can put it back.
 
@CᴏɴᴏʀO'Bʀɪᴇɴ NSA would never do such mistake, so stop pretending
 
@Optimizer Or that's what they want you to think...
 
@CᴏɴᴏʀO'Bʀɪᴇɴ pretty sure
 
6:44 PM
@Optimizer But how do you know? ;)
 
I passed I Go Best in rep :D
 
@CᴏɴᴏʀO'Bʀɪᴇɴ this is to my reply?
 
@Optimizer nope
 
@LegionMammal978 I have half a screen shot of Wikipedia's Yingluck page in my minecraft textures. Go figure.
 
6:47 PM
@Vihan That's what I get for not posting much in the last few months :(
 
@Geobits years*
@EasterlyIrk N. S. A.
 
I know.
 
@Optimizer "That's what I years for not..." doesn't make sense though :/
 
Year's what I get for not posting much in the last years months :(
better?
 
A bit.
 
6:50 PM
Year's year year year year year year year year year year years years year(
what about now?
 
You broke the sad face :o

TIL

1 min ago, 36 seconds total – 6 messages, 3 users, 4 stars

Bookmarked 8 secs ago by Geobits

 
1
Q: set intersection of two lists

helloworld922Your goal is to compute the set intersection of two lists of integers. The intersection is defined as the un-ordered set of integers found at least once in both input list. Input The input may be in any format desired (function parameter, stdio, etc.), and consists of two lists of integers. You...

 
7:06 PM
@Liam \o/
 
7:20 PM
@Geobits Did you make a Java SE chatbot?
 
@HelkaHomba No, I'm abusing SE-Chatbot in python.
 
shaved a decent bit of time off there
 
@PhiNotPi The Screeps standalone is $8 if you support during their Indiegogo campaign. This allows hosting your own server. That's worth it IMHO. Sure, the worlds thing online is a monthly cost, but I'd rather play on a private server with friends anyway. Or, you can pay $200 for infinite MMO time.
https://www.indiegogo.com/projects/open-source-sandbox-strategy-game-for-programmers--3#/
 
@Liam Not bad, but (again) not as significant as I expected. The sieve barely fits in your L1 cache. I should probably make it smaller.
I'll try that with the next update. While I got you here: Did you get a chance to test for those other capabilities?
 
yeah let me find it in the transcript
Only __builtin_ia32_bextr_u64(arg, 257) works
The others lead to compile-time errors "undefined reference to _____"
 
7:34 PM
Not even lzcnt? That works even on my machine...
And bextr doesn't...
Did you try __lzcnt64 or the one from the first revision?
 
[lnoronha@localhost Desktop]$ gcc -mlzcnt -mbmi -mbmi2 test.c
/tmp/ccaVwwuy.o: In function `main':
test.c:(.text+0x3b): undefined reference to `_bzhi_u64'
test.c:(.text+0x5d): undefined reference to `__builtin_ia32_lzcnt_u64'
collect2: error: ld returned 1 exit status
When I remove those two, It compiles fine
oh wait
I'm missing an include somewhere
 
No, __builtin_ia32_lzcnt_u64 doesn't work for me either. __lzcnt64 does.
 
What was the include you added?
 
14 hours ago, by Dennis
#include <stdio.h>
#include <stdlib.h>
#include <x86intrin.h>

int main(int argc, char *argv[])
{
        long arg = atol(argv[1]);

        printf("%llu %llu %llu\n",
                __lzcnt64(arg),
                __builtin_ia32_bextr_u64(arg, 257),
                _bzhi_u64(arg, 63)
        );

        return 0;
}
The last one shouldn't work, but the other two should. lzcnt is part of SSE4.
 
Yup
 
7:37 PM
It does?
 
last one is illegal instruction at runtime
the other two work
 
\o/
Thanks for checking.
 
No problem. Sorry it endd up taking so long
 
When I get my hands on my laptop, I'll get working. Left it at work...
 
Does anyone know how to get in answer's link in SEDE?
 
7:46 PM
Something like SELECT <whatever> as [Post Link]
 
how do I make a string in SQL?
 
Yes, you CAN validate all URIs using a regex. fucking plebs https://t.co/LAizfwZAip
 
You need a spinning wheel and some cotton fibers I think.
 
@Vihan you get male string and female string together and leave them in a room for a night
 
7:51 PM
@Geobits Geobits is back.
 
For now.
 
what is the difference between a varchar and an nvarchar nevermind, I googled it
 
Can anyone help me figure out why this doesn't work?
SELECT
  SELECT Title FROM Posts WHERE Id = ParentId, -- Why does this not work
  LEN(Body) as AnswerLength,
  Score,
  'http://stackoverflow.com/a/' + CAST(Id as varchar) as Link
FROM Posts
WHERE OwnerUserId = ##UserId## and PostTypeId = 2
ORDER BY AnswerLength DESC
 
I could be wrong, but isn't PostTypeId=2 only for answers? If so, I don't think their Id would match ParentId (which I think is the question).
 
7:59 PM
@Geobits yeah, that's why I'm trying to do another SELECT among posts to find the parent post (the question) and get it's title
 
Oh I see what you're trying to do I think. Maybe.
 
I see what you did there
 
@Vihan Oh. Questions (PostTypeId=1) don't have a ParentId.
You'd need to grab the answer's parentid and use that.
 
@Geobits Then how do I refer to an the parent SELECT's ParentId?
nevermind I figured it out
 
thathathathathathathathat
tha_tha
 
Another impersonator.
 
What's with all the ಠ_ಠ?
 
All I was doing was testing something....
 
All copycats.
 
I needed to see if I could login via SO and chat in SE rooms
 
8:10 PM
@AquaTart Don't worry about ಠ_ಠ, he's just grumpy.
 
OK.
 
@Geobits s/grumpy/disapproving/
 
Nah, I purposely avoided that one :P
 
@Vihan surprisingly mine is not Showcase your Language
 
uh oh, the query only works for SO
 
8:12 PM
uh oh
do you know how to switch SE subsite?
there is a text box there
 
Yea, then answer links are broken.
 
@MartinBüttner No points for guessing mine :P
 
@Sp3000 yay, would have guessed correctly, 0 points for me! :)
 
:P
I thought the limit was 30k though? Yours is 40k+
 
My longest looks like 17k here.
 
8:15 PM
uh what
 
Although I'm pretty sure mine was closer to 30k than what's listed there too
 
hm, it's only 23k characters actually
oh
is it counting the HTML body?
 
Looks like it. So lots of markdown would inflate it.
My longest starts with <h2>Rifter</h2> <p>This bot takes different... in the Body field, and that's what's being measured.
 
@MartinBüttner no, and I have no idea why
 
8:22 PM
Oh, hmm. That just links to the question tho.
 
Yea, the question thing was a big red herring :)
This way it's site-agnostic, too.
 
D: it still doesn't link directly to the answer
 
It does for me.
The hover-link isn't the full target for some reason, but it goes to answers when I click.
 
that version supports questions too
 
8:32 PM
huh, I would have thought Lab Rat Race would be my longest question
 
I thought Codemon would be mine, but it's in second.
 
Does anyone know how to do a regex replace in sql?
I am trying to replace <pre>[\S\s]+?<\/pre> with nothing
 
Oh right... Codemon's controller isn't pasted into the post, that explains it.
 
Longest post for me is Spacewar!, which totally makes sense. Second longest is Calculate Phi (not Pi)....because of the test cases.
 
I think I need to scroll pretty far down for mine
Or just sort by type. Why not.
 
8:37 PM
You need to put your user ID in.
Unless you mean you'd have to scroll pretty far for questions as opposed to answers.
 
I mean - all my questions are sub 5k length :P
 
ah, lol
 
You need to write KotHs then. It's the fastest way to boost that stat >_>
 
and it's a very important stat as well
 
Nah, I'll just post a really simple code-golf with 2000 test cases
 
chat challenge: what's the largest (HTML) body you can create within the 30k (Markdown) limit
 
Oh god. And you want answers in here?
 
0
Q: Roatate every row and column in a matrix

DenkerAffeThe Challenge Given a n x n matrix of integers with n >= 2 1 2 4 5 and a list of integers with exactly 2nelements [1,2,-3,-1] output the rotated matrix. This matrix is contructed in the following way: Take the first integer in the list and rotate the first row to the right by this valu...

 
<body style="width:10000000000px"> ...
 
Make a long link tagged [1] and put [1] [1] [1] everywhere?
 
8:42 PM
Like 20k long? I like it.
 
 
I don't think it does.
 
Only decreased Calculate Phi (not Pi) by ~600-700. Out of 7,000+. That doesn't sound right.
 
My longest (what doesn't kill me, 24k) only went down about 40 in length in the new one. It's got multiple long code blocks.
 
:/ weird. maybe I have to remove the <pre><code>
 
8:44 PM
Throwing out code blocks puts showcase as 1st, I'm guessing ditto for Martin
(Funnily enough, it's the other showcase that's first)
 
Also, I just realized that mine has the leaderboard snippet in it, which drastically inflates the length of the post.
 
@Sp3000 easily
 
@El'endiaStarman Yea, most of my longest have koth or challenge controllers in them.
Except Codemon. That one's spec is just too damn long.
 
@MartinBüttner Another possibility: - \n\n repeating. Should produce <ul><li></li></ul> for each instance. feersum's idea will probably win though.
 
9:00 PM
0
Q: Diagram of a leaper

DoorknobGiven an input of a pair of nonnegative integers describing a leaper in chess, output a diagram of the squares to which the leaper can move. From Wikipedia's description: An (m,n)-leaper is a piece that moves by a fixed type of vector between its start square and its arrival square. One of...

 
9:11 PM
I hope someone will sugest something for my Mathematica answers since I know they are terrible...
 
they look pretty solid
when did you get Mathematica?
 
I got an R. Pi a while ago
 
ah, nice
 
Just recently I started with Mathematica
 
9:34 PM
in PPCG Minecraft Server Chat Relay, 2 mins ago, by Chat Relay
<VTCAKAVSMoACE> I'm literally watching my wheat grow.
<VTCAKAVSMoACE> I use time so effectively. <3
:P
 
I'm reading about someone watching wheat grow.
 
I decided to redo that circle fractal with the unit square today:
to my disappointment, the curve through the corners is not described by any 1/x^k
I also tried looking into what the map actually does to the complex plane... here is how it transforms a rectangular patch:
 
@Doorknob You don't need to keep posting challenges. We already graduated. :P
 
@El'endiaStarman ;)
 
It's a new year resolution :P
afaik
 

« first day (1862 days earlier)      last day (2985 days later) »