on-internet

`except` doesn’t catch my custom exception raised inside `InterpreterPoolExecutor` (Python 3.14)

I swapped ThreadPoolExecutor for the new InterpreterPoolExecutor to get real parallelism for CPU-bound work. With the thread pool, my except BadInput catches bad items and skips them. With the interpreter pool, the same exception goes straight past the except and kills the script. The traceback even names the class <fake __main__>.BadInput. from concurrent.futures import InterpreterPoolExecutor class BadInput(Exception): pass def check(n): if n == 3: raise BadInput(f"bad value: {n}") return n * 2 if __name__ == "__main__": with InterpreterPoolExecutor(max_workers=2) as pool: try: print(list(po

Join the discussion →

Could you help me decide if I’m choosing the right size of women’s sport leggings as a man?

submitted by merompetehla to asklemmy 1 points | 3 comments So I went to a leggings store, explained to a lady working there whose build and waistline were very similar to mine that I want leggings that don’t sag to do sport and pilates, she looked at me and told me to try a size S, because that’s what she wears (I am usually an M). I tried several models at the store and bought 2 pairs of the snuggest model to compare at home: a size S and a size M. To the women out here wearing leggings: do you actually size down as well? Because years ago I bought 2 pairs of men’s leggings, size M, my regul

Join the discussion →

MSB3721 error and CUDA 13.5 targets for a simple CUDA code [closed]

I am trying to run a simple sample of CUDA code: #include <iostream> #include <stdio.h> #include <cuda_runtime.h> using namespace std; __global__ void helloCUDA() { printf("Hello from GPU!\n"); } int main() { // Launch 1 block with 1 thread helloCUDA <<<1, 1 >>> (); // Check kernel launch errors cudaError_t error = cudaGetLastError(); if (error != cudaSuccess) { cout << "Kernel launch error: " << cudaGetErrorString(error) << endl; return -1; } // Wait for GPU execution to finish error = cudaDeviceSynchronize(); if (error != cudaSuccess) { cout << "GPU execution error: " << cudaGetErrorString(e

Join the discussion →

ISUCON2026 ソロ参加記:自作ハーネスで Claude Code をほぼ無人運転した

はじめに 2026-10-31 の ISUCON2026 に、チーム「なんとかなれー」として1人で出ました。 競技時間(10:00〜18:00)の作業は、ほぼすべて AI エージェントの Claude Code に任せました。自宅の Windows デスクトップで動く Claude Code が、マニュアルを読み、スタックを作り、計測し、コードを直し、ベンチを回し、再起動試験まで自分で進めています。私はその日は旅行中で、移動の合間にスマホで通知を見ていました。 ただし、完全な無人ではありません。前夜の起動と朝のログイン(AWS・Discord)のほかに、私が手を入れたのは次の3つです...

Join the discussion →

Microsoft Removes PC-to-PC Migration from Windows 11, Points Users to OneDrive-Based Backup

Windows 11 offered a PC-to-PC Migration feature that "moved files and settings directly between two PCs over Wi-Fi or Ethernet," reports Ghacks. But according to an updated Microsoft support page, the tool is no longer available. "Microsoft's support documentation now redirects users to Windows Backup, a tool that relies on OneDrive cloud storage instead of a direct connection between two computers..." Windows Backup works differently. It requires a personal Microsoft account and backs up supported folders (Desktop, Documents, Pictures, Videos and Music) to OneDrive. Free OneDrive accounts inc

Join the discussion →

日本ネットワークセキュリティ協会に不正アクセス 最大1.5万件の個人情報漏えいの恐れ

漏えいした可能性があるのは、サービス管理者の氏名、企業名、メールアドレス、組織所在地、従業員数、業種、利用ユーザー数のほか、利用者のIDとパスワード。パスワードは、元の文字列を別の値に変換する「ハッシュ化」が施されていたという。 JNSAは11月4日に不正アクセスを確認した。調査によると、10月30日夜ごろか...

Join the discussion →

Should I find a new career instead of software engineering?

submitted by nimpnin to asklemmy 101 points | 56 comments I just finished a PhD in stats, and before that, studied computer science. I had planned to go back to industry to do software engineering or be a data scientist afterwards. However, it seems that in the meantime, vibe coding has taken over the software industry and swallowed most data scientist roles. Few open positions, and the ones that do exist are just pushing a button instead of thinking and solving problems. Is this a correct assessment? Should I try to get back in or just find a new career? I am not too keen on staying in academ

Join the discussion →

Data Centers are Being Powered By Giant Gas Plants, Possibly Increasing Carbon Pollution for Decades

Rather than racing toward their net-zero targets, Amazon and other AI/cloud computing companies "are driving emissions sharply higher," reports the Washington Post: To support their data centers, tech firms are driving construction of a new generation of supersized, gas-fired power plants that could lock in hundreds of millions of tons of climate pollution for decades to come, according to corporate disclosures and an analysis conducted for The Post by a researcher at the Harvard T.H. Chan School of Public Health. Industry estimates show these projects have put the tech sector on course to gro

Join the discussion →

物価高との戦いに敗れし者 - 経済を良くするって、どうすれば

物価高になったら選挙に負ける。関税を引き上げ、湾岸で戦争を始めれば物価高になる。結局、トランプ大統領は、外国を叩くと人気が上がるという直観に幻惑されたのである。他方、高市首相は、ベッセントさんのお陰で、リフレの直観から離れつつあるようで、日銀の援護もあって、現実的な経済政策に着地できそうなところ...

Join the discussion →

米中間選挙でぶっ壊れるのは実は民主党というはなし - アメリカ暮らしと外資系のはなし

2026年の米中間選挙は民主党が上下両院で多数派をとるという結果に終わった。事前の票読みをくつがえして共和党が善戦する可能性もなくはなかったが、今回はむしろ共和党は予想以上の大敗をきっした。イラン戦争と関税のダブルパンチで物価が高騰するこの状況に対し、有権者が現政権にNOをつきつけた、という大方の見方...

Join the discussion →

t-string HTML renderer ignores `:.2f` and escapes nested templates as raw text

I’m switching my HTML helpers from f-strings to t-strings so user input gets escaped automatically. Escaping works, but number formatting is gone. When I put one template inside another, the inner template comes out as an escaped object dump instead of HTML. from string.templatelib import Template, Interpolation import html def render(template: Template) -> str: parts = [] for item in template: if isinstance(item, Interpolation): parts.append(html.escape(str(item.value))) else: parts.append(item) return "".join(parts) name = "<b>Rahum</b>" price = 19.999 row = t"<td>{name}</td><td>${price:.2f}

Join the discussion →

What do you just want to go away?

submitted by Necrifyre to asklemmy 91 points | 109 comments Verification Codes. One-Time my ass, more like, repeated times. I’m so tired of verification codes up the ass these days. Just today, I had to reset my PayPal password. So that meant there was a code sent to an e-mail address after the reset process was set, to begin with. Then I had to go through the obstacle of verifying the information of the account. And then even after the password was reset, I’m sent ANOTHER freaking code right after! And it’s even more frustrating to deal with, with my bank. I’ve gotten random verification chec

Join the discussion →

Vitestでモックをテストケースごとに差し替えるようにする

はじめに vitestでapiレスポンスが取れている時、取れていない時のモックを差し替えたい 追記) この記事の内容でモックが差し替えできるようにはなるが、残ってしまい毎回内容を書かないといけないことについては以下に記載 問題 もともと以下のようにモックして...

Join the discussion →
Older stories