Hacker Newsnew | past | comments | ask | show | jobs | submit | kentwistle's commentslogin

Looks good but can’t play on iPad due to lack of right click.

You win if there are no more fields without mines.

added support for ipad using long press for flags

Doesn't seem to work on iPhone. I suggest having a button to toggle between mine marking mode and regular mode - I used that on my own little vibe-coded minesweeper clone here: https://tools.simonwillison.net/minesweeper

good call, added it

iPhone user here, the toggle button works but it’s a pain to have to keep scrolling back to it to toggle when you are zoomed in

The tie-in with Apple is what doomed the littoral combat ship program. Things got better once they shifted to xbox controllers.

sounds like it's more realistic that way

Long press flags on touch screens


FAQ says "What's the file size limit?: 10 GB."

Tried to upload a 9.66 GB test file but am getting following error message

"File Size Limit This file is too large. The largest file size that can be uploaded is 1.25 GB"

What am I doing wrong?


This was due to an old client-side limit that hadn't been updated.

It's been changed and you can now upload files up to 10.2 GB, thanks for pointing it out.


Looks like either a type on their page or code. Because 10 Gb == 1.25GB. Mixing bits and bytes somewhere


The page states 10 GB (not Gb). To be completely correct the precise limit is 10.2 GiB.


I selected the wrong SSH key to add to my server and now have to wait 2 hours to rectify my mistake.

Cool service though!


Found out about this today, you can prepend any GitHub username with .keys to fetch their public keys.


What can this be used for? I'd love to display my GPG key there instead but I guess that's not possible.


Have you seen https://keybase.io/ that's an ideal place for your GPG keys (and more) :-)


I can't tell if it's finished yet:

> Keybase will be a public directory of publicly auditable public keys.

Nor do I understand why I'd use it. Do lots of people post GPG encrypted messages to each other on gist?


It's an attempt to solve the key distribution problem. By having you verify your keys on third party sites, a MITM or NSL attack (providing you with fake keys so your messages can be intercepted) gets a lot harder as you have to attack n sites simultaneously instead of one.


as an alternative to ssh-copy-id ?


Yepp, and there is already an existing tool, which currently supports GitHub as well as Launchpad.

http://manpages.ubuntu.com/manpages/trusty/en/man1/ssh-impor... https://launchpad.net/ssh-import-id


you mean you can append any GitHub username


This is the underwater dive pool referenced http://i.dailymail.co.uk/i/pix/2007/08_01/38MHouseES_468x477...


Am I only the only one that doesn't find 'All tests in 4 minutes, all model tests in 80 seconds' very impressive? It sounds like a really long time to me.

You know what could increase the speed dramatically.... decoupling.

I also think decoupling phrased in the context of the Rails 2 to Rails 3 upgrade, where pretty much everything changed, makes perfect sense. Imagine just having a few wrapper classes that spoke to Rails and only having to adapt them. Sounds good to me!

Bernhardt: Boundaries http://www.confreaks.com/videos/1314-rubyconf2012-boundaries

Weirich: Decoupling from Rails http://www.youtube.com/watch?v=tg5RFeSfBM4

Wynne: Hexagonal Rails http://www.youtube.com/watch?v=CGN4RFkhH2M


You know what has a high chance of introducing a crap ton more bugs? Unnecessary code. :)

Also, did you read the rest of the post? Typical test cycles are much faster than that. But a full test of the entire system takes some time. As it should.

This is also why the test suite for git takes a long time, but has a very good signal to noise ratio.


> You know what has a high chance of introducing a crap ton more bugs? Unnecessary code. :)

If only that "unnecessary code" had tests... Oh wait.


At some point, you will find you have bugs in the tests. It isn't like that code is magically immune to mistakes.

Not to mention you have increased the workload of everyone just to mitigate the impact of additional code. Let me know how that works out for you. :)


Slightly more complex code with tests beats code with no tests every time, and it works just fine. Having 1 more class or function call is not exactly what makes an impact on workload. If you are optimizing your application by reducing function calls you are doing it wrong. But tell me, how does not having tests work out for you? Can you modify old applications, or applications that you didn't develop alone, with a high degree of certainty that you didn't break things in the least expected places?


At no point was it declared there were no tests. So... different topic?

Seriously, straw men not withstanding, this thread is specifically about tested code where a complaint was raised about how long the tests take. And the "how long" was only 4 friggin minutes for a full suite, or 4 seconds for a module.


Five minutes of tests really isn't such a big deal. Not long enough to bother re-architecting a bunch of stuff. But what frustrates me is that DHH seems to bullheadedly continue believing that problems they haven't had with Bootcamp simply aren't real problems. Bootcamp isn't all that big an app, so it isn't particularly surprising that the tests run that quickly. But once you get up into the high tens of minutes for unit tests, and the low hours for a full suite including end-to-end tests, it becomes really really annoying. Changing the architecture isn't going to help much or at all with those end-to-end tests, but it's easy to find yourself thinking "boy I wish we could at least get a bit of confidence in the correct functioning of our application in the face of this little change in less than half an hour - I wonder how we could accomplish that?". The three common answers once you find yourself wondering that are "let's parallelize our tests in the cloud!", "let's reduce external coupling in our tests!", and "let's make small services so any given change affects only a few tests!". All of those answers have fairly tough trade-offs.


> Am I only the only one that doesn't find 'All tests in 4 minutes, all model tests in 80 seconds' very impressive? It sounds like a really long time to me.

I don't really mind if a given branch is marked red on CircleCI. master must always be green, but a branch, not so much.

Say I change a model. I'll probably run the unit test for that model (4 seconds), then just push up the branch and forget about it. 9 times out of ten, I didn't break any other tests and everything's fine. Once in a while, I did, and 3-4 minutes later Circle via HipChat let's me know I need to check it again.

It's a bit meta, but this process is just like actual Rails apps—when the task can happen asynchronously in the background, it usually doesn't matter if it takes a couple minutes.


In a 30 KLOC rails project I find those numbers acceptable. Also you are unlikely to run the full suite after every editor save. Even Jim Weirich runs a single test file and not the full suite.


Its not supposed to be impressive, its supposed to be quick enough to provide a reasonable feedback cycle, with the ability to run specific tests that is drastically reduced, you make a few changes, run the relevant tests (they can run automatically via watching), tests pass you are happy, if its an intrusive change you might want to run the full suite before pushing, then when you push CI runs a far more exhaustive set of tests (possibly across patforms), these can happily take a lot more time.

It differs very much across projects, full pouchdb test suite takes ~4 minutes, full firefox test suite takes hours, for rails ~4 minutes sounds entirely reasonable (kinda faster than I would expect) and wouldnt give me no reason to think about reducing the coverage and reliability of the tests by decoupling anything.


It kinda feels like you didn't read the whole way through.

He mentions per model, which is what you're doing while doing dev, it's 4 seconds.


Yes it is too slow. After having taking the time to build a decoupled Rails application I can tell you that having tests run in under 2 seconds has been a great help in refactoring and allowing us to quickly add new features. I can't imaging how we'd add new features without it.


"Am I only the only one that doesn't find 'All tests in 4 minutes, all model tests in 80 seconds' very impressive? It sounds like a really long time to me."

No.


He will be sorely missed :(


I have had success with StumbleUpon https://www.stumbleupon.com


Free or paid?



You might want to reconsider that one...


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: