« first day (2136 days earlier)      last day (3004 days later) » 

19:01
@noɥʇʎPʎzɐɹC it need body and head tag?
Is there a term utility for uploading to an image server, say imgur?
@Downgoat wait a sec
@noɥʇʎPʎzɐɹC I'm sure there's one you can obtain.
<!doctype html><html style="''inva'lid css I know">textttt<head></head><body><div class="onfoodstamps"><div class="upper">foo<p>ayyy</p>bar</div>baz</div><br/></head></html> + whitespace
@Downgoat html, head, and body are optional in HTML 5.
Pretty neat, perhaps of interest to folks such as @Calvin'sHobbies: truecraft.io
3
19:07
@Dennis we are doing XHTML i think tho
0
Q: why do you accept as valid anonymous functions?

RosLuPWhy one has to accept valid, anonymous functions? If they not add its name, something one can call, for me it is not valid, it is not complete answer

dupe hammered
@Downgoat CrazyPython's example is HTML 5, not XHTML.
waaaat
oh no
ok
will change then
@AlexA. Cool
19:18
@DJMcMayhem I wrote my first Vim answer!
Question: How to make a function execute at the end of a C program (Wether is it SIGINT or a normal termination)?
atexit
@AlexA. @mbomb007 might like this more.
@AlexA. thx
19:22
@AlexA. Interesting...
Actually @TuxCopter, I may have been wrong on that. That and on_exit may just be called on normal termination, not entirely sure.
> The atexit function registers the function function to be called at normal program termination.
:/
Yeah
So I guess I will need to register an atexit and a signal
There's sigaction
Which I think is now preferred over signal
19:26
> a.url = 'https://www.google.com/search?q=rdt.x&oq=rdt.x&aqs=chrome..69i60j69i57j69i59j0l3.8139j0j7&sourceid=chrome&ie=UTF-8'
'https://www.google.com/search?q=rdt.x&oq=rdt.x&aqs=chrome..69i60j69i57j69i59j0l3.8139j0j7&sourceid=chrome&ie=UTF-8'
> a.url
undefined
wtf js
What is a?
Don't wtf JS until you understand it. Then you can wtf freely :P
4
@ConorO'Brien an empty string prototype that emulates a more complex object because it's supposed to have url set to something
@ConorO'Brien Did I tell you about when I made 8==9 in Python?
@noɥʇʎPʎzɐɹC here you go: regex101.com/r/fxMtVS/1 (xml parser 100% regex)
@noɥʇʎPʎzɐɹC that doesn't surprise me
@noɥʇʎPʎzɐɹC Is a an element?
@ConorO'Brien Nope. Defined as var a= '';
environment = node
@ConorO'Brien I have exp. with python though
19:28
@TuxCopter You could have both sigaction and atexit call the same function. Though I would think there are other possible error cases other than SIGINT you'd similarly want to handle, so it may get cumbersome.
Right
And sigaction seems awfully complicated compared to signal
@noɥʇʎPʎzɐɹC (1) you should use let in node, it acts nicer. (2) a is a literal, oc you can't define properties for it
@noɥʇʎPʎzɐɹC aight? so what?
I don't see anything saying signal is deprecated or whatever too
@ConorO'Brien but string.prototype
@ConorO'Brien just wanted to point it out
19:29
8
A: call a function when the program is finished with ctrl c

Mr. Muskratsignal() can be dangerous on some OSes and is deprecated on Linux in favor of sigaction(). "signal versus sigaction" Here's an example that I ran across recently ("Tap the interrupt signal") and modified as I was playing around with it. #include<stdio.h> #include<unistd.h> #include<signal.h> #i...

@Downgoat Nice
@noɥʇʎPʎzɐɹC What about string.prototype?
@Downgoat Make it match attributes
@ConorO'Brien strings are prototype, aren't they?
@noɥʇʎPʎzɐɹC it does?
attribute is what
Do you know what a prototype is? It's something endowed to an object open instantiation. Thus, strings have prototypes but are not prototypes themselves.
19:31
@Downgoat I mean capture them
@ConorO'Brien wat
@noɥʇʎPʎzɐɹC TL;DR JS
Prototype-based programming is a style of object-oriented programming in which behaviour reuse (known as inheritance) is performed via a process of reusing existing objects via delegation that serve as prototypes. This model can also be known as prototypal, prototype-oriented, classless, or instance-based programming. Delegation is the language feature that supports prototype-based programming. A fruit bowl serves as one example. A "fruit" object would represent the properties and functionality of fruit in general. A "banana" object would be cloned from the "fruit" object, and would also be extended...
lel I forgot a semicolon and it caused two pages of errors
New instances are made from a prototype
There is no class, not in that sense
@TuxCopter I know this problem well.
19:36
@quartata thank you
agc.c: In function 'main':
agc.c:50:22: error: storage size of 'action' isn't known
     struct sigaction action;
wat
Well that's odd.
ANSI being ANSI
If you're compiling with -ansi leave it off
I compile it with gcc agc.c -DAGC_BIN -o agc
no esoteric flags
Just to make sure, you did include the header right
19:39
-o is an esoteric flag. a.out ftw.
Does your gcc default to C99? That could cause it too
@wizzwizz4 "The three images were found by a scraper." Of course I did.
@quartata yep
Yeah, that's why.
this is why you should use g++ to compile your programs, obviously
19:40
I use C
@ΛεγίωνΜάμμαλϠΟΗʹ I would have written a recursive bot to choose... That's what you did, isn't it?
-std=gnu99
Wrap everything with extern in #ifdef __cplusplus and compile with clang++.
The hard part is, I have to make 32 requests for each panel
19:41
@AlexA. gross
Because each request only gives 4 paths at most
@quartata Trolls be trollin', son.
@quartata This caused 2 warnings and didn't fixed the error
(and I still end up missing some paths)
@quartata gcc defaults to, gnu90, i.e., C90 with GNU extensions. That's the real gcc though. The disguised clang might be different.
19:42
@Dennis Yeah, that's what I thought but he might have a weird install.
@Dennis AFAIK only OS X disguises Clang as GCC.
It wouldn't work in C90 either though I don't think
I have purebred GCC
@ΛεγίωνΜάμμαλϠΟΗʹ What's the longest branch of the tree you got?
@wizzwizz4 I can test that if you want, but it'll take about an hour
19:43
My manual one was 15.
@ΛεγίωνΜάμμαλϠΟΗʹ You don't have to test; it's fine.
Is the code public?
@wizzwizz4 I'll do it anyway :P
@AlexA. Word. Only Apple could think the g in gcc doesn't stand for GNU.
(No pressure to make it so if it isn't.)
@Dennis GNApple Compiler Collection?
@Dennis It's a typo. They actually meant "XNU", but software's dependent on the name gcc so it stuck.
19:45
@Dennis I think they're under no illusion that GCC is the same as Clang, they just think that developers actually want Clang when they ask for GCC.
Just like they assume that people with iPhones don't value wired headphones...
Sure, why would I want the program I've typed. I obviously wanted something different.
There's a reason why their slogan used to be "Think Different." ;)
»  gcc agc.c -DAGC_BIN -o agc -std=c99
agc.c: In function 'terminate_signal':
agc.c:46:5: warning: implicit declaration of function 'sigaction' [-Wimplicit-function-declaration]
     sigaction(SIGINT, &old_action, NULL);
     ^
agc.c:47:5: warning: implicit declaration of function 'kill' [-Wimplicit-function-declaration]
     kill(0, SIGINT);
     ^
agc.c: In function 'main':
agc.c:51:22: error: storage size of 'action' isn't known
     struct sigaction action;
wtf?
I included the necessary headers
signal.h?
@Dennis tbh, linux does that with vi/vim a lot.
19:47
> implicit declaration
but again, that's kinda a different situation
you definitely didn't include signal.h
#include <stdint.h>
#include <stdlib.h>
#include <stdio.h>
#include <unistd.h>
#include <signal.h>
#include <string.h>
^ All the headers I imported
@Maltysen To be fair though, nobody actually wants Vi. If Vim is available, there's literally no reason to use Vi.
@AlexA. You think like Apple with Clang
19:48
wait I thought vi was just an alias for vim
I mean, on most systems, yes.
@GabrielBenamy that's what it usually is these days
@GabrielBenamy No, Vim is Vi iMproved
I've never seen any difference
@GabrielBenamy Vi is like Vim without 99% of it features
19:49
Then set nocompatible in Vim. :D
@Maltysen Afaik, vi starts VIM in VI mode, like Bash behaves differently if you invoke it with sh.
Vi mode being Vim with set compatible enabled?
I never understood why people like Vim. What is it good for?
@ConorO'Brien typing
19:50
lol, I just use gedit please don't kill me
@ConorO'Brien When you actually get good at it, things just get so much faster in general
I mean, why use it over other editors?
Visual block mode and CTRL-A were the two main things that drew me in originally
19:51
Oh damn, I swear my question has nothing to do with the ongoing conversation here. I just need a regex wizard.
I preprocessed the file and found no definitions of sigaction nowhere in the preprocessed file
@TuxCopter Try setting #define _POSIX_SOURCE above the #includes
@mınxomaτ too late you've been caught in the crossfire
I think my headers are borked/Windows is stupid
I know 4 Vim commands: i, <Esc>, :w, and :q
19:51
> Windows
@TuxCopter Wait, you're building on Windows?
There's your problem
I use MinGW
(and :q! if it refuses)
Dude
I doubt sigaction even exists there
19:52
@TuxCopter There's your problem.
Use cygwin.
If you have Windows 10 just use the Ubuntu subsystem
@AlexA. Internet don't works
MinGW is horribly outdated and uses a libc that has been EOL'd by MS for a long time.
19:53
I think there's a somewhat working native Windows port of Clang. You could try that out.
@quartata how much faster, and in what way? From what I've seen, Vim is just regex on super steroids
@El'endiaStarman Yeah, those were the good old days. Before "The End". It's not completely implemented yet, since there's no redstone. So I wouldn't play it until that's implemented.
@AlexA. One should not. You should use cygwin. Which comes with a complete clang package.
@ConorO'Brien It's tough to describe at least for me. A lot of the grindy tasks just get faster
@AlexA. I just use a standalone gcc when I'm on windows
19:54
@mınxomaτ What he should do is use MSVC :P
@quartata I see
it works fine, though I haven't tried anything crazy
Like, handling indentation is super fast with visual block mode. And just getting around is faster
@AlexA. ಠ_ಠ
@AlexA. Uh, no.
19:54
> :P
@AlexA. How does one use that?
I've just used my Cygwin installation
@ΛεγίωνΜάμμαλϠΟΗʹ Control Panel -> Turn Windows Features On/Off -> Windows Subsystem for Linux. Then reboot and run "bash".
@ΛεγίωνΜάμμαλϠΟΗʹ TBH I don't know. I don't have Windows 10; all of what I know about the Ubuntu subsystem is from reading articles.
@KritixiLithos Nice! Link?
19:56
@ΛεγίωνΜάμμαλϠΟΗʹ Well, it's a kernel module. So yes, reboot.
You can avoid rebooting for a while, but sooner or later Windows will reboot itself to install updates without telling you beforehand.
Or at least putting a tiny dialog box behind all of your active windows that says "btw rebooting the computer in 30 seconds, save your work or you'll get rekt"
@AlexA. Just disabled that in some random low-level thing
@ConorO'Brien at the very basic vim makes it easy to copy, delete or edit stuff like paragraphs, words, sentences, lines, code blocks, inside parentheses etc
@Angs oh, cool
Ahhh these stdlib errors are driving me crazy
19:57
@ΛεγίωνΜάμμαλϠΟΗʹ Messing around with regedit?
I'm gonna use Win32 lib so no Windows incompatibility problem
@AlexA. Nah, some other Microsoft setting I believe
@TuxCopter Use. cygwin.
Actually, might have used some regedit in the end
^^
@ΛεγίωνΜάμμαλϠΟΗʹ Group Policies probably.
19:58
Or I could use Rust too
@mınxomaτ I tried that, it refused to recognize me as admin
That never happened to me.
> I swear to fulfill, to the best of my ability and judgment, this covenant:...

I will respect the hard-won scientific gains of those physicians in whose steps I walk, and gladly share such knowledge as is mine with those who are to follow.

I will apply, for the benefit of the sick, all measures which are required, avoiding those twin traps of overtreatment and therapeutic nihilism.

I will remember that there is art to medicine as well as science, and that warmth, sympathy, and understanding may outweigh the surgeon's knife or the chemist's drug.
Gem from Windows Group Policies.
Fun fact: In my secondary drive, there's a folder full of icons that you have to go through 5 dialog boxes to unprotect each file and folder individually
20:00
@mınxomaτ brainbork
I know they're icons because I mounted the drive to Ubuntu
@TuxCopter Fun fact: The setting has no effect either way.
@mınxomaτ What even
3
@mınxomaτ wut
@mınxomaτ Hey, just like most Windows settings :P
20:02
Does anyone know a simple and reasonably efficient way to apply a unary function to every item in a multidimensional array in python
Please confirm whether or not you don't want to disable Windows store apps.
^ wat
Yes I don't?
@Flp.Tkc map?
@Flp.Tkc map
Ninja würde
20:02
@Flp.Tkc map?
._.
@AlexA. wtf?
@flawr Ninja'd in German
@mınxomaτ Yes.
translate: Ninja würde
(from German) Ninja'd
@TuxCopter no way^^
20:03
@AlexA. Ninja würde
does that work if the list is something like [0, [1,2], [3, 4, [5]]]?
Shitty translator...
@Flp.Tkc probably not in it's raw form.
@AlexA. würde is also a pretty common (yet evolving) slang for "I'd hit that". At least around here.
But you can easily enhance the function such that it check's wheter it gets an array or a value, and recursively calls itself on the array, or maps itself to the values.
20:05
yeah, that's the solution I've got so far
ploughs through recursively
Or just flatten first then map
@Flp.Tkc great=)
no, I need to keep the nested lists in place, just change the values @AlexA.
<3 recursion
^ my first javagony answer :D
20:06
@Maltysen cooool!!!!
Isn't Javagony what happens whenever you program in ^Java(Script)?$?
@flawr This time I just used a normal jdk and kept track of the restricitons myself, but I'm thinking of making an actual interpreter for it
Started building TrueCraft
@Maltysen haha, feel free to develop the language further=)
20:09
TrueCraft compiled
Nice. Let me know how it works.
Launching it
Thanks for the play-by-play
@Maltysen Is the interpreter just java?
@quartata right now it is
20:10
I suppose technically using anything other than try-catch or recursion could qualify as undefined behavior
i'm making an interpreter right now that errors on the other control flow
Huh?
TrueCraft sended me a confirm account email, I opened my email box, I received the email and when I clicked on it it was replaced by a spam email and the truecraft email diseaparred
... :/
@flawr managed it with a recursive map. oh boy i love recursion too.
I have no idea what to do now
There is visibly no option to resend the confirmation email
20:19
Try clicking "register" on truecraft.io?
The confirmation email got flagged as spam in my other address
Seriously
5 mins ago, by Alex A.
... :/
yay! my third Nice Answer badge!
\o/ nice one!
halp TrueCraft crashed and took control over my mouse
20:22
@AlexA. Just make sure no mod sees this! I think the face-only messages have been reason for ban in recent times.
I finished the recusive map: hastebin.com/iragoyasiv.py
If anyone has improvements, ping me :P
Oh it's running in the background
@flawr OH SHIT won't happen again!
Question: What does GNU (as in the GNU Project) stand for?
GNU Not Unix
20:25
@ΛεγίωνΜάμμαλϠΟΗʹ GNU's Not Unix.
Generally Not Usable
@noɥʇʎPʎzɐɹC That's just the OS though
@El'endiaStarman beef yum
Great New Umbrellas
TrueCraft crash randomly after 50 seconds
20:26
@ConorO'Brien Now included as part of the compiler collection
Yay
In addition of running in the background
@TuxCopter You should submit an issue on GitHub so it can be tracked and fixed
Oh the sky is borked too
nice
@AlexA. You have 5 messages on the starboard o-O
@TuxCopter #thuglife
You may be interested in The Upper Room
There's probably a better place than this for discussing religious texts
20:30

 The Upper Room

General discussion for Christianity.SE, pseudo-meta support, a...
@AlexA. ninja'd
Welp, turns out the GNU Project was just the OS at first
...what kind of a ninja is it when you edit someone else's message before a third person posts theirs? :P
underhanded ninja
20:32
@El'endiaStarman oh whoops
Okay, all is good now. :P
Idea: Call it the GNU's Not Unix Compiler Collection
Or the GNU's Not Unix's Not Unix Compiler Collection to be safe
GNUNUCC
Too bad that "Unix" is based on "Multics" and doesn't stand for anything
multics?
20:35
Unbeknownst, Now I Xylophone
Multics (Multiplexed Information and Computing Service) is an influential early time-sharing operating system, based around the concept of a single-level memory. Virtually all modern operating systems are heavily influenced by Multics; often through Unix, either directly (Linux, macOS) or indirectly (Microsoft Windows). == Overview == Initial planning and development for Multics started in 1964, in Cambridge, Massachusetts. Originally it was a cooperative project led by MIT (Project MAC with Fernando Corbató) along with General Electric and Bell Labs. Bell Labs pulled out in 1969, and in 1970 GE...
oh
that's one heck of an acronym
Even better: GNU's Not Unix's Not Unix Network Object Model Environment
GNUNUNOME
no
Gnu Mad Bro?
5
20:37
CMC: remove all non-uppercase letters from string
@ConorO'Brien -QG
@ConorO'Brien %s/[^A-Z]//g vim
Or cheating, %s/.*//
@HWalters cheating?
@AlexA. This filter out all non-lowercase
20:38
It does indeed remove all non-uppercase letters
@ConorO'Brien It removes everything, so non-uppercase letters too
@TuxCopter Oops
@ConorO'Brien Mathematica, 33 bytes: StringDelete@Except[_?UpperCaseQ]
@AlexA. This still filter out all non-uppercase
20:39
@TuxCopter Strictly though it doesn't remove everything; just non-newlines
Even better: ""&
Because string has no uppercase letters
@TuxCopter use \U instead of [^A-Z]
4 messages moved to Trash
Jeez, guys, do I have to put this room in timeout?
there's no reason to?
If you guys keep posting trash, I will.
20:43
@DJMcMayhem TIL
good point
Actually, it'd be better to kick specific people. I'll do that instead.
@TuxCopter vimregex.com
Best reference I've ever seen
@El'endiaStarman can you trash deleted messages?
20:44
@flawr I actually just trashed two of them.
Heh half of the TrueCraft issues are problem on Windows
wat just happened
The CMC is two bytes in V, but I can't remember how to do it cause I'm on my phone
@TuxCopter That honestly doesn't surprise me. I think the author's primary target platform is Linux.
Like every open-source project Q_Q
What are all these removed messages?
20:46
@TuxCopter you like linux
@mınxomaτ I cannot confirm nor deny that they ever existed or have been removed.
The only linux machine I have is a 6 years old laptop
TrueCraft seems to have windows binaries. So what's this fuzz about?
:33907915 can you not
@TuxCopter It makes sense. It's "easy" to develop for in that you don't have to deal with an environment that's not all that conducive to development (Windows) or an environment full of proprietary stuff that changes with every release (Mac).
@mınxomaτ It's possible to compile it on Windows, just the game randomly crash, has problem with fullscreen, etc...
20:47
@TuxCopter Did you try the binary?
There are precompiled binaries?
And anyway I don't think precompiled binaries would be different than compiling it manually
Well try it.
20:48
Worth a try
Crashed
Have you submitted an issue on GitHub?
That's a really bad and useless issue.
idk how to get the stacktrace
The launcher do nothing on client crash
20:56
Ah god, I truly am stupid.
The sublime issue was embarrassingly easy to solve.
Was the solution.... sublime?
applause
20:58
Who would have thought that "terminate on two newlines" can be solved by just matching ^$ >.>
wtf sublime oh wait it's logic
Why wtf?

« first day (2136 days earlier)      last day (3004 days later) »