« first day (853 days earlier)      last day (4096 days later) » 

2:00 AM
@MarkGarcia And in assembly. What's your point?
 
Ell
It's not simpler in assembly
 
He didn't say it's simpler in C++.
 
Ell
And not really, you don't create objects in assembly
 
@Ell No GC. All objects allocated on heap. Explicit object lifetime management.
 
Ell
Oh sorry, I misread
 
2:01 AM
@NolwennLeGuen I do not mean simplifying things is bad. I just mean they can be done in a language that can do and is even well suited for those tasks.
 
@MarkGarcia C# is not exactly about simplifying, it's about being more productive.
 
@NolwennLeGuen Same thing. You simplify things, you get the illusion of being more productive.
 
Productivity through simplicity, slightly reduced functionnality, great reusability.
 
Ell
Yeah c# feels more productive
 
@MarkGarcia You don't get the illusion. There are figures that back that. You can find those.
It is more productive.
 
2:03 AM
I was going to show some code I wrote for the robot but pastebin is being a dick
 
Ell
use pastie
 
in any case here's what I mean by "concise yet clear code":
element.Weights = line.Split('.').ToList().ConvertAll(x => Convert.ToInt32(x, 16));
 
The ToList is superfluous
 
You sure? the split returns an array which i believe doesnt have the convertall method
I could check though
I just checked it indeed doesn't have the ConvertAll() method
 
Oh I'm pretty sure it does have one
Oh wait
It's a static method
Nevermind!
 
2:10 AM
I think it was a sudden attack of trolling. That's the problem with that disease - it's relapsing/remitting.
 
Trollitis.
 
Chronic Trollitis.
 
nah
just fragments of memories bubbling up to the surface
i thought arrays had a ConvertAll method
it's the Array class that has one
 
What? You actually made an honest mistake? You're slipping, badly...
 
It's a feature related to introspection.
 
2:17 AM
It happens even to the best of us. (Myself, for example).
Neighboor still listening to stupid music at full volume
 
What is everyone's view of the Patriot Act as coders? (kinda random... ik!)
 
> USA
Stopped reading there
 
Ell
I like reflection
 
Kinda random to have here a guy with a python logo.
 
Ell
I'm going ti write a GUI programmer :p
 
2:20 AM
@MarkGarcia Fred overflow has the Haskell logo :P
 
haha
 
SO RANDOM
 
Ell
So you can have boxes representing functions and arrows to tell parameters to go places
 
@NolwennLeGuen If their amp etc. is on a table against your wall, a microwave oven with the door interlock defeated is a useful tool. Check the fire exits first, just in case..
 
@Borgleader But he has a python logo.
 
2:20 AM
@CatPlusPlus O POLSKA U SO RADOM
my only polish pun
 
@MarkGarcia I kinda like python actually. For small scripts
 
It's so random it's probably not even uniformly distributed
 
dat pun
 
@Ell WOW. Greatest feat for humanity that is. Much more advance than to model human behavior.
 
(I'm making fun of you fyi)
 
2:21 AM
You're too obvious
 
I should go to sleep
But I'm torn
 
@Borgleader I don't think you understood it.
 
Do you need stitches?
 
@NolwennLeGuen His joke about random and uniform distribution
maybe pun was the wrong word for it
 
Oh that
 
2:23 AM
Pole dancing...
 
In the rain
 
And after a little "define: radom" on google. Yeah I think I get yours too
 
I'm glad
Such a quality pun
 
Ell
my bros gf does pole dancing
 
@Borgleader "A city in central Poland; pop. 228,000."
 
2:24 AM
@NolwennLeGuen It's terrible btw
 
I just googled it, no need to paste that -.-;
 
Element 86
 
@CatPlusPlus I knew that already
 
I feel obligated to point it out
 
Ell
Argh damn, party excitement has lead me to not care about an exam
 
2:25 AM
But it's probably the main reason why I enjoy it
 
@Borgleader I thought you meant "random". Soorrry.
 
No, that's where the pun comes from :P
 
ohnoes what have I walked into
 
Sounds like a good party.
 
The room
 
user1357851
2:26 AM
Pole dancing you say?
 
It's white
 
user1357851
 
A bad place with bad puns.
 
I think I might just go to sleep before this room turns into a strip tease club
 
And there are no sharp objects anywhere nearby
 
2:27 AM
Oh a sloth. False alarm.
 
@Collin Idk... apparently Ell's bro's gf is a stripper
 
room topic changed to Lounge<C++>: Seriousness not allowed. [c++] [c++11] [c++-faq] [no-helpdesk] [no-sanity]
 
Stripper!=pole dancer
 
Slut
Sorry, did I just say that
 
Although strippers do sometimes pole dance
 
Ell
2:28 AM
Pole dancing is very good for health
 
..unless the dancer loses grip on the pole.
 
@Ell lol
 
@MartinJames Statistical probability
 
Look, another macho argument like the "getting naked and showing your tits is good for health" one
 
user1357851
pole dancing is great if you don't have a dancing partner :x
 
2:28 AM
It's good for your wealth.
 
@Telkitty I disagree.
 
Are you saying poles do not make for great partners
 
user1357851
@MarkGarcia how so
 
..kinda depends on their length and shape.
 
@Telkitty Just as what @NolwennLeGuen said. ;-)
 
2:29 AM
Now I really gotta sleep!
 
@MartinJames Don't!
 
Ell
@nolwen I didn't mean stripping haha, I meant just the dancing part
As in, its good physically
 
I didn't mean to make sense, you know
 
No, I really have to. I've got some stinkin' virus, (the organic kind), and I'm getting tired. Nose in fire-hose mode.
 
Ell
Also fuck shit fuck fuck I'm about to fail an exam and I'm having a panic attack
 
2:32 AM
@MartinJames Are there non organic viruses out there
 
Heh! Nice try. I'm only concerned with the RNA-with-protein-coat ones at the moment.
 
user1357851
@Ell never panic, last minute cramming always helps
 
Ell
I think I'm going to throw up >.<
I've never been so unprepared for an exam
 
It's an exam
 
@Ell That's normal.
 
2:34 AM
@Ell Think a bit
What's the worse that could happen?
You die
That's all.
 
I've never failed any exam I have taken in my life. Those I knew were hopeless, I just didn't bother turning up.
 
No need to panic.
 
Ahahaha
I literally haven't spent more than an hour preparing for an exam in years
I have no idea how I ended up with the previous version of this sentence
 
History - no show. Wave mechanics, no show. Statistical methods, no show.
 
2:36 AM
@Ell It's a good thing to panic now! You'll end up calm later.
 
user1357851
@Ell why do you have an exam in feb?
 
I love this ghost
 
@CatPlusPlus It actually made sense, you know
 
image not found
 
@MartinJames Wouldn't you have by default failed the ones you didn't even go to? And wouldn't it have been better to get a few points rather than 0 points?
 
2:36 AM
@NolwennLeGuen I don't know it was weird and let's not talk about it ever again
 
Fine. I'll mention it tomorrow.
 
Joke's on you
 
@Collin Semantics.. Why bother wasing three hours on uninteresing crap that you are certain to fail. Better spent on revising for exams you stand a good chance of passing.
 
Three hours?
Those exams I finish in 15 minutes and go home
Unless they actually make you sit there doing nothing then ahahaha
 
Well, why bother turning up?
 
2:39 AM
Because not doing so is instant fail
At least here it is
 
To get the questions duh
 
Must be getting tired. Can't get this to compile.
 
Well, I suppse it depends on whether the fail matters, yes.
 
And then show up on retake and know the questions because education is shitty and people teaching are lazy as fuck and usually go on the same questions for years~
(And you're probably a scrub for not getting the questions earlier)
At least that's how it works here
 
user1357851
I think it is compulsive for me. I 'need' to turn up. Besides I have only ever failed one exam. I took too many subjects, more than anyone else in the same year. And I was an last minute person. Imagine you have 7 books to remember in 3 weeks time.
 
2:42 AM
Ahahaha books
 
'Server-Side Scripting for Dummies'
 
I can't be bothered to read tldrs
Let alone books on the subject
Boring as hell books about CS
I have better things to do
 
user1357851
you are like my friend, who kept on falling asleep on the 1st page of of some cs book
 
user1357851
bedtime reading >_<
 
Getting the book in the first place is already :effort:
 
2:44 AM
You can get CS books on prescription for insomnia.
 
@StackedCrooked Any ideas? typedef still doesn't work.
 
user1357851
only if you are not into CS books :x
 
I can't see how you could be into CS books
Especially purely programming ones
Ugh
@StackedCrooked Watchya doing
 
@CatPlusPlus Trying to use result_of<>.
typename result_of<decltype(&foo)>::type // is not accepted
 
You're calling it on a function pointer
 
2:46 AM
@StackedCrooked Isn't it result_of<foo_type()> that you want?
 
My current insomnia prize goes to 'XML and WebServices' by some random Germans. I opened it once when sitting outside in the summer. I got sunburnt.
 
@CatPlusPlus How should I use it then?
 
user1357851
It is what it says ... pass in T *t or something
 
I'm off to bed - an attack of actual C++ has set in.
 
2:49 AM
T*t?
 
user1357851
parameter func(T *t)
 
user1357851
type followed by variable name?
 
What would the actual code look like?
 
result_of<decltype(foo)>::type should work but apparently it doesn't so dunno
 
std::result_of<int()>::type also doesn't work
 
2:53 AM
Oh no, wait
 
Seems to work only on function objects.
 
I don't know
 
What's the expected result anyway
 
You can use decltype(foo()) anyway
 
2:56 AM
main.cpp:21:54: error: expected a type, got 'foo()'
^ Funny
 
rename to poo
It's even funnier then.
 
@Ell in my version the iterator merely keeps a pointer, though another version might not.
 
Ell
Oh okay
 
3:24 AM
@MartinJames Because bad grades in college instantly turn me off to your resume
 
Ell
agj can't sleep
 
3:51 AM
@Ell study much?
 
Is it safe to use a static_cast to downcast a reference?
 
Ell
If it is what you cast it to. Idk xD
I didn't know you could do base -> derived with static cast
 
You guys seen UpsideDown lately?
 
Ell
Nop
 
Could you try finding his profile?
I can't find it will all those characters
 
Ell
3:58 AM
I'm mobile atm and its too early in the morning :L
 
lol
how much rep does he have?
 
Ell
For shot chess
I'm think alcopops for everthing but queen king which are goods
*vodka
That sound good? And Erm no idea
I don't even know who you're talking about xD
 
lol
I'll check transcript
 
Yes, wrong room OOPS
it was JS room
in JavaScript, Feb 5 at 2:36, by uʍop ǝpısdn
the first character is just a 'u'
 
4:03 AM
@CCInc That's the trick: an upside-down n is a u.
 
OH I see!
I see now!
 
An upside-down f is a... Unicode character.
@CCInc BTW, I found him by searching for the text generated by fliptext.org
 
woa it worked!
 
Question, just to make sure I'm not losing my mind:
For matrix transforms, you want to multiply by the World first,
then the View,
then the Projection?
World, View, projection?
 
4:08 AM
Does GCC have issues with SFINAE to test for the validity of an expression?
 
... Welp.
I don't understand what's going on then. ;~;
I'm honestly not sure what to make of this...
I think I've done something terribly wrong,
but I have no way of being sure.
 
@CCInc hi!
 
@user1690130 "hi"
 
@CCInc why quotes?
 
No reason
Anyone even semi-knwoing of SQL?
 
4:33 AM
@CCInc Hm?
 
4:49 AM
I got it, but thanks
 
5:11 AM
Could someone take a look at this one? Originally it was thought that these linker errors were cause by a missing library. But now that I think of it, the functions its whining about are functions I created, they shouldn't be part of a library
0
Q: C++ Phidget eventhandler undefined reference 'linker'

atomSmasherI am getting the following errors. Based on the last line I believe it a linker error. However, I really don't know what I am talking about. :) I'm a beginner. If you happen to spot any other crappy points please let me know! error: undefined reference to AttachHandler(_CPhidget*, void*)' error:...

@doug65536 It is defined in the header like this => int CCONV AttachHandler(CPhidgetHandle SENSOR, void *userptr);
 
@atomSmasher you don't show the implementation. if the header and implementation don't match, that will happen. for example, slightly different parameters.
declaration and definition not matching will cause link error like that
 
hmmm I was a little off because all of the examples I look at pass the function without any parameters. I don't know how the examples get away with it.
for example....
CPhidget_set_OnAttach_Handler((CPhidgetHandle)bridge, AttachHandler, 0);
this is where the linker error occurs
 
I'm saying, re-copy the beginning of the actual function and paste it into the header. they must exactly match
 
for whatever is link error-ing
underneath, the parameters become part of a long encoded name (called "name mangling"). if the parameters are different in the header, you are promising that that name will be defined somewhere else. if the header doesn't match it will have a different mangled name altogether
 
5:24 AM
ok, sooo.. I never actually define the function. I just declare the function in the header. I copied the function name to make sure they match.
I should probably define the damn thing :(
Sometimes you feel like a nut, sometimes you feel like an idiot
 
@atomSmasher Those are the same.
 
lol
you are right, instantiate
 
that would be it lol
 
5:41 AM
lol, it worked!! Thanks for sparking my mistake.
 
eh?
 
user1357851
rofl StackOverflow no longer accept question from my account
 
user1357851
Anyone here knows perl & Json?
 
Json is not that complex to understand; Really, the syntax only has about 7 characters. {}[]",=
 
user1357851
How to build Json using perl then?
 
user1357851
5:51 AM
I have sql query returns results which I need to concat using perl/cgi
 
No idea. Never used perl before; I would assume there is a library for it.
 
user1357851
@Nican Thanks ... for nothing :x
 
@telkitty check cpan
there is a module for everything
 
user1357851
I found a lot of example decoding json using perl
 
user1357851
but not encoding
 
user1357851
5:54 AM
I got the simple version working, , but having problem with dynamic results.
 
user1357851
...
 
Is IRC dead?
 
6:15 AM
@Mikhail why not go ask them?
 
@Telkitty something wrong with JSON::Parse?
 
user1357851
I need to build Json string, not parsing it
 
user1357851
I am parsing it on my mobile phones
 
this encodes and decodes
 
@Telkitty Only takes a few minutes to write a json building library. Sure there's one out there, but it might be faster to implement than to find a good one.
 
user1357851
6:17 AM
@doug65536 Thanks, I read that one.
 
Just implement a class representing a scope. Write the opening brace from the constructor, and the closing brace from the destructor.
Oh, perl. GTFO.
 
@Potatoswatter the dead don't talk
 
user1357851
Oh well looks like I need to build my own Json encoder lolz. Shouldn't be too hard
 
famous last words
 
user1357851
perl is better than C++ in regex
 
6:21 AM
because use JSON; $json_text = to_json($the_data) is no good. why reinvent the wheel
 
user1357851
anyone knows how to embed C++ in cgi
 
@Telkitty lol
 
user1357851
@doug65536 how to concat?
 
user1357851
my $json_string = {
'aaa' => {
a => 1,
b => 2,
},
'bbb' => $count,
};
 
user1357851
$json_string = to_json($json_string);
 
6:23 AM
Damnit take the Perl to another room.
 
user1357851
$json_string is constructed in a loop
 
user1357851
it is not a string per se.
 
Also not a fan of perl, you should use C++ Boost regex
 
user1357851
read my comment above:
anyone knows how to embed C++ in cgi?
 
@Telkitty yes. read the environment variables for some stuff, stdin is post input, stdout is the headers, followed by \r\n\r\n follwed by the page content
exactly how you do it in any language. CGI means certain environment variables are set, and stdin and stdout are piped to the webserver
 
user1357851
6:27 AM
@doug65536 Thanks I will look into that :)
 
Also, there are various flavors of CGI… the original is all but obsolete, and the details beyond what Doug said vary significantly.
 
of course, it wouldn't be web development if you didn't have to worry about 10 different things to add workarounds for
 
user1357851
apache2 you mean
 
yes, whatever they are using on the server. for something simple like a get or post, plain cgi should do fine
 
user1357851
the only recepients for the web server output is the mobile phones which I am writing the front end for.
 
user1357851
6:34 AM
I am more experienced in C++ than perl
 
user1357851
but perl is quicker to put something up
 
6:46 AM
Pointer Question: If I were to pass values through a constructor does it make sense OR serve a purpose to use pointers when instantiating the class members? For example... MyClass::MyClass(int a, int b, int c){this->a = *a; this->b = *b; this->c = *c;}
 
the parameters will hide the class members, because the parameters are in the current scope
use MyClass(int a, int b, int c) : a(a), b(b), c(c) {}
this-> is a workaround to force it not to refer to the parameter 'a'
and no it doesnt make sense
 
ok, thank you.... I learned how to program using Java, now I am trying to walk the C plank and I want to make sure I don't start off with poor technique!
 
@atomSmasher The poor technique is to give the parameters the same names as the members… same as in Java.
 
really? That is good to know. I never realized it was bad to do so.
 
I would use in_a, in_b, in_c. Also in that example *a etc don't make sense because a is not a pointer.
 
6:51 AM
*a doesn't have meaning when a is an int
 
Everyone makes a big deal about pointers, now I feel like I need to use one at all times lol
 
@atomSmasher Using two variables with the same name and type in one scope is a bad idea in any language.
 
@potatoswatter I can see what you mean
 
@atomSmasher C++ pointers feel familiar when coming from Java because in Java, everything is actually a pointer. But using pointers in C++ is very poor style because C++ is sensitive to construction, destruction, and ownership semantics.
 
6:54 AM
@atomSmasher avoid pointers when you can
 
Try to stick to references, and use smart pointers where you want to use new.
 
@doug65536 Does the : operator you used above have a technical name? I have never seen it used before!
 
I forget... there is a name
 
The most common reason for actually having a pointer is when one object "observes" another, but might switch to observing a different object.
 
@potatoswatter Funny enough I recently took a course that introduced Assembly. You would think I would be up on my pointers
 
6:56 AM
@atomSmasher constructor initialization list
 
@doug65535, ewwww fancy, I like it
 
@atomSmasher Well, all kinds of C++ constructs map to pointers at the assembly level. We just mean to avoid declaring raw pointer objects. References, virtual functions, smart pointers, all create and manage pointers for you.
 
the generated code never "forgets" about memory if you write proper c++
 
@potatoswatter. No I understand what you mean! I just meant I shouldn't be intimidated by them. lol
 

« first day (853 days earlier)      last day (4096 days later) »