« first day (1605 days earlier)      last day (3569 days later) » 

10:00
@Rapptz Cool!
I didn't know that. Thanks.
user1804599
I'll have to do a trick similar to this one: gist.github.com/rightfold/792266cffd82f21dc1c7
user1804599
Found it in the source of cronie.
user1804599
And set the sticky bit on the directory that contains the sockets.
What was the issue with file ownership/perms?
10:08
@sehe "no idea, but I found a work around"
user1804599
@sehe It's not allowed for security reasons.
user1804599
@thecoshman uh, no.
@райтфолд I guess that makes sense...
in theory I guess you could write an exploitive script... chown it and hope some fool runs it
user1804599
crond :p
user1804599
10:10
but you could circumvent disk quotas for example
@райтфолд maybe...
depends how they are enforced really...
@BartekBanachewicz hi
@райтфолд which reasons
@райтфолд oh in the context of crond
I've just failed the in-school theoretical exam
Why you gave me -1. Try it yourself. please change it. — Md. Mahamudul Hasan Khan 22 mins ago
no
@thecoshman no. per-user quotas look at ownership of course
10:12
@BartekBanachewicz What subject? Logical reasoning?
@LightnessRacesinOrbit driving theory
@BartekBanachewicz lol how did you manage that
@sehe sure, but that's not the only way
right.
@BartekBanachewicz smooth
10:13
@LightnessRacesinOrbit and by driving theory I mean I forgot whether the tires can have 1.6mm or 1.8mm of the tread
@BartekBanachewicz what's the answer in Poland?
wait, why am I asking you
hah
@BartekBanachewicz series business, I see all the folks get the callipers out in the morning
A little WTF-nugget for the day...
0
Q: How to Replace only Part of the Variable using #define

mahesh#define C_TX_ TX_ #define C_RX_ RX_ enum Test { C_TX_MAC = 0x0100, // Pre-Processor should replace C_TX_ to TX_ C_RX_MAC = 0x0101 // But Not Working. }; int main(int argc, char *argv[]) { cout << TX_MAC; // HOW TO PRINT ? cout << RX_MAC; // HOW TO PRINT ? return tr...

it's 1.6mm here — wouldn't be surprised if that came from the EU
10:14
seriesly?
@LightnessRacesinOrbit 1.6 too in Poland
The combo + + #define
I suggest using a text editor to do the replacing — sehe 10 secs ago
Ahahah nice one
@LightnessRacesinOrbit holy fuck this discussion
way to go, racist bartek, way to go
10:17
0
A: How to Replace only Part of the Variable using #define

Lightness Races in OrbitThe preprocessor replaces tokens, and C_TX_MAC is a full token. However, you can achieve this fairly easily with some macro concatenation: #include <iostream> #define foo(x) C_ ## x enum Test { C_TX_MAC = 0x0100, // Pre-Processor should replace C_TX_ to TX_ C_RX_MAC = 0x0101 /...

Not difficult.
So the insanity of the question doesn't strike you...
Is the PAX 2015 Acquisitions incorporated video anywhere on youtube yet?
@Rerito No, not at all.
@Rerito It's not that unreasonable a thing to want to do.
Yeah I don't think the question is crazy lol
though the 'function call' will seem a bit odd.
I use that construct once in a while; not in such a contrived example of course, but that's inherent with an MCVE.
If the macro expands to quite a lot of code, perhaps itself called by other macros, and only part of a long macro name needs changing in its argument list, it's rather convenient to just pass in the changing bit and let concatenation prepend or append a fixed prefix or suffix as needed. And this is how you do it, not by recommending sed or find-and-replace lol what nonsense answers
10:23
@BartekBanachewicz Why is that even a question?
@LightnessRacesinOrbit And what about just using the proper identifier when needed?
(In the question scope I mean)
@Rerito I just explained that
And don't pretend it's a perfectly sane stuff. If you'ld come across that in some code your WTF-sensor would go off
I just addressed that, too: no, it wouldn't.
10:29
@Rerito Enums with macros for stringification are a regular thing. However, I didn't get that from the question at first reading
I appreciate how you might struggle to see a valid use case in this and, without constructing a non-contrived example (which would take some time and look even more contrived without the context of a surrounding project), I'm not sure that I can help with that directly.
> The people who hate C++ are wrong
@sehe Obviously but that's not the question is it?
holy fuck that's a new light shed on the subject
Anyone who "hates" anything is wrong.
10:31
I hate LRiO
3
8 hours ago, by Cinch
@ParkYoung-Bae don't know what your weird acronym means
Quid Era Dominus
Quantum Epic Death
sounds like a good game jam project name
Do you guys think that prefacing calling member function calls from within a class with 'this->' is bad form? I vaguely remember that sometimes you have to use this for a special case, even though its usually optional
Just realized the question is nearly 5 yo
@R.MartinhoFernandes I wonder if the practical involves showing that you have a precise enough rule to measure that
@Pris yes, bad form. You might have to do it if you have names classhing
so... C++ std lib... classes, functions and variables all have_names_like_this... rather annoying IMO. just saying... not really up for discussion of it.
std::snake_case_is_what_all_the_cool_kids_use
but everything? :\
10:41
CamelCaseIsForAllTheOOPYuppiesBean
std doesn't even capitalise classes :(
std::foo <-- what is that? a variable? a class? a functiony thing?
@LightnessRacesinOrbit Following your rule about generalisations to the letter :)
It might be for some super old school code that can't support capitals? The C libraries are the same way aren't they
@thecoshman The names are usually good enough as to be self-explanatory.
@R.MartinhoFernandes I guess that's a good enough justification... force you to think of better names
10:44
Names that make the category clear by the words that form them are very superior to names that can only do so by typographical convention.
think I might update my TAG code to use snake_case, even if it does feel odd
@Pris Macros are all caps.
Actually what I said about 'code that can't support capitals' doesn't make any sense
@R.MartinhoFernandes well, it's more that do_something(AABB aabb) is rather nice
@R.MartinhoFernandes Yeah, I was just gonna write that. Constants are often named with all caps too
10:45
(IMO Macros being horribly dangerous justifies a separate typographical convention, though)
@R.MartinhoFernandes indeed
apple.com/live oooooh apple event
eh they're not that bad
@R.MartinhoFernandes say, don't you have a post (read: rant) somewhere about making types that are 'good', like that they work with std containers etc.
although it would be helpful if the compilation stage could be more aware of the preprocessor stage and emit useful diagnostics accordingly, that's an implementation problem
lol
10:47
@Rerito i dunno. seems to be the angle in the answer
lol... for some reason I have this book marked. The internet never forgets @R.MartinhoFernandes
@thecoshman That is clearly forged.
and on September 11, too
rip
@R.MartinhoFernandes All libraries make use of the global namespace :P
They pollute it with their namespace name.
10:51
;p
not true
I've used libraries that pollute ::boost instead
> If your library does not play nice with the standard library, I will hate you.
yeah, that's the point I thought you made
@StackedCrooked I actually have a half-written post with all those details.
I need to read up on what makes types 'play nice' with std lib
> If your library has types traits that don't play nice with SFINAE, I will hate you.
this one I mostly know what it means :P
@R.MartinhoFernandes Cool. I'd like to read it (when it's finished).
(still don't fully understand SFINAE)
@R.MartinhoFernandes me too :) over and over even whilst it's still WIP, as long as it's not lies!!!!
10:53
In int main(), do people ever return anything that isn't a 0 or -1? Should I just enforce returning named integer types like "exit_success" and "exit_error" or something?
I got reminded of this
Aug 6 '13 at 16:03, by Scott W
whenever I get really mad at my compiler I scream RAIISFINAE!!!!!!!!!!!!!
SFINAE = So you FINk you cAn writE c++?
@Pris We do on one particular piece of kit to signal a subsequent action to the invoking environment. But it's rare.
@Pris Error codes are defined by the OS, in essence.
10:54
SFINAE = SoFuckINAnnoyEeng
and are for the OS
Only for a subset of computers
@Pris meh, don't return anything
There was this blog post that started with: "Just to recap, SFINAE stands for Signal Failure Is Not An Error". Great start.
#quality-advice
10:55
also Anneke's solo albums are pretty damn amazing too. @sehe @LightnessRacesinOrbit
@Pris EXIT_FAILURE is the other portable return value.
user1804599
How do permissions work with Unix domain sockets help
user1804599
I want one that can be connected to only by a specific user.
@R.MartinhoFernandes I also have this but I can't see it... I presume it's the same message but on the real site :P
I'll just leave it as int for whoever needs to special case it
10:57
@райтфолд no can do
@thecoshman No, the comment is gone :P
sockets are not a 'user' thing.
user1804599
> Connecting to the socket object requires read/write permission.
user1804599
nice
@BartekBanachewicz hmm
10:57
@Pris I return 0, 5, 17, and 23.
Praises the High Council
@R.MartinhoFernandes weirdo
tl;dr 'enable if' -> you have some function that does something in the general case, but if the type has some special property, you can do it betterer.
yes?
@BartekBanachewicz Yeah not bad
@LightnessRacesinOrbit She's, I think, the best singer I know. I still prefer Gaga's timbre, but Anneke's just so fucking perfect when she sings.
11:00
@Pris For you, it's "Your Highness Discordian Pope Robot".
@thecoshman You can achieve that with tag dispatching though.
@BartekBanachewicz oh god you need to listen to more music
@LightnessRacesinOrbit I listen to music all the time, so it's hardly possible I think :)
@LucDanton woah woah woah, take it easy there. there may be better ways, but I understand that idiom correctly enough, no?
Don’t think so.
11:01
@LightnessRacesinOrbit (have you heard latest Lady Gaga's album?)
@BartekBanachewicz she's got a good voice but "best singer you know"? and you're putting Lady fucking Gaga up on that list?
> Discordianism is a religion and subsequent philosophy based on the veneration or worship of the Roman Discordia, equivalent of Eris, the Greek goddess of chaos, or archetypes or ideals associated with her
@LucDanton I'll keep reading then :P
even Katy B sounds better
and she's not even a singer
@thecoshman I said nothing about better. That’s kinda my point: the fact that they can overlap in purposes is the uninteresting part about SFINAE: we want to know what’s particular to it, not found somewhere else. Scratching my head for an example atm.
11:02
except she is
@LightnessRacesinOrbit I think Gaga is worse technically, but I love her voice. It's not nearly as technically good, but pleasant to hear. As for Anneke's proficiency... well, um, she's widely regarded as at least exceptional
She's not, dunno, an opera singer, but they also do totally different stuff
while I like opera, it's not my favorite kind of vocal music
@LightnessRacesinOrbit lol
You can have void set_callback(std::function<void()> f); void set_callback(std::function<void(time_point)>); and SFINAE means that set_callback([] {}) works. (That’s for C++14, not C++11.)
11:04
@BartekBanachewicz lol "widely"
@BartekBanachewicz You know about the existence of auto-tune, right?
@R.MartinhoFernandes I do. Neither of the aforementioned need it.
@LightnessRacesinOrbit you might want to listen to Anneke's appearances in Ayreon albums. I think she fits there even better (in a progressive scenes) than in regular rock.
11:06
I guess Gaga just uses it because it's cooler, then.
Maybe that's also why she then complains about it.
no wait wrong singer
@R.MartinhoFernandes I suppose
Doesn't need it, still uses it, complains about it.
11:07
Heather Findlay from Autumn (great band) is on E=MC^2
she's a better singer than Anneke for a start
@LightnessRacesinOrbit Comatose <3
that won’t maybe tell you how SFINAE works, but that is the exact situation why one would want SFINAE to exist in the first place
@R.MartinhoFernandes she didn't use it on her latest Oscar appearance. Nor on her latest album.
11:09
sure she didn't
@LightnessRacesinOrbit welp, not going to start a shitstorm; obviously pretty much everyone singing for Arjen is a world-class singer. I suppose I'm still shocked after seeing Anneke & Arjen live, it was a great experience.
@BartekBanachewicz still, you should listen to a lot more music. there are artists out there who are lightyears beyond
One thing that struck me (and my friends) was how close Anneke's voice sounds live to what's on CDs
@LightnessRacesinOrbit I am not very fond of vocal music in general, frankly.
she has a 128kbps voice?
that sucks man :(
must have been tough growing up
all raspy
@LightnessRacesinOrbit I thought you'd be able to afford at least a CD player on your barbaric island
11:12
@BartekBanachewicz I wonder what bitrate you think CDs are
@LightnessRacesinOrbit hmpf, I have a few albums scheduled that my guitar teacher gave me. Mostly to listen to phrasing and melodic ideas
@LightnessRacesinOrbit 1100 something IIRC
oh cock
what 128 figure did I mean
1,411.2 kbps, to be precise
128 comes into it somewhere
128kbps was a common CBR for MP3 in 2000s
11:13
right, 128kbps MP3 is CD equivalent
yeah I'm just gonna stop now
while we're at bitrates, I'd like to say how awesome DSD is
I've learnt that in order to convert DSD to analog you don't need a DAC and it kinda blew my mind
11:14
Cristina's singing is excellent in this
@BartekBanachewicz The bit rates for MP3 refer to the size of the compressed samples.
if a little held back
user1804599
128kbps is ~11:1 compression.
@BartekBanachewicz it's almost like DSPs can run at real time :O
user1804599
11:15
And buggy.
user1804599
It panics when the user can't be found lol.
@R.MartinhoFernandes um, what?
Keep talking.
typical MP3 has 16bit samples, I don't think this is set
@LightnessRacesinOrbit CD also has 16-bit samples
@BartekBanachewicz Oh, oops. I meant frames, not samples.
Sorry.
> As the MP3 standard allows quite a bit of freedom with encoding algorithms, different encoders may feature quite different quality, even with identical bit rates
@BartekBanachewicz yes
@R.MartinhoFernandes yeah hence the confusion
MP3 is weird anyway
and obsolete, while we're at it
everyone and their dog are jumping at 192/24 bandwagon at least nowadays
And by "everyone and their dog" you mean "not really that many people".
2
cue Sony's latest player and the fcking "hi res" sticker
@R.MartinhoFernandes actually, no. The high-res formats are seeping to more and more consumer-grade electronics
11:22
never seen that before in my life
@BartekBanachewicz Oh yes, they're everywhere. Keep in mind that getting things into stores is easy.
@R.MartinhoFernandes well, SACDs aren't as popular as I'd like
I've already banned myself from buying CDs
@LightnessRacesinOrbit Pretty sure the 'phile community is all over it, so it's clearly "everyone and their dog".
CDs are DVDs of the audio world p much
i mean there are still people who buy €12000 CD players
@BartekBanachewicz Basically, you're making the same wrong assumptions you were making sometime ago when we talked about which Android versions were all the rage.
11:23
@R.MartinhoFernandes "everyone who looks like a dog"
@BartekBanachewicz "there are people who buy" != "everyone buys"
@R.MartinhoFernandes lemme rephrase: big companies are expanding their cheaper-grade, popular hardware offers with hi-res options
@thecoshman ITT "thecoshman: impervious to C++, resists spelling"
@BartekBanachewicz Are the jpg artefacts some kind of deep joke there?
@BartekBanachewicz I have about a dozen. And ~10 DVD-A. Doesn't really justify the player :)
user1804599
meh, Go has no function for Getpasswd
11:26
@sehe huh?
It has many of the hallmarks of a marketing scam.
@sehe PS3 can play SACDs vOv
> He has suggested that Barack Obama's victory in the 2008 Presidential race was due to voter fraud and the mainstream media's ability to mask Obama's weaknesses.[20] Never mind the fact that, in 2004, he himself stated that the mainstream media lost its power to sway elections.[21]
rationalwiki.org/wiki seems like just the site to go to for a good character assassination. I have no clue how veritable all that is. It's certainly interesting
@BartekBanachewicz that's even more unjustified :)
but of course you can buy vinyl disks everywhere :/
11:29
@BartekBanachewicz What explanation do you give for that? What is your argumentation regarding the purpose of this market change? And how does it link in with your prior claims?
@BartekBanachewicz I like SA. I don't like game consoles. I like DVD-A - it's just not mainstream and already economically obsolete
@BartekBanachewicz Because there's a burgeoning community surrounding it.
> Idiotarian, n. Anyone who isn't a trigger-happy neocon/liberventionist
@R.MartinhoFernandes it's a community of people who like the whole ceremony, not just the sound
I have a daemon that performs a lot of I/O, both with external devices and with its own DB, and has a web front-end. I want to produce performance stats plots on the front-end. I should probably avoid writing the stats to the DB, right? Otherwise I'm potentially affecting what I'm measuring. But then I gots to manage flat files myself. Suppose I could have a separate DB for stats. Is that not still a little too close to the measured factors though?
user1804599
11:31
% sudo ls -al sockets
Password:
It can only be attributed to human error.
Password:
Besides, it's InnoDB, so having a separate DB vs separate tables probably isn't terribly useful. As long as I use a dedicated DB connection.
@R.MartinhoFernandes burgeoning? Doesn't that imply that it's "growing" new/being born? Like hatching but for nuts, seeds?
@sehe It is growing. "Reborn" if you like.
Is it? I see no evidence of that. To me it seems like the community that never shrunk
11:33
@sehe lemme find the graph
@sehe Sales are definitely growing. I suppose that also means more people getting into it, but it is growing at least economically.
user1804599
This is very nice.
A friend of mine owns a record label that prints vinyls and he's now having trouble with delays because of the amount of sales.
I find it fucking unfortunate because I really dislike vinyls
@R.MartinhoFernandes I indeed didn't realize this.
11:35
the best option would be if spotify had Premium Premium version with high-res music
@BartekBanachewicz I don't dislike them. I like them. But playing them is too much of a hassle
@BartekBanachewicz cue joke about pipe organ music being wide-range too
@sehe Yeah I indulge from time to time.
man, downsampling is a bitch
how am I supposed to show performance over time when "performance" should be "number of actions executed per second", when an action normally takes less than a second
@sehe to expand on it a bit, I own my share of professional-grade audio hardware. I hear a lot of people that say things like "I'd like it to sounds as good as live" and "there's the magic in vinyls". So, well, it's one or the other. If you want live recordings, you need studio quality monitors and the highest sampling you can get, not a magical plastic disk that gets slightly different every time you listen to it :/
11:38
@BartekBanachewicz Regardless of why, people liking them is what makes the difference. I think that what separates the way vinyl is growing from those hi-res audio hijinks it that the demand for vinyl growing first and supply catching up, not repeated attempts of generating demand by increasing the supply.
suppose I count those that finished within the same second
but then I also have a count of how many actions are due, how many are scheduled for later, .....
aregfiuaghdskfuyagsdkufyagsdfa
Technically superiority is not relevant.
@R.MartinhoFernandes mmm, there were some people that would buy hi-res hardware, but it was simply too fucking expensive for quite some time
@R.MartinhoFernandes This
@R.MartinhoFernandes I agree.
The point is that hi-res equipment is getting cheaper and that will mean more people buying it simply because they are suddenly able to afford it
11:40
what's the opposite of "instant" as it pertains to a downsampled count of observations
stop talking about audio and help me
@BartekBanachewicz Yes, it's been that for 20 years already.
@BartekBanachewicz CDs are slightly different too (just, in theory, not in the audible result). Also, Spotify streams are never the same (Panta Rei, hello). I think they're even adaptive, because on flaky network they can get noticeably more artefacted, in my ears
@R.MartinhoFernandes not really, IMHO. Find a 192/24 dac for a reasonable price 20 years ago
@BartekBanachewicz I think they will buy it primarily if it becomes a mainstream fad.
@BartekBanachewicz 400-500 EUR now. THX certified
yeah well 20 years ago you'd need another "0" (at least)
inb4 "stack overflow is so full of mean people it's so unfriendly to newbies who just want help"
Nah. More like "STACK OVERFLOW IS SO FULL OF MEAN PEOPLE IT'S SO UNFRIENDLY TO NEWBIES WHO JUST WANT HELP"
@sehe and then again there are people who buy silver-plated directional ethernet cables //cc @thecoshman
shit
> There may be some upgrade weirdness because I inverted the contravariant dependency, making contravariant depend on foreign-var rather than vice versa
ahahah
11:44
Woo, nothing says monday like debugging text encoding issues :/
wtb more weekend
@sehe mmmm also, WRT CDs, people often don't realize how much errors CD readers introduce
@LightnessRacesinOrbit redefine performance to num actions / X seconds
My favorite audiophile magazine summed it up nicely. If you have a set price, say €1k, a streaming player will sound much, much better than a CD player
Nothing like a little overengineering on a Monday morning, eh?! — Lightness Races in Orbit 5 secs ago
Even if you use digital outs.
11:45
@BartekBanachewicz ergh, who would use cheap silver plated MOs. You need solid core silver cables, scrub.
@Pris "num actions" is ambiguous
actions started? actions completed? actions started & completed?
fundamentally though the "instant X at this time" vs "# completed during this time" is good - thanks for that
i think you need a better definition of what you wanna measure
what I really want to do is look at the plot and see a spike of actions every minute that ends after a few seconds
because if it plateaus then the minutely action cycle is overloaded
mmm zoom took out G7 and G9 from their website
I wonder if that means they will introduce new high-end models soon
@jalf Need help?
11:48
professional help
I think I will try some of those aural therapy things. The tinnitus baseline loudness seems to have increased recently.
Ouch.
@R.MartinhoFernandes What's the bitrate?
@R.MartinhoFernandes does that mean blasting your ears with sounds continuously?
11:50
@R.MartinhoFernandes you tried really good noise cancelling headphones? putting yourself in as perfect a silence as you can?
@thecoshman that would prolly only make it worse
@R.MartinhoFernandes nah, just trying to pinpoint the place in our code where we take in latin1 data and assume it to be utf8
@thecoshman Er.
Is that a joke?
@BartekBanachewicz during it yes... but they would re-calibrate to what 'quiet' would be.
11:51
@R.MartinhoFernandes not at all. :\
@thecoshman You don't know how this works, do you?
@thecoshman There's nothing to calibrate.
This sound doesn't exist outside my head.
don't worry. he probably just misspelt it all. he actually said "that's terrible :( wish I could help"
<3
@R.MartinhoFernandes not really no. But ears ring after loud music...
@thecoshman entirely irrelevant
@R.MartinhoFernandes nor does ringing after loud music...
11:52
you have a misconception on what causes tinnitus after loud music
it's not the ears "recalibrating to loud sounds"
Noise-cancelling headphones only make me more aware of it.
There's no 'silence' ever again for me.
yes, but if you keep them on for a while... does it not go away eventually?
Ringing is the new silence.
@thecoshman No, it does not. It NEVER does.
11:53
@R.MartinhoFernandes how long have you tried?
Dr Coshman in the house
The best thing that happens is that I miss it if it's not loud enough to be audible over whatever I'm listening to.
But cover my ears (just my hands, not even noise-cancelling headphones) and yep, it is still there.
Do you know how it began?
-4
Q: How light is created using C++?

Gary GreyIn 3D graphics, how light is created using C++ to lighten the the scene? such as in animated films and games. I mean as we see in scenes there is a light source - my question is how that light is created using C++?

Lightness Races in C++
Does white noise help?
@LightnessRacesinOrbit No. It was completely out of the blue.
11:55
@R.MartinhoFernandes ok
well, "ko" is appropriate too
@R.MartinhoFernandes it's normal to hear a noise when covering your ears though...
@Zeta Some of the aural therapies I am going to try out are a bit like that, but they craft special noise tuned to the frequency I hear.
@thecoshman That's just your body's operating noises. Not this.
@thecoshman Not tinnitus.
@R.MartinhoFernandes how long ago was that? :/
@jalf About two months now.
11:58
Longer than that, wasn't it?
@R.MartinhoFernandes how do they know what Hz you specifically 'hear'
@LightnessRacesinOrbit Few days maybe. It was the first sunday of January, I think.
hmm noep you're right
Jan 6 at 12:37, by R. Martinho Fernandes
It's been going on for about an hour now. :(

« first day (1605 days earlier)      last day (3569 days later) »