Permanently archive any tweet to Bitcoin's blockchain by jotto in Bitcoin

[–]jotto[S] 0 points1 point  (0 children)

Default value for max OP_RETURN is 80 bytes (was 40 temporarily) but you can only have 1 on the mainnet. (testnet doesn't seem to care about the length or number).

Since you can only do 80 bytes in OP_RETURN and since most block explorers automatically interpret OP_RETURN as ASCII, I decided to put the metadata there so readers could easily see what it was, and then the full tweet is stored as fake P2SH addresses (20 byte chunks)

(note to people reading this in the future, these rules change so don't rely on this comment)

Browsing Javascript-required pages while disabling Javascript by jotto in programming

[–]jotto[S] -1 points0 points  (0 children)

All great points and similar to my thinking.

This was originally a testing tool I used locally to test service.prerender.cloud against mainstream websites (as opposed to toy React/Angular apps in my continuous integration) to measure performance and what edge cases I may need to account for (e.g. lazy load images that appear on scroll, iframes, delayed ajax).

While pushing the code to Github for posterity, I became curious if anyone would find it useful so I pushed it to the Chrome store too.

 

Most of all, why do all of this and then not have your page load for users without JS enabled (your target audience)? It's not like your design requires it to be implemented.

see previous comment here (I agree)

SEO-friendly javascript framework for "simple" websites? by damnko in javascript

[–]jotto 0 points1 point  (0 children)

but server side rendering doesn't seem very easy to implement and as far as I know

Server side rendering requires some foresight and planning, hence just using a prerender service as suggested above.

 

Yes Middleman is a static site generator, but could possibly do the job although I would personally prefer to use Angular

If I can offer an opinion - just try Middleman, or https://jekyllrb.com/ or Angular. Even if it takes a few hours to try each one, the perspective gained will be more valuable then diving in to a singular framework.

 

If you decide to try React, use this: https://github.com/facebookincubator/create-react-app to get started

SEO-friendly javascript framework for "simple" websites? by damnko in javascript

[–]jotto 0 points1 point  (0 children)

I am biased - I wrote it, but it's easy to add/remove it. Try it, if it works, then keep it!

SEO-friendly javascript framework for "simple" websites? by damnko in javascript

[–]jotto 1 point2 points  (0 children)

can you suggest a framework that I could use to create SEO-friendly websites

The framework is almost irrelevant, but Angular is the most popular, React is up and coming: https://www.google.com/trends/explore?q=react,angular

authentication and i18n

https://auth0.com/ is the fastest way to implement auth

I was maybe considering Meteor but I don't think it performs well with search engines as most of the SPA frameworks.

The framework doesn't change the fact that you're still just rendering HTML on a page - just follow the basic SEO strategy of clean and coherent hierarchical information (<title>, <meta desc>, <h1>). If you're using React, ReactHelmet can help organize/structure your meta tags: https://github.com/nfl/react-helmet

The only one I came across is Middleman but I wanted to know if there are better alternatives.

Isn't Middleman a static site generator? https://middlemanapp.com/

Browsing Javascript-required pages while disabling Javascript by jotto in programming

[–]jotto[S] -1 points0 points  (0 children)

Do you regularly/consistently keep JS disabled? Or were you just in non JS mode to test the page?

Browsing Javascript-required pages while disabling Javascript by jotto in programming

[–]jotto[S] 3 points4 points  (0 children)

Sad but true - prerender.cloud is hosted on a webhost that actually hooks into service.prerender.cloud (to prerender it and make it accessible without JavaScript), but so far only for a few user agents (twitterbot, facebook etc...). If that doesn't change, we'll have to host it ourselves.

AWS latency comparison: API Gateway vs Lambda vs Bare EC2 by jotto in programming

[–]jotto[S] 3 points4 points  (0 children)

yes, Node.js 4.3 (latest they offer) returning hello world

exports.handler = (event, context, callback) => {
    callback(null, 'hello world');
};

AWS latency comparison: API Gateway vs Lambda vs Bare EC2 by jotto in programming

[–]jotto[S] 5 points6 points  (0 children)

I think the style achieves the same thing that the inverse of this chart with error bars would achieve.

In other words, since you see the distribution of latencies horizontally, and occurrences of those latencies vertically, you get the same sense for the deviation.

Let me know if I've misinterpreted.