« first day (848 days earlier)      last day (4098 days later) » 

3:00 PM
@AndreiTita well playgrounds are ok
burn the classrooms
 
@BartekBanachewicz Yeah. I may have misread that a bit.
 
Morning
 
morning
 
it's 4 PM
 
morning is when you get up
 
3:11 PM
@DeadMG No matter when you get up, it's morning somewhere.
 
I think of it like this, it is always morning except between 06:00-09:00 when it is pre-morning.
06:00-09:00 before coffee is UB
 
Can I use an STL map, to find the number of numbers less than equal to a given number?
 
@user1112010 lower_bound?
 
Does (int)(lower_bound(map.begin(),map.end(),key) - map.begin()) work without exception?
Actually I don't know how the STL map is organized internally in memory
 
wut - map.begin()
@user1112010 it's not STL. it's std
 
3:17 PM
@user1112010 No -- std::map doesn't provide random access iterators, so you can use use - on them -- you need to use std::distance.
 
user142019
Morning
 
@BartekBanachewicz I thought it was a part of the standard template library. That is why i referred it like that.
 
@Zoidberg I don't believe it. I'm firmly of the belief that it's 17:18 right now, so I'm perfectly fine having Vodka for breakfast.
 
@user1112010 yes, but nobody uses STL (at least here). We use C++ standard library. STL is not a part of C++ standard.
 
user142019
7 mins ago, by Jerry Coffin
@DeadMG No matter when you get up, it's morning somewhere.
 
3:19 PM
@BartekBanachewicz Pointless argument -- some people use STL as an abbreviation for STandard Library.
 
user142019
lol
 
119
A: What's this STL vs. "C++ Standard Library" fight all about?

Lightness Races in OrbitThe "STL" was written by Alexander Stepanov in the days long before C++ was standardised. C++ existed through the 80s, but what we now call "C++" is the language standardised in ISO/IEC 14882:1998 (and ISO/IEC 14882:2003). The STL was already widely used as a library for C++, giving programmers ...

 
user142019
Shitty and Terrible Library
 
@Zoidberg lol
 
@Zoidberg Likewise, no matter when you get up, it's evening somewhere.
 
3:21 PM
Coming back to my original question, what is the use of lower_bound if it can't tell you at which position the desired number
*is
 
user142019
I should go to work instead of school tomorrow.
 
user142019
Tomorrow is stupid introduction of new terrible project.
 
@Zoidberg +1
@user1112010 map has no "position" defined. You ask by key.
 
What possibly can I use to get the the desired position. I don't want to use vectors because I'll be inserting numbers in between. Each time insertion will then be O(n)
 
Ell
@Zoidberg where do you work? as in, what sized company? and are you just in the it dept. or is it a software dev company?
 
3:26 PM
:7641595 No. log(n).
 
With some sort of a balanced binary search tree, I can do insertion as well as query in O(logn)
 
binary counting tree maybe
 
user142019
@Ell small software development company run by a friend.
 
i mean, the one that counts the elements when it's modified
I dunno, fuck algortithms
 
but it is slightly hard to code, so I was looking for a known thing that I could use
 
Ell
3:27 PM
@Zoidberg what qualifications did you have to show them?
 
@BartekBanachewicz lol
 
user142019
@Ell code. They asked questions and I had to answer with code.
 
Ell
in the interview? or a previous project?
 
user142019
Interview.
 
user142019
Although note that the interview was kind of a joke since my boss is a friend of mine.
 
3:28 PM
@user1112010 algorithms suck. The only thing you usually use them in are the algorithms competitions.
 
user142019
I.e. he already knew what I was able to do.
 
@BartekBanachewicz But they are fun. Increases our thinking capability
 
@user1112010 Looking at numbers on a black background is hardly a definition of fun for me. But if you dig them, that's cool.
I like people who like algorithms, because their existence means I will never have to do it myself
 
What's with people and shared_ptr
 
user142019
> YOU CANNOT COPY unique_ptr<T> SO YOU CANNOT RETURN IT OR PASS IT AROUND BY VALUE.
 
3:31 PM
^ exactly
 
user142019
Morons don't get move semantics so they use std::shared_ptr<T> instead.
 
std::move seems scary
 
std::vector have random access iterators right?
 
You don't pass unique_ptr around by value
 
I do
 
3:34 PM
@user1112010 Your general idea to use lower_bound on a map was fine. You just need to use std::distance to get the position, instead of trying to use subtraction.
 
Yeah but you know what you're doing
 
@user1112010 Yes.
 
@JerryCoffin No, but std::distance is linear :(
 
@CatPlusPlus lol
@user1112010 aaaand?
 
@BartekBanachewicz It will take too much time to handle queries
 
3:37 PM
@user1112010 Did you profile?
 
@user1112010 Yes, for a tree it pretty much has to be. If you don't want that, you can create a tree that's augmented a bit: every node carries the number of items in its left subtree. With that, you can compute a position in logarithmic time (and updating the count can also be done in logarithmic time).
 
@JerryCoffin is it called counting binary tree?
 
@BartekBanachewicz Not sure it has a name. Might, but I don't think I've ever heard a specific name for it.
 
user142019
Slipknot!
 
15
Q: Counting binary trees

Stéphane Gimenez(I'm a student with some mathematical background and I'd like to know how to count the number of a specific kind of binary trees.) Looking at Wikipedia page for Binary Trees, I've noticed this assertion that the number of rooted binary trees of size $n$ would be this Catalan Number: $$C_n = \dfr...

 
3:40 PM
@JerryCoffin You are right. Only problem is that worst case can become O(n) if the tree is not balanced and becomes a linear chain
 
Also what the fuck is "CS.stackexchange"? o.O
3 mins ago, by Bartek Banachewicz
@user1112010 Did you profile?
 
Ell
computer science :3
 
@BartekBanachewicz Sorry, I didn't. Thanks.
 
Another possibility (especially if you're doing a lot of queries and only a few inserts/deletes) is to start with a sorted vector. Then, when you do an insertion just keep it in a separate (unsorted) vector. For a query, you do a binary search in the main array + a linear search of the secondary array. When the secondary vector hits log(main vector size), insert all its items into the main vector, so queries always remain logarithmic.
 
3:42 PM
@user1112010 If you want to assure logarithmic complexity with trees, you always have to ensure balancing.
 
Simply go to it and find out.
 
@JerryCoffin Hmm. That is a possibility.
@LightnessRacesinOrbit Thanks. That will be my next stop
 
hurry before they close
 
@LightnessRacesinOrbit I know what it is. I am asking what the fuck it is?
 
@BartekBanachewicz Did you read any of the text on it?
> This is a collaboratively edited question and answer site for students, researchers and practitioners of computer science.
Any further questions?
 
3:44 PM
It looks like my worst nightmare
It's the projection of uni on SE
 
> When a player has hit six shots in a row, we imagine that he has tapped into some elevated performance groove. In fact, it’s just random statistical noise, like having a coin flip come up tails repeatedly. Each individual shot’s success rate will still devolve back to the player’s career shooting percentage.
 
@LightnessRacesinOrbit god KILL IT WITH FIRE
 
^ what about a self fulfilling conjecture. Circular definition much :|
 
@BartekBanachewicz If by "uni" you mean "computer science", then yes. Yes it is.
 
user142019
33
Q: Is it possible to build simple logic gates with LEGO mechanics?

SibboI built a simple bitshifter in Minecraft yesterday. I wondered if something like this could be built with LEGO? Maybe there is a possibility to build gates with rubber bands and those movable mechanic stuff. Did anyone of you do something like this?

 
user142019
3:45 PM
This is fucking awesome.
 
@LightnessRacesinOrbit by uni I mean tons of useless crap
@Zoidberg . mom please
 
@CatPlusPlus I'm not going to discourage anyone from using managed pointers! — Alex Chamberlain 3 mins ago
 
@sehe does that say "we can't take success to entail skill, because the success rate will eventually only follow the level of skill"?
 
shared_ptr is now the only ~managed~ pointer
 
@LightnessRacesinOrbit Nah. I think it says that "being in the groove" or "on a streak" (i.e. performing above expectation) is only psychological, because (wait for it): at the end of the day, it will magically fit into the career average of a sporter. Well, that's kind of obvious, since that career average will logically include the streaks.
 
3:48 PM
@CatPlusPlus managed by what?
 
By itself
It's magic
 
it's not "managed" then.
 
user142019
Needs more SharedPtrManager. Aka GC. :P
 
Hint I didn't use that word
Also who cares
 
user142019
I should start a new project.
 
3:51 PM
@sehe Exactly. The question they should be asking (but aren't) is: what's the standard deviation?
 
sqrt of variance?
 
@sehe Right, so, basically, what I said.
 
@sehe this is the idea of the "hot hand" ?
 
@user1690130 I meant: "what is the standard deviation of this player's scores?" (though, of course, the variance would work fine too).
 
0
Q: Build image slider with carouFredSel with this requirements?

RhymeGuyGOAL: To build slider using carouFredSel, to have identical behavior as this one http://www.gcmingati.net/wordpress/wp-content/lab/jquery/svwt/index.html EXPLANATION: There are 5 thumbnails located bellow the main image. Slide should start from the first thumbnail and then after some time next t...

 
3:54 PM
I've learned some perl y'all. :)
 
okay...
 
Didn't y'all want me to learn?
 
@LightnessRacesinOrbit dat guy
@user1690130 well, we don't care mostly
 
@LightnessRacesinOrbit Winning answer.
 
@user1690130 I'm pretty sure everyone in the room has you plonked
 
3:56 PM
@Doorknob you too?
 
...
 
@Doorknob Except you for some reason. I'd suggest you join the club.
 
user142019
Haha that answer.
 
@user1690130 No I don't have you plonked, how else would I be talking to you?!
 
@user1690130 I'd advise against admitting to that publicly.
 
3:56 PM
@JerryCoffin why? :(
 
@user1690130 Because Perl.
 
@JerryCoffin what about it?
 
@user1690130 it sucks
 
^ that
 
user142019
:D Alright. My question is how to build it, because obviously i have no idea :) — RhymeGuy 24 secs ago
 
user142019
3:57 PM
> :D
 
Well I need to scrape somehow.
I don't know any other langugae that scrapes!
 
@user1690130 if you say so
 
user142019
That guy is a weirdo.
 
user142019
Like me, but even weirder.
 
haha
5
A: Build image slider with carouFredSel with this requirements?

Lightness Races in Orbit Build image slider with carouFredSel with this requirements? No.

people vote weirdly
 
3:58 PM
this question is too broad and too localized at the same time
 
@BartekBanachewicz No -- if it sucked, it might be useful. It's not even that good.
 
Well, I think being a doorknob is pretty weird @Zoid :P
 
user142019
@BartekBanachewicz It's brocalized?
 
@Zoidberg that would imply using "bro"
 
@BartekBanachewicz Yep. A great example that the two are orthogonal.
 
3:59 PM
@Zoidberg ce n'est pas possible monsieur plonker
 
user142019
Broccoli.
 
that's not that bad (if cooked well)
 
@user1690130 Translation: this is not possible sir plonker
Google Translate ftw.
 
@JerryCoffin Or, perhaps they meant to mean "prior career average". But that doesn't make much sense, as it seems to negate the possibility of growth/improving over time
 
user142019
user image
3
 
user142019
4:00 PM
Yum.
 
@Zoidberg lol click it
 
user142019
What about it?
 
it was like eeek i have broccoli on my screen wut
 
More yum.
 
4:01 PM
@Zoidberg it's huge
 
Ça, c'est pas possible!
C'est impossible!
IMPOSSIBRU!
 
user142019
@Doorknob Kaaskop.
 
1
Q: Is this forum full of idiots or what?

user2036775Why can't you damn idiots answer one simple question? Ihave asked it countless times on countless accounts, heck, it is so didfficult for you idiots that you had to block me from asking. WTF? USELESS IDIOTS! How do i use radio buttons to specify or limit a search? How do i attach radio buttons ...

 
user142019
@BartekBanachewicz my dick is huge too. Who cares.
 
Ahahahaha
 
4:01 PM
this is fucking awesome
3
 
@CatPlusPlus Damn, you were faster
 
@CatPlusPlus lol
 
I can imagine 99999999 applications
 
Let's upvote this to heavens
 
user142019
4:02 PM
lol all those upvotes. xD
 
LETS ALL UPBOAT HIM!
 
user142019
Voted for migration to meta.
 
user142019
People y u no migrate to meta.
 
@Zoidberg difference: cheese melts when it gets hot
 
user142019
@sehe broccoli does too if you try hard enough.
 
user142019
4:03 PM
Also yummy cheese.
 
@Zoidberg Because it's shit
You don't migrate shit
 
user142019
Shit belongs on Meta.
 
booo downvotes!
 
@Zoidberg No, shit belongs on expertsexchange.
 
well, anyway, that was fun. Now let’s burn it
 
4:05 PM
@DeadMG no, awesome is that you can just buy it
 
deleted
XD
 
@KonradRudolph Done and gone.
 
user142019
:(
 
But seriously they spent a week on this
 
user142019
-1 should be CW.
 
4:06 PM
Fuck it, I'll star the broccoli too.
 
@AndreiTita Don't star it too fast, it might squirt
 
user142019
Pro tip: never eat salty crisps with a bleeding lip.
 
user142019
LIP Y U HURT
 
@Zoidberg Hmm...old lines about "rubbing salt in the wound" virtually spring to mind here.
 
4:16 PM
@BartekBanachewicz Damn, I didn't know that.
 
user142019
That's fucking awesome.
 
I know
 
user142019
Kinda reminds me of Teflon.
 
Yes, vote me down, idiots. — user2036775 7 mins ago
 
makes me wonder
would you need to wash Ultra-Ever Dry clothes?
 
4:20 PM
@DeadMG Depends on whether you care about odour
 
user142019
Ultra-Ever Dry swimming suit.
 
@sehe Produced by bacteria and sweat, both of which are water-based.
 
user142019
> imagine this stuff in a vagina
 
@DeadMG The odour isn't water based
 
user142019
YouTube comments keep amazing me.
 
user142019
4:21 PM
> Now i can go to toilet without toilet paper, nice.
 
@sehe No, but the things which produce it are.
 
@DeadMG Swell. Don't buy clothes that produce odour in the first place? Problem solved
 
lol
 
user142019
I think it's time to eat motherfuckers.
 
Ell
@DeadMG I was just watching an ultra-ever dry video, is this a coincidence, or were we just talking about it? o.o
 
4:24 PM
@Ell It was linked on Failblog
 
Ell
Failblog? o.O
I was just on youtube :P
 
the link is to Youtube.
the link which I posted here.
 
Ell
oh yeah it's on the starboard :L
 
then star it, bitch :P
 
Ell
okay sir :'(
 
user142019
4:27 PM
Sir DeadMG.
 
@DeadMG, have you watched community?
hi everybody
 
@Jeffrey Yes
 
@DeadMG, and...
 
@Zoidberg Sounds good to me.
@Jeffrey And what?
 
user142019
I'm so in the mood to write a giant system in C++.
 
4:27 PM
@DeadMG, did you like it?
 
@Zoidberg You mean, come up with a new giant system, write the first five seconds of it, then ditch it?
4
@Jeffrey Not particularly, actually.
 
user142019
@DeadMG EXACTLY! :D
 
@DeadMG, was that for the fake laughts?
 
@Jeffrey No.
there was no theme tune, etc
 
user142019
 
user142019
4:29 PM
Bacon!
 
user142019
Goedemiddag!
 
hi
 
hi
 
Ell
hi
 
user142019
4:32 PM
Hello, combobreaker.
 
NOOOO
 
user142019
YEEEES
 
in Java, yesterday, by Lews Therin
I love this room.. we all greet each other with the hi hi's and conversation halts :(
 
Ell
cos we're all multitasking
 
4:33 PM
I'm refactoring my Wide prototype
 
user142019
Hey guys you'll all die once.
 
@Zoidberg Technically, you can also die multiple times.
 
user142019
@DeadMG Why did you call it Wide, by the way?
 
user142019
Because it only has wide chars? :D
 
no
if you want to know, then time travel three years into the past and ask me
actually, I think it's more than three.
 
4:35 PM
It was WideC at first.
 
yeah
 
user142019
First time I talked you you was about one and a half year ago. lol
 
actually, first it was just Wide, and I was going to interpret it.
 
@LightnessRacesinOrbit Still Kalafina?
 
then I realized that all of the features I wanted were just turning into C++ again.
 
4:35 PM
@sehe Oh yes
 
So, I can confirm that Tony actually exists and isn't just a chat bot.
 
Who was it here who got me into them, anyway?
 
wot, nowai
 
user142019
Yeah where the fuck is Tony.
 
Germany somewhere.
 
4:36 PM
@R.MartinhoFernandes You asked your chat bot mechanic?
 
@LightnessRacesinOrbit StackedCrooked?
 
user142019
Oh. :p
 
@R.MartinhoFernandes could be
 
@Zoidberg Berlin.
He's leaving today.
 
user142019
We should start talking German in this room.
 
user142019
4:36 PM
The entire Lounge is in Berlin.
 
in Java, 14 secs ago, by sehe
@LewsTherin Try the lounge: we greet eachother with "Ohai" and proceed to argue to death. Everybody is a grumpy, biased, pedant, obnoxious, ignorant foolish dumbshit nitwit troll :)
 
user142019
Ja!
 
Ell
Ich bin ein berliner :L
 
Doch!
 
user142019
4:37 PM
s/be/Be/
 
@Ell Du lügst!
 
@sehe You forgot "sanctimonious fuckwit"
 
@LightnessRacesinOrbit I thought it was "sanctimonious"
 
user142019
Ich bin ein Hummer. :L
 
4:37 PM
@LightnessRacesinOrbit Feel free to amend. Or - let's argue to death!
 
user142019
Ik ben een kreeft! :D
 
@sehe no, let's not argue.
 
Ell
did you know articulated lorry in german is ein bigenfuckentrucken
 
@LightnessRacesinOrbit lol. Once again, unprepared for humour
 
Ell
4:38 PM
;)
 
@sehe No, looks like you missed the humour!
 
@LightnessRacesinOrbit Indeed I did. Too meta
 
@sehe sehefailcakes
 
user142019
Guy.
 
> Your search - bigenfuckentrucken - did not match any documents.
 
4:38 PM
Fehlkuchen
 
I only got the joke after sehe's reply :(
 
@Ell No, I didn't.
@AndreiTita poor show
 
Ell
I'm shaking again :/
 
@Ell Eat something.
 
user142019
How would you do something akin to typeclasses in C++?
 
Ell
4:39 PM
I just ate an apple :3
 
@Ell we really don't need to know about that
 
Ell
I forgot what a typeclass was :/
 
@Zoidberg implicit conversions ofc.
 
@Ell Keep your sex life to yourself
 
Ell
@LightnessRacesinOrbit haha
 
user142019
4:39 PM
@Ell a class of types.
 
user142019
For example, Int, Double and Float are instances of the Num typeclass in Haskell, and IO is an instance of Functor and Monad.
 
Meanwhile, in the Java room... blissfull silence:
 
@Zoidberg Concepts. Or something dynamic dispatch-y.
 
user142019
@sehe dat resolution.
 
user142019
@R.MartinhoFernandes ah.
 
4:41 PM
@Zoidberg What abowed it
 
user142019
But concepts aren't there yet right?
 
user142019
@sehe everything is so huge!
 
Ell
Aww man I deleted my concept message -.-
 
user142019
Haha. xD
 
4:41 PM
You can fake it pretty well with some type erasure tricks, though.
 
@Ell Ctrl-Z
 
@Ell undelete it
 
Ell
neither work :O
 
user142019
Ah well.
 
user142019
4:43 PM
I think duck-typing is good enough in my case.
 
@Zoidberg you couldn't eat a duck in the time it'll take you to give up on this project
@Ell I mean, type it again.
 
man
why do I compulsively refactor my code?
 
@Ell Wait, you said "neither". What did you try for my suggestion?!
@DeadMG I sort of do that
@DeadMG Though an obsession with stable APIs keeps that in check :D
 
Ell
@LightnessRacesinOrbit finding an undelete option on the arrow :p
 
@Ell lulz... sucker
 
Ell
4:47 PM
what do you do for programming if you don't want to go to uni?
i.e. how do you get trained?
 
well at least now I know what the message was about.
@Ell you put aside your unwant of going to uni
 
@Ell Cry in a corner and give up on life.
 
@Ell You * wait for it * write code.
 
hmmm
perhaps as a frontend for my compiler, I should make Python scripts.
 
Ell
@AndreiTita but how do you learn? :3 beyond your self teaching
@DeadMG what do you mean? invoking a script that passes stuff to the compiler
 
4:50 PM
yeah
 
The driver you mean?
 
I was thinking like wide.exe script.py, and then the script can be like, LoadWideFile("filepath").
 
@Ell No idea. I'm largely self-taught, although interacting with other people in the field is pretty useful too.
 
instead of something like Clang where everything is 9billion command line arguments
wat u think?
 
Ell
Hmmm
Why not have the 9 billion command line args as an alternative already
 
4:53 PM
because fuck command line args
 
Ell
what if it's a simple or small project or whatever?
 
@DeadMG Why do I even need wide.exe? Why not just a regular Python file with import Wide or something?
 
@R.MartinhoFernandes Could work too if I shipped the compiler as a Python module.
 
@R.MartinhoFernandes Sorry to keep insisting but you didn’t answer me yesterday and now I see you online: regarding your blog, do you keep the Octopress source files under version control somewhere?
 
but I intend to ship something more pleasant to use as an API/library than Clang.
 
4:55 PM
@KonradRudolph I keep the Markdown sources here github.com/rmartinho/rmartinho.github.com.
GitHub does all the magic.
 
@R.MartinhoFernandes Okay but this is just the content of the master repository that Octopress pushes (i.e. the content of _deploy), right? What about the source branch of the Octopress repo?
 
I have no idea what you are talking about.
I push stuff with git. There is nothing else.
 
@R.MartinhoFernandes Hmm. Okay, maybe start at the beginning: you are using Octopress, right?
 
I don't think so.
 
aaaah
ok, that explains a lot :)
tanks
 
user142019
4:59 PM
I ate fries.
 

« first day (848 days earlier)      last day (4098 days later) »