César Guzmán
cuwano.bsky.social
César Guzmán
@cuwano.bsky.social
Reposted by César Guzmán
#TIL append /rss to any @bsky.app profile and you have RSS feed.

example: bsky.app/profile/arat...

openrss.org/blog/bluesky...
bsky.app
December 26, 2024 at 12:13 PM
Reposted by César Guzmán
View a step-by-step playback of your feature test incl. JS console and network.
Powered by PhoenixTest + trace.playwright.dev
Great tool to debug feature test failures in CI.
#ElixirLang
December 15, 2024 at 7:36 AM
Reposted by César Guzmán
Live Isolated Component update! v0.9.0 adds support for LiveView 1.0 thanks to Chase Gilliam!

#Elixir #myelixirstatus

hex.pm/packages/liv...
live_isolated_component
Simple library to test LV components live in isolation
hex.pm
December 5, 2024 at 12:06 PM
Reposted by César Guzmán
Was trying to explain this the other day.

How do we coordinate a message that runs through a GenServer’s handle_call and handle_info in a way that makes it seem synchronous from the caller’s perspective?

The secret, use GenServer.reply/2

Check it out 👇

www.elixirstreams.com/tips/sync-th...
Elixir Streams |> How to synchronize the asynchronous within a GenServer
Elixir and Phoenix tips, courses, and more.
www.elixirstreams.com
December 4, 2024 at 12:04 PM
Reposted by César Guzmán
Phoenix LiveView 1.0 is out!!!

Official blog post with a history of LiveView: phoenixframework.org/blog/phoenix...

Full changelog here: github.com/phoenixframe...
Phoenix LiveView 1.0.0 is here! - Phoenix Blog
LiveView 1.0 is out!
phoenixframework.org
December 3, 2024 at 10:30 PM
Reposted by César Guzmán
🚨 New Blog Post 🚨

I wrote a tiny blog post about:

1. how to print out the type info of an #ElixirLang variable and
2. how to allow regexes in NimbleOptions definitions

peterullrich.com/parse-regex-...
Parse a Regex with NimbleOptions
Learn how I discovered that ~r-sigils return Regex structs and how to include regex patterns as valid input in NimbleOptions.
peterullrich.com
December 2, 2024 at 11:23 AM
Reposted by César Guzmán
And after that, for a little sweet treat - pick up Peter's book at PragProg's Black Friday sale
40% off checkout code turkeysale2024
pragprog.com/titles/pupho...
November 29, 2024 at 6:27 PM
Intrusive thoughts
November 29, 2024 at 2:33 PM
Reposted by César Guzmán
If you’re planning to do #adventofcode this year using @gleam.run, check out Gladvent! It’s a framework for running AoC solutions

github.com/TanklesXL/gl...
GitHub - TanklesXL/gladvent: A Gleam framework for running Advent of Code solutions
A Gleam framework for running Advent of Code solutions - TanklesXL/gladvent
github.com
November 28, 2024 at 7:55 AM
Reposted by César Guzmán
Couldn't sleep, so I merged a PR and made a new release for curl_req. Now supporting --data-raw, --data-ascii, and stripping $ from messages (frequently seen copying curl reqs from browser).

PR: github.com/derekkraan/c... (h/t @dkuku.bsky.social)

Pkg: hex.pm/packages/cur...

#elixirlang
dk-handle_data_raw by dkuku · Pull Request #16 · derekkraan/curl_req
Hey @derekkraan I often copy curl requests from the browser. In my case the data is always under the key data-raw which does the same as --data but does not support @ which is reading from file or ...
github.com
November 28, 2024 at 9:07 AM
Reposted by César Guzmán
functional programming suggests the existence of dysfunctional programming
November 27, 2024 at 7:57 PM
Reposted by César Guzmán
Just did a short write-up on storing session data in a #LiveView application so that it survives page reloads and navigation events within the same live_session.

9elements.com/blog/robust-...

#ElixirLang #ElixirPhoenix
Robust Session Storage in Phoenix Live View Sessions - 9elements
For an internal project called ‘ControlManiac’, which helps us with all the boring numbers juggling in our software studio, I had to add a global filter to the navigation bar, which lets me select the...
9elements.com
November 27, 2024 at 12:20 PM
Reposted by César Guzmán
I don’t know if you’ve seen this fullstackphoenix.com/tutorials/cr.... We adapted it for a scheduling UI in our product and it works wonderfully as a LiveComponent with its own state
Create a Reusable Calendar in Phoenix LiveView
Updated for Phoenix 1.7. In this tutorial I am creating a simple calendar in Phoenix LiveView. The calendar should be able to switch month, highlight current day and select a specific day. I might ext
fullstackphoenix.com
November 27, 2024 at 1:02 PM
Reposted by César Guzmán
Is there a good p2p screensharing app? I want to share screen, audio, and inputs.
November 26, 2024 at 2:31 PM
Reposted by César Guzmán
Really cool stuff is coming to Phx2ban later this week. V0.1 was only our MVP. v0.2 will introduce all the goodies you expect a Web App Firewall (WAF) to have. Stay tuned!
November 26, 2024 at 8:43 AM