sashaafm

sashaafm

How to use the blogs section

You can post links to your blog posts either in one of the Official Blog Posts threads (like this one), or, via Devtalk.com. If you post via Devtalk we will automatically cross-post your blog post here in our Blog Posts section for each blog post (so one thread for each blog post) so long as you have an account with the same username and primary email address on both forums. We also remove the rel-nofollow attribute when your link appears on our homepage on Devtalk, so great for your SEO! :wink:

If posting via Devtalk be sure to:

  • Ensure your account on Devtalk.com has the same username and primary email as your account here
  • Initiate thread creation in one of the Blog Posts sections (for Elixir/Phoenix that may be in the Back End category, or for LiveView it could be the Front End category).
  • On thread creation paste the URL of your blog post in the TITLE field (once the URL appears in the body field below you can then change the title to whatever you like)
  • Include a short summary of your blog post then post the link on a separate line (here’s an example)
  • Include the Elixir and blog-post tags (as well as Phoenix, Nerves, LiveView etc if applicable)

It will then create a thread on Devtalk and then automatically cross-post here under your account :003:

Edit: Please note you will need to be at TL1 over at Devtalk (usually takes about 15 minutes of browsing) for the link being pasted in the title bar to work - however if you PM @astonj he’ll manually bump you up to TL1 :023:

Please see this announcement for the full details: Calling all BEAM Bloggers!

:nerd_face:

Showing Posts 61 to 70

alvises

alvises

Creating Thumbnails of uploaded Images and PDF in Phoenix

In this article I start from what built in Step-by-Step Tutorial to Build a Phoenix App that Supports User Upload. We see how to integrate ImageMagick and the Mogrify wrapper in the last article Phoenix app, to create thumbnails for image and PDF files.

As always any kind of feedback or question is more than welcome! :purple_heart:

alvises

alvises

Add a Progress Bar in the Phoenix File Upload app

phoenix_jquery_progressbar

in the previous articles we’ve seen how to build a small Phoenix app that processes user uploads, creating thumbnails for images and PDFs.

The problem with the current app is that nothing is shown during the upload, which is maybe ok while testing the app in localhost (the upload was fast also with big files). But in the real world an upload could last minutes.. or even hours.

So in this part we focus on the front-end and see how to use JavaScript to upload a file while animating a progress bar.

At first we see how to add jQuery to our Phoenix app and using it in our JavaScript files. We then see how to use jQuery to upload a file and listen to progress events to update an HTML5 progress bar.

alvises

alvises

Phoenix LiveView pushState support – Change the URL without refreshing the page

)

t’s now possible to try the LiveView pushState support! Just few days ago Chris McCord (creator of Phoenix) made it available in the LiveView master branch!

But.. What is pushState? and why can be useful?

With Phoenix LiveView we can easily update parts of the page without having to change the location, refreshing the page or directly use JavaScript.

But when the page’s content changes, the URL remains the same, making it difficult for a user to bookmark or share the current page state.

The LiveView pushState support solves exactly this - while changing the page content we can now dynamically update the URL without a page refresh.

griffinbyatt

griffinbyatt

I started a series about Phoenix Internals a couple of months ago, and just published part two! This one covers routers: The Phoenix Router | Griffin Byatt

johninvictus

johninvictus

Yet another article on working with elixir tasks.

alvises

alvises

Phoenix LiveView live_link

phoenix_liveview_link

A quick article (and screencast) still related to the LiveView pushState. The previous one was mainly focused on live_redirect .

We now see how to refactor the code with live_link getting simpler code and less messages exchanged between LiveView and our browser.

alvises

alvises

Using Select2 with Phoenix LiveView

featured_image

LiveView doesn’t support JavaScript interop at the moment (but it’s a planned feature), so in this article we see how to come up with a workaround to make LiveView playing together with a JavaScript library like Select2.

We see how to take advantage of phx:update ​ events, which LiveView dispatches every time it updates the DOM. Then we see how to send events to the server using liveSocket.

albydarned

albydarned

I’ve had similar issue keeping a JS library component initialized but have been too lazy to figure it out! Thank you for posting!

alvises

alvises

Hey everyone :blush:

After few busy months, I’m super happy to be back posting content weekly, starting with the first of a series of episodes for who wants to explore Phoenix LiveView and start building real-time web apps.

Where Next? Top

Trending in Blog Posts Top

bartblast
Hey folks, I just published a post about Hologram’s funding and where the project goes next - the short version: Curiosum as Main Spons...
New
zorn
An educational side project in Elixir, Phoenix, and Tauri. I share what I learned while wiring Automerge into the BEAM, including how I s...
New
andreasronge
What happens if you design tools for LLMs instead of letting LLM use human tools ? Wrote a blog on why and what that enables. As I see ...
New
zorn
:pencil: Phoenix’s built-in LiveView test helpers require you to hand-build the form payload and start a fresh pipe after every click. Wo...
New
ryanzidago
Up until then, I found it very hard to communicate to LLMs that I specifically do not want to handle X case because maybe it has never ha...
New
pckrishnadas88
In the previous part of this series, we built a Worker Pool from scratch, exploring point-to-point communication where a coordinator assi...
New
pckrishnadas88
In Elixir, send/2 is non-blocking, which means an eager producer can easily flood a slow consumer’s mailbox. Because BEAM process mailbox...
New

Other Trending Topics Top

GenericJam
Edit: 2026 May 15 - This post is archived. Mob is alive!! Main docs: mob v0.7.11 — Documentation A bit of explanation for the slightly c...
New
JesseHerrick
Hey, I’m Jesse and I’m the main contributor behind Dexter, a full-featured, lightning-fast Elixir LSP optimized for large codebases. It s...
New
mudasobwa
I am happy to introduce the very α version of the new programming language compiled to BEAM. Welcome Cure. It has literally three kille...
New
garrison
Hobbes is a low-level distributed database for the Elixir programming language. Hobbes provides a simple, safe, and scalable storage lay...
New
mhanberg
Hi everyone! The first release candidate for the Expert language server project is now available! We’ve published a press release detai...
New
budgie
A little off-topic, but I feel like people here have a good head on their shoulders. I used to be quite good at making software. Was luc...
New

We're in Beta

About us Mission Statement

Options

Thread Display Mode




Thread Preview

Skip Thread Previews