« first day (755 days earlier)      last day (4185 days later) » 

9:00 PM
Or a puff if you reside in colorado I've learned.
 
Ell
indeed
or california or washington
 
@CaptainGiraffe I don't. Puff. Nor reside. Not even in Colorado. I might have a wine. Or maybe hot tea
 
Ell
how about hot wine?
 
A nice tea it is dear chap.
 
@CaptainGiraffe what?
 
9:03 PM
@MooingDuck what what now? sehe needs a nice cup of hot tea.
 
@CaptainGiraffe "puff"? In Colorado?
 
Um... sigh..... — Mysticial 8 secs ago
 
@MooingDuck Yes; I've listened to songs about magic dragons.
 
@CaptainGiraffe oh, didn't realize Colorado passed the Marajuana thing. Thought it was Washington and Wyoming. OOps.
@CaptainGiraffe Those laws don't become active at the state level until Jan 6 or something, and it's still illegal at the Federal level. So still no puffs.
 
Xeo
@Mysticial Why sighing? :P
 
9:06 PM
@MooingDuck I'm a bystander 5000 miles away, not puffing.
 
@Xeo First time I've seen such a question pop-up on SO.
 
@MooingDuck Just browsed the front page of reddit (I apologize)
 
@MooingDuck Whatever made you think it was WY? That's one of the most conservative states in the country.
Anyway, there are rumors that there will be recreational use shops opening up in Jan 2014 here
Unless the feds decide to crack down on the whole thing, of course
 
@Praetorian bad memory
 
@CaptainGiraffe Not in force yet, so "puffing" is still restricted to "medicinal" use.
 
Ell
9:14 PM
I think I might implement a graph layout algorithm
 
Seeing the code would be nice — Grigory 2 mins ago
^ pathological politeness?
@Ell yay
 
@Praetorian I think the feds would be silly to crack down on it ... it creates plenty of revenue, and doing so just invites a court case on state rights.
 
Ell
@sehe why yay? :L
hmm just thinking it would be like molecule shapes
 
@robjb There is no federal taxation on marijuana, not yet anyway. So there isn't any revenue to be made at the federal level
 
@Ell because meh gets boring
 
Ell
9:17 PM
haha
 
@Praetorian Yes, but given that states are recognizing that benefit ... I don't see any reason for them to intervene.
 
I do think that's the right way forward though, states are legalizing, so jump on the bandwagon and levy federal tax on it
 
@sehe Being polite is nice, if only because then you can say you're different from the puppy.
 
@Ell I did one of those once. I did it differently than most I think
 
@Praetorian Exactly, anything else would be counterproductive
 
Ell
9:18 PM
@MooingDuck can I see it?
 
@EtiennedeMartel We hardly need to emphasize that
 
@Ell It was C#, but let me dig around and see how big/foolish the code itself is
 
Ell
thank you :)
 
(Sometimes I feel like I'm being especially harsh with the puppy)
 
(Okay. Keep us posted)
 
9:20 PM
@robjb Isn't being counterproductive synonymous with politics? :)
 
Haha, yea I suppose so :(
 
@Ell I don't appear to have access to the files here at work
 
> Proposal to Add Decimal Floating Point Support to C++ N3407 by Dietmar Kühl
^ nice
 
Ell
@MooingDuck Ah okay, if you do encounter it I would like to see it :)
 
9:24 PM
@Ell more or less, it would make a terrible guess, and then give each "connection" an elasticity to a certain distance (like a rubber band), and make all of the "nodes" repel (like positive magnets), and "simulate" that for a little bit. It worked surprisingly well.
Except that if there was lots of nodes connected to a central node, you'd end up with connection lines going under other nodes. Few other oddball cases.
 
@Borgleader you should watch this gif
 
@Rapptz Tits!
Well, not just that. Beautiful ladies as well.
But something tell me the one standing really wanted to showoff her tits.
 
Ell
@MooingDuck yeah that's what I was thinking something like that. We have been doing molecule shapes in chemistry which works the same way :L
 
It's the thrusting.
 
@Ell what a coincidence, I was writing a chemistry program :D
 
Ell
9:29 PM
haha
 
Xeo
@Xeo : I love your pedantry. :-D — ildjarn 7 mins ago
Pff...
 
I prefer the term "douchenozzle"
 
Personally, I use cuntbagel sometimes.
 
9:39 PM
fucknugget?
 
Fucknugget too!
He was probably looking for an excuse to lay off those people, so now he can just conveniently blame Obama for it.
I wonder if he cut his own massive CEO salary before considering his layoffs.
 
He donated $1.4m to Romney. I doubt any cuts were made.
I do find it weird that I don't hear weird Democrat stories like I do for Republicans. Shouldn't there be any? Feels weird only having one side of craziness.
 
@Ell I found that our entire presentation is online, but it's got my school and real name and stuff, and isn't relevant to solving your problem. But it's fun watching the bits move about the screen as my teammate tries to click on them.
 
Ell
haha
 
@Rapptz lol
Cuts and bruises
More latency/unconnectivity again
 
9:46 PM
Hm.
I will have to trust in the Named Value Return Optomization in that this array doesn't copy itself out and is just moved out or something.
.... But oh god it feels so wrong I just wanna stick a & and make it feel all better ;~;
 
Curious, is there an equivalent to StringBuilder for XML creation?
 
XMLWriter?
 
Hmmmmmmm
 
im creating XMLs from an oracle database (each row being an entire XML)
but it's not coming up as a properly formed XML even though im trying to match the samples I've been given :|
 
9:51 PM
8
Q: Can we raise the reputation required to chat, maybe on a per-room basis?

DeadMGAnother day in chat, another day of low rep people endlessly asking questions there, dumping their code, and generally behaving as if we're stackoverflow.com instead of chat.stackoverflow.com. Can we raise the barrier here a bit? It might stem the tides. Edit: Per-room rep control would be fine-...

 
:O
Realized I was in the wrong forum :P
what sort of wizadry is this!
 
@DeadMG is by far the most aggressive regular here, when it comes to reacting to people asking questions.
Still, in this case, he's right.
 
@GoodBoyNYC This is not a forum.
 
lol you got downvoted
 
9:53 PM
I'm actually +18 and -11.
but as per usual, the site's owners completely ignore feature requests to do with chat.
 
I was thinking something like, +10 and -3. A lot harsher than that it seems.
 
I'm inclined to agree with Robert Harvey.
 
GL with the feature request.
 
@ThePhD in general if you're concerned about returning/passing an array by value, use vector.
 
@Mysticial: Problem solved. — Robert Harvey 23 hours ago
 
9:57 PM
@EtiennedeMartel he's watchdog
 
@MooingDuck Are those kind of mass-copy optoomizations only applied to something like std::vector?
 
meta's down? never mind refreshed
 
@ThePhD vector is movable, array isn't
 
Ah.
 
Also I like how this comment is referencing the video I posted.
 
9:58 PM
I wonder if there's a way to make custom-classes 'move'-able...
 
You've got pictures of pancakes and videos of people pulling boogers out of their nose in there. I have no sympathy for you. — Robert Harvey yesterday
 
@ThePhD sure, create move constructor and move assignment operators.
 
Okay, sweet. Time to go look up the syntax for that stuff.
 
@ThePhD note: vector effectively is a custom class.
 
@MooingDuck Yeah, I forgot: this isn't Java, where your classes are inferior second-class citizens.
 
10:00 PM
@ThePhD T& operator=(T&& r) {member = std::move(r.member); return *this;}
@ThePhD yeah, there's very few "magic" things in teh standard library.
there's magic in these headers: new, typeinfo, exception, initializer_list, type_traits, and atomic.
 
@MooingDuck ...and sort of a little somewhere in filebuffer's and such (i.e., the interface to however the system reads/writes files).
 
@MooingDuck The only magic I know about is in the atomic header. What about the others; any samples?
 
^ daily 4chan thing
 
@CaptainGiraffe mostly that you can use new without including the header, you can use the language built in initializer lists without including that header, various bit of the language throw exceptions even without that header...
There's various type traits that require compiler support to work properly, can't be done in "pure" C++.
I think that's it actually
Here's a list of the type traits that require compiler support: msdn.microsoft.com/en-us/library/ms177194.aspx
@JerryCoffin That's theoretically doable in pure C++ (assuming a freestanding implementation with direct raw access to hardware, plus probably other stuff). But yeah, I'm on the fence about if that's "magic" or not.
 
@Rapptz I feel incredibly bad right now.
The only time my empathy circuits work, is when people around me feel bad, it makes me feel bad.
 
10:09 PM
Look at me, all fancy and shit with Move constructors:
 
@MooingDuck If you make enough assumptions, anything's possible, though admittedly it's a little different from most of what you were talking about.
 
Array ( Array<T>&& obj ) :
			data( obj.arr  ), len( obj.len ) {
			obj.arr = NULL;
		}
Damnit tabbing!
 
@ThePhD std::move(thing). Named rvalues won't move automatically.
 
dafuq why would you write your own move constructor
instead of, like, std::unique_ptr
 
Um.
.... I dunno.
It just seemed to make sense. :c
 
10:10 PM
@DeadMG he appears to have rewritten std::vector
 
the Rule of Three is now the Rule of Zero, buddy.
 
@DeadMG I disagree with that: strong exception guarantee.
 
it works for me
 
@MooingDuck .... .... Yes. ._.
 
@MooingDuck What about it?
 
10:12 PM
But it wasn't my fault!
 
@DeadMG if there's a type with a throwing copy as a member, it doesn't have the strong exception guarantee with the default copy assignment.
 
I made the Array<T> class just because before I was having trouble exporting explicit templates for std::vector<T>
Now I know how to export those templates, but the Array<T> class was already around, so I just kind've. Um. Kept it.
 
@ThePhD Always assume the guys that wrote the library are better than you.
 
@MooingDuck Maybe. But I don't really deal with any types that have a throwing copy, and Rule of Three won't help you there anyway.
 
@DeadMG you don't deal with std::string? I do. copy-and-swap in the copy-assignment gets you the strong exception guarantee.
@DeadMG: to be clear, I agree there's no reason to write your own move constructor/assignment.
 
10:20 PM
@MooingDuck The only way std::string throws is if dynamic allocation fails.
 
@DeadMG yes
 
if that happens I've got so much more than exception guarantees to worry about.
 
@DeadMG point stands for any and all exceptions, not just bad_alloc.
 
except discounting bad_alloc makes virtually every Standard class nothrow copy, and a huge majority of user classes too.
 
@DeadMG but not all.
 
@MooingDuck True, perhaps. But I'm fine with dealing with those differently.
 
"And another 4 years of the (n-----). Maybe he will get assassinated this term..!!"
" I'm not racist and I'm not crazy. just simply stating my opinion.!!!"
"OK, but what did I do wrong? That's fine if [the secret service wants to look into this]," she told the reporter. "But I don't understand what I did wrong."
 
bitches be crazy.
 
I know, hilarious right
 
...are you all pro-Obama here?
 
10:25 PM
I'm just anti-stupid.
 
@Griwes except Chimera, yes
 
it's difficult not to be pro-Obama when his opponent is so mind-numbingly stupid
 
> Helms graduated from Placer High School in 2008, according to her Facebook page, and has the Romney/Ryan 2012 page among her "likes." She is not listed as a registered voter in the state registry database.
lmao
 
@DeadMG, that's the general problem with US political system.
 
@Rapptz Racism!
 
10:26 PM
You cannot be against someone; you have to be pro-someone.
 
How do you call someone the N word and then say you're not racist?
 
@Griwes Well, Obama's clearly the best choice because Romney's an idiot.
 
Anyway, Obama has failed hard at least twice - I really don't track everything US-oriented here - and that puts him on "stupid idiots list".
 
@ThePhD Dude, you can quote someone saying "nigger".
@Griwes Obama's not the most competent, but he's at least trying. Romney would deliberately make things much worse.
 
@Griwes Eh.. a bit sure. It depends on how you look at it. Definitely not perfect though.
 
10:28 PM
@DeadMG, meh. If Obama wasn't an idiot, didn't accept that stupid Nobel Peace Prize (rofl) and didn't told "fuck you" to us (as in: to Poland), I probably wouldn't be bashing whenever I can.
 
@Griwes oh he's failed a lot more than twice. So have I.
 
Speaking of Romney
 
@Griwes yeah, definitely shouldn't have accepted the prize. Researching Poland...
 
@MooingDuck And shouldn't been Putin's bitch.
 
Nobel Peace Prize is useless. Why do people even care about it?
 
10:29 PM
You know, that little country that always saves everyone asses and is fucked after that.
@Rapptz, he has shown hypocrisy.
 
In what sense?
 
@Griwes not nearly so much as Romney, but yes.
 
Dunno, I haven't heard much about Romney; at least he's not Obama.
 
Yeah that's everyone else's logic when they voted for him probably.
 
Wow, talk about being left high and dry.
 
10:31 PM
@Griwes are you referring to the death camp comment, or the missiles, or what?
 
@MooingDuck The whole missile defense project that was cancelled just because Putin said "no".
 
@Griwes "Obama has pressed ahead -- in the face of opposition from Moscow -- with a new missile defense plan that will better protect Europe. " foreignpolicy.com/articles/2012/10/31/…
 
@MooingDuck, I will not go into details here, but the fact is - "we" had an agreement, and he broke it.
 
@Griwes He's an idiot? What?
 
@Griwes still reading, never 4 articles agree with you
 
10:35 PM
I'm still unsure why the Nobel Peace Prize even matters..
As for the Poland thing, I'm looking it up.
 
@Rapptz It's whether he accepted it or not what matters.
 
Why do you care if he accepts it or not?
 
@Rapptz he didn't do anything
 
The Nobel Peace Prize is the most useless Nobel prize of them all.
@MooingDuck Case in point. Because it's a useless prize.
 
@Rapptz True.
But it's a symbol.
Rejecting it would be wise.
Accepting it was stupid.
@MooingDuck I'm not sure if I understand grammatical structure of that sentence properly.
 
10:38 PM
@Griwes Whoa, typo. *the next 4 google results agree with what you said
 
Maybe the EU should have rejected the Nobel Peace Prize too.
I mean it's stupid that a whole part of a continent can get a prize to me.
 
Blah.
 
They distribute the prize money.
Everyone gets 0.00001 Euro.
 
We are talking about a person keeping active wars vs continent that doesn't have a war with anyone (lol).
 
@ThePhD The prize isn't nearly that much money
 
10:39 PM
According to Wikipedia, fucking everyone disputes the Nobel Peace Prize because it's so useless.
 
More like 10^-20 Euro or something.
 
user1804599
27
Q: Remove empty array elements

WillSome elements in my array are empty based on what the user has entered. I need to remove these elements. This is my code to do so: // Remove empty elements foreach($linksArray as $link) { if($links == '') { unset($link); } } print_r($linksArray); But it doesn't work, $links...

 
user1804599
WTF 27 upvotes ಠ_ಠ
 
> The awards given to Austen Chamberlain, the Dalai Lama, Yitzhak Rabin, Shimon Peres, Menachem Begin and Yasser Arafat,[20][21] Lê Ðức Thọ,[22] Henry Kissinger,[22] Rigoberta Menchú,[23] Jimmy Carter,[24] Al Gore,[25] Liu Xiaobo,[26][27][28] and Barack Obama[29][30][31] have all been the subject of controversy.
 
@Rapptz, it's not about usefulness or uselessness; it's about having some kind of honor or something.
 
10:40 PM
It's probably because they all pale in comparison to Martin Luther King.
He set the criteria -so high- nobody else seems worthy.
You'd think the Dalai Lama would deserve it, though.
 
He won't get it.
Politics.
 
Wow dude this prize is so much dumber than I imagined.
 
Or stupidity, w/e.
@Rapptz, final time: it's not about the prize itself.
 
Yeah doesn't stop it from being mind boggling idiotic.
I have to admit that golf thing is pretty bad.
 
ROFLMAO
He went GOLFING
Didn't hold a vigil or anything
Just
"Welp, guys, can't make it. Grab your clubs!"
 
10:45 PM
:D
0
Q: Memory not mapped, c++ in R

user1813571i'm using the following c++ code using namespace std; #include <iostream> #include <stdio.h> #include <opencv/cv.h> #include <opencv2/core/core.hpp> #include <opencv2/highgui/highgui.hpp> #include <opencv/highgui.h> #include <opencv/cv.h> #inc...

The formatting there hurts.
 
@Griwes fixed.
Just need to be approved.
Damn. Etienne stole it.
Ah well.
 
@Rapptz I crushed you with my superior rep.
 
My edit was better.
 
I didn't have enough patience to fix it :D
 
did another suggestion.
man fuck you guys.
that's twice now
:(
 
10:55 PM
:D
You should just get some rep and be done with suggestions.
 
@Rapptz I had to do mine twice too because of the first edit :(
 
Yeah me too. :<
 
@Rapptz I really wish editing had some sort of locking system :/ Or at least warnings.
 
For suggested reviews you actually do, lol.
 
11:05 PM
0
A: What is the fastest way to calculate e to 2 trillion digits?

MysticialSince I'm the author of the y-cruncher program that you mention, I'll add my 2 cents. For such a large task, the two biggest barriers that must be tackled are as follows: Memory Run-time Complexity Memory 2 trillion digits is extreme - to say the least. That's double the current record set ...

 
If an edit is suggested you can't suggest one.
 
I should probably get back to cramming my two projects due on Monday.
Dude, whoever upvoted me clearly didn't read it before hand. :)
 
@Rapptz only if they're done editing.
 
Yep..
 
Mysticial = good answer. Why bother reading?
(wasn't me)
 
11:06 PM
So that's how Jon Skeet gets all his rep... whistles...
jk
Probably not entire untrue though. There does tend to be a celebrity effect.
 
I read the whole answer.
My mind is blown.
Holy tits.
Why didn't anyone tell me Mystical was like, NumberJesus?
 
@Mysticial nope, definitely a +1 answer
@ThePhD it's on his profile that he holds world records
 
@Mysticial If it makes you feel better, I didn't upvote you.
 
@MooingDuck Who reads profiles these days? D:
 
I didn't feel like waiting for the repcap to reset before posting that.
 
11:09 PM
Upvoted the shit out of that answer.
 
passed 14k rep today
 
1396 rep here.
 
Jerry Coffin has 151495 rep
2nd place in this room (Luchian) has half that
 
Ell
@Mysticial I feel honoured to be in your presence.
 
@MooingDuck ...but he's gaining a lot more rep a lot faster than I have been lately.
 
11:13 PM
Meh... I'm don't think I'm that special.
 
Unrelated to anything: DeadMG and sbi have rep within 130 of each other
 
I have him on Steam even though he never talks there..
 
and mysticial is only 700 behind them
 
Ell
@Mysticial I will brag about talking to you at my further maths class :P
 
@Ell okay...
 
Ell
11:18 PM
I can say I've met someone famous
I programmed numberwang onto my calculator today :3
 
I can calculate e to 1 symbol.
That's all I needed to pass math.
 
@Ell That's WordWang!
 
Ell
Haven't got to rotating the board yet though xD
 
Ell
who is that?
 
11:23 PM
I don't know.
 
Ell
Was just checking it's not a relation :L
 
@Rapptz Look at the dude's face.
 
He looks just as excited as the baby.
 
Ell
yes
 
this video still blows my mind youtube.com/watch?v=8IXm6SuUigI
 
11:27 PM
@Mysticial y-cruncher is closed source? Hm.
 
there is 'limited' free version
@Rockies for fun and giggles, I have added a C++ implementation in C++ style: http://ideone.com/urdLP2 I've made some assumptions about what you probably intended sometimes (the charge function had useless nested conditionals). Cheers — sehe 5 secs ago
 
@TonyTheLion yup
 
user1357851
11:50 PM
@sehe are you helping out people's homework? xD
 
@Telkitty Nope. I'm exercising while I'm browsing. If that helps someone, okay. I reckon it won't because my code isn't exactly 'entry level'. Nor did I intend to. And I didn't explain zilch. Just showing. I learnt a lot by just 'sniffinf up good habits'. Still do
 
w00t
 

« first day (755 days earlier)      last day (4185 days later) »