« first day (1473 days earlier)      last day (3481 days later) » 

12:00 AM
You are aware that mp3s are compressed already, right?
 
erm, that didn't spring to mind
it makes sense then
 
Ell
That's individually though innit?
As an archive I'd assume greater compression was possible
 
Unless you have thousands of copies of the same track, their entropy is still likely to be close to the minimum.
 
@R.MartinhoFernandes where did he say they were mp3s? You got lucky ;)
 
Sample-based music though!
 
12:03 AM
@Borgleader The chances of it being all wavs were incredibly low.
 
yeah I pack my FLACs separately
 
Still compressed.
 
this is the random music collection that I gathered along the way, w/o anything specific in mind
usually mp3s downloaded via my phone
we need a magical compression algorithm that compresses an arbitrary amount of data to 1KB
 
I'd like to have faster RAM much more than that (disregarding the fact that its impossible, i think?)
 
@AlexM. It's called SHA-1024 with a filesystem that looks up the file on the internet.
Or cloud.
:)
Good morning.
 
12:10 AM
@Borgleader You cannot losslessly compress something to less than its entropy (which is basically a measure of the amount of information present).
 
@MarkGarcia dang, I was going to follow up with a message like "a 1KB file that points to the real data saved on a cloud"
 
Oh I was here for code thats write?
 
no.
 
@Borgleader what do you need faster RAM for? :O
 
12:11 AM
So.... uh..... anyone know how to create a box on mouse click and all the user has to do is click the mouse and move it around to resize box?
 
Ell
This is a different entropy than thermodynamic entropy?
 
A bunch of duplicated data has very low entropy, so you can compress it a lot. However, once you compress it, the size is close to that entropy value, so you can't gain much from additional compression.
 
user1646075
@MarkGarcia mornin'
 
Any heads up up on where I could start?
 
@R.MartinhoFernandes I told you about samples dawg!
 
12:12 AM
I wonder if sometime in the future everything will be cloud based
 
Wait this is C#
 
user1646075
@7Blue_Beast7 books
 
it would certainly affect the customer hardware market since performance will be mostly irrelevant
 
Ell
@r.martinho hmm. How about when you encrypt something?
 
it would be just streaming for games for example
 
Ell
12:13 AM
You don't lose any information
 
hahahahah failed to read the giant letters!!!
 
@7Blue_Beast7 s/this is/is this/. No.
 
@aclarke Hehehe not in my book.
 
Ell
But its harder to compress
 
@Ell There isn't a very obvious relation (but there is one).
 
user1646075
12:13 AM
@7Blue_Beast7 get better books. loungecpp.net/w/Newbie_hints
 
@aclarke Hehe them books aren't the best of the best.
^.^
 
@AlexM. Then again distributed systems rise, then back to the smart terminal age, then again...
 
Ell
I was taught entropy is "randonmess" or "chaos'
Wrt chemistry
 
Let me move my giant az to the C# room.
 
I once encoded encrypted data on base 64 and I was surprised that it's smaller than the original (encrypted) data.
@Ell Entropy == JPEG
 
12:15 AM
@AlexM. Dude, RAM is fucking slow. Chandler had a slide comparing like L1/L2 cache access times vs RAM, the difference is astounding. Also, like at least 3 talks from CppCon explained the virtues of avoiding cache misses like the plague.
 
@Borgleader You need the new Intel ones with L4.
128 MB.
 
@MarkGarcia Haswell? Broadwell?
 
Is there anything like sscanf in the standard library that makes tokenising easy?
 
@Borgleader I never did anything to require faster RAM, so I wouldn't know about the effects on my software
I might do in the future
I'm really curious to see how the system requirements for my project will branch out the more the AI learns
 
user1646075
I wonder if there'll be enough data lost due to: 1/ arbitrary lockouts for 'security/copyright/court orders/terms of service' excuses; 2/ cloud hosts going out of business; 3/ war; 4/ famine; 5/ pestilence

before people realise that it might be smarter, after all, to possess the machinery for their own data and software
 
@AlexM. Yes, they will.
 
user1646075
@Ell gas has high entropy because to encode all position and velocity requires a shit-load of data. A nice crystal, however, requires far less information - ie it's lack of chaos means low entropy
 
@R.MartinhoFernandes I imagine so. You're injecting new entropy w.r.t. the seeds of the keys.
 
@Borgleader Buy an SSD.
 
12:18 AM
@R.MartinhoFernandes Encryption introduces randomness as to prevent those repetition attacks.
 
@R.MartinhoFernandes Yes because that wont help for data thats in RAM but not in cache yet (which is what I was referring to)
 
Ell
@r.martinho yeah was just saying the definition I was taught
 
@Puppy Unless it's a really small message (why compress?), the entropy of the keys is negligible compared to the message.
 
@aclarke One package delivery company here states in their TOA that they're not responsible if the package is damaged due to acts of God among other things.
 
@Borgleader I know. I was just joking.
 
user1646075
12:21 AM
great - that means they're totally liable !
 
@R.MartinhoFernandes Oh, damnit. This is the second time today that I failed to detect a joke -.-;
 
NOT FALLING ASLEEP IS ANNOYING
 
user1646075
tried a saucer of warm milk?
 
I have to wait for the laundry machine to finish its job before going to sleep
it's 2:30AM
if I don't wait, I won't have clean underwear tomorrow
 
Never thought of using Google Translate as a proxy.
 
12:27 AM
> Get a proxy
Use it to use Google Translate
Use Google Translate as a proxy
Congratulations you are now a hacker
lol
 
user1646075
@AlexM. Wear underwear for 4 days: normal; inside-out; backwards; backwards inside-out.
 
user image
2
LOL
 
I like how I've been cursing the new monitor for being fuzzy, and now (5 hours later) I realize that I've been using the wrong aspect-ratio...
 
How the fuck does that happen.
 
@StackedCrooked Also for mobile.
 
12:29 AM
wow
Are you running on Standard VGA driver or what
 
@R.MartinhoFernandes Something like 1366x768 vs 1360vs768.
 
I haven't had to pick a resolution in like 8 years
 
looks like Telltale is making a GoT game
wish they made a new Sam & Max
their Sam & Max games were great
 
It seems to be a common theme in this lounge to notice things way later.
 
I think I'll stomach running MySQL and run Phabricator on loungecpp dot net after all
Loungers are bad at paying attention and following instructions
And running projects
 
12:37 AM
@Rapptz Can’t notice in advance :)
 
Alright, so I'm in a bit of a predicament.
There's some water in my damn keyboard.
So I'm using a backup pc for now.
 
@MarkGarcia that's exactly right (disregarding the actual numbers)
 
I spilled like 5ml of water.
 
lol ID on dicsourse increases between 'edited' link and the timestamp link
 
And now the keyboard is fucking spazzing out.
Does anyone know how I can possibly get rid of water in a laptop keyboard?
 
12:44 AM
Also lol meta.discourse.org/t/why-is-discourse-so-slow-on-android/8823/… "I am desperately hoping that Android L / 5.0 / Lollipop improves these dire numbers."
 
1680x1050 vs 1920x1080
 
How do you pick non-native resolution in the first place
 
@Nooble put the entire laptop in a sack of rice, which you put in the owen at rather low temp (without closing it)
 
Drivers do that automatically
 
Can't sleep
 
12:44 AM
WELCOME TO THE CLUB
 
@CatPlusPlus xrandr, I'm not an "automatic" kinda guy
 
OK
 
HERES YOUR CAPE AND THIS THING TO STAB YOURSELF IN THE EYE WITH
 
lol
 
caps and eye stabbing is great!
 
12:45 AM
I think my mum thinks I'm doing drugs
 
0
A: Why is strcmp not SIMD optimized?

kuroi nekoI don't see the point in "optimizing" a function like strcmp. You will need to find the length of the strings before applying any kind of parallel processing, which will force you to read the memory at least once. While you're at it, you might as well use the data to perform the comparison on th...

 
@FilipRoséen-refp lol
 
Suddenly a urine test appeared in the medical tests I have to take.
 
Sucks.
 
Are you 12
 
12:45 AM
And by suddenly I mean I got to know it 2 hours ago and I have to take it in 6.
 
@Rapptz don't worry mate, it could be that she thinks that your female.. or/and pregnant
 
@CatPlusPlus No, but I don't have money.
 
What is "medical test you have to take"
 
@FilipRoséen-refp That sounds extremely risky.
 
@CatPlusPlus I'm doing a bunch of tests.
 
12:46 AM
@Nooble Try turning it off first
 
I see how rice can act as a dessicant.
 
@Nooble it's not really.. unless you have a gas owen, then I wouldn't recommend it (since it's hard to have it on really really low temp)
 
It's off.
 
@Nooble but why not open it up completely (ie. remove the keyboard) and blow-dry the heck out of it? (in a really dry room)
 
It's a laptop.
I don't have time to open it up.
 
12:47 AM
I have had some kind of weird neurological symptoms and they are basically checking everything, from heart, to eyes, to brain, etc...
 
It's night, and I have something I need to print in it.
 
Did you snap when someone put ketchup on pizza
 
lol
yeah
 
@CatPlusPlus we use Phabricator at work
the overuse of "ph" in it annoys me
 
Ell
I'm gonna make bagels at some point
 
12:49 AM
Exciting.
 
The last test I have to take is blood sample and a CAT scan. Everything else was just fine.
 
speaking of weird symptoms
I felt like vomiting after drinking one of those energy drinks today
perhaps it was time I switched to something healthier
 
Like actual vomit
 
I'll try coffee, it's bound to be a better choice than actual vomit
 
especially for your teeth
 
12:55 AM
coffee is probably better for my wallet too, it's 6 times cheaper than the usual energy drinks
 
user1646075
vomit is free, and contains protein…
 
and acid
 
@Rapptz did you get my message?
 
1 message moved to bin
 
Ell
Lol
 
12:57 AM
lol
 
user1646075
who would voluntarily decide that dentistry is a career choice.
 
it was a bit fugly but meh
 
Careful or I'll add you to the flowchart
6
 
laundry is done
clean clothes!
clean underwear!
tomorrow is secured.
 
Wet!
 
1:00 AM
well it is a little bit wet now
 
@nightcracker ?
 
but it will be better in ~7 hours
 
Was it about "why do you take const char*?"
 
@Rapptz yes
 
because I wanted to support const char* parameters
(i.e. string literals)
without constructing a temporary std::string (plus, I don't use its interface anyway)
 
1:01 AM
what's wrong with the temporary?
 
nothing
 
@AlexM. What time is it there?
 
3AM
I'll go to sleep in a bit and wake up at ~10:30+
 
there's a std::string version there if one is provided
 
maybe 11
 
1:02 AM
I thought you had a job
 
it looks like it's tomorrow because of the clock
 
I figured since I wasn't using the std::string interface then I might as well just take in const char* and made the extra overloads.
 
but it's only tomorrow once I wake up
@Jefffrey nobody seems to care if I go to work at 12 as long as I do my job
 
@Rapptz I like to live dangerously and take const char(&)[N] for that.
 
I mean I asked to be safe
12->20 is a nice schedule for me
 
1:03 AM
@LucDanton I was contemplating it :p
 
@Rapptz oh derp
@Rapptz I did not spot the overload for std::string - I have no issue with that at all
 
lol yeah it'd be pretty stupid if I only took in const char*
I hate when I have to do .c_str()
 
yeah I thought you were doing that
which is why I asked :P
 
btw if you overload on const char* and const char(&)[N] then char data[] = /* init */; will be accepted by the first overload.
 
I really need to write a buffer_stream or something :<
stupid deprecated std::istrstream
 
1:06 AM
What would the second overload be accepted on, then?
 
Ell
I forgot what strstream did
 
@Rapptz what do you need it for?
 
Isn't char(&)[...] a better match then const char* (meaning it doesn't require an array to pointer decay)?
 
I already have the source of bytes
It doesn't make sense for me to copy it again for std::istringstream
Strikes me as odd
Why can't I just provide my own memory buffer? etc
 
I fail to see what you're trying to do/what the problem is
 
1:08 AM
get a stream interface on a blob of bytes that I already have
 
To riff on a theme: I told you about std::streambuf dawg :v
 
@Rapptz for parsing?
 
Oh yeah. You did.
I wonder how I did it for my extractor then.
struct readbuf : public std::streambuf {
    readbuf(char* str, size_t n) {
        setg(str, str, str + n);
    }
};
and then I constructed an std::istream from that
works for me
 
…I helped?
 
this was before our format fiasco :p
predates it by a good 3 weeks
I originally used std::istrstream but the 2 paragraph warning kind of annoyed me
 
1:11 AM
I recall you were surprised that I used std::streambuf at all. But you were actually inquisitive then?
@Rapptz If it is a fiasco, then it’s not so much ours than it is yours!
Despite my help, tragically.
 
I'm pretty sure I got that snippet from SO.
I just adapted it slightly.
 
user1646075
@Rapptz what state is the formatting in
 
non-existent
 
user1646075
? pulled it?
 
Sep 20 at 0:34, by Rapptz
user image
 
user1646075
1:16 AM
nice. very neat
 
The zz will not hold!
 
it was during that time
wow clang diagnostics suck
oh never mind, it is I who sucks
I've been spoiled by member function pointers.
 
I’m not following. The entity decltype on a member?
 
I have a huge project that I need to do, and it's due tomorrow. My whole project was on my laptop who's keyboard has water in it, so I can't really access my work. In the end, I'm stuck having to redo a whole month project in one night.
 
Yeah I didn't think it'd actually be just a plain int
 
1:22 AM
I've never used coffee before, now might be a good time to start...
Can anyone vouch for the effectiveness of caffeine?
 
user1646075
@Nooble plug in a usb keyboard
 
@Nooble I can
 
@Nooble Absolutely. Makes you go without issue.
 
Don't drink coffee.
 
@aclarke I don't have one, only a bluetooth one sadly.
 
user1646075
1:23 AM
@Nooble caffeine may or may not make you feel a tiny bit hyper
 
You'll develop a caffeine dependency.
 
user1646075
@Nooble tightvnc from another machine?
 
@Rapptz You prefer enemas?
 
user1646075
@Rapptz oh yeah, trying to quit coffee REALLY hurts
 
@aclarke I do in fact have a SSH running on the thing's startup. But I have no time really.
 
user1646075
1:24 AM
or if windoze, is remote desktop still an option or is that now a pay-fer
 
usually, to get rid of one addiction I form another
so... just replace coffee with beer or something
 
@aclarke It's an option.
 
once you're done
 
@Nooble Why didn't you back up everything in the cloud? :P
 
@MarkGarcia Captain Hindsight.
 
user1646075
1:25 AM
@MarkGarcia most places have porn clauses in their TOS
 
off to sleep I guess, it's late enough
 
@LucDanton Wait what?
 
@aclarke Only in >= Pro I think.
 
cya
 
@aclarke ._.
 
user1646075
1:25 AM
@MarkGarcia bastards
 
user1646075
@AlexM. ciao
 
@AlexM. Sleep well.
 
@Rapptz You suggested not to drink it, so I was wondering.
 
I have a bottle of 5 hour energy laying around.
This might work.
 
Oh.
 
user1646075
1:26 AM
@LucDanton a coffee enema is a really quick way to get the buzz. or so I've heard. Mark?
 
Anyway I should probably clarify that when I said ‘makes you go’ I was making a joke about the diuretic properties of caffeine.
 
@Nooble Yup. Still caffeine.
 
user1646075
@MarkGarcia and 3 cups of sugar. Noobles, go the coffee and become a man
 
So there's this fancy touchscreen coffee maker in my kitchen. I think it's called... K-Cups
 
user1646075
@Nooble that must hurt
 
1:27 AM
I'm just gonna get a cup.
It can't be that bad.
 
user1646075
I like my coffee like I like my women.
 
user1646075
Cold, pale, weak and bitter.
 
And all joking aside I’m not super fond of using coffee just for its alertness/wakefulness effects.
 
user1646075
@LucDanton balance it with a shot of whiskey for a neutral effect
 
just keep yourself occupied.
Your body will automatically keep you awake if it sees that you're doing something and are hesitant to going to sleep
That's why if you're super tired at some point during the day but overcome it then you're no longer tired.
 
1:29 AM
@aclarke He needs energy. You don't want him to blackout right? ;)
 
In the midst of putting a K-Cup inside the machine, I decided against this because coffee is hot. And I don't like hot things, temperature wise.
 
Iced coffee!
 
^ Don't have any
Anyways, I have a cup of water and an 11 inch laptop, I'm set.
 
I need to restock myself.
 
:@
 
user1646075
1:30 AM
@MarkGarcia i mean, if he avoids the caffinated lolly-water, and has a straight-up triple-shot of espresso, he'll be much better off.
 
user1646075
@Nooble drop in an ice cube
 
Just think of the deadlines and all those shots of adrenaline would make you feel very awake.
 
user1646075
also an espresso shot will cool down really fast in a normal ceramic mug
 
user1646075
@Nooble KEEP THE WATER AWAY FROM THE MACHINE!
 
What's the analogous of while(ss >> stuff) but without >> stuff?
Is it while(ss.good())?
 
user1646075
1:32 AM
rename ss to so and it will read better
 
@Rapptz Go with while(ss). If you want to know what that actually does check out what the explicit operator bool is specified to perform.
I’m fairly sure it’s not in fact good(), typical stream trap.
 
Seems to be !ss.fail()
 
user1646075
rename ss to durp
 
@Rapptz Not sure if eof is fail.
 
but I'll just use while(ss) since it's cleaner
 
1:34 AM
Or do you mean !ss.fail() is bad?
 
no I mean explicit operator bool() returns !fail()
What the hell is %m
 
user1646075
in printf?
 
user1646075
errno string i think maybe
 
An optional 'm' character. This is used with string
conversions (%s, %c, %[), and relieves the caller of the need
to allocate a corresponding buffer to hold the input: instead,
scanf() allocates a buffer of sufficient size, and assigns the
address of this buffer to the corresponding pointer argument,
which should be a pointer to a char * variable (this variable
does not need to be initialized before the call). The caller
should subsequently free(3) this buffer when it is no longer
required.
 
user1646075
oooooo
 
1:38 AM
guess this is a POSIX extension
 
@aclarke Haha.
I know.
I spilled the tiniest amount
Like a drop
At first only the e key wasn't working
 
@Rapptz Did you also know that this use of test::stuff is valid because it’s an unevaluated operand?
ffs Internet hiccup
 
Which was a problem, because E was in my password.
 
@LucDanton Hm? What do you mean?
 
So I started shaking the computer in an attempt to get rid of the water. It only spread it I guess.
 
user1646075
1:39 AM
@Nooble first action is to go mental, shaking the thing upside down ASAP
 
@Rapptz There are limited ways of using a qualified-id to a non-static data member like that. This is one of them.
 
user1646075
more tappy type actions to dislodge it
 
@aclarke As is tradition.
 
Oh that.
 
user1646075
upside down. also that isopropyl stuff in moderation but it can soften some materials
 
1:40 AM
I am really disliking iostreams right now.
 
@aclarke Rubbing alcohol is a miraculous cleaning agent
 
user1646075
my phone-with-a-real-keyboard got a splash, so i sprayed the alcohol to dry everyhting. when it dried the keyboard was all spongy ;-(. In 2 days, it had reset and was good as gold. Phew!
 
user1646075
thought i killed it one way or the other
 
Alcohol to dry?
I get that it evaporates easily, but using it as a drying agent?
This laptop...
768mb of ram
 
user1646075
it disperses the water, and thins it - the water shakes out as part of the other fluid, thus there's less water in the remaining fluid
 
1:44 AM
Im on internet explorer just because it will be hell downloading something else.
@aclarke But in a situation where the water is inside somewhere unreachable, you would need a considerable amount of alcohol to reach the water, at which point there would be to much alcohol to water.
 
user1646075
Wonder if you can drink isopropyl. Mark?
 
user1646075
there's never too much alcohol
 
It's probably unsafe...
 
user1646075
probably!
 
Because, you know, it stings when put on a cut.
 
Ingesting it would be, quite unpleasant.
 
user1646075
so does chili sauce
 
Good point.
 
Iced coffee.
I need some.
I'm feeling pretty tired, and it's been 9 minutes.
 
1:54 AM
It's 10 PM man.
Quit being a casual.
shakes fist
 
IM NOT TIRED AT ALL
I'm so energized.
Hey Rapptz wanna take a walk in the park?
Huh?
Huh huh huh?
 
I will pass.
 
user1646075
@Nooble what are you planning to get there that will keep you awake ???
 
I would like a better sscanf for C++
 
user1646075
Just Say No.
 
1:56 AM
I might as well just use it
 
@aclarke Amphetamines are real good
 
user1646075
@Nooble ohyeahmanreallygoodreallygoodkeepsyougoingsomuchfuncantwaittosleepnextweek
 
@Rapptz Well, you have the format spec already :)
 
scanf takes in pseudo-regex!
 
I'm like, 3 to 4 hours away from finishing.
But it's okay, I got my pal Cocaine with me!
 
1:59 AM
You really can't stay up until 1-2 AM?
 

« first day (1473 days earlier)      last day (3481 days later) »