« first day (365 days earlier)      last day (4809 days later) » 

14:04
Is it acceptable for me to post a link to my question here ? So that I can get a quicker answer ?
sbi
sbi
@angryInsomniac The newbie hints, linked from the panel on the right-hand side, explain this in detail.
try it, and see if people yell at you :)
if you want to discuss a question, you can, but it can get a bit thorny- we don't like people dropping links in here and then leaving
sbi
sbi
@jalf @DeadMG is here, so people will.
14:05
and especially if it's not C++ related
depends on if you qualify me as "people" :P
@sbi I checked the link before asking , it says I can post if I want , it depends weather people want to answer , I was just checking with the people who are actually here !
I'm pretty legendary for RAEG about this, but I don't really feel like it right now
so you'll probably survive
ugh, what were they thinking when they made Intellisense errors show up in the errors list?
unless it's blatantly inappropriate
It is C++ related
I think I'll take my chances http://stackoverflow.com/questions/7784357/invalid-heap-error-when-trying-to-copy-elements-from-a-map-to-a-compatible-prior
14:07
@angryInsomniac well, depends on whether or not the question is interesting. ;)
but the overwhelming probability is that if you care enough to actually ask if it's OK, then you won't link dump
sbi
sbi
@angryInsomniac I liked it that you asked, and seeing that you already asked the hints, I like you even more. :) Lemme recap: If you want to discuss your problem here, you are welcome. If you intent to just drop the link and disappear, you are not.
oof, that doesn't look interesting. Looks like something where you'd have to pay attention to figure it out. Count me out! ;)
@jalf hehe , well , it is interesting to me ! Idk if you guys find it interesting !
sbi
sbi
@jalf Yeah, we rather have questions we don't need to pay attention to for answering! :)
14:09
@jalf Hey, I found it pretty easy.
it's easy to answer those questions with "Use shared_ptr and come back when it leaks."
:)
no, wait, wut?
sbi
sbi
@DeadMG You know, the question occurred to me when I typed that. :) There's those who even want the great apes to be classified as people, so assuming your avatar doesn't show you, I figured I could take the risk...
lol
Hmm, care to elaborate on that @DeadMG
14:11
haha
ignore me
I got the answer completely wrong because your code is a bit wtf
but I read the question again and now it makes more sense
Ok ! I have removed the delete operator from there btw, It occurred to em , if i delete it then the Queue has nothing to point to
yeah
except there's no pointers!
you have a queue of charElement, not charElement*.
that's why it's really confusing- because there's no need for any pointers in your code
except for the ones in charElement itself
which is where the problem lies
and it's not with the new and delete at all
the problem is that you're pointing to stuff in a vector, which is bad when you start adding to that vector
Hmm , the pointer business i added very recently , as I thought that maybe these things need references passed in ( there is a bit of JAVA leaking in here ) But , how come it accepts charElement* 's for a charElement array ?
is ArrayList better to use instead of Vectors?
just don't ever go near arrays and pointers
always use a class wrapper
unless you actually need to point to one single object and not own it in any way, of course, in which case a pointer is fine
14:17
@Tenev depends on what ArrayLists and Vectors are
Are you asking us about the Java classes?
@jalf C++
most people shouldn't need to mess with pointers and arrays directly at all unless they're building your own container class or something
C++ has no ArrayList.
@Tenev C++ has a vector (lower-case v), but no ArrayList. So hard to say which is better
@DeadMG so do you mean that I should try removing all the new delete and pointer stuff and it should work ?
14:18
@jalf it has array and list
@Tenev well, yes
no, no
Java's ArrayList and Vector are both implemented with arrays AFAIR.
new and delete is, well, bad, here
but it's not the actual problem
the problem is that you're trying to hold pointers to objects in a vector
@Tenev but your question wasn't about arrays vs lists vs vectors, it was about ArrayLists vs Vectors, or did I misunderstand?
14:19
so either cut the vector for something where that isn't a problem, like list
or make the contents themselves smart pointers to heap objects and then just copy out
@jalf i was to use lists in array
@DeadMG hmm , ok , I'll try that , would you happen to know of any online resource or something where I can read why this is a problem ?
i've heard that vectors are thread-safe is this true?
nope
not in C++
14:20
it's defined to be a problem in the Standard
but I usually use MSDN
so vectors in C++ are not thread-safe?
the Standard is kind of, well, dry, and hard to find stuff in
@DeadMG if Only I had read the whole standard :D
Vector reallocation occurs when a member function must increase the sequence contained in the vector object beyond its current storage capacity. Other insertions and erasures may alter various storage addresses within the sequence. In all such cases, iterators or references that point at altered portions of the sequence become invalid. If no reallocation happens, only iterators and references before the insertion/deletion point remain valid.
that is: mutate a vector, and your pointers to objects stored in the vector become invalid.
nope. in c++ you pretty much have to handle any and all synchronization yourself, unless the compiler/RTL you're using explicitly says otherwise
14:22
@Tenev multiple threads can read from a vector simultaneously, as long as no writes are occurring
i'm not aware of any of the standard containers being thread-safe
@jalf i know this, thats why i'm using pthread_rwlock_rdlocks, but a friend told me today vectors are thread-safe, so he's a liar :P
@DeadMG Thanks for the help, I think I have enough to go on for now , I'll read up and update the Question if reqd
vectors in Java are thread safe
many threading libraries offer thread-safe alternatives
14:24
but not in C++
the PPL offers concurrent_vector, for example
what about int's and pointers :P ? are they good to use? (not related to threading)
like int xx[10][10];
@Tenev ints are quite useful, yes
but characters and pointers are bad for use :(
mpz_ts are better.
14:26
like char xx[500][500];
chars are fine
pointers are ok, if you're aware of their gotchas. most people don't need to use them these days, though
That's not a pointer.
You've lost me. Why would one of the core data types of the language be "bad to use"?
C strings is what's bad to use.
14:27
pointers, chars and ints are all in the language because they're useful. If you need something different, don't use them. If you need to use those types, use them
What is "bad to use" or "good to use" depends on what you need
except in the case of singletons, which are bad no matter what you need
Well, except void*. It always sucks.
I need a type that can do whatever I tell it to with no questions asked and in very little time? Hey, it's a pointer!
@CatPlusPlus well thats what the masterminds here (some of you) said
Arrays are not pointers.
@CatPlusPlus I've got a good handful of void*s in my lib :)
they're useful for type erasure
14:28
@jalf Witch!
lol
when i said i want to use char [500][500]; or char xx[10000][10]; , and store usernames long max 10 chars, then access userid this way xx[userid];
sbi
sbi
@Tenev They probably said do not use C-style arrays unless you know what you are doing.
I'm not discussing this again, I gotta go do assignment for the electronics lab.
See ya.
@CatPlusPlus ok, so what i just said is good to use?
14:30
nothing wrong with a good boost::array<T, N>.
char arrays are kinda ugly, really
Again, I've already told you everything about it last time.
std::string > char arrays, char pointers, etc in most cases
Not going to repeat myself.
@Tenev if you need to store strings of text, use a datatype designed for stirngs of text
such as, say, std::string
14:31
unless you actually need a 2D array of chars (like, for a map or something), i'd go with a vector of strings
@jalf and how i'd access these strings by ID ?
in all cases, I'd say
what do you mean, by id?
@Tenev What happens if you have exactly 10000 users registered already, and then I try to sign up?
I used to accept that char* could be moved
14:32
@jalf registrations are forbidden, this is nothing related to what your thinking of :P
but with rvalue references, or if you're smart, swaptimization in C++03, that's gone
@Tenev well, how can you be sure you'll never have more than 10000 users?
How can you be sure there will be no usernames longer than 10 chars?
9 chars
don't forget the null :P
@jalf don't try thinking instead of me :) not your program
If you want to store a string of text, use a string. Then you don't have the fragile length limit/buffer overflow vulnerability
14:33
and they have SSO anyway
If you want to store a collection of strings, use a vector or a map or something
so it's not like you lose performance in the case of short strings
@Tenev Don't try to ask us questions then. It's not our program
@jalf i'll answer your question
@jalf because, nobody should be allowed to have more than 10000 friends
@Tenev I didn't have one. I was trying to get you to see why hardcoded C arrays of C strings is a terrible idea
14:34
@jalf because i limit that by checking their length ROFL
std::vector<std::string> > beats a char[][] anyday
@Tenev ....
that would have been a dumb answer normally, but the ROFL really put the icing on the cake
You just convinced me that 1) you have no clue what you're doing, and 2) you don't want to think about what you're doing
And 3) I'm better off with you on my ignore list
Perhaps when you can express yourself as an adult you can try agian
lol
@jalf Myself, sbi, and a couple others have done that already.
@jalf not really, if i have a program where my username won't look good when its longer than 10 chars, well there is my reason, any other smart questions? :P
14:36
@DeadMG :)
@jalf sure, and you do, probably ur even writing my program :D
hmm interesting, found some stuff I can remove from my lib
who doesn't love deleting code?
not sure why someone would go and use c++ and not want to use all the spiff that comes along with it
I like deleting code
you're pretty much paying for it already...lol
14:38
I like it so much, I delete all my code!
@cHao because the spiff implies having to understand what you're doing
so much easier to do the "infinite monkeys on typewriters" thing
heh
and bash code together until it compiles
@DeadMG changing the vector to list leads to this "error C2676: binary '-' : 'std::_List_iterator<_Mylist>' does not define this operator or a conversion to a type acceptable to the predefined operator" all other things being equal , any thoughts before I spend another hour deciphering this ? :)
vector offers RandomAccessIterator
14:39
screw that. i've done enough bashing in my lifetime...i'd rather let the computer do the heavy lifting :)
that is, an iterator where you can access it, well, randomly
and then join a chat room to ask what's "good to use", and insult people when they try to get you to see the flaw in your code, and refuse to listen to the answers you get to your answer
list only offers BidirectionalIterator- an iterator where you have to traverse every element
let me see your code- it shouldn't be too hard to fix it up
there's a std::distance that should make it an easy transition
@DeadMG ohh , ok ! I got It !
@DeadMG Thanks for the offer to look at my code , I want to try my hand at it first , I will learn better that way. If it still doesn't work tomorrow , I'll find you on the site :)
awesome
I likely will not be here an awful lot during the day tomorrow
I have a lot of university
but you can probably find me on in the evening
or you can e-mail me at [email protected]
14:41
well, I'd better get going
see ya
@jalf Strange, on the other hand, i see people who come to ask for help in specific area and then the masterminds start asking about the code and 'smart' questions why does the guy need something instead of helping him xD.
Will send a message to you (If that is possible on stackoverflow) !
kktnxbai
@Tenev that's usually because they're asking for help doing something stupid.
and someone's trying to show them the light.
no, SO doesn't have PMs
that's why I gave you my e-mail
now people will probably register me for pornography subscriptions, but I have faith in the GMail spam filter
14:45
you mean you don't want porn?
lol
nah, I can find that on my own
@DeadMG That'd be great ! the e-mail id I mean ! :D
the one I posted? :P
6 mins ago, by DeadMG
or you can e-mail me at [email protected]
@DeadMG Oops , never saw that message.
Anyways , back to work !Will mail you if I need help
have fun
14:51
guess what guys, it is exactly 365 days since this chatroom started.
i count 366. shoulda come in yesterday. :)
uh, it's more than that, I think
ah, maybe not
15:20
it's one of the years where it has 366 days :)
I wonder who created the chat room?
sbi
sbi
@JohannesSchaublitb This is the official lore on the issue. :)
TTBOMK, the chat provides no public history on room ownership, though.
sbi
sbi
Another interesting statistics: The first posting of a user I know was posted 365 days ago. I haven't seen him in a long time, but he was here quite often a few months ago.
I've seen jweyrich around quite a lot
sbi
sbi
@DeadMG Oh, I see, Sept, 14th. I must have missed that.
15:33
really? I could have sworn I was speaking to him, like, earlier today
but then, that's my memory, which is not the most reliable
yeah, just seen the page
sbi
sbi
Anyway, gotta salvage dinner now. See you later!
16:27
I hate calling people :(
16:52
Hi everyone.
17:03
I've been messing around with templates and I've come up with this scheme to test a type for a certain member: ideone.com/T7tPa.
Is there an easier way?
What do you guys prefer?
function_name or functionName ?
or FunctionName
@RMartinhoFernandes btw, thanks for you answer =) it was the wrong creation of Mat4 variable that made the program go crazy
Politicians and diapers have one thing in common. They should both be changed regularly, and for the same reason.
@ManofOneWay I use lowercase_with_underscores for most things. However, for template parameters, I use PascalCase.
If you think nobody cares if you're alive, try missing a couple of payments.
such motivational quotes...
How is it one careless match can start a forest fire, but it takes a whole box to start a campfire?
A bank is a place that will lend you money, if you can prove that you don't need it.
Maybe because you suck at starting campfires. Plus, not all careless matches start forest fires.
17:08
@RMartinhoFernandes How am I supposed to know? I live in a desert...
Never lit a campfire in my life.
@IntermediateHacker Cheer up! What's happening today?
18:03
i use camelCase except for class and enum and enumerator names and template parameters where i use PascalCase. for typedef names i use under_scores
sbi
sbi
@JohannesSchaublitb ThisIsCalledPascalCase, IThink.
> Our civilization depends critically on software, and we have a dangerously low degree of professionalism in the computer fields. - Bjarne
:(
18:53
@RMartinhoFernandes That should be only .f, not .f()- what if f is of type int?
I ran out of cookies. :(
I've got nowhere to live
19:15
@DeadMG You can come to Sweden and study here ! I'll get you a room!
uh
no
lol
he will want to share his room with you. beware
pacman -Syu returned from main(). this means will now switch to runlevel 6. see ya
@DeadMG I want to check for a function.
you only said "check for member", you didn't say it had to be a member function
19:25
ok
@DeadMG Is that why you were staying at a hotel? What happened?
well
first, the university pricked me around for weeks before they gave me my results
then they told me I'd failed
then I told them they'd made an obvious mistake- which they had- and I've passed
sbi
sbi
@CatPlusPlus I'M sure your browser has plenty of them.
but it's already two weeks into term
so if I want to attend any lectures, I need someplace to stay whilst finding some more long-term accomodation
and it's very expensive, and very slow, and very arduous
and you e-mail the landlords of these places you want to get
and they just e-mail you back saying "thanks for e-mailing me! now come visit me in person, because I am apparently incapable of arranging anything by e-mail."
fucking worthless
I'm making pizza in a gas oven with no thermometer or automatic timer.
19:31
that's what Gas Mark is for
I have a feeling I won't enjoy it.
They probably want to meet you and assess whether you will fuck up their house by talking with you for ten minutes.
they can do that concurrently with showing me the house
sbi
sbi
@CatPlusPlus Here, gas ovens are controlled by a knob that has numbers on it. IIRC, III means ~180°C (where you bake most common German cakes), for each number up or down give or take 20°.
concurrently with me not being able to attend lectures, because I've got so fucking many and it's a six-hour £30 each way travel
19:32
Oh, they want you to visit them, but not to show the house?
yeah
they want me to visit them in person to arrange a time to show the house
That's a bit silly.
@sbi Yes, this one has a knob too. Pizza said it should be set to 4-5, but the oven has no thermometer, so I have no idea whether it preheated enough.
it's a bit, RAEG
Hotel is very expensive!
No friends that can lend you a couch?
sbi
sbi
19:33
@CatPlusPlus Oh, you do. The oven is pre-heated when it turns down the gas.
and it's all the university's damn fault for not having available this one magic staff member available and not answering my e-mails or getting my messages and then not red flagging a seriously obvious mistake
I didn't pay attention to how much gas there was earlier.
Also, I'm kind of drunk.
the only friends I've made at university were the kind where I'd rather kick them in the balls than sleep on their couch
@CatPlusPlus I usually wait 20 min to preheat and 15 min for baking the pizza. Often when you turn the nob there's a 'tick' sound indicating the termostate activation/deactivation. This should give you an idea of the current temp.
But the cheese is starting to melt, so maybe it'll be edible.
19:34
@DeadMG That's a rather... disturbing definition of "friend".
sbi
sbi
@CatPlusPlus OMG, don't be so clumsy! Just turn it up and down and see at which temperature the gas gets louder or quieter! Gas stoves usually are two-point temperature regulators. When they have reached the set temperature, they just turn down, when they reached a second point a bit below that, they turn it on again.
well, I did live with a girl last year, but she's living with her boyfriend now and it's an hour on the road, so it would be seriously inconvenient even if she was up for it
Also, I forgot to check the time.
Well, gl hf!
sbi
sbi
@CatPlusPlus I take it then that you do not want to be helped, right? Bon appetite.
19:36
lol
Meh, it's working alright.
@sbi There's no trailing "e" and there's an accent somewhere (there always is, silly French language).
plus, I'm still really sick
@RMartinhoFernandes It makes the pronunciation unambiguous, it's not silly.
and I have way too many modules this semester- two thirds or more of my course, instead of half
sbi
sbi
19:37
@StackedCrooked That tick sound is for electric ovens, but they often also have a lamp indicating whether they are currently heating or not.
@sbi Ah, that's right.
@LucDanton Yeah, I know, my language has them too. French uses them too frequently for my tastes though :)
sbi
sbi
@RMartinhoFernandes I am pretty sure Americans write it "Bon appetite", and since this is where I learned most of my English...
Oh.
Silly Americans, then.
it's "Bon Appetit", plus accent if you can
anyone giving it an extra e is just beyond wrong
because then, it just is the english word appetite, as in, desire for food
19:39
In Dutch we say "Smakelijk!"
How do you pronounce "ij"?
Not that this matters.
I managed to burn my finger, but I think the pizza is good.
@RMartinhoFernandes as in the English pronunciation of "lake".
sbi
sbi
@DeadMG That must be a British thing then, which leo doesn't even know about.
19:40
Electric ovens are better.
@StackedCrooked That's Flemish though isn't it?
@LucDanton It's the same in Holland.
sbi
sbi
@LucDanton What do Dutch people speak??
sbi
sbi
@RMartinhoFernandes Isn't that just a version of Flemish? (I hope I'm not stepping on anyone's toes here.)
19:42
There's some local differences between Dutch spoken in the Netherlands vs Flanders. The latter is often referred to as "Flemish".
@StackedCrooked I've read that 'Dijkstra' is pronounced a bit like 'dike', is that a regional thing?
It's not even burnt too much,.
@LucDanton Not really. "Dijk" should be pronounced as the English word "lake" but with a 'd' instead of an 'l'.
sbi
sbi
@LucDanton Like in IJsselmeer?
19:44
10
A: How do you pronounce the following computer/programming terms:

Bill the Lizardwiki - wick - ee boolean - bool - ee - un Dijkstra - Dike - struh Knuth - Kah - nooth (according to his homepage) daemon - day - mun yes (as in lisping or 'yeth') - huh? wav file - wave gif file - jif, like the peanut butter tiff - rhymes with gif

sbi
sbi
@StackedCrooked Yeah, I'm sure there are local differences, but I'd really wonder if they are as pronounced (pun not intended, but noted) as between say, a Bavarian and a Norther German.
I guess Dijkstra or someone had been using 'dike' as an approximate. Oh well.
I'm pretty sure 'dike' doesn't sound like 'lake'.
One slice might have felt on the vicinity of the floor.
But it's all right.
I like how the Cat keeps reporting on his pizza adventures while everyone is on to something else.
@RMartinhoFernandes This chat is multithreaded.
19:46
@CatPlusPlus WTF is the "vicinity" of the floor? You managed to catch it before it hit the ground?
@sbi I wouldn't know. The differences aren't very big IMO, but some people from one side have difficulty understanding the other side.
@RMartinhoFernandes No, I mean the floor.
IIRC Dutch speakers use the guttural [x] a lot more (sounds like the German Ach-laut) than Flemish speakers.
@CatPlusPlus Five second rule then?
sbi
sbi
@StackedCrooked If someone from Hamburg and someone from Munich spoke in their local dialects (and I'm not speaking of the Northern Low German, but a heavily accented Hamburger dialect), they would have a very hard time understanding each other.
19:47
It riles me up.
Yeah! Plus, it's hot, so it should have sterilised the floor there (not confirmed by science).
sbi
sbi
@RMartinhoFernandes More importantly: Is that a felt pizza?! Yuck!
@sbi Ok, there are a few local Dutch dialects that are very hard to understand for outsiders. (Like "Fries" in Northern Holland for example.)
I need to eat something to undrunk myself.
19:48
lol
@sbi Apparently, it is.
@CatPlusPlus The only thing that helps is drinking more.
It tastes ok.
sbi
sbi
@StackedCrooked Yeah, Eastern Frisian was more or less an incomprehensible foreign language for me when I was there for the first time in 1990. I was told though, that the local farmers can communicate just fine with the Dutch farmers from the other side of the border.
The bottom might be burned somewhat.
@LucDanton We use a distributed agents based concurrency system.
sbi
sbi
19:51
@CatPlusPlus Wouldn't that stink terribly with all the wool in a felt pizza?
What wool? My floor ain't wool.
You live on a sheep?
Oh, "felt" is cloth.
I though it was a misspelling of "fell" or something.
I'm angry.
Felt is like the cloth on casino tables.
19:52
Felt is a past tense of fell.
Isn't "fell" in the past tense already?
@RMartinhoFernandes It's even before that.
Oh, shush.
sbi
sbi
@CatPlusPlus I thought you had a felt pizza? Now, that sounds disgusting enough in itself, but to think it might be burned as well...
"Felt" is the past tense of "feel".
19:53
It should've been past principle anyway.
So your grammar nazism sucks.
felt and fell have absolutely nothing to do with each other
felt is a textile
I'm drunk, I'm allowed to use wrong words in my non-native language, dammit.
It was @sbi who used the wrong words.
no you're not
19:54
Also, pizza is good, so screw words.
sbi
sbi
@DeadMG You mean except for us Germans using "Fell" (obviously the same etymology as English "felt") for "fur"?
we're speaking English. German connection is not relevant.
I feel better already.
sbi
sbi
@RMartinhoFernandes No, it was the @Cat, you said his pizza "has felt." Shudder.
Oh yes, he did. I missed that.
sbi
sbi
19:55
@CatPlusPlus You felt better?
sbi
sbi
10 mins ago, by Cat Plus Plus
One slice might have felt on the vicinity of the floor.
feel is correct
Unless he no longer feels better.
sbi
sbi
@DeadMG How do you know he still feels good? You're not with him, are you?
19:56
then "already" would be incorrect
no
sbi
sbi
@DeadMG You argued better already. Mhmm. Might be Denglish.
hm?
oh
yeah, that's not really valid
You've argued better or even You've already argued better
but You argued better already, not valid
room topic changed to Lounge<C++>: Pizza, English and rick & roll. [c++] [c++11] [c++-faq]
Never gonna give you up.
sbi
sbi
@DeadMG Sounds right to my ear, but that might be my native language having exactly that phrase...
19:59
well, valid grammatical constructs and precise meanings vary even in closely related languages
sbi
sbi
@RMartinhoFernandes I was afraid someone would pavlov and post that the moment I saw the new tagline.
Never gonna give that pizza slice which fell on the floor up.
sbi
sbi
@CatPlusPlus What? The floor is up in Poland?!

« first day (365 days earlier)      last day (4809 days later) »