What is Hackers' Pub?

Hackers' Pub is a place for software engineers to share their knowledge and experience with each other. It's also an ActivityPub-enabled social network, so you can follow your favorite hackers in the fediverse and get their latest posts in your feed.

lesson 6: What goes on inside a lock?

A (typical pin tumbler) lock consists of a pretty simple mechanism. Pairs of pinsโ€”the driver and key pinsโ€”are pushed by a spring, such that the driver pins block the core of the lock from rotating. When a key is inserted, it raises the pin-stacks so that the driver pin is above the shear line between the core and the lock housing, and they key pin is below it. Key pins are different lengths to compliment the bitting of the key, so that they all end up being the same height when resting on the cuts in the key.

In picking a lock, we simulate the key by manipulating the pins manually.

Locks are only pickable because manufacturing is imperfect. *Ideally* the pin chambers would be perfectly identical and in a perfectly straight line. *Ideally* the pins would be perfectly smooth and identical in all but length. But that's never the case. And we can use that fact to our advantage.

When we apply rotational force to the core of the lock with our turning tool, it causes the pin-stacks to pinch between the core and the housing. The pin closest to the direction we're turning will get pinched the hardest. That's the one we're looking for. When we lift that pin with our pick, it scrapes against the pin chamber until it reaches the shear line. Once it's set correctly, the next closest pin will bind, and so on. It's the same pinching that causes the set pins to stay in placeโ€”they rest on the lip of the core's chamber. Once all the pins are set, nothing is blocking the core from turning, and *click* the lock opens.

When you lift a pin too high, you "overset" it, which means the key pin is now the thing being pinched, rather than the driver pin. This'll result in a mushy, dead feeling in the pin. It'll go up, but won't spring or fall back down. It also means other pins won't bind, so everything just feels kind of lifeless in the core (like we do under capitalism).

If you *ease* off the tension, then eventually a pin will drop back down. With any luck, it's the overset one. Reapply tension and poke around to see if a pin is binding nicely If not, ease off tension again until another pin drops. This is how you recover from a misstep while picking. If you have to do this more than once or twice, consider dropping all the pins and starting overโ€”because you've probably lost your mental image of the lock's state and it'll be better to start clean.

CatSalad's interpretation of me getting ready to probe a petite French Louis Vuitton padlock with my tension tool. You can really see the tension on the lock's face, and I can feel a new adult anime series in the works.
0
0
0
2

Any chance you have six Cisco-branded UCS-MR-1X162RU-A 16GB memory modules?

I bought two for a community system for around $21 each before EuroBSDcon, verified that they worked, now have a moment to โ€œbuy moreโ€ but theyโ€™re now $40 each, because AI.

0
1

In Gaza, more than 70 children have been reported killed since October 10th, when the world hoped the relentless violence and distress for more than one million children would end.

A ceasefire must translate into genuine safety for children, not more loss.

โ€œEvery child has the right to live. The killing of children must end now.โ€

UNICEF



0
1
0
0
1
0
1
1

โ€‹:ohayo_usagi:โ€‹
้ง…ใพใงๅฎถๆ—้€ใฃใฆใใŸใ‘ใฉใ€้œœใง็œŸใฃ็™ฝใ ใฃใŸ
โ€‹:meow_drive:โ€‹

1
0
1
0
0
0

โ€œIf everyone who streamed All Hell on Spotify had done so using Tidal instead, we would have received an extra ยฃ31,847.38, which would double the amount we made from streaming of the album in this time period. Or if everyone used Apple Music it would have been ยฃ12,331 more.โ€

Los Campesinos! break down streaming royalties. In other news, Fuck Spotify.

loscampesinos.com/heres-how-mu

0
0
1

ใใ‚‡ใ†ใฏใƒ‹ใ‚ณใƒฉใ‚ฆใ‚นใ•ใ‚“ใฎๅ‘ฝๆ—ฅ

ใ€Œใ‚ตใƒณใ‚ฟใ‚ฏใƒญใƒผใ‚นใƒ‡ใƒผใ€ใฏ12ๆœˆ6ๆ—ฅใงใ€ใ‚ตใƒณใ‚ฟใ‚ฏใƒญใƒผใ‚นใฎใƒขใƒ‡ใƒซใจใชใฃใŸ่–ใƒ‹ใ‚ณใƒฉใ‚ฆใ‚นใฎ็ฅๆ—ฅใƒปๅ‘ฝๆ—ฅใซใ‚ใŸใ‚Šใพใ™ใ€‚ใ“ใฎๆ—ฅใฏใƒจใƒผใƒญใƒƒใƒ‘ใฎๅคšใใฎๅ›ฝใง็ฅใ‚ใ‚Œใ€ๅญใฉใ‚‚ใŸใกใฏ5ๆ—ฅใฎๅคœใซ้ดใ‚„ใƒ–ใƒผใƒ„ใ‚’็ฃจใ„ใฆ็ฝฎใใ€่‰ฏใ„ๅญใซใฏใŠ่“ๅญใ‚„่ดˆใ‚Š็‰ฉใŒใƒ—ใƒฌใ‚ผใƒณใƒˆใ•ใ‚Œใ‚‹็ฟ’ๆ…ฃใŒใ‚ใ‚Šใพใ™ใ€‚

0

Israeli assault in occupied West Bank fuels new displacement crisis

Intensified Israeli army raids in northern West Bank areas have caused displacement, school closures, and disruptions to local services.

Over 95,000 Palestinians were affected by expanded operations by Israeli forces in the northern area in recent days.
1/

0
1
1
1
1
0
0
1
0
1
1
1
1
0
1
0
0
0
0
1
0
0
0
1

More than 57,000 households in Gaza are now headed by women. Many of them are deeply vulnerable with no income to support their children.

Winter rain and flooding have worsened peoplesโ€™ suffering.

People no longer ask for warmth, education or proper food. They ask for a tent, a small heater, or a light. Their expectations have collapsed, as devastating as any destroyed building.



Women hug following the death of relatives killed in Israeli attacks in Khan Younis [File: Hatem Khaled/Reuters]
0
0
0
1
1
1
1
0
1
1
2

Agriculture made up about 32 percent of land use in Gaza before the war, and played a central role in the besieged enclaveโ€™s economy, along with an important part of Palestinian cultural identity.

By the end of October 2025, Israel destroyed 98% of Gazaโ€™s tree cropland and 75% of its greenhouses.

This destruction will have horrific long-term environmental impacts on Gaza.

โ€” The IMEU, December 5, 2025


0