« first day (1311 days earlier)      last day (3630 days later) » 

4:01 PM
@rightfold This is the SSCCE.
@R.MartinhoFernandes see above
 
What do you want to do?
 
I want to print and get out.
("get out" == end the program normally)
 
Catch it above.
At top level.
 
I'm catching it in main... isn't it the super top level?
 
No, you're catching it in a subexpression.
(Signature needed because there's no way to infer the exception type)
(btw, action `catch` handler reads better IMO)
 
4:08 PM
Oh, I didn't know you could use do everywhere like that.
Neat.
Thanks.
 
it's cool that jefffrey is digging haskell
haskell community needs more people doing stuff
 
while we're at it
OpenGL Raw 1.5 and OpenGL 2.9 were released today
 
@Rapptz Awww.
 
@BartekBanachewicz What.
 
4:14 PM
> svenpanne released Hackage release 2.9.2.0 at haskell-opengl/OpenGL
 
> It's probably one of the best products Microsoft makes to be honest.
I wonder if they ever used any other Microsoft product.
IME it's definitely one of their worst.
(Bar WinME and MSBob and so on)
 
MSBob was the shit at the time :(
 
1
A: How to access a nested type from a variable of unknown type?

user2511124If you want to make your code more maintainable, I would disagree with using both auto and decltype. If you want to stick to compile time method binding and avoid virtual methods and interfaces due to time critical parts of code, I would prefer to have a typedef with a descriptive name, of what t...

finally, some common sense
 
I love you MSBob.
Is the speech recognition thing still called MS Sam?
Also I'm not really one of those "M$" people but I can't think of anything I really like from Microsoft off the top of my head
 
I thought MS Sam did text to speech
 
4:18 PM
oops, yeah that's what I meant
 
user1804599
@Jefffrey Bool()
 
Oh yeah.
I thought MSN was cool. And Office is probably one of their better software.
 
user1804599
putStr "oops" >> return True or something.
 
user1804599
Or use Maybe Bool.
 
I think that's it.
 
4:20 PM
Hi guys o/
I have a decision problem. I'm trying to decide between 2 url structures, that is: post/5345345345242/this-is-a-post/ (uuid) and: post/3/this-is-a-post/ (increment id)
 
Wrong room?
 
Which one should I go for?
 
Increment the ID
 
@Rapptz This is rather a general question
 
@rightfold Yeah, I understood that. :D
Anyway, super robot solved it.
 
user1804599
4:23 PM
@İnekŞaban Depends on the application.
 
Ah ok thanks :)
I'm trying to switch to NoSQL and that's putting a barrier
 
user1804599
If you don’t want them to be predictable, use long random ID.
 
user1804599
@İnekŞaban Why? You can have incremental IDs without SQL.
 
For posts autoincrement is fine.
 
user1804599
@Jefffrey Depends.
 
4:25 PM
Yeah that's for posts
 
@rightfold ... from what?
 
I can store a document in the db that just contains the sequence value, fetch the current value from it, increment and save it. But if the former example is ok I'd rather avoid doing that ;)
 
(Also, why are you trying to switch to NoSQL?)
 
user1804599
@Jefffrey on whether you want them to be predictable, for example.
 
@rightfold How is that relevant?
 
user1804599
4:25 PM
 
@minitech Performance, cost..
 
user1804599
@Jefffrey Uh, because incremental IDs are predictable.
 
No, I avoid MongoDB
 
@rightfold So what?
 
@İnekŞaban Then use /dev/null, as @rightfold points out
 
user1804599
4:26 PM
@Jefffrey Uh, so you want long random IDs.
 
user1804599
So it may matter for posts.
 
@rightfold What's the problem with predictable ids?
 
user1804599
(Nobody even ever mentioned what a “post” is in this context.)
 
web scraping
 
user1804599
@Jefffrey Depends.
 
user1804599
4:26 PM
If you don’t want them to be predictable, then the problem is that they are predictable.
 
*Uh, depends
 
Well, it's mainly a Discussion Platform..so normal posts
 
user1804599
Private gists on GitHub is a great example of why you may want non-predictable IDs.
 
@rightfold eh
@rightfold Github repositories are predictable.
 
I'm doing it with CouchDB
 
user1804599
4:28 PM
I don’t see the problem, really. If you need X, you need X, not Y.
 
user1804599
@Jefffrey Repositories are completely irrelevant to private gists.
 
@Jefffrey How?
 
user1804599
Private gists have random IDs because you don’t want people to be able to predict them.
 
@rightfold And even if they do?
 
user1804599
If they do, they’re not really private.
 
4:29 PM
> You can use it with gcc if you really hate the MS compiler that much.
 
user1804599
Because anyone can access them by predicting their IDs.
 
How do you use GCC with Visual Studio?
 
user1804599
(Duh.)
 
lol
 
They know a number that identifies a private gist. That's exactly equal to know the random ID of a private gist.
 
4:30 PM
FUUUUUUUUUUUUUUUUUUUUUUU
 
user1804599
No, they don’t know it.
 
user1804599
That’s the point.
 
@Rapptz I lost my exhaustive reply to that.
 
You still don't access the gist.
 
Well, if private gists had sequential IDs, anyone could just
use the next ID
 
4:30 PM
@minitech how?
 
By changing the last digit
 
user1804599
If I say I have a value 0 in my head, and I say I’m incrementing it, you will know what the next value will be.
 
Sometimes it takes more than one digit
 
@BartekBanachewicz That's a risky move. Coliru reboots itself every few hours.
 
@R.MartinhoFernandes He told me you could use GCC with it :v
 
@minitech wat
 
user1804599
If I say I have a random value in my head, and I say I’m changing it for another random number, you will not know what the next value will be.
 
@rightfold lol, yes, I understand that
 
user1804599
@Jefffrey 0 => 1 => 2 => 3 => 4 vs. 34243324 => 92189843 => 3747483229 => 2093945
 
@Rapptz Like a true king.
 
4:31 PM
7 hours ago, by Bartek Banachewicz
So thanks to coliru 70% and 85%
 
@rightfold My point is that it does not add extra protection to nothing.
 
@ScottW Vote fraud, mostly
3
 
user1804599
It does add protection.
 
How?
 
@BartekBanachewicz Luck is on your side :)
 
user1804599
4:32 PM
That’s what I have explained a million times by now.
 
Instead of using unpredictable ids just check for permissions?
 
user1804599
BECAUSE NOBODY CAN KNOW THE ID WITHOUT YOU TELLING THEM.
 
user1804599
SO THEY CANNOT ACCESS THE DATA UNLESS YOU TELL THEM WHERE TO FIND IT.
 
@İnekŞaban That would make private gists less convenient to share, but sure.
 
@İnekŞaban Then you've lost the greatest feature: giving permission to view it by linking.
 
4:33 PM
It’s one way people do things.
 
@rightfold You have explained that with random IDs you can't predict the next ID. Even if you know the ID (assuming an incremental ID), how do you access the resource?
 
I voted for @minitech
 
user1804599
@Jefffrey by going to gist.github.com/gist/the-id.
 
Lightness regrets it now.
But it’s too late.
 
@Jefffrey Are you like, for real?
 
4:33 PM
@rightfold Then the gist system will check your session credentials, see that they don't match and refuse to show it to you.
 
user1804599
When you know Gist with ID 42 exists, you will know that Gist with ID 43 will eventually exist. And if it’s private, you can access it even though the author does not want you to.
 
@Jefffrey But you share private gists by the secret link.
 
@minitech Oh, lol.
 
It’s like a password. It’s just as good.
 
Well guess it all goes on the software's/website requirements
 
user1804599
4:34 PM
With long random IDs, you cannot know whether it will ever exist.
 
See also: Google Drive
 
1 min ago, by Griwes
@İnekŞaban Then you've lost the greatest feature: giving permission to view it by linking.
 
I'm being downvoted for my MSVC sucks at C++ jab :v
 
@minitech Nah I embedded a time-delayed virus into my vote. Just you wait...
 
@Rapptz What did you expect? It's reddit.
 
4:34 PM
@LightnessRacesinOrbit Inconceivable!
 
@Griwes I forgot private gists are shared by link. /cc @rightfold
 
On reddit they will probably tell you that they don't use unique_ptr because it's slow.
 
The C++ stuff is typically in check.
Can't comment on anything else though.
 
But when you have a community full of new programmers it's interesting to see the misconceptions and line of thinking.
 
user1804599
4:36 PM
@Jefffrey oh :P
 
user image
4
 
@Griwes :no:
> Call PAPI_start() and PAPI_stop() in different functions?
Have you tried PAPI_Dale_Mas_Duro()? /cc @R.M #spanishjoke
 
@Griwes I wonder if anyone noticed that the names were, you know, different
 
user1804599
@Griwes kek
 
user1804599
Good thing we have natural selection.
 
4:38 PM
@WilliamAndrewMontgomery That's pretty lame.
You can do better.
 
@R.MartinhoFernandes That's why I cced it to you!
 
@minitech vOv
 
I should make a plugin for better documentation search for Sublime Text
 
Xeo
... no PC at home :(
I just realised I won't be able to play Transistor tomorrow
 
TIL there's a Patriot Day
In the United States, Patriot Day (known in full as Patriot Day and National Day of Service and Remembrance) occurs on September 11 of each year, designated in memory of the 2,977 killed in the September 11, 2001 terrorist attacks. Initially, the day was called the Prayer and Remembrance for the Victims of the Terrorist Attacks on September 11, 2001. When the new name was proposed, it received opposition from Massachusetts, which already had a holiday that is very similarly named, Patriots' Day. U.S. House of Representatives Joint Resolution 71 was approved by a vote of 407–0 on Octobe...
 
Xeo
4:45 PM
Oh gawd, how stupid
 
Apparently worthy enough of being one of our 11 federal holidays.
Oh it isn't. Cool.
 
user3010322
Mmm. I wonder if I can SFINAE implicit conversions.
 
indeed
let us remember the victims of a terrorist attack by BLINDLY ADORING OUR COUNTRY
it's not like that's what caused us to get attacked in the first place.
 
It's been ~13 years. :v
 
Hmmm... writing void write_step(std::ostream& out); ain't the best idea, is it? std::basic_ostream is better, am I right?
 
4:50 PM
Pearl Harbor was almost as bad but we don't have a holiday for it.
 
user3010322
We don't, but when people in Japan have a reactor blow up or a Tsunami, we post on Facebook "They deserve it! Pearl Harbor! #neverforget"
 
@Griwes pahaha
 
@ThePhD are you fucking kidding me o.o
 
@R.MartinhoFernandes greatest title of the day thus far: "array always returns stupid things"
 
user1804599
@Griwes lanadel cunt
 
4:51 PM
0
Q: array always returns stupid things

user3520616I don't know why it doesn't work... I have an array int point[6][6][1] and I have a while loop: int i = 0; while(point[i + 1][0][0] > 0] { i++; } return i; If I have 3 points declared point[1][0][0] = 1; point[2][0][0] = 2; point[3][0][0] = 3; TotalNumberOfPoints(point) (The While ...

 
user3010322
@Borgleader Nope, it's been said.
 
@Xeo HAHAHAHAHAHAHA
Sounds like me.
 
I should get food.
 
Xeo
@R.MartinhoFernandes Can't assemble my PC:<
 
May 11 at 16:04, by R. Martinho Fernandes
@FredOverflow I... didn't realize I wouldn't be able to watch the stuff on DVDs without a DVD drive, I guess.
 
Xeo
4:55 PM
It's tucked away under one of those plane things to keep it safe from paint
 
> It's possible. PS3 uses the gcc compiler. I have used Visual Studio to make PS3 games.
:v
 
sbi
BTW, what became of your poll, @Xeo?
 
Xeo
@sbi 19 for, 24 against
 
sbi
@Xeo Ah, you just took it down then?
 
Xeo
Not that you can really trust simple starring
hai
 
sbi
4:58 PM
@Xeo You can trust the result to be controversial, which in itself is a no, actually.
 
user1804599
SRP.
 
sbi
It's still so early in the day for @Scott, and yet he is drunk already.
 
user3010322
Hm.
 
user3010322
So.
 
user3010322
begin, as written in my class, is being confused for the begin free function.
 

« first day (1311 days earlier)      last day (3630 days later) »