https://thoughtbot.com/blog/rails-refactoring-example-introduce-null-object
Similar good Rails articles at - https://thoughtbot.com/blog
Below command will take a backup of the file and substitute v1alpha1 with v1beta1
sed -i .bak -e 's/v1alpha1/v1beta1/' ~/.kube/config
Build Uber Eats with React Native & YELP API | Redux | Firebase | Google API
Let's build Uber 2.0 with REACT NATIVE! (Navigation, Redux, Tailwind CSS & Google Autocomplete)
Checklist app in SwiftUI using Core Data - Part 1
Jul 19, 2021
https://www.youtube.com/watch?v=6qtUL8Qgmcw
Checklist app in SwiftUI using Core Data - Part 2
Jul 21, 2021
Counter Cache
https://rubyinrails.com/2019/04/10/rails-counter-cache-associations/
https://scoutapm.com/blog/how-to-start-using-counter-caches-in-rails
For many-many association:
https://coderwall.com/p/muvy9w/forget-counter-cache-for-many-to-many-associations-in-rails
https://stackoverflow.com/questions/5256897/counter-cache-with-has-many-through
1) Single-use Modules are probably better off as Classes as per the below article.
https://www.cloudbees.com/blog/when-to-be-concerned-about-concerns
By and large, maintainers tend to agree that smaller composable classes are the best way to isolate code and keep things clean.
....
....
I'm not saying that you need to go out and refactor all your single-use modules into classes. I am saying if you find yourself reaching to do a module-method extraction, stop. Consider what road you're starting down and these lessons I've shared. What would a class-based extraction look like instead?
2) https://blog.appsignal.com/2020/09/16/rails-concers-to-concern-or-not-to-concern.html
3) https://api.rubyonrails.org/v5.0/classes/Module/Concerning.html
4) https://scoutapm.com/blog/rails-concerns - sort of consolidates content from the above articles
https://rubyflow.com/ - Links to articles
https://www.speedshop.co/blog/ - Rails performance blog
https://software.rajivprab.com/2021/12/26/our-engineering-principles-and-best-practices/
Draft Pull-Requests
For each pull-request, first create a draft pull-request, demonstrating the proposed implementation at a high level. Use TODOs and placeholders to indicate which classes/methods you will be touching. Send it off for review and then immediately start working on the actual code and tests.
This mitigates the amount of wasted effort, if your reviewer then suggests a completely different way of implementing things. Once your reviewer approves the draft, link to it in your pull-request, to make sure everyone knows what was already discussed and agreed on.
https://betterprogramming.pub/swiftui-2021-the-good-the-bad-and-the-ugly-458c6ee768f9
Episode 91: “Is SwiftUI ready for production?” with special guest David Smith
(Feb 2021)
Violence Detection in Video Using Computer Vision Techniques
https://www.cs.cmu.edu/~rahuls/pub/caip2011-rahuls.pdf
Fast Violence Detection in Video
https://labicvl.github.io/docs/pubs/Oscar_VISAPP_2014.pdf
Deep Surveillance Detecting Violence with Neural Networks
https://towardsdatascience.com/deep-surveillance-6b389abeaf95
Useful websites for Responsive Design work:
Statcounter
sizzy.co
https://stackoverflow.com/questions/979256/sorting-an-array-of-objects-by-property-values
Similar technique can be used to sort an array of arrays.
workers = Resque.workers.select {|w| w.to_s.include? "942ng"}
workers.each do |w|
w.unregister_worker
end
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.
https://www.codesdope.com/blog/article/priority-queue-using-heap/
https://www.codesdope.com/course/algorithms-introduction/
https://www.codesdope.com/course/data-structures-introduction/
http://web.eecs.utk.edu/~leparker/Courses/CS302-Fall06/Lecture_notes/09-26-Priority-queues-1.pdf
https://sites.fas.harvard.edu/~libs111/files/lectures/unit9-3.pdf
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.
https://devdactic.com/supabase-ionic/
Supabase is an open source Firebase alternative that’s currently in Beta but getting a lot of great feedback
https://candland.net/rails/2019/03/13/rails-turbolinks-not-firing-js-on-load.html
https://github.com/turbolinks/turbolinks/issues/489#issuecomment-529434261
https://stackoverflow.com/questions/14703627/websockets-protocol-vs-http
Below is a talk by Srushtika Neelakantam related to 'realtime' stuff.
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
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.
I made a program which track your face movements and converts them into keyboard actions using the Pigo face detection library. from r/programming
https://doc.rust-lang.org/book/ch00-00-introduction.html
There is another book called "Rust By Example"
(both these books can be accessed by typing "rustup doc")
an explorable systems programming course that uses #rustlang and #webassembly for interactive playgrounds and visualisation. It starts with network programming, but it will be expanded to more topics!
https://stackoverflow.com/a/5188364
git branch --sort=-committerdate # DESC
git branch --sort=committerdate # ASC
Url to get sample json data - https://jsonplaceholder.typicode.com/posts