50 karma · joined Dec 31, 2011 (14y ago) · 28 submissions
comment 5y ago · link · parent
comment 10y ago · link · parent
Then, you reinforce that by using some sort of SSO setup/service (you can outsource this to someone like okta.com if necessary), so that all internal systems never have a place to set a password. (e.g., don't make people set up separate accounts with passwords on the corporate jira or bitbucket server)
Basically, not training people to reuse passwords internally can help them to not reuse their one internal password externally.
Another possibility is to simply buy a password manager subscription for every employee and have it as a perk. That's a per-employee overhead of $20-30/year.
comment 10y ago · link · parent
It's shameful that it's so much easier to find tutorials on how to store passwords "securely" (including several tutorials that tell you crazy insecure things, like storing with unsalted commodity hashes) than it is to find tutorials on how to integrate your brand new battling-fairies website game with OAuth for authentication.
comment 10y ago · link · parent
Do all login through OAuth or the related proprietary "login with" mechanisms Facebook and Twitter have. Offer your users a choice of mechanism, in the signup flow, and don't require that they first set up a password that they then replace with login-with-(whatever).
If you can't imagine what this looks like, open an incognito browser and go through the signup-for-an-account flow at stackoverflow.com. That should be what you're aiming for.
comment 10y ago · link · parent
comment 10y ago · link · parent
comment 10y ago · link · parent
Your second one will take longer than it would have in PHP or J2EE or whatever else you're used to building web stuff in. It will, like the first, also be ugly but unlike the first project will eventually work. It'll also fall over catastrophically early on, but will be salvageable. Once past its initial deployment/perf issues, it'll sit and hum away quietly in a corner with much less care and feeding than traditional web technologies. (Though you'll keep wanting to go back to it, because it's more fun to work in that than whatever else you're working on)
The third production Haskell project will come together much more quickly. Unfortunately, by this time you'll probably be bringing other people on and this will be their first big Haskell project. (See above about what happens to first big Haskell projects) So the parts delegated to other programmers will fail to work, and there will need to be lots of hand-holding and discussion of type design at first.
Selling management on this is indeed difficult. I'll admit that I'm still not clear on how we sold the first (failed) project to management or how I convinced my boss to let me use Haskell a second time. I mean, I was there, but I don't know how I did it.
comment 11y ago · link · parent
The original 32K regex pointed to in the stackexchange problem statement however is perfectly correct.
Test code:
open(F, '< /tmp/q.in');
$myre = <F>;
chomp($myre);
$myrecomp = qr/^(?:$myre)$/;
while (<>) {
chomp();
if (m/$myrecomp/) {
print "$_\n";
}
}
Examples of multiples of 7 not matched by the given regex: 70, 707, 7007, 11095(I spent all morning trying to find the bug in my regex compiler based on the assumption that the answer there was correct)
comment 11y ago · link · parent
At that age, your code is going to be a mess no matter what tools you use, so you might as well have an excuse.
(Seriously: there's some brain development that doesn't happen until the close of puberty, and I believe that some of that is necessary for most people to plan and write maintainable code)
comment 11y ago · link · parent
- Mathematics (at the extreme high levels)
- Musical composition
- Classical music performance
- Painting/Visual arts
- Speaking most languages
- Jedi Knight
comment 11y ago · link · parent
Right now, bitcoin is like a country with a minuscule GDP ( * ) and absolutely no currency controls (and no possibility of such, ever). As many small countries have learned the hard way, the worst thing for your economy's and currency's stability is US and Euro-based foreign currency traders deciding that your currency is a "hot" one to trade in.
When history looks back on why bitcoin failed, I suspect a big part of it will be the SEC's decision to allow large Wall Street firms to speculate in BTC as much as they wanted to.
Now, a robustly anonymous exchange network with value pegged to something external - say, a cryptocurrency backed by EUR, USD, or actual grams of gold - that would be something different. That would likely be made illegal, either explicitly or by having nearly every transaction run the risk of a federal money laundering charge.
( * ) The GDP of bitcoin-land would be the sum total of all goods and services bought and sold with bitcoins in the course of a year.
comment 11y ago · link · parent
http://en.wikipedia.org/wiki/Interracial_marriage_in_the_Uni...
Note that the "Approve" line doesn't cross the "Disapprove" line until the mid-1980s, long after the USSC had spoken. With same-sex marriage on the other hand, the "Approve"/"Disapprove" cross-over happened a bit over three years ago and the USSC has yet to speak as definitively as it did in Loving v. Virginia.
(One could argue that in invalidating most of DOMA, the USSC has already spoken strongly - if not definitively - in favor of same-sex marriage, and therefore that we should use that decision when making analogies to Loving. I'm not sure about that.)
comment 11y ago · link · parent
One consequence is that yet another way to pick a point uniformly on the sphere is to choose z ∈ [-1, 1] uniformly, then choose λ ∈ [-180°, 180°) uniformly and use the point
(cos(λ)*sqrt(1-z*z), sin(λ)*sqrt(1-z*z), z)comment 11y ago · link · parent
{-# LANGUAGE MonadComprehensions #-}
import Data.Maybe (fromMaybe)
import Data.Monoid (mconcat)
import Control.Applicative ((<*>))
pam = flip map
fizzbuzz i trigs = pam [i..] $ fromMaybe . show <*> mconcat . trigs
ans = fizzbuzz 1 $ \i -> [["Fizz" | i `rem` 3 == 0]
,["Buzz" | i `rem` 5 == 0]
]
main = mapM_ putStrLn $ take 100 anscomment 11y ago · link · parent
I personally thought that my two entries were pretty amusing: http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-talk/... and http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-talk/...
comment 11y ago · link · parent
Even if you undo that, code generation tools are liable to at some point traverse a dictionary without caring about whether the result is deterministic. I spent some time at Google fighting with antlr to try to get it to have deterministic output and I still think that I left some corner case uncovered.
comment 11y ago · link · parent
Rather, imagine her shouting it out at a mall on a day when the mall is relatively empty. (So that she had reason to believe the audience tiny, but still broadcast it) Unfortunately for analogy-world Justine, a news crew was downstairs shooting B roll for background and she's there clearly visible and audible in the corner of the screen, and the clip got leaked. That's the analogous real-life situation.
comment 12y ago · link · parent
Have you seen this guy's shots? I've tried taking pictures of ants and other insects and it takes lots of luck or lots of shots that you throw out to get something even vaguely decent. Even then, nothing I've ever done looks anywhere near as good as the stuff this guy was pointing to as stolen. (And some of those shots likely required getting up close to insects in uncomfortable positions, all while trying to not interfere with the light or scare the buggers off)
26.
What is truth?(dtm.livejournal.com ↗)
1 points · by fizbin · 13y ago · discuss
comment 13y ago · link · parent
I'm not quite sure how to work that - maybe sue them as some sort of accessory to fraud, though that would probably first require the university charging cheating students with fraud.
comment 13y ago · link · parent
I always found that oddly specific - they clearly acknowledge that people will use the site to pay someone to do class projects, and get better grades by doing so, and they very much don't care so long as it doesn't determine whether the buyer graduates.