Normal view
2024 年了,无聊想尝试下 neovim
对于独立开发出海 App 你们选择 SwiftUI 专注 iOS 还是直接用 flutter 开发多个端
独立开发有经验的 v 友们,如果开发一款 出海 App ,通过订阅获取收益。因为苹果端的付费比例高,你们是回直接用 SwiftUI 开发专注于 iOS ,还是直接用 flutter 开发 iOS 和安卓,同时上架 Google play 和 app store 。 没有实际经验,有经验的伙伴们如何选择?
Human Beings Are Not Predators By Nature
The Best Way to Preserve U.S. Steel Is to Approve Its Sale
Who is Magdeburg market attack suspect Taleb al-Abdulmohsen?
On Friday evening, a man ploughed a car into a crowd of shoppers at a Christmas market in the German city of Magdeburg.
The attack has left five people dead and more than 200 injured, with many in a critical condition.
One man has been arrested over the attack, and police believe he was solely responsible.
German Chancellor Olaf Scholz travelled to Magdeburg on Saturday, and a city councillor declared Christmas over for the city.
How did the attack unfold?
Unverified footage on social media showed a black BMW travelling at high speeds through the pedestrian walkway between Christmas stalls.
Eyewitnesses described jumping out of the car's path, fleeing or hiding. One told the Reuters news agency that police were already at the venue and chased after the car before arresting the suspect.
Footage from verified sources showed armed police confronting and arresting a man who can be seen lying on the ground next to a stationary vehicle - a black BMW with significant damage to its front bumper.
BBC correspondent Damien McGuinness in Magdeburg reported that the market is "surrounded by concrete blocks". However, "there is a gap which is wide enough for pedestrians to go through, but tragically wide enough for a car to go into the Christmas market", he said.
City officials said around 100 police, medics and firefighters, as well as 50 rescue service personnel rushed to the scene in the aftermath of the attack.
Images from the scene on Friday night showed an area outside the market awash with blue lights as dozens of first responders attended to the injured.
Who are the victims?
Five people have died in the attack, one of whom is a child.
More than 200 people have been injured and at least 41 are in a critical condition.
The toll had earlier been reported as two dead and 68 injured, but was revised to the much higher totals on Saturday morning.
None of the victims have been identified yet.
Who is the suspect?
German media has identified the suspect as Taleb A, a psychiatrist who lives in Bernburg, around 40km (25 miles) south of Magdeburg.
The motive behind the attack remains unclear, but authorities have reported that they believe he carried out the attack alone.
Originally from Saudi Arabia, he arrived in Germany in 2006 and in 2016 was recognised as a refugee.
He ran a website that aimed to help other former Muslims flee persecution in their Gulf homelands.
Evidenced by social media posts, the suspect is an outspoken critic of Islam, and has promoted conspiracy theories regarding a plot to seek Islamic supremacy in Europe.
A report from Der Spiegel said a complaint was filed against Taleb A with the authorities a year ago over statements he made. Officials did not see any concrete threat, the report says.
What have officials said about the attack?
"The reports from Magdeburg raise the worst fears," the German chancellor, Olaf Scholz, said on social media platform X.
Magdeburg's city councillor for public order, Ronni Krug, said the Christmas market will stay closed and that "Christmas in Magdeburg is over", according to German public broadcaster MDR.
That sentiment was echoed on the market's website, which in the wake of the attack featured only a black screen with words of mourning, announcing that the market was over.
The Saudi government expressed "solidarity with the German people and the families of the victims", in a statement on X, and "affirmed its rejection of violence".
UK Prime Minister Sir Keir Starmer said he was "horrified by the atrocious attack in Magdeburg", adding that his thoughts were with "the victims, their families and all those affected" in a post on X on Friday night.
Grief and anger in Magdeburg after Christmas market attack
Magdeburg's Christmas market is a sad sight. This should have been the busiest weekend of the season, but the whole area has been cordoned off and all the stands are shut.
Police are the only people walking around the boarded-up mulled wine and gingerbread stalls.
On the pavement, red candles flicker, tributes laid for the victims.
Lukas, a truck driver, told me he felt compelled to come to pay his respects. "I wasn't there when it happened," he told me.
"But I work here in Magdeburg. I'm here every day. I've driven by here a thousand times."
"It's a tragedy for everyone here in Magdeburg. The perpetrator should be punished."
"We can only hope that the victims and their families find the strength to deal with it."
There is sorrow here – but there is anger too.
Many people here see this attack as a terrible lapse in security. That is a claim the authorities reject, although they have admitted the attacker entered the market using a route planned for emergency responders.
Michael, who also came to pay tributes to the victims, said "there should've been better security".
"We should have been prepared better but that was not done properly."
- Investigation: Police probe market security and warnings about suspect
- Explained: What we know so far about Magdeburg Christmas market attack
- From the scene: Eyewitness heard rumbling and shattering glass
Standing at the security cordon, I heard a group of locals complaining loudly about Germany's Chancellor Olaf Scholz and regional politicians.
"They are wasting our tax money, they are just looking out for themselves. They are not interested in us. We just hear empty promises," one man said.
"They are turning what happened here around and want to put the blame on the opposition and use it for their election campaign," he said.
On Saturday evening, around the same time as the square in front of Magdeburg's Gothic cathedral was filled with mourners watching a memorial service, a demonstration took place nearby.
Protesters held a banner that read "Remigration now!" – a concept popular among the far-right – and shouted "those who do not love Germany should leave Germany".
It is not clear yet what impact this attack may have on Germany's upcoming election.
Germany has been hit by a number of deadly Islamist attacks in the past, but investigators said the evidence they have gathered so far suggests a different picture in this case.
Germany's Interior Minister Nancy Faeser said the suspect appears to have been "Islamophobic".
The suspect, Taleb Al-Abdulmohsen, is from Saudi Arabia, and his social media posts suggest he had been critical of Islam.
He also expressed sympathy on social media for Germany's far-right political party, Alternative for Germany (AfD), re-tweeting posts from the party's leader and a far-right activist.
Another deadly crush in Nigeria at event offering free food
The number of dead from a crowd crush in the south-east town of Okija in Nigeria has risen to 22, police say.
It is the third case this week of people being crushed to death at events where free food was being distributed.
The fatalities in Okija occurred at a charity event on Saturday, when residents rushed to collect Christmas donations, including rice and vegetable oil.
On the same day, a similar tragedy at a Catholic church in the capital city Abuja killed 10 people, while 35 children died during a carnival event on Wednesday in the city of Ibadan.
- How offer of free food led to deadly crush at Nigerian Christmas fair
- Is Nigeria on the right track after a year of Tinubu?
Police have now warned organisers to notify authorities before holding charity events in order to prevent such loss of life.
Toyin Abdul Kadri, who witnessed the crush at the Holy Trinity Catholic Church in Abuja, told AFP news agency the attendees "forced the gates and forced their selves inside".
The event involved "vulnerable and elderly individuals" and four children were killed, the police said.
In a social media post about the crushes, Amnesty International Nigeria wrote: "President Bola Tinubu's government must urgently prioritise addressing widespread hunger, higher unemployment and the rapidly falling standard of living."
Food and transportation costs have more than tripled in Nigeria in the last 18 months.
The global bout of inflation has been exacerbated by some of the policies of the government – designed to strengthen the economy in the long-term – such as ending a fuel subsidy.
In a statement on the deadly crushes, President Bola Tinubu said: "In a season of joy and celebration, we grieve with fellow citizens mourning the painful losses of their loved ones. Our prayers of divine comfort and healing are with them."
He urged state governments and the police to enforce strict crowd control measures, and has cancelled all his official engagements in honour of the victims.
He also noted the similarities between the incidents, including one earlier this week in the south-west city of Ibadan.
A crush at a school funfair there killed 35 children and seriously injured six others.
Thousands of people had turned up on the promise of free food.
Residents in Bashorun, a suburb of Ibadan, told the BBC the crowd soon exceeded 5,000 with many attempting to force their way through the school gate. Parents are said to have tried to scale the fence surrounding the compound to gain access.
Police spokesperson Olumuyiwa Adejobi said the three "tragic" incidents highlight the "urgent need for a more structured and effective approach to delivering aid to vulnerable communities and members of the public in general".
More BBC stories about Nigeria:
Go to BBCAfrica.com for more news from the African continent.
Follow us on Twitter @BBCAfrica, on Facebook at BBC Africa or on Instagram at bbcafrica
除了「看」书,不妨也试试用「感受」的方式阅读?
The Differences Between Running a Business and Running the Government
Campus Groups Try to Make Room for Middle-Ground Opinions on the Middle East
不同品牌无线路由器可以通过修改 IP 实现 mesh 组网吗
192.168.1.x
192.168.2.x
192.168.3.x
小白一点思考。
新注册的 github 账号过多久能 fork 项目?
程序员失业,回家养🐏,大家怎么看?
学校发生这样的事,大家怎么看?
班主任教育 b 的时候说:你想跟 a 学吗,他爸妈因为他经常吵架都想离婚了。
下课后 a 问 b:班主任都说什么了,b 说班主任说你爸妈瞒着你都离婚了。a 大怒 摔了班主任杯子,在教室辱骂班主任。
班主任发了朋友圈在医院。
大家怎么评这个事
分享一下最近我对我的 ZeroTier 做了什么!用 ZeroTier 节点作为网络出口!
之前一直以来,我都在使用 zerotier 搭建内部局域网,但是我也想,为什么我不能用 zeortier 的某个节点作为出站节点?经过几周的休息(?),这周突然有空把这玩意做了。我分享一下具体细节。其实跟着官方文档走就不错了。
核心步骤就是配置转发和配置持久化问题。
为什么选择 ZeroTier ?
- 完全免费且开源
- 配置简单,维护成本低
- 支持跨平台
- 性能优秀,延迟低
前期准备
- 一台可用作出口节点的服务器(可以是 VPS 或者树莓派)
- 基本的 Linux 命令行操作知识
- root 或 sudo 权限
具体步骤
第一步:配置出口节点
- 创建 ZeroTier 网络(如果没有,先去官网创建)
- 安装 ZeroTier:
# 加入网络
sudo zerotier-cli join <你的网络 ID>
- 开启 IPv4 转发:
# 编辑配置文件
sudo nano /etc/sysctl.conf
# 添加以下内容
net.ipv4.ip_forward = 1
# 重载配置
sudo sysctl -p
# 验证设置
sudo sysctl net.ipv4.ip_forward
第二步:配置网络接口
- 获取网络接口名称:
ip link show
- 设置环境变量:
export ZT_IF=zthnhhqofq # 你的 ZeroTier 接口名
export WAN_IF=eth0 # 你的外网接口名
- 配置 iptables 规则:
# 启用 NAT
sudo iptables -t nat -A POSTROUTING -o $WAN_IF -j MASQUERADE
# 允许转发
sudo iptables -A FORWARD -m conntrack --ctstate RELATED,ESTABLISHED -j ACCEPT
sudo iptables -A FORWARD -i $ZT_IF -o $WAN_IF -j ACCEPT
# 安装 iptables-persistent 使规则持久化
sudo apt-get install iptables-persistent
sudo netfilter-persistent save
第三步:网络配置(在 ZeroTier 管理面板)
- 进入 Central > Network > Settings > Managed Routes
- 添加路由规则:
0.0.0.0/0 via <你的路由节点 ZeroTier IP>
第四步:客户端配置
- 在托盘应用中,找到对应网络的 "Allow Default" 选项并启用
- 为方便使用,可以添加以下命令到
~/.bashrc
:
tunnel()
{
sudo zerotier-cli set $nwid allowDefault=1
}
notunnel()
{
sudo zerotier-cli set $nwid allowDefault=0
}
常见问题解决
验证配置
配置完成后,你可以通过以下命令检查 IP:
curl -4 ifconfig.co # 检查 IPv4
curl -6 ifconfig.co # 检查 IPv6
官方文档参考: https://docs.zerotier.com/exitnode/
题外话
我测试了一下,ip 的确变成了是出口节点的 ip 。
但是有一个问题:
google 和 youtube 我莫名其妙的无法访问。而 newbing 等其他网站却不受影响。 原因我还没有排查出来。
还有就是,这样的出站方式,中间流量由 zerotier 保证和控制。因此,实际上这样的流量路由转发,并没有主流的集中魔法协议的那种伪装防护功能。其实用性存疑。但是这给了一个如何利用 zerotier 的新思路。
docker -v 绑定模式是不是重启的时候需要复制一遍文件夹?
感觉有的容器重启的时候特别慢。
比较稀有的单字母域名网址一般怎么弄的
天河-游泳次卡-转手出售
天河-盟虎劲技运动馆-游泳次卡-出售
有没有广州天河-盈彩美居小区附近的朋友,我剩 22 张游泳卡
因个人原因要换租了,所以不再继续住在这边,有 22 张盟虎劲技运动馆的游泳次卡想出售
可开春后去游泳
原价一张 35 米来的,现在转售价一张 15 米吧,一共 22 张,所以一共是 330 米,有需要的可联系我
** 联系方式:bHpiMTc4MDcxMzgwMTI= **
== Pixel6 重启后中国电信卡是否可以正常拨打电话 ===
多谢多谢
AI 驱动浏览器操作实现原理?
最近看到 google 的一个 AI 插件,可以让 AI 操作浏览器收集信息,对 AI prompt 了解甚少,对它的实现原理很感兴趣
ReLU 函数在 x> 0 的时候也是线性的,套 ReLU 函数是怎么实现激活作用的?
神经网络每一层节点输出值,都要套一层非线性激活函数。现在使用较多的激活函数 ReLU 激活函数在 x > 0 的时候也是线性的,并且是 y=x ,这能起到“线性”=>“非线性”的作用吗?不太理解 ReLU 是怎么实现激活作用的
[杭州外企]招资深 UI/UX
工作经验: 至少 7 年+/最好 10 年+,有 toB 软件的 UI/UX 经验
年龄:35 岁以上优先
技能要求: 英语听说流利
薪资: 30k - 50k
工作地点: 杭州
有意者请加 vx: UGFjaW5vLWZseQ==
北京 6 年全栈求捞
技术栈: nodejs ,nestjs ,熟练,从零到一开发项目。
数据库: mongodb
后端语言: python fastapi 熟练,项目开发维护。
前端: reactjs ,vue 均熟练开发项目(最近两年主要开发后端)
人格开朗,学习能力强
md, gitlab 也歧视我们
发现个 bug ,准备去报个 issue ,结果登录的时候要验证手机,发现没有+86 ,手工改网页也通不过。遂放弃了。
设置 cdn_host 会导致 repository file 显示不了内容,有人碰到过吗?
有没有懂智能家居开发的大神可以指导下的
Apple Music Win 端使用问题
据说是 iTunes 和 Apple music 的遗留代码发力了,使用 Everything 可以查到 C 盘还有一部分残留文件,包括文件夹和 EXE 格式的文件,但是需要管理员权限才可删除。
OS:Windows 11 家庭中文版 24H2 最新版本
PS:今年九月份十月份还能正常使用,忘记具体时间开始出现问题,被迫转到网易云+本地音乐。
多心率设备评估软件 Multi HR
Multi HR 是一款专门用于同时监测、记录和分析多个蓝牙心率设备的数据的软件。它支持实时数据可视化、数据导出以及专业的统计分析功能,特别适合运动科学研究、数码测评等领域的应用。
声明:本应用不用于医疗诊断,仅用于数码测评和科学研究。
主要功能
• 多设备同时连接与监测 • 实时心率数据可视化 • 数据记录与导出( Excel/CSV ) • 专业统计分析(皮尔逊相关系数、Bland-Altman 分析) • 支持 Polar 、佳明等主流支持 0x180D 服务的 BLE 心率设备(已经测试过 Polar H10 ,Polar Sense ,BigRun Team ,高驰 HR01 ,佳明 965 心率广播,明确不支持苹果手表,苹果手表心率数据需要通过第三方软件获取或通过蓝牙连接获取,并非通过 0x180D 服务获取)
iOS 版: https://apps.apple.com/us/app/multi-hr/id6739001386 安卓版: https://play.google.com/store/apps/details?id=com.niulasong.multihr
主页: https://multihr.li2niu.com/ 中文版教程: https://mp.weixin.qq.com/s/8bNwmT7eMsU7Dh518J8hcg