News for hackers. Stuff that matters.

throwaway2568

Re:Open-Sourcing our Firmware on Friday January 21, 2022 @03:17PM (#30029397)
High battery drain during standby on Linux can be due to the system not entering the proper sleep state. I had this happen to me on an AMD machine lately, in that case disabling secure boot solved the issue.

Here is a pretty detailed blog post in checking if that is the problem and how to deal with it on intel systems

https://01.org/blogs/qwang59/2018/how-achieve-s0ix-states-li...

Re:PDM: A Modern Python Package Manager on Thursday December 09, 2021 @09:43PM (#29505868)
Suprised there is so much love for Poetry. Having only used it sparingly (and having some dependency issues with it at the time) I do not see the benefits over conda (miniforge version to easily avoid anaconda) or mamba if you care about speed.
Re:IBM unveils 127-qubit quantum processor on Tuesday November 16, 2021 @06:37PM (#29247654)
The Devs producer met with the Google team in Santa Barbara (which works on very similar superconducting qubits), so it should look very close!

That said the whole hovering in free space thing was perhaps a bit over the top in the show.

https://qz.com/1826093/devs-creator-alex-garland-describes-t...

Capasso's [1] group has been working on projects like this for a couple of decades. It falls within the realm of work on metasurfaces. At a high level you can consider the silicon working in a sub wavelength regime, so that the optics interacts with an effective material which is engineered by changing the geometry of the sub wavelength features. They recently launched a startup [2] to commercialise the developed capabilities.

[1] https://scholar.google.com/citations?user=CmpEzW8AAAAJ

[2] https://www.metalenz.com/

Thanks for the response and context. I work in a different domain to data science and it's fair to say that most people I work with would prefer writing a few 10s of lines of python than many pages of SQL!

Regarding your second point, looking at streamlits announcements page [1] it seems many features being added, layouts/themes and session state/callbacks for example, indicate to me that streamlit is heading in the direction of panel/dash more than the other way. Streamlit also emphasizes using decorators for caching [2], which I agree can end up with some overall state that is a bit magic.

Overall I think the optimal use cases are a bit different for the sets of tools, and I find the approach of dynamically calculating a full script for every change of a slight widget quite onerous, and actually just not feasible for the use cases I have.

[1] https://blog.streamlit.io/tag/announcements/

[2] https://blog.streamlit.io/six-tips-for-improving-your-stream...

I would still recommend panel, it is perfectly straightforward to make a clean UI in pure python and the "depends" approach to interactivity works just by adding decorators to functions. You can prototype in either notebooks or scripts, particularly with the auto reload feature which I believe is inspired by streamlit.

Here is an example https://panel.holoviz.org/gallery/layout/distribution_tabs.h...

Voila is quite nice but I find panel [1] is the best option these days. It has plenty of widgets, including those from Voila which can be used as a backend, a few different ways of defining callbacks and has added nice features lately like autoreload if you are using scripts instead of notebooks [2] and new fast HTML elements so it's super easy to define custom widgets straight from the web. They have a discussion page comparing the project to the standard alternatives (dash, streamlit, voila etc) [3]. The docs could do with improving but their discourse is very active [4].

[1] https://panel.holoviz.org/getting_started/index.html

[2] https://github.com/holoviz/panel/pull/1983

[3] https://panel.holoviz.org/about/comparisons.html

[4] https://discourse.holoviz.org/c/panel/5

Yeah, first realised this when it became clear that all the "breakthrough infections" (with the 0.1% rate for fully vaxed) were actually "breakthrough hospitalizations" and that the US was not actually tracking the former consistently.

For the second point I guess it depends on the jurisdiction, there was a nice chart from the CDC in an Ars article indicating how you should still expect a relatively higher rate of vaccinated people in hospital when the vaccination rate is high (and also less people in hospital overall!).

https://arstechnica.com/science/2021/08/pandemic-of-unvaccin...

In Ontario they are quite open about most details, you get breakdowns like what you describe daily and a nice dashboard from the science table.

https://www.cp24.com/mobile/news/ontario-sets-new-multi-mont...

https://covid19-sciencetable.ca/ontario-dashboard/

Re:Very fast rocket on Saturday August 07, 2021 @04:23PM (#28101514)
Looks nice, I used a more complicated version during undergrad for a physics lab. It was great as you could explore length contraction, time dilation etc, and also had toggles for enabling some of the really crazy relativistic effects. https://people.physics.anu.edu.au/~cms130/RTR/

Turns out it relied on GPU acceleration at the time to work (even at low Res). https://arxiv.org/abs/physics/0701200

Might be interesting for someone to port it to a browser version

Re:Plotly.py 5.0 on Monday June 21, 2021 @08:51PM (#27586658)
Plotly is quite nice but I find Dash's use of HTML for layouts a bit forced. For dashboards I have been using Panel, which supports plotly plots, which keeps things closer to pure python https://panel.holoviz.org/index.html

The Devs recently added support for templates which can handle dynamic layouts (i.e drag and drop). https://panel.holoviz.org/reference/templates/React.html#tem...

Will likely pop up on Ian's YouTube channel (techtechpotato) sometime soon. The one leading into this chat about Tenstorrent has nearly been up for a week https://m.youtube.com/watch?v=sMvudTBBQNw
This article is not that clear (there is no frequency shift occuring). As others say, the authors are using speckle imagery, which relies on the wavevector of the illuminating beam (rather than the frequency). By adding the hyperbolic metamaterial the authors can access wavevectors beyond the diffraction limit, so that once they do the appropriate prost processing achieve super resolution imagery.

It's not directly related but reciprocal space and Fourier imaging is quite interesting for those that are not aware of it (such as estimating the size of a crystal lattice by looking at the diffraction pattern)

Protons and electrons are both Fermions, which means they can not have identical quantum numbers (have to obey the Pauli exclusion principle as mentioned elsewhere in the thread). In the case of a very dense system, like the sun, this can lead to an effect known as degeneracy pressure (which acts against gravity). Essentially you have filled all the lower quantum numbers and then adding an extra proton/electron to the system requires a certain amount of energy. It's quite handwavy but the degeneracy pressure of electrons is mostly what keeps a white dwarf from contracting, whereas in the case of a neutron star it is the degeneracy pressure of neutrons (plus repulsive strong force and other effects as indicated in the OP). This kind of high level discussion is often covered in first year astronomy courses auditing a MOOC like the following may be of interest (https://www.edx.org/course/astrophysics-the-violent-universe)