HNHacker News
TopNewBestAskShowJobs

jotto

1,306 karma · joined March 25, 2007

https://headless-render-api.com/
submissionscomments
jotto··on YC Interviews in NYC
might YC be using geoIP to track location trends of, presumably programmer-types, visiting news.ycombinator.com since ~2005?
jotto··on SimpleSSR: Server-Side Rendering at Scale
I made https://www.roast.io/ because of this.

Most of the current SPA frameworks can re-hydrate SSR'd JS without issue, so instead of configuring SSR, just use a headless browser, which is what Roast does.

jotto··on Show HN: Webpage to PDF Microservice
alternatively if you want a SaaS REST API:

   curl https://service.prerender.cloud/screenshot/https://google.com/ > out.jpg

   curl https://service.prerender.cloud/pdf/https://google.com/ > out.pdf

   curl https://service.prerender.cloud/https://google.com/ > out.html

https://www.prerender.cloud/
jotto··on Page Weight Matters (2012)
2 layers of caching:

1. a configurable cache per URL that defaults to 5-minutes (can be disabled or increased up to 1 month)

2. and non-configurable http caching within chrome (cache-control headers), but since the cluster is auto-scaled, this cache naturally purges every few hours.

jotto··on Page Weight Matters (2012)
I made a SaaS does this: https://www.prerender.cloud/

  curl https://service.prerender.cloud/screenshot/https://google.com/ > out.jpg
and a chrome extension that doesn't return a screenshot, but:

1. disables JavaScript 2. pre-renders the site (executes the JS) 3. returns HTML

https://chrome.google.com/webstore/detail/prerendercloud-dis...

https://github.com/sanfrancesco/prerendercloud-chromeextensi...

jotto··on Headless Chrome support in Cloud Functions and App Engine
Correct, only the final tier is variable rate; apologies for the confusion.

Under 20,000 monthly requests = $9 flat rate ($0.00045)

Under 100,000 monthly requests = $40 flat rate ($0.0004)

>= 100,000 monthly requests = variable rate @ $0.00036/req

jotto··on Headless Chrome support in Cloud Functions and App Engine
note: prerender.cloud just keeps a pool of instances running, so there is no startup latency, compared to Google Cloud functions
jotto··on Headless Chrome support in Cloud Functions and App Engine
...and if browserless ain't your jam, checkout https://www.prerender.cloud/

cheap, because we optimized for just 3 things:

pre-rendering, screenshots, or PDFs for $0.000365 per API request

   curl https://service.prerender.cloud/screenshot/https://google.com/ > out.jpg

   curl https://service.prerender.cloud/pdf/https://google.com/ > out.pdf

   curl https://service.prerender.cloud/https://google.com/ > out.html
jotto··on Google’s Anti-Pentagon Decision Will Kill More People
I think your perspective assumes that nation states should neutralize most threats.

I don't think that's the case, because it ignores blowback.

For example, if a military uses a drone to precision kill enemies in foreign territory 10 times over a 6-month period, what effects does that have on the local population?

It's kind of a philosophical difference.

jotto··on Google’s Anti-Pentagon Decision Will Kill More People
When you have precision weapons, you have options.

But options might not be a good thing (overall) if it means more violence.

Less precise weapons mean more decision friction before a "shot is fired", and that friction before firing a shot might be a net positive overall.

jotto··on Domino's Pizza unveils U.S. infrastructure project filling potholes
Reminds me of how Stephenson describes Los Angeles in Snow Crash

"Los Angeles is no longer part of the United States, as the federal government of the United States has ceded most of its power and territory to private organizations and entrepreneurs"

https://en.wikipedia.org/wiki/Snow_Crash

jotto··on Observations running 2M headless sessions
https://www.prerender.cloud/ - server-side rendering API for single-page apps
jotto··on Favstar will shut down as a result of Twitter’s API changes for data streams
desperate times call for desperate measures:

https://finance.yahoo.com/quote/TWTR/financials?p=TWTR

https://twitter.com/charliebilello/status/989610534801637382

jotto··on How long does it take to linear search 200MB in memory?
Incredible! Will you post a code snippet?
jotto··on Show HN: Copy tweets to Bitcoin's blockchain for $9
http://logo.pizza/
jotto··on Stripe Billing
Previously they only offered tiered billing (e.g.: gold, silver, bronze plans), further, the API for that was structured so you're billing for the next month.

This announcement suggests "usage-based", which is how AWS and Google Cloud bill you: for how much you used during the previous billing period.

jotto··on Cryptographers Urge People to Abandon IOTA After Leaked Emails
...the greatest conqueror in history, a conqueror possessed of extreme tolerance and adaptability, thereby turning people into ardent disciples. This conqueror is money.

from Sapiens: https://books.google.com/books/about/Sapiens.html?id=FmyBAwA...

jotto··on Nobody's just reading your code
No mention of time in the article or in your comment.

With infinite time we could fix a lot of things.

jotto··on You Probably Don't Need a Blockchain
A better title for the content might be: blockchain scaling issues

A better case against blockchains would be exploring the reasons why we shouldn't care about trustless properties that blockchains give us.

jotto··on How to Replace Google's AMP Without Slowing It Down
AMP is like Amazon's listing of 3rd party merchants' products.

It's great for consumers in the short-term but commodifies businesses into an informational API for Google's UX.

> why else would all these search engines do this?

because lower latency increases user activity and search volume

The question you aren't asking is: "What are the long term implications to the ecosystem when Google controls the UX for all 3rd party data?"

jotto··on How to Replace Google's AMP Without Slowing It Down
> Prerendering is only useful for sites where either large amounts of data need to be transmitted, or parsing and rendering is slow.

Agreed. Many of my leads for https://www.prerender.cloud/ end up not using the service after we discover the root cause of slowness was due to an initial, slow, render-blocking XHR request, or in some cases infinite loops that eventually get cut off.

AMP seems to allow sidestepping root cause performance issues by creating a pure version just for Google - it's a growth hack - "don't bother refactoring your app (which would require overcoming organizational inertia), just make a streamlined version for us."

jotto··on Ask HN: What did you work on in 2017?
https://www.prerender.cloud/ it makes server-side rendering for React and Angular easy. Also works with CloudFront via Lambda@Edge - https://github.com/sanfrancesco/prerendercloud-lambda-edge
jotto··on C5 Instances for EC2 Now Available
No pricing info on c5 or whether c4 has changed in either the blog post or https://aws.amazon.com/ec2/pricing/on-demand
jotto··on Show HN: Ready-to-use API to convert any web page to PDF using headless Chrome
Thank you - I had an overaggressive rate limiter for non auth'd accounts, it's _improved_ now.
jotto··on Show HN: Ready-to-use API to convert any web page to PDF using headless Chrome
I've been working on something similar: https://www.prerender.cloud/docs/api

  // URL to screenshot
  service.prerender.cloud/screenshot/https://www.google.com/

  // URL to pdf
  service.prerender.cloud/pdf/https://www.google.com/

  // URL to html (prerender)
  service.prerender.cloud/https://www.google.com/
jotto··on Standalone Signal Desktop
is eul open source?
jotto··on Serverless computing: economic and architectural impact
> Under what traditional model would you spawn off an entire server instance for such a minor function

I think that's the point - would you rather run your own VPS and manage the logs/errors from a cron job? Or simply write code that conforms to their contract and not worry about logs, errors, and whether it can scale or will fail to restart itself.

jotto··on Show HN: Screen.rip – API for capturing web screenshots
$7 per 10,000 is $0.0007 per screenshot

Get it for $0.000365 per screenshot from me (shameless)

[1]: https://www.prerender.cloud/docs/api

  curl http://service.prerender.cloud/screenshot/https://google.com/ > out.jpg
jotto··on Show HN: Screen.rip – API for capturing web screenshots
$7 for 10,000 is not that cheap ($0.0007 per screenshot). I'm charging $0.000365 per screenshot and I thought that was on the higher end.

https://www.prerender.cloud/docs/api

  curl http://service.prerender.cloud/screenshot/https://google.com/ > out.jpg
jotto··on Colly: Fast and Elegant Scraping Framework for Golang
Ditto: https://www.prerender.cloud/docs/api

  // URL to screenshot
  service.prerender.cloud/screenshot/https://www.google.com/

  // URL to pdf
  service.prerender.cloud/pdf/https://www.google.com/

  // URL to html (prerender)
  service.prerender.cloud/https://www.google.com/
← PreviousPage 2 of 7Next →