« first day (852 days earlier)      last day (4080 days later) » 

user142019
7:00 AM
The only way to learn C++ is though Lounge<C++>™.
 
user142019
STUPID INTERNET Y U LAG.
 
user1357851
@BrianWebster economics is better, it is like philosophy with all the extra slightly more practical stuff
 
user142019
The only way to learn C++ is though Lounge<C++>™.
 
user142019
lolwot
 
I'm just a beginner with c++
 
user142019
7:00 AM
Is flood protection client-side or what?
 
@Telkitty Money is a figment of your imagination, we trade in thought here
 
user142019
@JohnTinio pro tip: you don’t need linked lists. (Unless you do, which is rare.)
 
Well sambich, that did sound philosophical
 
user1357851
nah with more $ I can 'buy' more toys ... like making a UFO on earth
 
user142019
Tell the teacher that he is wrong and should be punished.
 
7:02 AM
I just need it just to pass this assignment. lol
 
user142019
But you had a question on linked lists, right? You can ask it on Stack Overflow.
 
I did that already, but haven't really gotten too much response from there
 
user142019
Because we, Lounge<C++>, according to the holy wiki page on asking questions, don’t care™.
 
user142019
Disclaimer: I’m not a nice person and I love trolling.
 
I feel dumb when I ask questions on stack overflow
 
7:04 AM
Person?
 
user142019
What else? Duck?! Don’t be so ridiculous, I’d never pretend to be such an inferior animal.
 
Aw.
 
mind if i direct you to where on stack overflow i posted my problem?
 
user142019
Yes.
 
user142019
Feb 6 at 8:31, by thecoshman
New here? Do us a favour, and read this.
 
7:05 AM
@JohnTinio Don't feel dumb. Imagine that every time you post a question, the bottle-children from trailer park boys run by and blast you with glass. You can't really take it personal. youtu.be/tLMbu8y8xAE?t=11s
 
user142019
You can choose: ask a handful of people who don’t know shit about linked lists and don’t get a response because they don’t care, or ask on a site with millions of users and get lots of attention.
 
@JohnTinio Ask and you shall be answered (luckily).
 
user142019
And if your question doesn’t get enough attention, it either sucks balls, or uses a technology nobody uses, and you can put on it a bounty.
 
user142019
@JohnTinio Y u no Rule of Zero.
 
user142019
7:09 AM
new and delete are bad, and if that is your complete code, you have a fucking memory leak.
 
user142019
Also use initializer list instead of assignment in ctor.
 
@Zoidberg Oh cmon zoidberg, fucking memory leak is the answer to all C++ questions. Takin the easy way out...
 
user142019
Avoiding memory leaks in C++ is not that difficult.
 
0
Q: Hiow can i add image in a pop up using java sript

user2049787I want to add my company logo into a apop up using java sript and jsp .. please give me code..

> please give me code..
lol
 
user142019
Use Rule of Zero, avoid cycles when using std::shared_ptr, and make your dtors virtual when they should be virtual. That’s about it.
 
user142019
7:12 AM
Life’s so easy.
 
@Mysticial he used an ellipsis rather than exclamation mark. If it were an android question he'd deserve an upvote
 
user142019
Oh and RAII, obviously.
 
what do you mean new and delete are bad
 
user142019
@Mysticial Why can’t I close that. :|
 
user142019
 
7:14 AM
@Mysticial I flagged it as off topic. He'll ask it again on SO. Still will be flagged again. lol
 
Lucky you have less than 3k. Since that means you can still farm flags. :P
> closed as off topic by Mysticial, animuson, gnat, BoltClock's a Unicorn♦ 26 secs ago
 
user142019
Stupid xmobar doesn’t work. FUCK.
 
oh my god
google fiber I want you so so bad
 
wtf
 
user142019
omg
 
7:20 AM
holy fuck...
 
user142019
> PING: 1ms
 
1ms ping. Probably limited by display. Should be < ~0.01ms
 
user142019
Y IS UPLOAD HIGHER THAN DOWNLOAD
 
How long does it take light to travel 50 miles?
 
Depends on which route it takes
 
user142019
7:21 AM
Ask Wolfram Alpha.
 
268 microsec?
 
user142019
@BrianWebster irrelevant.
 
268.4 microsec
 
@Mysticial Light can travel ~8 times around the world for 1 second. IIRC
 
9 hours ago, by R. Martinho Fernandes
Godammit, I just failed seven CAPTCHAs in a row.
9 hours ago, by Zoidberg
ITT: CAPTCHA’s are actually working.
^^ oh goodie...
 
7:23 AM
speed of light through fiber isn't C, it's ~(2/3)C
 
I know, but it's an upper bound.
If it's faster than light, then you know the number is bugged.
 
I want that speed so bad.
Can you believe it's only $70 a month?
God damn.
 
worth 170
 
@Rapptz And there's free. :-)
 
we'll all have gigabit soon enough
 
7:26 AM
@Mysticial That was nice :)
 
@Zoidberg do you know if there is something like C# regions in js?
 
Anyone else filling out Scott Meyer's Feedback questionnaire?
^ we could pin it. Or you could just star it
 
@Rapptz That's a reasonable price given the speed, but not really cheap compared to regular broadband providers.
 
@JohanLarsson There is if you use vim. In vim, you'd just (ad-hoc) vabab (visual select two blocks around the cursor) and zf (fold it)
 
Although, I don't know what the "normal" prices are in US.
 
7:29 AM
@StackedCrooked For 1 Gb/s upload and download? Really?
I didn't know you had such high speeds in Europe for $70/month
 
I didn't say that.
 
I assumed because of the second sentence
 
@JohanLarsson Or you could use fold markers in Vim (which are largely freeformat: you can set up a number of patterns). Oh, and folds can nest, so you can immediately fold/unfold up to a certain level (locally/globally)
 
@StackedCrooked People in certain areas pay $100 a month for ~1 Mb upload/download.
 
@sehe ok ty sir, I guess there is nothing like that in vs?
 
7:31 AM
Other people like me pay $60 a month for 25 Mb/s download and 10 Mb/s upload
I don't know how it is in Europe.
 
I'm 60down, 10up at office for $150, 25/5 @ home for $54
 
According to the thread it seems to be 100 down 10 up for 20 euros a month for one person
 
@JohanLarsson Folding (ad-hoc) has worked for me in VS, also with Vim bindings (VsVim)
 
I pay 60 EUR for my DSL connection. This includes the 15 EUR for the phone line. So 45 EUR for the Internet. I have download speeds up to 3.5 MB/s (so that's a 30 Megabit connection I guess).
 
@BrianWebster I'm technically 40Mbs/4Mbit for 27EUR (quoting from memory) at home
 
7:34 AM
maybe it is time to check out vim stuff, everybody here seems to like it
 
:)
 
Local cable monopoly charges ~200 per month for 40/10 business internet. Same thing they sell residential for ~65 per month. Fortunately, a local fiber startup is saturating the area and clobbering them on price
 
user142019
@JohanLarsson they don’t exist in JavaScript. Use comments instead.
 
user142019
In CoffeeScript you can do this though, because comments start with #. :P
 
user142019
#region foo
code here
#endregion
 
7:37 AM
does coffescript 'compile' to pure js?
 
user142019
Y.
 
My previous company got fiber and that required "breaking open" the street in order to put the cables there.
So I guess that's rather expensive.
 
user142019
It’s fucking 2013. Why isn’t there damn 100 Gb/s Internet for everybody.
 
I like this new SO change.
 
user142019
Hollywood would love it if the entire world had 100 Gb/s Internet.
 
7:39 AM
No more annoying orange pop up?
 
@Zoidberg I have 100Mbit up to my local router.
 
user142019
@StackedCrooked -1 not enough thousand.
 
user142019
@Rapptz I don’t like it.
 
user142019
Spacing around the dismiss button is not equal everywhere.
 
It implies closing is the correct choice.
Which may not always be true.
 
7:40 AM
Wait what dismiss button?
You mean the red x?
 
user142019
Yes, of course.
 
I just checked the dimensions and they're fine
 
user142019
No, spacing around the outline of the button.
 
I've come to treat source code like a database. Running statistics and CAR (computer aided refactorings) even in _egregious_ context (like last tuesday: I've 'debugged' a large (multi-kLine) XML (eeck) dataset that had been sent from oracle to easily establish whether data was properly unique/what was being duplicated. This way I spotted a bug in an Oracle procedure which entailed 585 lines of code involving 3 (highly redundant) dynamic queries being returned in a 3-level nested collection type
At the end of the work (1 hour...) we had ~230 of code (now including comments) and a query that was properly distinct and ran an order of magnitude fast
 
user142019
I mean the space between the button and the border of the popup.
 
7:41 AM
I think tpb have their servers at the Swedish pirate party. The reason being that closing down a political party is considered problematic.
 
In other words: I use Vim to program. However, it made my colleague remark: you don't even need a database server to query the dataset or an IDE to do refactoring
 
user142019
s/I //
 
user142019
The Pirate Bay is blocked by most ISPs in The Netherlands.
 
user142019
I fucking hate those ISPs.
 
user142019
And the lawyers who don’t understand the Internet.
 
7:42 AM
2nd comment on this. Correct?
 
user142019
There must be specialized lawyers.
 
@sehe You should tell your boss and ask for a pay rise :)
 
@StackedCrooked Yeah I should. In particular because I'm not supposed to be doing the Oracle work :)
 
user142019
@sehe We once had a code base which completely worked fine, until the client suddenly added some code himself.
 
user142019
There was a loop which had to loop through a few hundred records.
 
user142019
7:43 AM
Inside that loop the client put something like this:
 
@MarkGarcia 1,391 people seem to think it might have some point
 
user142019
$cursor = $db->query("SELECT * FROM Table");
while ($row = $cursor->next()) {
    if ($row->name != "foo") break; // this was for all but one record
}
 
@Zoidberg inb4 a webservice call :)
 
user142019
In ever damn iteration of the outer loop.
 
user142019
7:45 AM
First, the system was fast as hell.
 
user142019
Now it took 15 seconds to load the page.
 
@Zoidberg Cool. You gotta love when people write their own RDBMS engine
 
user142019
He selected ALL records from the table EVERY iteration. xD
 
user142019
Also SQL in a view eww.
 
@Rapptz nice, would still expect some scattering due to different speed of light in the glass and the tape
 
user142019
7:46 AM
We kindly asked him not to screw up the code anymore. :)
 
user142019
He even put some comments in the code!
 
user142019
/* BEGIN <name client here> QUICKFIX */

/* END <name client here> QUICKFIX */
 
@Zoidberg lol
 
user142019
Except it wasn’t very quick. :L
 
user142019
@StackedCrooked that (completely that, including the loop and the query) got executed a few hundred times on every page load lol.
 
7:47 AM
Fire him.
 
user142019
It was a client. :|
 
Well, that's good. You can be the hero that makes the code 100x faster.
 
user142019
I was. :)
 
user142019
The code wasn’t even necessary at all. It didn’t fix anything.
 
user142019
It had no side-effects (other than reading the database).
 
user142019
7:49 AM
So I just removed it. xD
 
@Zoidberg It was! The fix was quick
 
user142019
The code didn’t run quickly!
 
It didn't claim that
 
user142019
Me neither.
 
user142019
Hahahhaaha I have some stupid class for the first time today.
 
user142019
7:50 AM
Didn’t go and now I’ll be graded 1/10 for it. :D
 
When I was a student I wrote bad code like that. My shopping cart app read the entire db :D
 
user142019
 
user142019
lol
 
user142019
@StackedCrooked noob. :x
 
I was.
That was back in 2003-2004.
 
7:52 AM
@Zoidberg Subject?
 
user142019
@StackedCrooked Even I didn’t write such bad code back then… okay I did.
 
user142019
@sehe something with water level rising.
 
My last experience with C# is from 2005. I wonder if the language has changed a lot...
 
user142019
Uninteresting bullshit. We have to do four subjects in the first year that have nothing to do with CS.
 
Ohkay. I get the feeling you're _framing the message_
A bit
 
7:53 AM
@Zoidberg What are they?
 
user142019
@sehe What do you mean?
 
@StackedCrooked Count on it. Both C# and the CLR/BCL
 
user142019
@StackedCrooked you get to choose them, but they are not allowed to be related to CS.
 
user142019
I chose criminology, sea level rise, FabLab.
 
user142019
Oh wait three, not four. :P
 
7:54 AM
@Zoidberg faplab?
 
user142019
@StackedCrooked I do that at home not at school, thanks.
 
You have a lab for fap research at home?
 
user142019
FabLab may be interesting and maybe I go if I’m in the mood.
 
"something like blablabla" makes it sound unimportant/boring
You might have said something about "Industry Awareness of Environment" or "International Law on Carbon-Dioxide Emissions for Corporations"
 
user142019
But that’s in two months and then I’ll probably be gone from school already lol.
 
user142019
7:55 AM
@sehe it is unimportant and boring.
 
user142019
If you don’t like the sea level, move to Limburg or to another country.
 
@Zoidberg How does that work? Do you still want to kill your father?
 
user142019
And besides, I’m uninterested in water.
 
user142019
@sehe if he doesn’t give me freedom. :P
 
@Zoidberg That's not the point. By framing the message you're not giving the audience a fair shot at judging things (not that you have to, just observing)
 
7:57 AM
In our final year at college we had to give a presentation for the "social skills" class. We were free to pick any topic. One person gave a talk about how bad the education was in our school.
 
user142019
Anyway, not going to a boring and uninteresting class means that I can spend my time on something interesting and useful, such as Haskell or C#.
 
orgasm ^
 
user142019
@TonyTheLion Slowpoke. It was posted an hour ago or something.
 
@Zoidberg Wait. He can't. He can only accept/respect the freedom you already had. Which makes you experience it more freely
 
7:58 AM
Kansas?
 
it's not mine
it's from Reddit, and Google Fibre
 
user142019
@StackedCrooked GOOGLE FIBARRRRRRRR
 
user142019
You know.
 
user142019
920 Mb/s that means you can download Windows in under a minute.
 
user142019
In a few seconds, that is.
 
7:59 AM
TIL foobar comes from fubar which means "Fucked up beyond all recognition".
 
user142019
I’d seed all day. xD
 
user142019
Won’t notice it anyway. XD
 
user142019
If only it were to be a pain in Tim Kuik’s collective ass.
 
user142019
13:00 is the first important class of the day for as far as classes are important.
 
8:03 AM
Yesterday I found that nested pairs (as opposed to tuples) can be elegant. E.g: You can do something on each element with simply: void do_something(pair p) { do_something(p.first); do_something(p.second); } (+ overload for leaf)
 
user142019
Meh.
 
user142019
You can do recursion with tuples too.
 
Sure.
 
user142019
OOOOOOOOOH OMG AWESOME
 
user142019
You can overload for different types of pairs. :)
 
user142019
8:04 AM
Also I want my_function(my_tuple...) :<
 
user142019
C++ y u lack some features.
 
You could. But generally you only overloads for the leaf objects (non-pairs).
 
user142019
Compile-time list. :)
 
user142019
Haha.
 
user142019
template<class T, class... Ts>
class tuple : private pair<T, tuple<Ts...>> {

};
 
user142019
8:06 AM
I’m a genius.
 
user142019
Wait, Pascal doesn’t have lambdas?!
 
user142019
What a shitty language.
 
user142019
Pascal isn’t even listed on GitHub. lol is it still in use?
 
user142019
 
8:15 AM
False, Roses are mainly red in rgb, while violet is mostly blue in rgb.
 
user142019
Roses are whatever color they’re cultivated in.
 
user142019
I wish I could flag flags.
 
Blue roses would be cool.
 
user142019
If you put roses in blue ink instead of water they become blue.
 
user142019
Same with tulips.
 
user142019
8:21 AM
If you ain’t Dutch, you ain’t good with flowers.
 
I obviously meant natural blue roses.
 
user142019
@Rapptz also possible.
 
user142019
Genetic manipulation. :P
 
No, it's genetically impossible.
 
user142019
For as far that is natural.
 
user142019
8:21 AM
@Rapptz Why.
 
user142019
There are blue flowers.
 
I got pink rose today
 
user142019
They have DNA that tells their cells to become blue.
 
I also saw yellow roses
 
@Zoidberg Yeah but they're not Rosaceae.
 
user142019
8:22 AM
Make them into ~.
 
here's your genetically engineered blue rose, lol
It's blue in the same sense that violet is
 
user142019
Dye it. Problem solved.
 
Not natural I say.
 
user142019
I should go to an emo and give her a dead black rose with very sharp stings.
 
mornign all
How do to Valentines day correctly 'morning love, happy Valentines day' 'morning, happy Valentines day'; note the distinct lake of crappy gifts being exchanged.
 
8:35 AM
man, valentines day only reminds me how lonely I am :(
 
@TonyTheLion more or less than 'singles day' does? A day which I can only conclude celebrates the brilliance that is pre sliced single shots of cheese.
 
chat is so painfully slow
 
user142019
Also yay first C# answer.
 
gratz
 
8:38 AM
Oh gawd, self-loathing this early in the morning?
 
@Zoidberg and so it begins
 
@R.MartinhoFernandes never too early for self-loathing
 
@R.MartinhoFernandes self-loathing? I didn't say I loathe myself. I merely stated a fact about loneliness.
 
@TonyTheLion so do you loathe yourself?
Inquiring minds want to know
 
@TonyTheLion AFAIK that constitutes self loathing
 
user142019
8:40 AM
LINQ eliminates the need for so many foreach loops.
 
user142019
It’s beautiful.
 
@jalf NO.
 
so apt :P
sudo apt :P
sudo apt-get :P
package not found. Lick your own balls
 
8:46 AM
oh man, that is some target spam right there, from 'turtle travel'
 
Xeo
Ohayou~
 
user142019
Good morning.
 
Xeo
I just noticed I passed the 50k rep mark
 
user142019
I just noticed you just noticed you passed the 50k rep mark.
 
I just noticed Zoidberg just noticed
 
8:55 AM
I just noticed you all are so noticing.
 
user142019
I just noticed that the C++ port of LINQ can be used without the macro hell.
 
notice-ception
 
user142019
I might actually use this. pfultz2.github.com/Linq
 
I like boolinq's approach better.
Sadly it does not have select many.
 
Xeo
I wish boost::optional was constructible from nullptr. :< Then you could adapt any "handle" to unique_ptr NullablePointer semantics.
 
user142019
9:03 AM
What header was Boost’s any_iterator in? It was in a detail namespace.
 
Xeo
Some range header.
<boost/range/any_range.hpp>, I guess.
 
user142019
> main.cpp:15:9: error: 'any_iterator' in namespace 'boost::detail' does not name a type
 
user142019
Hmm.
 
user142019
Oh <boost/range/detail/any_iterator.hpp>. :P
 
@Zoidberg typename boost::range_iterator<boost::any_range<T>>::type, please. Make an alias if you want.
 
user142019
9:05 AM
Oh neat.
 
user142019
> error: wrong number of template arguments (1, should be 5)
 
o_0 they are using 'tar' to copy folders...
 
user142019
lolwot
 
Xeo
Haha, no defaults.
 
user142019
9:08 AM
 
Oh, any_range.
 
well... I... what? Nope, can't fathom any sense behind this one
 
@Xeo There's no way to default anything.
 
user142019
boost::range_detail::any_iterator Y U DETAIL
 
Xeo
9:09 AM
@R.MartinhoFernandes True.
 
@Zoidberg Just use the damn trait.
 
Xeo
4
Q: Does C++11 guarantee that "int a[8] = {};" is as fast as "int a[8]{};"?

xmllmxIn C++11, both of the following statements are legal: statement 1. int a[8] = {}; statement 2. int a[8]{}; However, I like statement 1 better than statement 2 because I think statement 1 is more expressive. Does the C++11 standard guarantee that both statements have the same performance?

I want to cry at questions like this.
 
user142019
lol
 
@Xeo Go right ahead
 
@Xeo Let us weep together.
 
9:14 AM
@ta.speot.is I pity anyone who tries do deal with things that don't matter. They will matter if your profiling leads you to a hotspot, and the disassembly for that hotspot shows you the compiler wasn't doing a good job with your array initialization. — sehe 6 secs ago
 
user142019
@KevlinHenney studies have found apps labelled as pure Java contain up to 90% XML.
 
Xeo
@Nicol: You can. Since nullptr represents the empty state, just write a wrapper that stores a boost::optional, and have a std::nullptr_t constructor that just initializes that member to the empty state. — Xeo 1 min ago
Or am I being lunatic here?
 
Fact 100% of Scala is Java
 
user142019
Fact 100% of Java code sucks.
 
:7718923 That's offensive. No need to link the site
 
9:22 AM
Fact I don't know Java.
 
user142019
@sehe but combo. :(
 
Xeo
@R.MartinhoFernandes Your opinion on the above?
 
user142019
Onebox followed by "^ Haha <link here>" combo.
 
@Zoidberg Oh aha. "Haha" :)
 
user142019
And titlecase.
 
9:23 AM
I'm pretty sure they program in Jawa on Tatooine
 
hello everyone, a rather quick question: how would you go if you had to work with an image and defining the distance between an object X and a line Y?
 
user142019
@Mikhail Java’s designer was on Herooine when he designed Java.
 
@N3sh auto dist = distanceOf(obj1, obj2); ;-)
 
user142019
@N3sh Nobody has a clue of what you mean, and questions are asked on Stack Overflow, not on chat.
 
good point
 
9:25 AM
> (Feel free to skip this and jump to the next paragraph, if you don’t care much for the past. However, Alan Kay will promptly tell you that without history, it's just pop culture.) source
^ Worst example of bad comma placement for phrasing in a looong time @LightnessRacesInOrbit
 
@Zoidberg maybe someone has a clue, how do you know? :D
but thx Ill do my stuff then
cya
 
user142019
If you make clear what you actually want, maybe.
 
@Zoidberg Stop rationalizing it! That doesn't make it good. Selfish, at most
 
Woot, teacher got sick! No class today!
Wait, does that make a bad person?
 
user142019
9:26 AM
@sehe Java’s designer is selfish.
 
I have been working on a scheme project and I would kill for getNumberOfSkinCareEligibleItemsWithinTransaction
 
user142019
Also yummy shellfish.
 
@Xeo Lemme read it all.
It also appears that I need to set the asker straight about the fact that I am not arguing that all the primitives you will ever need already exist, but the fact that ownership primitives should be the only thing dealing with ownership.
 
user142019
Scheiße.
 
0
A: Why dynamically allocated buffer in user program makes kernel driver crash?

Tony The LionFrom my understanding you are misunderstanding the purpose of MmGetSystemAddressForMdlSafe. Per this document here, you use this function to get virtual addresses that are described by a MDL (Memory Descriptor List). . If the driver must use virtual addresses to access the pages described by...

I took a risk answering this question about kernel stuff
 
9:32 AM
Geez. That article is seriously TL;DR (>5k words). And then, the second comment prompts a reply in 5 comments netting another 1k words?!!!
 
I'm not sure whether I'm talking out of my ass or I've got it right, anyhow, maybe some of you can verify.
 
Mm, get system address for the middle safe.
 
In fact the total comments (24 comments) add > 3100 words to the article. Of which 2200 words are author replies. So. He blabber about the definition of OOP for >7k words. He must be addinng something to the world
 
gawd, why?
 
9:38 AM
I'm At. A. Los..
 
user142019
Ga je helemaal los?
 
@R.MartinhoFernandes Hi
 
@sehe oh well. He likes to write, apparently
 
Xeo
@LucDanton Nice
 
Anyway, my minicraft choked on 50x50x50 cubes. Well, time to optimize -.-
I am reading this tml.tkk.fi/~samuli/publications/laine2010tr1_paper.pdf , and it's really cool
 
9:53 AM
The two things of interest are, well, the concat_map feature itself, but also the single_pass_range_iterator used for implementation.
 
@LucDanton Next up, cata! :P
 
Sure, why not.
 
That's super easy, btw.
 
I, too, like to fold. Unless it involves laundry.
 
@BartekBanachewicz Well. Nobody Gives a Fuck. (The Most Important Writing Lesson I Ever Learned, Steven Pressfield)
 
Xeo
9:57 AM
Alright, since I have nothing to do right now at work, I think I'll write some Haskell.
 
user142019
Good choice.
 
@Xeo What are you writing?
 
Xeo
@R.MartinhoFernandes The makefile generator
Maybe I'll even rewrite deps in Haskell, for shit n giggles.
Although I need to install the Haskell Platform first here.
 
user142019
What are you generating the makefiles from?
 

« first day (852 days earlier)      last day (4080 days later) »