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
0
0
0
0
0

์†Œ์‹ธ์›€๋Œ€ํšŒ๋ฅผ ๊ฐœ์ตœํ•ด์˜จ ์ „๊ตญ 11๊ฐœ ์ง€๋ฐฉ์ž์น˜๋‹จ์ฒด ๊ฐ€์šด๋ฐ 6๊ณณ์ด ๋‚ด๋…„ ๊ด€๋ จ ์˜ˆ์‚ฐ์„ ํŽธ์„ฑํ•˜์ง€ ์•Š์€ ๊ฒƒ์œผ๋กœ ๋‚˜ํƒ€๋‚ฌ์Šต๋‹ˆ๋‹ค. ์˜ˆ์‚ฐ ํŽธ์„ฑ์ด ํ™•์ธ๋œ ๊ณณ์€ ์ง„์ฃผ, ์ฐฝ์›, ์˜๋ น, ์ฐฝ๋…•์˜ 4๊ฐœ ์ง€์ž์ฒด๋ฟ์ธ๋ฐ ์ด์ค‘์—์„œ๋„ ์˜๋ น๊ตฐ์€ ์—ฐ 2ํšŒ ๊ฐœ์ตœํ•˜๋˜ ๊ฒƒ์„ ๋‚ด๋…„์—๋Š” 1ํšŒ๋งŒ ์—ฌ๋Š” ๋ฐฉ์•ˆ์„ ๊ฒ€ํ†  ์ค‘์ž…๋‹ˆ๋‹ค.

โ€˜๋™๋ฌผํ•™๋Œ€ ๋…ผ๋ž€โ€™ ์†Œ์‹ธ์›€โ€ฆ์ง€์ž์ฒด 11๊ณณ ์ค‘ 6๊ณณ ๋‚ด๋…„ ...

0
0
0
1
0
0
1

System.IO.readFile ์“ฐ์ง€ ๋งˆ์„ธ์š”.

System.IO.readFile ์“ฐ์ง€ ๋งˆ์„ธ์š”.

System.IO.readFile ์“ฐ์ง€ ๋งˆ์„ธ์š”.

์ฒซ์งธ, System.IO.readFile ์€ String ์„ ๋ฐ˜ํ™˜ํ•ฉ๋‹ˆ๋‹ค. ์ด๊ฑด ์‹ฌ๊ฐํ•œ ๋ฌธ์ œ์ž…๋‹ˆ๋‹ค. String ์„ ์“ฐ์ง€ ๋งˆ์„ธ์š”. ์™ธ๋ถ€ ์„ธ๊ณ„์™€ I/O ๋ฅผ ํ•  ๋•Œ์—๋Š” ByteString ์„ ์จ์•ผ ํ•ฉ๋‹ˆ๋‹ค. ์œ ๋‹ˆ์ฝ”๋“œ ๋ฌธ์ž์—ด์„ ๋‹ค๋ฃฐ ๋•Œ์—๋Š” Text ๋ฅผ ์“ธ ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค. String ์€ ์‹œ๊ฐ„์ ์œผ๋กœ๋„ ๊ณต๊ฐ„์ ์œผ๋กœ ๋น„ํšจ์œจ์ ์ž…๋‹ˆ๋‹ค. ์ด๊ฑด ์–ด์ฉ” ์ˆ˜ ์—†์Šต๋‹ˆ๋‹ค. ํ•˜์Šค์ผˆ์€ ๋ฆฌ๋ˆ…์Šค ์ปค๋„๋ณด๋‹ค ์˜ค๋ž˜๋์Šต๋‹ˆ๋‹ค. ๊ทธ๋ฆฌ๊ณ  ํ•˜์Šค์ผˆ์ด String ์„ ๋งŒ๋“ค ๋•Œ์—๋Š” ์•„์ง ํ•˜์Šค์ผˆ์— ๋ชจ๋‚˜๋“œ๋„ ์—†๋˜ ์‹œ์ ˆ์ด๋ฉฐ, ํƒ€์ž… ํด๋ž˜์Šค๊ฐ€ ๊ณผ์—ฐ ์œ ์šฉํ•˜๊ฒ ๋Š”๊ฐ€๋ฅผ ๋‘๊ณ  ์˜๊ฒฌ์ด ๋ถ„๋ถ„ํ•˜๋˜ ์‹œ์ ˆ์ด๋ฉฐ, ํŒŒ์ผ ํ•˜๋‚˜๊ฐ€ 100 ๋ฉ”๊ฐ€๋ฐ”์ดํŠธ๊ฐ€ ๋„˜์–ด๊ฐ„๋‹ค๋Š” ๊ฒƒ์ด ๊ณผ๋Œ€๋ง์ƒ์œผ๋กœ ์—ฌ๊ฒจ์ง€๋˜ ์‹œ์ ˆ์ž…๋‹ˆ๋‹ค. ํŠนํžˆ ์œ ๋‹ˆ์ฝ”๋“œ๋ณด๋‹ค ๋” ๋จผ์ € ๋‚˜์˜จ ์–ธ์–ด์— ์ ์ ˆํ•œ ์œ ๋‹ˆ์ฝ”๋“œ ๋ฌธ์ž์—ด ํƒ€์ž…์ด ์žˆ์„ ์ˆ˜๋Š” ์—†์—ˆ์Šต๋‹ˆ๋‹ค. ์•„๋ฌดํŠผ String ์€ ๋ ˆ๊ฑฐ์‹œ์ž…๋‹ˆ๋‹ค. System.IO.readFile ๋กœ ๊ทธ๋ฆผ ํŒŒ์ผ์„ ์ฝ๋Š” ํ”„๋กœ๊ทธ๋ž˜๋จธ๋Š” ์‚ฌํ›„์„ธ๊ณ„์—์„œ JPEG XL ํŒŒ์ผ์„ ์‹ญ์œก์ง„๋ฒ• ํ‘œ๊ธฐ๋กœ 1 ๋ฐ”์ดํŠธ์”ฉ ์ฝ์€ ๋’ค ์ข…์ด์— ๊ทธ๋ ค ๋‚ด๋Š” ํ˜•๋ฒŒ์— ์ฒ˜ํ•ด์ง‘๋‹ˆ๋‹ค. String ์„ ์“ฐ์ง€ ๋งˆ์„ธ์š”.

๋‘˜์งธ, System.IO.readFile ์€ FilePath ๋ฅผ ์š”๊ตฌํ•ฉ๋‹ˆ๋‹ค. FilePath ๋„ ์‚ฌ์‹ค String ์ž…๋‹ˆ๋‹ค. ๊ทธ๋ƒฅ ๋ณ„๋ช…(type synonym)์ด์—์š”. ์ด๊ฒƒ์€ String ์ด๊ธฐ ๋•Œ๋ฌธ์— ๋น„ํšจ์œจ์ ์ด๋ฉฐ, String ์€ ๋ฌธ์ž์—ด์ด์ง€ ๋ฐ”์ดํŠธ์—ด์ด ์•„๋‹ˆ๊ธฐ ๋•Œ๋ฌธ์— (์ธ์ฝ”๋”ฉ์„ ์ „ํ˜€ ํ†ต์ œํ•  ์ˆ˜ ์—†๊ธฐ ๋•Œ๋ฌธ์—) ํŒŒ์ผ ๊ฒฝ๋กœ๋ฅผ ํ‘œํ˜„ํ•˜๋Š” ํƒ€์ž…์œผ๋กœ ๋ถ€์ ์ ˆํ•ฉ๋‹ˆ๋‹ค.

ํ•ด๊ฒฐ์ฑ…: ๋จผ์ € System.OsPath ์˜ ์„ค๋ช…์„ ์ฝ์–ด ๋ณด์„ธ์š”. ๊ทธ๋ฆฌ๊ณ , file-io ํŒจํ‚ค์ง€์˜ System.File.OsPath ๋ชจ๋“ˆ์„ ์ฝ์–ด ๋ณด์„ธ์š”. ์—ฌ๊ธฐ ์žˆ๋Š” ํ•จ์ˆ˜๋“ค์˜ ์„ค๋ช…์„ openBinaryFile ๋ถ€ํ„ฐ ํ•˜๋‚˜์”ฉ ์ฝ์–ด๋ณด๊ณ  ์“ฐ์„ธ์š”. ์ด๊ฒƒ๋“ค์€ ํŒŒ์ผ ๊ฒฝ๋กœ์— OsPath ๋ฅผ ์“ฐ๊ธฐ ๋•Œ๋ฌธ์— String ์˜ ๋น„ํšจ์œจ์ด ์—†๊ณ  ์ธ์ฝ”๋”ฉ๋„ ์˜ฌ๋ฐ”๋ฅด๊ฒŒ ์ฒ˜๋ฆฌํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค. ์ž…์ถœ๋ ฅ ๋ฐ์ดํ„ฐ์—๋Š” ByteString ์„ ์”๋‹ˆ๋‹ค. ๋ฐ”์ดํŠธ์—ด์„ ์œ ๋‹ˆ์ฝ”๋“œ ๋ฌธ์ž์—ด๋กœ ๋ณ€ํ™˜ํ•  ๋•Œ์—๋Š” ์˜ˆ๋ฅผ ๋“ค์–ด Data.Text.Encoding.decodeUtf8Lenient ๋ฅผ ์“ธ ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค. ๊ทธ๋Ÿผ ์ด์ œ

  • ๊ฐ„๋‹จํžˆ System.File.OsPath.readFile' ์—๊ฒŒ OsPath ๋ฅผ ๋„˜๊ธฐ๊ณ  ByteString ์„ ํšจ์œจ์ ์œผ๋กœ ๋ฐ›์•„ ์™€์„œ ๊ตญ๋ฐฅ์ฒ˜๋Ÿผ ๋“ ๋“ ํ•˜๊ฒŒ ๋ฉ”๋ชจ๋ฆฌ์— ์˜ฌ๋ ค ๋‘๊ณ  ์ž‘์—…์„ ํ•˜๋“ ์ง€
  • ์ „๊ตญ๊ตฌ ๋งˆ๋ฒ•์‚ฌ๋ผ๋ฉด ๋ณต๋Œ€๋Š” ๊ธฐ๋ณธ์ด๋ผ๊ณ  ์™ธ์น˜๋ฉฐ withBinaryFile ๊ณผ ์•™๊ฐ“์ธ ์„ Iteratee I/O ๋กœ ์ ˆ๋ฌ˜ํ•˜๊ฒŒ ์—ฎ์–ด์„œ ๋ญ”๊ฐ€ ๊ฐœ๋ฉ‹์žˆ๊ฒŒ ํ•˜๋“ ์ง€
  • ํ•˜์Šค์ผˆ ๊ฐ“๊ณ ์ˆ˜์ด๊ธฐ ๋•Œ๋ฌธ์— ํ‘๋งˆ๋ฒ•์‚ฌ๋‹ต๊ฒŒ ๋ณด์ผ๋Ÿฌ์‹ค ๋ฌธ์„ ๋”ฐ๊ณ  ์ง€ํ•˜๋กœ ๋“ค์–ด๊ฐ€ ํฌโ€ฆ ํฌโ€ฆ ์œผ์•…! P ๋กœ ์‹œ์ž‘ํ•˜๋Š” ๊ทธ๊ฒƒ์„ ํš๋“ํ•˜์—ฌ ๋ˆ„๊ตฌ๋„ ์˜ˆ์ƒํ•  ์ˆ˜ ์—†๋Š” ํƒ€์ด๋ฐ์— hGetBuf ์˜ ์•”๊ธฐ๋ฅผ ์Љ. ์Šˆ์Љ. ์Šˆ์Šˆ์Љ. ์Љ. ๋‚ ๋ฆฌ๋“ ์ง€

์•„๋ฌดํŠผ ์ด์ œ๋Š” String ์„ ๋†“์•„์ฃผ์–ด์•ผ ํ•ฉ๋‹ˆ๋‹ค.

7
0
0
0
2
0
0
0
0
0
0
1
0

์• ์Šคํฌ๋„ ์žˆ๋Š”๋ฐ ์–ด๋–ป๊ฒŒ๋“  ์งˆ๋ฌธ์„ ๋œฏ์–ด๋‚ด๊ฒ ๋‹ค๋Š” ์ƒ๊ฐ(?)

0
0
1

ใ‹ใˆใ‚‹ใƒผใƒผใƒผใ‚ใ‚“ใพใ‚Šๅฏ’ใใชใ„๏ผใ„ใคใ‚‚ใ“ใฎๆฐ—ๆธฉใงใ„ใฆใปใ—ใ„ใ€ๅœฐ็ƒใซใฏ

1
0
1
0
0

I'm building a new app and looking for testers!
The app allows you to create wishlists and track prices/availability of products you're interested in.
It's called Shopie and the TestFlight link is: testflight.apple.com/join/tjcB
Feel free to share this link with anyone you think may be interested ๐Ÿ˜‰
(Boosts are appreciated!)

0

๐Ÿ’ฌ โ€˜Imagine there was a speed limit that didn't apply if you considered the risk to be low. Good luck to the police in enforcing that.โ€™ (from German)

Read the full with Max Schrems about the โ€˜Digital Omnibusโ€™ and the problems with the . ๐Ÿ‘‰ taz.de/DSGVO-Tod-durch-1000-Sc

0
0
0
0

์Šค์›จ๋ด์—์„œ ๋ธŒ๋ผ์งˆ ์นœ๊ตฌ๊ฐ€ ํ•ด ์ค€ ์ด์•ผ๊ธฐ ์ค‘์— ์ œ์ผ ์ถฉ๊ฒฉ๋ฐ›์€ ๊ฒƒ ์ค‘ ํ•˜๋‚˜๊ฐ€ ๋”ฐ๋ด‰์ด ๊ทธ๋ ‡๊ฒŒ ์„ผ ์˜๋ฏธ๊ฐ€ ์•„๋‹ˆ๋ผ๋Š” ๊ฑด๋ฐ, ๊ทธ ์˜ˆ์ „ ๊ด‘๊ณ ๋ฅผ ๋ณด๋ฉด ํฌ๋ฅดํˆฌ๊ฐˆ์–ด๋„ ์•„๋‹ˆ๊ณ  โ€œ๋ธŒ๋ผ์งˆ์–ดโ€๋ผ๊ณ  ๋˜์–ด ์žˆ์œผ๋‹ˆ ๋‹น์‹œ์˜ ๊ณ ์ฆ ๊ฐ™์€ ๊ฑธ ์•Œ ๋งŒ ํ•˜์ฃ . ๊ทธ๋‚˜์ €๋‚˜ ๊ตณ์ด ๊ฐ•์กฐํ•˜์ž๋ฉด โ€œ๋”ฐ๋ด‰๋ด‰โ€์ด ๋งž์„ ๊ฒƒ ๊ฐ™๋‹ค๋Š” ์ƒ๊ฐ โ€ฆ (๋‹น์‹œ์— ๋ธŒ๋ผ์งˆ ์นœ๊ตฌ๊ฐ€ ๋ฌด์ด ์–ด์ฉŒ๊ณ  ํ•˜๋ฉด ๋œ๋‹ค๊ณ  ์•Œ๋ ค์คฌ์Šต๋‹ˆ๋‹ค.)

RE: https://bsky.app/profile/did:plc:5fi7bgxe6svztyolfjkiyctw/post/3m5tassugj22z

0

Folks, if you want to donate to our Gaza Verified families but donโ€™t know who to donate to or are overwhelmed, hereโ€™s is a list of all the families, sorted by those who have raised the least in the last seven days:

gaza-verified.org/donate/

(The list is based on @fabioFabio Manganielloโ€™s APIยน. Itโ€™s also Fabioโ€™s birthday today so wish him a happy birthday, why donโ€™t you and thank him for his excellent work?) :)

๐Ÿฅณ

ยน gaza.onl/swagger/

0
0
0
0
0
0
0
0
1
1