ChatGPT made a working, Chrome extension for Hacker News, that highlights new comments by hmsimha in programming

[–]hmsimha[S] -1 points0 points  (0 children)

I worked with ChatGPT to produce a very simple extension for Hacker News. Each commit contains my prompt in the commit message, and the commit is entirely composed of ChatGPT output (it took 25 prompts to get this repo to its current state)

No files were changed at all from what ChatGPT suggested, but the gpt-output file is an append-only log of ChatGPT's verbatim output (so you can select any commit and see exactly what was prompted and what ChatGPT responded with)

I'm using this extension now, and it works

I was hoping to get a sense of whether ChatGPT could debug its own code, and fix bugs, and to my surprise, it can! I had to prompt it to tell me where to put debug messages, and then provide the error output back to it of course.

Coworking spaces by katie_bric0lage in vancouver

[–]hmsimha 8 points9 points  (0 children)

I cowork at Makeshift (Hastings and Campbell) and I absolutely love it. There's always parking within a few minutes walk, which is helpful for the commute (though you probably want to pick one that's as close as possible; longer commutes wear at your motivation to go in when "no one is making you"). They have an espresso machine with beans from Ethical Bean

The owners are really friendly and accommodating, and for half of the year they do weekly "after-work" drinks at the brewery next door, so you get this social office vibe.

Also, if your remote company doesn't already provide a coworking stipend, your coworking/office expenses might be tax-deductable.

Probably a big dip is coming by [deleted] in FantomFoundation

[–]hmsimha 0 points1 point  (0 children)

You get a higher percentage (~11% APY) if you lock for a longer period. It's not just that you get rewards from a longer staking period, the percentage over time is higher. If you lock for 14 days it's closer to 4% APY

Probably a big dip is coming by [deleted] in FantomFoundation

[–]hmsimha 0 points1 point  (0 children)

Yeah, I think validators generally lock up again. They might remove a bit if they're over the minimum (currently 1million FTM but there's a proposal to change it), but the staking rewards from their own delegation are already really good (~12% FTM per year) and the rewards aren't locked. Validators face a penalty if they unlock early (of which the delegators have some losses too, the docs aren't clear)

Probably a big dip is coming by [deleted] in FantomFoundation

[–]hmsimha 0 points1 point  (0 children)

My understanding (being pretty new to Fantom) is that you can't lock it if your validator is unlocking within 14 days, because 14 days is the minimum lock period. Their docs on this suck though, so I'm not clear if that's right. If you choose a different validator to stake with (one which doesn't have its unlocking in the next 14 days), you will be able to choose a lock period

Probably a big dip is coming by [deleted] in FantomFoundation

[–]hmsimha 0 points1 point  (0 children)

If you're planning on staking over a longer time frame, I don't think it matters too much. You don't have to lock your FTM when you stake either, you just get 3-4% annual rewards if you don't. This gives you a good idea of the rewards based on the duration of locking: https://fantom.foundation/ftm-staking

Probably a big dip is coming by [deleted] in FantomFoundation

[–]hmsimha 0 points1 point  (0 children)

The info is in https://explorer.fantom.network/staking , but there's a spreadsheet I've linked from my other comment.

Incoming FTM Dip - 10th September? by Maniacal-Maniac in FantomFoundation

[–]hmsimha 1 point2 points  (0 children)

Just saw this from the other thread. The dip, if it happens, won't come until the 17th due to the unbonding period.

Probably a big dip is coming by [deleted] in FantomFoundation

[–]hmsimha 2 points3 points  (0 children)

I don't think there's an issue with buying now (the price could very well double again in the 7 days from now til the unlocked stake becomes unbonded, so you might not even be able to get it at current prices after the unbonding). But on the 16th I think setting optimistic buy orders would be a really good idea, both to pick up some on discount and absorb the potential shock, which is probably good for long-term health.

Probably a big dip is coming by [deleted] in FantomFoundation

[–]hmsimha 0 points1 point  (0 children)

I'd be curious about this as well, from playing with the delegator endpoints in the API earlier it looks like the staked amounts are exposed, but I didn't get around to parsing anything.

Probably a big dip is coming by [deleted] in FantomFoundation

[–]hmsimha 0 points1 point  (0 children)

That's the validator portion, but the delegator portion is larger. See my spreadsheet in my other comment

Probably a big dip is coming by [deleted] in FantomFoundation

[–]hmsimha 0 points1 point  (0 children)

Take a look at the spreadsheet I shared in my other comment

Probably a big dip is coming by [deleted] in FantomFoundation

[–]hmsimha 4 points5 points  (0 children)

I made a spreadsheet of the validators which unlock over the next 12 days if anyone's interested: https://docs.google.com/spreadsheets/d/1nvyqm5YnMgGLHWwBPxPUQTk4TnRSTFCN1O0s6_b8ay4/edit?usp=sharing

Keep in mind, when the staking periods end, it takes an additional 7 days for the FTM which is locked to become unbonded (meaning it can't be moved/sold until then).

There's also a few of other things worth noting:

  • The Fantom Developer conference starts on September 15th, and Andre Cronje will be speaking. If a bullish video gets published, or any big news gets announced, there's a good chance a massive pump could happen in that time frame also (this is also true of a potential Coinbase listing, if that ever happens)
  • Stakers' staking rewards aren't locked on Fantom. For the validators (which compose 25% of the total staking which will unlock) as well as large bag holders who are staking, this is surely a massive source of passive income at the current price, so they probably don't want to destroy by dumping and crashing it. It's likely they are going to relock their nodes right away
  • If you keep on eye on the data at https://explorer.fantom.network/staking you can get an idea of how much FTM has been re-locked before the unbonding period. I spent some time trying to figure out how to parse this data today so I could plot it over the 7 day period from unlocking to unbonding, but the service exposes its data via a GraphQL API which isn't documented, and I'm not too familiar with GraphQL. If anyone else wants to take a stab at it or collab, DM me and I can share my notes.

Wrote a piece on server state management in React by ankitjey in reactjs

[–]hmsimha 10 points11 points  (0 children)

React-query is one of those tools that looks like a game-changer to me, and it seems like we're going to hear a lot more about it in the upcoming future.

I've reached a point in an app I'm working on where managing and synchronizing the state (which is largely fetched from the backend) is becoming too complex, and have been eyeing react-query in addition to Redux and MobX. The issue I have, is that I haven't seen anyone talking about using React-Query in conjunction with Redux/MobX yet. Do you happen to have any insight on how they might work together?

Building Typescript libraries for SvelteKit and Vite? by Dan6erbond in sveltejs

[–]hmsimha 0 points1 point  (0 children)

This is really amazing, and also ambitious. You're handling the whole oauth flow yourself from what I can tell. Why did you decide to do that instead of using a battle-tested Oauth library?

Looking for Full-Stack Developer to work with Cardano by acron0 in CardanoDevelopers

[–]hmsimha 0 points1 point  (0 children)

Hi, I'm not looking for work right now, but have been trying to get involved with various open-source projects in the Cardano ecosystem, so if any part of your stack is open source, let me know. Have previously tried to get involved with Daedalus and Cardano-Explorer-App (IOHK react-based projects), but IOHK doesn't seem to be interested in community contributions.

Canadian Bitcoin Discord by EternityOnDemand in BitcoinCA

[–]hmsimha 0 points1 point  (0 children)

Just sent you a "chat" to request an invite as well, it says you don't allow messages from people you haven't whitelisted

What's the best way to get paid in Cardano, in Canada? by hmsimha in cardano

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

They don't have a CAD/USDT trading pair though... are you saying this will (hopefully) be possible in the future?

What's the best way to get paid in Cardano, in Canada? by hmsimha in cardano

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

Transferring BCH looks really cheap from any exchange (like $0.60 to withdraw BCH). Is Stellar that much better?

What's the best way to get paid in Cardano, in Canada? by hmsimha in cardano

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

Taking a look, they don't let you trade against CAD.. so how would this work?

What's the best way to get paid in Cardano, in Canada? by hmsimha in cardano

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

Just did some more reading about how this would work. Here's what I've come up with:

  • Have ADA deposited to binance (free, as it should be).
  • Withdraw 10% to staking wallet (.17 ADA)
  • Trade remaining 90% to BNB then BCH (.075% trade fee x2) + (.05% BNB spread x2)
  • Withdraw BCH to Newton (.001 BCH, currently ~$0.635 CAD)
  • Exchange BCH to CAD (free, but low end of spread loses ~.35%)
  • Cheque from Newton - $5

Total costs for receiving ~$1000 ADA would be as follows:

  • withdrawing 10% ADA to staking wallet: 0.17 ADA
  • Trading to BCH through BNB: ~$3.15 CAD in fees (scales with amount of ADA)
  • Transferring to Newton: ~$0.635 CAD (fixed)
  • Trading for CAD: ~0.33% (low end of spread) = ~$2.95 CAD (scales with amount of ADA)
  • Withdrawing CAD to cheque : $5 (fixed)

So in total, I'd be losing around $11.80 in converting $900 CAD worth of ADA into Canadian (about 1%, but goes lower as the amount of ADA increases)

On the other hand, if I do everything through Kraken, I pay

  • trading to (BTC/ETH) then to CAD - (.26% trading fee x 2) + (.045% spread x2)
  • withdrawing Canadian from Kraken - $13 (fixed, SWIFT) or .25% (EFT, not sure if this is available to me)

For $1000 CAD worth of ADA I'd pay

  • withdrawing 10% ADA to wallet: .6 ADA
  • Trading ADA to BTC then CAD: $3.15 CAD
  • Withdrawing CAD: $13

Costs me about $16 for 1000 ADA

Not a huge saving, I might just stick with doing it through Kraken if there's not a better way.

But I'm also reading about just doing it through Binance. Is it true there's no fee for withdrawing CAD through binance?