« first day (477 days earlier)      last day (4477 days later) » 

12:00 AM
Okay, so you want to allocate a large block of memory in one go to avoid fragmentation issues?
 
Yes! :)
But I have solved it now.
 
Well, you can always just do one big malloc and then use placement news.
 
Thank you @EtiennedeMartel .
 
Okay, RMS is really a zealot: richard.stallman.usesthis.com
 
@EtiennedeMartel I still wish I could do my work as effectively on his setup. The Java EE and The C#/ASP mucks it up for me. RMS is a beacon.
 
12:13 AM
What do you mean by "beacon"?
 
@DzekTrek Since you have a masters in microcomputing engineering. Can you help me?
 
I am listening, but be quick.
 
Perform the following 1's complement fixed-point integer arithmetic operations and note whether magnitude overflow has occurred in each case: (Hint: Use 7's complement arithmetic on the other octal shorthand), i) A3= A1+A2 ii) A3= A1-A2
Why take the 1's complement. Is that only when you want to add a negative number?
And why is it hinted to use 7's complement? Why not just to the addition and subtraction in octal when A1 and A2 are given in octal?
 
12:31 AM
but you didn't give me any value
on what to perform 1s complement?
 
sbi
@DzekTrek In this room, we don't hand out values. You need to be valuable all on your own.
:)
 
@DzekTrek A1=572053777777(octal) and A2= 206556400000(octal). Why are they making me use 1's and 7's complement? Can't I just add them in octal? Or am I miss understanding the question? ece.umd.edu/class/enee350.S2012.Silio/Homework/hw2.pdf
 
ok first of all
@sbi :)
@LearningC you can't. that's the basic mistake everyone make at the university.
you first need to make it in binary
and over it apply 1st complement
 
I saw some youtube and they were adding and subtracting octals
 
doing complement over octal values is possible however it's not your level
since I assume you are at high school or university
yes, a lot more complicated
 
12:41 AM
@DzekTrek I checked my answer easycalculation.com/octalarith.php and the answers came out the same
 
the thing is not to solve it, but to understand it
do you know what is 1st complement at all
 
@DzekTrek I think. Take the binary number and invert it. If you get a 1 in the farthest left it is negative
 
and yes there is only 3 complements over values ( 1st, 2nd and negative complement ) What is 7s after all?
correct
actually yes and no, it sometimes acquires special knowledge to determines wheter or not it's positive or negative, since that 1 soometimes could be just a carrier bit
 
@DzekTrek I think 7's complement is taking 77...777 and subtracting A1 from that
 
oh you mean complement over 7777... values?
 
12:44 AM
yea
 
I see, what is the value of 77.... ?
it's infinite or not?
it can apply bot scenarios here
 
lets say A1 has *****(5 numbers) just take 77777-A1
 
since you take only values that matches to binary correspondance of A1 set
yes
so invert it into binary
do you know how to do that?
 
yea
use a binary to octal convert =). But I know how to do by hand
 
7777/2 = ( writes down 1 ) what is left /2
no no
do it yourself, that's the fastest way of learning things
I now sometimes to troll just to encourge people to think
don't use any calculator, do it by yourself
 
12:47 AM
But the problem is I don't understand the question. Do I need to do 1's compliment when add?
 
when you are finish, call me, I have a work here
 
I use calculator to check my work. If i can show you my paper I would.
Do I need to do 1's compliment when add?
 
let me read assignment again i forgot
 
@DzekTrek ece.umd.edu/class/enee350.S2012.Silio/Homework/hw2.pdf Read here is easier. It is problem #1
 
yes, compute 1st complement on both sets
and see what you get
 
1:01 AM
did you solve your tak?
 
@DzekTrek When I take the 1's complement do I take both A1 and A2?
 
you apply 1st complement on both sets
one set at a time
first deal with A1 set
and after it with A2
 
Ok I got the 1's complement of both sets
For part i) do I just add the two 1's complement?
 
yes
compute AND operaton over these two sets
 
1:17 AM
Wait in addtion with 1's complement I do AND? Or are you referring to part b in question 1?
 
Aro
Does anyone here know of any good vps hosting companies? I'm looking to make a web application and that requires more than 175MB of ram.
375mb minimum probably?
dedicated i mean :(
 
yes, sorry that was a part b
uhm... did you try google?
 
1:33 AM
I own serverflare.com. Contact me I can hook you up with some cheap ones or even free.
 
1:45 AM
@DzekTrek So when adding numbers is it necessarily to convert it to 1's complement? Why not just add it in binary?
 
good q.
sometimes the result is same , sometimes it's not
that's because of the aformentioned carriage bit
it's strictly advisable first to convert everything to binary so that errors don't occur
and after that procedure perform any of the given operations
 
Do you think I will lose points if I don't convert it to 1's compliment?
 
that is what is written in the assignment
but before you send it, post here how did you do, and I will correct any mistakes
 
I'm sooo confused right now. If I add A1 1's compliment and A2 1's compliment it does not come out the right answer
 
Xeo
2:04 AM
Damn, git is killing me... -.-
 
what is the result of set A1
octal -> binary
 
Let me do it again. Give me 5 minuites
wait I missed copied. I'll update it
 
@Xeo by-design.
 
Xeo
I just wanted to revert an add, and git just removes the directory... :(
 
@Xeo Impossibru!
 
2:08 AM
@DzekTrek A1=101 111 010 000 101 011 111 111 111 111 111 111 (binary)
 
A2
 
Give me another minute
 
You know, considering how MacKeeper is advertised, there's no way in hell it's a legit product.
 
A2= 010 000 110 101 101 110 100 000 000 000 000 000
 
That shit must be filled with spyware.
 
2:12 AM
My friend has that
I took a bucket of water and poured it all over his mac book and MacKeeper was able to save it
 
2:28 AM
ok, so you got it right
 
@DzekTrek Then what? Do I just invert the binary code and add them? What about part ii?
 
now compute 1st complement over set A1
and A2
 
@DzekTrek Then A1= 010 000 101 111 010 100 000 000 000 000 000 000 000 (1's compliment) and A2= 101 111 001 010 010 001 011 111 111 111 111 111 (1's compliment)
 
ok, what do you need to add? :)
compute addition over those two
Do you know how to do it?
 
2:43 AM
add them? Yea
add is easy
 
do addition over binary values
 
@DzekTrek A1(1'complement) + A2(1's complement) = 111 111 111 001 100 101 011 111 111 111 111 111
 
ok and the result was supposed to be?
all 1
 
@DzekTrek So the answer is supposed to 111111111111111...1111?
 
no, you said that your teacher gave you the result of it, so what was the value of that result?
 
2:49 AM
I dont have the results.. If I used a calculator to add A1+A2 I get the number
 
Gentlemen, where I can find a reference of asm opcodes and their binary/hex translations? I have compiled assembly code and I want to convert the instruction numbers/codes back to their textual representation
 
so thats it
and what is the number?
 
the answer with the adder is : 1000000000110011010011111111111111111
Since I added the 1's complement should I convert it back?
Man this question is to confusing I'm going to ask him when I get to class.
Can you tell me what question 2 is asking?
 
Xeo
Anybody with GCC 4.7 here?
 
@Xeo how can I check the version of gcc?
 
Xeo
3:01 AM
gcc -v
 
nope using 4.61
how do I upgrade?
 
did it say to convert it back?
it can compute
it is capabalce since it has 36 bits
no more no less
I mean it always have 36 bits, but if it was some smaller number there would be more 0s in the chain :)
 
@DzekTrek Can you translate #2 for me? Is A=4071 in octal or in 12s? How do I convert to BCD do I have to convert A to binary first?
 
so bit by bit
example 4530 is 100 101 011 000
 
That is part b of #1
I'm talking about #2
 
Xeo
3:11 AM
0
A: C++: Implementing a function defined inside an anonymous structure

XeoThis is actually possible (in C++11), and in two ways: struct Named { struct /*Unnamed*/ { void Function(); } un; typedef decltype(un) Unnamed; }; // #1 void Named::Unnamed::Function(){ } //// #2 //typedef decltype(Named::un) Unnamed; //void Unnamed::Function(){ //} //// same way, us...

@LearningC Build from trunk
 
@Xeo Huh? Build what from trunk? What is a trunk? the back part of a car?
 
Xeo
@LearningC Err... ever worked with source control?
 
@xeo nope. I have no idea what that is.
 
Xeo
Okay, then just forget my question. :)
 
Way a head of you =)
 
3:17 AM
make that binary in digits
step by step
ever anyone experienced problems with setting up pui ?
 
What radiux is A=4071 in?
 
user457812
Radiux? Radioactive ducks?
 
lol
I think it is radix
 
user457812
Probably, but I can't help but read radiux without thinking "ducks"
 
user457812
Gah, seeds in my mandarin! Blasphemy!
 
3:25 AM
it read it ra-dics
What is "mandarin! Blasphemy!"?
 
user457812
Radix is ra-dics, but radiux.. it's got some ducks in there
 
user457812
A mandarin is a mandarin, blasphemy is blasphemy
 
Are those two even real words? If so what language?
 
user457812
Really? O_o
 
Oh just define them =)
 
user457812
3:29 AM
Are you telling me to do that or are you just saying that's what you should do?
 
Nope I saying I just looked them up. Now I know what they mean.
 
user457812
Okee dokee then.
 
Are you Chinese?
 
user457812
No, why would you think I'm Chinese?
 
I thought you were since you mention having seeds in your mandarin.
 
user457812
3:35 AM
I don't think complaining about having seeds in a fruit is really any indication of being Chinese O_o
 
Xeo
So, somebody was having a discussion with me about throw in a constexpr function.. @LucDanton? @RMartinhoFernandes?
 
Isn't mandarin a language?
 
@Xeo Not with me I think, but I recall being here.
 
Oh i just read the first definition .
 
Xeo
Hm, I can't even ping the robot, he's not in the list of names when writing @RM :|
 
3:37 AM
What is the life without a string? String is a motor of every society, and it's prospect to the better future. ( Ah, I always liked Bograncevic's poetry )
 
user457812
Mandarin is a family of Chinese dialects, but it's also an orange.
 
user457812
Strings can eat my shorts.
 
Xeo
2 days ago, by Xeo
@RMartinhoFernandes *str != '%' || bla ? check_format(str+1) : throw 5;
So it was actually the robot
Damn, usually he's right here at this time of the day, just not when you need him
 
How dare of you to say that. Strings are poetry, ready to be heard and to fill our souls with a little hope. :)
 
Xeo
Memo for me: 7.1.5 [dcl.constexpr] p5
 
3:41 AM
Does anyone of you know here Australian?
 
user406009
I like how during the first GoingNative talk Bjarne talks a lot about making things more strict typing, more junk in the type system(destructors, templates, etc).

On the other hand people are going all crazy over stupid annoying "dynamic typing", where you lose your destructors and your types.
 
@EtiennedeMartel :) I like to make jokes, to say something irrelevant nobody else would, to troll when I'm nervous and so on, so forth . :)
You are nice man. :) @EtiennedeMartel
 
@DzekTrek That's not really trolling.
 
@EthanSteinberg People want dynamic typing in C++? (I haven't seen much GoingNative)
 
3:56 AM
I know, but I'm trying to develop that skills. I really try, but everyone is taking me serious.
 
user457812
Yeah, trolling would be that guy from last night.
 
user457812
Also, you shouldn't develop your skill in trolling. That's just a bad idea.
 
lol
 
Personally, I'm a metatroll. I troll trolls.
 
yea, also it leads to doom. So far I had no advance in it at all.
@EtiennedeMartel :)
 
3:57 AM
I troll the trollers of the trollers.
 
But what about mice troll? @LearningC
 
what is mice troll?
 
I knew you were trolling as soon as you asked me binary logic. :)
 
That was serious.
 
@LearningC it's a mice and a troll at the same time. :) ( I got this one )
 
3:59 AM
I still don't know how to do it.
How can a mice and a troll breed?
 
make bit-by-bit conversion, when you get binary number, append that number, extract by 4 bits and see what you get , #assignment 2
You are smarty, aren't you. :)
I have no idea how mice and troll breed. :P
 
Ok #2 is saying A is already BCD and I convert that to binary i get 0100 0000 0111 0001 right?
 
yes
now take 12 bits out of there
and to the remaing 4 add 8 0's
translate those two values into decimal numbers and see what you get
adding 0 from the left to right
what is the good substitute for this filename.c_str() function, when I want to my filename be of char* rather than string type.
 
std::vector<char> bytes(filename.begin(), filename.end()); bytes.data();
Or &*bytes.begin(); if not using C++11 but that's invalid if bytes is empty, unlike with bytes.data().
 
I see, nice solution. :) Thanks, @LucDanton
 
4:12 AM
Anyone knows if &*filename.begin() is valid or invalid exactly? I know there's the contiguity requirement for C++11 but no idea if one is allowed to mutate the elements. I'd think there'd be a non-const overload of data for that really.
 
@wilhelmtell I just realized that that is undefined behaviour. :-S SEQUENCE POINTS!
... i think.
 
@DzekTrek Thank for the help today. I'm going finish this tomorrow.
 
@wilhelmtell Calling overloaded operators is treated the same as calling any other function.
 
4:34 AM
@LearningC np, man :)
good luck with tommorows classes
how can I make cin operator to take char?
 
5:01 AM
Like anything else
 
:D
can't troll the troll, can you? :)
@EtiennedeMartel you are nice pal, you really are. If anything you need, I will be there. :)
 
Hoxie is back :D
 
Xeo
Who is Hoxie?
 
Hoxie is Hoxieboy
An online figment of memory distributed across a server and clients
sums it up I think
 
Xeo
5:16 AM
Why the fuck is my mercurial repo owned by root... wtf.
 
Because root is all-knowing
 
Hoxie, the who?
Hello Hoxie
I need help
How can I translate matrix4 to matrix3?
You are allmighty, aren't you?
 
user406009
Well the matrix3 has to really want to be translated.
 
what if that condition is satisfied?
what then?
@Xeo, root is the godlike and all shall praise him.
When is using labels allowed?
That's a neat Q. , isn't it?
 
Sadly, Hoxieboy is NOT that great with C++, despite the fact he chats here :s
 
5:23 AM
What our almighty the Hoxie needs? What can we do?
I will do your assignment, if it is too quick
cause I am going to bed now
it's 6 AM here
6:23
quick
 
XD I simply hang around this chat to pick up the language's details by people trying to solve hard problems
I don't really have an any assignments
 
I see! Well solve this one, what would camel do if it somehow finds itself in the middle of Arctic? I know, it's a tough first Q. but I am sure you will somehow manage to answer on it.
I need to go, ping me when you find the answer.
 
Lol get some sleep, you probably need it >.>
Btw there are arctic camels
 
Cheater!
:)
 
:D
 
5:26 AM
folks, see you all. :) bb
 
Night!
 
6:23 AM
Any GUI guy here? I need help please
Anyone alive?
 
I'm alive
what toolkit are you using?
lol, Yo' Mama Jokes are funny as hell. I lmao when I read this one:
> Yo Mama's so fat, when she walked in front of the TV I missed 30 minutes of the show.
 
 
1 hour later…
7:50 AM
Lots of questions on recursively iterating file directories lately.
 
8:27 AM
I'll change it up a little. I have a question
I'm getting started with c++ and stuff again, how do I keep myself interested?
 
@tanner Come into chat more often?
 
Yeah, but just talking isnt too motivating
 
Well what are you doing that's not interesting?
 
Getting confused a lot I suppose. Lots of terminology. And I have no direction to practice acquired skills ya know.
 
@tanner Study less, do more. I learned C++ by trial and error, only learned terminology much later.
 
8:34 AM
Oh, do you guys have suggestions for beginner programming... missions I suppose would be a good term?
 
There's no kind of program you can't write in C++, so "no direction" isn't an excuse.
 
Beginner programming or beginner C++?
 
What sort of programs interest you? What have you been writing in your other language(s)?
 
this is my first oop language. I'm actually using c# but nobody was on that channel.
 
@tanner C++ isn't very OO. OO just happened to be a popular "paradigm" when it was new, so the label was applied and stuck.
 
8:37 AM
Let's hope it will be your last oop language ;)
 
Lol. Well I like the concept of OO programming, it's pretty. But as far as what program im interested in, I have no clue lol.
 
Do you like games? Online applications? Numerical science? You must want to create something!
 
Defenitely. games would be fun, but again i'm just going through a book taht doesn't have exercises.
 
What book?
 
Illustrated c# 2008.
 
8:41 AM
@tanner Wait, this means you're not learning C++ at all?
 
Yeah, I said that. I just figured a pep talk for c++ would be the same for c#
 
@Potatoswatter No wonder he's not interested in C++!
C++ and C# are entirely different
 
Hey, I'm interested in c++, just got scared away from linux, so chose c#
 
@tanner Pep talk, maybe. Then again, it's roughly the same for every language. Remind yourself why you decided to learn programming, and reach for your original goals armed with the new knowledge.
 
Use Visual Studio for C++ there is a whole new world out there!
 
8:44 AM
I also chose c# because it's said to be easier on the beginner programmer too.
 
But C# doesn't have quite as broad a range of applications as C++, which is pretty universal. More importantly, the selection of libraries is completely different, so I can't help you get started in any particular direction.
 
Well, see im pretty new.
 
OK, I agree C# is easier to learn than C++. But the code is about 2 times faster
 
@tanner The problem with Microsoft's platforms is that many things are "said" about them… usually by Microsoft itself.
 
That's understandable.
well I have to go. it's almost 1 on the west coast.
 
8:47 AM
Bye and good luck
 
Thanks for the info. I'll be back in the morning I suppose.
 
We'll be expecting a full-featured program from you when you return
 
@tanner Well, this room is pretty much 24/7, but we really don't cover C#.
 
9:22 AM
@Damian How is that?
@IntermediateHacker Come on chat you fucker!!, I need help xD
@TonyTheLion How're ya?
 
sbi
"I'll be back in the morning" he said at 9:48am. Shakes head.
 
@sbi Hi, how're you?
 
sbi
@MrAnubis I'm well-rested, for a change.
 
@sbi change from what? , too much coding? :)
 
sbi
@MrAnubis Getting up around 6am.
 
9:33 AM
0_o , I never woke up so early except the case when under exams :D
 
sbi
@MrAnubis I have kids to bully out the door in the morning for at least half the month. On my own, I'd rarely wake up before 8am.
 
@sbi for college should I guess? :)
 
sbi
@MrAnubis When my kids are old enough to go to college, they are expected to see themselves out the door in the morning. No, it's just the younger ones I need to bully out the door on my own.
 
@sbi You speak/reply soo logically should I say that makes me feel Idiot :)
of-course I am idiot which I accept :)
 
sbi
9:42 AM
@MrAnubis Huh? I'm not sure I follow you there.
 
morning
 
@sbi Sorry for my English :(, but I don't think I can make myself more understandable than that :). But I hope you got the gist what I meant there :)
 
sbi
@MrAnubis No, I didn't, that's why I was asking. And it wasn't your English either.
 
@sbi all in all what I mean to say is your brain is 1000x more horsepowerfull than mine when it comes logical/smart speaking :)
 
sbi
9:48 AM
@MrAnubis Haha! I wish. You're just impressed with my greater experience in small talk and using a foreign language. And the way I have seen and thought through things that are still ahead of you. That is called age. You do not wanted anytime soon.
 
who's watched Hans Boehm's threading talk?
 
sbi
@TonyTheLion Many, I'd wager.
IIRC, it's caused some yawning around here. My memory might fail me there, though.
 
They didn't upload yet Andrei's talk for whom I am waiting :(
 
@sbi as in, it's boring?
 
@sbi What's the age of younger one though?
 
sbi
9:53 AM
@TonyTheLion I really don't know, I haven't seen it. And I might remember wrong. But one of the talks definitely caused the chatters here to remark that the one before that was much more interesting, and speculations that the one after that should be, too. ISTR Hans' talk to be the one. ICBWT. You might ask the @Cat, @Fred, @Xeo, and @RMartinho. I think they were here at the time. (Please forgive me guys if I summoned you for the wrong reason. Indulge an old ape's follies, please.)
 
sbi
@MrAnubis For my youngest one it's still something to remark upon when there's a week I didn't need to change the bedclothes at least once in the middle of the night. :( My oldest girl is a teen with a boyfriend. There's an undisclosed number of siblings between them. I have disclosed that there's more than one boy. (No question, the robot will have figured it all out by now.)
 
lol
I want a setup like this :(
 
sbi
@TonyTheLion You know, most of those are probably used by people who play flight simulators on them. What a waste.
 
yea, but I wouldn't play flight simulators on them
 
sbi
9:59 AM
@TonyTheLion WoW?
 
I'd write code and do useful things
 

« first day (477 days earlier)      last day (4477 days later) »