6,537 karma · joined Mar 10, 2011 (15y ago) · 4,332 submissions
HN'er since 2011 when PG responded and was active.
Other companies: NodeSocket, Commando.io, Elastic Byte.
Living in Nashville, Tennessee. Charlie Munger "there are three ways to go broke... liquor, ladies and leverage."
- GitHub: https://github.com/nodesocket
- justin [at] HN-USERNAME {dot} comcomment 7y ago · link · parent
comment 7y ago · link · parent
First, let CloudFlare do 99% of the work. Don't worry about optimizing the linux box, PHP, MySQL, PHP Opcode Cache, WP-Cache at first.
First, let's check that CloudFlare is caching and serving all static assets such as js, css, images, .xml, .ico. I don't see a cache-control header being returned on js, css, images, etc. Make sure this is setup in CloudFlare with Caching Level => Standard and Browser Cache Control => 1 month. Also, consider enabling Auto Minify => Javascript and CSS. Finally enable Brotli and make sure HTTP/2 is enabled under network.
Now, here is where you can really make things fly. It is possible to have CloudFlare cache the result of generated html pages, so requests don't even hit your shared hosting provider. This is done with Page Rules. The trick is going to be crafting a rule that you can match posts and posts only. With my site, I leave .html extension on my files, so my rule is simply:
Your challenge will be creating a matching rule while excluding admin backend pages. Also, most certainly you probably going to want a much lower cache time than 8 hours. My site content does not change often. Perhaps something like 30 or 60 minutes to start.
Good luck, let me know any questions, my contact info is in my profile.
comment 7y ago · link · parent
comment 7y ago · link · parent
comment 7y ago · link · parent
comment 7y ago · link · parent
> In the end, nothing good will come out of this shutdown.
Some people believe increasing border security and funding to reduce crime, reduce sex trafficking, and better protect border agents and law enforcement as good.
[1] https://www.ssllabs.com/ssltest/analyze.html?d=nasa.gov&latest
[2] http://ssllabs.com/ssltest/analyze.html?d=justice.gov&latestcomment 7y ago · link · parent
comment 7y ago · link · parent
comment 7y ago · link · parent
I am a pretty traditional long term investor, $AAPL, Berkshire, Bank of America, Ford, Amazon, AMD, $SPY, with 10+ years in the market. However with the crazy volatility, I have been toying with the idea of buying ProShares UltraPro Short $SQQQ to hedge my losses on big pre-market open down days. Today for example would have been a good day to own $SQQQ for the day (up 7.3%). Any insight on how to go about this hedge strategy using Alpaca? Can I get pre-market quotes for the Nasdaq?
comment 7y ago · link · parent
$1,000 bonus on $150,000 deposit or more
$200 bonus on $10,000 - $149,999 deposit
See https://www.capitalone.com/value2018/. You have to use the promo code VALUE2018 and read the fine print.comment 7y ago · link · parent
- Pricing on GCP is much easier, no need to purchase reserved instances, figure out all the details and buried AWS billing rules. Run your GCP instances and automatically get discounts. AWS reserved instances requires knowing your instance types, knowing that you can purchase the smallest type of an instance class and combine, knowing that you can only purchase 20 reserved instances per zone/per region in an account. So many gotchas.
- GCP projects by default span all regions. It is much easier if you run multiple regions, all services can communicate with all regions. Multi-region in AWS is sort of a nightmare, setting up VPC peering, can't reference security groups across regions, etc..
- Custom machine types. With GCE, you simply select the number of cores you need and memory. No trying to decipher the crazy amount of AWS instance types T2, T3, M5, M5a, R5, R5a, C5, C5n, I3...
- Instance attached block storage is easier to grok and in my experience is much faster than EBS. The bigger the disk on GCE, the more IOPS. No provisioned IOPS madness.
comment 7y ago · link · parent
With the current 2 year treasury being 2.76%, they must making money on fees. I am seriously considering moving my savings from a Capital One money market account that earns 2% to this that earns 3%. That extra percent is decently significant.
1611.
Freelance hackers can get paid $500,000 a year to test defenses of companies(cnbc.com ↗)
1 points · by nodesocket · 7y ago · discuss
comment 7y ago · link · parent
With that said, China has a history of bad behavior, especially with regards to cyber-warfare against US companies.