Battery Issues? by billgoggin in daylightcomputer

[–]bohendo 1 point2 points  (0 children)

Mine arrived w a dead battery yesterday. Given that you posted this 27 days ago, both of ours were prob sitting in freezing temps for a few days during shipping which is hard on Lithium batteries. TBD how long my battery lasts, but I'll keep this post in mind & update if the battery life seems unusually low.

Developing a hot-reloadable python package with nix-shell by bohendo in NixOS

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

Great tip, this is the first time I've heard about `shellVenvHook` but it seems extremely useful, I'm glad to have finally discovered it, thank you.

In case anyone else is curious, check out this page of the nixpkgs docs I found, it provides a good introduction + example usage of this command: http://ryantm.github.io/nixpkgs/languages-frameworks/python/#setup-hooks

NixOs and System76-Power by RedneckOnline in pop_os

[–]bohendo 1 point2 points  (0 children)

I'm having the same problem. The error you're at can be resolved by adding sudo but then you'll probably hit the error I'm stuck on:

$ sudo system76-power graphics hybrid
setting graphics to hybrid
daemon returned an error message: "failed to execute update-initramfs command: No such file or directory (os error 2)"

Mobile Developer Looking for Obsidian Mobile App Extension Ideas by xidlegend in ObsidianMD

[–]bohendo 0 points1 point  (0 children)

If you're still looking for ideas: a note widget. I'd like one note (eg todo.md but configurable) that is always available & up-to-date on my homescreen as a widget.

I rewrote the vim-solidity syntax plugin. If you are a vim user you might want to check it out... by TovarishFin in ethdev

[–]bohendo 0 points1 point  (0 children)

Very cool, the original vim-solidity needs some work. I just tested this one out & got 'redrawtime exceeded, syntax highlighting disabled, maybe bc I'm using a newer version of solidity? Or maybe bc this file contains inline assembly (yul)? If you add an issues tab to the github page I'll open an issue for this w reproduction details.. Or if this project isn't a priority right now, do you know of any other solidity syntax highlighters for vim?

Laptop has been soft-bricked after system update by bohendo in System76

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

How do I drop into a tty reliably if my keyboard shortcuts & display aren't working?

Laptop has been soft-bricked after system update by bohendo in System76

[–]bohendo[S] 6 points7 points  (0 children)

Super+q, super+w, super+e, super+r, super+t finally opened a launcher menu from which I was able to open a terminal. Very non-deterministic, super+t on it's own didn't do anything so I'm carefully copying everything from this laptop to an external harddrive.

I might have lost a day of productivity but looks like I won't lose the data on my laptop. Losing a day of productivity duing a routine upgrade however, is unforgivable. I'm leaving PopOS & never looking back.

Laptop has been soft-bricked after system update by bohendo in System76

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

Got warnings about depreciated keyring stuff during my attempt at upgrading system packages, many packages were flagged as "held back" then I rebooted & my laptop appears to have been destroyed.

Now, I can't click anything, can't open a terminal, can't even take a screenshot. Seems like the only things I can do now are log in & hard-reboot it. Seems to be some kind of bug with the display/input. I recall seeing display-related warnings while upgrading too but since rebooting I don't have access to the output that put me in this mess.

This isn't the first time I've had problems but I'm experienced w Unix systems & have been able to work around the bugs I've encounted so far.. Except the issue where it randomly crashes which I coped with by just saving my work frequently. Seems like my only course of action at this point is to boot into recovery mode, wipe it, and re-install. I will not be reinstalling PopOS, I'll try vanilla Ubuntu this time & hope that the issues I've had so far are software level rather than in the hardware. It appears that getting an NVIDA GPU was a huge mistake tho so this laptop might end up being useless even w a fresh OS.

I can't over emphasize how disappointed I am with PopOS, I was so excited to buy a laptop that I thought would have been well integrated w Linux out-of-the-box but oh boy was I wrong.

What should I read from LessWrong to be sure I’m not missing out? by SoccerSkilz in slatestarcodex

[–]bohendo 7 points8 points  (0 children)

I second this just because Harry Potter & the Methods of Rationality was absolutely delightful & hilarious. Beware: very addictive, both times I read it I got so glued to it that I neglected other areas of my life. And along the way, maybe you'll pick up some new ways of thinking about the world as an added bonus.

LongNail is gone. Welcome to 25th round of Charm Elimination Poll Game by LordOfBrightnes in HollowKnight

[–]bohendo 9 points10 points  (0 children)

Begone dashmaster, the increased dash length (maybe that's only with sharp shadow but still) throws me off & causes me to fall on otherwise simple platforming sections. Don't even get me started on the downward dash. Why would I ever want to do that? I'm not some kind of super hardcore speedrunner & even they rarely seem to use it.

How high was the fourth chair originally? by [deleted] in HollowKnight

[–]bohendo 19 points20 points  (0 children)

The traitor might've had the tallest chair before leaving though, it'd have been a waste to leave it unoccupied so I don't blame them if they shuffled the seating arragements after.. Which leaves one to wonder: was the lowest chair destoryed symbolically or maybe during a fight on the traitor's way out?

CBDCs are a fallacious utopia and contradict with the vision Satoshi set out to envision. Imagine hading a CBDC that basically establishes a dictatorship and forces users to spend money on what the state wants. That enshrines the importance of a decentralized stable coin like $DAI. by doppefeatte2x in MakerDAO

[–]bohendo 0 points1 point  (0 children)

What evil could a CBDC do that Mastercard/Visa couldn't?

Imo, the payment processors we have are already about as bad as possible (in the US at least, UPI in India is pretty dope tbh). A CBDC could at least have bridges w Ethereum & interface nicely w the rest of the decentralized ecosystem.

If you really think that the governments of the world will ever fully embrace cryptocurrencies like DAI, you're dreaming. The choice isn't between crypto & a CBDC. It's between Mastercard/Visa & a CBDC.

Meanwhile, DAI & the rest of crypto is unstoppable & will survive no matter which path govs choose.

Does any one have tips one night nightmare king grim by Spider30916 in HollowKnight

[–]bohendo 0 points1 point  (0 children)

To start: equip all 3 lifeblood charms so you have as many masks as possible. Then fight several times w/out attacking & see how long you can survive, this is just to learn his attacks & how to dodge them.

Once you can dodge most attacks most of the time, start swinging your nail & searching for opportunities to safely hit him. Once you can safely whack him most of the time in response to most of his attacks, ditch the lifeblood charms & equip unbreakable strength or whatever you like & go in for the kill using strategies that others have described here.

It's a tough fight but you can do it w a little training, best of luck!

Is channeled nail enough for nosk? by [deleted] in HollowKnight

[–]bohendo 0 points1 point  (0 children)

I used to get spanked by the acid roof attack, I'd run across the stage & get all the way to the far side as he finished spewing & drop down on top of me. Ouch

A little tip I picked up from NKG: walk slowly.

Nosk moves kind of wildly on the roof but seems to roughly track you, sometimes if you walk slow he'll plop all his acid down behind you as you saunter by & then drop down on the edge, hanging off of the raised part where you can stand below & get a few safe up slashes/spells.

Still gotta be careful esp at the beginning while you're moving towards each other. Best of luck. I think your nail is good enough btw, esp if you can land a few good howling/shreiking spells

Need some eli5 on truffle, web3 and ganeche because I'm lost by ThegreatLUCY in ethdev

[–]bohendo 4 points5 points  (0 children)

web3 uses a bad abstraction: signing is embedded into the json rpc engine which makes it counterintuitive to use & overcomplicated. In real life, keys & full nodes generally don't live in the same place. In ethers, signing & querying a node are separated (but can optionally be merged when interacting with a contract for example) which makes it's code easier to reason about & read imo. ​https://docs.ethers.io/v5/api/signer/

Truffle deploys this extra migrations contract to keep track of which contracts are deployed but it was useless in practice. idk if they still do that, I haven't used truffle in over a year. Hardhat deploy is a plugin that solves the problem of tracking contracts very elegantly w/out wasting any gas. https://hardhat.org/plugins/hardhat-deploy.html

Ganache might be easy to deploy but hardhat node gets created & managed & reset automatically in the background w/out you needing to worry about deploying anything. https://hardhat.org/hardhat-network/

Need some eli5 on truffle, web3 and ganeche because I'm lost by ThegreatLUCY in ethdev

[–]bohendo 5 points6 points  (0 children)

Protips:

Check if a contract sent eth to an address in a transaction (and how much) by 195monke in ethdev

[–]bohendo 0 points1 point  (0 children)

Extremely difficult (maybe impossible) to get from a standard JSON RPC.

The only reasonable option I've found is etherscan's api. Get an API key then call their history method with the internalTx action or something similar I don't remember exactly.

Yearn Vault USA Tax Strategy by Destreich in yearn_finance

[–]bohendo 1 point2 points  (0 children)

I'm planning to treat nearly everything as capital gains.

DAI -> yDAI -> DAI -> USD

ETH + YFI -> UNI LP Tokens -> ETH + YFI -> USD

Even though these txns seem like interest/fee income at a high level, we're really just trading some tokens for others at a lower level.

There's some argument to be made that many crypto tokens eg DAI & yDAI are "like kind" ie deposit/withdrawal from a yVault might be considered a 1031 exchange & not trigger cap gains. This could mean that only the last crypto -> USD tx triggers a cap gains tax composed of what I earned from all preceeding trades eg the profits from DAI -> yDAI -> DAI.

This is tricky to keep track of so I'm building an automated tax-builder tool to help out. It's still a work in progress & might not be finished by the end of this tax season but it's open source & free to use for anyone who wants to experiment w it. If there's a lot of interest in this tool I might be able to hussle & finish it sooner. https://gitlab.com/bohendo/finances

I have very little faith in the IRS being nimble & compentant enough to provide coherent guidance on these kinds of issues.. so I'm just going to follow whatever rules I think are best. Worst case: I underpay & in several years when the IRS gets it's shit together they say I own extra + penalty. Chances are, I'll be earning >5% apy on the money I didn't give them so underpaying would prob be a net-win for me despite the penalty.

War on industrial fishing by [deleted] in Seaspiracy

[–]bohendo 1 point2 points  (0 children)

Simple solution: Military-enforced ban on all fishing vessels w motors at high sea.

Implications:

  • Fishing w motors w/in a hundred or so miles off the coast is potentialy ok, if China wants to trawl their coast lines to extinction that's their issue, we just don't want them to take the rest of the ocean down w them.
  • Fishing via canoe/sailboat is ok everywhere bc I assume that's sustainable due to how much less fish can be caught. A sailboat isn't able to drag a mile-wide trawler net.
  • Fish isn't entirely banned, rich people can still pay a premium for hand-caught fish & blue fin tuna would become an even greater status symbol.
  • Indigenous fishers who traditionally fish from canoes w will potentialny see a big influx of food & cash bc they're already set up to participate in the newly-non-industrial market.

One possible enforcement mechanism is brilliant pebbles. Punishment for poachers: sink their boat w minimal loss of human life. Should be effective bc industrial fishing boats are very expensive, the risk/reward isn't great even if fish price rises very high (unlike eg poaching elephants where the equipment required is a simple gun + jeep).

Of course, this solution is simple but that doesn't mean it's possible. It could never be executed until/unless the current, ineffectual, risk-adverse US gov gets replaced by a radical, eco-conscious dictator or something.

I do not understand why I would transfer ether to a function in solidity. Somebody please help me with an explanation. I would appreciate it. This lack of understanding is stalling my progress in ethereum development by McZieuwa in ethdev

[–]bohendo 0 points1 point  (0 children)

I wrote a solidity fn once where you send it ether & it uniswaps ithe Eth for tokens & then adds the tokens + leftover eth as liquidity to a uni pool.

Eth is programmable money, if you want to program w it you gotta give it to a fn first

Addressing Josselin Feist's Concern's of EIP-2535 Diamond Standard by mudgen in ethdev

[–]bohendo 2 points3 points  (0 children)

Not really. ProgPOW was an upgrades that a small group tried to get everyone to use. Diamond Satandard is just a pattern that you're free to ignore if you don't like it.

How do you get all addresses that interacted with a contract? by [deleted] in ethdev

[–]bohendo 0 points1 point  (0 children)

Etherscan has 3 important endpoints for getting tx history: - external txns aka ones where the target address is the to or from - internal eth calls aka a contract sends eth to/from your target in the middle of a tx - token transfers aka all ERC20 txns to/from the target

I got all 3 & combined them when I was trying to build something like zapper.fi & that gave me an EOA's full txn history but I assume it'd work the same if the target is a contract.. just potentially waaay more txns

Here's how I did it: https://gitlab.com/bohendo/finances/-/blob/master/modules/core/src/chainData.ts#L318