Saturday, May 30, 2020
Monday, May 25, 2020
VUECONF US 2019 | Vue 3: What I'm Most Excited About with Chris Fritz
Below is a Youtube comment by: Prashanth Krishnamurthy
Here's an outline of the video. Vue 3 - harder, better, faster, stronger. Trends - Simpler and more explicit. List of things that Chris Fritz is excited about: 1. Reactivity caveats are gone. You can do this now - arr[index] = newVal; 2. Multiple root nodes
4. No more automatic attribute inheritance. Explicitly pass arguments using v-bind="$attrs" You don't have to use inheritAttrs: false (since it will never be true).
5. v-on will compile to attributes. E.g @keyup compiles to on-keyup. Just v-bind = "$attrs" ($attrs will incl. all non-emitted listeners) No more $listeners. No more .native modifier for v-on.
6. v-model will compile to attributes. Again, just v-bind = "$attrs". No more overriding the native input event. No more model option.
7. Smarter v-model on components If you want to move 'select' to a component. {{ choice }}
8. Simpler render functions render(h) { return h(BaseInput, { modelValue: this.searchText, onModelUpdate: newValue => { this.searchText=newValue; }, class: this.$style.searchInput, placeholder: 'Search' }) } Vue3 migration will be easier through automatic migrations (where the intent is clear).
Saturday, May 23, 2020
VS Code customize sidebar
https://stackoverflow.com/questions/35774918/vs-code-customize-sidebar
The only ways to scale various parts of the UI currently are through the overall zoom level (window.zoomLevel) and the editor's font size (editor.fontSize).
Tuesday, May 19, 2020
Figma - collaborative design tool like Invision, Sketch
Figma
Adopt
Figma has demonstrated to be the go-to tool for collaborative design, not only for designers but for multidisciplinary teams too; it allows developers and other roles to view and comment on designs through the browser without the desktop version. Compared to its competitors (e.g., Invision or Sketch) which have you use more than one tool for versioning, collaborating and design sharing, Figma puts together all of these features in one tool that makes it easier for our teams to discover new ideas together. Our teams find Figma very useful, especially in remote and distributed design work enablement and facilitation. In addition to its real-time design and collaboration capabilities, Figma also offers an API that helps to improve the DesignOps process.
Adopt
Figma has demonstrated to be the go-to tool for collaborative design, not only for designers but for multidisciplinary teams too; it allows developers and other roles to view and comment on designs through the browser without the desktop version. Compared to its competitors (e.g., Invision or Sketch) which have you use more than one tool for versioning, collaborating and design sharing, Figma puts together all of these features in one tool that makes it easier for our teams to discover new ideas together. Our teams find Figma very useful, especially in remote and distributed design work enablement and facilitation. In addition to its real-time design and collaboration capabilities, Figma also offers an API that helps to improve the DesignOps process.
Sunday, May 17, 2020
Saturday, May 16, 2020
Friday, May 15, 2020
Wednesday, May 13, 2020
Monday, May 11, 2020
Sunday, May 10, 2020
Saturday, May 9, 2020
Wednesday, May 6, 2020
Monday, May 4, 2020
Saturday, May 2, 2020
Thursday, April 30, 2020
Monday, April 27, 2020
Friday, April 24, 2020
Thursday, April 23, 2020
Phoenix LiveView - using JS & Charts component
You can tie into JavaScript with hooks: https://hexdocs.pm/phoenix_live_view/Phoenix.LiveView.html#module-js-interop-and-client-controlled-dom
and if you want JS charts, check out how the Phoenix Dashboard uses uPlot:
https://github.com/phoenixframework/phoenix_live_dashboard/commit/d887c305f887c4d991f2ee40301a628aa41eb8b0
Here's the charting component: -
https://github.com/phoenixframework/phoenix_live_dashboard/blob/master/assets/js/metrics_live/index.js
and if you want JS charts, check out how the Phoenix Dashboard uses uPlot:
https://github.com/phoenixframework/phoenix_live_dashboard/commit/d887c305f887c4d991f2ee40301a628aa41eb8b0
Here's the charting component: -
https://github.com/phoenixframework/phoenix_live_dashboard/blob/master/assets/js/metrics_live/index.js
Labels:
elixir,
phoenix,
web applications
Wednesday, April 22, 2020
Tuesday, April 21, 2020
Sunday, April 19, 2020
Postgresql - launch options
Run as a Background service:
To have launchd start postgresql now and restart at login:
brew services start postgresql
Not as a Background service:
Or, if you don't want/need a background service you can just run:
pg_ctl -D /usr/local/var/postgres start
To have launchd start postgresql now and restart at login:
brew services start postgresql
Not as a Background service:
Or, if you don't want/need a background service you can just run:
pg_ctl -D /usr/local/var/postgres start
Saturday, April 18, 2020
Friday, April 17, 2020
Wednesday, April 15, 2020
Tuesday, April 14, 2020
Sunday, April 12, 2020
Friday, April 10, 2020
Difference between Management & Leadership
https://marker.medium.com/companies-dont-need-to-lay-people-off-to-survive-4197a9e57f6c
Excerpt:
Excerpt:
One of the things I’ve learned in my 45 years leading a company is that while Management is about using others for your success, Leadership is about stewarding the lives entrusted to you.
Saturday, April 4, 2020
Friday, April 3, 2020
Thursday, April 2, 2020
Wednesday, April 1, 2020
Tuesday, March 31, 2020
Sunday, March 29, 2020
d3 pie/donut chart example
Initial version:
https://codepen.io/theacadian/pen/jOPdPGm?editors=1011
Final version:
https://codepen.io/theacadian/pen/ExjregK?editors=0010
References:
- https://schoolofdata.org/2013/10/01/pie-and-donut-charts-in-d3-js/
- http://www.adeveloperdiary.com/d3-js/create-a-simple-donut-chart-using-d3-js/
- https://bost.ocks.org/mike/circles/
https://codepen.io/theacadian/pen/jOPdPGm?editors=1011
Final version:
https://codepen.io/theacadian/pen/ExjregK?editors=0010
References:
- https://schoolofdata.org/2013/10/01/pie-and-donut-charts-in-d3-js/
- http://www.adeveloperdiary.com/d3-js/create-a-simple-donut-chart-using-d3-js/
- https://bost.ocks.org/mike/circles/
Friday, March 27, 2020
Thursday, March 26, 2020
Tuesday, March 24, 2020
UI Colors
https://flatuicolors.com/ - get hex values for colors
https://www.uicolor.io/ - convert hex values to RGB values
https://www.uicolor.io/ - convert hex values to RGB values
Excalidraw - whiteboard tool
https://excalidraw.com
Excalidraw is a whiteboard tool that lets you easily sketch diagrams that have a hand-drawn feel to them.
Monday, March 23, 2020
Saturday, March 21, 2020
Thursday, March 19, 2020
CPU Utilization discussion around Elixir
CPU Utilization discussion around Elixir
https://www.reddit.com/r/elixir/comments/fi6hfe/has_cpu_utilization_been_improved_since_17/
Below artice shows high CPU usage for Elixir
https://stressgrid.com/blog/benchmarking_go_vs_node_vs_elixir/
Below article explains why and how it is actually a feature of BEAM (busy waiting) which might be interpreted wrongly, but since AWS will also interpret it wrongly, how to turn off busy-waiting
https://stressgrid.com/blog/beam_cpu_usage/
https://www.reddit.com/r/elixir/comments/fi6hfe/has_cpu_utilization_been_improved_since_17/
Below artice shows high CPU usage for Elixir
https://stressgrid.com/blog/benchmarking_go_vs_node_vs_elixir/
Below article explains why and how it is actually a feature of BEAM (busy waiting) which might be interpreted wrongly, but since AWS will also interpret it wrongly, how to turn off busy-waiting
https://stressgrid.com/blog/beam_cpu_usage/
Tabular data sorting/pagination with Phoenix LiveView
https://www.reddit.com/r/elixir/comments/fjinjo/can_i_do_this_using_phoenix_liveview/
(includes a response from Chris McCord)
(includes a response from Chris McCord)
Monday, March 16, 2020
Sunday, March 15, 2020
Saturday, March 14, 2020
Thursday, March 12, 2020
Wednesday, March 11, 2020
Why your software should use UUIDs in 2020s
https://devforth.io/blog/why-your-software-should-use-uuids-in-2020s
Excerpt:
Excerpt:
Conclusion
- UUIDs solve the problem of centralized ID store making possible working in offline and handle complex relations on frontend by making frontend independent from the server which makes it super-responsive
- UUIDs allow you to implement shards for high-load scalable systems
- UUIDs make your IDs more secure by hiding records count
- To decrease insert time use UUIDv1 as IDs system
- Store it in the database as 16 bytes
- To save traffic transmit Shot UUIDs
Labels:
computer science,
database,
design,
security
Read a paper: My VM is Lighter (and Safer) than your Container
Also look at Firecracker from Amazon
Labels:
computer science,
devops,
docker
Friday, March 6, 2020
Wednesday, March 4, 2020
Tuesday, March 3, 2020
Monday, March 2, 2020
Saturday, February 29, 2020
Monday, February 24, 2020
Friday, February 21, 2020
StimulusReflex, Unpoly.js
StimulusReflex:
https://docs.stimulusreflex.com
Unpoly:
https://unpoly.com
https://unpoly.com/tutorial
https://docs.stimulusreflex.com
Unpoly:
https://unpoly.com
https://unpoly.com/tutorial
Thursday, February 20, 2020
Subscribe to:
Posts (Atom)