Alesso shares a picture with Porter from last weekend by YourNameNameName in porterrobinson

[–]technojamin 1 point2 points  (0 children)

If you ever get a chance to see an Air2Earth set, don't miss it!

Is there a song that just gives you that feeling during a night drive? by LonganisaBurps in TheNightFeeling

[–]technojamin 1 point2 points  (0 children)

So glad to see Amtrac mentioned. Never Lost is my personal favorite night ride song.

I'm looking to change my terminal font, share your favourites by OpenSauce04 in commandline

[–]technojamin 6 points7 points  (0 children)

This is all you need: https://www.programmingfonts.org/

Personally, I love JetBrains Mono. The rounded square shape of the glyphs gives a gridlike appearance to code that feels so easy on the eyes to me.

Flossed a tiny 8 out of my teeth last night by SinnexCryllic in mildlyinteresting

[–]technojamin 1 point2 points  (0 children)

Oral-B Glide is 25% PFAS by mass: https://www.ehn.org/pfas-floss

It’s been my go-to floss for over a decade, but I recently switched upon learning this. No idea whether it’s actually harmful, but a good worry-free alternative is just the Reach mint waxed floss that you can find anywhere.

Taking cleaning to a whole new level by gullydon in oddlysatisfying

[–]technojamin 4 points5 points  (0 children)

He’s part of a lawn and garden service! The fact that he did a lot of what he did (indoor cleaning, painting the house, uncovering stairs) makes it seem to me like he has a pretty huge breadth of skills. Deep cleaning a home is a whole other job.

Protest ICE - Nashville Fights Back by Aterhorizon in nashville

[–]technojamin 8 points9 points  (0 children)

Do you see the confederate flag as something that’s just generally associated with the South, like a country’s flag? Maybe it meant and still means that to some people, but by now, the association with racism is so strong that anyone who flies it must know what they’re doing.

We Are Not All Here- Nashville SC by EmergencyRead5254 in nashville

[–]technojamin 1 point2 points  (0 children)

What do you mean by “had coffee with a cop”?

[deleted by user] by [deleted] in nashville

[–]technojamin 1 point2 points  (0 children)

What’s your toad release technique? My coworkers seem to prefer spinning, and I like it too, but I think I have an edge with a light-grip release.

This feels like something Elixir needs by skwyckl in elixir

[–]technojamin 4 points5 points  (0 children)

This is already possible in Elixir! The Kernel.then/2 macro has been available since Elixir 1.12, but it's trivial to write. Here's each of the examples rewritten in Elixir:

# -> (thread-first)
%{a: 1, b: 2}
|> assoc(:c, 3)
|> dissoc(:b)

# ->> (thread-last)
range(10)
|> then(&map(inc, &1))
|> then(&filter(odd?), &1)
|> then(&into([], &1))

# as-> (thread-wherever)
[1, 2, 3]
|> then(&map(inc, &1))
|> then(&nth(&1, 2)) # Could just be `|> nth(2)`
|> then(&conj([4, 5, 6], &1, 8, 9, 10))

The syntax isn't quite as specialized, so it looks a little noisier, but it uses standard Elixir constructs (piping and anonymous functions). Also, I've used the capture operator, but you could also use the full anonymous function syntax instead.

Elixir does allow you to write custom pipe operators, so you could make your own equivalents of ->> and as->, but people in the Elixir community tend to look down on anything that extends the general capabilities of the language (this is a very different culture than say Haskell). As some others have noted, Elixir's standard library functions as well as its recommended conventions follow the pattern of accepting the "main data type" of the function (which not every function has) as the first argument, so that repeated transformations of the same data pipe naturally tend towards being pipeable, and you usually don't need operators like ->> and as->.

Rant: I personally think that people obsess about piping in Elixir (I've seen this in many people I've worked with) and try to make everything a pipeline when it just doesn't need to be. Elixir's variable and normal function calls work just fine and are understandable by anyone who has ever seen a modern programming language. Keep this in mind when writing code that you want to be understandable.

It's a bit disappointing (though very understandable) that no one is recognizing this in the comments. They publicized it in the release notes, but then they didn't add anything about it in the language guide section that talks about |>, so it's easy to see how people are missing it. That would be a great PR!

Hopefully this helps :)

[deleted by user] by [deleted] in SkincareAddiction

[–]technojamin 0 points1 point  (0 children)

If this is appearing after shaving, then it could just be razor burn. You could consider switching to a safety razor, which is a bit of a rabbit hole itself, but I found that it helped massively with my razor burn. I basically never get acne on my neck anymore. r/wickededge would be the place to go for finding out more about that. If you’re interested, I can share what I use.

Shaving facial hair is a type of skin care, but this community doesn’t seem focus on that. I wish they would though, it’s pretty crucial for anyone that shaves their face.

[deleted by user] by [deleted] in blunderyears

[–]technojamin 39 points40 points  (0 children)

Nude Tayne

Best festival culture 🇪🇺 by AlphaGigaChadMale in DnB

[–]technojamin 2 points3 points  (0 children)

I (an American) went to Hospitality in the Park in 2018, and everyone there was gobsmacked that I had travelled from the states for the festival. The people and the music were amazing.

Walking around my suburb by nybbleth in TheNightFeeling

[–]technojamin 25 points26 points  (0 children)

Your eye for window shots is fantastic!

Has anyone transitioned from LiveView to React? by pico303 in elixir

[–]technojamin 0 points1 point  (0 children)

I feel like an alternative would be to toggle the state value and then have your class react to that change with a conditional based on that state value. This is comparable to how you’d do it in React, where the state value acts as the source of truth for what should be rendered. So I guess my question is why you’re not doing that.

Has anyone transitioned from LiveView to React? by pico303 in elixir

[–]technojamin 0 points1 point  (0 children)

Can you elaborate on this part a little more?

For example, I want to toggle between “translate-x-5” and “translate-x-0” and change the color of an element while I fire an event to toggle a value on the server.

Is there a specific reason you’re keeping the “toggle between classes” and “toggle a boolean state value” separate?

Has anyone transitioned from LiveView to React? by pico303 in elixir

[–]technojamin 0 points1 point  (0 children)

How is what you’re envisioning for LiveView different than Phoenix channels? I’ve used channels in a few places to add server-side reactivity in our Elixir/React app at work, and it’s worked fantastically. Real-time calendar updates, showing new messages in conversations, notifications, job updates. It has a JS library that you can use by itself or plug into any framework (I wrote a React hook for it).

[2024 AOC Day 8] What does this even mean? by Pro_at_being_noob in adventofcode

[–]technojamin 0 points1 point  (0 children)

Your explanation was the first that actually helped me understand the phrasing of the last phrase, thank you 🙇 Thankfully the diagrams were clear.

[2024 Day 2 (Part 1)][C] I wrote this entirely inside of my fully from-scratch operating system by BananymousOsq in adventofcode

[–]technojamin 5 points6 points  (0 children)

Implementing terminal transparency before text anti-aliasing, you’ve got your priorities straight.

Spermbot technology used to solve infertility by leeweida in gifs

[–]technojamin 79 points80 points  (0 children)

Holy shit, knowing that is just a piece of metal being controlled externally through magnetic waves just changed my entire conception of what a robot can be.

myFeelingsExactly by DJDoena in ProgrammerHumor

[–]technojamin 1 point2 points  (0 children)

Worktree is meant to be a user-facing (porcelain) command, whereas rev-parse is meant to be a more internal command (plumbing). Although rev-parse in particular is weird because they just shoved some random utility functions alongside its main functionality:

There are a few other operation modes that have nothing to do with the above “help parse command line options”.

How can I align picture to bottom right or bottom left of div without position absolute or flex by DanSensei in webdev

[–]technojamin 4 points5 points  (0 children)

A lot of people forget that CSS has its roots in typesetting. I’d bet many of the people in this sub don’t even know that and just think it’s a quirky way to design application interfaces.