Better HN
topnewbestaskshowjobs
Log inSign up

agilebyte

833 karma · joined Apr 6, 2011 (15y ago) · 517 submissions

Victoria, BC, Canada https://github.com/radekstepan http://radekstepan.com
Submissions

comment 1y ago · link · parent

Markdown format with a comment saying what the file path is. So:

This is src/components/Foo.tsx

```tsx // code goes here ```

OR

```tsx // src/components/Foo.tsx // code goes here ```

These seem to work the best.

I tried diff syntax, but Gemini 2.5 just produced way too many bugs.

I also tried using regex and creating an AST of the markdown doc and going from there, but ultimately settled on calling gpt-4.1-mini-2025-04-14 with the beginning of the code block (```) and 3 lines before and 3 lines after the beginning of the code block. It's fast/cheap enough to work.

Though I still have to make edits sometimes. WIP.

comment 1y ago · link · parent

I am avoiding the cost of API access by using the chat/ui instead, in my case Google Gemini 2.5 Pro with the high token window. Repomix a whole repo. Paste it in with a standard prompt saying "return full source" (it tends to not follow this instruction after a few back and forths) and then apply the result back on top of the repo (vibe coded https://github.com/radekstepan/apply-llm-changes to help me with that). Else yeah, $5 spent on Cline with Claude 3.7 and instead of fixing my tests, I end up with if/else statements in the source code to make the tests pass.

comment 5y ago · link · parent

Coal is used in (some) peaking power plants that only turn on during a surge of demand for electricity. Some also use natural gas. It's easier to spin them up/down and can deal with the strain of being used intermittently.

comment 5y ago · link · parent

Individuals: Your mattress is not big enough for all your cash and your neighbors are eyeing it too...

Institutions: requirements that they hold a % of their portfolio in safe assets like bonds.

comment 5y ago · link · parent

Raise money, buy competition, raise fees?

comment 5y ago · link · parent

Who are you trying to prevent from taking the handle? Seems like it's either a) adults - that have a legit use for it now, b) soon to be adults that will have a legit use for it sooner than your kid does.

comment 6y ago · link · parent

It drives up the price of real estate, all of it. Which means that for those Canadians that bought - it's a huge segment of their net worth. And they vote.

comment 6y ago · link · parent

More democratic than China, yes. A low bar to clear.

comment 6y ago · link · parent

Given a choice between two neighbourhoods, would I want to move to one that has grow ops or a high rate of social services checkups? Some of that data is already easily available and I know it is being used by real estate agents already. The people that can avoid these neighbourhoods will, which leaves only those that can't. Gentrification.

The neighbourhood I grew up in was heavily mixed (along social strata) which prevented these problems from arising in the first place.

comment 6y ago · link · parent

If we had access to granular data like this, wouldn't it lead to further gentrification and a further rift within a society?

comment 6y ago · link · parent

Time in the market applies to all the market, there's no qualifier for just a bull market - that would be timing the market. Vast majority of people cannot time the market.

Bear Markets: This Time is Different (Every Time) - https://www.youtube.com/watch?v=Jh9Gn58r9Fw

comment 6y ago · link · parent

2:1 is 60-70%

comment 6y ago · link · parent

From a news story here in Canada about Navajo - their nation is a "food desert" so people have to keep driving to the cities to buy everything, exposing themselves in the process (can't do Foodora/Uber Eats/Instacart). Lack of PPE seems to be a general problem as well.

comment 6y ago · link · parent

Launch date 7/7/2019, Vega 11 graphics, 4 cores (8 threads).

comment 6y ago · link · parent

Re 5) I don't think they knew how valuable it was when uncovering it, the region is filled with fossils. When I visited Royal Tyrrell Museum in 2016 they said they have more fossils in the storage than they have time to process them.

comment 6y ago · link · parent

Dan Ariely

comment 6y ago · link · parent

https://tools.wmflabs.org/hatjitsu is a free alternative that highlights if there are any differences among revealed points.

comment 6y ago · link · parent

Yes, 1080p at 60fps which is still the most popular resolution out there according to the Steam Hardware Survey.

https://store.steampowered.com/hwsurvey/Steam-Hardware-Softw...

comment 6y ago · link · parent

Some things still remain in the "future" bucket and I miss in JS/TS, like the native support for literate programming which lets you write your code and documentation together and generate e.g.:

https://github.com/radekstepan/metalsmith-related#source

comment 6y ago · link · parent

For anyone looking, the term is "Real Return Bonds". And if you are in Canada watch out, there are not as many of them and the average maturity is quite high so you can expect some wild swings (e.g. XRB ETF).

comment 6y ago · link · parent

That introduces the risk of currency exchange, unless you find bonds that are hedged to your local currency.

comment 6y ago · link · parent

Reduced infection rates through Black Mirror level contact tracing?

comment 6y ago · link · parent

They perform faster than the government and have the expertise to deal with businesses. Compared to 2008, I see their role as "good guys" this time round.

comment 6y ago · link · parent

Banks paid sanctions for failing to do due diligence on loan applications, that's what the banks want to avoid this time round.

comment 6y ago · link · parent

The loans are guaranteed but you can still pay $ sanctions for not doing the work right.

From Matt Levine:

> Big banks that paid billions of dollars in sanctions after the 2008 financial crisis for flaws or omissions in loan applications -- in that case, mortgages -- assumed paperwork submitted to the SBA would need to meet high standards, or they would risk getting in trouble again. Wells Fargo has been under particular pressure to show that it overhauled its internal controls.

Now that wasn't in the end the case as:

> Some were floored when the SBA posted a notice on its website on Tuesday, confirming that’s necessary but saying that “lenders who did not understand that these steps are required” didn’t need to withdraw applications already submitted. That essentially gave an edge to lenders that had skipped that time-intensive step to get their customers’ applications in first.

But that was (some of the) banks' view.

comment 6y ago · link · parent

Yes, but the point is DD was done (last year or today). Effectively the government is paying the banks for the work they've done creating a relationship with the clients, which includes DD.

comment 6y ago · link · parent

Paperwork AND doing due diligence on the companies more effectively than the government can right now.

comment 6y ago · link · parent

Not having a cover letter that directly speaks to what I am looking for, instead having a generic blurb or no blurb at all. That's one example.
12345
18