« first day (1895 days earlier)      last day (2949 days later) » 

7:00 PM
The chat moved as I tried to star.
Then I realized it.
 
@El'endiaStarman Interesting
 
ugh.. just coz dennis hates it ? :'(
 
No.
Because I don't think it was star worthy.
Fine starred.
 
I changed the types of the numbers to unsigned longs and they still don't work????
 
> the numbers
 
7:02 PM
Why are you even using C.
 
@EᴀsᴛᴇʀʟʏIʀᴋ To relearn it, I presume.
 
^
 
to CLearn
 
For what, though, I don't know exactly.
 
to go to classes again?
 
7:03 PM
@quartata OK, I'll bite. For which input?
 
No.
@Dennis It prints 0 for any prime greater than 13
 
And on what OS?
 
#include <stdio.h>
#include <stdlib.h>

int main(void) {
  char* input = 0;
  size_t size = 0;
  getline(&input, &size, stdin);
  unsigned long num = atoi(input);
  printf("%d\n", num);
  if(num > 1) {
    unsigned long factorial = 1;
    for(int i = 1; i < num; i++) {
      factorial *= i;
    }
    printf("%d\n", (factorial + 1) % num == 0);
  } else {
    printf("0\n");
  }
  free(input);
  return 0;
}
@Dennis linux
although right now I'm on an old computer
 
32 bits old?
 
Uh maybe
Lemme see
 
7:04 PM
long is bad practice anyway. Include stdint.h and use uint64_t.
 
Ah, good point.
arch says i686 so I guess it's 32 bit
Changed to uint64_t and it works.
So it was using 32 bit longs?
 
\o/
@quartata Yes.
 
Well that's dumb
 
All integer types except char only have a minimum width.
 
What does the arch say?
 
7:08 PM
No clue. I use openSUSE.
 
Wow, C isn't quite as nasty as I thought.
 
@CᴏɴᴏʀO'Bʀɪᴇɴ Tried and failed to think of a witty response.
 
@CᴏɴᴏʀO'Bʀɪᴇɴ Architecture. It's the same as uname -m
 
@quartata pretended he didn't get the joke.
 
@El'endiaStarman At least you tried :P
 
7:08 PM
I got the joke.
I just gave a serious response.
 
...which is as clear as mud.
 
@CᴏɴᴏʀO'Bʀɪᴇɴ finished with a blackboard bold keyboard layout, testing and uploading
 
Because I wasn't sure if the joke was intentional
 
@EᴀsᴛᴇʀʟʏIʀᴋ :D
 
@quartata Never said you didn't.
 
7:09 PM
@CᴏɴᴏʀO'Bʀɪᴇɴ nvm, will be a while.
 
Mar 1 at 2:00, by Alex A.
Jan 12 at 22:56, by orlp
@CᴏɴᴏʀO'Bʀɪᴇɴ CONOR reveals himself to be the dank memer we've always wanted
@EᴀsᴛᴇʀʟʏIʀᴋ o
I'm gonna go back to my native environment in ~5 minutes
 
I need to restart after each one, and not doing that until finished the other font.
 
@Dennis mod abuse eleven
 
@CᴏɴᴏʀO'Bʀɪᴇɴ what was the other one? Not blackboard, the one @flawr tried.
 
@EᴀsᴛᴇʀʟʏIʀᴋ fraktur
 
7:10 PM
So, what do you do in C when you want arbitrary precision numbers?
I remember vaguely some library
 
@CᴏɴᴏʀO'Bʀɪᴇɴ thx
 
gmp was it?
 
\o/ added strings to Dyia!
 
@quartata idk
dno't know c
@CᴏɴᴏʀO'Bʀɪᴇɴ found it, working on the layout now.
Seriously, you should use a mac/linux distro.
But why not?
 
@EᴀsᴛᴇʀʟʏIʀᴋ good luck :) there's also fraktur and bb numbers iirc
@EᴀsᴛᴇʀʟʏIʀᴋ Was that directed to me in addition to the previous message?
 
7:13 PM
Can you do something like &((size_t) 0)?
 
@CᴏɴᴏʀO'Bʀɪᴇɴ yes.
crap think i killed the blackboard bold. :(
 
@EᴀsᴛᴇʀʟʏIʀᴋ I used mac once, but it was terrible and once I realized there was Windows with a decent sane right click I left.
 
I should probably be asking these questions in SO chat
@CᴏɴᴏʀO'Bʀɪᴇɴ Use a Linux distro
 
a couple of weeks ago or so someone posted a Sci-Fi video about upload of mind after death to some sort of AI
anyone have that link?
 
@El'endiaStarman was that you?
@HelkaHomba ^^?
 
7:16 PM
@quartata I want to use my computer instead of fighting with it
I g2g anyhow
 
@CᴏɴᴏʀO'Bʀɪᴇɴ Most modern Linux distros are actually very user-friendly, much more so than Windows.
Learn a bit of bash and try Ubuntu. I think you'll be pleasantly surprised.
 
.oO(By Ubuntu? I doubt it.)
 
Linux Mint then.
That's pretty user friendly.
 
So I've heard. I never used Mint.
 
I distinctly remember you uploading a screenshot of you using Cinnamon a while back
 
7:23 PM
@EᴀsᴛᴇʀʟʏIʀᴋ Probably.
 
See, people say that, and then I spend a week troubleshooting why my audio over HDMI is staticy, or why I can't seem to manage more than a day of uptime on my media server.
 
@CᴏɴᴏʀO'Bʀɪᴇɴ bai
 
Beats the problems you get using Windows
 
Damn, Grime has a bug.
 
7:24 PM
@quartata I don't think that happened.
 
@DigitalTrauma Looking through my subscriptions now.
 
I used to spend so much time fiddling with windows to get it to do what I wanted it to do. Over the years I've migrated towards Linux (mostly ubuntu) and OSX. The fact is I just don't have to spend so many frustrating hours trying to fix something that shouldn't have broken in the first place.
 
@DigitalTrauma Oh wait, that wasn't me, but I know what you're talking about.
 
Sure OSX and Linux have their problems, but they just seem to be so much easier to deal with
 
Wow, I forgot how slow using Wilson's Theorem was.
Maybe I should challenge myself to implement a good primality test
 
7:28 PM
I dunno, I almost never have problems with Windows 10.
 
@Morgan'Venti'Thrappuccino I find that extremely hard to believe
 
Other than once when my computer gave up the ghost and made me reinstall the OS.
 
I still dualboot ubuntu. elementary OS to be precise.
 
Every time I use a Windows computer I find myself having to do a bunch of bullshit
 
7:28 PM
@quartata I use it at home and work and I honestly can't remember the last time I had something break on me.
 
@Morgan'Venti'Thrappuccino I haven't tried windows 10. So far no compelling reason has come up for me to try it ;-)
 
@Morgan'Venti'Thrappuccino ok
 
@quartata Trial division is probably a better primality test. :P
 
@El'endiaStarman It is, actually.
Wilson's is O(n) and trial division up to sqrt(n) is O(sqrt(n))
 
My dream OS would be archlinux with the FreeBSD kernel and Pantheon as the desktop environment.
 
7:30 PM
I definitely had my share of issues with 8.1 and earlier, but 10s been really good.
Especially with it getting Bash later this summer.
 
I really like 10. It's a huge improvement over 8.
 
@quartata I haven't really had problems with Windows 10 either, except for the random restarts-from-hibernations, but I just "fixed" that by sleeping my computer instead.
 
@DrGreenEggsandHamDJ So is a kick in the stomach.
 
@Dennis shots fired
 
True, but 10 is also an improvement over a kick in the stomach.
 
7:31 PM
@quartata Think about the Windows family what you want, but Windows 8 is objectively crap.
3
 
Oh yeah, 8 was terrible.
The real marker is that 10 is better than 7.
 
hides in corner while running 8
 
@DrGreenEggsandHamDJ Why isn't Windows 2000 on the list
 
I thought that windows ME is windows 2000.
 
No.
 
@quartata Windows ME in Windows 2000 ==> True
 
Windows 2000 is the actual good one
 
(M)illenial (E)dition.
 
7:34 PM
@Sp3000 finds and has compassion and gives OS X 10.11 .iso
 
lol no
 
Windows 2000 was the last version of Windows I ever used. I may be looking at it through nostalgia googles but it was ok
 
installs anyway on @Sp3000's computer
 
I'll stick with Linux for the other option :P
 
@CᴏɴᴏʀO'Bʀɪᴇɴ almost finished with both layouts.
brb rebooting
 
7:35 PM
@DrGreenEggsandHamDJ Truth.
 
@EᴀsᴛᴇʀʟʏIʀᴋ Are you a an apple guy?
 
@DrGreenEggsandHamDJ Too bad they skipped Windows 9, which would have been :)
 
So if you hate windows 10 so bad, which OS do you prefer?
 
@Dennis The download link for the first few Windows 10 Technical Previews actually queried a server script that said "Win9".
 
Still not sure why they skipped the 9. The whole versioning is a bit ridiculous...
 
7:42 PM
testing
dangitfail
ᴀsᴅ
 
@Dennis not as ridiculous as firefox
 
ᴀᴡᴡᴡ.......
 
@CᴏɴᴏʀO'Bʀɪᴇɴ sᴇᴛʙᴀᴄᴋ, ᴡɪʟʟ ᴛᴀᴋᴇ ᴀɴᴏᴛʜᴇʀ ʜᴏᴜʀ.....
 
@Dennis It's supposedly that old software would do if OS_NAME[0] == '9': stuff.
Who knows, though.
 
7:43 PM
@aditsu The only version of a browser I have to know about is the lastest...
 
Maybe it's because of OS X?
 
Anonymous
@Dennis Two reasons: 1) what Morgan said, and 2) because 7 8 9
 
@Dennis I remember something, unsure of it's veracity, about how they wanted to name it "Windows 1" to fit with "XBox One", but Windows 1 already exists, so they just tacked a 0 on the end.
 
@Morgan'Venti'Thrappuccino I know many program that do this, but I don't think that this was the (only) reason.
 
I honestly still think it's partially so that it doesn't sound like they're versions behind OS X.
 
Anonymous
7:45 PM
They should've named it Windows X to simultaneously piss off Mac and Linux fanboys
4
 
Why was vista afraid of seven?
Because 7 8 10.
 
@Mego Why would that piss off Linux users?
 
@Mego "Windows X Server". Imagine the butthurt.
 
Anonymous
@Dennis Windows X -> X Windows
 
Anonymous
7:46 PM
Ooh, and name the next update Windows X.11, to piss them off more
 
they should hurry up and replace it with wayland :p
 
Or anything, really.
 
Oooh, that would have even made me angry.
 
I eventually just googled it and it was the second result.
Coulda saved half an hour of trying to find the right SE chat search query...
 
Anonymous
Hey @Dennis, any chance you could add Seriously v2 to TIO (separate from Seriously v1) in a few days, once I get it release-ready?
 
7:48 PM
Sure. Of course.
 
Anonymous
@El'endiaStarman The right SE chat search query is always Google
 
Oh, it was Nathan Merrill. link
@Mego I tried that, actually. site:chat.stackexchange.com .... Wasn't very good, actually.
 
Anonymous
v2 needs just a few final touches to be ready for release
 
Anonymous
I'm most proud of the optional implicit input
 
Wait a minute, that link is from July last year. That doesn't make sense.
 
7:50 PM
I think PPCG probably has the least activity on the main site (in questions per day) and the most activity in chat.
 
@El'endiaStarman Thanks! What was your google query? I tried several things with no luck
 
Should we ask for the golfing of this code (scroll down) in a question?
 
@DigitalTrauma youtube upload to ai after death
 
@El'endiaStarman ha ha I tried upload to ai after death in the youtube search with no luck
 
Seriously, should we golf this?
 
7:54 PM
No.
 
Anonymous
 
Anonymous
The oracle has spoken
 
All hail the oracle
 
The oracle has told us: Start golfing NOW!
 
@Mego hahahahaha
how does that work
 
Same link?
 
That looks fun.
 
@CoolestVeto That's incredible.
 
> wompwomp
 
7:58 PM
has learned the secret to gaining stars
EVERYBODY LOVES DOGGOS
 
Anonymous
@quartata It's essentially the same thing as 0w1g1hs, which is sgn(hypot(1,gcd(full_factorize(0),1)))
 
In other news, I just watched a YouTube video in 4K for the first time in my life.
I didn't notice any difference at all
@Mego Ah, interesting.
 
@quartata Do you have a 4K screen?
 
@Dennis No, that's probably part of the problem.
 
@Mego These words hurt my mind.
 
Anonymous
8:00 PM
And for some reason gcd(1,[]) is 1
 
Anonymous
Which totally makes sense
 
What is sgn?
 
Totally.
 
Anonymous
Signum
 
8:01 PM
@ZachGates How do you make replies that don't use the username?
 
Anonymous
sgn=lambda x:1 if x>0 else -1 if x<0 else 0
 
@wizzwizz4 It formats like that with quotes.
 
Anonymous
AKA the derivative of the absolute value function, with the discontinuity at x=0 filled with 0
 
:REPLY_ID > message_text
 
lambda t:(t>0)-(t<0)
Golfed.
 
Anonymous
8:02 PM
I wasn't trying to golf it, I was trying to explain it :P
 
Instinct. Sorry.
(Add some whitespace and that's how I actually write code.)
 
> Does this work?
 
lambda t:cmp(t,0) :P
 
Anonymous
Also lambda x:abs(x)/(x|1) works too
 
@Sp3000 Does Python not have <=>?
 
Anonymous
8:03 PM
(but isn't shorter)
 
> YAAAAAY! This reply doesn't include my username!
 
Anonymous
@Sp3000 Doesn't work in py3, right?
 
It's got <=, >=, <> but not <=>
Yeah cmp is Py 2
 
@Sp3000 Hm.
You can do ->t{t<=>0} in Ruby
 
Anonymous
8:05 PM
>>> from fractions import gcd
>>> gcd(1,[])
1
 
Anonymous
Python you're weird
 
That seems normal to me. [] is like 0.
 
>>> from math import gcd
>>> gcd(1,[])
Traceback (most recent call last):
  File "<pyshell#1>", line 1, in <module>
    gcd(1,[])
TypeError: 'list' object cannot be interpreted as an integer
 
Anonymous
But in 3.5:
 
Anonymous
Yeah that
 
8:06 PM
OK, that is weird.
 
3.5's gcd is a reimplementation I think
 
Anonymous
But the fractions.gcd one works in 3.5 also
 
Well, I mean the one that came out in 3.5
It's just because gcd does the usual Euclidean algorithm method, so you can have gcd(10, "") or gcd(10, None)
 
Anonymous
Yeah
 
Anonymous
It doesn't check for types, only truthiness
 
Anonymous
8:08 PM
Which I actually like better
 
Anonymous
It's more Pythonic to not test for types
 
.-. These dog gifs, man.
 
Anonymous
The last thing I need to implement for Seriously v2 is going to be the most annoying: human-readable language form
 
Anonymous
(which will have the additional benefit of being valid Python code, so yay transpiling!)
 
8:10 PM
@Mego gasp
 
@CoolestVeto is that you @Geobits?
 
@wizzwizz4 D'AWW ;-;
 
I have 96 of these on my laptop. Wanna see some more?
 
Pop quiz: what does fractions.gcd("%s","%s") give?
 
8:12 PM
anyone know where I can get HitlerOS?
 
@Mego Seriously v2 dubbed Obviously. Confirmed. Ò_Ó
 
Anonymous
@Sp3000 an infinite loop?
 
Yup ^_^
 
@muddyfish wat
 
8:13 PM
@wizzwizz4 Actually, no. A few gifs at a time is enough.
 
From that xkcd
 
@El'endiaStarman Ok. I'll wait for a bit while I find the best ones.
 
@wizzwizz4 ermahgerd
 
So my class just set off the fire alarms in chemistry. It was during the other lunch period so people are a little mad. :P
 
wonderful
 
8:15 PM
@Mego I have that for Shift. You can write it either with single-byte commands, like $+.!!+!!, or with words, like call clone chain!! clone!!
 
In my robotics group we scorched the ceiling and didn't even manage to set hem off
like a big battery explosion
it did set a textbook alight though
 
Update: the firetrucks and police force just arrived.
There was no fire
 
@muddyfish Sounds like they were defective.
 
no, someone pluged them in the wrong way round
 
...also problematic. :P
 
8:19 PM
yeah
 
But at least they were fixed.
 
they were like 15V 10A ones
 
@trichoplax not enough rep to close vote, but too broad.
 
@Solver Not to worry - enough people jumped in
 
8:23 PM
I noticed :P
 
Anonymous
@trichoplax That might be literally the worst almost-challenge I've seen
 
Anonymous
(not including obviously not-challenge stuff like "how to juic avocad")
 
@Mego I went in thinking "I'm sure at least the title is a dupe", but then didn't even check because it read like an example post for "What to avoid when challenge writing"
 
-6
Q: Try to make my employer think I'm working

WayToDoorIf you are like me, and you like when you don't have to work, I'm happy to present you an unexpected challenge. You should give me a full program, that will make my computer looks like it's compiling. Doing this is complicated. I don't really want to compile a real program, it would be too easy...

 
8:25 PM
Dupe of
277
Q: Make it look like I'm working

SomeKittensOften, I find myself running a script or query that will take a significant amount of time to run. I can leave that script open and enjoy some guilt-free procrastination. Now, what if I could write a script that seems to be one of the above scripts to any onlookers, but in looks only? I could ...

 
Why was that closed as too broad? It's a dupe.
 
Except labelled code-golf despite allowing the answerer to choose what counts as valid...
 
Anonymous
@DrGreenEggsandHamDJ If it made sense and had a clear spec, it'd be a dupe. As it was, it didn't have a clear spec, didn't define what was valid and what wasn't, and wasted precious bytes of Stack Exchange server space.
 
Precious bytes that could have been used for doubling our max post length
 
@wizzwizz4 wat
 
8:29 PM
@DrGreenEggsandHamDJ What?
 
@wizzwizz4 lol wut?
 
That's a lot of watts
 
Anonymous
Can I get some help with meta.codegolf.stackexchange.com/a/8841/45941? I'm having trouble writing a reference implementation to use for generating/verifying test cases.
 
Anonymous
Specifically, I'm not sure how to go about generating an optimal solution. I'm hitting a mental block.
 
Anonymous
8:41 PM
Without the insertion pointer moving commands, it'd be trivial. But those complicate matters a lot.
 
@Mego The first approach that comes to mind is to construct a graph with vertex set pointer_positions X subsequences_of_target_string X cursor_positions X caps_flag, and doing path-finding on it.
The graph will be huge.
 
Anonymous
Yeah that's what I'm afraid of
 
Anonymous
I'm tempted to just write up a brute forcer and call it a day week month
 
@Mego Strikethrough doesn't work in the preview window for other rooms, so it looked like you said "[...] call it a day week month"
That was way more interesting in my head
 
Anonymous
Lol
 
Anonymous
8:49 PM
The forcebrute approach will take forever for longer test cases
 
Graph size for a string of length N will be at most 80 * N * 2^N, for N from 1 to 10 that's 160 640 1920 5120 12800 30720 71680 163840 368640 819200
I don't really know how fast that will be in practice.
 

« first day (1895 days earlier)      last day (2949 days later) »