« first day (1443 days earlier)      last day (3507 days later) » 

user1804599
 
Ell
12:25 AM
@rightfold UK but in swiss for weekene
Night night anyway
 
1:01 AM
Howdy.
I once again find myself at the Friedrichstraße station and once again can't find the fucking way out.
Shoot me already.
 
Forgot to update your GPS firmware did you?
 
There's no GPS underground or inside the building.
 
oh that explains it :P
 
1:21 AM
Today at the supermarket checkout, there was an Asian family in line in front of me with a shopping cart full, and I really mean full, of only chocolate.
 
Evening
 
@R.MartinhoFernandes If they're Korean, they might have been preparing for Hangul Day!
 
1:37 AM
BOOYAH!!! Just won $4k on video poker!
 
@Rapptz what's with all that chocolate, though?
We're talking kilos here.
 
yes. kilos
 
@CaptainObvlious gratz
what are you going to spend the money on?
more poker?
 
hookers
 
hookers
drugs
fine choice
subtle, educated yet intelligent
 
1:41 AM
they payout is guaranteed lol
 
Spend it on chocolate.
 
hmmm. chocolate covered hookers. I like that
 
And asians
 
@R.MartinhoFernandes I was mainly joking. Huge family reunion?
 
1:44 AM
maybe they are from under deverloped countries in Asian & about to smuggle some chocolates in?
 
maybe some coke covered chocolate Asian hookers.
 
ignore goofy pictures =/
 
closing my eyes and listening
 
can you make cocaine from chocolate? ... easier to make it from coca powder right?
 
@chmod711telkitty yes, just like you can make Javascript from Java beans
 
1:46 AM
I've always loved Fugue. Goes back to a version done in the mid 80's on a program called Musica on an 8bit 1.87mhz machine.
 
@nightcracker can you make javascript from java?
 
@chmod711telkitty yes. but it's a bitch
 
@chmod711telkitty it's a trade secret, doctors hate it
 
ok the schwarzenegger nazi penis salute was a bit much.
 
as I said
do not look at goofy pictures :P
 
1:49 AM
lol
 
the music is good (IMO)
 
not really an electronica kinda guy but this is very nice
 
ok I giggle'd at this one:
 
lol yeah I tried not to laugh but after 6 shots of single barrel jack it's hard not to
now I'm gonna have to find some good Vivaldi tonight
 
> Vivaldi
 
1:56 AM
@VáclavZeman 'Starboard' and 'port' are just the same as right and left.
Starboard is your right when facing the ship's bow, and port is your left.
 
This is due to the strong hipster community that expressed outroar over the plebsian usage of "left" and "right".
Thus the new terms were coined.
 
fuck hipsters. seriously. they suck.
 
I am having a hard time turning EUC-KR to UTF-8
:(
 
hipsters are like 90% of the questions on SO lately. They suck.
 
@Rapptz Why?
 
1:59 AM
It breaks on me.
Since iconv (the program) works, I guess I have undefined behaviour somewhere :/
 
@Rapptz ick. Are you using straight standard libs or third party as well?
 
standard libs converting unicode?
you crazy?
of course 3rd party
 
I was using libiconv
 
hmm
I think I need to change something somewhere in how my terminals are named
 
lol was about to search for hookers on my work laptop. duh
 
2:04 AM
I think I'm just shit out of luck
 
code looks ok. not a whole lot of room or error either.
 
@Rapptz how does it fail?
@Rapptz no errors but garbage output?
 
look at the output
yeah
 
iconv_library and iconv_program seem the same to me?
 
2:08 AM
er
no..
iconv_library has 23 extra lines of output
:/
 
oh
that
 
I don't see any problems with the code
 
FWIW I tried rewriting the function to not have a const_cast, i.e. raw_bytes& bytes but that didn't do anything.
 
I see a very glaring issue
 
?
 
2:11 AM
a lack of hookers?
 
iconv returns the number of characters written (or -1 in case of an error), but you do not use this information at all
 
line 12
 
yes
you check for errors
but you do not actually null terminate the string
using the number of characters written
 
oh
 
I don't know if this is needed
 
2:13 AM
maybe
Let me check
 
in particular
*out_ptr will be incremented as it outputs data
so probably doing *out_ptr = '\0' will guarantee null-termination (beware buffer overflows)
 
2:27 AM
@Rapptz and?
 
Quick question:

I have a Foo object with a private int. I iterate in a loop 5 times pushing this same Foo object back into a vector<Foo>, while incrementing the int. Once the loop has finished, I checked my Foo to see that they are the same.

True or False?
 
That doesn't even make sense.
 
I go with the third option: bullshit question.
 
@nightcracker I'm still writing things.
 
Given 3 flying goats with AIDS, how many carrots will Keith Lemon inject into himself? That's about as valid.
 
2:28 AM
Hence I asked for True or False.
 
@tom_mai78101 there is no question in there
 
It's asking for True or False.
 
True or false means nothing. What's true? What's false? Have you tried finding out yourself?
 
Quick question:

I have a turd that doesn't smell nice. I flip the turd 5 times, while trying to ignore the poop that comes onto my hands while doing so. Once the poop is dried out, I checked my hands and they are dirty.

True or False?
 
Yes I did. Using GDB in command line, and I have no clue as to how to use it.
 
2:30 AM
Then learn how to use it, it's an invaluable tool.
If you have a specific problem that you've tried to solve yourself, come back and I'll be happy to help.
 
Shit, when dried, is like mud. Therefore false.
Ok, Question to @OMGtechy : How do I obtain local variable info of a vector element in GDB on Linux?
 
@tom_mai78101 what have you tried so far?
 
By that logic having dried up poop on your hands would be fine while eating - they're not dirty hands after all.
 
info locals
 
I'm guessing google isn't one of them.
 
2:32 AM
@nightcracker If you have seen Mythbuster's Polished Poop, you'll see why.
info locals only gave me the properties of the vector, but not the vector elements.
 
Have you tried adding a print statement to find out?
 
I'm not sure of the syntax of print. If you are using pointers, do I use print (*ptr)?
Trying it, still aren't sure why...
OHHH
Nevermind.
 
light bulb moment
 
Light bulb just broke itself due to immense heat and light.
 
hahaha
 
2:36 AM
@tom_mai78101 I think what you need is a basic C++ book, not a chatroom filled with people with years of experience.
@tom_mai78101 You'll have a hard time to decipher the hints we'll try to give due to a lack of reference frame, and we'll get bored to death.
 
^
 
You're right. If only there's a rule stating that "only experienced C++ programmers allowed", then I would've heeded that as a warning.
But, GDB isn't C++.
 
We are quite aware of that.
 
Yes, so nevermind. Let's move on, and paint some happy trees.
 
@tom_mai78101 from the rules newbie hints:
> The Lounge is one of the (if not the) most active rooms on Stack Overflow. As a result, we got lots of people who rushed in here to ask for help thinking they'll get their answer more quickly than on the main site. At first we were happy to help, but after a while, many regulars got quite jaded, and now the usual reaction is "go away".
5
 
2:39 AM
Despite what the (unfortunate) name says, this room's topic is not C++, it's a Lounge.
 
std::Lounge<C++>
 
std::just_no();
 
I wished I can change the name to C++. Simple and easy.
 
@nightcracker It seems to be returning '0'.
 
@Rapptz well, that isn't good is it?
 
2:40 AM
no
 
@Rapptz check the input sizes you give it?
 
the input is 100% correct
 
It could be an implicit conversion from char to int (if it's the number 0)
 
your interpretation of the error code isn't though :/
The iconv function returns the number of characters converted in a non-reversible way during this call; reversible conversions are not counted. In case of error, it sets errno and returns (size_t)(−1).
it's not characters written
just characters translated, not all of them have to be translated
 
oh
what does out_ptr - to_bytes(result) print?
if I'm not mistaken that should say the number of bytes outputted
 
2:43 AM
Wow, this advert is convincing.
 
that'd do it
 
@Rapptz ?
 
it works now
I don't have to write a null terminator though
it seems like it does that for me
 
then what did you change?
 
result.resize(out_ptr - to_bytes(result)); // trim
 
2:46 AM
eehm
raw_bytes are not assumed to be null-terminated?
 
I add the null terminator if result.back() != 0x00
 
ah ok
well, my intuition was right then :P
(some size being ignored)
was wrong about it being the return type though
 
yeah, thanks for that
 
3:34 AM
Um, can I now ask a question that I don't understand for C++11x?
 
what's a C++11x?
 
ok, you probably don't know this
but never post screenshots of code/terminal dumps unless the situation calls for it
 
Oh.
But the problem is in the terminal itself.
 
and if you look at the documentation for std::stoi you'll see at the top that you need to include the header <string> to use it
 
3:36 AM
Which I highlighted in the image.
 
@tom_mai78101 on windows you can hold shift and drag to copy/paste data from the terminal
 
OHHH, well, there goes another light bulb.
 
also if you want to make your learning experience easier
don't start programming on windows
do it on linux
 
I can't! My 2007 office laptop doesn't support virtualbox.
 
everything makes sense on linux, on windows there is so much boilerplate cruft you need to learn about the entire C++ toolchain before you know what's going on
@tom_mai78101 virtualbox?
@tom_mai78101 just install linux
 
3:38 AM
Oh.
 
I'm using linux right now to chat here
 
So... I won't be able to know why including <string> still won't call on std::stoi()?
 
> still won't call on
this makes no sense
 
I mean, the GDB said stoi() isn't in the std namespace, even though I have already included the <string>
and have set g++ the flag std=c++11x
 
1. it's not GDB that said that
it's g++, which is a different program
2. it's c++11, not c++11x
 
3:41 AM
Mistake, typo again.
Thanks for the clarification.
 
3. are you sure you included <string> in ResourceManager.cpp?
not just anywhere
but in that particular file?
 
Yes.
And in the header files that go along with it.
With the include guards all set.
 
I need to see the code
not a screenshot
 
Gladly, please wait.
You need all of the code?
 
resourcemanager.cpp
 
Go on my profile.
Go to my highest voted answer.
There's your answer.
I'm too lazy to do it
 
oh there we go
I told you windows was fucked up :P
 
Oh...
 
@tom_mai78101 how did you install your compiler?
 
tl;dr: Use Mingw-w64 not MinGW
 
3:45 AM
Sorry, I'm on a 32-bit laptop.
 
MinGW-w64 - GCC for both 64 & 32 bits Windows
don't make assumptions ;)
 
@nightcracker I install the compiler using Cygwin-x86, and just downloaded the recommended package.
 
4. Cygwin is aids
 
I didn't check much, I only recalled that I installed g++
I can't help it. I'm sorry for my poor poor situation.
 
it's not your fault
it's the status quo of c++ development under windows
there's a lot of misinformation, broken packages, subtle toolchain issues all of which a beginner can not debug, understand or detect
 
3:48 AM
Thanks @Rapptz, your top answer really nails it.
 
np
 
unless you use visual studio, in which case you get a smoother experience
 
I had this issue when I was starting out with C++11 too.
 
but then you're stuck using VS
@tom_mai78101 I'd suggest you to deinstall every C/C++ compiler related thing you have
including cygwin
 
uninstall
lol deinstall
 
3:49 AM
right
 
Whuat??
I'm speechless.
 
installing MinGW-w64 is incredibly easy.
Like, so so so so easy
 
You literally just extract a .7z and add it to your path.
 
@Rapptz not true
@Rapptz you still have to make the right choices
@Rapptz about which threading, exception stack unwinding, etc
 
3:50 AM
Oh I see.
 
@Rapptz all decisions a noob can't make, which is terrible, because they're still forced to make them
 
sure sure
go with POSIX threads and SEH exceptions
 
no
he's 32 bits
 
oh
 
he can't use SEH
 
3:50 AM
rip
 
SJLJ
 
yeah SJLJ it is
 
but see what I mean?
no fucking noob ever could get this right, and it's not their fault
 
not really disagreeing
I still think it's piss easy
not for a noob or anything
 
once you've been shown the way or seen the light
it's easy
 
3:51 AM
also it's 2014
Why are you still using a 32-bit OS?
 
No money.
 
How old is the laptop?
 
2007.
March, I think.
 
x64 has been standard in Windows since Vista
 
But Vista came out in late 2006, so at the time, there's still 32-bit Vista.
 
3:53 AM
January 2007 apparently.
That's a lot younger than I thought.
 
Oh...
Where did I get the impression that Vista is 2006?
 
Vista had a shorter lifecycle due to it being so shitty?
Released to
manufacturing November 8, 2006; 7 years ago
General
availability January 30, 2007; 7 years ago[2]
 
Ah...
Anyway, I have the earliest laptop available.
 
Vista was my first 64-bit OS.
I remember buying laptops back then they'd have to be advertised as 'Vista Capable'
 
@tom_mai78101 what do you use your laptop for?
 
3:55 AM
Does your laptop still have a 'Vista Capable' sticker?
I noticed Windows 7 dropped the trend of putting stickers on hardware.
 
No Vista Capable.
Just plain old Windows Vista.
 
looked like this
 
@nightcracker I use it for many things. Blender, 3D modeling, multimedia, programming, browsing on the internet, etc.
 
my suggestion would be to back all data up that you want to keep
 
3:57 AM
@Rapptz quality software right there
 
wipe the hard drive
install Xubuntu
 
or hardware
 
cry because Xubuntu is ext4 and your hard drive is using NTFS partitions
nah I'm kidding
 
@Rapptz did you really
 
back up the data in FAT32 and you're good
 
3:58 AM
@Rapptz just say that the hard drive is NTFS?
 
@nightcracker wording is too long to be pedantic tbh
 
That's my sticker.
 
it ruins the joke
jeez man
 
Just plain old Windows Vista.
 
3:59 AM
it's got that dried sperm coloured plastic
 
Yes, look how much I cared for my baby.
 
straight out of the 80s
 

« first day (1443 days earlier)      last day (3507 days later) »