Rubyでやるのは難しかった(できてませんw
$ cat test.rb; ruby test.rb
def increment(p)
p.succ!
end
p = "0"
increment(p)
puts p
1
GoはCぽくなるかな
$ cat main.go; go run main.go
package main
import "fmt"
func increment(p *int) {
*p += 1
}
func main() {
var x int = 0
increment(&x)
fmt.Printf("%d\n", x)
}
1
なのがC++だと
$ cat test.cc; gcc test.cc && ./a.out
#include <stdio.h>
void increment(int &p)
{
p += 1;
}
int main(void)
{
int p = 0;
increment(p);
printf("%d\n", p);
return 0;
}
1
むずかしわねー
Cだと
$ cat test.c; gcc test.c && ./a.out
#include <stdio.h>
void increment(int *p)
{
*p += 1;
}
int main(void)
{
int p = 0;
increment(&p);
printf("%d\n", p);
return 0;
}
1
Hey, so one downside of reversible suspensions in Mastodon 3.3.0 is that due to an oversight, the suspension is only communicated to the account's followers, which is usually far from everyone who needs to know about it. Due to this, a lot of already suspended accounts keep getting reported from other servers. Until we release a fix, consider checking if the account still exists on the original server whenever possible. Sorry for the inconvenience.
Mastodon v3.3.0 では SRI が導入されています。これは assets:precompile で作られた静的な CSS や JavaScript が CDN などで意図せず改ざんされていないか検証するブラウザの機能を使用しています。
ハッシュ値がマッチするか検証し、マッチしていないと CSS や JavaScript が読み込まれなくなります。
Cloudflare を使っている場合、 Speed > Auto Minify にチェックを入れていると、ハッシュ値が変わってしまい CSS や JavaScript が読み込まれず、WebUI が正しく表示されない事象が発生するようです。
これが発生する場合は、Auto Minify のチェックを全て外して、Cloudflare のキャッシュを全てパージし、ブラウザ側のキャッシュもクリアすることで解決するようです。
SRIについての詳細は↓を見てね
サブリソース完全性 - Web セキュリティ | MDN https://developer.mozilla.org/ja/docs/Web/Security/Subresource_Integrity
国会内のネットワークへの侵入はたぶん無かっただろうって本当かしら。ネットワークへの侵入のために騒ぎを仕立て上げた可能性だってありそうなものだけど。
Digital Planet - Has tech been compromised in the US Capitol? - BBC Sounds https://www.bbc.co.uk/sounds/play/w3csz995
電車に乗ってて暇だったからVSCodeのレポに攻撃できるか調べるという強さよ。
権限管理って大事ですねぇ
VSCodeのGitHubリポジトリに対する不正なPushアクセス - RyotaK's Blog https://blog.ryotak.me/post/vscode-write-access/
Good morning! #とは
$ TZ=Europe/Berlin date
Wed 13 Jan 2021 03:32:00 AM CET
Reads and writes in Japanese and English. ぽんこつです。