Hacker Newsnew | past | comments | ask | show | jobs | submit | hypothete's commentslogin

If you're not in a Node.js context, the Canvas API does a decent job of rasterizing SVGs nowadays. Once rasterized, you can call canvas.toDataURL() to get a download link. Here's a demo:

https://codepen.io/hypothete/pen/WNvKLEE


I used to have troubles with retina displays, I always got a blurred image, no matter to what trick I tried. Is there a way to fix the rendering pixel ratio to 1?


The usual approach with canvas for high dpi is to increase the size of the canvas and then scale it back down afterwards: https://codepen.io/graup/pen/jOPpopR


This downloads 200x200. How to scale it back to 100x100? Ideally so that the image is the same no matter the display where it was exported on. Also I would like to not need to include any image processing libs. The usecase is to export a HTML element (e.g. a chart) and send to another API (e.g. attach it to a report), without downloading.


Does the css need to be inlined?



Yup this is the problem. Workable but painful.


So that would mean that the right side is tipped slightly away from us, right? Because the matter in the accretion disk starts approaching us at about halfway down the ring on the right side?


Yes, from paper 1:

"Third, adopting an inclination of 17° between the approaching jet and the line of sight (Walker et al. 2018), the west orientation of the jet, and a corotating disk model, matter in the bottom part of the image is moving toward the observer (clockwise rotation as seen from Earth). "


A further improvement would be to switch your CommonJS-style imports and exports out for ES6 notation. This allows for more native interoperability, and works fine with Webpack.

  export const Constants = { version: '1.0.0' };

  // in another file
  import { Constants } from './Constants.js';


You've got it right, Ultima Thule is what's called a contact binary: https://en.wikipedia.org/wiki/Contact_binary_(small_Solar_Sy...


Login required. Is there another way to see the content?


I feel you on implementation - every time I make an attempt to try out ActivityPub I get intimidated by the combo of JSON-LD and the verbosity of Activity Streams vocabulary: https://www.w3.org/TR/activitystreams-vocabulary/


I've been working on an ActivityPub implementation and there are so many edge cases and SHOULD vs MAY recommendations, it's ridiculous. I'm planning a separate blog post on the intricacies of the standard.


I banged my head against this issue quite a bit last year. Specifically the thing that tripped me up, is how many fields can either have single value or be a list of values, and figuring out what is meant semantically when it's a list or a single value.


This is exactly what frustrates me the most and what most of my logic checks. I'm writing tests for each of these semantic cases, but it seems silly to me that a standard leaves something so ambiguous.


This is why the go-fed project uses code generation.


I was homeschooled for most of my K-12 education, and unschooled in different degrees during that time. At best, unschooling can encourage a child to dig deep for new ideas, and involve them in activities that build on that knowledge. It can also be a great supplement to more typical subject-based homeschooling, and encourage cross-disciplinary thinking.

But unschooling requires serious engagement on the part of the parent as well. I've seen unschooling families get lazy and end up with 18-year old ballerinas who can't do times tables to save their life, or physicists-to-be who might seem advanced to their parents, but get to college and find themselves far behind their peers. The parents' worldview and involvement can easily become a constraint for their child's growth.

I would also caution potential homeschoolers to be mindful of how they frame their choice when they talk to their children. Making it about the child or taking a strong us v. them stance against other options can be very isolating for the child, especially if they ever feel like they're not getting the education they want at home. Be moderate in your explanations, and leave the door open if you can.


“I would also caution potential homeschoolers to be mindful of how they frame their choice when they talk to their children. Making it about the child or taking a strong us v. them stance against other options can be very isolating for the child, especially if they ever feel like they're not getting the education they want at home.”

Great point. This was one of my concerns I had having spoken to some of the teens who had been educated like this. They all seem to have a kind of “us versus them” mentality against traditional schooling.

“But unschooling requires serious engagement on the part of the parent”

Yep it is much easier to just send your kid to school and make their learning someone else’s responsibility.

“I've seen unschooling families get lazy and end up with 18-year old ballerinas who can't do times tables to save their life”

Would you care to provide details on this? Over email if you would like to avoid a public forum.


> They all seem to have a kind of “us versus them” mentality against traditional schooling.

Well, watching a retired public school teacher get huffy and start chomping at your mother about how she's ruining her child can be a polarizing experience.


The "Jupiter as a shield" hypothesis has been questioned recently: https://phys.org/news/2016-02-jupiter-role-planetary-shield-...


That's fair enough, the point I tried to make is: Statistically, we would expect our solar system to be average among solar systems that can support intelligent life, not among all solar systems (following the Anthropic Principle). Therefore, the difference we see between our solar system and the average star system might imply something about what kind of conditions make intelligent life more probable in a star system.

If we see that in all star systems we know that evolved intelligent life (even if there's only 1 we know of) there is a large Jupiter-like planet, and that's very atypical among star systems, that suggests that Jupiter might have increased the probability that intelligent life evolved here.


Outside of Queen, Brian May is an astrophysicist, and his specialty is interplanetary dust composition. It's always cool to see him jumping in and sharing science with those who know him for his music career.


This article's thesis is "we improved our business by being deliberate about culture", but unless I'm missing something it doesn't say how they were deliberate at all. I feel like if you're going to make an assertion like that, you should say how you accomplished your goals.


Consider applying for YC's Summer 2026 batch! Applications are open till May 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: