« first day (2171 days earlier)      last day (2670 days later) » 

12:01 AM
@orlp I do get the same error no matter what version I'm using.
 
@flawr odd
 
@orlp I think I'm always gonna have trouble when trying to work with python.
Thank you anyway for your help.
 
@flawr what's the exact error msg?
 
@orlp I'm wondering, I just read this scipy.integrate.quad doc, and it says there are multiple outputs, how can you fetch these in python?
 
@flawr that's the [0]
 
12:07 AM
Ah I see=9
 
You know I don't understand why the Nth Monitor works so well for CR and yet any attempts at something similar here don't...
 
@quartata huh?
 
Code Review SE has a room called the Nth Monitor for off topic discussions
Well not quite off topic per se
But not quite suited for the main room
 
@quartata I have heard from @Quill that it is a disaster with the split :/
 
Really? I've been in both and it seems great
 
12:11 AM
At a distance yeah, in theory it seems great, but in the smaller aspects, they are problem
Like now everyone is either super-strict or super-lenient
 
yeah
I used to spend some time in both, the nth monitor didn't turn out so well
 
@EᴀsᴛᴇʀʟʏIʀᴋ btw, I am now back to being 0 miles away from computer so if you need anything from me for TF2 server I can do :D
 
cool!
did you reboot it yet?
 
oh yeah
oops
 
12:14 AM
@orlp You can include a tio link: Try it online!
@Dennis scipy for python3 on TIO
@LegionMammal978 i don't really know mathematica, could you include an example how your code is used for me?=)
 
Poll: How big is your trash folder?
 
720.6 MiB 0 bytes
 
60.6 mb
 
That's it?
I have 40GB trash but best is 120GB
 
12:22 AM
61 millibits? That is small.
 
only one folder
@Dennis >_<
isn't mb just base 10?
and mib base 2
 
0 bytes; what is this trash folder you speak of
 
/dev/null/
 
@Maltysen Lowercase m is the SI prefix for milli, lowercase b means bits.
 
o
 
12:23 AM
And mib isn't a thing.
 
Why is it MiB and not MB
 
MiB are mebibytes, i.e., using power of two.
 
I would think a /dev/nul/ directory could get confusing
 
;-;
@Dennis can you add Apache Commons to Java on TIO?
 
$ readlink ~/.trash
/dev/null
this is smart idea
 
12:27 AM
there is
MiB = powers of two, bytes
MB = powers of 10, bytes
Mb or preferably Mbit = powers of 10, bytes
theoretically Mib or Mibit could be a think I guess
but please don't
 
@Pavel Any idea how?
 
@Downgoat I don't think that works that way....
 
I don't know how TIO works.
 
I got the TIO part covered. I don't know how Java works. :P
 
@Dennis Place the jars in the classpath
 
12:30 AM
OK, there are a lot of apache-commons packages in the repos. Sounds promising.
 
@quartata And then shoot them with a 50 cal bullet to see how many of them it gets through?
 
@El'endiaStarman ?
 
@Downgoat I think you'd wind up overwriting /dev/null with that.
 
@Maltysen I was alluding to the idea of lining jars up in a row and shooting them.
 
@orlp You mean like this?
 
12:33 AM
Like all the "line up a bunch of things in a row and shoot them" videos. :P
 
oh lol
 
I was about to say 'In IntelliJ, go to File->Project Structure', then I felt dumb.
 
OK, I did dnf install apache-commons*, which installed 233 packages. I assume dnf took care of all the configuring.
 
@Dennis :(
how to workaround such problem?
 
@Dennis great, thanks!
 
12:35 AM
@Downgoat Don't symlink your trash folder to /dev/null?
 
Not that. I want whenever I write to trash it go to /dev/null
 
That's not possible. /dev/null is a device file, not a device directory.
 
@Downgoat just do shift+del or use rm?
 
@Downgoat cron job that deletes trash every so often?
 
I'm sure it's possible to configure your file manager to directly delete files instead of trashing them. All decent file managers allow this.
 
12:40 AM
You can just stick all the .jars for apache into the same directory as the project
 
> mac
Probably not a decent file manager.
 
I always use shift+del unless I'm not 100% sure I want to get rid of something anyways (I've regretted it at least once though)
 
That said, I'm not sure someone with hooves should delete files irreversibly instead of trashing them.
@quartata Dangit, my plot to call Finder crap was uncovered.
 
@Maltysen yeah but that's not as fun
 
I'd be surprised if there was no launchctl option for this
 
12:43 AM
@Downgoat nullfs
 
@Dennis that's like at very low level though. Surely I can do some weird OS config to bypass it or something
 
No that's just how dev null works. It's a file
 
If it's a file, why does it end in /
 
@Downgoat Sure. While we're at it, we should also tweak the weird OS config that turns your Blu-ray drive into a pizza oven.
 
Ooh! I have that one, it's super easy!
 
12:46 AM
Why would you do that when Blue-ray drive tastes better than pizza
 
mv /dev/null/ ~/.trash
 
Think about it this way: If you manage to turn /dev/null into a folder so you can symlink trash to it (which is possible, you just gotta remove the device file and replace it with a mounted nullfs), any program that depends on piping something to /dev/null will utterly break.
 
I could mount nullfs into /dev/nullgoat and then do ln -s ~/.trash /dev/nullgoat?
 
@Pavel mv: cannot stat ‘/dev/null/’: Not a directory
@Downgoat Sure, that should work.
 
@flawr did I do math for your challenge right?
 
12:50 AM
It's a horrible idea, but it should.
 
@Dennis why so bad idea?
 
Because you usually don't mount random stuff in your device files. Why not mount nullfs as ~/.trash directly?
 
wait is it /dev/null/ or /dev/null
 
@Dennis because then $ readlink ~/.trash joke wouldn't work
 
12:53 AM
Making random changes to your file system for the sake of puns: always a good idea.
Is that how you ended up chmodding /usr/bin?
 
No comment
We've goat this farAborted
 
sudo mv /dev/null ~/.trash?
 
That should work, yes.
 
I'll try it
 
no pls
 
12:56 AM
huh, it did
 
Undefined behavior
 
I never really understood the point of /dev/null
 
Both in terms of mv and your kernel
 
When you need to discard output, it has to go somewhere. A few programs will allow you to just close the file descriptor, but most won't. You could pipe it to a process that produces no output, but that would just consume resources.
 
Wait, if you mv null to somewhere arbitrary on your system, does it still work?
 
1:01 AM
No
 
/dev/null
is a node of the filesystem
 
I copied it instead of moving it this time actually, could be different behaviour
 
it has a special attributes
(beyond permissions)
 
Yeah
 
when the kernel encounters a file with such attributes
it will call special functions
instead of the regular write/read functions
 
1:02 AM
mv just sees an empty file, so it will create an empty file and remove the device file.
Pro tip: Don't try moving /dev/zero.
 
^^ Thanks, I was wondering what was going on
 
@Dennis mv never creates and then removes
 
I'm guessing that copies 0 to memory until it runs out?
 
it just changes the filesystem pointers itself
 
In a cross-fs move? I find that hard to believe.
 
1:03 AM
@Dennis oh in a cross fs, sure
 
/dev -> /home for me would be cross fs
 
mknod nullfilename c 1 3
chmod nullfilename 666
now you have a nullfilename file that has the same special bits set as /dev/null
 
what is chmod?
 
change permissions
 
it changes permissions
 
1:05 AM
Golfed: mknod -m 666 nullfilename c 1 3
@Pavel If by memory you mean hard disk, yes.
 
So I can move /dev/null to another partition and move it back, but touch /dev/null definitely doesn't work
 
@redstarcoder I really hope you're doing this stuff in a VM
 
I should be
I'm also not too worried, I could always boot into a live USB
 
@redstarcoder it can destroy all your files
and fuck up your system
 
^^ How?
 
1:10 AM
programs expect /dev/null to be empty
if they read from it
they might start copying stuff from it to other places
corrupting other stuff
 
Has that happened before? O:
 
@flawr <blah>/#&[12.345]
 
What happens if a bounty expires and I'm the only one that has answered the question?
 
You lose the bounty
 
Hello
 
1:16 AM
Bounties are either awarded or lost, not counting exceptional circumstances.
 
well I hope someone answers in the next 4 days then
 
If no one does, can I write a non-answer for free rep?
 
You can, but you'll lose your rep when I delete the answer.
TL;DR no
 
you would also need 2 upvotes to get it awarded automatically
 
1:34 AM
hi!
 
yo
 
let's see if I can add another language to this thing now
 
Anonymous
sigh
 
probably not though
 
1:37 AM
@Mego what?
he just said hi and 2 people responded
 
sigh?
 
Anonymous
9
A: Let's talk about chat again

MegoThe Nineteenth Byte can be a place for both serious and casual conversations. I imagine it as a sort of virtual "water cooler" environment. Some people gather to chat about the site. Some people gather to have more casual conversations. That's perfectly fine. What's not fine is when people disru...

 
Anonymous
Regardless of whether or not you think "hi!" is noise, it definitely doesn't need to be on the starboard.
 
wait somebody starred it
 
@Mego can you be more clear about what you mean by "sigh" then?
it arguably adds less to the conversation then the "hi" or the star on that message
 
1:40 AM
hey, what if I add ><> to the quine like challenge answer
now to learn ><>
 
It's like the guy who yells "shut up!" at the top of his voice in a movie theater to someone whispering something to his friend.
7
 
starred because that's funny, not (predominantly) because I agree with that
 
starring random posts is for the sandbox, not here
or maybe that starbait room or trash
 
Does this macro look right?:
#define BOILERPLATE                                                            \
    NumberObject *self = UNWRAP(info.Holder());                                \
    long double value;                                                         \
    if (info[0]->IsNumber())                                                   \
        value = info[0]->NumberValue();                                        \
    else                                                                       \
        value = UNWRAP(info[0]->ToObject())->value;                            \
It's not highlighting correctly which is making me suspicous
 
it's because it's in a #define statement...
 
1:46 AM
 
IMO, a large part of the problem right now is the "eagerness" to slam/hate/nuke from orbit all noise. I don't agree with noise, but I don't think there's really anything wrong with saying "hi" and then 2 responses of "hello/hi" when chat is pretty slow anyway.
5
@Downgoat what editor is that
 
C9 w/ monokai
 
ah
looked like atom for a moment
 
yeah, both are menlo IIRC
 
though for the record, I think that was a stupid message to star ('hi!')
 
1:48 AM
@Downgoat Look at the line it's not highlighting... back up one line... that line does not end in a backslash because there's whitespace after the backslash
 
oh my god thank you
 
No way I could tell from your editor but I saw it in the paste
 
WTF/10, hardest to find bug
 
(And suspected that was the issue)
np
 
How to have Javascript/Processing polyglot
Where Javascript prints "Javascript" and Processing prints "Processing"
 
1:51 AM
comments probably
 
@Downgoat Not if you have your editor highlight or otherwise indicate the existence of trailing whitespace.
 
But they both use //, don't they?
 
@Qwerp-Derp Hint: void absolutelyanything in JavaScript is undefined while in Processing it can be used to define a function
 
@Pavel and /**/
 
@Doorknob that seems like good idea
 
1:51 AM
@Doorknob while you're here, can you clear the star on 'hi!'?
 
void hello{println("Hello, World!");}
 
@Pavel nah, it's not really needed
 
@Downgoat Am I on the right track?
 
yeah, it's dumb, but it's not really that big of a deal
esp. when it's 1 star on 1 message
that's what I mean, I think we're partially overreacting
 
I mean, I wouldn't ping a mod for that, but since we know Doorknob's in chat right now anyway...
 
1:54 AM
@Qwerp-Derp My Processing is rusty but something along the lines of:
void alert()
{ console.log("JavaScript") }
try { alert() } catch(e) { println("Processing") }
where alert is any JS built-in function
alert() will throw runtime error about console.log in processing
Won't work if processing checks at compile-time
 
Won't it just not compile?
 
well shit
 
Java checks at compile-time.
 
Wait does processing use JVM?
 
doesn't javascript have undefined for undeclared variables?
don't they have an exec command
or eval
is g okay for a ><> quinelike program?
 

« first day (2171 days earlier)      last day (2670 days later) »