LostKobrakai

LostKobrakai

I wrote a blogpost/tutorial around how to build a nest form with LiveView for editing a one-to-many parent schema including all its children. There’s a lot of good reasons why people are strugging with those forms in LiveView, so I hope this is helpful in showing how things can work, but also providing insight into the underlying reasons for how the involved parts work.

9
Post #888
PJUllrich

PJUllrich

Author of Building Table Views with Phoenix LiveView

This is part 2 of the “Build a Roles and Permissions system for Phoenix” series. It covers how to restrict all Ecto queries and prevent many PII leaks.

https://www.peterullrich.com/build-a-rap-for-phoenix-part-2

6
Post #889
realcorvus

realcorvus

Elixir/Phoenix Security: Denial of Service Due to Atom Exhaustion

Wrote a blog post about why creating atoms at runtime is a bad idea, and how to prevent this in your own Phoenix apps.

1
Post #890
aochagavia

aochagavia

A while ago, I asked a question about splitting strings on unicode word boundaries. Since then, I actually went on to solve the problem and it turned to be more interesting than I originally thought (spoiler: it ended up involving Rust and a NIF).

This is the end result, in case you are interested: Chunking strings in Elixir: how difficult can it be?

1
Post #891
kip

kip

ex_cldr Core Team

@aochagavia, really enjoyed your post and your findings. As you may recall from our conversations at the time you were looking at unicode_string, the fact that it barfs on invalid UTF8 is definitely an irritant and due to the fact that the unicode break algorithms (line, word, grapheme) are all regex-based. This probably also is the reason the performance is not linear to the length of the string.

Now I feel challenged (in a good way) to do better. And over coffee this morning think I worked out it won’t be too hard to hand-compile the regexes into Elixir pattern matches with sub-binary optimisation. This should make matching more resilient, more performant and more linear.

I’ll report back after I run some experiments!

4
Post #892
aochagavia

aochagavia

Great to hear! And thanks again for the library :wink:

0
Post #893
PJUllrich

PJUllrich

Author of Building Table Views with Phoenix LiveView

This one is about how to build forms dynamically without writing a single line of HTML by using JSON Schemas. Just define your form as JSON file and BOOM! It’s live​:sparkles: If you have many forms that differ just slightly, this one is for you!

https://www.peterullrich.com/build-dynamic-forms-with-json-schemas

4
Post #894
gordalina

gordalina

Wrote a blog post about leveraging Google Secret Manager to increase security in Elixir applications, and how to deploy them in a kubernetes context.

3
Post #895
dkuku

dkuku

4
Post #896
silbermm

silbermm

Wrote up an article on using litestream with Elixir/Phoenix

3
Post #897