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

Follow up in 2015 with essentially the same conclusions:

"Acetylsalicylic Acid Daily vs Acetylsalicylic Acid Every 3 Days in Healthy Volunteers: Effect on Platelet Aggregation, Gastric Mucosa, and Prostaglandin E2 Synthesis"

https://accp1.onlinelibrary.wiley.com/doi/abs/10.1002/jcph.6...


Thanks for sharing this!


Nor do most folks using it. Which isn't totally novel: I have almost no idea how an internal combustion engine works. But I do know enough to realize that it's not appropriate to drive my car on a bike path.


Same use case (math-heavy, no-javascript blog), but I ended up with a _slightly_ different approach: instead of converting to SVG, convert to MathML. Browser support is pretty robust, and the output is much nicer (e.g. preserves fonts).

https://sathomas.me/blog/site/


In my experience the MathML support is still mediocre, especially on Chrome.

https://fred-wang.github.io/MathFonts/mozilla_mathml_test/


Thnx for sharing!

With Safari (standard and tech preview) the rendering looks strange (at least). The root sign does not have a strait line at the top (for many fonts) and at least the partial derivative is not rendered as italic (for all fonts).


That test page doesn't seem to use any features current Chrome doesn't support. Or do you just mean that the appearance isn't identical to the TeX rendering even if you use a font like Latin Modern?


It improved a little bit from what I remembered (on Chrome it had problems displaying multi-line brackets), it still has some inaccuracies tho

https://imgur.com/a/83lSuYn


Same here [1], I chose MathML as it worked out of the box in some browsers at the time. For browsers not supporting MathML I also have this ~80kB (~12kB compressed) library for converting it [2]. I tested your equation:

    \def\d{\mathrm{d}}
    
    \oint_C \vec{B}\circ \d\vec{l} = \mu_0
    \left(
      I_{\text{enc}} +
        \varepsilon_0
        \frac{\d}{\d t}
        \int_S {\vec{E} \circ \hat{n}}\; \d a
    \right)
It could not do the definition, so it ended up being:

    $$\oint_C \vec{B}\circ \mathrm{d}\vec{l} = \mu_0
    \left(
      I_{\text{enc}} +
        \varepsilon_0
        \frac{\mathrm{d}}{\mathrm{d} t}
        \int_S {\vec{E} \circ \hat{n}}\; \mathrm{d} a
    \right)$$
I did previously also load the LaTeX equation font, but I decided it used a lot of resource for little gain in the end.

I was also looking at your recent blog [3], and one thing that I like about mine is that the code you see is what is run to produce the output [4]. I am in the middle of making the code interactive too, so that you can re-compile it within the web page and run different parameters to produce different outputs.

[1] https://coffeespace.org.uk/projects/mathml-render.html

[2] https://github.com/pshihn/math-ml

[3] https://sathomas.me/blog/robuststats/

[4] https://coffeespace.org.uk/projects/wavefront-algorithm.html


What does it mean that it preserves fonts? Presumably the body font on my website won't also support math typesetting, right? Or at least, not in a way that's as nice looking as the tex default?


MathML is part of HTML5 and standardised by ISO/IEC since 2015. It is supported by all major browsers and supports voicing as well as braille output.

This is the way to go.


The equation number is overlapped with the equation. Tested with Cromite, Firefox on Android.

[0]: https://postimg.cc/G8NHRT3w


Also preserves more semantic information!


I still haven't found a way to coax MathML into looking the way I want it... Even using the same fonts (like Computer Modern or its descendants) there's still something not quite the same as LaTeX-drawn math. It's a nitpick but noticeable for me.


Survey from a company that's in the business of AI coding and thus has a monetary interest in promoting the technology. No details on who conducted the survey (the company itself?) or how the 609 respondents were selected. If limited to the company's own customers, massive selection bias. The results may or may not reflect reality, but this "report" is just marketing bullshit.


I dunno, it kind of accurately reflects the view that in capitalist firms employees are resources, e.g. to be exploited.

I'd vote for the old terminology: Personnel Department.


I am a resource for my kids, my spouse, and the rest of my friends and family. I am also a resource to my employer and other customers.

In any organization, a resource can vary from things such as land, chemicals, machines, humans, books, etc.

The term Human Resources seems accurate to a refer to a group of people that deal with the humans in the organization.

I do not see why “resources” is seen as having a negative connotation in this context. Of course, just like a family can mistreat a resourceful family member, so can any organization mistreat a human resource.


> I dunno, it kind of accurately reflects the view that in capitalist firms employees are resources, e.g. to be exploited.

Not that accurate, in my view: a resource is something that's a positive thing to be exploited.

"Human resources" in most companies are not there primarily to exploit the employee to their full potential/productivity/burnout level. They're there to protect the company from the employees!


That’s true but also a bit reductionist. And even in that regard, what they federally do is assist managers. So, for example, if a manager has an underperforming team member HR will ensure that manager follows process in applying performance management so that the manager follows process and doesn’t expose the company to liability.

Beyond this they’re also often key players in recruitment marketing, employer branding, hiring and selection, understanding the broader employment market to ensure pay and benefits are inline with desired industry norms, health and wellbeing, and the list goes on.

None of this is ever perfect and, of course, we can all think of companies where it’s been highly dysfunctional.

But, nonetheless, claiming all they do is protect the company from employees is still too reductive.


I agree with your entire response except this:

> But, nonetheless, claiming all they do is protect the company from employees is still too reductive.

I didn't claim that that is all they do; I'm claiming that that is their primary purpose.


I think Cory Doctorow described said eng manager as a "human crumple zone" that serves to absorb the blame for failures.


Apple Keynote.


If the ads that Apple shows me in the App Store, Apple News, etc. are supposed to be personalized, then Apple is really, _really,_ *really* bad at personalization. They're clearly not extracting any meaningul private information (or public information, for that matter) about me at the moment.


It doesn’t. After a response, you can ask it for its sources, but it will just make stuff up.

Out of curiosity I asked it a microbiology question. It gave a reasonable but rather anodyne response. When I asked for the sources, it provided two plausibly sounding papers, with titles, authors, etc. neither of which actually exists.


Well, it’s been more than 24 hours without a peep from Twitter. Seems like a legitimate bug/failure would have at least been acknowledged by now.


Twitter was down in NZ and Australia for something like 16h recently with no official communication and no status update. It's the new normal.


Twitter has for years had an antagonistic relationship with third party apps, heavily restricting API access.

Then Elon comes along and bans mere links to third party social networking profiles (only rescinded because of the outcry).

While we can't prove that this is a duck yet, it's certainly a waddling object that is quacking like crazy.


> Twitter has for years had an antagonistic relationship with third party apps.

Twitter has antagonistic relationships across the board now, both internally and externally.


There's literally no comms people left to communicate it, and it seems like Musk's fellow shareholders have finally sufficently threatened him to get him to shut up.


I was a teenager once and sometimes you just don’t come up with something (you think is) clever to say.


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

Search: