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

user1804599
Ell
Ell
00:25
@rightfold UK but in swiss for weekene
Night night anyway
01:01
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
01:21
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!
01:37
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
drugs
fine choice
subtle, educated yet intelligent
01:41
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?
01:44
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
01:46
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
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
01:56
@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.
01:59
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
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
02:04
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?
02:08
er
no..
iconv_library has 23 extra lines of output
:/
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
02:11
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
I don't know if this is needed
02:13
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)
02:27
@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.
02:28
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.
02:30
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.
02:32
@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
02:36
@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
02:39
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?
02:40
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
02:43
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
02:46
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
03:34
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
03:36
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
03:38
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
03:41
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
@tom_mai78101 how did you install your compiler?
tl;dr: Use Mingw-w64 not MinGW
03:45
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
03:48
Thanks @Rapptz, your top answer really nails it.
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
03:49
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
03:50
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
he can't use SEH
03:50
rip
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
03:51
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.
03:53
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?
03:55
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
03:57
@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
03:58
@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.
03:59
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 (3731 days later) »