You can empty that directory then use just rmdir, or rm -f (no -r). Both should fail if the dir is not empty (which probably isnβt the case for your home directory π )
You can empty that directory then use just rmdir, or rm -f (no -r). Both should fail if the dir is not empty (which probably isnβt the case for your home directory π )
Seeking Sustainable Sponsorship
Hi Elixir friends,
After 3 years on Hologram full-time (transpiles Elixir to the browser), I'm at a crossroads.
60+ hr weeks balancing contracts & dev isn't sustainable.
Where we are & how you can help: hologram.page/blog/seeking...
Even sharing helps π
#Hologram #Elixir #ElixirLang #BEAM #WebDev
Exciting stuff!
What browser is this? π
Thatβs awesome! I wonder what the lift is to ship it with the precompiled binary (to remove the Rust dependency on the dep users), like Explorer and friends.
Since Iβm interested in using this, happy to have a look at that if you donβt mind.
I think this is a good sign for adoption though. More companies using Elixir means more developers that dislike it will have to use it at work, meaning more dislikes in SO surveys.
ln(π ) = π§ln(π)
Ahhh, modularity *chefβs kiss*
Ohhhh that looks nice!
Is it a library? Or more like a full fledged tool?
What do we call an #ElixirLang wizard? I know a lot of people use alchemist, but lately Iβve been wondering if macromancer is the way to goβ¦
That would make sense since thereβs no concept of a process in the JS land (yet haha)
This is truly fascinating stuff!
I was reading the example code, and I see the Elixir node it sends the message to a process named βcounterβ in the JS node, but I couldnβt see where the JS node registers this name. Did I miss something or is the JS code receiving messages directed at all processes?
I donβt know who needs to hear this, but donβt pull an SDK to integrate with those 3-4 third party REST endpoints. Itβs not worth it. Just use an HTTP client.
Just pushed a couple changes to hex.pm/packages/kin...
- Loading/success/failure states
- Added a workaround for when the #Livebook is running in a non-secure context (not localhost or HTTPS)
Take it for a spin and let me know if you have any issues! #ElixirLang
Yeap, might be just crazy enough to actually work haha
What if you register a custom reporter that stores the test states, and then query it from the callback?
It is a bit hacky, but should work.
The unknown here for me is whether the reporter gets notified before or after the callbacks are run.
That is clean!
Iβm going to take some inspiration from yours and add a βcopiedβ tooltip and a βloadingβ state.
I was building some Livebook apps last Friday and really missed a βcopy to clipboardβ button there.
Note to self: always check for audio in screen captures π€¦ββοΈ
Just published a small Kino component for programmatically adding copying content to the clipboard: hex.pm/packages/kin...
It is truly amazing how well Livebook supports prototyping these components π€―
Me avoiding Advent of Code solutions for days 5 and 6 until I have some time to work on them
I love his stuff!
That is true for factors, not for sums. Like, using primes I can be sure the products will be unique, but I cannot ensure the sum of products will be unique. In essence, you can have more than one set of 4 products that yield the same sum, which can cause you to overcount.
Got it! In that case I posted a solution using it earlier, and I also link to this great video by 3blue1brown about convolutions. It is great to build that intuition about what is actually happening there.
I donβt want to spoil anything, but you should have a look at a thread I posted earlier today once youβre done with the puzzle π
Similar logic applies to your kernel, except the two required dimensions are output channels and input channels. The latter has to match the second dimension of your input. So for the same case you have a {n_kernels, 1, x, y} dimensional tensor kernel.
It is supported, but you need two dimensions for batch size and channels and then n dimensions for your n-dimensional input.
So if you need to run a convolution over a 2D grid, and you donβt care about channels or batches, you need a {1, 1, x, y} tensor.
BTW this video was a great help for me to grasp how convolutions work: www.youtube.com/watch?v=KuXj...
Can't recommend it enough.
Had some issues finding proper token and kernel values that would yield unique sums, but once I figured out I needed large enough spacing between token values it was kind of smooth sailing.
Elixir code parsing the puzzle input into a Nx tensor
Elixir code using the parsed input to solve Part 1 using convolutions to find the all the occurrences of XMAS.
Elixir code using the parsed input to solve Part 2 using convolutions to find the all the occurrences of MAS in an X-like pattern.
For some reason I thought it was a great idea to solve Advent of Code Day 4 using #ElixirLang Nx and convolutions.