« first day (581 days earlier)      last day (4383 days later) » 

12:01 AM
This is the code ideone.com/tpLrP
 
Ok, Now I have questions...
Why now using namespace std?
 
@SerenityStackHolder and I don't see a myvariable in your code?
 
why not cin.getline?
Why not breakdance!
 
why not zoidberg?
why not hot girls on the beach with bikini's ?
 
zoidberg!
 
12:03 AM
@TonyTheLion <myVariable> was a reference to topRight.
 
zing
@SerenityStackHolder where's the declaration of topRight?
 
After botLeft. It's right after it. It's of type Vector3f?
 
Xeo
This is what your code in idiomatic C++(03) should look like: ideone.com/unKKR
btw
    vector<string> vectors(lines);
    vectors = ReadIn(fille,lines);
 
@SerenityStackHolder ok, now paste all your code, cause half is missing....
 
Xeo
Is useless, as the first line allocates lines space, while the second one deallocates all and copies from the returned vector
 
12:05 AM
lol
DO ALL THE USELESS THINGS
 
Xeo
@Charlie woops, forgot to ping you
 
ha! So using namespace std... I don't understand why it is bad?
 
Xeo
90
Q: Why is 'using namespace std;' considered a bad practice in C++?

ManaOkay, sorry for the simplistic question, but this has been bugging me ever since I finished high school C++ last year. I've been told by others on numerous occasions that my teacher was wrong in saying that we should have using namespace std; in our programs, and that std::cout and std::cin are m...

Our knows everything.
 
there you go ^
 
12:08 AM
haha I just read that
makes sense about the conflicts
 
yep, so that's why we do not condone the use of using namespace std;
true story :P
 
so im going to tattoo std:: to my hands, that way it will be with me forever
 
im going to design a new keyboard with an std:: button on it
 
oh nice :)
 
Xeo
12:10 AM
Anyways, you also asked why not std::cin.getline
 
i did
 
Xeo
because cin.getline only works with char buffers
 
thats makes more sense
 
Xeo
std::getline from <string> works with strings
 
ok
 
Xeo
12:11 AM
Other questions?
 
@SerenityStackHolder topRight is a private member of Boundingrect, however you try to use it in setupPlane() which is not a member of your Boundingrect class
that's the entirety of your problem
either make setupPlane() a member of the class, or make the topRight public
 
How can I go around this matter? Should I use getters?
 
I will write in todays notes, learnt why not to use namespace std, why .at is bad in vectors, why not to use cin.getline and that I am going to need to reinforce the s,t,d, shift and ; keys on my keyboard!
 
and create an instance of Boundingrect in the setupPlane() function
 
Xeo
@Charlie .at is not necessarily bad
 
12:12 AM
@SerenityStackHolder no, use the right level of abstraction, not getters
 
What is that?
 
why would you want to expose the innards of your class to the outer world?
 
im determined to be good with C++ by october
 
what interface should your class have to the outer world?
 
It's a game, @TonyTheLion.
How can I achieve that right level of abstraction?
 
12:14 AM
well, think about what "actions" your class should DO, with the innards, and create functions that do them, instead of exposing the innards to the rest of the planet
 
Xeo
@Charlie "good" is a high bar for C++
 
yea
C++ takes years to be "good" at
 
so I have to make that my setupPlane takes one parameter for example and process it?
 
yea, you could do that
 
Thanks! @TonyTheLion
 
12:17 AM
There is a really amazing opportunity at uni to do some work for the police but it has to be done in C++
so im going to spend my whole summer learning
 
oh nice
 
read a book
like accelerated c++
 
im going to read allllll the books
 
good man
 
going to raid the library tomorrow, see which ones are best suited and go and buy them
i want to do this project so much, im willing to sacrifice all my spare time to c++
 
Xeo
12:20 AM
1143
Q: The Definitive C++ Book Guide and List

grepsedawkThis question attempts to collect the few pearls among the dozens of bad C++ books that are released every year. Unlike many other programming languages, which are often picked up on the go from tutorials found on the Internet, few are able to quickly pick up C++ without studying a good C++ book...

 
12:33 AM
morning
 
is copy-ability of a Base inherited by Derived?
 
not strictly, but usually
 
if Base is non-copyable, is Derived also non-copyable automatically?
 
if Base is non-copyable then Derived can only be copyable if they do some strange shenanigans in the copy constructor
and I know of no class that ever actually did that
 
ah
right
 
12:37 AM
Now I have a following error
a nonstatic member reference must be relative to a specific object
 
yea, well, you also referenced Boundingrect::topleft, where topleft is a non-static member, and your setupPlane function is not part of the class
 
I see, so what should I do now?
 
Xeo
@DeadMG And those strange shenanigans would be calling a different ctor than the copy ctor
 
12:54 AM
that sentence makes it sound like there is a copy ctor
 
Xeo
Sorry, I was thinking of boost::noncopyable like bases that have a private copy ctor
 
right
now to see if I can work level 1
 
1:29 AM
anyone have experience with git?
 
most of us are European, so you won't find too much happening in the dead of the European night
 
1:59 AM
Woa, Diablo 3 is awesome. I just finished Act 3 and man, I did not see that twist coming.
 
@EtiennedeMartel I did.
I mean, for one, what else was gonna be Act 4? and for two, we already knew Leah's father was the Diablo 1 champion who was promptly possessed by Diablo
 
Yeah, the first part was easy to guess.
As for the second, well, I guess I'm not versed enough in Diablo's backstory.
 
although I'm miffed that we didn't get to kill Adria
@EtiennedeMartel I think the necessary was explicitly re-stated in the first Act, but I'm not totally sure.
 
@DeadMG Don't spoil anything, I really want to kill that bitch.
 
@EtiennedeMartel Sorry, too late :P
just killed Diablo on Nightmare with three players, and man, it was hard
we basically had to whore stuns all fight
 
2:06 AM
I'm only on normal, and I already find act bosses quite intense.
 
Belial was tough, you had to learn to dodge in the second phase, but Azmodan and The Butcher were pretty easy
Diablo was a walkover on Normal too
damn
I can't find any simultaneous equations to solve to progress in breaking SHA-2
 
2:20 AM
or maybe I'm looking in the wrong place
I mean, logically, I knew in advance that there would be some equations of the form c = x + y where I would have to "make up" the values of x and y
so why am I only looking for equations with definite solutions?
if I were to, relatively speaking, arbitrarily assign x and y, and then progress...
then I could "know" 266
why do I get a "funny" feeling..
 
2:41 AM
you know, it occurs to me that if this attack works, you could not only produce collisions, but you could also decide the content of the colliding hash
 
I'm so bored that I'm actually considering studying biology right now.
also, my biology exam is on monday.
 
lol
 
I got tired of biology the day I found out there wasn't going to be a live demonstration to help us understand reproduction in humans.
 
3:17 AM
lol
 
 
1 hour later…
4:27 AM
hello best room
at least, best as of an hour ago
 
I'm still all-too-much present
 
oo, I totally missed a Lounge<C++> religious debate
@DeadMG how's breaking SHA2 going
 
mmh
run into a stumble
 
wassat
 
SHA-2 has 2270 distinct states
from the output, you can derive 113 of them- as in, you can prove they have distinct fixed values and what those values are
 
4:28 AM
mhmmm
 
but I'm struggling to move beyond those to the other states
 
is this beyond other work that has been published?
 
no idea
 
sec
has sehe been any help?
ohai @Insilico
nm b ye
 
 
1 hour later…
5:42 AM
@DeadMG You're using Prolog?
 
@Pubby Maybe it can figure out something I can't
 
IIRC it wasn't very good at equation solving
 
well, I'm kinda stuck
worth a shot
 
Mathematica I think can solve stuff, never used it though
 
apparently you have to register to try it?
I r less impressed
and of course, they want my life story
I hate companies like that
why do you want my phone number, Wolfram
or my address
 
5:47 AM
He wants to go out on a date with you?
 
anonymity -> important to me
what, and you want me to explain what I'm going to do with it during my trial?
 
Pirate a cracked version instead?
 
fuckin' thinking about it
 
Pirate it, then buy some Matlab licenses
 
certainly not going to "buy" anything
haha
turns out that GMail's spam filter is filtering messages from my Student's Union
fine by me anyway, they're all fucking pricks
fuck this, I am gonna use a damn torrent
fuck you Wolfram, I thought you were my friend :(
 
5:56 AM
> TCombinator is YCombinator for transgender founders, with more hand holding, proactive recruiting, and a social good focus.
Is it just me or is this redundant?
 
what, the dept of redundancy dept?
 
Yeah
 
MATLAB pulls the same shit
if you're a student they won't even let you try it, you have to buy their student-only version
 
I don't think MATLAB can solve equations
 
I know
torrenting mathematica now
 
6:48 AM
@Pubby it can actually solve linear equation systems
 
@bamboon Whether or not binary AND and exclusive or actually count as linear is another question
 
@DeadMG I actually meant Ax = B
 
@bamboon Kinda irrelevant, since I don't have that.
 
@DeadMG oh ok, nvm then
 
7:08 AM
@Pubby, @bamboon, I think there's a module somewhere that lets MATLAB solve general equations. If that fails, there's always WolframAlpha or your brain :P
 
 
2 hours later…
8:49 AM
weekend work sucks :(
at least it is nice an peaceful here
 
? why :)
0
A: storing line numbers of expressions with boost.spirit 2

seheI realize I noticed the question late, but let me add this anyway. I wrote a sample of an INI file parser in another answer: Cross-platform way to get line number of an INI file where given option was found This uses a 'simple' semantic action with line_pos_iterator. Here is the fruit of my ...

^ I need to look up the definition of the Necromancer badge again :)
 
fuck sake, spent ages trying to work out why I couldn't remote debug through eclipse, giving up and then working on having to add loads more logging. Turns out, eclipse just didn't auto switch to debug view when I started the debug. (╯°□°)╯︵ ┻━┻
 
Ouch
Tell me you aren't using java
 
on one hand I am happy that I was actually setting it up right, on the other, such a stupid thing to not catch
of course I am using Java, it's how I earn my pennys
 
:) life is tough
No sweat. I did my share of Java and (shhhh) I enjoyed it
 
9:04 AM
you best remove that before some one sees it :P
I don't hate Java as much as some people here. I can put up with it. at least I can make sense of it, unlike all the shitty processes that are used here.
lol, I was so close to asking some one here how to use an internal tool :P
AFAIK no one here uses Ericsson's OSS :P if any body does, I am truly sorry for you
 
@thecoshman There is no harm in asking. What's really dumb is wasting hours of company time trying to figure it out on your own when you could have just asked.
 
@sehe fair enough, by any chance, do you know how to un-import a BCG import file, so I can re-run the import whilst debugging it?
ooh, I didn't know there where orange M&M's
 
I used to want to figure everything out by myself (probably to prove my worth or something). These days when faced with a challenge, I set the 'mental kitchen alarm' at 10 minutes. If it takes > 10 minutes I must first talk it over with someone else to see whether someone already tackled it or we can be 'smarter' about it (avoiding the issue)
@thecoshman The easiest thing would be to (a) break before initial import (b) import the same file under a different name, so you can trace it
@ScottW of what? Canto ostinato? How many hours are there? I think the longest version I ever found was 42 minutes?
 
@sehe I try to do that as well. It's a bit of a skill I think to be able to confess to not knowing something and asking.
 
> The result of this for about two hours
^ Apparently I didn't quite catch the full version
 
9:12 AM
sadly, I already tested this import... can't seem to see how to get rid of... perhaps I can delete the 'job' and start over
 
@ScottW Oh nice. Link or buy?
@thecoshman Yeah, it's tough for some personalities. What makes it easier, though, is that I work in teams these days and people are finding me with their questions fairly quick. The ego boost that you get from being able to help someone else out, compensates a lot. Also, the habit of just venting is a social reward that helps anyways
@ScottW That's 1.57Gb in MP3 encoding?
 
I often find that I go ask some one, explain the problem to them, and that in it self makes the answer slap me in the face
 
@thecoshman That's the point. It takes you out of the tunnel and that alone is a good habit. You could also have a toilet break, but it is hard to rationalize a toilet break every 30 minutes or so
@ScottW Oh. I hate mp3 for hifi purposes. But I guess I could always buy if I wanted the extra fidelity
 
@sehe oh yeah getting up really helps. I rarely sit in my seat for more then an hour. Even if it's just a quick drink, really helps when you get back to the desk and take a minute to think what you were up to
 
@sehe Ogg Vorbis q1 is surprisingly good @ roughly 80 kbps.
 
9:19 AM
speaking of which, time to wonder
 
@FredOverflow Oh, MP3 is palatable at 320kbs too, but I'm fairly critical of the definition. I do hear the difference, especially with prolonged listening.
@thecoshman wander?
@ScottW I, to date, have exercised the inverse logic: I bought all the music I own/listened then, when I decided to digitize my library, I did download some existing rips (complete Mozart, complete Bach, complete Glenn Gould, complete Bill Evans etc.) to save time
 
@sehe :P both
 
But I find myself attracted to youtube albums of the pop classics (Beatles, Billy Joel, Michael Jackson, things like that) that I completely missed while growing up (go figure). And I started downloading albums instead of replaying them on youtube. Whenever they make it onto my MP3 player (read: flac) I buy them (online of course)
 
@ScottW me too, I like physical owning stuff
 
@ScottW +1 I have about 1200-1300 these days
Also, I might buy multiple versions of those albums/works I like. I have 3 complete versions of Wagner's Ring (and a video edition). I have 2 recordings of all symphonies of Shostakovitsh, 3 recordings of all string quartests, several Mahler cycles etc.
@ScottW Limited. About 60. including, again, all Bill Evans recordings on Riverside, rare collectible. Complete Chopin by Arrau, stuff like that. Oh, and Pink Floyd's The Wall/Dark Side just for the covers :) (I have the superaudio/DVD-audio remaster too)
? a G?
Aha. Agreed in that case
 
9:28 AM
where the hell is that slang?
 
In Australia, IIRC. BIDRCAA (But I didn't Remember Correctly After All)
 
@sehe does you use or 'IIRC' mean that you where still 'not-wrong'
 
Well, it could have been a valid business proposition. They skipped you as a potential buyer, but maybe they knew off-hand that you didn't have the right kind of money for it?
I sold all my stamps once. Now that I have kids I sort of regret it, but hey,... that's life
@RadekdaknokSlupik how many more to go?
 
@sehe how many more what to go?
Oh four. :P
 
@RadekdaknokSlupik Oh, obviously, you didn't have any on thursday/friday, silly me
 
9:31 AM
@sehe as in postal stamps?
 
Physics, English, chemistry and mathematics.
Pieces of cakes.
 
@thecoshman Those things they used to stick on envelopes back when people used snail mail to send private mail
@RadekdaknokSlupik Spacecakes?
 
@sehe jup.
A friend of mine makes spacecakes when he's bored. xD
 
@sehe I did extensive blind ABX tests a couple of years ago, and my ears cannot distinguish Ogg Vorbis q1 from the original. I thought they could, but the tests proved me wrong.
 
Chemistry never sat well with me, therefore it was /hard/ for me (it's one of the few subjects besides I skipped)
 
9:33 AM
@ScottW yeah, FINALLY.
 
@sehe so postal stamps :P
 
k I'm leaving. Have a nice day
 
@ScottW Yup, no more compulsory education.
Freedom! :P
 
@ScottW I'm totally addicted to buying CDs cheaply from amazon. They have theese "buy 3 for the price of 2" and "buy 3 CDs for € 15" specials. I can never resist those.
 
@FredOverflow the shops are worse, "CD's only £3, BOGOF"
 
9:37 AM
Transmission y u connect to only 44 of 90 peers.
 
@RadekdaknokSlupik because only 44 of 90 peers have something worth connecting to?
 
@RadekdaknokSlupik Transmission tends to clobber my Internet connection so that I can barely browse. I always have to restart my router after finishing downloads so I can browse normally again.
 
@thecoshman no, probably because my router routers suck balls.
@FredOverflow that's unfortunate.
Sometimes there are over two thousand peers and it only connects to 20 of them…
If I live on my own I connect my computer directly to the modem, without a router in between.
 
@RadekdaknokSlupik do you really only use on device that you want to connect to the internet?
 
What devices do I need else?
 
9:42 AM
@RadekdaknokSlupik consoles? phones perhaps
 
My computer can act as a WiFi hotspot for my iPhone if I don't want to use 6G (or whatever they have in six years).
 
probably still 4G
 
I don't use game consoles.
 
4G is only just being rolled out, and is fairly scaleable
 
But really, routers suck balls. They are almost as horrifying as printers.
 
9:44 AM
I wasted the entire yesterday trying CD rippers for Linux. They all sucked. Most wouldn't work, and the ones that did were terribly slow.
Gonna see if I can get EAC to work under Wine today.
 
no, trust me, work in the industry, 4G is going to be the thing for a good while, we might be seeing 5G by then, but I don't think so
 
@FredOverflow Tried VLC?
Also: don't buy CDs if you're going to rip them anyway.
 
VLC can rip CDs? Is VLC the emacs of multimedia? :)
@RadekdaknokSlupik Why not?
 
@RadekdaknokSlupik free routers that come from your ISP do suck very much so
 
@FredOverflow tutorial.
@thecoshman I'm willing to pay $1000 for a router as long as it doesn't suck.
 
9:46 AM
@RadekdaknokSlupik Does VLC support offset correction and AccurateRip? If not, I'm not gonna bother.
 
@RadekdaknokSlupik I'm not selling any today :P
 
@FredOverflow too expensive. xD
@FredOverflow I'm not sure.
 
@RadekdaknokSlupik I have no problem spending money on CDs because I like owning CDs.
Even if it's just to smell them. You can't smell MP3s ;-)
If EAC works under Wine, I'm gonna nuke my Windows partition with zeros. It's the only reason I still have Windows installed.
Oh, and Hardwood Hearts. I hope that works under Wine, too.
 
If you like owning the CDs, and ripping them is a pain, why don't you just both buy the CDs and pirate the music of the internet? Or do you really need to have them exactly as on the CD?
 
Yes, I need a bit-perfect RIP. I'm just that anal about it, sorry.
 
9:53 AM
Ah k.
 
I know it's stupid, but that's just the way I am.
 
Like I need to have them ID3 tagged correctly. :P
 
Even the capital letters need to be placed correctly.
@JohannesSchaublitb "Geil" is "horny" in Dutch.
 
9:56 AM
@JohannesSchaublitb Working out in the subway, eh? Way to go.
 
Aber ich spreche keine Deutsch. :P
keiner, keinen, whatever
brb
 
they say i'm nerdy. but I dunno what is nerdy about it :(
 
The fact that you are a programmer should be a hint.
 
10:17 AM
I'm going to reinstall Mac OS X. My computer is full of crapware I never use again.
 
Can I compile code and make it good if I don't have main() with GNU++?
 
@SerenityStackHolder make it good?
 
make it to work
 
You can compile without a main function, of course. You just cannot link it to an executable without certain linker options.
 
10:29 AM
On Unix systems, just don't link to crt0.o or crt1.o and it should be fine, or compile to a shared or static library. I don't know about Windows.
@StackedCrooked do you recommend MacPorts, Homebrew or Fink?
 
@RadekdaknokSlupik I use MacPorts.
 
I might install that as well.
I might not even need it.
I need to build boost using clang and libc++, but MacPorts' boost isn't up-to-date afaik.
 
I have .cproject and .project files What of them should I use?
 
boost @1.49.0
 
I need universal binaries built with libc++.
1.49.0 is the latest, cool.
 
10:32 AM
port info boost gets you that info.
 
@SerenityStackHolder I don't know. What IDE are you using?
 
This project is made, I suppose in Eclipse, based on the .cproject file, however I am unable to run it in my VS10
 
I'm afraid I cannot help you in that case. I know about nothing about Windows and Visual Studio. xD
 
All's orange now
 
10:36 AM
This is the app I am trying to build, however unsuccessfully in my VS10.
 
But I'm going to prepare for my chemistry exam tuesday so see you guys.
 
@FredOverflow how about cdex
 
10:59 AM
If anyone knows, would be good stackoverflow.com/questions/10664509/…
 
CDex is a CD ripper for Microsoft Windows. It convert tracks on a CD to standard computer sound files, such as WAV, MP3, or Ogg Vorbis. Released under the GNU General Public License, CDex is free software. , it is the 14th most popular download on SourceForge.net, with over 41 million downloads. It is developed and maintained by Georgy Berdyshev. It was originally written by Albert L. Faber. Features CDex is able to convert CD audio into several formats including WAV, Vorbis, MP3 (using the LAME encoder), VQF, Musepack, APE, and many others. As of version 1.70b2 FLAC encoding is nativ...
 
11:16 AM
@CheersandhthAlf The latest stable release is from 2003.
 
This is the best room.
 
Yay, ripped my first CD successfully with EAC under Wine. It was a lot of fiddling, but it worked :)
 
@SerenityStackHolder you can't just import an Eclipse project file in Visual Studio.
 
But I was thinking about mapping references from .cproject to .vcproj which is possible and easy to do if scripts are available, however to do that manually would require some time.
 
I have no idea if there are prewritten scripts, sorry.
 
11:29 AM
@SerenityStackHolder How much do you need to port over?
 
 
Essentially, why not just manually import? Are there literally hundreds of references?
 
hmm
Never thought Stack Overflow would have misleading ads.
 
@Aleks It's quite big, however half of the job is finished. I might go and make some script to automatically import .cproject to .vcproj some time later on.
 
11:48 AM
@SerenityStackHolder I'm kind of surprised that there are not many scripts already.
 
12:07 PM
Good™ Evening©
 
@tree ?
why am I getting increasingly retarded after every exam I take?
I wonder if I'll totally go bananas after the bio exam on monday.
anyone know anything to cheer me up? I'm so damn fucking bored.
 
you are bored?
do like soccer?
 
I don't think playing soccer in a 3rd floor apartment is a good idea.
 
@IntermediateHacker Sure it is!
 
12:16 PM
today is the most imporatant day in a soccer season
 
Fuck soccer seasons. cricket FTW.
 
@bamboon meh
 
@sehe meh what?
 
7 mins ago, by bamboon
today is the most imporatant day in a soccer season
Today is the most important day in the life of many fruitflies
 
@sehe nobody cares for fruitflies though
 

« first day (581 days earlier)      last day (4383 days later) »