« first day (418 days earlier)      last day (4757 days later) » 

00:37
Is Ruby the same as python in that nothing but functions and classes (?) introduce a new scope
@JohannesSchaublitb int(x) = f? Shouldn't that be ==?
@SethCarnegie in ruby, variable names at least partially determine scope
and blocks apparently introduce a new scope
Hooray, multiple-choice guy's suspension is over!
 
1 hour later…
02:12
@KerrekSB Who are you talking about?
@StackedCrooked That's the guy who spammed hundreds of "This is not homework" interview questions a while ago
Lol
If I got stuck with programming homework I'd certainly ask for help on SO.
I asked a question about algorithms. It was closed on the accounts of ambiguity. However I have added a few examples to make it clear.I also have commented on the question to open it but it is still closed. Please tell me what should I do
http://stackoverflow.com/questions/8424396/deciphering-the-key
03:09
Anyone here?
user406009
Yep
I'm trying to some input from a file into string.
0
Q: Read portions of an ifstream into a string object?

MosheI'm trying to read an ifstream into a string, where I can set the number of characters being read. I've read the documentation for ifstream.get() and ifstream.getline(), but neither of those accomplish what I want. Given the following string: asdfghjklqwertyuiop I want to read in varying n...

@nil - I know you're busy, buy if you happen to know this one...
user457812
03:25
@Moshe You could just read N characters into a buffer and then throw that at a stringstream and get the string from that.
user457812
That said, I'm not particularly familiar with streams in C++, so I've probably just offended someone.
Ok, thanks.
 
2 hours later…
05:42
Okay, so who the hell went mad with the flags in this room?
@StackedCrooked You're been flagged for those YouTube videos. It might be best if you bin them

 bin

It's a bin, for binning things.
Bin them?
Migrate them to the bin
You can't permanently any messages unless you're a mod, so this is the way which room owners use to keep chat clean. Well, clean*er*
How do I migrate a message to the bin?
Room menu under the room description > message admin, select the messages, type in bin as the migration target
16 messages moved to bin
Wow, that were 16 messages.
What have I been doing?
:D
06:00
lol... you picked up 18 flags trying to get your Anime fix...
XD
Well apparently, talking about kittens and puppies dying is srs bsns.
06:40
It's all that I'm about.
Who's the flagging bastard I wonder?
Beats me... I you had a chain of consecutive youtube links... So I can see how someone thought it was spam.
Quiet night right now... nobody is getting any upvotes... lol
07:33
@Mysticial how did you see all the flags on @StackedCrooked?
I think it's a 10k moderator tools things
I'm not sure
I was already above 10k the first time I went into chat. So I don't know what it was like before.
@Mysticial right on
what's a 10k tools thing?
Do you need to have 10k to see the chatroom flags?
yes
07:38
it's always funny to see him be confused when someone answers my questions
oh right, you got muted...
07:54
Is your avataar from the Samurai X OVA ? @Mysticial ?
cpx
cpx
hm?
Can you mute someone at 10k?
you should be able to ignore people at any rep
It's from Bokurano end of episode 23.
cpx
cpx
mute means taking away the user rights to talk, right?
sure, but that's not what happened
keith isn't muted, I just ignored him
even as a 10k room owner, I can't stop other people from talking, only from me having to see it
08:20
Hola Amigos!!!!!!!!!
Hi, is there someone with experience in Qt that could help me with some code?
@Tony is using Qt, I believe
but if he's a no-show
I've used it a bit
when I do this:
event->key()
with a KeyPressEvent i get: invalid use of incomplete type 'struct QKeyEvent(QKeyEvent*)'
you failed to include the appropriate header
08:30
yeah, include <QEvent> or QKeyEvent> or something like that
thanks :D now it's running
@StackedCrooked You just picked up another 3 flags on the video you forgot to move...
Why are videos flagged as offensive
Dunno. Someone's a little flag happy today. He also snagged 18 flags earlier on about 5 or 6 videos and posts...
The videos aren't offensive. It's just Japanese Anime. But apparently someone thought it was spam, and decided to flag them - all of them.
argh
my 3D graphics module doesn't even mention shaders
08:44
yea I've used Qt
cpx
cpx
I guess if they were marked as invalid, the guy might have lost like 18*10=180 flagweight?
problem solved @Tony I just forgot to include something. thanks anyway
even my phone uses shaders
18 hours ago, by R. Martinho Fernandes
‮
WTF?
cpx
cpx
08:54
@FredOverflow Spaces?
no
RTL override
Why is the starred message backwards?
look at the starred list
it was a Unicode RTL override character
Real Time Love?
Right-To-Left
08:55
Did he to that on purpose or by accident?
pretty sure that no keyboard has RTL overrides on it's keys
so I'm going to go for on purpose
bad robot!
it was lols
seems fine at first glance, but that doesn't mean anything.
room topic changed to Lounge<C++>: Design Patterns? Where we're going, we don't need Design Patterns! [c++] [c++11] [c++-faq]
09:01
any one had issues with Chrome recently? Just had to reinstall it in order to get it online, very strange. Maybe a bad update...
I don't like updates, they screw your system stability, eventually.
I've only tried Chrome once
the installer bluescreened my computer
stuck with Firefox since then
I had been using Opera for a long time, but some pages didn't work well, and now I'm a Firefoxer as well.
09:03
I was looking for something like cplusplus.com but for C++11
so that seemed good
chrome wins btw
@SethCarnegie How about the C++0x FCD?
eh, it's been at least a year since it mattered
final committee draft
Apart from the bluescreening installer, both Firefox and Chrome are excellent browsers
09:05
I have a struct with an overloaded operator()(), the ctor takes an arg, I can invoke the operator() just like my_struct str(arg); str(); right?
@FredOverflow I tried opera for a good while... then chrome along :D
Yep
Well, is the constructor explicit? :)
never heard of the installer blue screening...
otherwise the first line might be a bit wobbly
@SethCarnegie Just google n3290 and you will probably find something.
09:07
@thecoshman well, I don't know if it's happened for anyone else, and I doubt it'd happen if I tried today :)
@jalf no
oh perhaps it should be
single-parameter constructors should really be made explicit by default. Only omit that if you have a good reason :)
I like the easy format of en.cppreference.com/w/cpp though
fair enough
@jalf I'd give chrome another go... saying that, I should prob' give FF another go... saying that, I don't want the effort of getting FF set up all nice for me... saying that, you prob' don't want to do same with chrome... saying that, I found chrome was brilliant straight away thus didn't need to find extensions for shit... saying that, I do use extensions for somethings... saying that, it would be stupid if what I used the extensions for was built in to chrome as standard
TL;DR try chrome
09:11
@jalf oh right...
eh, Firefox works perfectly for me
and afaik, Chrome still doesn't have a solution to work with large numbers of tabs
<3 FF tab groups
and app tabs
and that's not even an extension in FF
yeah... lots of tabs can get messy... I tend to try to keep my tabs to a minimum by USING BOOKMARKS!
The only thing I can't stand about chrome is the infinity bar
I've got bookmarks too, but that's a workaround because the browser doesn't support my natural workflow
09:15
@SethCarnegie I think they like to call it the omni-bar
When I find 6 tabs about subject X, and then have to work on task Y for a bit, I don't want to create 6 bookmarks. I just want to put those tabs away, and get back to them later
@jalf you mean "open ALL the links"
hmmmm
I have to create a boost::thread and assign the function at a later point.
@thecoshman yes. I mean "I just googled something I need information on, and I found several relevant pages"
You could try having a new window... so all the tabs in one window are for one task
09:16
but it doesn't look like I can that without creating a pointer
@thecoshman but again, why would I jump through hoops to work around a browser lacking support for how I actually work?
especially if Firefox does it out of the box
@jalf I know what you mean... and now that you mention it... the idea of putting a load of tabs into a group and just being able to one click book mark that group. Shouldn't be to hard for chrome to support
at the moment I've got 57 tabs open, in 9 different tab groups I can switch between at will
oh yeah, I have seen that do dad... it's like overlay that lets you see the grouping of tabs
Plus two app tabs for this chat and another I always want to be accessible
@thecoshman yeah
09:19
yeah... I don't think the chrome extension API would let you do something like :(
@thecoshman no, the infinity bar is the bookmarks dropdown
btw, if Chrome were to support this, they'd likely still run into problems with memory usage. 57 tabs would be 57 processes, which would add up to quite a bit of overhead
@SethCarnegie oh... I like to book mark system
At the moment, my Firefox is using 290mb, which seems pretty reasonable
the bookmark system is almost nonexistant
there is no bookmark sidebar like FF
And to get to a bookmark at the end of a long list, you either have to wait 4 hours to get to the bottom of the dropdown or open the bookmark manager in a new tab
09:29
ok I need some advice on the following
@SethCarnegie folders dude
I'm not sure that what I"m doing is such a smart idea
because I need to create multiple threads
and wait on them
@jalf I would tell you how much ram my 20 or so tabs are using... but there are too many threads for me to be bothered counting :( I guess that means you win
I can see the idea behind chrome wanting to use fuck loads of threads... but that many threads just looks like a poor realisation of the idea
user34537
@jalf: I havent used tab groups but with 4tabs it is using 380mb (64bit windows7, however i am unsure if this is a 64bit browser)
@acidzombie24 well that doesn't add up... o_0
user34537
09:36
Firefox is definitely 32bit. I'm using v8
@acidzombie24 I'm using 64 bit firefox. I have 10 tabs open and using 233mb
@acidzombie24 Well, it varies a lot how much memory is used by different pages
most of my tabs are on pretty simple/static pages, so they probably don't add as much memory as tabs on youtube or gmail
but addons tend to count for a lot too
clearly the 664 bit is much less memory intensive
pretty sure adblock+ has a bunch of known leaks
even the chrome version?
09:37
no clue
probably, much the same code I am sure
I just use flashblock, which catches the truly annoying ads
user34537
ah, yeah i niw use 160 on a fresh open using only this page
don't really mind the other ones. If a page is worth visiting, I don't mind them getting an ad view from me
for a while I using chrome's built in flash blocker, which bloacks all flash elelments
@jalf most ad blockers still load the add, they just edit the CSS so that it is not displayed
09:40
@thecoshman adblock+ on firefox doesn't
@jalf o_0
no clue how flashblock behaves, but it has the effect I want
that I don't have to see/listen to crappy flash content unless I want it
user34537
I dont understand how something could leak (JS is GC'd)
user34537
but does adblock leak if i have it off but not disabled the addon?
user34537
21active addons, 6disabled
09:43
@acidzombie24 you could keep adding things to an array, and only ever using the last one added. If you kept a reference to the array, it would not be GC'ed neither would it's contents. But as you kept adding more and more data to it that you didn't need, it would be a leak
user34537
Is there a statically typed language for the web yet? preferably compiled? So i dont get silly/annoying bugs in my code? I know about dart but... it doesnt seem to be close to primetime yet
@acidzombie24 learn to code better...
user34537
i kind of wonder how go is doing. It was announced like two years ago and it doesn't seem to be in production code
@acidzombie24 I thought that was the actual launch and it just failed hopelessly
user34537
@thecoshman sorry for writing window.location rather then document.location (or whatever it is lol)
user34537
09:48
hahaahhahaha
user34537
i actually disliked go :(. I wanted to like it
@acidzombie24 o_0 what?
@acidzombie24 Firefox addons can have native code components as well as JS :)
and that can leak
user34537
Does anyone know if you can modify the DOM and call JS (specifically jquery) inside of flash? cause... that'd be cool. Using actionscript instead of JS.
user34537
i was hoping LLVM would do this but... it seems like it isnt ready either
09:49
isn't actionscript basically a few proprietary extensions to JS?
user34537
@jalf interesting
It's been a while... but I am sure you can call JS functions on a web page from within a flash program
user34537
i dont know. I never tried it. I once googled flash programming tutorial and AS3 tutorial and i got... how to draw a circle in an IDE -_-
When you are coding in C++, what do you guys prefer, the class string or char arrays?
also I don't see what's so cool about using a tool that's universally hated, and which has to be installed separately, instead of language that's already available with every single browser
09:50
@jalf I think action script was just heavily based on JS. I think AS3 has deviated a fair bit from JS now, much more OO
@thecoshman ew
so they're ditching the thing that made JS nice
user34537
@Topo easy. Anything that isnt a pointer. So definitely string class. I have gone projects without using a ptr. Not even a smart pointer
@TonyTheLion Have you tried std::function?
I think it is because a lot of AS is based on a 'physical' object in the animation... so you would have a lot of thisobject.onMouseOverstuff
user34537
@jalf: I really dislike non statically typed languages
09:52
@Topo std::string all the way
@acidzombie24 char arrays aren't pointers either (but they can decay to pointers, of course).
@FredOverflow pedantic, but fair point
user34537
oh right. I only write char*sz="literal"; I dont think i used char[] in years...
@acidzombie24 That's deprecated C++ code, it needs to be const char * sz = "literal";
user34537
oh right the const. I actually use auto now when declaring it.
09:54
@FredOverflow you don't need all that white space... think of bytes your wasting, tut tu tut
user34537
I have been using the auto keyword since it was available (lucky me)
user34537
an fred before you make a smart comment, no not THAT auto keyword ;)
25 mins ago, by Tony The Lion
ok I need some advice on the following
here is my code
@thecoshman I have gotten used to writing type * var; and I really love it now. Except that I don't actually use pointers anymore, of course :) Talking C here.
and the problem I"m trying to solve
09:55
@acidzombie24 You mean C++11 auto I presume.
user34537
yeah
@FredOverflow you swept up with this smart pointer snafoo are you?
@TonyTheLion make a proper SO question
user34537
@TonyTheLion: Do you want a C++ version of a property? I asked a question and got a solution about that
@thecoshman Naked pointers don't play nice with exceptions. I prefer RAII types like std::string and std::vector. If I want naked, I watch porn.
4
user34537
09:56
Wow, its still in my history
http://stackoverflow.com/questions/6079052/property-like-features-in-c
I live in the world of Java now :( where every thing is all sugar and spice and everything sinister
@FredOverflow o_0
@thecoshman And everything runs like 20 times slower
@thecoshman I must have missed the sugar in Java, where exactly can I find it?
Java (attempts to) trade run time speed for development speed... it has neither
@Topo Java isn't that slow anymore, in general.

« first day (418 days earlier)      last day (4757 days later) »