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.

0
0
0
0
0
0
0

REQUEST

A friend I borrowed money from needs to be repaid, and I'm several hundred over the limit on a credit card. Halp?

Staying housed in Seattle has been expensive AF and I accumulated some debt my first couple years here. We've got no money to spare since baby arrived, so credit card payments mostly just cover interest.

241/1650

🌈 venmo/cashapp @ natsmith89
paypal.me/natoleander

0
0
0
0
0
0
0
0
0
0
0
0
0

i do think if anything i want what is mostly just a device that i can put in my pocket and i can get internet on it and i can run a few apps on it. just a social reader and a messenger would go a long way. probably a camera. of course a web browser and maybe something like youtube. somehow, nothing like this exists without a bunch of bullshit tacked on

i don't actually care for things like telephony beyond mobile data, i don't care for tap to pay, etc. just gimme subway tooter and conversations

0
0
0
0
0
0

옛날에 만들어놓고 저 혼자는 잘쓰고 있는 React 폼 라이브러리 react-form-mozard를 소개합니다.

폼 중에서 Stepper 또는 Wizard라고 하는, 여러 개의 폼을 순차적으로 합친 형태를 다룰때 씁니다. 그래서 하나의 폼에 대해서는 react-hook-form 등 을 쓰고, 그걸 여러개 조합할땐 react-form-mozard를 활용하면 됩니다.

순차적으로 합친 에서 느낌이 오지요? 모나드가... 그대를 부릅니다...

폼 말고 CLI를 만들때를 잠깐 생각해보죠.

const name = prompt("이름이?")
const age = prompt(`{name} 님, 나이가?`)
if (Number(age) < 20) {
  console.info("미성년자는 이용할 수 없습니다")
  return
}
const gender = prompt(`{name} 님, 성별이?`)

뭐 이런 흐름을 생각해볼 수 있는데요. 보시면 먼저 받은 입력값에 따라 이후의 메시지나, 제어 흐름이 달라질 수 있습니다. 즉, 모나딕하죠. 근데 이런 평범한 로직을 Stepper/Wizard 에서 짜게되면 코드게 쉽게 더러워 지는걸 알수 있습니다.

react-form-mozard의 step은 위 예제의 prompt와 같은 역할을 합니다. 그리고 그걸 Generator 위에 얹으면 모나딕한 폼 합성이 가능해집니다.

단점이라면... 지금은 React랑 강결합 되어 있어, XState 등 다른 상태관리 라이브러리를 같이 쓴다면 연동이 깔끔하지 않을수 있습니다. 근데 평소에 쉽게 겪을 문제는 아니라고 보고, 또 추후에 설계를 수정해서 개선이 가능한 부분입니다.

0
0
0
0

Juntai Park shared the below article:

Browser-Native Translation and Language Detection APIs Coming Soon

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

Just reviewed the W3C draft for the Translator and Language Detector APIs. This is genuinely exciting development for web developers.

The proposal would add native browser support for:

  • Text translation between languages
  • Language detection of arbitrary text
  • Both with streaming capabilities

No more relying on third-party translation services or embedding external APIs for basic language operations. All processing happens locally in the browser.

The API design is clean and straightforward:

// Translation example
const translator = await Translator.create({
  sourceLanguage: "en",
  targetLanguage: "fr"
});

const translatedText = await translator.translate("Hello world");

// Language detection example
const detector = await LanguageDetector.create();
const results = await detector.detect("Hello world");
// Returns array of detected languages with confidence scores

This will be a game-changer for multilingual sites and applications. The browser handles downloading appropriate language models and manages usage quotas.

The spec is still in draft form but shows promising progress toward standardizing these capabilities across browsers. Looking forward to seeing this implemented.

Read more →
0
0

ウォーターゲート事件の発端になったウォーターゲートビル (watergate complex)、自体はチェサピーク・オハイオ運河のほとりに立地するようで、この運河に残された余水堰などもあるようなので、その水門などから watergate といわれてた、のが今や重大なスキャンダルの別名としてのが有名、ということな気がする

0

女人的天性中有母性,有女兒性;無妻性。妻性是逼成的,只是母性和女兒性的混合。

⋯⋯

曾經闊氣的要復古,正在闊氣的要保持現狀,未曾闊氣的要革新。大抵如是。大抵!他們之所謂復古,是回到他們所記得的若干年前,並非虞夏商周。

《小雜感·魯迅》

0
0
0

> これらの新しいAI画像生成機能は、生成AIモデルの開発者に対する複数の訴訟の根底にある懸念を再燃させています

𝕏ではこれで遊んでる投稿が大量に流れてるな。出力内容を見るに上記のコメントにある問題が間違いなく出てくるだろうなと思った。
あと記事中で引用されているツイートにあるが、これでいらすとやは死亡するかもしれない。

/ ChatGPTにGPT-4oでの画像生成機能が実装されスタジオジブリ風のミーム画像が大量生成されるようになり著作権問題が浮き彫りに - GIGAZINE gigazine.net/news/20250327-ope

0

헌재재판관들이 특정 세력에게 물 밑으로 신변 위협을 받고 있다던지,
아니면 인용 6명을 확보 못했다던지 하지 않고서야 이렇게 미룰 수가 있나?

단순히 치밀하고 빈틈없는 문구 작성이나 8:0 만장일치를 위해 시기를 미루고 있다고 선해를 하기에는 너무나 늦었음.

0
0
0
0
8
0
0
0
0
0
0
0
0
0
0
0