pelavarre

@pelavarre@vivaldi.net

come squee with me? 😂 / or laugh with my bots? 🤔 / they like Python and Bash and Xlsx 😋

This profile is from a federated server and may be incomplete. Browse more on the original instance.

pelavarre, to random

Hannah McCarthy talks pop Civics for Np

she says her uncle says talking politics used to be fun, and now gets you kicked out of bars

how do we fix this?

does it help to blame who stole the fun, killed the buzz? does blame ever help anything? how do we bring back the fun of political disagreement? it’s only fun when we all feel safe about the basics, so we’re only arguing about the extras?

pelavarre,

@encthenet

> human rights aren't politics, politics is what should be built next door, or how the roads should be laid out

this, yes, this

b0rk, to random
@b0rk@jvns.ca avatar

what are the most common git mistakes you make that mess up your repository and are annoying to recover from?

(only interested in mistakes you personally have made, not mistakes you see other people making)

pelavarre,

@davidlowryduda @thisismissem @evan @b0rk

i’ve failed to figure out how to make a Git Alias show the people watching over my shoulder what’s going on

so i keep up zero Git Aliases

i write Sh Scripts instead

the ~50 Sh Scripts at bin/q*
have Stdin interlocks after Stdout queries to block what often goes wrong, and corrected defaults such as
git reflog --date=relative --numstat

but mostly they just abbreviate the keywords i need daily down to single letters, such as

qsis = git status --ignored --short
qspno = git show --pretty= --name-only

etc

but they show you how to spell out the command in full whenever they run, to help you learn and memorize how much more you must type away from my desk

<=

https :// github . com /pelavarre/byoverbs/tree/main/bin

dabeaz, to random
@dabeaz@mastodon.social avatar

Getting ready for the last day of compilers. This whole week has been mind-blowing. Inspired by my Brown sabbatical, I went all in on taking a "nanopass" approach to the project. Now that I'm well into it, I feel like I've coded the best compiler yet (as compared to my previous efforts).

pelavarre,

@dabeaz

“Nanopass”?

b0rk, to random
@b0rk@jvns.ca avatar

i'm trying to figure out what high-level abstraction git presents. I think it's something like this?

(yes, all of this is "wrong", but I feel like git's UI does a lot of work to try to provide this abstraction in an inconsistent and leaky way)

pelavarre,

@hypolite @b0rk

> local branches
> remotes
> it’s subtle, because

i myself am only always local

i can only observe what’s local, such as stale copies of what’s remote

as an author of changes, i care most about what’s local, my job is to persuade the remote to catch up with my local contribution of my freshest changes

dabeaz, to random
@dabeaz@mastodon.social avatar

Really wish Python had gradual typing instead of optional typing.

pelavarre,

@dabeaz

> really wish Python had gradual typing instead of optional typing

because which interesting and uninteresting reasons?

renchap, (edited ) to mastodon
@renchap@oisaur.com avatar

In the last few weeks, I have been trying to organise the development work, so our (very small!) resources are used efficiently. This led us to a tentative roadmap for Mastodon 4.3, with a (very optimistic) release date before Christmas.

Here are the main items ⤵️

pelavarre,

@renchap

you already know we could do quote-tweets hugely better here?

funding quit & invention died at Twitter before they finished that project

1 we can forward CW

2 we can unfurl as a wide an outside world as does Slack

3 we can crop out unfitting distractions when the substance of the unfurl can’t afford the noise of worthless details such as no one has retweeted it before now

this tweet of mine handcrafts a quote of mine but my tools wrongly leave an overlarge blank in the middle

https://twitter.com/patio11/status/1720592717212766718

pelavarre, to random

.@robpike

1 ) you do remember the whole original meaning of leaving Stdin/ Stdout/ Stderr undirected in a Sh Pipe

2 ) our rerunning that logic at macOS now says the default Stdin of a Sh Pipe should be the PbPaste, no longer the classic unprompted indefinite sleep til the next Control+D Tty Eof

3 ) could you reply with the single word: Yes

for it would retweet well : -)

<= https://github.com/pelavarre/byoverbs/blob/main/bin/3

pelavarre,

@robpike

thank you for saying

:

the 4 keyboard chords

c a t Return

are a frustration to me in Sh, because Sh just sits there hoping i’ll think to try typing up input, it doesn’t visibly ask me for what it wants

i’m thinking it should default to take the ‘pbpaste | …’ as its input, by which i mean a copy of the Os Copy Paste Clipboard Buffer

i’m guessing it would, if we’d had Clipboards fifty years ago

how wrong am i?

b0rk, (edited ) to random
@b0rk@jvns.ca avatar

did a fun exercise with a vim-using friend where we went through the alphabet (abcdefghijklmnopqrstuvwxyz.'@^$%”) and compared which vim commands each of use

these were my results, unsurprisingly each of us had a slightly different set of commands we use and both of us learned some new tricks

pelavarre,

@b0rk

oh wow

how do you live still now without f F t T
?

do you mouse a lot ?

and what do you do in place of Z Q and Z Z
?

but aye studying what they made easy quick to type reveals what they felt must be easy quick to say

as i rewrite Vi as Python on GitHub, i study the shift keys as well, so above we’re talking of F ⇧F T ⇧T ⇧Z⇧Q ⇧Z⇧Z

i hope you’ve made friends with the three chord sequence Q Q @Q

⌃L and ⌃G and ⌃V matter early in the Normal/View Mode, and ⌃V again while Insert/ Replace

i want to see your Vi Zine : -)

pelavarre,

@penguin42 @b0rk

> everyone different

aye many fashions, while not infinitely many - Julia Evans can zine this scene

Vi D T is huge for me, it’s ⌥Z in Emacs & Zsh zap-to-char

Vi Q is its record/ replay toggle

@ Q then replays once

5 @ Q replays five times

like if you record Q 0 I A B C Esc J then repeating it will insert “abc” at left of each Line, and proceed to next Line

Vi Macro writing is an art - a good strong pattern in it is this style of init, then do, then next

⌃G updates Status with many details

⌃L repairs Screen after damage, such as Ssh interpreting Return ~ ?

that Return ~ ? test works only inside Vi inside Ssh at Lines that are empty or don’t begin with white space

⌃V from Normal/View edits Screen as 2D not 1D - me i only memorise its ⇧… Esc Esc for inserting same across many Linrs and its ⇧X to cut and ⇧P to paste

⌃V Tab from Insert/Replace is how i force a b"\x09" Hard Tab in place of more ordinary b”\x20" Spaces

pelavarre,

@penguin42 @b0rk

> i'm a :wq! rather than a Zer

me likewise, i was team ⌃L : Q ! for years, but i took Windows work for hire 2008..2015

when i came back to macOS Terminal Sh, i studied the Vi keyboard like Julia Evans above then i could feel it talking

it says oh i should come learn ⇧Z ⇧Q

so then i did

p.s.

the ⌃L in this is only needed when you play around with: vim -y

which i guess practically nobody does? that obscure standard mode blocks Esc and ⌃C from exiting Insert/Replace Mode, so then you have to resort to ⌃L ⇧Z ⇧Q or ⌃O ⇧Z ⇧Q or ⌃O : Q ! or whatever

pelavarre,

@b0rk @penguin42

:g/pattern
as in : G pattern Return

is also hugely cool in Vim/Vi

especially in the mode of: :set number

you get the dump of all Hits on screen at once, you're not forced to work through them one by one by one flooded with much too much irrelevant context - works as well as a separate VsCode Search, or a Sh Grep, but just a bit more easy quick

your cursor lands on the last Hit, ⇧N takes you back through them, vs lower N undoes ⇧N

pelavarre,

@b0rk @dcbaok

> a long time to realize that I use ‘m’

m m
to bookmark

' '
to come back

again, studying what's cheap rewards me greatly - m m and ' ' are cheaper than m or ' followed by anything else

i don't even remember what else m and ' do when followed by Vi Keys other than themselves, i learned this much as good enough for my work and moved on

pelavarre,

@penguin42

> the sshism

Ssh defaults to take the ~ after a Return to itself

you can see the slow echo in Bash if you press Return and then make your next line begin with the two keychords ~/

likewise in Vim

the three keychords
Return ~ ?

they definitely work if you start above a blank line or a line that doesn’t begin with an indent - i retested this today morning in a macOS Terminal Ssh to Linux Vi

maybe they work more often than that and i’ve forgotten

when they work they splash Ssh Help Lines all over the Screen

have you got it repro’ing for you now?

then you need Vi ⌃L

pelavarre,

@penguin42

> Ssh defaults to take the ~ after a Return to itself
> > the sshism
> > when you found yourself typing that sequence accidentally

cd ~/repo2/
~/repo1/bin/tool $PWD

the 3 chords of: Return ~ /
come to me naturally when i speak the name of a File found from Home as a Sh Command Verb

they come more often when i reconfigure Sh to stop making me type the nearly worthless "cd " part of that dialog

~/repo2/
~/repo1/bin/tool $PWD

but these Return ~ only show me the slow Echo, not the wrong Echo

> > the sshism
> > when you found yourself

the louder disruption of Return ~ ? maybe i have only ever seen on purpose?

another context in which i've needed Vi ⌃L is the Sh Command Line of
wall their surprise inspection is starting now

but i've not much shared a single machine with other living people since like forty years ago

Vi ⌃L never does much more for me than ⇧Z⇧Z to save-and-quit, and then relaunching Vi would do for me

Vi ⌃L does help me quit: vim -y

Terminal Screens do sometimes just not work right, i do see failures i can't repro reliably

> > the sshism
> > when you found yourself

i fear i keep on missing what question we're asking?

seachanger, to random
@seachanger@alaskan.social avatar

posting a lot about Israel today because the fedi is not a safe space for oppression or religious persecution, and many of us have some learning to do

pelavarre,

@seachanger

“our blood is the same color and our tears taste the same”

<=

https :// twitter . com / AmiDar / status / 1711729350519783563

dabeaz, to random
@dabeaz@mastodon.social avatar

Wondering how cursed I will become if I work the code in TAPL using Python. Pretty cursed I'd bet.

pelavarre,

@dabeaz

> TAPL at Python

cursed in some circles aye

but you’d build wide reach across the large crowd for whom Python is the only present competent welcome into computing

like https://replit.com does

<= https://social.vivaldi.net/@pelavarre/110990808905523135

b0rk, to random
@b0rk@jvns.ca avatar

I keep thinking about trying to write another zine about git -- for me git is something I feel totally confident using and I never really run into problems, and I really wish I could telepathically send that sense of confidence to everyone who’s struggling with git

pelavarre,

@b0rk

> send that sense of confidence to everyone who’s struggling with git

can you easily count how many different forms of Git lines you sent across, say, the last 45 days?

i send fifty-plus, which is too many to teach? i need to find more structure in them, somehow

mine are up at https://gist.github.com/pelavarre/bc6f679a34e804c563f94a5e4d842a3e

for example,

: qlv && git log --oneline --decorate -14

  • All
  • Subscribed
  • Moderated
  • Favorites
  • megavids
  • kavyap
  • cisconetworking
  • GTA5RPClips
  • osvaldo12
  • khanakhh
  • DreamBathrooms
  • magazineikmin
  • Youngstown
  • everett
  • mdbf
  • slotface
  • InstantRegret
  • rosin
  • JUstTest
  • cubers
  • modclub
  • normalnudes
  • Durango
  • thenastyranch
  • ethstaker
  • tacticalgear
  • ngwrru68w68
  • Leos
  • anitta
  • provamag3
  • tester
  • lostlight
  • All magazines