« first day (946 days earlier)      last day (4003 days later) » 

6:00 PM
@Tuntuni SO is full of questions about it.
 
@Borgleader Mine are VE247H. Almost same :)
 
oh, and libstdc++ is really only complete (minus missing parts) on Linux. On e.g. Windows locale etc. are borked.
 
@Mysticial I hesitated between the two but i think the 248 was cheaper at the time so I took that one.
 
user142019
Boo.
 
The difference is 23.6 vs. 24 in.
Meh...
 
6:09 PM
@Mysticial What a ripoff.
 
Hmm. Qt Creator does not come with qmake.
Typical.
 
Yeah you have to download Qt
 
no I don't
I have it from git
I only have to configure it to get qmake
 
I tried that already
qmake expects Qt
Though if you got it working you could share how
 
@Rapptz uh, no. Not really necessary (at least pre-5.0)
 
6:14 PM
I was using 4.8
 
@Rapptz Qt Creator uses qmake from an incomplete Qt build (i.e. only configured)
 
0
Q: Can I determine the size/length of an array in C++ without having to hardcore it?

Hugo Santosthis is my very first question in stackoverflow, I am a beginner in C++. Sorry if I have repeated the question but I haven't yet managed to find anyone asking this very same question. Probably I am asking the question wrongly, please correct me if so. I am basically looking for some sort of "dy...

^^ dat title
 
Lol
 
So, I haven't played Skyward Sword, but I see the soundtrack is still top notch.
 
sizeof is not a function. — rubenvb 11 secs ago
 
6:20 PM
@EtiennedeMartel You like it only because the guy who posted it has a powerpuff girls avatar
 
@Borgleader It's from The Fairly OddParents.
"DINKLEBERG"
 
@EtiennedeMartel Dude that area was amazing.
 
user142019
@rubenvb arrays don't even decay to pointers when passed to sizeof so the entire answer is BS.
 
@EtiennedeMartel Oh, I haven't actually watch powerpuff girls. i thought it was the scientist dude.
 
user142019
Oh wait nevermind.
 
@rightfold yeah not really
 
@rightfold He didn't say they do. "...but the problem is that when passed to a function, arrays decay into a pointer to their first element..."
 
I just reread it
whatever
~meh~
 
user142019
@rubenvb Me too.
 
array is not well-defined.
there's a[N], a[], and a*
 
6:24 PM
Array questions attract a surprising amount of shitty answers and pointless debate =.=;
 
user142019
Arrays are terrible.
 
@Rapptz Oh, you mean that song in reverse?
 
all "arrays"
 
user142019
Avoid them.
 
std::array :)
 
user142019
6:25 PM
Use std::array.
 
high-five
 
i think arrays are really straight forward
 
user142019
Arrays don't have value semantics.
 
user142019
They have array semantics.
 
why avoiding them?
 
6:25 PM
@arianoo because C++.
 
user142019
@arianoo Because of all the shitty unlogical edge-cases and implicit conversions to pointers and they're not assignable.
 
in practice though I always end up using std::vector
 
user142019
Use std::vector for dynamic arrays and std::array for static arrays.
 
@Rapptz Also, I prefer the original version.
 
Zelda's Lullaby was in older games too!
 
6:27 PM
@rightfold implicit conversions to pointers is exactly one of their advantages
 
@Rapptz TIL it was in ALttP.
 
user142019
The real solution is to not use C++ at all.
 
Well, well.
 
user142019
@arianoo What the fuck of course not.
 
user142019
It's horrible.
 
6:27 PM
But everyone remembers the OoT version. Because OoT is best Zelda.
 
OoT has some really nice music
 
@rightfold but it always helps meeeeeee
 
user142019
It doesn't even pass the size with the pointer so it's absolutely useless.
 
user142019
@arianoo Then you are writing bad C++ code.
 
@ScottW In all seriousness, Majora's Mask is best.
Because mindrape.
 
6:28 PM
@ScottW Isn't that just making a huge array and hoping the user won't enter too much and create a buffer overflow.
 
user142019
@ScottW Princess Twilight FTFY
 
I like when a game skullfucks me.
@rightfold Arhem.
 
user142019
Arnhem.
 
It's Twilight Princess
lol
 
user142019
I know and you don't get the joke.
 
6:29 PM
@Rapptz What @rightfold said is a MLP spoiler.
@rightfold "Arhem" is my way of saying "cough".
 
It was a horrible one so I had to fix it
 
Because it's the sound I make when I do it.
 
user142019
 
user142019
Meh.
 
Fuck it, I'm putting that here again because it's awesome.
 
user142019
6:30 PM
Majora's Mask was meh.
 
@ScottW Did you by reserve mean using std::vector's reserve function or really just using a big number for the size of the array?
 
user142019
Ocarina of Time FTW.
 
@rightfold Meh? MEH? It's a fucking masterpiece.
 
user142019
I didn't like it.
 
user142019
Wind Waker was fun too.
 
6:31 PM
They should re-release it with a graphical update. Without touching anything else.
it would outsell all the recent zeldas
 
OoT was too bright, too cheerful. MM was a flaming penis to the eye socket.
It fired napalm in my comfort zone.
 
I wonder why of all games, Nintendo hasn't remade that one.
Ah well. I'm mad at Nintendo lately anyway.
 
@Rapptz Took them ages to rerelease EarthBound on the virtual consoles.
 
@ScottW Oh, like that. Nvm then :)
 
user142019
Metal Gear Solid 3: Snake Eater is the best game of all time.
 
6:33 PM
@rightfold You're a snake eater
 
user142019
And Hideo Kojima is a hero.
 
@Borgleader He eats solid snakes.
 
18 hours ago, by rightfold
OMG COCK <3
Indeed
 
Ell
Majora's mask isn't that good I don't think
 
@EtiennedeMartel did you see that video i posted about cork soakers? (by SNL)
 
6:34 PM
@ScottW I still like their games. I'm just mad over the whole LP thing they did a few days ago.
 
Ell
I preferred windwaker & ocarina
 
@Ell Of course you disliked it, it was different.
It's the darkest Zelda game ever made. In fact, I'm not even sure I can call it a Zelda game because of how cynical it is.
 
Ell
Okay I don't understand what was so cynical o.O
I see it as ominous
 
You cannot save everyone.
Zelda has always been incredibly idealistic: the underlying premise is that when evil rises, a hero will appear to save the day.
The good guys always win.
 
user142019
There's an American person on TV.
 
6:36 PM
The comes MM, a game where you have to leave people in the dirt because you don't have enough time to help them, so you just snatch whatever loot and then warp back.
It's that kind of game that gets horrifying only when fridge logic settles in
For instance, Mikau (the Zora you impersonate) is dead. He left his girlfriend pregnant.
Sure, you stopped the moon from crashing, but he's still dead.
 
I am scared.
 
That band lost their lead guitarist, and those kids lost their father.
 
@EtiennedeMartel fridge logic?
 
Ell
Meh, maybe I don't look into games deep enough :P
 
The Gorons lost their local hero, and I'm pretty sure that that weird tree you see at the beginning of the game is actually the Deku Buttler's son, cursed in that form (with his soul being part of your Deku mask)
 
6:39 PM
 
user142019
That's what she said.
 
There's also that "Sleep with me in my bed tonight, OK, Romani" line, which is terrifying because it's essentially Cremia realizing they're gonna die and making sure her little sister doesn't panic.
 
Ell
Maybe I'm just too a casual person, and I just didn't find MM as entertaining as the others
 
@Borgleader It's when you watch or read or play something, and all is well, and then you go back home, and, as you open the fridge to grab a beer, you suddenly realize something that changes your whole view of the work.
It's like a worker thread in your mind just finished analyzing something.
 
Oh, never heard that before
I need to get an emulator and play MM someday. IIRC it required a save card for the N64 and I did not have one so I didn't play it.
 
Ell
6:41 PM
mopen
or something :L
I've been trying to get dolphin-emu to work
but I can't :/
 
@Borgleader No it didn't. What it needed, however, was an Expansion Pack.
 
user142019
mopen?
 
user142019
That's an implementation of Silverlight.
 
Oh yeah, wtv. I didn't have something that wasnt standard and so I didn't play it.
 
Ell
Mupen64
I have banjo kazooi openin it :p
 
6:43 PM
Also, that.
 
user142019
They forgot that I love hating people who spell "JavaScript" as "Javascript".
 
Think it would be possible for an IDE to have a function to remove any unused includes, and add any that are required?
 
VS does that for C#
 
I mean for C++. Sorry.
 
6:54 PM
not that I know of
 
@rightfold Also JAVA.
 
user142019
Go emits a compile-time error if you have an unused import.
 
user142019
 
@Pawnguy7 Blame C++'s fucked up compilation model.
 
@EtiennedeMartel "Blame C" FTFY
 
6:55 PM
I was wondering if it would be possible with its build system. Unlike Java (that is where I saw this first), what includes what seems a bit... variable in C++.
 
user142019
@EtiennedeMartel My Java teacher did that in his slides.
 
What does the build system have to do with unused variables?
 
@rightfold Did you tell him that "Java" is not a acronym?
 
user142019
I didn't tell him anything about it.
 
user142019
Not worth the effort.
 
6:56 PM
So, you don't give any feedback to anyone, yet you keep whining about inferior education?
You do realize that people cannot improve without feedback, right?
 
@EtiennedeMartel Some teachers just don't care. I know a few who comfort themselves in the fact that they have Phd(s) and are therefore irreproachable.
"What does a silly student know anyway?"
 
Right, forgot you studied at an engineering school.
I mean, sure, I know engineers are tosspots.
 
user142019
Engineers are people who work with engines.
 
People think Java is an acronym?
 
Those who write JAVA in all caps do.
 
6:59 PM
@Xeo @R.MartinhoFernandes Btw N3629 "Simplifying C++0x Concepts" by Doug Gregor is amazing. (Then again I easily get excited when concepts are involved.)
 
I think they do it because they see BASIC, FORTRAN, etc and think all languages are upper case
 
I think the only place I have seen that is here, or it being referred to from here. If I see it, I should ask them what it stands for haha.
 
@Rapptz But these were all acronyms.
 
I didn't say it was logical.
 
That's right. He didn't.
 
7:00 PM
Fortran hasn't been uppercase for decades - it was changed, probably because it was tedious to type. But people who teach/use Fortran probably last learned something at around that time
 
COBOL was in caps.
Also, C.
 
C++ too.
 
Oh.I misread. I thought you said they think it is an acronym.Writing it like one (but not thinking it is) is different, I would say.
 
INTERCAL
 
user142019
Data.List.intercalate
 
7:03 PM
@LucDanton Good one.
 
:) I try to please
Forth was once FORTH as well I think.
 
It seems that there are two categories of languages: the uncool languages in ALL CAPS, and the cool ones in not all caps.
 
If you wanted to pretend your language had a pedigree, what would you make it look like? LANGUAGE -> Turbo Language -> Visual Language -> Language++ -> language?
 
-> language.js
 
@EtiennedeMartel Might want to revise that definition, it implies Go is cool =/
 
7:05 PM
@Borgleader And that C# isn't.
 
and Java is
 
No theory is perfect, I guess.
 
@EtiennedeMartel It's design-ish, so one day it'll become a cycle!
 
@Rapptz We just need to spell it JAVA and be done with it.
 
I apperently got some malware on my Win32XP, and got sick of it crashing, so I wiped that partition and stuck in a Win7 disk my friend handed me years ago. Except the disk is blank. Luckily I have a legal Win7 iso backed up, but discovered I have no blank DVDs. This bodes poorly.
 
7:06 PM
@EtiennedeMartel You could say it's like a french rule. Covers around 51% of the cases and has a shitload of exceptions.
 
@MooingDuck Don't install tomorrow.
 
I got the day off tomorrow. Woop woop.
 
@LucDanton the plan is to install today, but why not tomorrow?
 
@EtiennedeMartel Holidays ftw :)
 
Install today if you don't want Ballmer knocking on your door.
 
7:08 PM
@MooingDuck Imagine it goes very bad, as foreboded -- extra sucky monday.
 
oh huh, I'm bleeding. A cat must have gotten me
 
@Rapptz That's a curse I wouldn't cast on anyone.
 
so I'm trying to figure out what to do today since basically all I have is cats, my phone, and a miniscule mostly-empty mac partition.
 
Install a linux-like
 
guess I don't even have the Mac while the install goes :/
@Rapptz I have ubuntu on my old machine, but that's SO OLD that its barely useable.
 
7:11 PM
yesterday, by Mooing Duck
I can't figure out how to install Java for Firefox on this Ubuntu box. After fiddling with it for half an hour, I do a google search. 3rd hit is "How to Install Oracle Java on Ubuntu Linux: 17 Steps - wikiHow". I hate linux.
Previous foreboding.
 
His problem was going on wikihow obviously
 
@MooingDuck I just remembered someone was wondering about your whereabouts not too long ago. But I don't remember who, so sorry.
 
yeah. When I bought that box it had more RAM than any other machine at Best Buy, a whole whopping 512MB.
 
Did you buy it in 1999?
 
@LucDanton I stopped hanging out here as much, since I kept letting myself get distracted and it was interferring with work and people noticed :/
@Rapptz By my math it was closer to 2001, but I don't recall exactly.
 
Ell
7:13 PM
@MooingDuck ftr, I think installing open-jre is a lot easier than sun jre
 
my cellphone has more memory than both my laptops put togeather :/
@Ell that's what I eventually figured out how to do
@Ell installed like 8 JREs, eventually hit the right one.
 
Ell
Ahh that sucks :/
 
I don't think my phone has more than 512 MB of RAM
(iPhone 4)
 
Ell
Also, if you ever want to install linux again, if you use Linux Mint, it has the latest java/flash/codecs/etc. already isntalled
It also doesn't use Unity by default (if you see that as a perk)
 
@Rapptz Android basically only has the SD card. Mine has 8GB internal and 8GB external.
@Ell Unity confuses me, I need to learn to use it
 
7:15 PM
of RAM?
I think you're talking about actual space
i.e. there haven't been any phones atm with > 1 GB of RAM
 
Ell
My phone has 583mb
@MooingDuck Have you used a mac before?
 
@Rapptz as far as I can tell, none of my phones have any other sort of... oh hey, look, it does have a seperate RAM.
1GB
so less than one of my laptops
more than the other
@Ell for about two weeks once
other than that, never for more than a couple hours at a time.
 
Ell
I like unity
 
because after two weeks I installed Windows
 
Oh the S4 has 2 GB of RAM
 
Ell
7:18 PM
but not for developing (I need to see the window titles)
 
dang.
 
Ell
Which is why I use mint for dev
 
Just a couple months ago no one had > 1 GB
 
@Ell I'm getting the hang of it, but I still can't find arbitrary programs
 
Ell
also I think mint looks a lot cleaner and is very well finished. Stuff integrates well
@MooingDuck that's easiest by hitting the windows key then just typing the name
 
7:19 PM
like, I can no longer figure out how to open the console :(
 
Ctrl + Shift + T?
 
Ell
type terminal into dash
 
@Ell well that sounds easy
@Ell hadn't found anything I'd call "a dash"
 
Ell
@MooingDuck Dash is the thing which opens up when you press the ubuntu icon at the top on the left
I think :P
 
oh
I don't recall a textbox there. I'm booting it up now to see for myself
 
Ell
7:21 PM
It will open up a menu to search for files/commands/applications/internet searches
Basically you can do anything by pressing windows key then typing
including saving a file, going next song, google search etc. etc.
 
lol
 
I'm getting some really wierd behaviour, I've got a boost::rational<std::int64_t> that the debugger says i {num=462 den=25 } but the result of boost::rational_cast<double> is -1.#IND000000000000. What could cause that?
Sorry the debugger says it's {3417, 1000}
 
you passed the wrong value to rational_cast. Potentially a reference to a destructed object.
 
const auto time = opt_video_sync ? opt_video_sync->now() : opt_audio_sync->now();
const auto time2 = boost::rational_cast<double>(time);
assert(!_isnan(time2));
now() returns a "boost:.rational<std::int64_t>"
and it only happens after a while
 
@Ell I see, the textbox is blatantly obvious. I probably forgot about it because I don't know what anything is called. "cmd" and "console" have no hits
 
Ell
7:24 PM
@MooingDuck try "terminal"
 
@Ell see, with windows, I can navigate through the start menu to find a list of options.
 
Ell
Yeah. It's possible to do that on ubuntu if you click the application item in the dash menu (I think it looks like pencils?)
but at the bottom of dash, there will be photo/music/application/etc. categories
did searching terminal work btw?
 
@Ell yeah, I pinned it now
 
Ell
Right, cool :)
Also, if you want to run a command, you can do Shift-F2
 
@Ell Huh, I'm sort of surprised that I gave up all hope before finding that
 
Ell
7:27 PM
for example, Shift-F2 then "gnome-terminal"
 
right, well, disk finished burning so now I'm going to begin a failure of a Win7 install. Brb on other box
 
Ell
@MooingDuck In case you are dual booting, install windows first then linux
 
I'm attempting to install windows alongside osx. linux can be a vm.
except the mac refuses to boot from my win7 cd , I just get a flashing line like a clear terminal I cant type in.
 
Also, firefox froE on the linux box, how do I kill that?
 
7:40 PM
pkeeeeeeeel it
 
and mac spotlight forgot where everything is so I cant reach bootcamp
 
user142019
If you want to find system files using Spotlight you have to enable that first.
 
Ell
@MooingDuck froE? o.O And by kill do you mean end the process?
 
gooood afternoon/evening/morning
 
Ell
If you mean end the process, either open the System Monitor (from dash) or do ps -aux | grep firefox to get the process id then kill -9 insert_process_id_here
 
7:45 PM
@Ell pkill firefox
 
Ell
or what @LucDanton said xD
 
You can also try clicking the close button like mad in the hope that the 'force quit' dialog appears.
 
heh, gnome system monitor takes 20-40% of a cpu
 
That's what I do on Windows.
 
Ell
@MooingDuck what are your specs for the ubuntu machine btw? How does it run for you? Is the interface sluggish?
 
7:51 PM
@Ell incredibly sluggish. I thought it only had 1Gb of RAM, but it says 1.3.
 
user142019
What characters are valid in Twitter hashtags?
 
user142019
#[a-zA-Z0-9]+?
 
it says Pentium 4 3.2GHz
 
Ell
@MooingDuck Are you at the latest version of ubuntu? Apparently the latest release sped it up a lot
I used to run ubuntu on a pentium 4 3.2GHz
 
@Ell I dunno, not sure how to tell
the gnome system monitor takes 22% of a cpu though
the mac refuses to boot from my win7 cd, just shows what looks like a clear terminal, but I can't type anything. This is going well.
 
Ell
7:54 PM
@MooingDuck Sorry to break it to you, but with dual boots I would always install windows first :P
That probably isn't the only way though
 
@Ell oh, my phone dropped messages. I'm attempting to install Win7 alongside OSX 10.5.
in which case, installing windows first isn't really an option
or at least, not a good one
 
@rightfold I think it's #\d+
 
user142019
Nevermind.
 
user142019
Twitter can return hashtags separately with their indices in the text.
 
OSX 10.5 doesn't like Win 7 though, too new.
 
7:57 PM
lol, the two lowest voted answers in the past month were "lounged".
 
Ell
@MooingDuck Isn't it? I'm probably missing something, I always thought windows was the pickiest OS so should be installed first. Why is it a bad idea to install it first?
also if you want to know what distro you are running, do cat /etc/*-release
 
The force is strong within us
 
@Mysticial Not surprising, we're assholes :P
 
lol Tumblr is getting bought by Yahoo
 
@Ell because macbook pros come with OSX pre-installed, and uninstalling it simply to install windows first seems quite silly.
also I haven't yet found my OSX cd again
 
7:59 PM
are friends not a good idea?
 
Ell
oh gosh of course how could I forget OSX is always preinstalled! my bad
 
These two:
http://stackoverflow.com/questions/1538644/c-determine-if-a-number-is-prime/16608739#16608739
http://stackoverflow.com/questions/2340281/check-if-a-string-contains-a-string-in-c/16552295#16552295
 

« first day (946 days earlier)      last day (4003 days later) »