Friday, July 30, 2021

Responsive Design - useful websites

 Useful websites for Responsive Design work:

Statcounter

sizzy.co

Thursday, July 1, 2021

Rails - unregister a Resque worker

workers = Resque.workers.select {|w| w.to_s.include? "942ng"}

workers.each do |w|

  w.unregister_worker

end 

Quantum Communications - Dual band stabilization

https://www.zdnet.com/article/researchers-created-an-un-hackable-quantum-network-over-hundreds-of-kilometers-using-optical-fiber/ 

Excerpt:

To tackle the instable conditions inside optical fibers, Toshiba's researchers developed a new technique called "dual band stabilization". The method sends two signals down the optical fiber at different wavelengths. The first wavelength is used to cancel out rapidly varying fluctuations, while the second wavelength, which is at the same wavelength as the qubits, is used for finer adjustments of the phase. 

Put simply, the two wavelengths combine to cancel environmental fluctuations inside the fiber in real time, which according to Toshiba's researchers, enabled qubits to travel safely over 600 kilometers. 

Already, the company's team has used the technology to trial one of the most well-known applications of quantum networks: quantum-based encryption. 

Known as Quantum Key Distribution (QKD), the protocol leverages quantum networks to create security keys that are impossible to hack, meaning that users can securely exchange confidential information, like bank statements or health records, over an untrusted communication channel such as the internet.  

An Elixir client for the Nu HTML Checker (v.Nu).

 https://github.com/angelikatyborska/vnu-elixir

v.Nu is a document validity checker used by the W3C. It offers validating HTML, CSS, and SVG documents.

This library brings that functionality to Elixir by using the Checker's JSON API. It offers ExUnit assertions for validating dynamic content in tests, Mix tasks for validating static content, and general purpose functions to fulfill other needs.

Supabase with Ionic

https://devdactic.com/supabase-ionic/ 

Supabase is an open source Firebase alternative that’s currently in Beta but getting a lot of great feedback

React Hooks - How does React associate Hook calls with components?

You might be curious how React knows which component useState corresponds to since we’re not passing anything like this back to React.

 https://reactjs.org/docs/hooks-faq.html#how-does-react-associate-hook-calls-with-components

React related - React Query

https://www.reddit.com/r/reactjs/comments/krezz4/redux_context_api_and_react_query/ 

You can fetch data and store it in Redux, but it wasn't purpose-built for that use case. So (as of right now) you have to write most of the fetching and updating code yourself. React-Query, on the other hand, is entirely built to simplify the process of fetching data and caching it, and it's built to take advantage of React hooks. So, if the only thing you're doing is data fetching, React-Query is going to make that a lot simpler.