« first day (1236 days earlier)      last day (3938 days later) » 

00:00
@Jefffrey can you give me a decent res .png or something.
@thecoshman of the favicon?
oh the original logo
I remember seeing it in a Blender tutorial and the guy was like look at all it can do and then ended with "its only available for mac" fuuuuuuuuuuuuuuuuuuuuuu
@thecoshman erm, it's in the folder I've linked?
@Jefffrey there's just those pxm files :S
00:01
@thecoshman there's a .png, .psd and .pxm in there
of the same logo
gimp does support (partially) PSD files
oooh, it's auto previewing the png files :P
yeah
in the PSD you should also find every single pen stroke vectorized so that you can edit single elements of the image
00:04
think I might need to manual pixel paint it
but I'm not sure tbh... I don't have Photoshop anymore. That file has been generated by pixelmator.
Favicon is fine
it's just a red blur
Get better monitor and/or eyes
Besides it only has to be different than no favicon and other favicons
At 16x16 you don't get much detail anyway
you can, I will
well, here it is. at least you can read 'c++' now.
2
¬_¬
@sudorm-rfTelkitty you are slow
either way, night
53 mins ago, by Borgleader
> 1 in 10 Americans think HTML is an STD, study finds (Source)
@thecoshman night
user3010322
> 42% said they believed a "motherboard" was "the deck of a cruise ship."
user3010322
00:23
Very nice!
@thecoshman yes that's better
I vote for ya
^ this stinks
Not really its a chance for you to make a copy and make much money from it
SPEAKING OF WHICH
> I'm working on an app and I'm trying to do something but I don't really know how. I'm really new to cocos2dx so I'm using a source code. The game is similar to "Flappy Bird" game (Source)
^ Simply too good
It was especially nice in my RSS reader. When the clue frame scrolled in with a delay
00:39
@sehe do your kids ask that many questions when you read them stories? :P
Not quite. But enough. My youngest just makes a sport out of misreading books (swapping out words with phonies to make it more interesting) or generally reading it backwards. Literally
And I certainly recognize the feeling of exhaust. I usually ask my kids "Okay, which of you is putting me to bed today?"
Only because the answer followed about half an hour after the question - and you have a track record of providing detailed (albeit accurate) answers to your own questions immedaitely after posing them! — Strawberry 8 hours ago
Ah, one of those
Also, someone who can't tell the time?
> The words he has chosen over this coverage have told me something different. I believe that the developer may have been targeted by the NSA or other government agencies because of the applications popularity. The original app was less than a Megabyte. The most popular clones are over 12 megabyte apk files. What is the extra data? Don't take my word for it. If that is the case it is for your good no?
I like NSA jokes as much as the next guy
but NSA targetting the Flappy Bird dev, that's just stupid =/
> ITT: People who think everyone is as greedy as them and would never give up a large amount of money for another person's well-being.
lol yeah
00:51
lolwut
Interesting technique. Quite niftily condensed into a short answer. Useful stuff. +1 +1
he really did it because he couldn't sleep thinking of how much addictive his game is
and those $ 50.000 per day were too much for him
OF FUCKING COURSE
@Jefffrey The extra data is stupidity and laziness of greedy devs who don't care about the size
@sehe or jpgs
or jquery
yeah, that too
00:52
can you do delete ++obj; if you have overridden the ++ operator for the object obj?
@sudorm-rfTelkitty don't overload ++
You can't over write an operator.
ever, except you are making an iterator class, or a bigint class, or any other class in which ++ actually makes sense and does what people expect it to do
> Wow, good thing he's a game developer, and not a drug dealer, he'd go broke worrying about his customer becoming addicted.
lol
All of them.... — Kerrek SB 4 mins ago
xD
01:00
@Borgleader lol
@sehe why doesn't this work? :<
@Jefffrey Because you're not calling the overloaded operator
oh right, it's a pointer
Also, that const_cast looks oddly out of place. Toplevel const adds nothing there
X const* would make a difference (and wouldn't compile)
@sehe yeah, I added it when it didn't let me compile it because the member function was declared const so this was of type const X* const and couldn't be converted to X*
then I removed the const from operator++() and forgot to remove the const_cast
You made a mess of it :|
01:08
I meant to
;)
Woot
I never use const_cast in serious code
@sehe although if operator ++ is overridden, it probably will do something fancy - like increment a counter of some sort or something
@sudorm-rfTelkitty Hold on. Fixed: coliru.stacked-crooked.com/a/47d5f9feb523eaaa
I am confused ... returned nullptr which got deleted doesn't cause any issue?
@sudorm-rfTelkitty Why would it? en.cppreference.com/w/cpp/language/delete
@sudorm-rfTelkitty deleting nullptr is safe
@sudorm-rfTelkitty nullptr is basically ignored by delete
> I invested $15,000 into Bitcoin.
Or $803.15 now, I guess.
lol
$207,870 of which got mysteriously lost in the hands of MtGox staff
@sehe you got your math wrong I think
01:15
You got the historical rates of bitcoin wrong.
And they are plenty wrong :S
@sehe ta duck :) x
> So, is there a way to do this? In MySQL, please; don't give me any PHP/ASP.NET/etc!
lolzing. I hadn't even seen that. That's soooo vile.
jesus fuck
Sounds ok
01:22
you really have a "donate" button on your profile... @LightnessRacesinOrbit
you are cheating life man
Go! Donate a sarcasm pledge
user3010322
He's making mad cutta.
@Jefffrey Joke all you like; I've made $4,500 from it so far.
I think I'll add one myself
ahahahahahahha <3 @ @sehe
01:26
:D
guys, can we do this with math operators without condition/ternary-operator: a = a > 255 ? 255 : a;
with xor magic or something.. :)
lol
oh gawd
01:26
$4,502.34 (or something) then
38
Q: Fastest way to clamp an integer to the range 0-255

Mark RansomI'm working on some image processing code that can generate pixel values outside of the normal range of 0 to 255, and I'd like to clamp them back into the valid range. I know that there are saturating SIMD instructions that make this a moot point, but I'm trying to stay within standard C++ code f...

ITT Jefffrey is only just figuring out what the Lounge is really all about
also catching up on 1.3 month old conversations
not you that's for sure
<3
Ah, @Mysticial already answered that
01:29
Mysticial is the benchmark queen
and i'm going to bed
@sehe, thank you so much! thanks a great read.
Next time, ask google :) It wasn't much work (I posted the answer in ~37s after your question, while I was busy making screenshots of mock donations in the chat at the same time)
@sehe good job google
01:39
@Annie In fact, this was my google search, and I couldn't help but notice there is a remarkable bonus hit in the first page of results:
user image
4
@sehe Also means that page has lots of links from other sites.
Shhh. Don't spoil the joke. The most important is (a) the query (b) the first two results
I've had this dumb thing for a week and didn't know why
Xeo
Xeo
0
Q: I wan't to know what i need to make a cryptocurrency maketplace / exchange

Maximilian WalterI had the idea of making a cryptocurrency market going through my mind and wanted to know what I would need for that. I do know that founding such a huge project requires some cash (like 10 - 20k) and I'm also well aware that I also have to consult an lawyer. But the things I want to know in deta...

I'll just leave this here for @Cat to laugh
@Xeo Tempted to answer "A brain"
Xeo
Xeo
01:43
@Rapptz ugh caret browsing
You wan't to have a brai'n — sehe 5 secs ago
@Rapptz There's a hotkey. F9 IIRC?
@sehe, with this approach graphics.stanford.edu/~seander/bithacks.html#IntegerMinOrMax, wouldn't we still need to test if its greater than 255, assign 255?
oh my bad
it should be min( _ , __ )
:)
Xeo
Xeo
@sehe F7
:D I don't use FF
Xeo
Xeo
welp, time to sleep, injection in 11h
01:46
injection of sleep in 11s
Wow. So many facts. I'm smacked — sehe 5 secs ago
> A lot cleaner
That's a fact. I didn't know that. I also wasn't aware it was more native on linux
I must admit that my ability to answer that twiddling hack with a 10-second google query made me quite happy. In fact, I'm going to sleep on it
Night all
Good night.
night
01:58
I'm off too. I've had enough of bullshit answers/comments today:(
yeah, well me too
night everybody
Just dropping this:
is it something really necessary (something that may change the output) or something I should do if I was to become a professional programmer? — user2967016 2 mins ago
@Jefffrey "Yes."
Is there an HTML parser for C++?
Using regex? :P
I can't believe there aren't any lol
> C++ code that looks like C++ (not so true anymore)
Some XML parsers are lenient enough to parse HTML.
> not so true anymore
What.
02:17
yeah I have no idea
The road to hell is paved with good intentions?
but I think this is actually one of the few cases where it's valid C but not valid C++
yeah I saw that
but I think they mean Visual Studio C++
Oh I take it back
for(i=0, j=0; i<max; j += ((++i)&1) ) because fuck maintainability
=/
02:23
hm?
not the worst thing I've seen
i can think of about half a dozen clearer ways to write that
lol I actually think it's clever
> A “for” loop with two variables, one increments every iteration and the increments every other iteration
you dont actually need 2 variables to fulfill this requirement, i/2 will do just fine
@Rapptz Clever code scares me most of the time because often "clever" code happens to be convoluted for no reason other than "look at me I'm smart I can write code no one else can understand"
@JonathanWakely maybe one day we'll have noexcept(auto) :P — Rapptz 5 secs ago
I kinda want it
@Rapptz how did you not get an accept for that answer =/
02:28
I think OP died
If he did that was in the last 4 hours
oh he hasn't accepted his last 4 questions lol
@Rapptz Better thing would be for the compiler to automagically do that for me.
user3010322
If I use all noexcept functions the function I just made should be automatically declared noexcept()
hence, noexcept(auto)!
02:33
I want noexcept(dealwithit)
@Rapptz That would be telling! (the compiler, and typing)
gonna restart slowfox
I'll try diffing C++11 and the C++14 draft.
why was it unpinned
the C++14 draft is missing some things
like std::apply, std::sample, std::string_view, and std::search stuff
plus all the other wordings that got accepted in the last meeting
Is optional included?
no that got removed
it's for a separate TS
02:46
@MarkGarcia i did that this morning, so many tiny changes (like the number at the top of every damn page :()
was considering buying some shitty thing on google play...but it's an in app purchase. And if you have no credit card set up already you can't make in app purchases. and the only way to set up a credit card with googlde seems to be to buy something on google play. Fuck you Google!
@Borgleader What tool did you use? I'm currently trying what's in this post: superuser.com/q/46123/174192
9
A: How to compare the differences between two PDF files on Windows?

EpagaWe also needed to compare PDFs at our company and were not satisfied with any of the solutions we found, so we made our own and just released version 2.0 today (9/5): i-net PDFC. It's not free, but we do offer a 30-day trial. It's written in Java, so it's cross-platform. What makes it special...

i tried that one
i hadnt noticed the "its not free" part though
@Rapptz I only want text, not the innards of tex.
Also tried that and got too much formatting noise.
02:50
damn
apparently that is the final draft
so why is all that stuff missing?
detex it
It's late
hey robot
@Rapptz The C++11 draft is also in another branch, while the latest C++14 draft is a tag in master.
C++11 draft is N3337 which is what I linked
> Somehow, I don't think they're understaffed. I think part of the problem is that they have two compilers: VSC++ (which they sell) and Office C++, which is used and maintained internally by the Office team.
wot
office c++? o.O
02:55
Link? (I'm intrigued)
so...msvc is not good enough for them to use it for developing office? :v
@Rapptz Quite possible, as RyuJIT also has somewhat a fork of the compiler.
Maybe std::apply, std::string_view et al don't exist :(
maybe I've been lied to
whoa
string view doesn't
03:02
it got accepted though
lol office c++
N3921 	string_view: a non-owning reference to a string, revision 7 	Jeffrey Yasskin 	2014-02-14 	2014-03 	N3849 	Library 	Adopted 2014-02
isn't that what the Adopted column means?
also std::is_final<T> and std::is_abstract<T> TIL that existed in C++11
compiler magic traits!
@thecosh I don't know what's wrong with the favicon.
03:19
Hmm, I need to find a general/robuts algo to split concave polygons into a bunch of convex ones (and those into triangles)
freshly baked bread
yum
user3010322
Ooh.
user3010322
That slimshader guy slams STL and Herb Sutter over VC++.
user3010322
But it was 8 months ago. I guess it's going to take some time.
user3010322
Too bad I'm working on glorified IT datacenters rather than being at STL's side for all this. =[
03:41
Well, to me he seems totally in the right
Herb even comes up with some bullshit about they held onto their promises by releasing CTPs
As if a CTP counts as a real release
Maybe CTP really means "Come To Papa". o.O
Intended to hush those of us rattling about VC.
C++ technical problems obviously
lol
@R.MartinhoFernandes It's just free bug testing for them.
And that for the next version because the updates rarely bring any VC++ stuff
I'm totally cool with betas. I'm not happy with trying to pass them off as actual products
terrible
~_~
sign, slow time of the day ...
04:40
Slow you say? I had time to answer a FGITW while playing a video game
04:53
The quality of questions tonight is absolutely terrible =/
I'll be lucky if I get any accepts
I'll go play some more HS :(
If I did not have so many things to do I would have entertained myself on meta
@Borgleader For shame.
Hush!
huh op delivered
now for the other one...
06:09
That time of the month ... the pain :'(
~_~

Online temple for Goddess of hacking

ping your high priestess for better coding skills
06:36
morning
@TonyTheLion morning :3
Good morning.
eh all the questions are terrible, ima watch some scrubs =/ and pray that op delivers
06:48
heyyyy
What's been happening in the Lounge?
@Borgleader Praying is going too far!
Is reading/writing to int any faster than to char/short? (On modern desktop CPUs.)
@StackedCrooked I don't think it makes a difference, unless its like a 64bit int on a 32bit CPU
I would say with char or short it will probably pad out the bits that are unused
and still write a 64/32 bit value
07:06
@StackedCrooked nonius it?
@TonyTheLion C++11 memory model requires that writing to char/short/int is thread-safe. So if a CPU can only write in units of 32-bit then the compiler must must insert padding. (But Intel can write in units of 8-bit, so it's safe.)
hmmm
The C++ threading model has nothing to do with the ability of the CPU to write a value in one atomic operation or not.
@TonyTheLion Yeah, especially when you think that it was just one trans-atlantic telegraph line not that long ago.
@MarkGarcia heh, true. Damn. That makes it even more crazy
@TonyTheLion if the CPU cannot do atomic writes then it cannot satisfy the memory model
07:10
True, but I'm saying that because the C++ standard make that guarantee that all possible types of CPU will have that, or will they?
I suppose that for some CPU's they may have to make it atomic using software.
The C++ standard requires the compiler to insert padding in case the target CPU does not support individual writes to narrow integer types.
ah
but as for your speed question, I doubt that int is faster than short.
but ask a smart person, like @R.MartinhoFernandes or @Mysticial
I'm just a noob, and there's that high possibility that I'm just wrong
However, in my case it's a 64-bit CPU.
the award for the best title goes to...
VS has been crashing on me. It just started this morning.
VS does that
@R.MartinhoFernandes it's just a crappy red blur. You can't see the text on it.
It crashed on me before, but not like this often.
hey hey hey! conference? What you on @R.MartinhoFernandes?
07:47
@thecoshman on what time that "conference" starts?
My tenants have bought a place and is going to move out in August
All the more reasons to speed the 2nd dwelling building process up
--- libc-a/memset.c
+++ libc-b/memset.c
@@ -1,6 +1,6 @@
 void *memset(void *_p, unsigned v, unsigned count)
 {
     unsigned char *p = _p;
-    while(count-- > 0) *p++ = 0;
+    while(count-- > 0) *p++ = v;
     return _p;
 }
seriously.
08:19
nice whose c lib is this
@JohannesSchaub-litb Android
how did it not crash before
@JohannesSchaub-litb I'm not the one to ask about that, I guess.
@BartekBanachewicz which part?
@thecoshman the one when you create a battery loadable in seconds from a spinning something suspended in the air
08:27
@BartekBanachewicz something got lost in translation me thinks, 'battery loadable in seconds'?
@thecoshman it's a spinnning something. "Loading it" means acceleraring it to proper speed
@BartekBanachewicz yeah, that page says minutes to get the full RPM
and generally when you talk about adding load to something, you mean something that will use the work/energy stored.
okay minutes then, it's no less impressive compared to regular batteries
@thecoshman that's what it does
i guess they don't want troll litb on the Lounge meeting :(
@BartekBanachewicz sure is. wonder how efficient the system is.
@BartekBanachewicz ... you don't 'load a battery with power', you load it with things that will draw that power out and use it.
08:31
@thecoshman That depends. It can get pretty good with superconductors.
@thecoshman oh fuck then charge. Polish wording uses "load".
my bad.
@BartekBanachewicz now if only they could come up with something practical :P
@BartekBanachewicz like I said, something got lost in translation.
> TIL Rio de Janeiro was once capital of Portugal, making it the only European capital outside of Europe
well I'll be
@thecoshman hey they're improving it
@BartekBanachewicz sure, they are nearly within 200 degrees of room temperature :P
@thecoshman that's p ok in space
don't get me wrong, I think it's awesome stuff, but it's still a long way of practical
@BartekBanachewicz yes and no. Try getting rid of heat in space, when you have the sun blasting you with light all the time, warming you up.
08:41
@thecoshman there's like vacuum everywhere
@BartekBanachewicz and? vacuum are a damn fine insulator you know.
@BartekBanachewicz yeah I know. Nice idea.
Though not really a 'gyro'
@thecoshman doesn't change the fact that stuff freezes almost instantly in space.
just a mother fucking huge ass fly wheel
@BartekBanachewicz vOv metal freezes in the baking heat of the Sahara, CO2 evaporates in the arctic. IOW those terms mean nothing.
@thecoshman when I meant "freezes" I actually meant gets pretty close to 0 4 K very fast
@BartekBanachewicz then no.
case point, the surface of Mercury, which considering it has not atmo' is good enough 'space'.
of course, the dark side is damn cold in contrast.
08:46
the surface of the planet is pretty much half-space at most
lol, I'll give you that
I don't think that sun energy shining on a sole human would be enough to keep him warm
well, now I think of it, without the atmosphere it might be a bit more than on earth alright
But my point is, something like a probe has to fight to keep it's temperature under control.
probest that exit our solar system don't really have these problems
space is cold, in general
@BartekBanachewicz what's to let him get cold? All you have is radiation, assuming you are wearing a suit thus preventing your liquids evaporating.
@BartekBanachewicz the lack of stuff kind of makes temperature and odd concept.
@BartekBanachewicz true
08:49
@thecoshman welp, that would mean that setting up a moonbase is much easier than I thought
@BartekBanachewicz yeah, the hard part is getting shit there.
should ask y'all KSP specialists :D
@BartekBanachewicz well, we kind of rely on unlimited budget :P
why does stuff freeze. i thouhgt in vacuum you cant freeze things
I wish std::mutex had an is_locked() function. so I could write assert(m.is_locked());

« first day (1236 days earlier)      last day (3938 days later) »