on-internet

How do get a program which transforms its input into standard output, to act in-place?

I have a program which prints a transformed version of its input text to standard output. Examples might be grep or xmllint --format or something more complicated. Now, I want to run my program on a give file, in-place; but my program doesn't support that inherently. Naturally I can't just run it and direct its output into its input file, that would just garble it. What is a convenient, simple and safe way to 'wrap' my program so that it acts in-place?

Join the discussion →

Reactで学習記録アプリを作ってみた

はじめに Reactの練習で、学習記録アプリを作ってみました。 あくまでReactの練習なので、CSSやDBなどは全く作ってないです。 工夫したことを復習がてら書きます。 リポジトリはこちら https://github.com/KuroishiTomoki/react...

Join the discussion →

Mechanism for innate and consciously-controllable reproduction for self-reproducing women

I have a population of human women with some slight biological differences: Innately asexual, lack sex drives Born with an internal reproductive organ that can generate genetically diverse sperm cells. They have conscious control over the organ. They can think about wanting to reproduce and the organ will begin sperm production. If they don't want to reproduce, the organ remains inactive. My worldbuilding intent was to create a human population that mimics the outward mechanism of asexual reproduction but still maintains the genetic benefits of sexual reproduction while giving an air of innate

Join the discussion →

How do I know which types are expected? Where do I get that information from?

Let's say I've got this class: class Person attr_accessor :first_name, :last_name, :email, :projects def initialize(first_name:, last_name:, email:, projects:) @first_name = first_name @last_name = last_name @email = email @projects = projects end end How would someone who wants to create a Person object know which arguments have to be passed? The first three arguments one could guess that it’s a string. But with the fourth argument it is completely unobvious. Could be comma-separated string, IDs, could be an array, dictionary, etc. And what structure does the array have? Does it contain strin

Join the discussion →

Uncaught ReferenceError: Link is not defined

Link is not defined 「"Linkが定義されてない"ってことは、ルーティングが上手くいってないのかな?」 "Link is not defined" って出てきたから、Linkって所謂Pathという思い込みが強く、 "/page2/100"のパスが上...

Join the discussion →

Najniższa pensja lekarza w Koperniku to aż pół miliona

W samym tylko szpitalu Kopernika w Łodzi najniższe wynagrodzenie sięga niemal pół miliona złotych, a najwyższe przekracza dwa miliony. Jeżeli system ochrony zdrowia wymaga ciągłego dokładania środków, a jednocześnie funkcjonują w nim tak ogromne dysproporcje wynagrodzeń, to najwyższy czas przyjrzeć.

Join the discussion →

SSA ベースの .NET IL 最適化コンパイラーを作ってみた

はじめに C# のコードがソースから実行に至るまでには、Roslyn と JIT の 2 段階のコンパイルを経由します。コンパイラフロントエンドである Roslyn は主に構文展開と基礎的な解析を担当しており、出力される IL は元のソースコードの構造をほぼそのまま保って...

Join the discussion →

Problem with asterisk parsing when debugging a calculator code using lldb

I wrote a simple calculate.cpp file to learn debugging through lldb. When I simply run the code for multiplying two numbers using the command ./calculate 2 '*' 3, things go fine. But when I pass in the arguments as lldb calculate 2 '*' 3, the value of argc as inspected within lldb turns out to be 6 instead of 4. Why so (as far as I can understand, it is because lldb parses * to look for other files within the same folder and passes those as arguments too) and what's the fix? PS I ChatGPTed the same question and it said to use lldb calculate 2 '\*' 3. But it fails with the following message. er

Join the discussion →

東大レゴ部、破壊されたガザの病院を制作「身近なこととして感じて」:朝日新聞

ブロックを一つひとつ積み上げた建物は、壁が壊れ、内部の骨組みが露出している。攻撃を受けたパレスチナ自治区ガザのシファ病院だ。東京大学レゴ部が「現状を少しでも知ってほしい」と、組み立て玩具レゴで再現し…

Join the discussion →

差分を流れ順に 1 ステップずつ読むツールを作った話

AI にコードを書いてもらう量が増えてから、書く時間より読む時間のほうが長くなりました。 できあがった差分を git diff やエディターのgit変更箇所で上から眺めても、ファイルはパスの順に並んでいるだけなので、処理の流れを追うのは大変です。AI に説明させると今度は長...

Join the discussion →

Cloudflare Zero Wire × GitHub Actions × Claude で公開サーバーの脆弱性チェックを自動化

はじめに 2026年11月、Cloudflare Radar に Zero Wire という脆弱性インテリジェンスのフィードが公開されました。全 CVE を網羅するのではなく、Web アプリやランタイム、インターネットに公開されたサービスなど「外向きのソフトウェアの重大な CVE」に絞って、ニュースのように読めるブリーフィングを出してくれるものです。 https://blog.cloudflare.com/zero-wire/ 読み物としても便利ですが、せっかく RSS もあるので、自分の公開サーバーに影響するかを毎朝自動で判定する仕組みを GitHub Actions で作ってみま...

Join the discussion →
Older stories