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

The issue goes beyond access and into whether or not the data is "trusted" as the malicious prompts are embedded within the data. And for many situations its hard to completely trust or verify the input data. Think [Little Bobby Tables](https://xkcd.com/327/)


Curious to see Apple using real black as background on their home page but rgb(29, 29, 31) for their black text.


That's how it should be – for images, #000000 is fine, but for text, you'll want slightly lower contrast (between #101010 and #222222)


I think the designers are coming from the CMYK world of newspaper printing and such, where, due to alignment issues, text must be printed using a separate black ink ("K" black) even though it could theoretically be produced by mixing Cyan/Magenta/Yellow. This is due to the difficulty of perfectly aligning three different color plates, as well as imperfections in the ink.

In printed photographs, on the other hand, all four inks can be mixed to produce a darker black than is seen in the surrounding text ("rich" black). Thus, in newspapers, the contrast ends up being higher in photos than in text.

But this is due to limitations of paper printing technology--none of this applies to computer displays, where R/G/B components are always perfectly aligned.


Even in digital media, you might want a 10000:1 contrast in photos, videos and games, but you only want 10:1 in text.

It's not reasonable to constantly change your monitor's settings, especially when you want to display both in the same document.

With HDR content, this is already possible, full brightness in an HDR video will be far brighter than #ffffff in css.

But even for regular media, this is an issue, which is why you should configure your screen for the maximum possible contrast and then reduce contrast of text in software.

If you set text to maximum contrast, you need to reduce contrast in your monitor settings, which then also affects photos (which you obviously don't want).


It's a lot easier for the user to reduce contrast than to increase it.


Decreasing dynamic range, increasing the contrast, is trivial. But once the dynamic range has been compressed, you can't get it back.

You can always tomemap towards more contrast, but never back towards more dynamic range.


> Decreasing dynamic range, increasing the contrast, is trivial.

How would I do this on MacOS or Windows?

Most people have one adjustment easily available--the screen brightness setting. This setting can decrease the contrast of pure black/white text, but it cannot increase the contrast of off-black/white text. Same with the Night Light setting on Windows 11.


> How would I do this on MacOS or Windows?

Ideally you'd create a proper icc profile for your monitor. The ideal way is to use a calibration device, but both OS have a wizard where you can manually adjust contrast and brightness and generate a profile out of that.

This can be used to both increase or decrease contrast.


I would expect Apple tuning their website to their displays.


O L E D


FYI re Dash & HTML - If you aren't using your own stylesheets with HTML, then I'd recommend dash_bootstrap_components.

Here's an example that uses almost entirely higher level components: https://dash-bootstrap-components.opensource.faculty.ai/exam...

We've also been working on `dash.templates`, which provide opinionated, prebuilt UIs - no layout code required: https://community.plotly.com/t/introducing-dash-labs-dash-2-...


Plotly's 3D viz is built with WebGL & SVG, using libraries like regl & stack.gl. SVG is used for axes & text and WebGL for the high performance rendering of points and surfaces. Surfaces, lines, points, and subplots are all supported. See https://plotly.com/python/#3d-charts.

For more complex 3D objects, Dash users can use dash-vtk. This includes things like point clouds, CFD simulations, 3D mesh, or 3D images.


Hello HN! Nice to see this up here. Chris here, cofounder of Plotly.

Falcon is open source and works without an internet connection or a Plotly Chart Studio account. Falcon wires together our graphing library plotly.js (https://github.com/plotly/plotly.js/), the plotly.js chart editor (https://github.com/plotly/react-chart-editor), Electron, and some open source NPM packages for connecting to databases.

Just FYI - As a company (Plotly), we're spending most of our development effort these days on Dash Open Source (https://github.com/plotly/dash) and Dash Enterprise (https://plotly.com/dash). Truth be told, we found that most companies we worked with preferred to own the analytical backend. We also heard many stories of organizations running into roadblocks with off-the-shelf SQL or BI tools (Falcon included!). Our approach with Dash is to provide the visualization and application primitives so that you could build your own tailor-made dashboards, analytical apps, or yes, even SQL editors.

If you want to read more about where we're at, here's an essay we wrote last week on Dash: https://medium.com/plotly/dash-is-react-for-python-r-and-jul...


Any reason the Github page advertises Windows and Mac but not Linux? I saw that its built in Javascript and checked the releases page,you guys built a Linux version too. Is it just something that, while possible, you don't want to support officially with more than a build?


ReadMe has been updated with link to the Linux AppImage, now that I'm back at my desk.


Just an oversight :)


Thx for your pivottable.js, especially the jupyter notebook extension.


You're welcome! I'm glad you like it :)

I wish I had more time to work on the Jupyter version but Plotly Express and the JupyterLab Chart Editor keep me pretty busy at Plotly these days!


Hi, just wanted to thank you for pivottable.js which I'm using since 6 years ago. I discovered today you're at plotly, I started using dash this year :)


I'm so glad you like it! Have you checked out the upgraded React version? https://react-pivottable.js.org/

There's even a Dash wrapper now: https://community.plotly.com/t/show-and-tell-dash-pivottable...


I'll try it in dash, my other project is still a jquery thing for the foreseeable future :D


I love it. The fact that one tool and with separate tabs you can connect to multiple database is the best feature. Thank you.


I actually like plotly.js, it seems to be one of the only good alternatives to R‘s Shiny library. Still, I prefer to keep JavaScript libraries inside a web browser.


Hey ! I'm a very young engineer working with dash oss, it's a great lib (with plotly) ! Keep the good work


Can we login to a remote database through ssh ?


There’s no feature specifically for this but you can sometimes use an SSH tunnel and connect to localhost and have it work out. YMMV :)


Feature Request: Chrome Extension


hey Chris

Why would I use dash rather than jupyter notebook with inline plotting?


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

Search: