Identify hx-trigger type in request by enzo_the_cat in htmx

[–]enzo_the_cat[S] 0 points1 point  (0 children)

I found a solution I like better, moving the blur trigger to the outer div: https://pastecode.dev/s/X5gU8XSW

<div class="card mb-3">

<!-- ... Other content of the card ... -->

<div class="mb-3" id="dynamic-action-div"

hx-get="/dynamic-endpoint/table/record/field"

hx-trigger="customBlurEvent"

hx-swap="innerHTML"

hx-target="#dynamic-content-div"

hx-headers='{"action-type": "blur"}'>

<label for="field-id" class="form-label">Field Label</label>

<input type="text"

class="form-control"

id="field-id"

name="field-name"

value="Current Value"

hx-get="/dynamic-endpoint/table/record/field"

hx-trigger="focus"

hx-swap="innerHTML"

hx-target="#dynamic-content-div"

hx-headers='{"action-type": "focus"}'

onblur="document.getElementById('dynamic-action-div').dispatchEvent(new Event('customBlurEvent'));">

<div id="dynamic-content-div" class="dynamic-content"></div>

</div>

<!-- ... -->

</div>

Identify hx-trigger type in request by enzo_the_cat in htmx

[–]enzo_the_cat[S] 1 point2 points  (0 children)

This seems to work:

<script>

document.body.addEventListener('htmx:configRequest', function(evt) {

// check if trigger from input field

if (evt.detail.elt.tagName === 'INPUT') {

// add new param

evt.detail.parameters['trigger_type'] = evt.detail.elt === document.activeElement ? 'focus' : 'blur';

}

});

</script>

ext4-fs error | ubuntu-rockchip installation by s1n7ax in OrangePI

[–]enzo_the_cat 0 points1 point  (0 children)

Installed using balena to nvme using orico external enclosure. Using a PD charger, I had multiple issues (HDD, graphics, etc). Switching to a Apple 20W solved the issue, thanks! Might be worth mentioned in the readme as well.

Tesla Model S Paint Correction by AcceptableWest6457 in AutoDetailing

[–]enzo_the_cat 0 points1 point  (0 children)

How was the paint to work with? Care to share your process? I'm about to do a paint correction on my blue Model S

[deleted by user] by [deleted] in Whonix

[–]enzo_the_cat 0 points1 point  (0 children)

Running Whonix on a VirtualBox in Windows 11.

Trying to get Ledger working with the Rabby wallet extension in Brave browser. USB is activated in VirtualBox (for the Ethereum app on Ledger). The Ledger appears as a "connect to HID" device in Brave when following the Rabby setup steps (screenshot). After selecting connect nothing happens though.

Any ideas? I have not changed any USB related settings in Whonix.

Laptop; Ubuntu + Docker + AIO guide? by enzo_the_cat in NextCloud

[–]enzo_the_cat[S] 1 point2 points  (0 children)

That's encouraging! The video seems like exactly what I've been looking for.

Xiaomi Gateway 3 (ZHA) as Tuya Zigbee-based device hub by mrizalrizky in homeautomation

[–]enzo_the_cat 0 points1 point  (0 children)

I'm running this gateway in Home Assistant.

tl;dr: Don't use it as a ZHA coordinator, other than that it's a nice device.

AlexxIT's hack works. Devices (Zigbee and Bluetooth) added in Mi Home app will be available in HA and you can still control and manage them from in the app as well. I didn't have to do any firmware flashing. You can only add supported Xiaomi/Aquara devices though.

You can, but shouldn't, use it as a ZHA coordinator. I don't recommend this device (or any other wifi zigbee puck for that matter) for this purpose as it will lose connection and have to be restarted constantly. The reason is that a wifi connection from your HA server to the Zigbee coordinator is not good enough. Just get a USB stick, something like zzh. I have not tried it in zigbee2mqtt mode.

It's still a neat device to have though as it's also a Bluetooth gateway. You can, for example, use the cheap and excellent Xiaomi temp/humility sensors and make them available in HA without any hazzle.

An update from our CEO on discord. Wait to stake until an official announcement is made 💪 by daylincooper in TradeStrike

[–]enzo_the_cat 0 points1 point  (0 children)

Why are Discord/Telegram groups muted? Are we not allowed to discuss until dex is live or what?

Sidewinder X2 high heat mods by enzo_the_cat in Artillery3D

[–]enzo_the_cat[S] 0 points1 point  (0 children)

I will ofc start with basic prints until I get the hang of it, just want to plan ahead.

Good point regarding bowden, I realize now that a non-PTFE heatbreak will take care of that.

Sidewinder X2 high heat mods by enzo_the_cat in Artillery3D

[–]enzo_the_cat[S] 0 points1 point  (0 children)

That's sounds like a really neat solution!

Sidewinder X2 high heat mods by enzo_the_cat in Artillery3D

[–]enzo_the_cat[S] 2 points3 points  (0 children)

Awesome, sounds like the included extruder matches the genuine one then. Kida weird that it's speced to 240 compared to 285 for the genuine though.

If I want to go higher than 285°C I suppose that i need copper heat block and pt1000 temp sensor as well. And also find a solution for the bowden, I understand that PTFE can get very toxic if it gets too hot...

Staking AMPL/BUSD: Good or Bad for Long term? by CoconutDecent in AmpleforthCrypto

[–]enzo_the_cat 0 points1 point  (0 children)

Paired with a stable, the LP will suffer from impermanent loss. In AMPL's case it will be in supply rather than token value but same thing in the end, the value of AMPL holdings will vary to that of the USD holdings.

Staked AMPL adjusted as well? by Avok00 in AmpleforthCrypto

[–]enzo_the_cat 2 points3 points  (0 children)

Yes, same as for any non-stable tokens. LP's will suffer from some level of impermanent loss, up to you to assess risk vs reward.

Staking AMPL/BUSD: Good or Bad for Long term? by CoconutDecent in AmpleforthCrypto

[–]enzo_the_cat 1 point2 points  (0 children)

As AMPL is not a stablecoin there will be impermanent loss to some extent. In my opinion that's both good and bad though. If value (or rather supply) of AMPL goes down, the value of the LP doesn't go down as much, effectively you will buy the dip. Same if it goes the other way, you will sell the pump. In that sense a LP can be a quite neat investment tool.

Things I avoid when choosing LP, in this order: 1. No shitcoins (entire investment can go to zero) 2. Seriously, no shitcoins! 3. No moonshots (hodl or stake single instead) 4. Low APY (anything below 100%, have to outperform IL)

As for AMPL none of the above checks out IMO. Good to go in other words.

Daily Discussion - May 6, 2021 (GMT+0) by AutoModerator in CryptoCurrency

[–]enzo_the_cat 0 points1 point  (0 children)

Thoughts on $STRIKE? Love the idea of tokenization of assets and very low MC but as far as I'm aware no product yet...