« first day (1863 days earlier)      last day (2984 days later) » 

9:00 PM
Hi
 
Hai
translate: Hai
(from German) shark
 
translate: Hai
(from Vietnamese) Two
 
flawr can't melt mod tools
 
Magpie?
what is mag?
 
The best pie filling
 
magpie is a bird
 
9:08 PM
magpiepie?
 
magpieception
 
Looks delicious.
 
@AandN
 
TIL I'm not safe from being eaten by PPCG users.
 
Hahaha
 
9:09 PM
Yum
 
user image
3
 
Anyone know a comprehensive LAMP stack tutorial that includes a security discussion and basic domain setup?
 
@mınxomaτ The lamps from IKEA come with setup instructions.
 
Well do not put your fingers into the lamp sockets as long it is plugged in.
 
9:10 PM
@mınxomaτ why are you using php
ಠ_ಠ
 
Pro tip: don't ever ask for advice in the Nineteenth Byte
@Maltysen Because PHP is good and fast. What would you rather he used?
 
@AquaTart PHP is neither good nor fast
 
Because things use PHP and I need things.
 
@AquaTart python. It even works in the acronym: LAMPY
 
Pro tip: If you wanna know something: Do not ask about it, but make some false statements about it.
PHP is the best programming language in the world.
 
9:11 PM
ಠ_ಠ
 
@flawr well that one isn't getting you advice as much as death threats
 
@Maltysen You just have to interpret those correctly.
 
DIE IN FIRE YOU @!*&$*!@(*!@&$ PHP LOVER
 
@AlexA. nginx + PHP is sure a lot faster than using Python with some obscure web server not designed for heavy traffic
 
9:12 PM
PHP is like if someone thought, "Hey, Perl is garbage, let's turn it into a garbage web language."
 
But nginx would be LEMP. I need LAMP.
 
^ LAMPY
 
ono how is make lemp I assumble for thirtee minut but no lemp
3
 
I couldn't care less about python.
 
@AlexA. Which is funny, because Perl was the language for CGI scripts at the time.
 
9:13 PM
@AlexA. It's really tough to tell if you've actually used PHP and legitimately think it's garbage or if you're just trolling me because I'm easily trolled
 
@Dennis mod_perl is really good and does all sorts of things
 
@AquaTart I legitimately think PHP is garbage, though me trolling you is a pretty fair assumption.
 
@AlexA. k
 
you should use node because then you can use jQuery, and jQuery is good and does all things
 
9:15 PM
oh god not node js
 
s/node//
 
Node is like if someone thought, "Hey, JavaScript is garbage, let's use it for more things."
 
Although JS is still golden when compared to PHP.
 
Definitely
Why are web languages all garbage
 
@AlexA. I use node just for npm
 
9:16 PM
@Maltysen But node-jquery can update client ui from server
 
@Maltysen What's the benefit of having npm if you're then stuck using node?
 
@AlexA. no, you don't have to use node
 
o
 
use can just use npm to install your stuffs, then use gunicorn or apache or whatever
 
Gunicorn makes me envision a unicorn with a gun for a horn.
 
o.c
 
@AlexA. I may or may not be one of those guys who uses PHP for things other than server side scripting
 
9 mins ago, by Maltysen
DIE IN FIRE YOU @!*&$*!@(*!@&$ PHP LOVER
 
@AquaTart Perl, PHP, Subversion... Just when I thought we were best friends.
 
@AlexA. :(
They all have their uses...
 
9:23 PM
@Maltysen What's wrong with PHP?
 
The completely lunatic built-in names
 
@AquaTart Sure, all of which can be accomplished more effectively with better tools.
 
@AlexA. PHP is good for all internet things
 
@mınxomaτ I don't see how that's a problem when you can just stackoverflow it.
 
I don't have to import or learn a strange library for cURL and JSON
 
9:24 PM
@Vihan It eats unnecessary amounts of time.
 
And it uses $ for variables which appeals to my Perl brain
 
@mınxomaτ true
I spent a couple days trying to figure out why my PHP script didn't work until I realized I spelt a property name wrong and it wasn't throwing an error...
 
@Maltysen That font and colors.
Holy heck.
 
@Maltysen that font is worse than PHP...
 
9:26 PM
^
 
I can't even
1. deal with it
2. read it
 
Here's a better one: PHP: A fractal of bad design
 
It's like trying to read something while sick with the flu without wearing glasses
 
maybe the author was trying to say: "PHP's design is as bad as this webpages'"
 
@mınxomaτ Clicked it, no fractals.
 
9:29 PM
@flawr Of course, the blog runs on PHP. There's your fractal. Of bad design.
 
 
does anyone know what the "REFIN" and "REFOUT" pin do?
 
> "foo" == TRUE, and "foo" == 0… but, of course, TRUE != 0.
What the fuck
 
 
@flawr omg
 
9:30 PM
can i also paste pics of things i find cute?
 
@flawr OMG
@Optimizer If they're appropriate...
 
:(
2
 
Of course: reddit
 
 
 
9:31 PM
Baby goats are quite adorable
@Vihan Fins or fouts again, respectively
 
@Vihan Luckily there is only one s.
 
s?
:D
 
> Appending to an array is done with $foo[] = $bar.
whyyyyyyyy
 
bestiality?
 
I actually prefer that too foo.push(bar)
 
9:35 PM
Because you hate readability?
 
readability does not matter when you are cute as fuck
 
@Vihan if you're talking about conciseness, at least python allows foo+=[bar]
 
@Maltysen oh, that's even nicer
 
Python is half "oh this is really nice" and half "why would anyone think this was a good idea"
 
@mınxomaτ "Even JavaScript doesn’t do this."
 
9:36 PM
especially with the braces. Why would you not have braces????
@flawr s/Even //
 
I prefer the blocks that terminate with end like in Ruby and Julia.
R is pretty dumb about its brackets. It doesn't understand what you mean if you put else on the line directly after the closing brace for an if block.
 
It's picture-posting time, I see? :P
 
@CᴏɴᴏʀO'Bʀɪᴇɴ Only cute ones.
 
if (something) {
    ...
}
else {
    ...
}
This is an error
 
9:38 PM
R
 
do you like need to do } else {
 
Yes
 
Well R is close to PHP design wise.
 
ಠ_ಠ
I agree that a lot of R is poorly designed but it's still a decent language
 
Another "programming language" made for non-programmers.
 
9:39 PM
 
haha
 
@Vihan but where do I type?
 
@Optimizer Where it says "Your Answer"
 
9:41 PM
haha
 
so much hit target!
 
FUCK fuck me fuck you <===========3 ( . ) ( . )
who submitted that ಠ_ಠ
 
nobody
 
> 0x0+2 produces 4. The parser considers the 2 as both part of the hex literal and a separate decimal literal, treating this as 0x002 + 2
 
@Vihan I suspect Optimizer
 
9:45 PM
@Maltysen what language?
@flawr ಠ_____________________________________________________________ಠ
 
@Vihan I took my job quite seriously!
 
who pinged me?
 
@vihan Submitted mine.
 
@CᴏɴᴏʀO'Bʀɪᴇɴ got it, thanks
 
I submitted 3 or 4
 
@Maltysen I'm still a bit mindf*cked by the ternary operator example.
 
^
That's all I needed to read.
 
All I needed to read was "PHP sucks" and I'll take your word for it.
 
9:54 PM
Nope. I really don't get it. How is it evaluating to "horse". That makes no sense whatsoever.
 
/[.Oo><^*~e'ಠov$-+!?`][.^_-]+[!?`-+$.Oo><^*~e'oಠv]|([D)<\[#LCc]['"]?[;:8B|]|[;:8B|]['"]?[D)>\]3#|LCc])|[.\\\/]+[om][.\\\/]+/
 
^^
 
regex to match all emoticons
 
I told my friend about the concept of esolangs. I told him that some notable ones were BF, FALSE, etc. I was able to convince him that PHP was also an esolang.
 
I just googled "PHP ternary left associative" for an explanation and arrived at phpsadness.com/sad/30 . :D
 
9:56 PM
.* <- regex to match all emoticons
 
@CᴏɴᴏʀO'Bʀɪᴇɴ hahahaha
 
$ echo (FALSE ? "a" : FALSE ? "b" : "c")."\n";
c
 
well that one makes sense
but `echo (TRUE ? "a" : TRUE ? "b" : "c")."\n";`
`b`
 
oh
ugh, regex sucks
 
9:58 PM
@Maltysen Yeah, it tries to convince you that ?: works as usual. Then it doesn't.
 
Is gcc -dynamiclib with the .dylib extension cross-platform or is that a Mac thing?
 
I think gcc -shared with the .so extension is Linux-only, right?
 
9:59 PM
And BSD. So Unix.
 
DLL is the Windows equivalent.
 
Which means .so should work on Mac too, since OS X is based on FreeBSD?
@feersum Of dylib or so?
 
@feersum Though DLL could also be a MSIL assembly in Windows which can be used on Unix with Mono.
 
Yes.
 
10:00 PM
@AlexA. so
 
fixing...
 
@mınxomaτ Are dylib and so not the same then?
 
@AlexA. I don't know what dylib even is.
 
oh
 
Are you not familiar with the -dynamiclib flag for gcc?
 
so work in every OS that uses the ELF binary standard. I don't think OS X uses this.
Also, isn't gcc in OS X just clang?
 
Heh, yes.
OS X doesn't use ELF? o_O
 
98
Q: What are the differences between .so and .dylib on osx?

Trent Davies.dylib is the dynamic library extension on OSX, but it's never been clear to me when I can't / shouldn't use a traditional unix .so shared object. Some of the questions I have: At a conceptual level, what are the main differences between .so and .dylib? When can/should I use one over the other...

 
Anonymous
10:03 PM
Why I can't take the eevee PHP rant blog seriously:
 
Anonymous
> Side observation: I loooove Python. I will also happily talk your ear off complaining about it, if you really want me to. I don’t claim it’s perfect; I’ve just weighed its benefits against its problems and concluded it’s the best fit for things I want to do.
 
Anonymous
> Global variables need a global declaration before they can be used. This is a natural consequence of the above, so it would be perfectly reasonable, except that globals can’t even be read without an explicit declaration—PHP will quietly create a local with the same name, instead. I’m not aware of another language with similar scoping issues.
 
Anonymous
> I loooove Python.
 
Anonymous
> I’m not aware of another language with similar scoping issues.
 
Anonymous
ಠ_ಠ
 
10:04 PM
> moar quotes
> such dotted line
 
> love it too
> we should always talk like this
 
> do images work in quotes?
 
> :(
> if you star a quoted :( it will become >:(, :(
 
@mınxomaτ Hm.
 
10:08 PM
Binary compatibility on Unix is crap anyways, so why precompile libs?
 
Because I'm writing some code that needs to call compiled C code
 
If you have shared unix lib, there's not much you can do with it in OS X.
 
Sounds like I might need to change my gcc flags based on which OS the code is running on, which is unfortunate because what I'm trying to do is slowly but surely creeping out of my realm of knowledge.
 
makefile?
 
So on OS X I want -dynamiclib with a .dylib and on other Unix-based OSes I want -shared with .so, and on Windows I want...? with .dll
How does make shared library on Window
(Can I even use gcc on Windows?)
 
10:14 PM
Yes.
 
Oh, looks like I want -shared on Windows as well
 
You either use gcc on windows (MinGW) or cl and link.
 
Hm
 
But I'm pretty sure there's a better solution than using shared libs.
 
This is for code to be called from R, or what?
 
10:18 PM
Julia
with ccall
which requires shared libs
ccall((:function_name, "shared_lib"), ReturnType, (ArgType1, ...), Arg1, ...)
 
tac
Your code has been rated at -6.18/10 (previous run: -10.00/10, +3.82)
thanks pylint
 
Negative score? Dam Son.
 
We could have lint-golf.
4
 
10:22 PM
class MalformedExpressionException(Warning):
    pass

    def __init__(*msg, level="INFO"):
I think your malformed expression exception class is malformed.
5
 
tac
@AlexA. ...it's a work in progress :(
 
An "Exception" inheriting from Warning does seem odd.
 
Also there's nothing in __init__, not even a pass.
All through the class, not a creature was stirring, not even a pass.
3
 
tac
@feersum The idea is you get red text, but not the end of the program, because crashing on syntax errors is for C programmers or something :P
@feersum wouldn't that be every codegolf submission?
 
Task: generate a random integer in [a,b), given a and b as variables. Use popular languages (i.e. non-esolangs that people would know of).
(For a illustrative blog post.)
 
10:25 PM
Quick, everyone only answer in esolangs.
 
tac
@CᴏɴᴏʀO'Bʀɪᴇɴ &RAND b. * a. / in Mouse, which is not an esolang I think
 
+JO-KJ Pyth
 
sample(a:(b-1), size = 1, replace = FALSE) in R
 
Thanks @alex
 
10:27 PM
Sorry, I didn't follow my own advice
 
@CᴏɴᴏʀO'Bʀɪᴇɴ Sure this isn't on RosettaCode?
 
@tac True, Mouse is not an esolang, despite the fact that most people haven't heard of it. :P
@CᴏɴᴏʀO'Bʀɪᴇɴ lel it was wrong
 
Fixed
 
tac
10:29 PM
@AlexA. well, it's not good for much more than Brainfuck is, but
 
@mınxomaτ Yes, I'm sure.
 
Not anymore at least. Once upon a time I guess it was useful for microcomputers.
 
@CᴏɴᴏʀO'Bʀɪᴇɴ I think we have a "random golf of the day" for that if you want examples.
 
@CᴏɴᴏʀO'Bʀɪᴇɴ Wait, was it supposed to be golfed?
 
10:30 PM
ok
 
I'm writing a blog post, so preferably not golfed.
 
Oh. Migrate to SO chat then :P
 
Closed as off topic
 
It's... a fastest-popcon-atomic-golf.
 
You may be able to get help on Stack Overflow but make sure to check out their Help Center first to ensure your question is high quality and on topic.
 
10:31 PM
@CᴏɴᴏʀO'Bʀɪᴇɴ VTC as unclear.
 
@CᴏɴᴏʀO'Bʀɪᴇɴ also code-challenge
 
@Maltysen Yes. That too.
 
I remember Timtech retagged a post with that once and Peter in a comment was like "@Timtech wtf"
 
-1 duplicate tag
 
^ not a tag
 
0
Q: Permutation Square Root

lirtosiastIn math, a permutation σ of order n is a bijective function from the integers 1...n to itself. This list: 2 1 4 3 represents the permutation σ such that σ(1) = 2, σ(2) = 1, σ(3) = 4, and σ(4) = 3. A square root of a permutation σ is a permutation that, when applied to itself, gives σ. For exa...

 
10:39 PM
Say I have a python script that performs a calculation in BATCH. How do I get the result from that calculation?
 
I won't question why in the world you'd want to do that, but you could have the Batch script echo and then have Python read from STDIN.
 
I'm testing BATCH's RNG
@AlexA. How do I read from STDIN in python?
 
Look at the subprocess module. That's what Marky uses.
 
^
 
I hardly know any python.
 
10:41 PM
Me too :D
It's pretty easy to hack it in though.
 
import os
os.system("SET A=324\nECHO %A%")
I don't know why this doesn't work :(
 
I think there's a reason people prefer popen to system.
 
tac
@CᴏɴᴏʀO'Bʀɪᴇɴ don't do that, use import subprocess; os.system and os.popen are both commonly deprecated in favour of subprocess
 
10:45 PM
C:\Users\Conor O'Brien\Documents\Programming\Games>rand
Traceback (most recent call last):
  File "C:\Users\Conor O'Brien\Documents\Programming\Games\rand.py", line 2, in
<module>
    subprocess.open("ECHO Hello, World!", shell=True)
AttributeError: 'module' object has no attribute 'open'

C:\Users\Conor O'Brien\Documents\Programming\Games>
import subprocess
subprocess.open("ECHO Hello, World!", shell=True)
 
tac
the docs have an example or two, here's another
process arguments should come in a non-hashable iterable, preferably a [list]
 
Okay... I want to set a variable and do something with it, then obtain the result.
 
tac
and you can mess with the file descriptors as you please, though that's less useful on Windows where not everything is a text stream
 
10:51 PM
Using
import subprocess
proc = subprocess.Popen("SET A=%RANDOM%\r\nECHO %A%", shell=True, stdout=subprocess.PIPE, stdin=subprocess.PIPE)
print(proc.stdout.read())
yields b''
What am I doing wrong?
 
tac
You're going to need to use s = proc.communicate(), with no args should let the process close and return its stdout
You can google or search SO about subprocess.communicate, but it's more robust than proc.stdout.read()
 
tac
@CᴏɴᴏʀO'Bʀɪᴇɴ to get a string from the bytes, you'll need to do something like str(bytes('{}'.format(out), "utf-8"))
 
tac
anyone here happen to know how to permanently disable Windows Defender in Windows 10 Home?
 
11:01 PM
bai people
 
@tac install linux
 
tac
@CᴏɴᴏʀO'Bʀɪᴇɴ bai D:
@Maltysen I use Linux every minute of every day, but once in a while I have to use Win10 and I'm shocked at how non-user-friendly it is in comparison
 
@tac can you install windows 7?
windows 7 was great
 
tac
@Maltysen No, unfortunately the PC came with a UEFI BIOS that only lets it run Windows 8.1+, but not Linux or 7 :(
 
tac
11:05 PM
A while ago I asked a question on SU about flashing the BIOS to a legacy one so I could do that and everyone was like "are you mad, don't you know you can't overcome Microdick"
@Maltysen I tried that, and it didn't work
 
Linux can be trickier to set up with UEFI, but it should still work.
Largely depends on the distro though.
 
11:25 PM
you know how js makes "90"*1000 become 90000?
well that feature was actually useful to me today!
\o/
 
If JS is useful in your project, something is fundamentally wrong with your project.
;P
 
@AlexA. no i'm using coffescript so its all good
 
Gross
 
but that type of type conversions still happens
but its actually helpful this time!
 
How many characters are white boxes for you: github.com/minxomat/unitext ? I can see all but one in Chrome (Ubuntu).
 
11:31 PM
None are white boxes for me. Safari on OS X.
 
none, chrome on ubuntu
 
Nice.
 
One aitch here
 
The only box I see is "lowercase serif italic H" O_o
 
Oh whoops. I missed that. Yes, I also don't see lowercase serif italic H.
 
11:35 PM
Yeah, me too. Very specific error.
 
Does anyone else get that weird M?
 
Does anyone how to split a list into two parts according to a function, in Mathematica?
 
@AlexA. no
 
Like Select but getting 2 arrays for whether the function was true or false.
 
@AlexA. That's probably Apples auto-emoji doodad
 
11:37 PM
Oh yeah maybe
 
@AlexA. same, whoops
 
For me it doesn't actually show up as a white box; it doesn't show up at all. It's just an empty cell in the table.
 
𝑈𝑛𝑖𝑐𝑜𝑑𝑒 𝑖𝑠 𝑤𝑒𝑖𝑟𝑑.
 
What a beautiful lowercase serif h.
 
11:42 PM
The monospace style would be an effective copy&paste protection for code :D
 
tr
 
0
Q: Circle packing in C Programming

gsculthoBasically the idea is to generate a bunch of circles, as many as possible, but none can intersect. I'm easily able to generate circles of random colors and sizes, but I have not been able to figure out a way to only use new circles that do not intersect previously established circles. I know it r...

 
@NewMainPosts 13 seconds :)
not my best though
 
Still quite impressive.
 
Batsh, a languages that compiles scripts to bash and Batchfile.
 
11:56 PM
 
@feersum This just gives an SSL error.
 
Same
 
This is the TIO: batsh.org
 
Anonymous
Not serious new challenge type idea: . Given a maximum code size in bytes, generate the most errors (either compiler or runtime).
 
That's an old challenge type.
 

« first day (1863 days earlier)      last day (2984 days later) »