-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
32 lines (32 loc) · 12.2 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
<!doctype html><html lang=en dir=auto><head><meta charset=utf-8><meta http-equiv=x-ua-compatible content="IE=edge"><meta name=viewport content="width=device-width,initial-scale=1,shrink-to-fit=no"><meta name=robots content="index, follow"><title>Erich Kist</title><meta name=keywords content><meta name=description content="Personal website where I share tips and tricks about programming with Ruby/Rails, Javascript, React, HTML/CSS, Elixir and more random stuffs."><meta name=author content="Erich Kist"><link rel=canonical href=https://erichkist.com/><link href=/assets/css/stylesheet.min.0ba09b4433fb8342f66e7ebe2449172ecc93181e5bfaed97b4d667d62733bf1d.css integrity="sha256-C6CbRDP7g0L2bn6+JEkXLsyTGB5b+u2XtNZn1iczvx0=" rel="preload stylesheet" as=style crossorigin=anonymous><link rel=icon href=/favicon.ico><link rel=icon type=image/png sizes=16x16 href=/favicon-16x16.png><link rel=icon type=image/png sizes=32x32 href=/favicon-32x32.png><link rel=apple-touch-icon href=/apple-touch-icon.png><link rel=mask-icon href=/safari-pinned-tab.svg><meta name=theme-color content="#2e2e33"><meta name=msapplication-TileColor content="#2e2e33"><meta name=generator content="Hugo 0.82.0"><link rel=alternate type=application/rss+xml href=https://erichkist.com/index.xml><link rel=alternate type=application/json href=https://erichkist.com/index.json><script type=application/javascript>var doNotTrack=!1;doNotTrack||(window.ga=window.ga||function(){(ga.q=ga.q||[]).push(arguments)},ga.l=+new Date,ga('create','UA-3572676-10','auto'),ga('send','pageview'))</script><script async src=https://www.google-analytics.com/analytics.js></script><meta property="og:title" content="Erich Kist"><meta property="og:description" content="Personal website where I share tips and tricks about programming with Ruby/Rails, Javascript, React, HTML/CSS, Elixir and more random stuffs."><meta property="og:type" content="website"><meta property="og:url" content="https://erichkist.com/"><meta property="og:site_name" content="Erich Kist"><meta name=twitter:card content="summary"><meta name=twitter:title content="Erich Kist"><meta name=twitter:description content="Personal website where I share tips and tricks about programming with Ruby/Rails, Javascript, React, HTML/CSS, Elixir and more random stuffs."><script type=application/ld+json>{"@context":"https://schema.org","@type":"Organization","name":"Erich Kist","url":"https://erichkist.com","description":"Personal website where I share tips and tricks about programming with Ruby/Rails, Javascript, React, HTML/CSS, Elixir and more random stuffs.","thumbnailUrl":"https://erichkist.com/favicon.ico","sameAs":["https://github.com/erichkist","https://twitter.com/erichkist"]}</script></head><body class=list id=top><script>localStorage.getItem("pref-theme")==="dark"?document.body.classList.add('dark'):localStorage.getItem("pref-theme")==="light"?document.body.classList.remove('dark'):window.matchMedia('(prefers-color-scheme: dark)').matches&&document.body.classList.add('dark')</script><noscript><style type=text/css>#theme-toggle,.top-link{display:none}</style><style>@media(prefers-color-scheme:dark){:root{--theme:#1d1e20;--entry:#2e2e33;--primary:rgba(255, 255, 255, 0.84);--secondary:rgba(255, 255, 255, 0.56);--tertiary:rgba(255, 255, 255, 0.16);--content:rgba(255, 255, 255, 0.74);--hljs-bg:#2e2e33;--code-bg:#37383e;--border:#333}.list{background:var(--theme)}.list:not(.dark)::-webkit-scrollbar-track{background:0 0}.list:not(.dark)::-webkit-scrollbar-thumb{border-color:var(--theme)}}</style></noscript><header class=header><nav class=nav><div class=logo><a href=https://erichkist.com accesskey=h title="Erich Kist (Alt + H)">Erich Kist</a>
<span class=logo-switches><button id=theme-toggle accesskey=t title="(Alt + T)"><svg id="moon" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentcolor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M21 12.79A9 9 0 1111.21 3 7 7 0 0021 12.79z"/></svg><svg id="sun" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentcolor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="5"/><line x1="12" y1="1" x2="12" y2="3"/><line x1="12" y1="21" x2="12" y2="23"/><line x1="4.22" y1="4.22" x2="5.64" y2="5.64"/><line x1="18.36" y1="18.36" x2="19.78" y2="19.78"/><line x1="1" y1="12" x2="3" y2="12"/><line x1="21" y1="12" x2="23" y2="12"/><line x1="4.22" y1="19.78" x2="5.64" y2="18.36"/><line x1="18.36" y1="5.64" x2="19.78" y2="4.22"/></svg></button></span></div><ul id=menu onscroll=menu_on_scroll()><li><a href=https://erichkist.com/search title="Search (Alt + /)" accesskey=/><span>Search</span></a></li><li><a href=https://erichkist.com/tags title=Tags><span>Tags</span></a></li></ul></nav></header><main class=main><article class=post-entry><header class=entry-header><h2>Elixir tips: #1 — Copy last result in IEX</h2></header><section class=entry-content><p>In Ruby you have some tricks in the console. I always use the _ to retrieve the last return value. In Elixir, you have the same approach with v function. Let’s see:
iex help for v function
As you can see, the function v can get the last value because it’s using the default value -1 or you can use v(line_number) to get the value from a previous one....</p></section><footer class=entry-footer>March 27, 2021 · 1 min · Erich Kist
| tags: elixir, english
- Também disponível em 🇧🇷</footer><a class=entry-link aria-label="post link to Elixir tips: #1 — Copy last result in IEX" href=https://erichkist.com/elixir-tips-1-copy-last-result-in-iex/></a></article><article class=post-entry><header class=entry-header><h2>Tracing and observing your remote node</h2></header><section class=entry-content><p>Today we will continue exploring techniques for debugging and tracing Elixir code that are so important for running and understanding production systems.
Important: This post was original published by me in http://blog.plataformatec.com.br/2016/05/tracing-and-observing-your-remote-node/ on May 10, 2016.
In the past, we have discussed:
how to debug your application how to trace systems with Erlyberly how to use the observer to introspect applications The examples above always connected to systems running locally....</p></section><footer class=entry-footer>March 27, 2021 · 4 min · Erich Kist
| tags: elixir, english
- Também disponível em 🇧🇷</footer><a class=entry-link aria-label="post link to Tracing and observing your remote node" href=https://erichkist.com/tracing-and-observing-your-remote-node/></a></article><article class=post-entry><header class=entry-header><h2>How to trace Elixir nodes with Erlyberly</h2></header><section class=entry-content><p>At Plataformatec, we are always learning new techniques to help our clients introspect and monitor their production systems. Last week, we saw debugging techniques in Elixir and now we will see one of many ways to do tracing in Elixir.
Important: This post was original published by me in http://blog.plataformatec.com.br/2016/04/how-to-trace-elixir-nodes-with-erlyberly/ on April 14, 2016.
For this post, we will use erlyberly ....</p></section><footer class=entry-footer>March 27, 2021 · 3 min · Erich Kist
| tags: elixir, english
- Também disponível em 🇧🇷</footer><a class=entry-link aria-label="post link to How to trace Elixir nodes with Erlyberly" href=https://erichkist.com/how-to-trace-elixir-nodes-with-erlyberly/></a></article><article class=post-entry><header class=entry-header><h2>Debugging techniques in Elixir</h2></header><section class=entry-content><p>It’s common that our first experience with debugging in a new language is by printing values to the terminal. Elixir isn’t different: we can use IO.puts/2 and IO.inspect/2. However, Elixir also provides other approaches to debugging.
Important: This post was original published by me in http://blog.plataformatec.com.br/2016/04/debugging-techniques-in-elixir-lang/ on April 07, 2016.
In this blog post, we’ll show you other 2 options: IEx.pry/0 and :debugger.
IEx.pry The name “pry” is an old friend in the Ruby ecosystem but it has a different behavior in Elixir....</p></section><footer class=entry-footer>March 27, 2021 · 3 min · Erich Kist
| tags: elixir, english
- Também disponível em 🇧🇷</footer><a class=entry-link aria-label="post link to Debugging techniques in Elixir" href=https://erichkist.com/debugging-techniques-in-elixir-lang/></a></article><article class=post-entry><header class=entry-header><h2>Using Gettext to internationalize a Phoenix application</h2></header><section class=entry-content><p>To translate or not to translate? We have been asking ourselves the same question in one of our latest Phoenix projects. Even though internationalizing our application is planned a bit ahead in our roadmap, we have decided to do an initial evaluation of the translation tools in the Elixir ecosystem, and we were pleasantly surprised by what it has to offer.
Important: This post was original published by me in http://blog....</p></section><footer class=entry-footer>March 27, 2021 · 6 min · Erich Kist
| tags: elixir, english
- Também disponível em 🇧🇷</footer><a class=entry-link aria-label="post link to Using Gettext to internationalize a Phoenix application" href=https://erichkist.com/using-gettext-to-internationalize-a-phoenix-application/></a></article><article class=post-entry><header class=entry-header><h2>How to Setup CI to Run Phoenix Projects</h2></header><section class=entry-content><p>Writing tests is an important step in software development and everyone knows the benefits. In our last post, we took a look on how to write acceptance tests in Phoenix and today we will see how to configure CI to run the tests.
Important: This post was original published by me in http://blog.plataformatec.com.br/2016/02/how-to-setup-ci-to-run-phoenix-projects/ on February 12, 2016.
Install Erlang and Elixir We use Jenkins to run ours builds and Ansible to setup the agents....</p></section><footer class=entry-footer>March 27, 2021 · 3 min · Erich Kist
| tags: elixir, jenkins, english
- Também disponível em 🇧🇷</footer><a class=entry-link aria-label="post link to How to Setup CI to Run Phoenix Projects" href=https://erichkist.com/how-to-setup-ci-to-run-phoenix-projects/></a></article></main><footer class=footer><span><a href=https://creativecommons.org/licenses/by-nc/4.0/>CC BY-NC 4.0</a></span>
<span>·</span>
<span>Powered by <a href=https://gohugo.io/ rel="noopener noreferrer" target=_blank>Hugo</a></span>
<span>·</span>
<span>Theme <a href=https://git.io/hugopapermod rel=noopener target=_blank>PaperMod</a></span></footer><a href=#top aria-label="go to top" title="Go to Top (Alt + G)"><button class=top-link id=top-link type=button accesskey=g><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 12 6" fill="currentcolor"><path d="M12 6H0l6-6z"/></svg></button></a>
<script>window.onload=function(){localStorage.getItem("menu-scroll-position")&&(document.getElementById('menu').scrollLeft=localStorage.getItem("menu-scroll-position"))};function menu_on_scroll(){localStorage.setItem("menu-scroll-position",document.getElementById('menu').scrollLeft)}document.querySelectorAll('a[href^="#"]').forEach(a=>{a.addEventListener("click",function(b){b.preventDefault();var a=this.getAttribute("href").substr(1);window.matchMedia('(prefers-reduced-motion: reduce)').matches?document.querySelector(`[id='${decodeURIComponent(a)}']`).scrollIntoView():document.querySelector(`[id='${decodeURIComponent(a)}']`).scrollIntoView({behavior:"smooth"}),a==="top"?history.replaceState(null,null," "):history.pushState(null,null,`#${a}`)})})</script><script>var mybutton=document.getElementById("top-link");window.onscroll=function(){document.body.scrollTop>800||document.documentElement.scrollTop>800?(mybutton.style.visibility="visible",mybutton.style.opacity="1"):(mybutton.style.visibility="hidden",mybutton.style.opacity="0")}</script><script>document.getElementById("theme-toggle").addEventListener("click",()=>{document.body.className.includes("dark")?(document.body.classList.remove('dark'),localStorage.setItem("pref-theme",'light')):(document.body.classList.add('dark'),localStorage.setItem("pref-theme",'dark'))})</script></body></html>