captain_plaintext

- friends
22 link karma
1,497 comment karma
send messageredditor for
what's this?

TROPHY CASE

  • dust

There have been a lot of misconceptions about Battle.net passwords going around, so I wrote a blog to explain (in gruesome detail) how the login works by iagox86in programming

[–]captain_plaintext 8 points9 points ago

For any given input you can "normalize" the string to a caps-correct version. I think you can just follow these steps to do what Facebook does:

1) Always capitalize the first letter

2) Check if 2nd letter is capitalized. If so, then reverse the case of the 2nd letter and all remaining letters.

So the example strings always get normalized to the same thing:

passWord -> PassWord

PassWord -> PassWord

PASSwORD -> PassWord

The client would first normalize the password input, then hash the normalized version, and send that hash. The server also stores the normalized version. Only need to send 1 hash.

This would be a good interview question!

Edit: One revision in rule 2; we should probably scan to find the next actual letter, in case the 2nd character is a number or symbol.

Awww snap. by carsontlin gaming

[–]captain_plaintext 0 points1 point ago

I guess I'm not sure if the infographic's numbers includes virtual goods in the total sales numbers. The original report that it's based on costs $950 to look at, so oh well.

For that thing about specific games selling more on console, just go to http://www.vgchartz.com and look at sales figures for games that are released on both PC & console.

Mass Effect 3 - 2.2 mill sales on Xbox360, 761k on PS3, 480k on PC

Prototype 2 - 410k sales on Xbox360, 297k on PS3, 17k on PC

Skyrim - 5.1 mill on Xbox360, 3.1 mill on PS3, 1.8 mill on PC

There's more examples out there but I got bored.

Double Fine shows the newest Ron Gilbert game The Cave by Seelenkuchenin Games

[–]captain_plaintext 9 points10 points ago

It's not, it's a game that was already in development when DFA started.

Awww snap. by carsontlin gaming

[–]captain_plaintext -1 points0 points ago

I think the only reason that total PC sales are greater, is that there so many more PC games (it includes all those facebook games).

When you look at specific games that are released on both PC & consoles, the console version generally sells 5x to 10x as many copies as PC.

GitHub for Windows by magnusvadoyin programming

[–]captain_plaintext 5 points6 points ago

But, going open source does limit the ways that you can make money. It doesn't work well with some products. Like, it would be tough to get people to pay for Github Enterprise.

How about we all just agree to not let this become a thing? by TakingADumpRightNowin funny

[–]captain_plaintext 0 points1 point ago

Sorry to hear about that, use protection next time I guess.

What we throw away every night at work... by needdisin pics

[–]captain_plaintext 0 points1 point ago

I think they sell those things for like $5 or $7 each, or something ridiculous like that? You're throwing away hundreds of dollars!

Zynga stock plunges by zakislamin Games

[–]captain_plaintext 5 points6 points ago

Here's a nice graph showing Zynga, Yelp, Pandora, Groupon all taking a hit today.

Yelp got hit pretty bad too, but it's important to single out Zynga, because we hate Zynga.

Zynga stock plunges by zakislamin Games

[–]captain_plaintext 8 points9 points ago

In addition, only 10% of that $100 billion has been made available for purchase, artificially driving up any stock pricings.

AKA How every IPO works.

Jenkins for your GitHubs: BuildHive by agentderoin programming

[–]captain_plaintext 4 points5 points ago

I hate when a site never totally explains what the product actually does. I tried looking for a complete list of what BuildHive actually supports but couldn't find it. Can I build stuff with GCC/Clang?

This seems familiar.... by Supreme1337in gaming

[–]captain_plaintext 2 points3 points ago

But none of that applies to Reddit.

Why I am Creating a Programming Language by TheCorehin programming

[–]captain_plaintext 2 points3 points ago

I agree it's a bad idea today, but I think it was a still good idea to use it back when they were designing C. In order to have a useful language without NULL, you need a lot of functional and type-safe infrastructure, which would have gone against all the properties of C that made it so useful.

Why I am Creating a Programming Language by TheCorehin programming

[–]captain_plaintext 0 points1 point ago

Which is a ridiculous claim; 'null' might have flaws but it's so cheap and useful that it was inevitable.

Minecraft: Xbox 360 Edition has over a million sales in less than a week by Deimorzin Games

[–]captain_plaintext 60 points61 points ago

Good lord, I went and looked up his twitter feed and it is indeed a train wreck. I don't think he understands the concept of PR.

Diablo III Starter Edition & Guest Pass. Play most of Act 1, lvl capped at 13 for free. Too much too soon? by KazumaKatin Games

[–]captain_plaintext 2 points3 points ago

Starcraft 2 also came with a guest pass, not sure what the problem is!

"Oh, you were on the cover of Time as a child? That's so coo- oh... oh god..." by rev_birdin funny

[–]captain_plaintext 5 points6 points ago

Can you be more precise about why you think it's strange? Kids need food too.

"Oh, you were on the cover of Time as a child? That's so coo- oh... oh god..." by rev_birdin funny

[–]captain_plaintext 72 points73 points ago

Breast milk is extremely nutritious even in the first world, it's better than formula. There is even some crazy system where, using hormones or something, the baby's body can communicate what nutrients it needs, and the produced milk is tailored for the baby.

Tributary: sharable visual programming based on Bret Victor's talk by enjalotin programming

[–]captain_plaintext 1 point2 points ago

There's plenty of potential value. Maybe digital artists who are currently heavy users of Photoshop/Illustrator/Flash could instead have a hybrid approach, where they are able to use live snippets of code to generate parts of the scene. Whenever I try to do something artistic I always find that there are some elements that are highly formulaic and could totally be scripted, but I don't bother because of the convenience factor.

Hotcode: a realtime coding webapp with instant visual feedback by tamatin programming

[–]captain_plaintext 3 points4 points ago

There's been activity in this space ever since the days of Smalltalk, with projects like Fluxus, SuperGlue, IxiLang, Pure Data, Field, and more. The Bret Victor video definitely inspired a lot of people, but he was hardly the first guy to think about this stuff!

The genesis of the perfect programming language by steeleduncanin programming

[–]captain_plaintext 5 points6 points ago

It's sort of similar and one thing might fix the other, but parallelization should really be thought of as a separate problem. Parallelization is all about maximizing the utilization of multiple cores, not necessarily minimizing the latency of one task. You could have a highly-parallel program that still makes the UI wait.

Douglas Crockford explains why he removed comments from JSON by eliseosotoin programming

[–]captain_plaintext -1 points0 points ago

You said the answer yourself :)

you are more likely to find a native JSON parser/stringifier.

More people have written JSON parsers than YAML parsers because the grammer of JSON is nice and simple, because it doesn't include extra stuff like comments.

An IDE is not enough by shimeiin programming

[–]captain_plaintext 3 points4 points ago

Thanks! Must have missed when that came out.

Douglas Crockford explains why he removed comments from JSON by eliseosotoin programming

[–]captain_plaintext 22 points23 points ago

Put it another way.. why would we want to make life more complicated for everyone that supports JSON just to support the few people that should probably be using XML or YAML or something else instead. JSON is a great thing and it's the minimal design that makes it great.

An IDE is not enough by shimeiin programming

[–]captain_plaintext 1 point2 points ago

Never released a demo or any code :(

Qt Creator 2.5 RC released with support for autotools projects by mariuzin programming

[–]captain_plaintext 0 points1 point ago

It depends on what you're doing, and what logic you want to put on the server side. But, probably harder. Qt is a client-side toolit, it definitely has facilities for server-side logic, but that support isn't going to be as good as the toolchain of Browser + HTML + PHP.

view more: next