« first day (968 days earlier)      last day (3994 days later) » 

3:01 AM
help me
why my global variable
not being passed to second thread
i even pass
and it is not working
the pointer
 
Ken
@Kelvin Can you show us your code in Pastebin?
 
yes
 
Ugh. VS froze
 
http://pastebin.com/suSPhHUp
http://pastebin.com/z6kbqGKS
http://pastebin.com/Y6aRHL0Q
http://pastebin.com/5scADRwX
i have 4 files
look int the first 2
the last 2 is a class i made to use
but i dont think its too important
i declare my extern variables in the .h file
and i initialize in the ftpkeylogger.cpp file
 
@Ken Is that what you want?
 
Ken
3:06 AM
@Kelvin I'm not sure people would like to help you if your file names has "keylogger" in them.
 
its for educational purposes
 
Ken
@IDWMaster Let me see. One sec.
 
i wan to learn how keyboard works
everything works
except that my log is not sent to the email thread
 
Ken
@IDWMaster Almost. If you look in the class diagram the Name property is not a String but another class. That's where the issue lays.
 
i have no c++ friends
 
3:07 AM
@Ken OK, is it native or managed?
 
can u be my c++ friend
 
@Kelvin You press a key. That closes a switch. A microcontroller converts that to a code that's sent to the computer over a serial connection. :-)
 
Ken
@IDWMaster Native. Would you like to see the headers? (they're pretty short).
 
great
 
@Ken Yes
 
Ken
3:08 AM
@IDWMaster Okay, one second.
 
how come global variable not passed to second thread
its global and declared extern, i event try to pass pointer
and it wont work
makes no sense
 
I see no global variables anywhere
 
Ken
@IDWMaster Here they are:
The thing you want to pay most attention to is that Person has a member of type Name.
 
i got it to work
nvm
i need to use new
its gay i thought pointer to stack didnt go out of scope
 
you could just make your variables actually global...but whatever..
 
3:14 AM
i did
extern header file
initialize above main() function
do you want to be my c++ friend?
i have no c++ friends
 
...I don't think I do
 
No.
Read the newbie hints.
 
@Rapptz there's something in there about asking people to be your c++ friends? I really should read that some time...
 
why dont u want to be my c++ friend
 
Mostly, friends are just workarounds to your messed up classes.
 
Ken
3:16 AM
I think you're just going to confuse him XD
 
Your Nullable class doesn't make sense to me.
 
Ken
Hey and those aren't workarounds for messed up classes.
Why not?
 
not that kind of friend
i mean real friend
 
What's the point of it?
 
c++ acquaintance
 
Ken
3:17 AM
Allowing a person to be without a middle-name, but not a blank string too.
 
@Ken Check my new answer
 
do yu want to be my c++ acquaintance
 
Simplified version of it, but it's the same concept as what you want
@Kelvin C++ doesn't have acquantances, just friends
 
i need a c++ friend
not the classes friend
a real friend
i am lonely
i need a c++ friend
 
3:20 AM
@Kelvin Why C++?
 
Ken
@IDWMaster I shall forever be your slave!!!!!!!!!!!!!!!!!!!!!!!!! (but no kinky stuff & I mean it).
 
cause i dont know python
 
@Kelvin Get accustomed to hanging out here. That'll put an end to this nonsensical idea that anything about C++ could possibly be friendly. :-) Oh, and even though nobody's likely to say "yes, I'll be your C++ friend", they might start to write you love notes, so don't freak out if they do...
 
Ken
Thanks a lot! :D
 
Because they are easiest to free when you are done.
 
3:21 AM
love notes
c++ love notes?
 
@Ken No problem. I've also done C++/C#/Javascript integration over a network before, so this is nothing
 
@Kelvin To sum up what @JerryCoffin said, most of the people here are a bunch of mood swingers.
 
@Kelvin No -- nobody loves C++.
 
Ken
@Kelvin cerr << "Just kidding, there's nothing wrong with you <3" << endl;
 
"I want to dereference your c++ pointers"
 
3:22 AM
I'm working on a project where I have JavaScript code running on a VM written in c++ which communicates with a network device remotely and marshals the data to a C# program on another computer.
 
@Kelvin A wall of compiler errors.
 
@MarkGarcia Don't compile with -Wall
 
You should.
 
u would think that stackexchange IRC would have way more people
 
@Kelvin Fuck. That's so... off-color sounding.
 
3:24 AM
@Kelvin There's a StackExchange IRC???
 
@Kelvin Is that white?
 
top right corner
chat
 
And where are you now?
 
c++ chat
 
3:26 AM
Try marshalling *this into C++! -- pastebin.com/2LTv4a94
 
Ah. I see now. This is not IRC, but yeah, I excepted more people the first time I joined too.
 
@Kelvin Correction: you are in Lounge<C++> The order is important -- Lounge comes first. C++ second, if at all.
 
who cares youre not a compiler
i talk to you how i want
 
My head hurts...
 
@Kelvin How do you know I'm not a compiler?
 
3:28 AM
@JerryCoffin Is the longest running g++ process ever known to humanity.
 
@Kelvin Might want to read those newbie hints.
 
i am a c++ noob
 
0
Q: why is c++ harder for android to compile

kyle kThere are a few compiler apps for android, but many of them say that c++ is unpredictable and does not always work, but the apps say that they can compile c just fine. why is c++ so much harder to compile with android.

 
@Kelvin Then I'd advise starting on Linux
 
I still waiting for the day I can compile C++ with my microwave.
 
3:30 AM
Linux is a lot easier platform to learn C++ on than windows
 
linux i am learning assembly
i just never use classes
 
@Kelvin Read good books. Not some shitty online tutorial.
 
since win32 doesnt use classes
i have c++ primer plus
im already fucked up
i pretty much use c++ without classes
 
@Kelvin lol
 
but i want to use classes more
i just never find the use for them'
 
3:32 AM
@Kelvin This library encapsulates a lot of common tasks in classes: launchpad.net/systoolkit, but good luck compiling on Windows! It may be possible with cygwin
 
no i dont want to use that
i want to learn algorithms and data structures
and then haskell
and then improve my c++
the languages i am interested in is x86 nasm, c++, and haskell
 
@Kelvin A different book would be a good starting point. For what it's worth, C++ Primer is much better than C++ Primer Plus.
 
@Kelvin I think this is better.
 
i did
but i dont want to spend money
on c++ primer
 
@MarkGarcia I have to disagree. Sedgewick was good (possibly even great) at designing algorithms, but terrible at writing about them. Cormen, et al, isn't necessarily perfect, but its worst parts are still much better than the best parts of anything Sedgewick has written.
 
3:38 AM
i am a beginner
at algorithms and datastructures
and all the stackoverflow answers said to chooose cormien
 
@Kelvin Might want to stay away from Corment for a while then -- although it's good, it's quite ...heavy. Heavy on formality. Heavy on mathematical notation. Heavy on hair-splitting technicalities at a time that you really need to learn general ideas.
 
ok
so what book
is good for beginnner to learn data structures and algorithm
 
@JerryCoffin True. Even the pseudocode has so much mathematical notations.
 
@Kelvin I wish a had a lot better recommendation, but I honestly don't. The book I really like best is named Algorithms + Data Structures = Programs. Problem is that it's out of print, and uses Pascal for all the code. There is a later version freely available online, that uses Modula II instead, but it's still not much good when you're trying to learn C++.
 
@JerryCoffin This?
 
3:43 AM
@MarkGarcia Yes, that's the one.
 
is c++ primer 4th edition good?
is it the same as the later edition
cuz thats the one that is 11 dollars
 
@Kelvin No. The newer has been revised for C++11.
 
Oops -- the online version uses Oberon not M2 (though I'm pretty sure there was an M2 version as well).
@Kelvin Fifth edition is updated for C++11, but is so new there's almost no chance you'll find a used copy (now, or for a while).
 
but is c++ primer plus really that bad
for assembly im using assembly language step by step
and haskell im going to buy learn you a good haskell for great good
 
Hmm... The newer learn in * hours/days seems to have high ratings...
 
3:49 AM
@Kelvin There are a lot worse books around -- but on a scale of 1-10, I'd give it only about a 4 to maybe 5.
 
thats pretty bad
but to tell you the truth
im not going to buy c++ primer
i think c++ primer plus is good enough
as long as youre aware
 
@Kelvin Save the money and spend it where it's more necessary.
 
@Kelvin I wouldn't bother. Lippman knows his stuff, but that book hasn't aged very well. Better to buy one or two really good books than half a dozen poor ones, at least in my opinion.
 
yes
i think the adam drodzek book
since its more cpp oriented
i will buy
that one and learn you good haskell for great goodness
maybe programming pearls
usually i buy 3 books at a time when im finished with 3 other books previously bought
 
3:53 AM
@Kelvin I've already pointed to where you can (legally) read the Haskell book for free.
 
yes but i do not like to read pdf
 
@Kelvin Okay -- can't argue against that.
 
i like books
so what language do u know other than c++
 
@Kelvin Personally? English is one I know better than C++.
 
so u just use c++ then?
 
3:57 AM
Seriously: I've made relatively serious use of: Fortran IV, Fortran 77, Pascal, C, C++, AWK, a number of assembly languages, lex/yacc/similar, SQL, and probably a half dozen more I can't remember any more.
 
nice
other than c++ i just use a little java
a little php
a little javascript
 
I've also used a number of others (Smalltalk, Scheme, etc.) but not for any particularly serious projects.
 
i dont like php
10
 
@Kelvin Well, that's a good start anyway.
 
but so far c/c++ is my favorite
i like C but i have printf and scanf
i hate*
 
4:00 AM
@Kelvin That's a lot less good -- C and C++ are separate languages -- and despite the syntactic similarities, well written code is generally a lot different between the two.
 
what do you think about this book
ya i know i use too much c-like code since i use win32
more classes
more autopointer
 
@Kelvin Good. Don't be like me, stuck in this hell.
 
future projects i am going to use more stl things
do u want to see
win32 is hell
 
@Kelvin Never read it, so I can't comment on it directly, but Duntemann has been around forever, and most of his books are at least pretty decent.
 
4:03 AM
@Kelvin Thanks. At least you made me smile. :)
 
see i am worse
than the worst
next time i am going to use classes
actually
my next project willl not use classes
 
@Kelvin Not at all times. OO is not the answer to all problems.
 
i will
but after that
if i separate my functions into different files, then it will look way better
 
4:14 AM
I may be the kind of person who wastes a year implementing a Turing-complete computer in Dwarf Fortress, but that makes you the kind of person who wastes ten more getting that computer to run Minecraft.
5
 
5:21 AM
user image
4
He's stalking me :(
Also, hello friends
 
 
1 hour later…
Ell
6:35 AM
good morning
 
6:50 AM
Shit.
I forgot MSVC doesn't support constexpr
Ugh
 
Xeo
@Pubby Wow.
 
CD or CHDIR doesn't work on Command prompt when I try to go to another drive. Why?
 
lol
 
@ScottW My bad... Uncle...
Windows sux.
 
Xeo
@ScottW Doesn't help when switching to a subfolder on that drive
cd /d it is, i.e. cd /d D:\Some\Folder\somewhere
 
7:07 AM
My beautiful range header now polluted by nasty detail::has_adl_empty thingies :(
 
Xeo
lol
 
marning
Nobody is up yet?
 
7:24 AM
 
Feeds automatically posted it!
If you scroll up it's there too.
 
There should be option to flag chat messages as dupes.
 
No there shouldn't, that's retarded.
 
@Rapptz Why?
 
@Rapptz Why?
That's why.
 
7:28 AM
That's why.
 

The Pinnacle of Lounge<C++> Productivity II

Mar 31 at 4:10, 17 minutes total – 61 messages, 9 users, 7 stars

Bookmarked Mar 31 at 4:28 by In silico

 
There should be option to flag chat messages as dupes.
 
we should probably have a rule "don't bother posting the latest XKCD, we all look at it anyway"
 
@Pubby dat formatting
 
I want concepts :(
 
7:34 AM
oooh, so this is why @R.MartinhoFernandes does not drink often
9
 
@Rapptz Write your own! ...he said while knee-deep in a broken build.
 
That's actually why I want them lol
 
@R.MartinhoFernandes where iz the journalz pics? :S
 
I'm wishing I could just check for the concept itself rather than making an archaic is_associative_container trait that is half-assed :S
 
also hi folks
 
7:36 AM
@BartekBanachewicz he is a 'busy' person
 
@Rapptz I don't recommend writing generic code against containers.
They don't seem particularly generic to me.
 
It's the only solution I see :s
that and denying multi* containers exist
:|
 
That much seems obvious. I didn't really think you picked a solution if you noticed it would be an inferior alternative.
@Rapptz See? Where's the genericity?
 
Concepts would make my life a whee-bit easier :(
 
If you're not relying too much on conversions you could perhaps make use of partial ordering.
 
7:42 AM
I was thinking that an easier way to do it would be to check the number of template parameters on Cont<Args...>
and if it's 2 then I have a regular ol' sequence container but if it's > 2 then it isn't but :S
 
How do you handle std::array?
 
Hm. With the way I have it now it just works.
With the parameter pack check it'd work too.. I think.
 
@Rapptz I see you had fun last night debating brands :P
@LucDanton what do you mean?
 
@thecoshman Counting template parameters requires special handling in this case.
 
Why?
Isn't array just two?
i.e. typename T, size_t N
 
7:48 AM
ah, I didn't full read the context of what you said
 
I don't recall array needing an allocator unless I missed something.
 
I think it's starting to become my go-to examples of 'don't bother with template template parameters', which is handy since they tend to come up in the context of containers.
@Rapptz Do you mind trying to write the specialization for the arity trait?
Not run it through a compiler or anything. Pseudocode.
 
I haven't written any traits yet anyway. :S
 
I figured as much.
 
My dumb is_associative trait one involved..
checking return value of insert
really dumb.
it doesn't work well so I tried other things
but then that idea came up
I still have your code with comments on it somewhere why std::array will screw me over.. tries to find it.
 
7:53 AM
Well it's not an intractable problem. But I think it's a good example as to why the code is very much not very generic. (And practically speaking I'm fairly sure there are other container or container-like things in Boost which will break just as well as std::array even if you add a workaround for the latter.)
 
Well I found it but all it says is /* Special case */ and I don't exactly get why.
 
What does the non-special case look like?
 
/* Sensible default: assume first parameter is for the target */
template<template<typename...> class Cont, typename T, typename... Ts, typename Target>
struct rebind<Cont<T, Ts...>, Target> {
    using type = Cont<Target, Ts...>;
};

/* Special-case */
template<typename Old, std::size_t N, typename Target>
struct rebind<std::array<Old, N>, Target> {
    using type = std::array<Target, N>;
};
 
welp, off to see the docs this morning
 
Okay. Try to do the job of the compiler and match e.g. an std::array<int, 5> specialization with that non-special case: which template parameter gets bound to what?
 
7:56 AM
Oh I get it.
I didn't try but I get it
 
where can i get ubuntu help?
 
Xeo
 

« first day (968 days earlier)      last day (3994 days later) »