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.

1
0
1

Aside from the war crime of attacking survivors of a shipwreck, we must now add the war crime of perfidy.

nytimes.com/2026/01/12/us/poli [gift link]

Perfidy is considered a serious crime in war because, among other things, using civilian cover for offensive missions casts suspicion on all civilians in the theatre, putting non-combatants at risk.

0
0
0
0
0

“넷플릭스 딜 멈춰라” 파라마운트, WBD 상대로 표 대결·소송전 파라마운트 스카이댄스는 WBD의 2026년 정기주주총회에서 자사 측 후보로 이사회 구성을 새로 짜는 방안을 추진한다. 또 WBD가 넷플릭스 딜 승인을 위해 임시 또는 조기 주주총회를 소집할 경우, 주주들에게 넷플릭스 거래에 반대표를 던지도록 위임장을 모으겠다는 방침이다. 이 전략은 두 차례나 파라마운트의 제안을 거부했던 현 이사회를 흔들고, 투자자들을 ‘대안 거래’ 쪽으로 끌어오려는 계산이 깔려 있다.

“넷플릭스 딜 멈춰라” 파라마운트, WBD 상대로 표 ...

0

Wenn Du Inspiration für vegane Gerichte suchst, können Kochbücher eine Hilfe sein.

Ich habe 5 Stück aus meiner kleinen Bibliothek überreden können, dass sie sich von mir in einem kurzen Blogbeitrag vorstelllen lassen. Viel Spaß beim lesen:

derbundeskater.de/vegane-kochb

0
0
0

“넷플릭스 딜 멈춰라” 파라마운트, WBD 상대로 표 대결·소송전

파라마운트 스카이댄스는 WBD의 2026년 정기주주총회에서 자사 측 후보로 이사회 구성을 새로 짜는 방안을 추진한다. 또 WBD가 넷플릭스 딜 승인을 위해 임시 또는 조기 주주총회를 소집할 경우, 주주들에게 넷플릭스 거래에 반대표를 던지도록 위임장을 모으겠다는 방침이다. 이 전략은 두 차례나 파라마운트의 제안을 거부했던 현 이사회를 흔들고, 투자자들을 ‘대안 거래’ 쪽으로 끌어오려는 계산이 깔려 있다. fortunekorea.co.kr/news/articl

0
0
1
0

직장에서 성장하는 5가지 방법

1. 실수를 두려워하지 않는다
2. 끊임없이 배우는 자세를 갖는다
3. 소통의 힘을 믿는다
4. 긍정적인 마인드로 접근한다
5. 작은 성과에도 스스로를 격려한다

0

인간이 조상이 비타민 C 합성 능력 잃은 것은 이 기생충 때문?

blog.naver.com/jjy0501/2241325?

" 주혈흡충 역시 비타민 C가 없기 때문에 숙주에 의존해야 하는데, 만약 숙주가 주혈흡충이 필요한 비타민 C를 계속 공급할 수 있다면 계속해서 매일 알을 낳으면서 증식하게 됩니다. 연구팀은 본래는 비타민 C를 합성할 수 있는 쥐에서 GULO 유전자를 손상시켜 비타민 C 합성 능력을 잃은 실험 모델을 만들고 이를 검증했습니다.

그 결과 비타민 C를 합성할 수 있는 정상 쥐는 대부분 주혈흡충 감염으로 사망했지만, 비타민 C 합성 능력을 상실한 실험 모델은 5%만이 사망했습니다. 비타민 C 공급을 제한해서 생존에 유리한 상황을 만든 것입니다. "

그러니까 말라리아를 방어하기 위해 겸상적혈구증을 유지하는 일부 지역 사람들처럼, 주혈흡충을 방어하기 위해 비타민C 생산능력을 퇴화시켰다?

참신한데?

0
0

RE: journa.host/@anneapplebaum/115

K přečtení pojednání o tom, jaké dobré, správné a krásné
úředníky ztratily Spojené státy a lidstvo. Babišovy čistky
navazují na Trumpovy čistky. Ničení úředníků je prodloužením
pohrdání správou a nenávisti k ní. Viz též: Robert Menasse.
Evropský systém. Týká se i vztahu k zvlášnímu druhu
úředníků: vtahu k politikům. Spolu-občany, kteří věnují část
svého života správě, máme milovat; nikoliv nenávidět. Máme
chápat, chválit i kritizovat správu z pozice lásky; nikoliv
z pozice nenávisti.

---
Úředníci.
Je v urednici.txt .
cc: @reticuleenareticuleena Leena Simon @xChaosChao-c'

0
0
0
0

LiDAR付きルンバさん畑の畝を作ってくみたいに絨毯を隙間なく掃除してくれてすんごい頼もしいんだけど、あのぐるんぐるん回ってるLiDARさんどれくらい堅牢なものなんだろう。昔の乱数直進ぽんこつルンバさんもやっぱりすきなんだよなあ…とはいえこんな手軽にLiDARのついた機械を買えるのなら、ちゃんとLiDARで周囲を把握する自動運転車が普及するのも、もしかしたら夢じゃないのかもしれないwktk

平行に掃除の跡が見える絨毯の写真
0
0

? FREE bulk N95 masks to community members and groups
- RecoverAidMD has 5 pallets of 3M 1860 (standard size) to donate
- Expiry Sept 2025 & some other later expiries
- Time sensitive to donate as they will be going to landfill if not claimed by Fri Jan 23, 2026

Details:
- Pickup at Richmond, BC warehouse possible
- Shipping possible (must cover shipping costs)
- 20 masks per box, 6 boxes per case
- 1 full case = 17x8x11, 6 pounds
- Reach out to RecoverAidMD ASAP if interested!!
- Will be going to landfill if not claimed by Jan 23

Who to contact: If interested, please email and cc BOTH ali@recoveraidmd.com; roshawn@recoveraidmd.com

Make sure to include:
- quantity of masks wanted
- postal code for shipping estimate OR pickup time availability
recoveraidmd.com/
(From a Facebook post from Masks4EastVan.)

0

아고다 같은 OTA는 정말 조심해서 써야 함. 가끔 숙소 여기 어떠냐고 링크가 오는데, 종종 취소 수수료 90%나 룸 미확정, 숙박업소 아닌 개인 렌트 같은 조건들이 붙어 있음. 그런 거 읽어 보는 사람들이 많지 않더라.

예약 하고 며칠 뒤까지는 호텔 정식 메일 계정으로 컨펌 문의 넣어서 호텔 측으로부터 확정을 받아야 함. 괜찮은 호텔들은 대부분 바로 오는데, 안 오면 확인해두어야 현장에서 문제가 없음.

0
0

카더라에 의하면 모 예언가가 예전에 비젼을 본것 중 하나가 서울에서 출발해서 평양까지 들어가는 열차에 자기가 타고 있었다는 그런 내용이 있었는데요... 잘되면 좋겠네요;; 중국까지 들어가면 중국과 교류가 잘되서 좋긴하겠네요 아마 북한은 외부를 못보게 다 막아버릴것 같긴합니다만 ㅎㅎ

0
0

이란혁명수비대의 군용 무기를 동원한 무차별 진압으로 미성년 사망자까지 속출하고 있다는 분석이 나왔습니다. 이란 인권센터 이사는 “8일 밤부터 이슬람혁명수비대가 주도한 학살로 8000명~1만명이 사망했을 가능성이 있다”며 “국제사회에 알려진 건 진실의 1%도 되지 않는다”고 주장했습니다.

이란 인권센터 이사 “1만명 사망 가능성…유례없는 대학...

0
1
0
1

Holy Shit. "one of ours. all of yours". on a government podium?!?

That's serious fascism stuff. It's the approach taken by the Nazis when Reinhard Heydrich, a prime architect of the holocaust, was assassinated by the resistance.

The assassins were mistakenly believed to be from the town of Lidice in occupied Czechoslovakia. So the Nazi's rounded up all the men and boys and killed them, and sent all the women to concentration camps. wiped the town off the map.

THAT is what's being evoked by that phrase on the puppy killer's podium.


US Homeland Security Secretary Kristi Noem speaks during a press conference in New York. photo by Uki Iwamura/AP

The text on the podium reads:
ONE OF OURS
ALL OF YOURS
0
0
0
0

영국, 음란이미지 생성 AI '그록' 조사…위법시 매출 10% 벌금 가능 n.news.naver.com/mnews/articl... 위법 사항이 적발될 경우 전 세계 연간 매출의 최대 10%가 벌금으로 부과될 수 있다. 초기에는 단순히 옷을 비키니로 바꾸는 수준이었다. 그러나 점차 나치 문양을 그려 넣거나 혈흔을 추가하는 등 악의적이고 모욕적인 이미지 생성이 확대됐다.

영국, 음란이미지 생성 AI '그록' 조사…위법시 매출...

0
0

초무 shared the below article:

Your CLI's completion should know what options you've already typed

洪 民憙 (Hong Minhee) @hongminhee@hackers.pub

Consider Git's -C option:

git -C /path/to/repo checkout <TAB>

When you hit Tab, Git completes branch names from /path/to/repo, not your current directory. The completion is context-aware—it depends on the value of another option.

Most CLI parsers can't do this. They treat each option in isolation, so completion for --branch has no way of knowing the --repo value. You end up with two unpleasant choices: either show completions for all possible branches across all repositories (useless), or give up on completion entirely for these options.

Optique 0.10.0 introduces a dependency system that solves this problem while preserving full type safety.

Static dependencies with or()

Optique already handles certain kinds of dependent options via the or() combinator:

import { flag, object, option, or, string } from "@optique/core";

const outputOptions = or(
  object({
    json: flag("--json"),
    pretty: flag("--pretty"),
  }),
  object({
    csv: flag("--csv"),
    delimiter: option("--delimiter", string()),
  }),
);

TypeScript knows that if json is true, you'll have a pretty field, and if csv is true, you'll have a delimiter field. The parser enforces this at runtime, and shell completion will suggest --pretty only when --json is present.

This works well when the valid combinations are known at definition time. But it can't handle cases where valid values depend on runtime input—like branch names that vary by repository.

Runtime dependencies

Common scenarios include:

  • A deployment CLI where --environment affects which services are available
  • A database tool where --connection affects which tables can be completed
  • A cloud CLI where --project affects which resources are shown

In each case, you can't know the valid values until you know what the user typed for the dependency option. Optique 0.10.0 introduces dependency() and derive() to handle exactly this.

The dependency system

The core idea is simple: mark one option as a dependency source, then create derived parsers that use its value.

import {
  choice,
  dependency,
  message,
  object,
  option,
  string,
} from "@optique/core";

function getRefsFromRepo(repoPath: string): string[] {
  // In real code, this would read from the Git repository
  return ["main", "develop", "feature/login"];
}

// Mark as a dependency source
const repoParser = dependency(string());

// Create a derived parser
const refParser = repoParser.derive({
  metavar: "REF",
  factory: (repoPath) => {
    const refs = getRefsFromRepo(repoPath);
    return choice(refs);
  },
  defaultValue: () => ".",
});

const parser = object({
  repo: option("--repo", repoParser, {
    description: message`Path to the repository`,
  }),
  ref: option("--ref", refParser, {
    description: message`Git reference`,
  }),
});

The factory function is where the dependency gets resolved. It receives the actual value the user provided for --repo and returns a parser that validates against refs from that specific repository.

Under the hood, Optique uses a three-phase parsing strategy:

  1. Parse all options in a first pass, collecting dependency values
  2. Call factory functions with the collected values to create concrete parsers
  3. Re-parse derived options using those dynamically created parsers

This means both validation and completion work correctly—if the user has already typed --repo /some/path, the --ref completion will show refs from that path.

Repository-aware completion with @optique/git

The @optique/git package provides async value parsers that read from Git repositories. Combined with the dependency system, you can build CLIs with repository-aware completion:

import {
  command,
  dependency,
  message,
  object,
  option,
  string,
} from "@optique/core";
import { gitBranch } from "@optique/git";

const repoParser = dependency(string());

const branchParser = repoParser.deriveAsync({
  metavar: "BRANCH",
  factory: (repoPath) => gitBranch({ dir: repoPath }),
  defaultValue: () => ".",
});

const checkout = command(
  "checkout",
  object({
    repo: option("--repo", repoParser, {
      description: message`Path to the repository`,
    }),
    branch: option("--branch", branchParser, {
      description: message`Branch to checkout`,
    }),
  }),
);

Now when you type my-cli checkout --repo /path/to/project --branch <TAB>, the completion will show branches from /path/to/project. The defaultValue of "." means that if --repo isn't specified, it falls back to the current directory.

Multiple dependencies

Sometimes a parser needs values from multiple options. The deriveFrom() function handles this:

import {
  choice,
  dependency,
  deriveFrom,
  message,
  object,
  option,
} from "@optique/core";

function getAvailableServices(env: string, region: string): string[] {
  return [`${env}-api-${region}`, `${env}-web-${region}`];
}

const envParser = dependency(choice(["dev", "staging", "prod"] as const));
const regionParser = dependency(choice(["us-east", "eu-west"] as const));

const serviceParser = deriveFrom({
  dependencies: [envParser, regionParser] as const,
  metavar: "SERVICE",
  factory: (env, region) => {
    const services = getAvailableServices(env, region);
    return choice(services);
  },
  defaultValues: () => ["dev", "us-east"] as const,
});

const parser = object({
  env: option("--env", envParser, {
    description: message`Deployment environment`,
  }),
  region: option("--region", regionParser, {
    description: message`Cloud region`,
  }),
  service: option("--service", serviceParser, {
    description: message`Service to deploy`,
  }),
});

The factory receives values in the same order as the dependency array. If some dependencies aren't provided, Optique uses the defaultValues.

Async support

Real-world dependency resolution often involves I/O—reading from Git repositories, querying APIs, accessing databases. Optique provides async variants for these cases:

import { dependency, string } from "@optique/core";
import { gitBranch } from "@optique/git";

const repoParser = dependency(string());

const branchParser = repoParser.deriveAsync({
  metavar: "BRANCH",
  factory: (repoPath) => gitBranch({ dir: repoPath }),
  defaultValue: () => ".",
});

The @optique/git package uses isomorphic-git under the hood, so gitBranch(), gitTag(), and gitRef() all work in both Node.js and Deno.

There's also deriveSync() for when you need to be explicit about synchronous behavior, and deriveFromAsync() for multiple async dependencies.

Wrapping up

The dependency system lets you build CLIs where options are aware of each other—not just for validation, but for shell completion too. You get type safety throughout: TypeScript knows the relationship between your dependency sources and derived parsers, and invalid combinations are caught at compile time.

This is particularly useful for tools that interact with external systems where the set of valid values isn't known until runtime. Git repositories, cloud providers, databases, container registries—anywhere the completion choices depend on context the user has already provided.

This feature will be available in Optique 0.10.0. To try the pre-release:

deno add jsr:@optique/core@0.10.0-dev.311

Or with npm:

npm install @optique/core@0.10.0-dev.311

See the documentation for more details.

Read more →
5
0
1

96년도부터 리눅스를 사용했던 사람인데
일단, 현재의 리눅스는 개발자 뿐 아니라 일반 사용자들이 충분히 사용할 수 있는 상태라고 봄.

익숙하지 않아서 처음엔 불편하게 느껴지겠지만 CLI없이 GUI상태에서 99.9% 사용가능하고, 스팀 게임도 되고, 웹에서 안될것 거의 없고. 오피스도 웹기반 버전이 있으니 안될거 없고. 한글 입출력문제도 이젠 거의 없음.

다만 문제가, 윈도우는 자잘한 문제가 생겨도 찾아보면 마우스 눌러가며 고치는 방법 다 나오지만, 리눅스는 그게 어려움. 커뮤니티나 AI에게 물어보면 자세히 답 해주지만, 대부분 명령어 기반으로 고치는 방법을 알려주니....

1
0
0
0

독일의 파워레인저 핑크(?)가 백인전용 만남 사이트를 파해쳐보니 백인우월주의·극우·신나치주의자 커뮤니티였다는 걸 알게되어서, 그 사이트들 가입자 신상정보를 다 공개한 다음, 컨퍼런스 발표장에서 사이트들을 실시간으로 날려버린 썰 (유튜브 노말틱 채널) youtu.be/DxLqK00OXec?...

파워레인저 핑크가 등장한 해킹 발표 현장, 그 충격은 ...

0

Google カレンダーを :vivaldi_red: のビルトインカレンダーで見てるけど最近 API の制限に引っかかることが多い気がしている。

Google 側の制限が厳しくなったのか :vivaldi_red: がアクセスしすぎなのか、原因はよくわからないけど

0
0

구글과 애플의 공동 성명 애플과 구글은 다년간의 협력 관계를 체결했으며, 이에 따라 차세대 애플 파운데이션 모델은 구글의 제미니 모델과 클라우드 기술을 기반으로 구축될 예정입니다. 이 모델들은 올해 출시될 더욱 개인화된 시리를 포함한 향후 애플 인텔리전스 기능의 핵심 동력이 될 것입니다.

Joint statement from Google an...

0
0
0
0

96년도부터 리눅스를 사용했던 사람인데
일단, 현재의 리눅스는 개발자 뿐 아니라 일반 사용자들이 충분히 사용할 수 있는 상태라고 봄.

익숙하지 않아서 처음엔 불편하게 느껴지겠지만 CLI없이 GUI상태에서 99.9% 사용가능하고, 스팀 게임도 되고, 웹에서 안될것 거의 없고. 오피스도 웹기반 버전이 있으니 안될거 없고. 한글 입출력문제도 이젠 거의 없음.

다만 문제가, 윈도우는 자잘한 문제가 생겨도 찾아보면 마우스 눌러가며 고치는 방법 다 나오지만, 리눅스는 그게 어려움. 커뮤니티나 AI에게 물어보면 자세히 답 해주지만, 대부분 명령어 기반으로 고치는 방법을 알려주니....

1
0

이번 발표의 핵심은 헬스엑스(HealthEx)와의 파트너십이다. 헬스엑스는 환자가 여러 기관에 흩어진 전자의무기록(Electronic Medical Records, EMRs)을 한곳에서 확인하고, 데이터 접근 권한을 통제하도록 돕는 스타트업이다. 이용자는 헬스엑스(HealthEx) 커넥터(Connector)를 통해 자신의 의료기록을 클로드(Claude)에 연결할 수 있고, 클로드(Claude)는 그 기록을 바탕으로 건강 관련 질문에 답한다.

0
0