#ruler

SpankLit Storieswriter@spanklit.com
2025-10-22
2025-09-19

#ruler #terminal #tmux #ded

I've had this idea of having a ruler in the terminal. Such a ruler would allow me to see how far across the terminal a character or word is.

Why? Not sure yet, I just liked the idea of it. You know, this is one of those solutions looking for a problem. ;). Still, it was fun.

What I came up was this:

(ruler1.png)

This is achieved using tmux, where it's possible to create a split where the output is taken from stdin (rather than spawning a shell):

% ruler | tmux splitw -dI -l2 -b &

Here, this creates a split window two lines high (-l2), puts on the top (-b), and puts the output from the`ruler` command in the window.

Then I can use text using whatever against the ruler to see where on the screen it is.

We can take this a step further though and make use of tmux's `popup-display` command to have a ruler floating on the screen:

(ruler2.png)

... and even make it borderless:

(ruler3.png)

This can be moved using the mouse, by holding Alt down and dragging with mouse-1.

It turns out that using a ruler in an application isn't new.

Thomas Dickey (of #xterm fame) wrote #ded (invisible-island.net/ded/ded.h) which has a ruler on it:

(ruler4.png)

#ded is an interesting program of itself and I had to tweak it slightly to make ot use ncursesw to display nicely in tmux (ACS fallback for drawing the ruler), which I might discuss in a separate thread on here.

I'll have to email Thomas to find out what the "workspace ruler" (as it's called) does, and what it's useful for.

As for my ruler, well, I think I have the measure of it now, so I think I'll re-write the quick shell script into something with bells-and-whistles.

Maybe I'll give it conversion options to display inches, feet, cubits, etc... ;)

A terminal window, running tmux.

The top of the window has a horizontal split of three lines.  The first line shows numbers:

|---1--|--2--|---3---|

The second line counts from 01234567 repeatedly to denote the number of spaces in a tab character.This show a terminal running a program called `ded` -- the top half shows a file listing in the terminal, and the lower half has a ruler in the terminal showing how many tabs there are.A terminal window, running tmux.

The top of the window has a horizontal split of three lines.  The first line shows numbers:

|---1--|--2--|---3---|

The second line counts from 01234567 repeatedly to denote the number of spaces in a tab character.
WIST Quotationswist@my-place.social
2025-08-18

A quotation from Robert Herrick

’Twixt kings and tyrants there’s this difference known:
Kings seek their subjects’ good; tyrants their own.

Robert Herrick (1591-1674) English poet
“Kings and Tyrants,” Hesperides, # 861 (1648)

Sourcing, notes: wist.info/herrick-robert/78445…

#quote #quotes #quotation #qotd #robertherrick #despot #dictator #king #leader #leadership #ruler #selfaggrandizement #selfinterest #socialcontract #tyranny #tyrant

TechnikwheelTechnik_wheel
2025-08-18

Titanium Multifunctional EDC Foldable Measuring Ruler

👉link in bio

Gr5 Titanium.All-in-1.CNC machining dimension line.Multi-purpose measurement.

DJ Floopsdjfloops
2025-07-17

Song Movie 

Watch & Enjoy Padthadu Thaadu Song Short from the Moive Ruler. Movie Name : Ruler Director : KS Ravi Kumar Music Director : Chirantann Bhatt Singers : Simha, Chandni Vijaykumar Shah Lyrics - Bhaskarbhatla Starring : Nandamuri Balakrishna & Sonal Chauhan Producer : C.Kalyan Banner : Happy Movies Music programming : Som Riggs Mixing and Mastering : Vinod Verma Audio Label : Aditya Music…

chutneymusic.com/padthaduthaad

WIST Quotationswist@my-place.social
2025-06-19

A quotation from Josh Billings

“Happy as a king,” iz a libel on happiness, and on the king to.
 
[“Happy as a king,” is a libel on happiness, and on the king, too.]

Josh Billings (1818-1885) American humorist, aphorist [pseud. of Henry Wheeler Shaw]
Everybody’s Friend, Or; Josh Billing’s Encyclopedia and Proverbial Philosophy of Wit and Humor, ch. 156 “Affurisms: Embers on the Harth” (1874)

Sourcing, notes: wist.info/billings-josh/77058/

#quote #quotes #quotation #qotd #joshbillings #appearance #facade #happiness #king #monarch #ruler #seeming #unhappiness #power

WIST Quotationswist@my-place.social
2025-02-17

A quotation from John Adams

Rulers are no more than attorneys, agents and trustees for the people; and if the cause, the interest and trust is insidiously betray’d, or wantonly trifled away, the people have a right to revoke the authority, that they themselves have deputed, and to constitute abler and better agents, attorneys and trustees.

John Adams (1735-1826) American lawyer, Founding Father, statesman, US President (1797-1801)
Essay (1765-09-30), “A Dissertation on the Canon and the Feudal Law,” No. 3, Boston Gazette

Sourcing, notes: wist.info/adams-john/74851/

#quote #quotes #quotation #authority #citizenry #election #government #people #politicalpower #power #regime #regimechange #representation #ruler

WIST Quotationswist@my-place.social
2025-02-06

A quotation from Carlyle

Tell me what kind of man governs a People, you tell me, with much exactness, what the net sum-total of social worth in that People has for some time been.

Thomas Carlyle (1795-1881) Scottish essayist and historian
Essay (1850-04-01), “Downing Street,” Latter-Day Pamphlets, No. 3

Sourcing, notes: wist.info/carlyle-thomas/74601…

#quote #quotes #quotation #dictator #governance #government #governor #leader #meme #monarch #nation #people #president #ruler #society

Carlyle quotation
Dave Volekdavevolek
2024-12-28

TDG Executive & TDG Members

A different relationship between the rulers and the ruled.

tiereddemocraticgovernance.org


oktopvsoktopvs
2024-12-08
2024-11-30
Steven D. Brewer 🏳️‍⚧️stevendbrewer@wandering.shop
2024-10-05

Lady Cecelia looked around the Botanical Garden deciding what to do next. Previously the baroness' prized #rose garden, it had suffered from neglect after her death, and almost all of the roses had perished. Cecelia had reclaimed most of the beds, but a few roses were unique varieties never described before. She had managed to save two.
She walked to the first and crouched down. With her #ruler and notebook, she took careful measurements and began a description: "Rosa Lady Faeth…"

#wss366

2024-10-04

After the wedding celebration for the peasant princess and the prince, they hastened upstairs.
Dirk unbuttoned his shirt, breathing heavy with anticipation.
"Not so fast Romeo!" admonished Lily as she pulled out a #ruler.
He eyed it with wariness and excitement, "W-what's that for?"
"I always wanted to see if all rulers had twelve inches."
#wss366

Moved to wandering.shopwss366@botsin.space
2024-10-04

Today's Wandering Shop Stories #prompt is #ruler. Feel like writing something short and sweet that has the word "ruler" in it? Check out the definitions of the word at: merriam-webster.com/dictionary Join in and tag it with #wss366! #writing #WritingLife #microfiction h/t @tobadzistsini

2024-09-09

Новый метод оценки HashHop вместо “иголка в стоге сена”, RULER и 100 млн. токенов контекста

LLM с новым алгоритмом внимания в контекстное окно которой помещается весь проект с библиотеками и документацией, И почему пока звучит неубедительно все, кроме $465 млн. инвестиций. На днях стартап Magic анонсировал новую LLM модель с контекстым окном в 100 млн. токенов как многообещающий прорыв в области разработки ПО. Во-первых из-за гигантского контекстного окна, в которое буквально можно запихнуть целиком со всеми библиотеками и документацией весь проект (10 млн. строчек кода), а во вторых из-за нового механизма внимания, который позволяет модели действительно работать со всем этим контекстом. Рассмотрим насколько это инновационно и что можно понять из анонса Magic. (Спойлер - HashHop простой и логичный механизм, но как это все работает и работает ли понять пока невозможно).

habr.com/ru/articles/841542/

#HashHop #ruler #контекстное_окно #llm

Client Info

Server: https://mastodon.social
Version: 2025.07
Repository: https://github.com/cyevgeniy/lmst