Advertisement Β· 728 Γ— 90

Posts by Tim Fischbach

Demo: jsbin.com/linisaketu/e...

3 weeks ago 0 0 0 0
CSS Properties and Values API Level 1

"The computed value of a registered custom property is determined by the syntax of its registration. [...] If the specified value is a dimension literal (such as 50em), the computed value is the same value, but with the unit converted to the corresponding canonical unit for the type of value."

3 weeks ago 0 0 1 0
Screenshot of two nested divs with container-type: inline-size. The inner container has 60% width and contains two boxes: One with width 50cqw relative to the inner container and one wider one with width 50cqw relative to the outer container.

Screenshot of two nested divs with container-type: inline-size. The inner container has 60% width and contains two boxes: One with width 50cqw relative to the inner container and one wider one with width 50cqw relative to the outer container.


:root {
  --size: 50cqw;
}

.outer-container {
  container-type: inline-size;
}

@property --px-size {
  syntax: '<length>';
  inherits: true;
  initial-value: 0px;
}

.inner-container {
  /* Turn cqw into computed pixel value */
  --px-size: var(--size);
  
  container-type: inline-size;
  width: 60%;
}

.box.with-size {
  width: var(--size);
}

.box.with-px-size {
  width: var(--px-size);
}

:root { --size: 50cqw; } .outer-container { container-type: inline-size; } @property --px-size { syntax: '<length>'; inherits: true; initial-value: 0px; } .inner-container { /* Turn cqw into computed pixel value */ --px-size: var(--size); container-type: inline-size; width: 60%; } .box.with-size { width: var(--size); } .box.with-px-size { width: var(--px-size); }

TIL you can use registered custom properties in CSS to force computing a property value at a certain level in your DOM instead of just applying text based substitution. This can useful when working with nested containers and wanting to reference an outer container in via container query units.

3 weeks ago 0 0 1 0

Otherwise `jj split -r X` keeps the selected changes in X and creates a new change id for the remaining changes on top of it, forcing you to first look up the new change id before you can run the next split command.

3 weeks ago 0 0 0 0

TIL if you want to split out multiple smaller changes from a larger one, you can use `jj split -r X -B X` to make sure the id of the remaining big change stays stable. #jj-vcs

3 weeks ago 0 0 1 0

I especially like that pinning keeps watching the continuously rebased bookmark even if I temporarily move to another change somewhere in my current stack of changes.

3 weeks ago 0 0 0 0

With git I often used to do `git diff my-feature@{1}` after an interactive rebase instead. jj's more fine grain history rewrite commands are way more versatile, but no longer give me this well defined before/after by default.

3 weeks ago 0 0 1 0
Advertisement
Preview
jj pin – guard the tree at a bookmark during history cleanup jj pin – guard the tree at a bookmark during history cleanup - jj-pin.bash

jj-pin lets me display an indicator in my prompt that tells me when the diff between trunk and the pinned bookmark diverged from its initial state.

Also TIL about Git's ^{tree}.

gist.github.com/tf/fd8e93a83...

3 weeks ago 0 0 1 0
~/my-repo[my-feature q]$ jj-pin
πŸ“Œ pinned my-feature (7a738bec1452)
~/my-repo[my-feature q πŸ“Œ]$ # Rearrange/clean up changes
~/my-repo[my-feature q πŸ“Œ]$ echo "Accidental change" > foo                                                                                                          ~/my-repo[my-feature q πŸ“Œβœ—]$ jj-pin-diff 
Modified regular file foo:
        1: Accidental change
~/my-repo[my-feature q πŸ“Œβœ—]$ jj-unpin # when done

~/my-repo[my-feature q]$ jj-pin πŸ“Œ pinned my-feature (7a738bec1452) ~/my-repo[my-feature q πŸ“Œ]$ # Rearrange/clean up changes ~/my-repo[my-feature q πŸ“Œ]$ echo "Accidental change" > foo ~/my-repo[my-feature q πŸ“Œβœ—]$ jj-pin-diff Modified regular file foo: 1: Accidental change ~/my-repo[my-feature q πŸ“Œβœ—]$ jj-unpin # when done

Experimenting with a custom jj-pin script to make history cleanup in #jj-vcs feel safer. I often find myself tweaking a stack of changes moving things around without wanting to change the overall diff. Especially when there are conflicts to resolve, I want to be sure not to mess up.

3 weeks ago 0 0 2 0

Crises precipitate change...

2 months ago 0 0 0 1

Besides accountability, I wonder about intentionality. Even with a perfect pipeline that turns every bug report and feature request into a working patch, isn't the act of building something as much about deciding what not to build?

2 months ago 3 0 0 0

I really wish there was something with the performance characteristics of transactional fixtures but the locality/ colocation of factories.

2 months ago 0 0 1 0
Add support for Rails built-in Parallel Testing Β· Issue #2104 Β· rspec/rspec-rails Use Rails 6 built-in parallelizer API for running parallel RSpec executors https://edgeguides.rubyonrails.org/testing.html#parallel-testing rails/rails#31900 (comment)

Found the GitHub issue: github.com/rspec/rspec-...

2 months ago 0 0 1 0

Doesn't plain vanilla Rails testing has some parallelization features that Rspec is missing?

2 months ago 1 0 1 0
Can I assign roles for individual stories? Inviting additional users is available starting from the Business plan. In addition to account-wide roles, you can assign users specific roles for individual stories. This allows for finer ...

Here's the helpdesk article using the screenshot: pageflow.freshdesk.com/en/support/s...

2 months ago 0 0 1 0
Advertisement
Screenshot of a JavaScript module exporting a set of labels used in the UI in German and English (like "Benutzer hinzufΓΌgen"/"Add user"), and a perform function that uses playwright functions (like getByRole, click, and waitForLoadState)  referencing those labels , custom annotate functions to draw arrows and boxes, and a custom screenshot function to screenshot the viewport, passing a clipBelowAnnotations option.

Screenshot of a JavaScript module exporting a set of labels used in the UI in German and English (like "Benutzer hinzufΓΌgen"/"Add user"), and a perform function that uses playwright functions (like getByRole, click, and waitForLoadState) referencing those labels , custom annotate functions to draw arrows and boxes, and a custom screenshot function to screenshot the viewport, passing a clipBelowAnnotations option.

Here's an example of a screenshot script.

2 months ago 0 0 1 0

Since the repository also acts as the source of truth for the HTML of the knowledge base articles (via a separate set of script to sync with the helpdesk), agents can automatically incorporate the correct CDN image urls based on screenshot script paths when updating articles.

2 months ago 0 0 1 0

I especially like that the resulting process to update screenshots is totally deterministic and does not involve agents directly.

2 months ago 0 0 1 0

I created a skill to interactively navigate my app to specify new screenshots. The skill then automatically figures out relevant labels in different locales and creates the screenshot scripts.

2 months ago 1 0 1 0

I've used Claude Code, to create scripts that navigate my app using playwright, draw annotations with SVG, take screenshots, create visual diffs with Percy and upload to S3.

2 months ago 1 0 1 0

Always finding it hard to balance fun gamification like that with making sure I'm actually working on the most important thing.

3 months ago 0 0 0 0

/cc @indirect.io @steveklabnik.com

3 months ago 0 0 1 0

I really like the squash workflow in #jj-vcs. But what are people using to inspect the resulting change? Do you always type out `jj diff -r @-`?

3 months ago 0 0 2 0

There's an interesting dynamic, where coding agents not only reduce the activation energy required to follow certain best practices (automated tests, small commits, limited scope etc.), but sort of turn them into prerequisites to have a chance of making the process work at all.

4 months ago 1 0 0 0

So inbound in the sense of having them request a demo etc. and then having them talk about their use case?

4 months ago 0 0 1 0
Advertisement

How do you approach customers/how do you frame the request? What's your process for picking customers to interview?

4 months ago 0 0 1 0

Nice. Could also apply some perspective to the parent section to give it additional depth.

5 months ago 0 0 1 0

What do you think about starting with de-risking unknowns?

5 months ago 0 0 0 0

Been wondering: What does the codecamp hashtag relate to?

5 months ago 0 0 1 0

Tried it a bit, but found it a bit unclear when which skill is active - especially across context compactions. Would be nice if /context included that info. Felt a bit more in control with custom slash commands.

5 months ago 0 0 0 0