https://www.educative.io/courses/grokking-adv-system-design-intvw
Monday, June 28, 2021
Sunday, June 27, 2021
Friday, June 25, 2021
Sunday, June 20, 2021
Thursday, June 17, 2021
Wednesday, June 16, 2021
Tuesday, June 15, 2021
Sunday, June 13, 2021
Quantum Communications - Dual band stabilization
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.
Saturday, June 12, 2021
Priority Queue Using Heap
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
Wednesday, June 9, 2021
Wednesday, June 2, 2021
Monday, May 31, 2021
Saturday, May 29, 2021
Tuesday, May 18, 2021
Wednesday, May 12, 2021
Monday, May 10, 2021
Monday, May 3, 2021
Saturday, May 1, 2021
Friday, April 30, 2021
Sunday, April 25, 2021
Saturday, April 24, 2021
Saturday, April 17, 2021
Friday, April 16, 2021
Tuesday, April 13, 2021
Saturday, April 10, 2021
Wednesday, April 7, 2021
Tuesday, April 6, 2021
Monday, April 5, 2021
Sunday, April 4, 2021
Friday, April 2, 2021
Sunday, March 28, 2021
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.
Saturday, March 27, 2021
Friday, March 26, 2021
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
Thursday, March 25, 2021
Wednesday, March 24, 2021
Tuesday, March 23, 2021
Saturday, March 20, 2021
Thursday, March 11, 2021
Turblolinks related
https://candland.net/rails/2019/03/13/rails-turbolinks-not-firing-js-on-load.html
https://github.com/turbolinks/turbolinks/issues/489#issuecomment-529434261
Tuesday, March 9, 2021
Friday, February 26, 2021
Saturday, February 20, 2021
WebSockets vs HTTP : when websockets is better and why was it implemented
https://stackoverflow.com/questions/14703627/websockets-protocol-vs-http
Below is a talk by Srushtika Neelakantam related to 'realtime' stuff.
Sunday, February 14, 2021
Friday, February 12, 2021
Tuesday, February 9, 2021
Monday, February 8, 2021
Wednesday, February 3, 2021
Tuesday, February 2, 2021
Monday, February 1, 2021
Thursday, January 28, 2021
Monday, January 25, 2021
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
Friday, January 22, 2021
Monday, January 18, 2021
Sunday, January 10, 2021
Wednesday, January 6, 2021
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.
Tuesday, January 5, 2021
Monday, January 4, 2021
Saturday, January 2, 2021
Friday, January 1, 2021
Wednesday, December 30, 2020
Sunday, December 27, 2020
Saturday, December 26, 2020
Friday, December 25, 2020
Thursday, December 24, 2020
Wednesday, December 23, 2020
Friday, December 18, 2020
Monday, December 14, 2020
Wednesday, December 9, 2020
Tuesday, December 8, 2020
Thursday, November 19, 2020
Program to track your face movements and converts them into keyboard actions using the Pigo face detection library
I made a program which track your face movements and converts them into keyboard actions using the Pigo face detection library. from r/programming
Wednesday, November 18, 2020
Tuesday, November 17, 2020
Sunday, November 15, 2020
Tuesday, November 10, 2020
Sunday, November 1, 2020
Friday, October 30, 2020
Tuesday, October 13, 2020
Monday, October 12, 2020
Sunday, October 11, 2020
Wednesday, October 7, 2020
Monday, October 5, 2020
Thursday, October 1, 2020
Wednesday, September 30, 2020
Monday, September 28, 2020
Saturday, September 26, 2020
Wednesday, September 23, 2020
Tuesday, September 22, 2020
Monday, September 21, 2020
The Rust Book
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")
Sunday, September 20, 2020
Systems Programming - Low-Level Academy
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!
Tuesday, September 15, 2020
Saturday, September 12, 2020
Tuesday, September 8, 2020
git - list branches ordered by most recent commit
https://stackoverflow.com/a/5188364
git branch --sort=-committerdate # DESC
git branch --sort=committerdate # ASC
Saturday, September 5, 2020
Thursday, September 3, 2020
Wednesday, September 2, 2020
Tuesday, September 1, 2020
Url to get sample json data
Url to get sample json data - https://jsonplaceholder.typicode.com/posts
Monday, August 31, 2020
Sunday, August 30, 2020
Saturday, August 29, 2020
Phoneix LiveView & iOS app
https://twitter.com/stevegraham/status/1264304523826216960?s=21
"The iOS part is a simple swift app that loads a webview with some simple code to pass messages between native and web lands. The webview is Phoenix LiveView, i.e. server side rendered HTML with events and DOM diffs going back and forth over the Phoenix websocket."
Friday, August 28, 2020
Thursday, August 27, 2020
Wednesday, August 26, 2020
Monday, August 24, 2020
React - Thought/Idea
Look for a way to outline components created by developers of a team
i.e. differentiate between components given by a Framework (like Antd) and components added by a team's developers.
Sunday, August 23, 2020
CSS - inline-block vs table-cell
https://stackoverflow.com/questions/15939896/css-inline-block-vs-table-cell
Excerpt 1:
You'll also find the gap between block when you apply
display: inline-block;
Re-size your window by pressing Ctrl key and scrolling with mouse scroll button to see differences.
Notice the
vertical-align: middle;is not working asdisplay: table-cell;indisplay: inline-block;.
Exceprt 2:
Set line-height equal to element height and vertical-align will work for inline-block.
Saturday, August 22, 2020
CSS: Guides to Flexbox, Grid
https://css-tricks.com/snippets/css/a-guide-to-flexbox/
https://css-tricks.com/snippets/css/complete-guide-grid/
Excerpt:
Flexbox layout is most appropriate to the components of an application, and small-scale layouts, while the Grid layout is intended for larger scale layouts.
Absolute vs. Relative — Explaining CSS Positioning
React - handleChange() - using event.persist() and computed property names
Using event.persist() and computed property names
Wednesday, August 19, 2020
Monday, August 17, 2020
Wednesday, August 12, 2020
Tuesday, August 11, 2020
Monday, August 10, 2020
Sunday, August 9, 2020
Saturday, August 8, 2020
Tuesday, August 4, 2020
Sunday, August 2, 2020
Saturday, August 1, 2020
Tuesday, July 28, 2020
Sunday, July 26, 2020
MobX State Tree
EggHead.io free course - https://egghead.io/courses/manage-application-state-with-mobx-state-tree
React Hooks - useState hook & callbacks
https://stackoverflow.com/questions/56247433/how-to-use-setstate-callback-on-react-hooks
https://stackoverflow.com/questions/53253940/make-react-useeffect-hook-not-run-on-initial-render
https://reactjs.org/docs/hooks-reference.html#uselayouteffect
Saturday, July 25, 2020
MobX & React Hooks
https://www.youtube.com/watch?v=oQiMXRsO4o4
Dec 2019 Intro to Mobx & React in 2020
https://www.youtube.com/watch?v=pnhIJA64ByY
Dec 2019 React Hooks + MobX TodoList
https://levelup.gitconnected.com/react-hooks-mobx-todolist-c138eb4f3d04
Dec 2019 Replacing Redux with Observables and React Hooks
https://blog.betomorrow.com/replacing-redux-with-observables-and-react-hooks-acdbbaf5ba80
https://dev.to/ryands17/using-mobx-with-react-hooks-part---2-8ac
https://medium.com/@suraj.kc/mobx-strategies-with-react-hooks-3de23932cb8c
June 2020 A State management comparison with React hooks, mobx and recoiljs
https://medium.com/@dbottiau/a-state-management-comparison-with-react-hooks-mobx-and-recoiljs-3b7e2f4cc6c3
June 2020 How to use React with MobX and Hooks - Note Taking App Tutorial
https://www.youtube.com/watch?v=MKNls_FReXI
React & JS Cheatsheets by Reed Barger
https://codeartistry.io/the-react-2020-cheatsheet/
Friday, July 24, 2020
Refactoring and the Art of Improvement
Here are some common suggestions that sound reasonable, but set different thresholds:
- Refactor when the cost of refactoring is less than the cost of not refactoring. (Sounds good, but how can you make that calculation?)
- Refactor before adding new features if it will make it easier to add those features.
- Ignore ugly code once. But refactor if you stumble over the same pain point twice.
- Refactor opportunistically. Clean things up whenever and wherever you get the chance.
- Refactor if you can make the change quickly (say, within a day).
- Only refactor when the pain of leaving it exceeds the pain of fixing it.
- Refactor immediately after shipping. (A great idea with very little likelihood of actually being followed.)
Thursday, July 23, 2020
Wednesday, July 22, 2020
Advice from Marcelo Bielsa
Tuesday, July 21, 2020
Monday, July 20, 2020
Sunday, July 19, 2020
GoRails episodes to watch
https://gorails.com/episodes/direct-uploads-with-rails-active-storage?autoplay=1
How to use Uppy with Active Storage
https://gorails.com/episodes/uppy-with-active-storage?autoplay=1
How to use Bootstrap with Webpack & Rails
https://gorails.com/episodes/how-to-use-bootstrap-with-webpack-and-rails?autoplay=1
How to use Javascript via Webpacker in Rails 6
https://gorails.com/episodes/webpacker-javascript-in-rails-6?autoplay=1
How to use ActionText in Rails 6
https://gorails.com/episodes/how-to-use-action-text?autoplay=1
Webpacker Javascript Embed Code Snippet & Scoped Styles
https://gorails.com/episodes/embeddable-javascript-widget-part-6?autoplay=1
Embeddable Javascript Comments Widget Models - Part 1
https://gorails.com/episodes/embeddable-javascript-widget-part-1?autoplay=1
VueJS JWT Auth with Rails APIs and LocalStorage
https://gorails.com/episodes/vuejs-jwt-auth-with-rails-api?autoplay=1
How to build APIs with Rails
https://gorails.com/series/how-to-build-apis-with-rails
Saturday, July 18, 2020
Friday, July 17, 2020
URI issue after attempting to run Rails server with completely new app
Error: uninitialized constant URI::Generic,
NameError: uninitialized class variable @@schemes in URI
https://stackoverflow.com/questions/59495309/uri-issue-after-attempting-to-run-rails-server-with-completely-new-appThursday, July 16, 2020
Wednesday, July 15, 2020
Monday, July 13, 2020
Popular React UI Component Libraries And Frameworks
2019 Feb - https://designrevision.com/react-component-libraries/
2020 March - https://blog.logrocket.com/top-10-react-component-libraries-for-2020/
2020 June - https://www.codeinwp.com/blog/react-ui-component-libraries-frameworks/
Sunday, July 12, 2020
Friday, July 10, 2020
Linux - Splitting & Joining a file
Splitting:
split -l 1000000 full_file.dat
Output is - xaa, xab, xac
Joining:
cat xab >> xaa
cat xac >> xaa
Note: At the lines where the files are joining, the ending line of part1 and 1st line of part 2 will be concatenated on the same line. We'll have to open the file in vi and just enter a newline in those places.
Thursday, July 9, 2020
Tuesday, July 7, 2020
Monday, July 6, 2020
Sunday, July 5, 2020
React - Hooks & Redux related
Additional considerations when using hooks
There are some architectural trade offs to take into consideration when deciding whether to use hooks or not. Mark Erikson summarizes these nicely in his two blog posts Thoughts on React Hooks, Redux, and Separation of Concerns and Hooks, HOCs, and Tradeoffs.
https://blog.isquaredsoftware.com/2016/10/idiomatic-redux-why-use-action-creators/
Friday, July 3, 2020
Online tool to plot a line
https://www.rapidtables.com/tools/scatter-plot.html
Wednesday, July 1, 2020
ES6 Computed Property Names
// Computed property names (ES2015)
let i = 0
let a = {
['foo' + ++i]: i,
['foo' + ++i]: i,
['foo' + ++i]: i
}
console.log(a.foo1) // 1
console.log(a.foo2) // 2
console.log(a.foo3) // 3

