« first day (652 days earlier)      last day (4281 days later) » 

12:00 AM
@EtiennedeMartel seems to common in that hellhole called 4chan
 
@sbi He has a +50 bounty using the rep from that question. I wonder how his rep will re-sync if that question is deleted.
 
and I'm not even on 4chan, never go there, but on reddits 4chan subreddit
@Ell 3D porn?
 
Ell
real boobs :L porn is depressing
the fact you have to resort to watching other people have fun because you can't have your own
 
then fine, then you'll have to go out and be social and get yourself a girlfriend
 
Porn is boring. Only amateur is somewhat fun.
 
Ell
12:03 AM
porn is fun when I'm depressed
 
Still, Facebook FTW.
 
Ell
but I'm not atm (yay)
fff - facebook for fapping
 
have you ever wondered @Ell if there's someone in your immediate environment around you that's putting you down?
 
Ell
what do you mean?
 
@Ell I mean, someone IRL that's making less of what you do, or makes snide remarks or just generally says things that make you feel bad?
 
Ell
12:06 AM
I don't think so, besides my ex
she is mean to me :/ says I take things too seriously
 
she says things that make you feel bad?
 
I really cannot wait till that emo meeting happens.
 
Ell
well a lot of them are jokes
 
ah, well ever considered that could be a reason you feel depressed?
because she makes less of you.
 
Ell
yeah :/ but I can't not talk to her
she means too much to me :/
 
12:08 AM
Has anyone written a program to connect the emacs psychiatrist to stack chat?
 
but if she makes you feel bad, then how is she really any use to you?
@RobStarling wut?
 
Ell
I don't know :S I can't let go of her :/
she makes me feel happy most of the time
 
well, consider that maybe if you did let go, you may start feeling better
 
Ell
its only now and then she says something that makes me feel bad :/
 
Have you talked to her about that?
 
Ell
12:10 AM
I know I would, but i can't let go
 
@TonyTheLion, you don't know about "doctor"?? ( emacswiki.org/emacs/EmacsDoctor )
 
Ell
I don't want to let go
If I let go it means I will never have her
 
@RobStarling sorry never used emacs
 
@Ell Is that such a bad thing?
 
@Ell yea well, since she's your ex, she's not really yours (in the sense of girlfriend) anymore anyways
 
Ell
12:11 AM
if I hold on, it means even if it takes months or years I will still have a chance
yeah ive talked to her, she's tried to stop us talking for my sake
 
Sigh... kids these days :)
 
Ell
but I wouldn't have it
 
so for the sake of this one girl, you're will to feel like shit for all these future years?
 
Ell
I just can't let go :S
 
sbi
@Mysticial Well, let's find out!
 
12:11 AM
Rob Starving
 
sbi
@RobStarling What do you think @Tony is?
 
Ell
@tonythelion yeah :) at least it will show her how much she means when I finally get her back
 
ok
you make up your own mind :)
 
@Ell I think that's sad.
 
@sbi, a lion, obviously.
 
12:13 AM
I think I need more Haskell.
 
sbi
@Ell if
 
then write Haskell
 
I cannot.
 
then don't moan
 
Ell
but I'm making it my mission to get her back
she makes me happy
 
12:14 AM
@Ell Someone else might make you happy.
 
sbi
@RobStarling You're so shallow.
 
man, I'm so thirsty
 
then drink
 
@TonyTheLion Drink beer.
 
Ell
I have tried someone else :S it just hurt them :/
drink like a king!
 
12:16 AM
@EtiennedeMartel only have water, coke, orange juice or milk
 
@Ell Looks to me like you have a poor self image.
 
You don't drink coke. You sniff it.
 
Ell
well I'm going to Spain on Tuesday for 2 weeks which means ill be away from any English human contact, maybe that will help
 
not that kind of coke, but coca cola
 
@TonyTheLion Get out, get some rum, then put coke in your rum.
 
Ell
12:17 AM
I am fine with my physical self image, but I think of myself as socially inept
 
@EtiennedeMartel I don't drive and my right foot is fucking painful right now
so I'm not going anywhere
 
sbi
@Cheersandhth.-Alf 30 years, no?
 
Ell
then tonight....?
 
sbi
@Ell ...he'd post some hilarious food porn pictures. What else?
 
12:21 AM
It is time to sleep.
Später.
 
@ell: well my message disappeared? but anyway, i got a free ticket to a ball, complete with nice dinner etc. it was nice dinner
 
Ell
Später
what does that literary translate to?
ahh Okayy
 
hmmmmmmmmmmmm orange juice to my heart's content
funny that we haven't got liquid bacon yet
else I could have had some bacon juice
 
Ell
you can get bacon water tablets
make the water taste like bacon
 
Ell
12:27 AM
they're on think geek I think
also, bacon fat :D
 
oh lol
 
Does anyone know a micro-controller that is programmed with C++?
 
Ell
arduino uses something like it IIRC
 
Arduino uses a C-based language called "Arduino".
So, no.
 
12:39 AM
@Ell Später = "Later"
self-thwap of the day: "g++ still doesn't support the 'nothrow' token? Oops, wait...."
 
Ell
im nodding off so nighty night guys :) good chat @tony
 
good night :) No problem :)
 
Does anyone know a micro-controller that is programmed with C++?'
There, I asked it again.
 
user1182183
ANy linux freaks here? ; d
 
user1182183
12:54 AM
Disk /dev/sdb: 993 MB, 993067008 bytes
31 heads, 62 sectors/track, 1009 cylinders
Units = cylinders of 1922 * 512 = 984064 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000

Disk /dev/sdb doesn't contain a valid partition table

Disk /dev/sdc: 15 MB, 15663104 bytes
4 heads, 32 sectors/track, 239 cylinders
Units = cylinders of 128 * 512 = 65536 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
 
user1182183
Really, The F*CK, That usb was probably formatted by a witch!
 
user1182183
[root@CentOS6vm rafal]# lsusb
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 003: ID 058f:6387 Alcor Micro Corp. Transcend JetFlash Flash Drive
 
1:09 AM
Dammit my OS X died.
 
Hmm. g++ declares bool std::operator<(const std::shared_ptr<T>&, std::nullptr_t); although it's not in the Standard. I think I don't want that declaration to exist.
 
1:24 AM
Does anyone know a micro-controller that is programmed with C++?'
There, I asked it again.
 
1:34 AM
@user1515422 Most can at this point, the AVRs have a nice IDE
 
@aschepler It's standard.
 
@Collin I'm too lazy to find them. Could you link me to them?
Should I get a 16-bit or a 32-bit micro-controller?
 
1:54 AM
anyone around here know a bit of haskell?
 
@ITNinja I'm fond of curry. Does that count?
 
@Managu curry? o.o
 
Haskell Brooks Curry (September 12, 1900 – September 1, 1982) was an American mathematician and logician. Curry is best known for his work in combinatory logic; while the initial concept of combinatory logic was based on a single paper by Moses Schönfinkel, much of the development was done by Curry. Curry is also known for Curry's paradox and the Curry–Howard correspondence. There are three programming languages named after him, Haskell, Brooks and Curry, as well as the concept of currying, a technique used for transforming functions in mathematics and computer science. Life Curr...
(who the language Haskell was named after)
 
oooohhhh now it makes sense >.>
 
@GamErix just so you know, it's generally a horrible idea to zero out a drive while it's mounted. i'd be shocked if it worked
 
2:00 AM
Also the namesake of the technique "currying", a useful concept in functional programming and fairly important in Haskell.
 
im just trying to learn functions, but im getting a bit of a fuss haha. heres what im trying to do: lol x = (if x==101 then "lol" else x) but its throwing errors at 101 >.>
 
I'd suggest you study the type of x.
And then the type of lol x.
 
lol :: Integer -> ???
 
Do you know if you can figure out the type of an if expression?
 
Or is it lol :: Num a -> ???? I never did understand how literals ended up being typed in Haskell.
 
2:12 AM
The '????' is the interesting part.
 
Well, yeah. Hat's off to you; I simply don't know enough Haskell to have caught that lol can't have a consistent type signature. But your comment makes that clear.
 
lol im just playing around with it
 
if ... then "lol" else x implies that x is a String, since "lol" and x must have the same type. But then x == 101 means that x must be some sort of number.
Unless string literals work in some funky way too...
Maybe "lol" :: [Char]? Ugh...
 
good point. let me see if i can figure it out :P
 
2:33 AM
do any of you guys run VMs as a service on Windows?
 
not really
 
What is this "Windows" of which you speak?
 
@KeithLayne i use Virtual Box for running Debian
 
Alf, I'd say it's a pretty safe assumption that you're running a Windows host :)
 
2:41 AM
What mode do you use? I run mine headless, but there's a useless console window all the time.
I have batch files to start and stop it.
 
huh, i haven't seen any mode choice yet
 
I don't want it to run all the time, but I'd love to get rid of that window.
 
what window?
 
Seems like I should write a thing to run in the systray or something, attach the console to a log file or something.
@melak47 the console window that the command runs in...kill the console, kill the VM...unceremoniously, I might add.
something my kids do all the time :(
 
how exactly are you running your vm?
 
2:43 AM
making long boots while it runs fsck
 
no, I mean how do you launch it
 
actually, I guess it's a shortcut:
"C:\Program Files\Oracle\VirtualBox\VBoxHeadless.exe" --comment "Ubuntu" --startvm "bff768e0-82fb-4ed4-86af-c0569a0d64c6" --vrde=off
is the target
and I use Xming / plink or putty to connect
I have a .bat to laucnh a terminal emulator
but it's crude altogether
@melak47 make more sense now?
 
yup
 
well the batch file produces a console window allright
but you can do the same in vbscript or jscript
 
is it a one-liner? :)
Alf, I knew I could count on you for a Windows trick.
 
2:48 AM
just let me get this straight first: you have the command above, in a batch file?
 
No, it's actually a shortcut
 
oh, then probably vboxheadless.exe is a console program
 
yeah, that's the thing. Supposedly you can VB and maybe disconnect the console without killing the process, but that's not in my realm of expertise...and I'm lazy
 
it creates a window just big enough to show "All rights reserved" and is minimized by default, not too intrusive.
the shutdown shortcut is similar, but I want the console there, it gives shutdown progress in the console and then both windows go away when it's done.
anyway, it's not a big deal, I don't run it all the time. I need to stop chatting and do some c++ for a change :)
 
2:52 AM
well you can always call CreateProcess from C++ ;-)
 
as soon as that is in the standard :)
 
@KeithLayne apparently you can use WshShell.Run. lemme check
 
seriously, why would the default Boost on an OS released four months ago be 4 versions behind?
As if the Boost people don't know what they're doing.
 
Because not all versions are binary compatible and one of the aims of a distribution is to provide a consistent set of software that works well with one another.
 
Dim oShell
Set oShell = WScript.CreateObject ("WSCript.shell")
oShell.run "cmd /c title blah & pause", 0
^ put that in a .vbs file, run it, and you got a hidden command window. you can see it e.g. in tasik manager. use your own command instead.
 
3:06 AM
You are the man.
 
you're welcome
 
worked for cmd, now for the vbox test...
oh, can I wrap the command in single quotes (I have double quotes in the command line) or just wrap the whole thing in double quotes and have it work as expected? There is a space in the path.
 
i'm not sure about quotes in vb strings. i think you can do it with double quote, as in pascal (iirc).
 
@Cheersandhth.-Alf I'm having quoting issues, can I escape quotes?
ha, I know nothing of Pascal, thank goodness. I'm not quite as old as you :)
 
this worked:
WScript.Echo "blah""blah"
 
3:14 AM
is single quote the comment char?
 
yes
and underscore is line continuation
 
does the double quote just escape the quote?
 
it produces a single " in the string
you can just try out things
 
yeah, I am. Thank you very much.
 
3:26 AM
Alf, the double quotes did the trick. My computer just semi-froze for about 10 minutes while it started. I think it doesn't deal too well with physical disks...only the boot partition is in a virtual one. I think it might have just done a 300 GB fsck.
Now I have exactly what I want. Thanks again.
 
no trouble
 
@LucDanton of course, I wasn't thinking about binary compatibility for a header-only library. But then, it's only mostly header-only...my bad.
 
Don't worry, it's not a library either.
 
are you just making fun of me now?
 
i think you can use "library" about any collection of libraries
as in de morgan's poem
    Great fleas have little fleas upon their backs to bite 'em,
    And little fleas have lesser fleas, and so ad infinitum.
    And the great fleas themselves, in turn, have greater fleas to go on,
    While these again have greater still, and greater still, and so on.
 
3:39 AM
now that's poetry.
 
it's just libraries all the way down
 
Now to get down with Spirit. <rubs hands together>
 
3:53 AM
FWIW, a shot from tonight, shortly after mom and son arrived home:
Little boy; big yawn.
 
awwwww
 
glad they got to come home!
 
Thanks -- I'm glad they're home too.
 
4:09 AM
@JerryCoffin congrats
 
@BenVoigt Thanks Ben.
Well, he's asleep at the moment -- I think I'd better do the same. G'night all.
 
Hey
What's up guys
 
Is he going to grow up and be a programmer?
 
4:43 AM
Hey guys guys, I had an idea
I want to write some software & make money
Where do I start?
 
@Managu I don't want to learn to code, I want to write a software that generates revenue...
Totally different
 
Same general meme: don't bother =p
 
Ok... any constructive ideas? :D
 
4:58 AM
All of my ideas of late seem to have custom hardware attached to them shrug
 
 
2 hours later…
6:45 AM
@JerryCoffin Cute, congrats!
 
user1182183
7:26 AM
@KeithLayne I do
 
user1182183
Anyway Hate WINDOWS DAMIT, I have a dual boot installation of another (Same windows, just fresh) installation and all devices work fine there! and with my primary windows I have had so much trouble.. I' didn't sleep fo 23h trying to fix that stupid unidentified device problem but it just got worse and worse everytime :( Now, well, I am actually good with windows so I managed to 'repair' the 'damage' which 'i have done' to my primary windows installation (gaming,development etc,...
 
user1182183
...second is just for fast internet browsing, a win7 installation which runs on 25 processes, 29 services and uses 600 mb of ram)
 
user1182183
an well here I am, where I began, STILL NOT FIXED. STUPID WINDOWS DRIVER STUFF
 
user1182183
srlsly crap^crap^999
 
user1182183
ofcourse if it couldn't get worse, I lost my hotmail account which I used for 7 years permanently and the new one is blocked without option to unblock >_>
 
user1182183
7:31 AM
hopefully my gmail won't shut down
 
user1182183
I hope somebody comes with better windows-like os, so M$ will have some concurency
 
user1182183
not just that stupid monopoly all the time.
 
user1182183
(If not the dual boot setup I wouldn't be right now here, YE I know how many people want me to get away xD)
 
8:00 AM
@FredOverflow Private inheritance basically means that all members within a base class A is visible to it's children, but not publicly accessed by the user right? struct A { int x; }; struct B : private A {}; B b; b.a // error
This way you can create adaptors like queue using a vector etc?
 
@ManofOneWay That's protected inheritance.
 
1
Q: Meaning of class(*)() in gcc

xstI'm having trouble understanding this compiler error. I wrote class(*)() in the post title because the class I am instantiating is called "opaque", but that name is not informative or relevant. It is a templatized Circular Buffer and some tests. I am using the opaque class to test the data str...

Ah, I love tagging questions with the ! It's one of those tags that never gets chosen upfront :)
 
Ah , so struct B : private A doesn't give B access to A at all
 
The access qualifiers mean the same thing for bases as for members.
 
@Potatoswatter Thanks
 
8:03 AM
@ManofOneWay That's wrong.
 
@ManofOneWay It gives B access to A (otherwise what would it do?) but it doesn't give access to B's derived classes.
@FredOverflow If only it were, the questions would all be closed as duplicates.
 
Wasn't that what I said at first then?
 
You said "Private inheritance basically means that all members within a base class A is visible to it's children", with ambiguous meaning to the malapronoun "it's"
 
Also, it's "its", not "it's".
 
I assumed "it's" was the class specifying private, not A which has no say in the matter.
 
8:06 AM
Of course
I know what it's stands for, just a misspelling. ;P
 
user1182183
sometimes the biggest issues in the world require the easiest possible solution :/ I'm going to cry.... Update Driver > Pick From List > USB Root Hub, ;x
 
33
Q: When should I use C++ private inheritance?

SashaUnlike protected inheritance, C++ private inheritance found its way into mainstream C++ development. However, I still haven't found a good use for it. When do you guys use it?

 
If it helps, inheritance works the same across all access specifiers. You can consider the access specifier as a 'minimum' access specifier for the members of the base as accessed through the derived class. So in struct derived: protected base {}; this means that this->foo is a protected access if base::foo is public or protected, and is private iff this->foo is private.
(With this view a pointer or reference conversion of derived to base also uses that access specifier.)
 
So I just wrote an iostreams formatter utility class for network byte order (de)serialization… felt like reinventing the wheel but I don't see anything out there.
Is iostreams just that unpopular that nobody uses it for binary?
 
For binary it is customary to use the unformatted insertion/extraction functions. Which don't use formatters.
 
8:10 AM
But they only work on chars/char arrays.
 
Well, they work on binary.
 
So really what I wrote was an unformatted formatter XvP
Is there a rule against not respecting skipws in an extractor?
Hmmm… really the solution is just not to make it an operator>>/<< overload.
 
user1182183
anyone got an IS Shiel .CAB unpacker? I need to unpack the drivers for my webcam because windows doesn't install them via the installer
 
@Potatoswatter Aka unformatted I/O? :)
 
@LucDanton But the arrows… so pretty!
@GamErix Congrats, you're on my ignore list.
 
user1182183
8:14 AM
@Potatoswatter just because I use windows? ; x
 
user1182183
At least let me know why ^^
 
2 days ago, by jalf
If you want reliable, high quality answers quickly, use SO. If you want to gamble and maybe get a useful answer, maybe get a good answer, and maybe waste your time, feel free to ask questions here :)
 
@Potatoswatter So this was initially what I meant: ideone.com/KzBW1
But you said something about using protected inheritance when creating adaptors?
 
@ManofOneWay Wasn't me. But that is the way the standard library does it and the accepted practice. Protected inheritance in an adaptor allows you to make a subclass adaptor with a superset of functionality.
 
@ManofOneWay So what's wrong with that? Doesn't it exactly do what you want?
 
8:21 AM
@Potatoswatter Ah that's true. thank you
Forget what I said ;P
What are you up to today guys?
Watching the olympics?
 
I really need to clean up my room.
 
:)
Are you living in a corridor?
 
What does that mean?
> Corridor (architecture), a type of room in modern architecture, whose purpose is to provide access to other rooms.
No, I don't live in a corridor.
 
I don't know if it's the same word in English as in Swedish, but a korridor could also mean having your own room and sharing kitchen with other people. It's a common student thing.
You keep referring to my room as if you only have one room and don't live in an apartment. That's why I'm asking :)
 
Oh yes, I live in a shared apartment. She's gone camping over the weekend, and it's constantly raining. The poor thing :)
 
8:32 AM
Ah I see =)
 
I haven't cleaned up my room in at least a month. Well, tiny cleanups of course. Nothings gets mouldy in my room, I always clean up the dishes. But it's full of books and magazines and clothes and other stuff lying around.
Apropos dishes, gotta go into the kitchen and do the dishes and cook :)
 
hello all
how to push a uint8_t * buffer into a vector so that it forms a linear array ?
i mean.
i want to keep on adding values to a vector but these values are variable in length.
 
8:52 AM
vectors are linear, just use a std::vector<uint8_t> and you're good.
 
@FredOverflow She has no money or anything?
 
@StackedCrooked She camps in the rain.
 
Is she nuts?
:P
I like camping, but definitely not in the rain or the cold.
Perhaps there's a hidden motive!
 
@Cicada what the ?
people on this planet :-/
 
9:04 AM
-1’d
Posting a comment describing my downvote isn't even worth my time for such a horrible question.
 
9:16 AM
You could use .forEach here, since it's more semantic. You aren't actually mapping the array at all. — Esailija 6 mins ago
 
lol?
 
seriously...
 
9:31 AM
Have you ever seen such a huge brace init list thing? github.com/rubenvb/Ambrosia/blob/master/libAmbrosia/Source/…
 
Nope.
 
@rubenvb it's quite common in code where you want to map your "commands" on another library/executable command's, I've seen it also a few times for key maps for example
 
@KillianDS how can a C++11 thing be "quite common"? ;-)
 
Are you writing a build system?
 
Yeah, trying to.
 
9:40 AM
@rubenvb okay, yeah, not the actual initializer list, but the concept of such a large initialization.
 
It's progressing, slowly. I'm at command generation right now.
@KillianDS I want my world record. Now! :P
 
@rubenvb C++11 is from last year. In the fast changing computing times we live in, this is last century. Sadly, from an educational perspective, C++11 is more like next year, if we're lucky.
 
Great. C++*11* is from 20*13*.
 
@FredOverflow I should go speak to the professor who teaches C++ to Physics students. Maybe I could get a chance to show off my extreme C++ knowledge (though I highly doubt he even knows of or wants to teach the stuff)
 
@FredOverflow Where I work, c++11 looks more like a next-century thing.
 
9:47 AM
I discovered yesterday you can use return {}; for returning empty from any non-void function. That's awesome :)
At least for normal brace-init-able classes.
 
It also works for any other type thanks to uniform initialization.
int foo() { return {}; }
 
Oh right, it can value initialize too. I forgot.
 
Not for types that aren't default constructable.
 
Yeah, well, those are stupid to return empty now, aren't they?
 
From what I can understand from this, you should always use the typename keyword instead of class (to indicate a type parameter)
Would you agree?
 
9:53 AM
NoDefCon muahaha()
{
    char hack[sizeof(NoDefCon)];
    return (NoDefCon&)hack;
}
@RadekSlupik ^ just kidding ;)
@ManofOneWay It doesn't matter.
 
A::T * p; What about that? Have they fixed it with class ?
 
typename and class are never interchangeable outside of that one situation.
 
@ManofOneWay There's nothing to "fix". If you want a multiplication, write A::T * p;. If you want a variable declaration, write typename A::T * p;
 
@Fred that's not {}.
Also you need alignas.
 
It's fundamentally broken, anyway, so I'm not gonna bother applying little fixes.
 
9:57 AM
And using the returned value is UB anyway, since you return a reference to a local.
 
No I didn't, I return by value.
 
Confusingly you can write class A::T* p; though.
Well, I think. It's a bitch to double-check the grammar.
 
Oh yeah. :P
 
@LucDanton And what would that mean?
 

« first day (652 days earlier)      last day (4281 days later) »