Thanks for sharing!
1,001 karma · joined February 7, 2008
Thanks for sharing!
Well yes, the very feature you described does exist! Sharing your result is available on game over, assuming you didn’t “cheat” (use hints) too much. It looks like this: https://i.imgur.com/kMouvTL.png That uses the navigator.share() API: https://developer.mozilla.org/en-US/docs/Web/API/Navigator/s...
As for traffic: word of mouth, mainly. Posted it on Reddit back then, things like that. It grew organically from that. Also, although it’s far from being on top results on SERP (search engine result pages), some people do find it that way.
I started making this PWA in 2016 and I’ve been slowly adding to it over time. I intend it to stay minimal & lightweight. No framework, etc.
Fun fact: because it is so lightweight, it was included in the Moya app (https://play.google.com/store/apps/details?id=nu.bi.moya), a popular messaging app in South Africa that is “data-free” for users (it does reverse-billing). Now half the players are South Africans!
Feedback is welcome ;-)
FTR, here is a complete Solitaire game in ~30 kB over-the-wire: https://FreeSolitaire.win/
Last time I checked, an update for Microsoft Solitaire was 30 megabytes…
« Il est défendu aux juges de prononcer par voie de disposition générale et réglementaire sur les causes qui leur sont soumises. »
https://www.legifrance.gouv.fr/codes/article_lc/LEGIARTI0000...
https://github.com/PaulCapron/pwa2uwp/blob/master/src/zip.js in its entirety provides a simple intro, with code, to the ZIP format (archiving only, with no compression)
--
According to the W3C, it used to be that:
> a URI was either a URL or a URN.
But now, it’s complicated:
> the view became that an individual scheme does not need to be cast into one of a discrete set of URI types such as "URL", "URN" […]
> Further according to the contemporary view, the term "URL" does not refer to a formal partition of URI space; rather, URL is a useful but informal concept […]
> Thus as we noted, "http:" is a URI scheme. An http URI is a URL.
All the above citations from https://www.w3.org/TR/uri-clarification/
--
The WHATWG holds a different view:
> Standardize on the term URL. URI and IRI are just confusing. […] URL also easily wins the search result popularity contest.
From https://url.spec.whatwg.org/
This may be what the author of the article had in mind.
BTW, jart, let me thank you here: redbean is boldly innovative, refreshlingly witty. An inspiring work of art from a true hacker!
— in C, minimal-style library: https://github.com/richgel999/miniz, look especially at https://github.com/richgel999/miniz/blob/master/miniz_zip.h
— in JS, writing only and no compression: https://github.com/PaulCapron/pwa2uwp/blob/master/src/zip.js (255 lines including blanks & comments)
I myself use 418 as a reply to mean bots. Fun + makes filtering logs easier.
Nginx config snippet:
# Nothing to hack around here, I’m just a teapot:
location ~* \.(?:php|aspx?|jsp|dll|sql|bak)$ {
return 418;
}
error_page 418 /418.html;
Example: https://FreeSolitaire.win/wp-login.php> Card game wasn't a good choice of words.
Well yes, it was: “Card Crawl is a solitaire-style dungeon crawler game played with a modified deck of standard cards.”
Funnily, it’s even advertised as a solitaire game ^^
Solitaire maybe? The classic Solitaire (Klondike Solitaire) is quite playable on phones, even in portrait mode. Self-plug: you can enjoy it in this mobile-first PWA (progressive web app) of mine: https://FreeSolitaire.win/
I have nginx reply with a 418 page to bad bots requests. Funny easter egg. As a bonus, that makes nginx avoid checking the filesystem for inexistent files, and makes filtering logs easier.
Nginx config snippet:
# Nothing to hack around here, I’m just a teapot:
location ~* \.(?:php|aspx?|jsp|dll|sql|bak)$ {
return 418;
}
error_page 418 /418.html;
Example: https://FreeSolitaire.win/wp-login.phpWhile such access is still hard on Android (see https://news.ycombinator.com/item?id=19057673) or impossible on iOS, you on the other hand can easily call all the WinRT APIs from JavaScript if you distribute a PWA on the Microsoft Store.
See https://docs.microsoft.com/microsoft-edge/windows-runtime. There are examples of what these APIs allow you to do on https://www.pwabuilder.com/windows.
BTW, you can use https://pwa2uwp.fragara.com/ to publish a PWA to the Microsoft Store, without needing Visual Studio or even a Windows machine.
Shameless plug: you can use https://pwa2uwp.fragara.com/ to create such a package (an appx package), using nothing but your browser and curl.
– a more detailed post about Brotli: http://textslashplain.com/2015/09/10/brotli/
– a MSDN article on “compressing the Web”, explaining the difference between deflate and gzip, the limitations of browsers, and mentionning zopfli and brotli: http://blogs.msdn.com/b/ieinternals/archive/2014/10/21/http-...
Egalitarian: education is free for all, and richs and poors (normally) go to the same school, the one of their town, until at least 16. Egality of chance.
Meritocratic: but after 16, you go to the university or a grande école according to your abilities/ranks. The best can go to Polytechnique, the good can go to a grande école or a good university, the rest goes to the other universities (and it's still free for all).
It doesn't matter if your parents are poor and if you were born in the country and not in Paris, if you're great you can go to Polytechnique. And no matter how rich the parents, if you suck, you won't go to Polytechnique.
Last § of https://www.tarsnap.com/security.html
Background gradients (if you make a 1-pixel wide button) and button generator: http://dabuttonfactory.com/ (self-plug).
You need MzScheme 4 to run Arc.
See also http://arclanguage.org/install (installation instructions, but a bit out-of-date, it's for Arc 3.0) and http://arclanguage.org/item?id=10254 (Arc 3.1 announcement).
But yes, there are not so many projects using it to my Arc-forum-user knowledge too.
I'm very glad if it can help you learn! It's mainly for this purpose that I code this little thing (and to myself learn Arc doing it :-))
BTW, see also http://lotrepls.appspot.com/, the Lord of the REPLs by Google. You can program in Clojure and Scheme (and also in non-Lisp languages like Ruby) with it.
> put a hook on the "onkeypress" event of the arc textarea for the up and down arrows, so that you can scroll backwards and forwards through the command history
Yep, this is on the TODO list, I'll work on that. Thanks.
For the others: tell me if you're also interested for the patch, but I'll maybe let dfranke test it a bit before to release it (the guy is good; see http://news.ycombinator.com/item?id=639976).