« first day (788 days earlier)      last day (4160 days later) » 

11:00 AM
Foo->my_func;
$bar->my_func;
both set $_[0];
the first to the class name as a string I think, the second to a reference to the hash for the data of this object
 
Foo::my_func
no?
otherwise yes, you’re right
not sure if my thing even works tbh
 
that simply calls the function my_func in the pacakge Foo, it will not set $_[0] true, but then it is not 'oo' besides, I want to support -> :P
plus it would require that my_func be exported or export_ok
I think...
 
is the class name the same as the package name? does case matter for it?
 
Oh noes. Perl has taken over
 
11:09 AM
:)
 
Shit. I don't think I have ever noticed a difference between 128kbps and 192kbps until now. My ears, they are ruined.
 
@thecoshman I disagree for anything non-trivial.
 
The days of not giving a fuck about bitrate are over. What am I going to do with my life now.
 
@R.MartinhoFernandes Specific samples would suffer more
@R.MartinhoFernandes Recode your music libraries
 
@R.MartinhoFernandes use more HDD space :)
 
11:11 AM
This is not fair. I want to hear poorly.
 
as poorly as you typed that?
 
I have a struct with three fields a, b, c for which I want to implement a lexicographical operator <. What’s the easiest way of doing this? At the moment I have the following:
bool operator <(foo const& lhs, foo const& rhs) {
    return std::make_tuple(lhs.a, lhs.b, lhs.c) <
           std::make_tuple(rhs.a, rhs.b, rhs.c);
}
 
@thecoshman How embarassing. You complaining about that :/
 
@R.MartinhoFernandes This can be (easily) attained
 
11:12 AM
can I somehow inherit from std::tuple instead or something like that?
 
@R.MartinhoFernandes you're welcome :D
 
@KonradRudolph std::tie?
 
nothing to see here
 
@KonradRudolph std::tie
 
SHUT IT
 
11:13 AM
oi
 
@thecoshman GET OUT
 
I knew what I was doing
 
that is bang out of order
 
@thecoshman But that changed. "Knew" -> past tense
 
@KonradRudolph Would not recommend that: it would require public inheritance.
 
11:14 AM
I knew then, nothing is implied to have changed, I still know
 
yup, my thoughts exactly :/
ok, tie it is
 
@KonradRudolph Make it namespace X { T operator <(T const& a, T const& b) { /*something with std::tie and variadics*/ } }?
If you play it nice with ADL or with enable_if you can template that for all your tuple-y types
 
@sehe So far there’s only one such type …
 
@sehe Sounds awesome, but without reflection, bummer.
You won't be reusing much code.
 
@R.MartinhoFernandes It dependeth on the way the types T would be composeth
 
11:16 AM
Then you need boilerplate anyway.
It isn't awesome.
 
Well, Haskell has the patent, so we cannot infringe on being awesome of course
 
user142019
Man, I’m so awesome.
 
Zoidberg you're so awesome.
 
user142019
I know.
 
Why not Zoidberg?
 
user142019
11:23 AM
Why not, Zoidberg?
 
user142019
So… what’s up?
 
lol
I'm waiting
 
@Zoidberg'-- Because you are taking Java classes?
 
for stuff.... to happen....
@R.MartinhoFernandes Ow.
 
user142019
I’m watching a presentation by Alexandrescu.
 
11:24 AM
Link?
 
user142019
@R.MartinhoFernandes I AM FORCED TO D:
 
Maybe I can watch it too, while I sit here twiddling my thumbs
 
@Zoidberg'-- The one that is on reddit?
 
user142019
@R.MartinhoFernandes maybe, I never check reddit.
 
11:24 AM
You suck!
 
user142019
You blow!
 
@TonyTheLion lazy day?
 
@thecoshman I'm basically stuck.
 
@TonyTheLion call for help, I am sure someone can get some glue remover
 
11:28 AM
constantly aware of my forming scar... not painfully, just really annoying
 
ehhh
scars suck
 
Uuh, new UI for gist.github.com :)
 
I wish I had asked to have a final look
would of been even cooler if they could have had a screen for me to watch it being done
if I hadn't given the phone to the GF, I would have wanted to get a picture of it :P
 
eek I could never watch shit like that
 
mid-op "erm... have I currently got a hole in my back?" "erm.. yeah, it's ok, why?" "Sweet, here, take a photo will ya"
 
11:34 AM
@thecoshman What scar?
You becoming badass all of a sudden?
 
mole removal :P
 
ow
he had moles growing
 
it wasn't growing, it's been the same for all my life
 
this ^
ewwww
 
it was just itchy a while back, so went to doctors, she said it looked fine, but may as well get taken off
best of all, I dodge any fees :D
 
11:35 AM
@TonyTheLion Is that a pokemon?
 
@Mysticial found in pokemon reallife edition
 
user142019
Alexandrescu forgot to make his ctor explicit.
 
I don't do pokemon
 
:O
I hope no one does
@Zoidberg'-- "trolling"
 
Hmm. Why does the Gist editor have syntax highlighting for Python but not C++?
 
11:37 AM
this fails
it could however have provided me with some fuel to add to the fire
 
user142019
@KonradRudolph because C++ is impossible to parse!
 
@Zoidberg'-- Syntax highlighting for C++ is rather trivial, much easier than for many other languages
 
Have you guys heard of dlib.net?
 
heard yes
 
user142019
@KonradRudolph depends on how far you want to take it. Not if you want to highlight type names differently, for example. You’ll also need a preprocessor for that.
 
11:40 AM
@TonyTheLion why? it's short and too the point
 
user142019
Raw string literals are also not the easiest thing to highlight.
 
@thecoshman I only see a date on that page
 
@KonradRudolph 'highlight in red, this is probably wrong'
 
@R.MartinhoFernandes I think the creator once promoted it on SO
 
@TonyTheLion what more do you want? the URL says it all www.tonyIsStupid.com
 
11:41 AM
lol
 
@Zoidberg'-- If you want to highlight type names, you need to parse the complete code (with all dependencies). But that’s the same for almost all languages
 
user142019
@KonradRudolph not for Haskell. :)
 
@KonradRudolph Nope dee doo.
 
user142019
(Ignoring {-# LANGUAGE CPP #-} :P)
 
11:42 AM
@Zoidberg'-- Well, okay
 
user142019
But you are right, yes.
 
@bamboon What do you think of it?
Doesn't seem particularly bad, but is outdated and has no move semantics.
 
when compiling a single source file with GCC, do you need to pass it all the header files? AFAIK, no
 
You only pass header files to GCC to make PCHs.
 
thought so
but you do need to tell GCC where header files can be found (other then system ones) right?
such as if you had a source folder and an include folder
 
11:47 AM
-I
 
@R.MartinhoFernandes I think so, too, but boost is probably superior in most of the stuff.
 
Guys, I have a completely unrelated leftfield question about routers and shit.
.... How the fuck do I ping someone directly if they're behind a router? D:
 
@ThePhD They don't mix well together.
 
@ThePhD you don't
 
11:53 AM
@jalf There's no directive to say 'Get to this router, then get to this person' ?
 
No.
You need to do some NAT punching.
Which needs an externally accessible third party.
 
Warblegarble. Well, that takes Snes9x direct connectivity out of my day.
 
there are various tricks you can try to establish a connection if both parties actively participate, but if you just want to send a message from the outside (say, a ping), and the recipient isn't actively helping create the connection, you're stuck
 
Yeah, because it seems liek no amtter what I do, I can't even ping myself using a global IP address.
 
@R.MartinhoFernandes well, not necessarily. Basically, it needs a way to share information between both endpoints. A phone call can do that. Or an IM message or something. :)
 
11:55 AM
It always hits the router. D:
 
@jalf ...
@jalf Both of those alternatives use an externally accessible third party!
:P
@ThePhD That's because your machine does not have one.
 
@R.MartinhoFernandes Hmm, who is the "third party" in a phone call?
 
@jalf The phone company.
Or some variant of it.
 
WELP it was a nice fantasy for a minute. Back to reality and coding and cold hard facts and a world without LAN kirby superstars.
 
@ThePhD You can just do some port forwarding or DMZ your computer, can't you?
 
11:56 AM
Ipv6 will eliminate the need for NAT
 
@TonyTheLion Unfortunately a lot fo old programs demand Ipv4 or hostnames.
 
true
I was just saying, cause I'm random
 
I wish I could just give it a directive like <IPAddress>/<LocalIPAddress> and the router could pass the message along to the computer. :c
 
@TonyTheLion Which is not necessarily a good thing.
 
11:58 AM
@R.MartinhoFernandes yes it is...
 
If you get rid of NAT you still need a proper firewall in place.
 
@R.MartinhoFernandes Sure, but that doesn't make it less of a good thing that the need for NAT is eliminated
@Abyx oooh, that's cool
 
@ThePhD You can do router:port if you set up port forwarding on the router.
 
I has not set up port forwarding on the router and by this time, it is really too much work to just play a game of Kirby Superstars with some bros.
The worst part is instead of being productive with my life I spent 6 hours trying tow ork this out.
 
12:03 PM
WTF did you try for six whole hours?
 
Beating the firewall up to work with Hamachi,
getting hamachi to behave,
etc. etc.
The first 4 hours were dedicated to that, I played laggy Kirby Superstars and Joust,
and then I decided NO, we can do it faster.
So we tried direct connecting for a while.
^ When people who have no idea what they're doing try to tackle shit, this happens. =[
I've never reset so many times.
The bright side is, we've proven we've got patience. And tenacity. And guts. And shit.
 
I told you before that routers and shit don't mix well together.
I don't have scientific studies to back me on this opinion, though; only my instincts.
 
routers work fine, just set up port forwarding as mentioned
 
routers can be a pain to configure
 
forward ports: 0-99999 to: my computer
done :p
 
12:17 PM
0
Q: How to make an app use Growl on Lion and Notification Center on Mountain Lion?

KronusdarkI am making an app that uses notification center on mountain lion. I included support for growl on snow leopard and lion. How do I make it so the binary will be able to run on both and not require 2 separate .app bundles.

lol
Growl on Lion <---- ahahahahah
@melak47 wtf
 
@TonyTheLion you said configuring them can be a pain
many routers even have a single checkbox option for that :p
 
@Zoidberg'-- Highly unlikely, since I'm not a professor in the first place :)
 
Qt netwrok reply error: "Protocol "blahblah:" is unknown" is stressing me out! ><
0
Q: Protocol "protocol:" is unknown

Nathan DalyI am developing a WebKit browser in Qt and C++. I want to be able to launch and external application using an URL protocol. The application has it's protocol registered in Windows registry but when I click on the link I get the following error: "Protocol "ca4protocol" is unknown" 301 The same...

 
what you're doing makes no sense. Browsers check these registry keys to check if there are special actions associated with the specified protocol. If you are writing a browser, you need to check that key yourself
Asking Qt to connect using a protocol it doesn't understand is futile
 
12:25 PM
He means Triumphant and don't call him Shirley — Lightness Races in Orbit 10 mins ago
 
@NathanDaly Would Knuth use Qt?
 
@jalf I see, but once I retrieve the registry keys I wouldn't know which signals/slots to use to make the browser understand :/
@FredOverflow Knuth?
 
Donald Ervin Knuth ( ; born January 10, 1938) is a computer scientist and Professor Emeritus at Stanford University. He is the author of the seminal multi-volume work The Art of Computer Programming. Knuth has been called the "father" of the analysis of algorithms. He contributed to the development of the rigorous analysis of the computational complexity of algorithms and systematized formal mathematical techniques for it. In the process he also popularized the asymptotic notation. In addition to fundamental contributions in several branches of theoretical computer science, Knuth is the...
 
@NathanDaly If you're writing the browser, then hopefully you know how to specify its behavior...
 
The crazy old dude that writes very very slow.
 
12:28 PM
What the browser checks is this: "which protocol does the URI use? Is it a protocol I know? If yes, I use my native functionality to handle the protocol. If not, is a custom protocol handler specified? If yes, invoke whatever command the custom handler says to invoke. Otherwise, report an error"
 
> He applied his intelligence in unconventional ways, winning a contest when he was in eighth grade by finding over 4,500 words that could be formed from the letters in "Ziegler's Giant Bar"; the judges had only about 2,500 words on their master list. This won him a television set for his school and a candy bar for everyone in his class.
lol
 
@FredOverflow What an inspiration :)
@jalf Thanks jalf seems like logical process to me, just have to find a way in Qt to handle custom protocols
 
It would be nice if Amazon stopped suggesting me stuff I already own.
 
they're not psychic
 
@DeadMG I suppose they might not need to be psychic to know what the fuck I have bought from them in the past.
 
12:40 PM
yeah, they'd need to be intelligent, and that's an even bigger ask
 
lulz
Expecting intelligence can set you up for failures
@R.MartinhoFernandes Have you seen him write then?
 
The problem is that Alexandrescu uses exceptions for something that is not at all exceptional, in my opinion. In fact, one could argue that if you parse a string from the outside world that should contain digits only, the exceptional case is that everything goes well, because there is just too many way to fuck up :) — FredOverflow 8 secs ago
 
Screw that whole "exceptions only for exceptional situations" bullshit
Exceptions are for interrupting execution
 
12:55 PM
Not sure what you mean, but I think parsing a string should return a Maybe<T> or an Either<E, T> instead of just a T or throwing an exception.
Not for efficiency reasons, but because that makes a lot more sense.
 
One word: propagation.
 
More words, please.
 
In Haskell, Nothing propagates automatically thanks to >>=
In C++, it wouldn't
But C++ has exceptions that propagate automatically
So there you go
 
Is propagation good or bad?
 
It's necessary
The point is whether you have to do it manually or whether language/compiler will take care of it for you
Less boilerplate, less mistakes
 
12:58 PM
What do you mean, necessary? Haskell doesn't do it, so Haskell is unusable? :)
 
Haskell does it
 
2 mins ago, by Cat Plus Plus
In Haskell, Nothing propagates automatically thanks to >>=
This sounded like it wouldn't.
 
lol
 
Nothing/Left x/whatever
 

« first day (788 days earlier)      last day (4160 days later) »