« first day (949 days earlier)      last day (4001 days later) » 

12:01 AM
7
Q: How offensive is it to call someone a "slag" in British English? (NSFW)

BillareOne more colorful slang term I gleaned from the British movie I recently watched is slag. In the movie, it was used in curses like, "Fuck-ing dogs! Slags." "Right slag, that one." Now I know via dictionaries that slag means "a loose, promiscuous woman." But there are multiple slang terms for ...

ahh...
 
That question is shitty.
 
..or skanky.
 
lol
in C#, 22 mins ago, by Grixxly
Jon Skeet programmed Chuck Norris to beat the crap out of himself...
 
It is interesting. Why is it that people assume the person IS the message all the time?
 
Anyway, best of luck to all those trying to get off with someone tonight. I'm going to get on, (bed).
 
Ell
12:07 AM
Night night
 
user1182183
I really like this example of hello world, what's your favourite? ;d
 
@ThePet waaaiiit, you have two variables in the same scope with the same name....
 
user1182183
@MooingDuck it compiles, it works, lll 111 lll111111l1l1l1l1l1
 
@MooingDuck which two?
 
user1182183
yes I know eyes hurt
 
12:18 AM
@Code-Guru llllll and lll11l
oh wait. stupid font
 
lol
 
on my ideone screen the l and the 1 are completely identical
 
Do people learning HTML have a "hello world"?
 
yah...the ell's can look like one's with the wrong font...
 
user1182183
@MooingDuck Troll ideone xD
 
12:19 AM
<html><body>Hello, World!</body></html>
 
user1182183
@Code-Guru won't pass the html validation
 
hrmm...do I have to have a <head>? Been a while...
 
user1182183
or will it?XD
 
I thought HTML5 needed a head.
 
12:21 AM
<html><head><title>Hello, World!</title></head><body>Hello, World!</body></html>
 
user1182183
@Code-Guru 3 Errors, 4 warning(s)
 
Line 1, Column 1: no document type declaration; implying "<!DOCTYPE HTML SYSTEM>"
Line 1, Column 12: document type does not allow element "BODY" here
Line 1, Column 39: end tag for "HTML" which is not finished
 
user1182183
Great job! :D
 
apperently title and head are not required
oh my link checks html v4
 
user1182183
seriously, what if browsers broke on 1 html error.
 
user1182183
12:22 AM
DEAD INTERNETZXD
 
ah, it fell back on html v4 since there was no doctype
 
user1182183
like, code obfuscation by just following the C++ standard.
 
Oh. Maybe what was required in HTML5 was the doctype, but I really thought it said it required certain elements.
 
@MooingDuck <html><head><title>Hello, World!</title></head><body>Hello, World!</body></html> got rid of all but the first error
 
user1182183
I would change my nickname to Sofa-King Low Prices! but I don't know if I will regret it or not
 
12:24 AM
so apparently <head> is required
 
user1182183
what do you guys think, just back to Gam Erix or Sofa-King Low Prices! ? :D
 
Is there a history of hello world programs besides wikipedia?
 
@Pawnguy7 Did you try google?
 
What's more to get?
 
user1182183
> Oops! There was a problem updating your profile:
Display name may only be changed once every 30 days; you may change again in 12 hours
 
user1182183
12:27 AM
just fucking trolling me...
 
Ell
I want to understand noise
 
@Ell if it could be understood it wouldn't be called noise...
 
@Code-Guru here's what I got: ideone.com/rkJrfT
@ThePet change your name on programmers.stackexchange.net and then propogate to all networks
 
@MooingDuck umm...you are compiling HTML as C++? =p
 
user1182183
@MooingDuck um okd ; d
 
12:31 AM
@Code-Guru ideone doesn't have an HTML/XML option
 
user1182183
Lol it seriously works.
 
wow ._. 3 hour interview? How does one talk for that long?
 
user1182183
@Crowz don't talk, fuck :D
 
for three hours?
 
I have had several all-day interviews.
 
user1182183
12:33 AM
yeah it's possible, but ye you will be exhausted as shit..
 
as in 8 hours
 
... all-day interviews? That sounds... if I heard that I'd just say "sorry nope" and find another job
 
user1182183
I'm also wondering, how could one "detect" if a certain open source library is used in a (compiled) program.. especially small libraries (4 cpp 4 h files, total 80kb)
 
Eclipse is complaining because findMiddle doesnt return nothing, just put return 0 to avoid it — anakata 1 min ago
because returning 0 will fix everything
well, I'm out. Gnite all.
 
night ;_;
 
Ell
12:42 AM
@the pet for example on windows you could search for a loaded DLL. But why? O.o
 
user1182183
@Ell because I heard a story some linux guys have found out some MS Windows program used some GPL code and MS had to release the source or something
 
user1182183
a linux friend told me
 
very result on the first page of google seems to cite the wiki article...
 
1:03 AM
Yeah! I'm now at 2K! Congrats to me.
 
yiz
Breaking news: grumpy cat eats duckling & suffers from acute food poisoning
 
@yiz Clarification: duckling survives. :)
 
What do you think could be used for a complicated hello world besides recursion and/or template metaprogramming?
 
I'd like to see the recursion one.
 
@Pawnguy7 Anything with constexpr.
 
1:16 AM
Now that I think of it, so would I...
 
@Pawnguy7 Just tried a naive solution but I don't think it's possible as it doesn't converge.
 
@Rapptz Character by character?
 
yeah it doesn't converge
 
Not sure what I was thinking of. I think I was thinking of the templates and got there somehow.
 
I have a linux question
 
1:24 AM
hey jabjab
 
@Pawnguy7 hey pawn :D
@Pawnguy7 you know linux?
 
hardly.
 
@DemCodeLines Yo
 
@DemCodeLines How's the girl?
 
1:25 AM
:D
hmmm
 
so, what about linux?
 
using KDE
I hate it that a maximized window
cannot be closed by simply moving the mouse to the upper the left corner
and clicking
because, that overshoots the x button
upper right I mean
 
@CaptainObvlious what?
 
1:40 AM
@JABFreeware end of a long day lol
 
well anyone who yawns at me will face my wrath
 
Yaw- wait, what?
 
As I said. I don't know Linux.
 
yawns
 
user1182183
1:45 AM
 
user1182183
lol was just reading a question here on SO
 
user1182183
xD
 
2:09 AM
What IDE is that?
 
Visual Studio 2008
 
@MarkGarcia I don't know about her, but I am not very well... :D
 
why am I so beautiful? ;-;
 
@DemCodeLines You're sick?
 
No, I am not very well in terms of, like, this whole connection with her thing
 
2:17 AM
@DemCodeLines It took me a while to get it. Nah. Don't worry about it.
 
The thing is she is complete stranger. That is how I have to treat her. If I talk like a friend, it will be a very weird conversation. I don't know what to go up and say.
 
@DemCodeLines Then just talk to her as a person. Simple.
 
talk about what?
There is no ongoing topic to talk about in that class.
 
@DemCodeLines Anything. HIs and Hellos are talk as well.
 
*comes up and says "Hi"... *walks away. Isn't that a little weird?
 
2:21 AM
@EtiennedeMartel I went to IGDA, it was on mobile/social games. You werent there. I was sad
:P
 
@MarkGarcia
 
@DemCodeLines ?
 
@DemCodeLines did you talk to her yet?
 
Since yesterday? No.
But here is a funny thing.
 
@DemCodeLines Oh. I didn't see that. It isn't weird. Not at all. Very common among girls now.
 
2:29 AM
@MarkGarcia remember how I came here yesterday asking that if I say "Hey you look like somebody I should get to know..." then will it be weird?
 
Hey guy
You're still overanalysing shit
3
 
How I imagine DCL right now
 
@DemCodeLines No. Not at all.
 
yiz
Listen to Cat++, he's really smooth at avoiding all chicks
 
I am sure you do.
 
2:32 AM
@Borgleader I completely forgot there was something tonight
 
yiz
I have millions of emails to reply and I am sitting here on SO trying to get my meta qban lifted
 
Are you saying you're so bad a poster they've question banned you on meta?
 
@MarkGarcia :
yesterday, by DemCodeLines
"Hey, you look like somebody i should get to know. You're ____ right? And a sophomore? Well hey, I am _____ and I'm a senior. You know I've got your back...for the remaining 4 days haha."

If I approach a girl who keeps looking at me with that dialogue, would good things happen or bad things?
You remember that?
 
I don't know why, but I have always liked getting messages. Personal messages, I mean, not some automated stuff.
 
@DemCodeLines Of course.
 
2:35 AM
I had a dream that I went to this girl somewhere near her house (which looked similar to mine) and said, "Hey, you look like somebody I should get to know" to which her reaction was as if she found it weird. I then proceeded to say, "You're {name} right? And you are a sophomore right?" to which she replied yes smilingly. I said, "well hey, I am {my name}." I don't remember what I said past that, but that was quite amazing.
Of course, since then, nothing really happened in school today, but that dream was nice ;)
 
Refer to my previous message
 
@DemCodeLines ^^ He's an expert.
 
@CatPlusPlus told me to not be like him, ever.
 
Takes one to know one
 
yiz
@CatPlusPlus it is about who hates you, not how good your question is on meta. It is fairer on the main Q & A site.
 
2:37 AM
@yiz You're a bad poster
 
yiz
I am so not ... with that said I am not too good with timing my questions
momentum conserve - if someone downvoted you, unless there is an external force, they will continue to downvote you :(
 
Serial downvotes are reversed automatically
Also, bad poster
 
yiz
Yes if one person downvote you 30 times in a row then it would be rated as a serial downvoting, not 10 people who downvoted you 3 times each
 
Stop being a bad poster maybe
 
@yiz I never had any problem with my questions.
Seriously, it's not hard.
 
yiz
2:51 AM
now I need to get to work ... being freaking useless lately
woke up this morning from the pain in my right knee - thanks to the knee injury and half marathon last Sunday
 
You should relax, take a break from chat, and get work done. :D
 
UGH!! Every time I start posting an answer I hit tab twice and the enter lol
screw it. I'm done for the day
 
Hm.
I need a better way to threaded-monitor these things.
 
have any of you guys read "On Intelligence" by Jeff Hawkins?
 
QUESTION
std::shared_ptr : can I manually increase/decrease its ref-count ?
 
3:09 AM
@ThePhD Why would you want to?
Are you doing dirty stuff again?
Derpstorm, you're gonna get UB again if you're not careful.
 
=[
But
I'm just manually keeping track of how many things refer to an instance
and when it's time is up, I destroy it
I was gonna use a unique_ptr and a custom deleter, but I thought
std::shared_ptr would do the job
 
@ThePhD Manually. That's not what shared_ptr is meant to do.
 
Guess I'll just use a ref-counting custom deleter.
Or maybe I'll write a ref_ptr that can take any deleter.
 
shared_ptr can have a custom deleter.
 
But it's overkill because I never copy the pointer itself. It's stored statically.
Unless I did something like stored a shared_ptr on each of the classes that refers to that resources
when all the classes die, so does the shared resource.
Technically a waste of space, but.... eh.
 
3:22 AM
Use boost::intrusive_ptr.
 
intrusive_ptr ... that's a new one.
 
Hey
Anyone do embedded work here?
 
Not yet.
 
I have a quick question regarding the NRF51822 chip
 
@IDWMaster just wiht my
with ...foot
 
3:25 AM
@CaptainObvlious What architecture does the foot use?
 
@IDWMaster Didn't you just ask this like a week ago or so?
 
@IDWMaster ass
 
Yeah. Nordic still hasn't been able to provide reasonable assistance
 
Actually I haven't done embedded work in quite some time. Used to work on OS-9/OS-9000
 
Issue is a high power usage problem
using .006 mA on idle
way too high
 
3:26 AM
way back when if(NULL == ptr) was relevant
 
@CaptainObvlious You mean 0 == ptr if NULL isn't defined as a macro?
 
@IDWMaster yup yup.
 
And on this device, 0 is actually the address of the interrupt vector table
Interrupt tables are done in hardware now
Anyone have any idea why this device would be using so much power?
 
@IDWMaster One common problem is an unused input that hasn't been tied to either Vcc or Vgg, so that input is floating, letting part of the chip oscillate. Excessive power consumption tends to be fairly chip-specific though. General knowledge of embedded devices isn't necessarily much help.
 
4:29 AM
morning
 
Good morning.
 
Moarning.
 
morning
 
evening
 
HERETIC.
 
4:33 AM
combo breaker!
that means 24h ban
 
hmm
when the user compares a signed and unsigned number, what to do?
 
flog them and make them wash your car
 
signed is casted to unsigned
 
@DeadMG Probably best to just not allow that combination at all. Anything you do will be wrong under some circumstances.
 
4:36 AM
No implicit conversions
 
Some implicit conversions are nice. :c
 
*Wide*ning conversions?
2
 
e.g. int8 -> int16 -> int32 -> int64
Yeah, widening ones.
Same with uint and stuff.
@StackedCrooked Oho, I see what you did there.
 
@StackedCrooked Seems to me like the other way around would be better.
 
No implicit conversions
 
4:38 AM
then you only might get surprising results when the unsigned value is out of the range of the signed.
 
@DeadMG yeah, it'd be more intuitive that way. (i was just describing C++ behavior)
 
screw C++ behaviour, I know it's broken in this regard
 
whats up
 
Really, only upcasts are the best.
Integer upcasts, anyways.
Downcasts are a no-no.
signed should also not be converted to unsigned.
 
I could also try to convert say a uint32 to an int64
that would preserve it's whole range
 
4:40 AM
Oh, that too.
That's fine as well.
 
 
@DeadMG Neither is really ideal. If you insist on supporting it at all, force and up-cast to a type that supports all the values of both types (e.g., unsigned 32 bit and signed 32 bit -> signed 64-bit).
 
And what are you going to convert uint64 to?
 
@CatPlusPlus Nothing.
 
@CatPlusPlus If you're at all smart, you do what you should have for the other types, and don't support the combination at all.
 
4:41 AM
int64 also converts to nothing.
 
well, with LLVM I can request an integer of whatever width I want
 
More special broken cases
 
@CatPlusPlus emulated uint128
 
so I can use an int128 or uint128 if I want to
 
@CatPlusPlus Thus my original suggestion: just don't do it at all. Anything you do is going to be broken for at least some cases.
 
4:42 AM
Yay implicitly created types
 
Pretty much casts are only allowed where the set of all representations in one type is equally fully representable in another.
 
@JerryCoffin Yup
 
hmm
 
@ThePhD More special cases woo
 
(in)equality comparison is fine
 
4:43 AM
@CatPlusPlus That's not special. That's a rule.
@JerryCoffin But still, I don't think giving someone an error when they pass an 8bit number to a 16bit function parameter is the right way to go, especially if they're of the exact same signedness.
 
That's a rule for a special case
Integer types are really not that special
No implicit conversions
 
User-defined conversions can be written for user-defined types. Integer types can have written implicit conversions.
 
er, I actually never said anything about user-defined conversions
although I think that I may have implemented them by accident
 
User-defined implicit conversions are even worse so
 
@ThePhD I'm not the one who said no implicit conversions. All I'm saying shouldn't be allowed is mixing signed and unsigned.
 
4:45 AM
they're a bitch to implement too
I still haven't gotten it right
 
@JerryCoffin Ah, okay.
 
o m
 
@ThePhD Two distinct types
Explicit better than implicit
 
@ThePhD Of course, I'm not saying all (or even most) other conversions should be allowed -- just, for the moment, commenting only on the question of combining signed and unsigned.
 
o fsSssssssmmmmm................................... mooo ;kl;;lm aaaaaaaaaamcc 448
 
4:47 AM
Great
 
iigomore that sorryy
 
Start using English or stop talking tia
 
keys half dom't respomd
 
Then buy a new keyboard
 
what I really need is to implement explicit vs implicit
or, hell, just entirely rework that section of the compiler
damn, I finally found a place where prvalue vs xvalue would have been a useful distinction to make
 
ref_ptr, here I come!
 
lol
are you still fighting with that?
 
Maaaybe.
 
Ken
ref_ptr?
 
ref-counted pointer.
 
Ken
5:13 AM
What's that?
Ah
 
@Ken shared_ptr, with subtle new additions (mostly errors).
 
Ken
Good luck ;) sounds like fun
@JerryCoffin Hehe okay, not so fun now.
 
=[
Well
The other way I could do it (with shared_ptr) is - rather than have a static instance - is to just have a shared_ptr on every class that references a specific resource
 
@Ken Well, I am being a bit negative, obviously. I haven't seen anything telling about what he things he's going to improve over shared_ptr though.
 
and when all those classes die the resource dies.
@JerryCoffin Well, it's probably an XY problem. I have a resource that needs to be shared across a bunch of classes, but only active if there are classes alive, and dead when there are no instances of that class alive.
My firs thought was std::unique_ptr + ref-counting variable, and just killing the std::unique_ptr after the ref-counting variable hit 0.
 
Ken
5:17 AM
So what's your strategy, if I may ask?
 
@ThePhD That certainly sounds like a classic case of what shared_ptr is intended to accomplish -- shared ownership of that resource by objects of those classes.
 
@ThePhD Do you mean instances of classes?
 
@JerryCoffin Yeah. I guess the XY started when I decided to make the resource static (so all classes could access it).
 
@ThePhD Er, that's a very bad idea.
 
Yes, so I've noticed.
But the data has to be usable by all class instances (I am thread-protecting it, yes, before you say that).
 
5:19 AM
... then pass a shared_ptr to it to their constructor?
 
@ThePhD Making it static doesn't accomplish what you described -- it just means the resource always exists (for a loose enough definition of "always").
 
This is internal data: it's an implementation detail. I can't ask the users to pass some thing into it: that'd require exposing a global or something for them to actively pass into the class.
 
@ThePhD Ok so you're making a smart pointer to hold a ref to a static variable that needs to be destroyed when the ref count goes to zero but retain the actual object until it's storage duration ends?
 
@CaptainObvlious ... Uh. Maybe?
 
Ken
I'm also confused by that. ThePhD, should it stay until the end or get deleted earlier?
 
5:22 AM
@ThePhD You absolutely can ask them to pass in a value of an internal type. Just make it an incomplete class so they can't fuck with it.
 
From what you're describing, you want the first reference to the object to create it, then when all references to the object are destroyed, it gets destroyed. And (probably) later, if you create a reference to it again, another gets created.
That already has a name: "Phoenix Singleton".
 
I guess Phoenix Singleton does describe what I want to do...
... But it's a Singleton q_q
 
Hmmmmmmm. Well that measn the object can exist in an uninitialized state (e.g. nullptr in member variables). Ick
 
4 mins ago, by DeadMG
... then pass a shared_ptr to it to their constructor?
 
@ThePhD It that's the case it sounds like std::shared_ptr with a custom deleter that calls an "uninit" member function would suffice
 
5:24 AM
@DeadMG Hiidiiing. Must hide the details!
 
maybe pimpl
 
@ThePhD You can't hide your data dependencies without doing something so bad it's not worth it.
 
=[
Ooh, so you're all sweaty and shit?
 
@ScottW I had two packs of smokes and ran up three steps. Got the same rush!
 
Mmmm let's get you even more sweaty~
@CaptainObvlious Roflmao
 
5:26 AM
@ThePhD What you're describing is singleton behavior. Taking that word out of the name isn't going to magically turn it into a better idea/design.
 
man do I feel pumped
singletons almost always suck
 
@JerryCoffin I... .. I guess I could just have one tiny little singleton...
It won't hurt.. IT'S JUST ONE DON'T JUDGE ME I HAD TO DO IT.
 
We had three singletons when I was at Intel. Even after I proved how shitty it was to use them it still took 6 months to get em to dump two of them
 
no you didn't and yes we are
 
@ThePhD Go to the bad part of town, and look at some of the junkies lying around staring into space. They said the same thing...
 
Ken
5:28 AM
Hmm.. why dislike singletons in the first place? I like 'em ^_^
 
wtf is wrong with you
 
I love singletons like Pat Robertson loves GLADD
and not the secret love either
 
Ken
Still have no idea XD
 
@Ken We're talking about crappy code, not women who want to date but not marry.
 
=[
q_q
 
5:32 AM
 
There's no escape.
It's either Singleton Death or... ... well, Singleton Death. =[
 
no singletons, man
 
In the end I'd have to ask the user to create the Drive-Monitor for the drive of the FileSystemMonitor they're making, pass it in everytime they make a FileSystemMonitor, and then keep once Drive-Monitor for each drive they have FileSystemMonitors in. =[
 
@CaptainObvlious This is one of those places I'm willing to play like a christian, and simply believe it's crappy enough without looking.
 
There's... ... there's gotta be an easier way >_<
 
5:34 AM
@ThePhD what's wrong with that?
 
@JerryCoffin lol indeed
 
@DeadMG Who wants to create a Drive Monitor when they want a File System Monitor and keep track of all the Drive Monitors themselvs? D:
 
@ThePhD Of course, you could simply create one object that can hold all the DriveMonitors the user needs, and then just ask them to create that and pass one in.
 
IDriveMonitors I suppose...
.... FFFFFFFFFFFFFFFf but it feels so uncleeean.
 
watno, that's not what I just said.
 
5:36 AM
Like my implementation has leaked q_q
.. WAIT
AHA
I FIGURED IT OUT!!!!
AHAHAHA, INGENUITY AT ITS FINEST!
TO THE CODE CAVE!
 
oh God
 
if he comes back out wearing tights I am SO gone
 
lol
 

« first day (949 days earlier)      last day (4001 days later) »