Better HN
topnewbestaskshowjobs
Log inSign up

gregable

1,271 karma · joined Sep 17, 2010 (16y ago) · 380 submissions

http://gregable.com/
Submissions

comment 9y ago · link · parent

Sure, but then the attacker can draw the fields within the 'visible' document, but below the 'fold'. If the browser chooses not to fill fields like that, it breaks a lot of autofill on long pages. Those two cases aren't significantly different.

comment 10y ago · link · parent

That's under the control of the publisher, so it's up to them to make decent amp versions of their pages, it's not a fundamental limitation of the format. Agreed though that in some cases, these sites are throwing up an amp version that is simply inferior.

comment 10y ago · link · parent

Potentially. However, <noscript> tags can be used to deal with some of this. Most web pages probably won't do this though.

comment 10y ago · link · parent

I'm fairly sure there is only one solution.

comment 10y ago · link · parent

I reversed the order of the arrows, but I'm not sure about flipping the glyphs. Those are the standard unicode glyphs for rotation arrows, I didn't want to use any images on the page. I suppose I could use CSS to invert them.

comment 10y ago · link · parent

I added 20 pixels of left margin to the puzzle, let me know if that helps. I think it depends on screen resolution, I'm not seeing the same thing. If it's still causing you trouble Cntrl +/- should work for resizing the page too.

comment 10y ago · link · parent

Awesome, thanks! I've added attributions on both the blog post and the puzzle page. It's a really fun puzzle, the author of it definitely deserves credit.

248.

Regular Expression Crossword Puzzle(gregable.com ↗)

148 points · by gregable · 10y ago · 35 comments

249.

Regular Expression Crossword Puzzle(gregable.com ↗)

5 points · by gregable · 10y ago · 1 comment

comment 10y ago · link · parent

The <link> tag is similar in browsers to a meta tag, it doesn't cause browsers to take any behavior, so this doesn't cause a ping to any server. The AMP HTML version of a page does require a javascript src to make these transformations, but that's cached, so you aren't going to send a ping to request it on every page load.

The AMP version of a page doesn't add any banner or other visual style, the author has full control there. Here's an example, just pulled at random:

Original: http://www.nytimes.com/2015/12/17/theater/broadway-is-gettin...

HTML Mobile: http://mobile.nytimes.com/2015/12/17/theater/broadway-is-get...

AMP: http://mobile.nytimes.com/2015/12/17/theater/broadway-is-get...

comment 10y ago · link · parent

> how much faster is it than ad-blocked webpages?

Poke at it out yourself to get a feel for the answer. Find any recent article on any site of one of these publishers that have enabled AMP pages. You can find a list on https://www.ampproject.org/ or any AMP-enabled site you find. Once you've found an article/web page, view source. Look for a line in the html that reads:

<link rel="amphtml" href="AMP URL HERE">

If you don't find that tag, the article is not AMP enabled, so find another article that is.

Now, grab the URL at that href attribute and compare it to the original non-AMP URL you started at. Turn on/off ad-blockers, use a cold cache / hot cache, have fun. Don't forget that this comparison is not including the additional speedup gained from using the AMP Project (Google's) CDN.

comment 11y ago · link · parent

Two URLs are optional. You can make one page that is AMP valid and point link rel=canonical to self. This is still useful as it helps avoid multiple URLs for the same resources a.l.a. www.foo.com vs foo.com and ?meaningless_parameter.

comment 11y ago · link · parent

Agreed PVWatts is more accurate, and it's what a solar installer is actually likely to use when doing a roof assessment. But to use PVWatts you need to input things like the tilt and orientation of your roof, the size of the system you want to build, the cost of power from your provider, inverter efficiency, etc. This asks for your address and your monthly electricity bill to give you a rough estimate, both of which homeowners are much more likely to know.

comment 13y ago · link · parent

I'm particularly interested in the promise of no keyboard mouse or monitor based wifi registration of the Pi. It doesn't seem like this is complete though. I'd love to see a Raspbian version that, if it detects a wifi dongle, automatically starts an open ad-hoc network usable for configuring the rest of the connection. Something like the way Nest or Chromecast bootstrap.

comment 13y ago · link · parent

If I understand their graph, they are generating about 0.29 BTC / day with this. Current BTC exchange is $118, so $34.22 revenue / day. At 44W, they'll spend ~1kW/day on power so only around $0.10 or so depending on where their power is coming from. So their break even point is somewhere around 8 days if I have everything correct.

It seems that if these devices can be produced at scale, the marginal cost of mining 1 BTC will be only about $0.30 for now, thereby possibly pushing down the market price for BTC significantly.

comment 13y ago · link · parent

This makes me sad.

comment 13y ago · link · parent

It may be 10 years old, but it's still what's being sold: http://www.amazon.com/Rain-Bird-ESP-4M-4-Station-Controller/...

comment 13y ago · link · parent

While not exactly the same thing, one can use an encryption password for their sync data. The password is not sent to Google and must be entered individually on every chrome installation: http://support.google.com/chrome/bin/answer.py?hl=en&ans... This has largely the same effect.

comment 13y ago · link · parent

$10 seems like actually a very good price for LED bulbs, especially if they work as advertised. Add in a 10yr warranty and it seems like a no brainer. Cree isn't a little startup or anything either, it's an established LED manufacturer.

comment 13y ago · link · parent

Nice. One issue is that the common idiom of cntrl+f is going to be broken with this. Would be awesome if the table supported a search box of some sort.

comment 14y ago · link · parent

Great way to do marketing. It's not only interesting and engaging, but also actually useful regardless of whether or not you buy their product.

comment 14y ago · link · parent

The cost may still be a little too far out, but what about requiring breeders to register the dog's DNA sequence in some database. If the dog is found as a stray, a large fine is imposed on the breeder or the most recently registered owner. The fines could go towards programs for neutering and finding homes for strays. If particular breeders are frequently coming up as strays, they could loose their breeder license, etc. Of course to play my own devil's advocate, the risk here is that the owners who have lost interest in keeping a pet kill the animals instead of releasing them.

comment 14y ago · link · parent

I work for big tech company. I reply to recruiters that I'm having too much of a great time where I'm at (true), but they seem like an effective tech recruiter and would they be interested in joining [big tech company]?

Most say no, though one did toy with the idea but it didn't happen. The no's seem to get a kick out of the unique response though.

comment 14y ago · link · parent

Though it could be read from several disks simultaneously / cached to flash/RAM and other neat tricks to improve I/O bandwidth.

comment 14y ago · link · parent

A few guesses other than the man in the middle one. One is that China might then just block Google ssl requests completely. Another is that if China did block Google ssl requests completely, it would also break any other google.com services already on SSL, such as gmail. Though of course google could host these on different domains to solve that problem.

comment 14y ago · link · parent

Option based compensation usually has a strike price at the value of the company around the point of hiring. Options are more volatile than stock. If the share price drops further, the options would be worthless. As the share price rises, the option value rises even faster.

comment 14y ago · link · parent

I'm not an android developer, but I am curious. Why is it that testing on dozens/hundreds of platforms is considered essential for cell phones, but not for PCs? Is android just that much worse at abstracting hardware than traditional OS'es?

comment 14y ago · link · parent

It sounds like in principle it might also reduce fraud overall. Thus, maybe 80% of the fraud goes away and 20% remains, but that liability is shifted to the consumer rather than the bank (who otherwise passes it to the merchant anyway). If the merchant has reduced fraud liability, they may be able to offer lower prices. So, in principle there might be a long-term win for the consumer. In practice, who knows.

comment 14y ago · link · parent

Another related perspective on earth oceans. Take a thimble of water and pour it into the ocean. Allow sufficient time for it to evenly mix. Now scoop a new thimble of water out of that ocean. Your new thimble will have several molecules from the original thimble of water.

Orders of magnitude and all that. To me though this shows how connected all of our resources are and how dangerous pollution can be.

comment 14y ago · link · parent

While I don't disagree with your overall sentiment, most "high speed" internet connections have rather limited upload speeds which can have some limiting factor on peer-to-peer activity (including piracy).
1
8910
13