« first day (830 days earlier)      last day (4136 days later) » 

12:00 AM
look
 
stop bitching, or I'll start binning your crying, too
 
You can look at it in all its glory
 
@Gopikanna then the non-move-constructor approach would be to sort an array of pointers and walk the pointers for your in-order walk
 
Also that move constructor is not even the solution
No, the ~approach~ is to use std::string
 
12:01 AM
Also, you shouldn't use leading underscores.
 
which already implements this functionality correctly and for maximum performance
 
room topic changed to Lounge<C++>: This is not a C++ room deal with it [c++] [c++11] [c++-faq] [get-out] [no-questions]
 
There are no questions? ejects off bridge
 
@CatPlusPlus in perfect-land maybe. maybe he doesn't want to go wrecking a bunch of existing code
 
The code is already broken
 
12:02 AM
@CatPlusPlus I was going to vote to shorten it to !Lounge<C++>: Deal With it. But I'm afraid 99% of people will miss the negation operator :(
 
That's why it doesn't work
Using char* is valid only for interop
Okay, not really, but lying to children and all that
 
@Rapptz C++ code with char* & strcpy? Why oh why...
 
!(Lounge<C++>: Deal With it) or !(Lounge<C++>): Deal With it
 
The latter
 
@Borgleader Maybe they're working with WinAPI.
 
12:03 AM
eehehe
 
(I don't know)
 
@Rapptz std::string can do that too
 
@Rapptz Still no reason to do it.
 
ok. pointers it is
 
@MooingDuck Yeah I know.
@Gopikanna Oh my god.
 
12:03 AM
@Rapptz std::string s; s.c_str(); problem solved
 
Yeah, don't listen to people who actually know C++
 
At the very very worst std::vector<char> will be enough for C interop
 
I really want that /ban
 
hmm, netbeans seems to have forgotten how to debug. excellent.
 
@MooingDuck Funny thing about that is, when I did "C with Classes in WinAPI" it was actually "C with std::string", string was the only header I really used because C-style strings fucking suck.
 
12:05 AM
@CatPlusPlus , but i need a fixed character buffer, whose size is decided at run time
 
@Gopikanna std::string can do that.
 
reserve?
 
@Rapptz resize
 
Guess what, if you don't resize it, it won't resize it
 
@Rapptz Ironically, I also raged against the Standard Library at one point- and then promptly duplicated it's functionality myself.
 
12:05 AM
also, I am using the buffer to dump hex values of int,long,etc...
 
but then I'd only been doing C++ for a very short time, and learned better afterwards
 
I don't even want to know
 
@Gopikanna so? std::stringstream can do that too
 
like using reserver
 
btw, cat
 
12:06 AM
Hold on!
Are you using rewritting itoa?
 
UB or bool return if you try to go over the edge of a range?
 
no.. sprintfs
 
@DeadMG UB
 
Well I wrote an itoa using std::string
 
@DeadMG Bool return where what
I don't like UB in general
 
12:07 AM
I feel like making a game.
 
@CatPlusPlus Like, if you would go out of bounds, then return failure instead.
 
Yeah, fine by me
 
Ok , here is the entire thing, pretty ugly
 
NO
damn it man
;_;
 
@Gopikanna you are a really slow learner
 
12:07 AM
welcome to the Bin, we've got fun and gayyyyymes.
 
So I can downvote and finally move on
 
lol
 
The requirement is to have one null terminated character buffer containing any number of short/long/char[]
 
Oh god shitty homework assignments
plonk plonk plonk
Oh hey, it's 1AM
 
12:09 AM
@CatPlusPlus QFT.
 
My stove timer says it's 0AM
 
@Gopikanna std::string can do that too
 
I should probably fix that
 
@CatPlusPlus 0AM GMT
 
@CatPlusPlus Which can probably be completed in no time with proper C++
 
12:09 AM
Or maybe I just sat here for too long
Welp
 
@CatPlusPlus is the chair butt-shaped, or is the butt chair-shaped?
 
@MooingDuck Neither, they're now a single entity.
 
@MooingDuck Both
 
/me came for the ass, leaves disappointed...
 
ok.. I get it.. I suck.. but any one willing to give some directions
 
12:12 AM
@Gopikanna go to chat.stackoverflow.com/rooms/549/bin they put the removed things there
 
Do you think prepared meat held in a fridge would be good after ~9 days?
 
Ell
I wonder if there is anywhere I can get someone to draw blood from me so I can bottle it
 
@CatPlusPlus noooo
 
depends on your definition of "good"
 
I don't see any molding fwiw
 
12:15 AM
@CatPlusPlus I think they have to be frozen if it's longer than 3-4 days.
 
Ell
9 days is too long :o
 
Yeah, okay, I'll eat just the pasta with no sauce and damn pickles
 
Ell
It's bacteria that's the problem, not fungi
 
If it's pasta sauce it should be fine.
 
Ell
12:16 AM
You could just risk it
 
I still have some walnuts
 
Ell
That's what I'd probably do
 
I've had pasta sauce like 14 days later and it was still perfectly fine.
:|
 
Ell
But that's like drugs
 
I don't have sauce
It's meat
 
12:18 AM
Oh.
 
@Rapptz But did it contain meat?
 
Yes
 
there was this one time I ate a meat product after leaving it in the fridge more than two days
since then I've been sick for two years
probably coincidental
 
definitely not because of the meat lol
sounds like post hoc ergo propter hoc.
 
heh
I said, it was probably coincidental ^^
 
12:20 AM
Well that meat was good after 4 days, but it's been almost a week since then so vOv
 
user142019
Yesterday I ate a meat (chicken) product that's been over date for two months.
 
user142019
It was frozen so still good. (Y)
 
It wasn't over date if it was frozen
You know those dates on packed meat apply only to hermetically sealed packages
 
user142019
BUT THE LABEL SAID SO
 
It mostly comes down to this: how cold is your refrigerator? If it's right at 40F, then their recommendations are conservative, but at least in the ball park. If (like many) it's cold enough that some things partially freeze at times (so it's really close to freezing) you can keep things quite a lot longer than they're saying.
 
12:22 AM
as far as I know, frozen meat lasts basically forever
 
I'm oversalting pasta water always ALWAYS
 
@Gopikanna I read your code, everything there can be replaced with a std::string object and std::stringstream functions.
 
@DeadMG Couple of months I think
 
@CatPlusPlus I've had frozen meat last much longer than that in unsealed containers.
 
user142019
Crisps can also be eaten when they are over date for like a few million years.
 
12:23 AM
@MooingDuck Is all the code doing returning a string based on bases?
I haven't seen it.
 
yeah, use std::string if you can. its a waste of time to do bare C strings
 
user142019
McDonald's Happy Meal is still edible after a year.
 
@Rapptz are you talking about Gopikanna's code? It seems to just be a way to concatenate a bunch of values as hex into a string.
 
@Zoidberg Little to no water AFAIR
Also they checked for molding not edibility
 
user142019
Who the hell eats a burger with water.
 
12:24 AM
?_?
 
I.. .what
 
user142019
!_!
 
lol what? he's talking about it rotting after too many days in fridge I think
water makes it rot?
idk lol
 
user142019
rotten.com
 
user142019
(don't go there)
 
12:25 AM
@doug65536 rot can't happen without water
 
yeah that was my guess too
 
@doug65536 I wasn't guessing
 
Yeah.. it's like a well known scientific fact lol
 
life needs water?
you pressing that as a superiority thing now?
 
moisture content of food determines its freshness and storage stability.
 
12:26 AM
what is a simple, simple C++ IDE for windows?
 
notepad
 
@CatPlusPlus vim isn't an ide, neither is notepad
those are just editors
 
woosh
 
ie, want to put a few libraries (openGL) in it, be able to make some classes, compile and run. That's really about it
 
12:27 AM
There's no such thing as simple IDE
 
user142019
@Crowz Vim
 
@CatPlusPlus I was trying to figure out how to say that, yes.
 
user142019
Or if you're a noob Sublime Text 2. Also good enough.
 
I use sublime text 2
screw you
 
@Crowz that's the definition of an IDE I think
 
user142019
12:28 AM
@Crowz Vim + Z shell
 
Wow.
 
@doug65536 Integrated Development Environment consists of a source code editor, build automation tools and a debugger.
 
I've come back to one rampant starboard. o_O;
 
@MooingDuck Sure, but there's plenty of water inside the meat. Not all bacterium cannot act below freezing.
 
yeah I knew what it stood for. no need to "help" me
 
12:29 AM
@Zoidberg is Cygwin any good? I use it for general purposes but I want to customize it more
 
user142019
Do I know. I don't use Windows.
 
what?
 
@Crowz What
 
@CatPlusPlus Cygwin has vim and gcc
 
cygwin is not an IDEA IDE, but it wasn't a very well done idea either.
 
12:29 AM
@Crowz and gdb
 
user142019
Use gvim.
 
@MooingDuck I actually wrote an IDE + source level debugger a few years ago. did a gcc->win32 PE linker postprocessor tool
 
@Crowz They're like, not related, at all
 
@Zoidberg what's special about gvim?
 
Let's talk about something else
 
user142019
12:30 AM
Time to sleep.
 
user142019
See you tomorrow guys.
 
user142019
I need to think of something new to bash tomorrow.
 
I've noticed that I tend to pick up long-ass shows to watch at the end of semesters
When I should be doing projects and stuff
 
Implicit stress relief.
 
@MooingDuck debugger did everything up to but not including evaluating arbitrary expressions in the watch window
 
12:31 AM
long-ass shows accumulate at the end of television seasons
 
Last January it was Buffy
This one is Friends
 
and those seasons are based on the weather seasons- as are semesters.
so they're naturally synchronized.
 
Though that's like, a week shorter
 
You should pick up Scrubs next
it was a good show.
Minus the last season I guess
 
hmm
I'm running low on TV shows
 
12:32 AM
I don't know, medical shows don't really interest me
 
a lot of the ones I used to watch, like Chuck and Leverage, are cancelled/run out.
 
it's mostly a comedy
 
now all I've got is White Collar, Castle, Dexter, Homeland, Nikita, Burn Notice, Covert Affairs, Breaking Bad... probably one or two I forgot.
 
I don't watch a lot of TV.
 
Breaking Bad
 
12:36 AM
whoa.
My division is accurate.
The example in my issues list actually works fine
o.O
never mind :(
got lucky again
 
for(BigInteger x=1; ;x *= 2) {
    for(BigInteger y=1; y<=x; y*= 2)
        std::cout << (x/y) << ' ';
}
 
Are you guys still trying to write that biginteger library?
 
"dontpostbadcodehere"? I better leave
 
yeah, don't use what I wrote, all tests with powers of two is a stupid test set
 
Hey, anyone feeling like having a chat about disassembling? :P Wondering about few things.
 
12:41 AM
@ThePhD I wrote one, I just want to get division working properly.
 
Hm.
Maybe I should take a crack at it.
 
Sure.
 
Albeit when I wrote my working VP Integer Implementation,
 
8
Q: (0.3)^3 == (0.3)*(0.3)*(0.3) returns false in matlab?

NickI am trying to understand roundoff error for basic arithmetic operations in MATLAB and I came across the following curious example. (0.3)^3 == (0.3)*(0.3)*(0.3) ans = 0 I'd like to know exactly how the left-hand side is computed. MATLAB documentation suggests that for integer powers an 'expon...

^^ lol people can't read
 
That seems like a duplicate.
 
12:43 AM
it was A) Fixed Point (compile-time maximum digits) and B) BCD notation, not binary unfortunately.
 
You can see my implementation (it's a deque of values)
 
The deque's represent binary or BCD?
 
@Mystical are you sure there shouldn't be used anything like pow(0.3,3)?
instead of binary like shuffle?
 
bro it literally is an array of numbers
like {1234,5678,9000}
 
... Soooo.
That represents 123,456,789,000 ?
 
12:46 AM
no it represents 987654321
they're reversed.
also the 9000 would be 9,0,0,0
 
should there even be that many trailing zeroes..
 
You mean 0,0,0,9 ?
In string-format, that is.
 
in the deque it would be {1234,5678,9,0,0,0}
 
Ah.
 
12:49 AM
guys, is there a way to convert from const char* to char
 
@JuanAntonioOrozco copy it, or very rarely const_cast is safe
 
const_cast right?
 
@doug65536 if it's safe
 
Do you do trailing-zero removal?
 
yeah, its an override, use appropriately
 
12:50 AM
yes
I call it normalize
 
Ah.
 
@Rapptz: I confirmed my test compiles, and is less than a hundredth of a second for long long up to 0x0FFFFFFFFFFFFFFF: ideone.com/VPMnuy
waaaaiit, that definitely devides by zero...
fixed. not sure why ideone didn't catch that
 
Guess I gotta check out Rapptz/gears/BigInteger
@Rapptz Can I check it out into RapphD?
 
uh k
added
 
12:56 AM
:o
You did it for me! <3
I wubs yoou.
 
lol
 
anyone know why I wouldn't be able to .load any of the sos.dll on my entire hard drive when 32-bit windbg of 32-bit iexplore.exe running a silverlight page? with .net 4.5 on my sys
 
@doug65536 I have no idea what you asked, so no
 
meaning - !dumpheap fails after every .load (whether the load actually worked)
and .unload after each test
 
I don't even know what you're talking about.
Is this assembly?
 
12:58 AM
trying to debug managed code through windbg attached to iexplore running silverlight using sos
 
@ThePhD no, sos is a .net thing (I googled it)
 
I love my new Sublime Text 2 theme
the colour is so pretty.
 
I'm trying to do that because it easy to automate tracing to logs that way
 
@Rapptz Did you ever get SublimeGDB working?
 
pumping stacks at every call to some specific function to investigate for example
 
12:59 AM
No. Fuck SublimeGDB
 
Tee hee.
 
I just use VS2012 to debug
 
Hm.
For when there's only one item in the deque,
You'd just have to do one division.
 
yeah sos is a not-that-great debugger extension that gives you some managed code debugging ability in microsoft's windows debugging tools
 
@ThePhD Uh, I already account for that.
 
1:04 AM
(If both items only have 1 item in it anyhow)
Now let's take the case of 2 items / 1 item deques.
To start, you'd do division on the higher number with the smaller number, right?
 
@Trouble It's matlab. Not C.
 
I haven't tried reciprocal multiplication yet.. :|
Mostly because the idea seemed silly.
and obviously wouldn't work
 
Oh... he's been downvoted to -5 now.
 
... These are integers, not floating point. o_O
 
Exactly.
I'm just thinking out loud.
 
1:06 AM
Probably doesn't realize that he can delete his answer.
 
Gahhh help me -- I've fallen into an infinite loop of watching Tim Minchin videos
 
@MarcusStuhr You could help me with this division thing :D
 
Is there any (free) way to prevent programs like ILSpy from decompiling my program's source code?
 
lol
 
executable*
 
1:12 AM
@Alec not really, no.
 
Is it .NET?
 
Free or not there isn't afaik
 
because I'm pretty sure .NET is easiest to decompile.
 
@Rapptz Yes, because I want to use WebClient. I tried using Libcurl but I got really frustrated when I couldn't get anything to work with it.
 
read above :P
 
1:14 AM
;-;
Libcurl is a horrible task to figure out how to use.
I spent 4 hours today trying to get it working.
Meanwhile WebClient took me around 2 minutes to figure out.
 
awww yeaaa 89,999
 
Now go undownvote something
Or wait. That won't do anything since you're always repcapped.
 
1:31 AM
why is it so amazing?
 
It isn't
especially considering this is just a CGI trailer
 
1:44 AM
You guys are lame.
>well done cgi
 
The CGI is good, but it says nothing about the game. I rather see a gameplay trailer.
 
TIL std::iota
 
It's an MMO, what else do you need to know
 
What the ingame graphics look like, what the battle system looks like, how the story is handled inside the game, is there VO, is there PvP and how is it done, what kind of social features (guilds, ...) are there. Is it one mega servers (à la Eve Online) or is it replicated server (à la everybody else)
CGI trailer tells me none of that
 
@MarcusStuhr yeah, it's new in C++11.
 
1:52 AM
pretty sweet
 
@Borgleader It's an MMO
It's a WoW clone
 
@CatPlusPlus You're a cat.
 
It's like a 90% chance of that
 
I'm checking in case it's the 10%
 
@Borgleader CGI trailers are awesome. I've wanted to work in cinematics ever since I was 8 because of Warcraft III's
 

« first day (830 days earlier)      last day (4136 days later) »