« first day (706 days earlier)      last day (4468 days later) » 

17:00
They could have just used "Chicken", no?
Ohai, you're the guy from the thread debate with @sbi ?
'fraid so :(
nobody want cock for dinner...
17:01
Some people do.
they want some other "cock"
I’m not lolling.
@Rapptz what the fuck is wrong with some people?!
"Wanna taste my cock soup ?" lol
@TonyTheLion I have no idea how anyone could even justify that.
17:04
@iWheelBuy Cannibalism goes to /b/.
I have a question. What is the best algo to draw a line? Bresenham's line algorithm seems to be a good one?
Define “best”.
What are ur needz.
What is the best number ?
@iWheelBuy Yes.
Neighbour: 'OK, so your moggy can do tech support - my pooch drove me back from the bar last night - much more useful", Me: "Your motor seems to be parked up neatly, can't be a bitch then", (female developers, have at me all you want:)
17:05
@kbok 23121994, which is my birthday.
user friendly and easy to implement
The user doesn’t care what algorithm you use, as long as the program is fast and draws a line.
different alogs draw diff lines
0
Q: Equivalent of C++ set container in C

user1238193I am required to convert some C++ codes to C and I am having some problems regarding the STL container. In the original C++ code, set container is used as in set< pair<int, int>, sortMapped> mySet; where sortMapped is a custom comparator to "sort" the entry by mapped value instead of ...

How can drawing a line not be user friendly ?
17:06
What's the name of Berlin's airport?
No more cock comments - you have to draw the line somewhere..
@kbok not beautiful line)
@R.MartinhoFernandes Berliner Flughäfen.
Okay, what about the fastest algo
@MartinJames No more cockments?
17:09
Oh god not that again.
@iWheelBuy loop horizontally or vertically depending on the angle of the line, then work out the other coordinate. It the easiest to implement IMO
@R.MartinhoFernandes hehe
@R.MartinhoFernandes you mean the one which is currently getting build, and getting delayed and delayed?
Which Berlin airport? The useful ones likeTempelhof of the one used by Ryanair?
@kbok okay i'll think it over
17:09
@daknøk hmm no. that's plural
@bamboon Operational ones.
I'm using DDA atm, but I want some other... all my groupmates use it
USTREAM u specialized in streaming y u stream slowly.
@R.MartinhoFernandes there are two, tegel and schönefeld
@kbok If Apple didn't develop it, it obviously isn't user friendly.
17:12
Oh, aparrently Tempelhof is now shut :(
@MartinJames yes
@Drise Like the maps. The maps are user friendly.
Guys if we stick a lowercase 'i' in front of everything, everyone will pay massive moniez and we can get rich!
@Drise I find my fridge to be very user friendly. It isn’t made by Apple.
iFridge T_T
@R.MartinhoFernandes you are coming to berlin?
Fuckety fuck €864,05?
Robot playing guitar.
WTF:
I was led to believe people could use planes without having to sell their souls.
Oh wait, these only have first class seats for sale.
@R.MartinhoFernandes You kidding?
17:16
@R.MartinhoFernandes you probably can get there for 99 euro
I’m going to wrap UIKit. Fuck Objective-C.
@R.MartinhoFernandes Yea. People. Not robots. Airlines discriminate.
I bought an iFridge last month. It was really, really cool, but now I can't find it..
@TonyTheLion lol
@MartinJames Did you shatter the glass front before you lost it?
One of my friends took the case off his phone for the first time in ages, since we convinced him it looks sexier that way, and within 20 minutes, he shattered the screen.
17:24
@bamboon Seems not.
Chat crashed?
@sehe :)
@Drise seems like
Did you mean to post this on your blog? — aquinas 6 mins ago
lol
First time I 've posted on here.. timeouts.. dead. Story of my life:(
@MartinJames y u borked chat
17:35
Dunno, just started typing things at my box, stuff stopped working, same as happens most days.
Should I get Linux instead of Windows?
@MartinJames At least you didn't: Hey I have this really off topic question about JQuery. Here's my SO question link. Can anyone help me?!?!?! for your first time posting here.
I have hopes for you.
I perferred 'Windsows' - I was just ready with a comment about pig-farm management when you edited it.
@MartinJames (psst, use the reply-to-message button)
Ok, seems I can't find a flight from Portugal to Berlin for under €200. Does this sound right? (I have no idea how much such a thing would cost.)
17:38
@MartinJames What do you prefer now?
@R.MartinhoFernandes US to berlin was about 8-900 USD
@R.MartinhoFernandes Would you like to be stuffed in a box and sit in the cargo bay? You could probably find cheaper then. Maybe ship yourself to yourself.
@R.MartinhoFernandes that sounds really cheap.
Yesterday shipping!
@Drise I checked Ryanair, and it costs €150 to Frankfurt.
@R.MartinhoFernandes Which Portugal airport?
17:41
Huh, the Euro is a buck 30.
@MartinJames Changing it doesn't affect the costs much.
@R.MartinhoFernandes Can't you use super robot power and run the rest of the way?
Or are you one of the fat and lazy robots?
@VinayakGarg 'Windhows' - small cargo ship management.
I'm slim and lazy.
@R.MartinhoFernandes Bender? Is that you?
17:43
@Rapptz Ok, cool.
@R.MartinhoFernandes It does if you have to travel KKK to get to the airport first:(
@MartinJames Wut. I didn't know the KKK had their own transportation service.
@MartinJames Ah, yeah, but I can find flights with the same price from both, so I'm picking the closest one.
Portugal -> Berlin is 2184km
@Drise You haven't seen the planes with the crosses on them?
17:46
Also I thought airline price depended on the time of the flight
I did a quick search and cheapest I found was $907 lol
-1 "what is the design pattern used to figure out that 5+2 = 7? i think it is some kind of addition". — Cheers and hth. - Alf 47 secs ago
^ I just think it is annoyingly dumb question. How can one say that?
I upvoted to cancel your downvote.
@Cheersandhth.-Alf I tried it with floating point doubles and it did not work!
17:50
because I can and saw nothing worth downvoting for.
@Rapptz The one I'm looking at 3:30 + 1:00.
@MartinJames then you did something wrong. it should always work with floating point. are you perhaps suffering from misperception that floats are sort of fuzzy?
Your analogy expresses already known knowledge on how something works (addition) but he doesn't understand how something works (Python interpreter)
Direct flights except a very expensive, it seems.
@Rapptz the question is noise
17:51
@R.MartinhoFernandes hmm, when do you fly?
@R.MartinhoFernandes For what date?
Next Thursday.
OMG. This is the first time I see a website asking if it can use cookies.
@Rapptz what do you think the "read eval loop" referent is? it just says loudly "hey, i'm a troll, and you're a stupid fuck"
I can't understand it, floats have always worked for me before, it's my integer arithmetic that usually fails.
@Cheersandhth.-Alf Woah, are you sure you're not reading too much into it?
17:53
i hate them young trollers
Yeah I didn't get that vibe at all lol.
I don't think it's a good question, but it certainly didn't look offensive to me.
@R.MartinhoFernandes I was looking at 9/28 - 10/5 flights and they were more expensive than 200 euros.
@R.MartinhoFernandes Now I understand - a bit too short notice for cheapo travel:(
Yeah it's really last minute
17:54
@Rapptz Oh, with return it's 400.
I still think that's pretty cheap IMO.
I flew from Belguim to Frankfurt once, and it cost me 400 Euros
Can't remember what it cost me to fly to Berlin
@Rapptz He should try very hard to get the meeting/whatever moved to Portugal:)
@MartinJames I don't think that will fly :)
Will they refund your travel expenses?
I had mine refunded to me here in the UK on the last two interviews I did
17:57
@TonyTheLion That's 341.5 km compared to the 2184km flight he's taking.
@R.MartinhoFernandes Shame - the beer's cheaper too, (though not better).
@Rapptz I know that.
A friend of mine that visited Berlin says otherwise.
Want good beer, go to Belgium
We'll show you real beer :)
@TonyTheLion Yes, they will. But I don't want to show up with first class expenses.
17:58
@R.MartinhoFernandes you fly from porto? are you going there for an interview or why is it that last-minute?
@R.MartinhoFernandes no of course not, but it helps nevertheless
@bamboon Yes, it's an interview.
@R.MartinhoFernandes cool, for which company?
That's an expensive interview lol :(
Ok, time to go.
@bamboon axaio.
Later.
17:59
@bamboon It's company-confidential:)
@Rapptz I'm not paying, so I'm cool. (and it shows they're very interested in me, I think)
Ah that's good.
You must have cleared the telephonic interview then. :)
@R.MartinhoFernandes who wouldn't be
@R.MartinhoFernandes Best wishes anyway:)
18:02
Yeah good luck. :)
@R.MartinhoFernandes ..and if it turns out to be a rubbish job when you get there, empty the minibar:)
Gotta go now, I have to go and collect sausages.
Back too 100rep/day, don't know how long I'll be able to keep that up.
Wow...
Me: "Did you include <windows.h>?"
Them: "I did now, look what happened."
And they post a screenshot of their file having a line:
<windows.h>
Starting winapi before starting C is a very bad idea...
18:16
@Borgleader I wouldn't have answered that question, honestly, since it seems like one of those repwhore like questions. But maybe that's why I'm still at 1.5k rep myself.
What question? The float one?
I thought it was valid, I mean he pointed out many cases where the .0 is not needed
Belgian tax money is being well-spent again on national radio (mp3 stream).
Should I consider the switch statement a special type of if or a special type of while ?
@MohamedAhmedNabil: Does the switch loop on itself?
@Borgleader I also don't like answering duplicates.. Just me I suppose..
18:20
@Borgleader No but people use the break statement in it
Break keeps you from falling from one case to the next
@MohamedAhmedNabil switch is more like an if than a loop. (continue keyword doesn't work in switches)
a while is a loop, switch statements don't loop, therefore switch is not a loop
a switch is akin to if/else if/else
@MooingDuck Then whats up with the break;
I just told you
18:22
@MohamedAhmedNabil it works in a switch.
@MohamedAhmedNabil You should really consider a switch a switch. It's closer to an if than while, but substantially different from either.
Switch.... is just an obnoxious if then else block
@Drise easier to optimize for the compiler, but other than that, yes.
@MooingDuck I mean why do people use break, if switch isnt a loop
@Borgleader Not in a warehouse, where a break results from from falling from one case to the next.
3
18:23
a warehouse? what?
@MooingDuck I'd prefer to be able to easily change the types I'm deciding over, instead of being constrained to integral types.
@Borgleader lawsuit joke, I think. New guy is trying to be funny.
Oh -.-;
@MohamedAhmedNabil A loop executes one section of code repeatedly. A switch has a number of sections of code that could be executed, and for any given execution selects one of those to actually execute. The two are often combined -- e.g., a loop to read data, with a switch inside to select how to process each datum you read.
I also find the need for break statements in cases to be obnoxious and boilerplate.
@Drise He didn't seem to mention anything about lawsuits. I found it pretty funny.
18:26
@JerryCoffin I thought it was something about breaking bones as a warehouse worker. My humor is buggy
@JerryCoffin So basically break is used so it would stop evaluating the rest of the conditions when the correct one is found ?
@MohamedAhmedNabil Yes. The switch jumps to the matching case. If you don't use a break, execution will continue from one case to the next though.
Also, the numerous "from"s are throwing me off.
@JerryCoffin break, simply saves processing time in this case, right?
Xeo
Xeo
0
Q: Check if a string is available in a bigger string of length 100,000

r20rockHow do I check if a string is present in a bigger string of length of 100,000 characters in C++ or Java? I know a method str.find("sub_string"); but it can't handle such a big string. The max execution time is 1 sec. Thanks

18:29
@JerryCoffin Which is why I believe if else is superior.
Xeo
Xeo
sigh
> I know a method str.find("sub_string"); but it can't handle such a big string.
There's a limit?
Xeo
Xeo
no
> If a constexpr function or constructor is called with arguments which aren't constant expressions, the call behaves as if the function were not constexpr, and the resulting value is not a constant expression. Likewise, if the expression in the return statement of a constexpr function does not evaluate to a constant expression for a particular invocation, the result is not a constant expression.
^ What's the use? Could constexpr instead lead to more ILP?
Xeo
Xeo
It can't handle it in 1 second apparently
@StackedCrooked Of constexpr functions or allowing them to not actually be constexpr?
18:31
@Xeo Latter.
@Drise With if/else, you have to use else to keep from executing one if after another. With switch, you use break to do that. else is one character shorter, but that's hardly what I'd call a major consideration.
@MohamedAhmedNabil because sometimes you want to break out of a switch.
@MohamedAhmedNabil No -- it's typically necessary for correct operation.
@MohamedAhmedNabil: break is supposed to skip the execution of statements in current block of loop or switch.
Xeo
Xeo
@StackedCrooked Allows them to be used like normal functions
18:32
@Xeo I say bad question
@MohamedAhmedNabil no, without break it executes all the remaining types
Now I get it, Thank you guys
@Mysticial Sure --std::string::max_size() (though that'll typically be at least 4 Gig).
@Xeo Well, I was just reading about Instruction Level Parallelism. I was wondering if exploiting ILP is perhaps a secondary goal of constexpr.
@Xeo Sounds highly suspicious to me (unless this is running on some minuscule, ridiculously slow 8-bit processor or something).
Xeo
Xeo
18:34
@JerryCoffin depends on substring length I'd say
@MooingDuck I need your opinion on something, Should I transfer from windows xp to Linux?
what if I use char* in C++?? — r20rock 54 secs ago
@MohamedAhmedNabil no
Dear god.
Hi all!
18:35
@MooingDuck Why not?
@Xeo Yeah, that's why I called it suspicious. It's almost certainly possible, just highly unlikely.
@MohamedAhmedNabil it's hard. Why would you?
@MooingDuck Seems alot better than Windows. ALOT
@Drise: I think in the context of that question, both the [java] and [C++] tags can stay
@MohamedAhmedNabil alright, then switch. I didn't find it better. BUt I play a lot of games. :/
@MooingDuck It's too vague then. This isn't code golf.
18:36
@MohamedAhmedNabil If you're asking for opinions and you made up your mind why bother asking in the first place?
@Drise nonsense, he wants answers in two languages. That's fine.
Indeed, if you know its better, what's stopping you?
Why is this an SO question? Just write code that does what you need using whatever string search algorithm you like. As asked, this is way too vague to answer because it doesn't give us nearly enough information to choose the appropriate algorithm. (Does the substring change from search to search? Does the string? Is the string evenly distributed characters? Does the substring contain rare inner substrings? And so on.) — David Schwartz 5 mins ago
@Rapptz In case I was wrong. VERY WRONG. Like im not probably gonna switch because @MooingDuck didnt find it better and I trust him, as well as it being hard. And because he asked why I wanted to switch
@MooingDuck Whats Hard about it?
@Xeo @JerryCoffin Quick test. (Maybe GCC is outsmarting me though.)
18:38
0
Q: private operator delete

Nikita Trophimovhttp://efesx.com/2009/12/01/public-operator-new-and-private-operator-delete/ In this article i read that this code should give an error: #include <cstdlib> struct Try { Try () { /* o/ */ } void *operator new (size_t size) { return malloc(size); } ...

I don't actually know, though I could guess ^
@MohamedAhmedNabil I don't recommend it, but if you're already familiar with linux, then use both.
Xeo
Xeo
@StackedCrooked Sounds right from that one other answer on the question with 4ms
@MohamedAhmedNabil Nothing is stopping you from dual booting.
@MooingDuck What about it being hard. Whats that about?
18:39
I have a question... When I have a vector of pointers which point to instances of a class (free store), how do I effectively remove elements (both the pointers which are formal members, and the instances which are pointed to) from it? I remove the pointer, and then delete the instance that is in free store, is that correct?
@MohamedAhmedNabil Windows GUI makes it easy to explore all your options. Linux GUIs aren't usually as extensive, requiring command line work, which is a PITA.
@MohamedAhmedNabil That's personal opinion, I find it easier.
Xeo
Xeo
@Bane Use unique_ptr
@Rapptz I tried to open MAC OS 10 in Virtual Box, Didnt turn out nicely, Too slow
@Xeo It's 0.5 ms in my sample :D
18:40
@MohamedAhmedNabil Mac OS isn't meant to be dual booted. They don't even sell licenses for non-Mac computers.
@Xeo, thanks, but I don't know what that is. Googling right now...
@StackedCrooked No, I'd say that looks semi-reasonable. You probably are getting better than normal performance by writing then immediately searching though -- good chance the whole string is in the cache when you're searching it this way.
@Rapptz When you mean dual booting you mean installing it, Or just opening in Virtual Box?
Xeo
Xeo
@StackedCrooked Oh. right :D
18:40
@MohamedAhmedNabil as Rapptz said, dual boot or use a VM. Doesn't matter to me which you use primarily
Xeo
Xeo
@Bane Never heard the term "smart pointer"?
@MohamedAhmedNabil dual booting is where two or more OS's are installed
@JerryCoffin Ah.
@MohamedAhmedNabil Dual Boot != VM. Dual booting is when you install another OS to another hard drive space.
@Xeo, I think I have, but in the context of higher level languages... Oh well, I saw what it is now, seems like I need it.
18:41
@MooingDuck Can a 4GB Ram and a Core 2 Duo Processor computer take on something like Dual Booting or will it slow the Computer Down?
Xeo
Xeo
@Bane Btw, reason the stuff in the vector is on the heap?
@MohamedAhmedNabil dual booting takes more hard drive space, but doesn't make the computer slower. it only runs one OS at a time.
@Xeo, I need to keep it persistent, so I can't use the stack...
@MooingDuck How much hard drive space if i Install The latest Version or linux
The vector is a part of a class, something like a physics engine with a list of objects.
Xeo
Xeo
18:43
@Bane Ehm.. the stuff inside vector is already on the heap, so you're basically allocating pointers on the heap that point to other stuff on the heap.
@MohamedAhmedNabil there's hundreds of versions of linux, but I'd recommend at least 30GB
@Bane At least IMO, Boost ptr_vector is usually preferable to a vector of unique_ptrs.
@MohamedAhmedNabil I use ubuntu.com
@JerryCoffin, checking that out, thanks.
@MooingDuck Oh yeah one more thing, I asked alot on many websited but never understood
Xeo
Xeo
18:44
@JerryCoffin If you want copyability, I guess, yeah
@MooingDuck Whats the difference between linux, unix, ubuntu, etc... Im confused
Xeo
Xeo
Or not bother with the fact that the underlying stuff is a pointer
@Bane: unrelated: mouseover a message and click the arrow on the right to "reply" makes conversations easier to follow. Also, in case you don't know, up arrow to edit last message.
@Xeo, yeah, I figured that I want to have a vector of pointers because vector <ClassA> stuff; returned an error (this was a forward declaration in a .hpp file that didn't know anything about ClassA)
Xeo
Xeo
@Bane: Does the physics engine own the stuff in the vector?
18:45
@MooingDuck Ok, thanks.
@Xeo Well, yes. It operates on it.
Xeo
Xeo
@Bane Is ClassA abstract?
@MohamedAhmedNabil Linux is a clone of Unix (but has taken over the market to the point that for all practical purposes, it now is Unix). The others (Ubuntu, Arch, Gentoo, etc.) are distributions of Linux. I.e., most of what's included in Linux is a collection of separate projects, and somebody has to select what to include and what not so. The result is a distribution.
Xeo
Xeo
@Bane No, what "ownership" means is "is the physics engine responsible for deleting the stuff"
@Xeo What do you mean by that? It's just a class that has its own .hpp and .cpp files...
Yay. I learned a cool trick today. So I have a number who's binary pattern is 110011011 and I want to toggle the MSB 1 bit, it can be done easily like this using GCC:

#include <stdio.h>
#define clz(x)	__builtin_clz(x)

int main()
{
	int i = 411;	/* 110011011 */
	if( i != 0 )
		i ^= (1 << (sizeof(i)*8 - clz(i))-1);
	/* i is now 10011011 */
	printf("i = %d\n", i);
	return(0);
}
Xeo
Xeo
18:46
@Bane I think you need a gooood book. :)
pretty cool I think
@Xeo Oh, yeah, it is.
Xeo
Xeo
@Bane Abstract class means it contains a pure virtual function (say virtual void f() = 0)
Anyways, afk watching some videos
Quick question, int a = 5, b = a; is well defined right? That it will assign a to b after a has been initialised?
Xeo
Xeo
think so
18:49
Also there are only three uses of the static keyword now right?
uses meaning "meanings"
Xeo
Xeo
static stuff, internal linkage, ... ?
static local variables
@SethCarnegie Never counted them..
Xeo
Xeo
then yeah
@Chimera: no way to do this in MSVC?
Xeo
Xeo
18:50
I think :)
@Xeo No, the class isn't virtual so far, but is might become...
And two meanings of mutable?
abstact*
@Borgleader there is: #define clz(x) _BitScanForward(x)
Xeo
Xeo
@Bane Then there should be no error with std::vector<ClassA>
18:51
Oh heym it's the Bane of our existence.
damn it... space after the clz(x)
@Chimera Hi.
Let me try again then... Hey @Drise.
@Drise Hey man how's it going?
Going alright.
So much zombie killing.
I wish I had more people to play with.
18:52
@Drise Playing a game?
I have far too much gear, and no one to give it to.
DayZ
@Drise Hmm never heard of it.
http://stackoverflow.com/a/12536198/583833
Is my answer wrong or just not clear?
I finally got to the north west airfield, find a DMR, and all of a sudden hear the crack of a sniper round passing by my head.
18:53
If a virtual machine runs a program then how does it prevent that if the program crashes, the virtual machine doesn't crash with it? E.g. null pointer dereference by the program shouldn't crash the VBox. Does it emulate the CPU or something like that?
Looks cool!
@Borgleader He has 112 rep, ignore him.
> I think , you are totaly wrong Because you say
Definitely ignore him.
And you're right about the copy constructor.
@Xeo There is a huge error message when I use vector <ClassA> ClassesA;. And just for the record, I do have using std::vector in the beginning of the .hpp...
18:54
@Borgleader I upvoted your good answer
0
A: what is the best way to avoid negative zero in output?

AladdinTry depending on your precision. cout << (abs(ans) < 0.001)? 0.000: ans << endl;

meh
@Chimera: Ty :)
I see nothing wrong with your code @Borgleader. +1 from me too.
welcome
@TonyTheLion Meh, Ali.
@Borgleader Um...
18:56
umm yeah...
The internet here is being a pain in the ass
it keeps disconnecting for a few seconds
@Chimera Will you play DayZ with me?!? Please please pelase?!?!
Pleasse!?
@Borgleader Oh, right.
@Drise I can't right now, at work. But I can later today.
Well, yea, me too.
@Drise Yeah I'd love to try it out. I'm at the website now reading about it.
18:58
We should make a Lounge<C++> DayZ group.
Though we might get accused of hacking.
I need to get a mic. :/
@Drise Do I have to purchase some game first to use the mod?

« first day (706 days earlier)      last day (4468 days later) »