« first day (852 days earlier)      last day (4089 days later) » 

user1357851
5:00 AM
LOL, true. Except it seems to be a legitimate event
 
I wrote a bunch of proof of concept exploits by creating public websites with user authentication assuming that people use the same user names and passwords for multiple sites.
I even had a survey asking what other sites they used.
used their email address and account name to access their accounts on other websites.
 
user1357851
@WindAndFlame I thought about that. That's why I use different passwords for different sites
 
using their password they gave for the website I created for them to use.
 
user1357851
Except I only have 5 most used passwords - I can only remember 5 passwords at a time. LOLz
 
@BrianWebster lol
 
5:04 AM
wow. that ding made me jump. really late here.
this partial template specialization error is odd.
 
@Rapptz holy cow this dings loud
 
I get the error in GCC but not in visual studio.
 
You can mute it in the corner
 
yes, it does ding loud
 
So do you think my experiment is good or bad? stackoverflow.com/badges/262/publicist?userid=127880
I think I shouldn't share closed questions. They probably shouldn't qualify for badges
 
5:06 AM
It doesn't prove anything besides the fact everyone already knows -- reddit is a popular way to share answers.
In fact, Mysticial does it to most of his answers he considers good.
 
user1357851
I found a telkitty on reddit & it wasn't me
 
I got my first question over 1k views.
:D
 
I got curious about the publicist badge as hardly anybody has one. I wondered how hard they were to get, thus the experiment. It takes a few minutes per day to find interesting content and post it
 
would anyone mind a pm with me helping me through a template partial specialization problem?
:D
 
0
Q: Should closed questions qualify for Announcer, Booster, and Publicist Badges?

Brian WebsterI've been running a publicist badge experiment lately. I think it is safe to say that there is a strong benefit to sharing most of the questions. However, is it worthwhile to reward users for sharing gimmicky closed questions like "What's your favorite programmer cartoon?" Is there a net ben...

@Rapptz how did you make it beep anyway?
 
5:13 AM
It's when you get a reply.
 
@BrianWebster you just pm
 
I think
did I ding you?
 
does that mean you will help me with my partial specialization problem?
 
5:14 AM
This lounge makes me sad. I miss my C++ days. I've been held hostage by e-commerce development for 5 years. I want to get back to game dev
 
*cough
 
Sorry wind, it's beyond me
 
I have been doing C# and java for the last 13 years.
just back into C++ full time for the last month
and C++11 is light years beyond 03, or 98.
its about time.
its like almost a real language now. :p
 
user1357851
C# for 13 years ...
 
user1357851
why do you sound so crook-ish :p
 
5:16 AM
12 years for C#
I worked on the spec
I came from the J2EE e.g. to work at msft on C# and the .NET framework.
my hopes for write once, run everywhere are thoroughly nuked.
C++ is really the only sound alternative.
so, I am noobing it up now.
:D
 
I use Java for write once and run everywhere
Specifically its a code that takes in HTML and cleans it up
 
any phidget users out around tonight?
I am going pointer crazy. I am getting an argument of type does not match error....
 
@Mikhail Java actually seems like "write once, debug everywhere".
 
yeah, write once, run everywhere, if Oracle approves?
:p
 
user1357851
5:26 AM
@EtiennedeMartel better than 'write once, crash everywhere'
 
The intention of Java, many moons ago, was that other people would write run times, etc... IBM, WebLogic, etc.
and apps like eclipse are few and far between.
and slow
 
Java seems very busy patching up every day
 
OPENJDK FTW
 
@Telkitty Let's not talk about PHP.
 
mono is pretty cool... I just wish they would make their own C# API instead of cloning MSFTS
 
5:26 AM
but phpstorm is amazing!!
 
@WindAndFlame And kill any commercial viability?
 
the MSFT .NET api is horrible.
 
"Horrible"? How come?
 
For one, its not an API in the strictest sense where the API is decoupled from its implementation.
that's 1.
 
Since when is that a problem?
 
5:28 AM
2: There are many ways of accomplishing similar tasks... to be locked into 1 particular data access model...
 
What, you want the BCL to be usable with a non-CLI language?
 
or 1 particular serialization model, etc...
In C#, or rather .NET, you can't define your own Page class from an IPage interface.
 
I have a story! In the mid 90s the US navy implemented a Java control framework for their weapons systems. Due to the java jit and precision timer requirements, all code for triggering the weapons systems needed to be ran with a boolean called warmup set to true. In the late 90s the navy switched to C++, because IBM demanded tons of cash for each instance being ran. It was money, not technical problems that killed Java for the navy.
 
@WindAndFlame Hm?
 
interfaces in the .NET framework are mostly non-existent.
 
5:29 AM
Except in the collections, which is about the only place where they matter.
 
Well, MSFTs page models for web controls has always been horrid.
in Java, the Servlet model was AWESOME.
 
Oh, you're talking about WebForms...
 
you can't simulate this in .NET ...
well, its not just form.
 
Sorry, I thought you were talking about the BCL, you know, the closest thing .NET has to a standard library.
 
The entity framework lacks interfaces and abstractions.
there is no API ...
 
5:30 AM
EF is another thing as well.
 
where there are just interfaces.
I like interfaces. :)
 
Sweet tits, that would be like saying "the C++ standard library sucks" because Qt has a bad design.
 
std library is a LOT lower level than web forms.
 
Sure, EF, WPF, ASP.NET, WCF, WinForms, etc. ship with the Framework, but it's not really a core .NET API.
 
anything as complex as web forms, etc, should have standard interfaces, or abstractions.
 
5:32 AM
Why?
 
there is no CORE .net API.
there is a programming library.
.NET is a library.
 
There's one. It's called the BCL, or Base Class Library.
.NET is a Framework.
 
right, not an API... a Library.
 
It contains multiple libraries.
 
J2EE is an actual API.
 
5:33 AM
It's also a framework.
 
with a concrete implementation.
 
Oh, wait.
I get what you mean.
 
an API is the part of a framework that is a package of interfaces...
 
You're talking about specs.
 
5:33 AM
Don't tell me you're the kind of guy who requires every class to implement an interface?
 
so, the Mono project would be a LOT better off if .NET actually included an API.
 
Part of the BCL is an ECMA standard, IIRC.
 
Frameworks should/must/who wouldn't always be interface driven.
 
In Enterprise Java, sure, because it's all about mind wanking.
 
because frameworks cause cascading regressions when they change... Coding to interfaces, and pointing to an implementation, a newer one, allows code to continue to work
 
5:35 AM
If they change.
 
when they change.
and, they allow consumers to add more features, upgrade, improve, etc.
 
Wouldn't that fuck up the open/closed principle?
 
because, MSFT, Oracle, etc, have release cycles that are laughable.
If you assume developers are retarded, like MSFT likes to think, then everything messes something up.
 
Even with interfaces, any change to an existing API can break existing code.
 
changes to the API will break compilation.
updates to the actual implementation could cause the app to break.
 
5:37 AM
And anyway, if C# had multiple inheritance, we wouldn't be talking about interfaces. Hihi.
 
but, then, you just roll back to the other imple,etation.
I use interfaces all the time in C++.
though, I do sneak in a bunch of properties here and there, making them more abstract classes than interfaces, but whatever.
:D
 
The are no properties in C++.
At least, not in the C# sense.
(I'm just nitpicking).
 
Anyway, I think I know why I don't agree with you: I work in games, where code is written quickly and changes so fast that a stable API is an impossibility, and where code breaks all the time.
 
hey, MSFT has an extension for that too. :p
wow.
 
5:45 AM
So I don't really understand the need for a "stable" API.
 
I am writing an API that allows games to switch from OpenGL to DirectX on the fly.
 
Heck, I don't even understand the need for an API.
 
Everything is abstracted into an API, Buffers, Shaders, Meshes, Models, Texxtures, Devices, everything.
then concrete implementations can be plugged in, or out, with the click of an option button.
without an abstraction layer, this is impossible.
 
Indeed. What I'm wondering is if that's really needed.
 
the "Bridge Design Pattern" doesn't even work, if there are no abstrations/interfaces.
well, whenever you want to be able to swap out implementations at run time, yeah.
and, ensure forward compatibility with new API changes.
 
5:47 AM
So, Windows only, then?
 
Eek.
no, that is why I write this in C++11 with a very well defined API.
I have Visual Studio running side by side with code::blocks...
 
Because that's about the only platform where you can actually switch between OGL and D3D at runtime.
On mobile, it's OGL ES land.
 
I compile my code on Linux and windows ...
well, there is more than just directX and OpenGL.
its the way devices are handled in general.
 
There's D3D9 on the 360 and D3D11 on WinRT...
 
on Android, there is the native API, that I can use to implement.
right, so, on windows 8, I am using D3D11, WinRT/CX
on android, Linux, the configuration file defaults to openGL anyway.
but you can get DirectX running on Linux.
and if someone has, then by all means.
 
5:50 AM
What I'm saying is, in practice, you would want to abstract the renderer itself and not individual bits.
 
so, my "engine" api, is a dependency to the host application API....
err, the host application executable.
that project has DirectXShaderImplementation defined.
or OpenGLShaderImplementation define.
and the Engine API has a Shader class with a pointer to some IBridgeImplementation ...
which a service locator finds at run time.
well, compile time really, but can update at runtime.
I use this for controller interfaces as well.
PS3, Xbox 360, motion sensor on tablets.
they all have platform specific implementations.
unfortunately, my biggest mistake so far, was assuming that "disable extensions" in visual studio did just that...
 
Woa, woa woa.
That sounds way too "enterprisey" for my taste.
 
Well, good luck with your project.
 
I am an enterprise solutions architect.
so, yeah... I over architect.
 
5:55 AM
I still think it's a bad idea to think about design patterns first.
 
yeah, I know... its a religious perspective.
 
You shouldn't write software with the GoF spread across your thighs.
 
posted on February 14, 2013 by Scott Meyers

One of the most important reality checks I use to evaluate material I'm thinking about publishing is to use it in a training setting. Present a prospective guideline to a gaggle of professional C++ software developers, and you find out pretty quickly whether it comprises useful and practical advice. A prospective guideline I have for Effective C++11 is Declare overriding functions override.&nb

 
I always design first, then code.
 
hi, is anyone here good with linked lists? I'm a beginner with c++ and having trouble getting my code to output correctly
 
5:56 AM
I usually code first, then refactor.
 
I mostly do that when I am doing a rough proof of concept.
but, I understand.
In my experience, there are tactical coders, and strategical coders.
value oriented coders tend to be tactical.
value first, produce something, sell it, move on. iterate.
strategical coders are a little too artsy for this age, I think. :D
but, we make some fine frameworks.
I think the further down the dependency stack you go, the more strategical you have to be to not cause stress to everyone that uses your code, overtime.
value first...
 
I write software to solve problems.
 
I write software for fun. :p
 
I think design too often devolves into designing for design's sake.
 
and there you have the dichotomy of software developers.
yep.
Its much like construction.
Architects are artsy fartsy.
engineers are concrete, tactical.
that is why I am a solutions architect.
and yeah, I tend to make really pretty designs.
 
6:01 AM
It's not a very good analogy.
Because software engineers are also artists.
 
I think its a great one.
 
Or craftsmen, actually.
 
Design patterns are the paintbrush for software artists.
not just the GoF patterns.. eek
 
Yeah, I've read Fowler's stuff.
 
those are so horribly documented, they are useless for the most part.
those are more enterprise patterns, and again, not very useful.
the J2EE patterns are cool.
practical for lots of problem domains.
Curiously Recurring Template Pattern is really fun.
 
6:02 AM
It's not really a pattern.
 
ooo...
 
its repeated.
 
More like a template trick.
 
anybody know how to conver boolean to k maps
 
but its fun.
I used it to implement my platform bridges.
well, partly.
had to throw in some function pointer mangling to complete it.
 
6:05 AM
@BrianWebster Well, once or twice is probably fine. Although I'm not personally bothered by it, the reddit community is not taking it too well.
 
what is the ring of death?
on the lounge description.
 
@WindAndFlame A place where programming languages fight to the death.
 
how do I participate?
I have a language.
 
By making a new programming language, also known as "a solution looking for a problem".
 
well, I made the language because of a particular problem.
so, I get a point for that, right?
 
6:08 AM
Was the problem "how to design a language"?
 
@BrianWebster I went through your reddit account and it looks like a very large portion of your recent submissions are getting blocked. So that's a good indication that you're getting flagged as spam.
 
no, the problem was how to transform languages into other langagues.
to go from Java to C# to C++, etc.
 
You made a language for that?
 
yeah.
 
6:10 AM
its primary intention wasn't programmatic languages.
just works better for those.
 
Oh. So you couldn't just plug LLVM in there.
 
I was working on an online lexical semantic database for ancient texts... to translate passages into /any/ other language.
 
@Mysticial Honestly I don't really understand reddit that well. I just try to post interesting questions to relevant subreddits. I had a few go pretty high today. Think I should simmer down a bit?
 
@BrianWebster I think at this point, you might as well just create a new account on a new ip address and start over.
You're already red-flagged along with your ip.
Basically, you need to take a more balanced approach. Post more comments.
Don't submit too much.
 
Oy
@Mysticial I need your help
:(
 
6:14 AM
@BrianWebster I would also prefer that you slow down a bit. Say no more than one submission per subreddit per month or so. We don't want to turn the reddit community against us because it then jeopardizes future submissions.
 
@Mysticial Ah, I see. So, in other words, spend more than 5 minutes on it :) I appreciate the feedback. I do think it's time for a change. FWIW, my dad and i really enjoy reading your answers. I know you put a lot of time into some of those.
 
@Rapptz Yep :)
ask away
 
OMG 2 hours and I found my Template Partial Specialization of function error.
I hate retarded compiler errors.
 
@Mysticial I have two exponentiation algorithms, and the one that is supposed to be less efficient is almost 7 times faster.
 
@Rapptz haha, well then it's really 0.5 faster isn't it? More details needed obviously.
 
6:16 AM
BigInteger pow2(BigInteger base, size_t exponent) {
    BigInteger result("1");
    if(exponent <= 0) return result;
    if(exponent == 1) return base;
    while(exponent) {
        result *= (exponent&1) ? base : 1;
        exponent >>= 1;
        base *= base;
    }
    return result;
}
 
@Mysticial Yea, I pushed it pretty hard. Experiment over. I think you are suggesting a pretty prudent method, as there is a lot of hate for stackoverflow due to the issue of closed questions
 
^ first one takes 7770ish ms for very large exponents i.e. (1234567^8910)
BigInteger pow3(const BigInteger& a, ullong b) {
    BigInteger result("1");
    if(b <= 0)
        return result;
    if(b == 1)
        return a;
    for(ullong i = 0; i < b; ++i) {
        result *= a;
    }
    return result;
}
 
@BrianWebster That can easily be avoided by simply not posting closed questions.
 
but this one takes ~1000ms
 
anyone use code::blocks ?
I am trying to figure out how to select text and auto indent.
 
@Rapptz Interesting...
8910 is pretty big...
 
Also a bit of hate for the "locked" status of questions, as people don't understand it and interpret it as closed. This is significant, because many questions worth sharing are locked for protection reasons, such as after undeleting a question.
 
@Rapptz Oh... is your multiplication quadratic?
 
Oh and it's on -O3
Quadratic in what sense?
 
@BrianWebster That's not a surprise since most of the things that appeal to reddit don't work well on SO.
@Rapptz Run-time.
 
6:20 AM
That'd be surprising, so no.
Just ran it again
Elapsed time: 1193 ms //pow3
Elapsed time: 8733 ms //pow2
for 1234567^8910
 
When you're dealing with bignums, the fast exponentiation algorithm isn't going to give much gain unless you have sub-quadratic multipliation.
@Rapptz So it flipped?
 
pow2 is the exponentiation by squaring
pow3 is the naive for loop
bitbucket.org/Rapptz/gears/src/… <-- is multiplication algo
 
If your multiplication is quadratic run-time, then exponentiation by squaring offers no run-time complexity advantage over the naive loop.
 
I don't think it's quadratic though. Multiplication is pretty fast =/
 
That's definitely quadratic.
 
6:24 AM
Hm.
 
The non-quadratic algorithms are much more complicated.
Without even looking at how your code works, I can tell it's not one of the sub-quadratic algorithms because it's too short.
 
That seems too generalised but okay
 
@Rapptz This is a sub-quadratic algorithm:
The Karatsuba algorithm is a fast multiplication algorithm. It was invented by Anatolii Alexeevitch Karatsuba in 1960 and published in 1962. Knuth D.E. (1969) The art of computer programming. v.2. Addison-Wesley Publ.Co., 724 pp. It reduces the multiplication of two n-digit numbers to at most 3 n^{\log_23}\approx 3 n^{1.585} single-digit multiplications in general (and exactly n^{\log_23} when n is a power of 2). It is therefore faster than the classical algorithm, which requires n2 single-digit products. If n = 210 = 1024, in particular, the exact counts are 310 = 59,049 and (210...
 
Karatsuba algo is slower than my implementation
I already have a karatsuba if you want to see it though
 
@Rapptz It's meant for large sizes.
You need to test it and find the threshold between the basic algorithm and Karatsuba.
 
6:27 AM
Well, I tried numbers like
 
In y-cruncher, it's around 100 - 200 decimal digits.
 
9e1000 x 11e999
 
But for something less optimized, it's likely to be higher.
 
or something like that
 
Are you recursing into the naive algorithm?
If you're recursing all the way down to 1, then it's gonna be very slow.
 
6:29 AM
for what?
in Karatsuba?
 
Karatsuba is recursive.
Once you fall below it certain size, you need to fall back to the naive algorithm.
 
ignore the if statement
 
//     if((bi.digits.size() < 250) || (bi2.digits.size() < 250))
//         return bi*bi2;
That does look like you're recursing to native as needed.
 
I wasn't sure what to threshold at
 
Karatsuba is tricky since it's meant for equal-length operands.
In y-cruncher, I deal with it by breaking up a uneven product into sub-products of equal size. So it gets really complicated.
I'm not entirely sure what you're doing here.
 
6:33 AM
I don't remember when this was written
 
@BrianWebster I've actually reddited myself 3 times in the past (months apart each). They were all successful. But I got called out on the 3rd time. So that was a clear sign that reddit doesn't welcome everything we post there.
 
@Mysticial They are fickle bastards I say
@Mysticial Even so, no point in prodding the beast. And it's obvious I was pushing too hard. Was fun while it lasted though.
 
user142019
ohai
 
Yeah. Don't mess with reddit. We don't want to alienate them.
 
@Mysticial With Karatsuba it's much better but still slower
Elapsed time: 1170 ms
Elapsed time: 1919 ms
 
user142019
6:37 AM
Today is a wonderful day, isn’t it?
 
@BrianWebster Use Reddit only to get hidden gems the recognition they deserve.
@Rapptz You probably just need bigger numbers and/or a more optimized implementation.
 
user142019
I use Minecraft for that.
 
@Mysticial sec I think it's an issue with my code since it printed out the wrong number (lol)
 
@BrianWebster And avoid posting too many silly things on reddit as that feeds the fire on the "over-voted questions" controversy that's been on meta recently.
 
user142019
6:40 AM
Some teachers really are fucking idiots. Instead of directly putting the actual email in the email, they put it in a fucking Word document attachment and tell in the email that the email is in the Word document.
 
user142019
I want to kill those people.
 
@Rapptz Yeah, that's exactly what we want to avoid.
Oh wait, that was you...
 
Honestly, I think a big part of the issue is resolved if closed questions aren't rewarded with publicist badges
 
@Mysticial lol
 
Thinking longer term that is
 
user142019
6:42 AM
> I'm sorry you don't find any of my posts interesting.
 
user142019
Idiotic and irrelevant assumption.
 
I agree
 
user142019
Internet is borked again. Stupid train.
 
> It is interesting, I was wondering how long it would take me to be found out -- about 2 weeks it took I think.
 
user142019
The sun is the center of the universe
 
user142019
6:45 AM
TIL
 
^^ I actually found out when my flops answer started getting upvotes.
I just didn't say anything.
Nor am I the kind person who would call people out for stuff like this.
 
haha. Two good ways to find out. A) nobody gets that badge B) userid sitting right there
 
@BrianWebster That's how I got called out on my 3rd submission.
And ever since then, I didn't dare to do it again.
 
Here's a trick, use goo.gl to hide userid. That doesn't solve A) though
 
When my Pi answer went viral a month ago - that was Bill the Lizard.
@BrianWebster That's generally banned on reddit.
 
user142019
6:47 AM
Many people should be banned from Reddit.
 
user142019
Same for Stack Exchange.
 
@BrianWebster Jeremy Banks did something a little bit more crazy. He created a separate account and got two publicist badges on it. Then he merged it into his main.
 
@Mysticial Didn't know that. Makes sense, the domain rules out a lot of my clicks on reddit. If I don't know it, forget it
 
But if you do that enough, you'll piss off the SO mods.
 
Haha, well now I feel like a novice. +1 for Jeremy
 
user142019
6:49 AM
lol
 
user142019
You piss off the mods already if you post a bug report or a feature request on Meta Stack Overflow.
 
I have 3 Publicist badges from the 3 times I reddited myself. I think that's enough already. If I try to farm anymore, I'm only gonna get both myself and SO in trouble.
 
user142019
Because they have to do ~~effort~~.
 
And besides, I think I've gotten enough attention already.
I'm already at the point where I'm starting to upset a lot of the veteran users because of how many times I've had my answers go viral.
 
user142019
@Mysticial Plonk.
 
6:52 AM
They can relax, it takes a lot of time to put those long answers together and it makes good reading
 
user142019
OMG I MADE AN EPIC FAIL IN MY STARRED MESSAGE I DID PLURAL WITH APOSTROPHE S.
 
That said, if I come up with anymore interesting answers that you think deserves more attention, feel free to link it - as did Bill the Lizard. (I definitely don't mind the attention.)
But make sure it's actually good.
Don't reddit crap.
 
Indeed
 
user142019
Crap must be downvoted and closed and deleted anyway.
 
@Zoidberg By crap, I mean posts that are already overvoted.
 
user142019
6:56 AM
:P
 
@Zoidberg for some reason I'm reading your posts in the voice of a loud drunk. Is that accurate?
 
user142019
@BrianWebster I’m quite a zombie since I just woke up.
 
Hi, anyone good with linked lists?
 
user142019
Yes, me. The first rule with linked lists is that you use an array instead.
 
Just use PHP.
 
6:57 AM
unfortunately i can't use either
its for an assignment
 
user142019
Haha "unfortunately I can’t use PHP". Lolwot.
 
Your assignment does not allow you to use PHP? What?!?! What is this? Sanity?
 
user142019
Oh assignments. I rarely do those.
 
its a straight c++ class
 
Hahaha. Straight C++!
 
user142019
6:59 AM
@Mysticial He obviously means he needs to use the assignment operator on a linked list.
 
Drop the class, switch to philosophy
 
user142019
@JohnTinio It’s probably not C++ but C with Classes.
 
you could be right
 

« first day (852 days earlier)      last day (4089 days later) »