« first day (1816 days earlier)      last day (3136 days later) » 

1:00 PM
just follow Web 3.0 guidelines
 
I'm considering dropping GitHub Pages and running jekyll on my own.
 
and you won't need all that crap
 
Ell
I wonder what format I should store receipts in
 
@BartekBanachewicz ITT Bratek learns about links
That's about the time.
Seeing how you were doing some JS stuff or whatever else.
 
@Griwes dunno, I don't think it has any real significance in the web world
@Griwes IDGI how it's relevant to obscure web browsers
the vast majority of my JS projects only runs in Chrome
 
1:01 PM
@Bartek btw have you used restify at any point?
 
Ell
@BartekBanachewicz not the other major ones?
 
I'm not making webpages fyi
 
I have some restify-ish URI patterns and have to match them with actual URIs :/
 
Parsing JSON. In PostgreSQL. Using C++14. To talk with a distributed lock manager over HTTP. Via SQL. Our future is fucked.
3
 
1:03 PM
And it doesn't seem like there's anything doing that directly in the public API :/
@sehe that vaguely reminds me this
 
of*
 
meh, too much text
 
why does Microsoft use redundant macros, like in the Windows SDK headers?
and redunant typedefs?
 
@edition Historical baggage, backwards compatibility. Unlike any other OS, Windows provides almost 100 % compatibility several versions back.
 
1:14 PM
@wilx I like that.
 
Undefined behavior is undefined. — crashmstr 7 mins ago
:D
 
2
A: segmentation fault, Crashing the program after executing all lines of code

fredoverflowBy writing into ptr[8], you probably scribbled over the return address of whatever function called main, so the processor tried to jump to a weird place. Core didn't like it and took a huge dump.

 
@fredoverflow Yeah, I also take big dumps when I'm upset!
 
> Core didn't like it and took a huge dump.
lol
-2 !! why is that ? — Farouk Sabry 4 mins ago
oh boy.
 
@Griwes What -2, where does that number come from?
How are numbars formed?
 
1:17 PM
by defererencing verbibols
 
hey, whats the vote data type?
 
What?
 
what number type are the votes in stackoverflow stored as?
oh, nevermind
int
 
@fredoverflow I just saw -5 on it.
 
@edition Are you planning to go Gangnam style on stackoverflow?
 
1:20 PM
I don't think he noticed that he's making predictions of behavior based purely on assumptions and questioning why it doesn't go that way.
 
@fredoverflow not that I know of.
 
1:38 PM
@GregorMcGregor I'm well aware of that actually. That's why I'm here hoping for a proper solution. — Leo 2 hours ago
what
"How do I print int as char" "Cast int to char" "I know"
 
@GregorMcGregor I don't understand the question this guy has.
 
@fredoverflow HOW DO I PRINT CHAR INT STREAM I KNOW
Well apparently I don't understand it either
 
@StackedCrooked seriously... how did you come up with that logo for coliru?
 
@fredoverflow It's more or less fizzbuzz.
Say, he wants a function string f(int x) such that f(x) == to_string(x), except when x is one of several special values. Then it should return some special string.
f(100) == "A", f(200) == "B", etc.
 
Xeo
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
 
1:45 PM
@R.MartinhoFernandes okay so switch with default, problem solved
 
@Xeo ?
 
wxWidgets fun...
 
ponders on how some people have weird definitions of "fun"
 
Ell
Hmm I think gnucash is too much for what I need
also it isn't very user-friendly
 
1:52 PM
@fredoverflow When two operands love each other very much...
@Ell Have you tried YNAB
 
@Griwes Did I fail at delivering sarcasm?
 
Ell
No
but I'm not sure what my strategy needs to be in general. I can't input every card transaction I make
that'll take a lot of time and there's bound to be mistakes in it
 
Xeo
@Griwes just the usual unreal bullshit
 
@Jaden No; I just stayed in the same domain.
@Xeo hah
 
> This article or section has been rated D for Dwarf. It may include witty humour, not-so-witty humour, bad humour, in-jokes, and references.
 
1:54 PM
@Ell Don't you have a monthly statement?
 
Ell
@GregorMcGregor yes, but I still have to enter them all in don't I?
 
Yes, eventually
Also you're a programmer aren't you
Ah wait there's no API.
I do enter every card transaction I make, but not all cash.
 
@GregorMcGregor Nobody in here is a porngrammar
 
Ell
I suppose entering all of my card transactions once a month will be an annoying but not so frequent task
 
I just count cash withdrawal as a transfer to a "cash" account
@AnalPhabet You wish
 
Ell
1:57 PM
yeah that's what I'd do
 
@GregorMcGregor Snif snif... I smell GNU Cash here :p
 
I wish YNAB had more sync options.
 
I wish it had an API to pull / push data
 
I did my first commit today
after a month of work
 
2:04 PM
git commit -am "stuff"
 
What's funny.
 
git push -f
 
I had my own local repo first, then I asked for a remote local repo for backup, then I took what I had and commited it to main repo
 
@BartekBanachewicz Isn't that a lot of time?
 
2:04 PM
@R.MartinhoFernandes see above
 
Then that's not your first commit
 
it's my first commit to actual prod code
 
The difference is important
 
my own repo had around 32 commits and I had another one with around 20 I think
~2 a day
 
That's not a lot, you have big changesets?
 
2:06 PM
not really. A lot of time was spenting researching and testing and not writing code
 
What are you working on
 
Computing amount of bits required to store your mom's mass
 
Undecidable
 
about 80 or so
"your mom's mass"
that's 15 bytes so just 120 bits.
 
2:17 PM
I need to find a name for a new sorting algorithm (yes, yet another one).
 
:D
 
Ell
@Morwenn morsort
wennsort
 
yafsort would work too.
 
lounge<sort>
Mr. Sort
 
2:19 PM
@Mr.kbok That one already exists :/
 
@Morwenn sortsort
 
It's a derivative of an insertion sort.
I could call that a rentresort.
 
ininsertsertsort
 
dsort/dins
 
@Morwenn Does it sort big data? Call it mumsort.
 
2:20 PM
milakunisort
because Y NOT
 
what the fuck JS
why is "match()" (against a regex) a function of String? o.O
 
@fredoverflow No, it's designed to sort small arrays again, but it seems better than insertion sort for the job. It could be useful as a fallback.
ynotsort
 
Ell
@Griwes why wouldn't it be?
 
gordianYnot
 
I could call it a double_insertion_sort since it's pretty much what it is.
 
2:23 PM
@Ell ...because it should be a function or Regex or something
people say C++'s std::string has too many functions
but at least most of them actually do deal with the string itself
 
std::string is totally missing an is_leap_year function.
9
 
> warning C4503: '__LINE__Var': decorated name length exceeded, name was truncated
FUCK YOU
JUST FUCK YOU
FUCK YOU
 
what
what the fuck msvc
 
Obviously the string matches the regex and not the other way around, duh.
 
obviously the string shouldn't even know that a thing called regex exists
yes I did detect the sarcasm (or at least something I hope was sarcasm)
 
2:27 PM
Luc Danton doing sarcasm? No way
 
I didn't since std::string has no detect_sarcasm function
 
Ell
Oh I get your point
 
:D
 
DID I MENTION "FUCK YOU MSVC"?
 
8
Q: Do mantises stalk cicadas?

HimThe Chinese Idiom The mantis stalks the cicada, unaware of the oriole behind (螳螂捕蝉,黄雀在后), which the story behind the idiom comes from Shuo Yuan(说苑), refers to those who are attracted by immediate interests without thinking about the possible dangerous results. In reality, so mantises stalk cica...

 
2:28 PM
13
Q: Preprocessor token expansion

fredoverflowMy mental model of how the preprocessor works is apparently incomplete, and this is driving me crazy. I want to concatenate two tokens, but the second token should be expanded first. #define ANSWER 42 #define FOO foo_ ## ANSWER Here, FOO expands to foo_ANSWER, but I want it to be foo_42. So ...

 
I just want to officially state that "FUCK YOU MSVC"
15
 
in soviet russia...
 
In Soviet Russia you fuck MSVC
 
@fredoverflow Easy to work around: "leap"s == "year"s
 
@R.MartinhoFernandes submit a bug and wait for it to be closed as WONTFIX
 
2:30 PM
Pinned it, so it's official now.
@Griwes I already have this one closed as WONTFIX
First Google hit for "please hog all my RAM"
 
WONTFILE
 
@GregorMcGregor secret stuff.
 
@R.MartinhoFernandes lel I have to sign in to see it
 
I'm trying to wreak as much havoc in a node.js app without breaking it
it's super fun
 
2:32 PM
google's cache to the rescue
 
@R.MartinhoFernandes serves you right for doing obscure coding tricks and using shitty languages vOv
nananana
 
> because there is nothing directly actionable here
the fuck
 
How do I even fix this.
 
In other news: Wordpress is awesome to quickly make a nice website with basic information things.
 
no it's not.
 
2:34 PM
(and let non-computer geeks actually maintain it afterwards)
 
wordpress sucks for geeks and non geeks alike
 
@rubenvb As long as you don't mind it being taken over by Russian hackers and the Chinese government in -2 seconds
 
the fact that they already know wordpress gives them unfair advantage
 
it's a great unifier of suckage
 
if they don't know anything then Jekyll isn't harder to maintain at all
and typically is enough
 
2:35 PM
my girlfriend has a jekyll which I made the theme for, that she updates via a fish mount
 
wordpress is fine if you can accept shitty quality and security issues, which a lot companies do
 
we used wordpress before and it's 1000% better
 
haha, I started a flame war.
 
Greenpeace wants to buy Germany's lignite mines.
 
2:36 PM
@rubenvb it's no war. It's just WP bashing
 
Then they can burn the coal away so nobody can use it for evil!
 
I wonder what Germany will replace it with next.
 
Whale oil burns clean.
 
"Less nukes; more lignite" has kinda been their approach after Fukushima Daiichi.
I guess they'll just go with "Less nukes; less lignite; more wood burning".
 
2:38 PM
@BartekBanachewicz security issues on a static website?
What if I enable Two-factor authentication?
 
@rubenvb wordpress isn't a static website
@rubenvb you must be new to this security thing
 
@BartekBanachewicz enlighten me.
 
@rubenvb Wordpress is PHP.
 
Fox News & its "defense official" sources now justifying hospital bombing http://www.foxnews.com/world/2015/10/03/3-doctors-without-borders-members-killed-in-us-airstrikes-in-afghanistan/ (via @AbbyMartin) http://t.co/qrn89X04Ww
 
I don't understand what is wrong with this vOv #cry-for-help
 
2:40 PM
good job, US
 
@R.MartinhoFernandes Oh no! So now it must be bad!
 
@rubenvb you seriously can't google for "wordpress security issues"? Besides, it's a PHP app. Do you really need more?
@rubenvb it's a huge indication for being bad.
 
@thecoshman You need extended aggregate rules. I don’t know where they are at.
 
just like things written in C
 
@BartekBanachewicz like every OS on the planet?
 
2:40 PM
sure there are things written in C that don't crash
 
@LucDanton huh?
 
That makes really little sense. char_ simply matches all characters. Full stop. Also you don't need the listen. I included everything in the answer. You can even download the exact test input used. I suggest to start with just that. — sehe 2 mins ago
....
 
@rubenvb Not the point. It's not a "static website".
 
@rubenvb Well, certainly. Why can't every OS on the planet be a buggy piece of shit?
 
@rubenvb you meant kernel, not OS, not every kernel is in C and the ones in C are shitty anyway, given how much manhours has been put in them
 
2:41 PM
@thecoshman Yours is a special case, but generally speaking it’s the same circumstances as struct foo { int i; }; struct bar: foo { int j; }; bar b = { 0, 0 };.
 
@rubenvb It's a PHP endpoint, so it exposes PHP's vulnerabilities.
 
@rubenvb wat
 
@R.MartinhoFernandes and what can a hacker do when they enter?
 
@rubenvb Er.
 
@Griwes *popular OS?
 
2:42 PM
@rubenvb send spam mails. Join botnet. Whatever
 
@LucDanton does that not work either? why not? how fix?
 
@rubenvb ++bots_in_botnet
 
@BartekBanachewicz It's a Wordpress.com hosted website...
 
@thecoshman Currently not allowed: bar is not an aggregate, no aggregate initialization. There was a lot of talk to extend the definition of aggregates to includes those cases.
 
@rubenvb so what?
if the hacker gets in he gets your private data, ability to fuck up your site, use your resource quota
 
2:43 PM
@LucDanton so if you derive a type, you simply can't use brace-init?
 
@rubenvb I don't see how that makes it more secure than an actual static website: less components, less vulnerabilities.
 
for every resource, disk, memory, cpu, network
 
@thecoshman having a parent automatically makes a type non-aggregate
 
infect other websites from that provider
 
Xeo
@thecoshman provide a ctor :/
 
2:43 PM
C++ is silly that way.
 
@thecoshman Braces yes, aggregate init no.
 
Seriously, stop thinking hackers want to get you. They just want your computronium.
 
@Xeo ah, but said ctor could take a brace init list? I just have to manually do shit?
 
Either way don't use a dynamic site when a static one would do.
 
@R.MartinhoFernandes And Wordpress.com (the organization) won't spot this?
 
2:44 PM
@rubenvb are you asking us?
 
@thecoshman Braces are a piece of syntax. Constructors get their arguments.
 
@rubenvb Certainly not. Wordpress is one of the most infected things to ever exist.
 
who do you think they are, Hacker Fighters (tm)?
they made wordpress, so they're idiots
 
@LucDanton so in my example, if I added a T(string, int) ctor, then that brace init should work?
 
@BartekBanachewicz Well, I'm sure they fare well when their resources aren't being used in a botnet?
 
2:45 PM
@thecoshman Yeah.
 
@rubenvb in this case they'll just pull the plug on your site
which is amazing for the users innit
 
@LucDanton but only for that brace init, as that's the only one that has a matching ctor... and I lose the default init... which I think is fine
 
Add bar() = default;?
 
I'm still not quite sure how the hell they can access the password/2-factor-auth part of the website. Although this may just be me being extremely naive.
 
@rubenvb Let's turn this around. Why don't you want to use a static site?
@rubenvb and the answer to your question is "because the site has exploits that can be used to access that data and much more".
 
2:48 PM
@rubenvb Er, logging in is not how you gain arbitrary code execution and such.
Aug 5 at 13:46, by R. Martinho Fernandes
But seriously, just browse some CVE database.
 
Ell
^
 
myshittywordpressapp.com/index.php?query="sudo rm -rf --no-preserve-root /"
@rubenvb ^
 
Oh, fuck it, I'll settle with the name double insertion sort, even if it's both offensive and verbose.
 
> The original paper, N4404 was discussed in Lenexa and the feedback was generally positive. Several EWG members expressed a strong desire to further extend the functionality, thus prompting another revision.
 
Ell
2:48 PM
There are loads of exploits for loads of software
 
@LucDanton ah yeah, if I want it
 
Ell
if you know your target you can just type it into a database and find a bug to exploit
 
@BartekBanachewicz It needs to be a) pretty b) simple c) content needs to be edited in a "Word"-like manner, including graphics and links, d) needs to work on mobile, e) be fancy (facebook stream, google maps view of address). Oh, and as free as possible, including hosting.
 
Nov 12 '14 at 2:56, by Cat Plus Plus
Optimism is what creates CVE numbers
Also relevant.
 
Note I have no HTML knowledge and I'm definitely not ready to learn that to maintain such a project.
 
2:50 PM
use jekyll or some such thing
 
@rubenvb Static sites satisfy A and B easily. C is satisified by using ANY desktop html or markdown editor. D is obvious. E can be done with a static site just fine. F is for free gh pages and divshot and multiple other hostings.
 
@rubenvb It goes like this: craft malicious payload, send malicious payload, server-side code misbehaves, attacker obtains privileges, say hi to your spammy friends.
 
@rubenvb then use markdown or whatever other format you want that can be compiled to html, and just use one of a million free jekyll templates
 
nice, PR0017R0 covers multiple inheritance. I was afraid the rules would only extend to simple inheritance
 
Ell
Hmm
how much rep to chat?
 
2:51 PM
20
 
@BartekBanachewicz D is not obvious. I've seen loads of crap on mobile...
 
@R.MartinhoFernandes All in all given the context of the discussion those are concerns to raise with the host and not their users.
 
@rubenvb yes and this isn't specific to static sites. It's specific to shitty CSS and JS and Flash
 
sure, but who is going to write that CSS/JS?
 
1 min ago, by Bartek Banachewicz
@rubenvb then use markdown or whatever other format you want that can be compiled to html, and just use one of a million free jekyll templates
 
2:52 PM
hiyo
 
@rubenvb lots. It isn't always about don't care, sometimes it's about naive
 
@BartekBanachewicz I'll definitely check out Jekyll.
But I just got the whole Wordpress thing sorted out.
 
wordpress is an illusion of advantage
 
@rubenvb it's trivial to solve b using one of the many templates already out there.
 
"making your mind up"
or: when in doubt, use C#
 
2:54 PM
@rubenvb mine, robot's and cosh blogs are made using jekyll
 
OK. Thanks for the suggestion.
I get Wordpress is overkill, but it solves a lot of issues I fear are going to crop up when diving into lower level solutions.
 
it's underkill at best
if you don't like the person you'll giving the site to and you won't be maintaining it then sure
 
@rubenvb Jekyll takes very little effort to get a basic blogy thing going, but leaves you lots of room to make it very fancy.
 
@LucDanton Oh, I was just clarifying that essentially being a static website doesn't matter much when it's still served by PHP.
@BartekBanachewicz Oh yeah, I just moved out of GH pages.
Jekyll plugins yay
 
@thecoshman And how is the maintenance? As in: can people just add pages and modify their contents in a edit+save way?
 
2:58 PM
I might when I get a VPS.
@rubenvb it's static. You edit the site sources and rebuild, then deploy.
 
@rubenvb My workflow is: open vim, create file, save, git commit, git push.
 
On GH pages it can be just a git commit.
 
@BartekBanachewicz See, the two final steps are problematic...
 
@rubenvb if you use GH hosting they do it for you.
 
The editing needs to land in the hands of non-geek people.
 
2:59 PM
Rebuild is was done automatically by GitHub.
 
@BartekBanachewicz OK, that sounds better.
 
@rubenvb if they can accept using stuff like Git For Windows, they'll be fine
 
I can do the initial setup myself, so all the git pushing wouldn't be necessary.
 

« first day (1816 days earlier)      last day (3136 days later) »