V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX  ›  leconio  ›  全部回复第 2 页 / 共 17 页
回复总数  334
1  2  3  4  5  6  7  8  9  10 ... 17  
我想到两个办法。
1 Nginx 做负载均衡。
upstream backend {
server 192.168.1.1:8080;
server 192.168.1.2:8080;
}
2 DNS 轮训。写个脚本不停地更新域名到这两个 ip ,或者根据地区解析不同的 ip
软件开发周期大于倒闭周期
太阳活动异常,地球磁场消失,对太阳辐射和宇宙射线防护变弱,然后现存的消失。。。我们生存环境好脆弱。
安卓好像没有能激发亮度的 HDR
写写画画,看看奈飞,iPad 好很多
对于开发者,安卓生态圈要好很多
geosite 抄下最新的地址
支付宝我记得欠费也可以冲
26 天前
回复了 lurui45 创建的主题 生活 关于日常药店买药的一些想法
药店刷社保,感觉像零元购,(其实那也是工资一部分呀)
26 天前
回复了 xiaopanzi 创建的主题 NAS 群晖远程唤醒方案
或者买个开机棒,那个就是发魔法包的
26 天前
回复了 xiaopanzi 创建的主题 NAS 群晖远程唤醒方案
使用场景是啥,群晖一直开着不就行了吗。我的 220 开一次机要好久好久。
29 天前
回复了 waiaan 创建的主题 JavaScript 这段 if...else 有优雅的写法吗?
const sortStrategies = {
descending: (prop) => (a, b) => b[prop] - a[prop],
ascending: (prop) => (a, b) => a[prop] - b[prop]
};

const sortCommands = {
thisYearIncome: {
descending: () => sortStrategies.descending('thisYearIncome'),
ascending: () => sortStrategies.ascending('thisYearIncome')
},
lastYearIncome: {
descending: () => sortStrategies.descending('lastYearIncome'),
ascending: () => sortStrategies.ascending('lastYearIncome')
},
rate: {
descending: () => sortStrategies.descending('rate'),
ascending: () => sortStrategies.ascending('rate')
}
};

function createSortCommand(order, prop) {
return sortCommands[prop][order]();
}

const data = [
{ thisYearIncome: 5000, lastYearIncome: 4000, rate: 0.25 },
{ thisYearIncome: 8000, lastYearIncome: 6000, rate: 0.33 },
{ thisYearIncome: 3000, lastYearIncome: 2000, rate: 0.5 },
{ thisYearIncome: 6000, lastYearIncome: 5000, rate: 0.2 }
];

function onSortChange(order, prop) {
const sortCommand = createSortCommand(order, prop);
fetchData(sortCommand);
}

function fetchData(sortCommand) {
const sortedData = data.sort(sortCommand);

console.log('Sorted Data:');
sortedData.forEach((item) => {
console.log(`This Year Income: ${item.thisYearIncome}, Last Year Income: ${item.lastYearIncome}, Rate: ${item.rate}`);
});
}

console.log('Sorting by This Year Income (Descending):');
onSortChange('descending', 'thisYearIncome');

console.log('\nSorting by Last Year Income (Ascending):');
onSortChange('ascending', 'lastYearIncome');

console.log('\nSorting by Rate (Descending):');
onSortChange('descending', 'rate');
这文笔,不去写本子可惜了
29 天前
回复了 UIXX 创建的主题 问与答 2024 年中买什么平板好
生态上还是 iPad 好。我串流游戏狗选择联想 y700 。
对 HDR 有要求无脑 iPad 吧,安卓调色都怪怪的
29 天前
回复了 ixoy 创建的主题 分享发现 警惕!逛会展被诈骗了
在深圳?有点不敢相信,打 12345 让他们跟进,要求主办方假 1 赔 10 。
32 天前
回复了 sbldehanhan 创建的主题 MacBook Pro 哪款 Macbook 可以跑 UE 引擎?
这两家不是还有官司吗,ue 很多特性都不在 mac 上的吧,学习的话就随便了。
也建议出保就换车。
干式双离合老毛病了,dp200 最好不要碰吧。除非你在乡镇或者地广人稀地方开车。我有个同事,在深圳开 dq200 ,保内换了 3 个离合,出保就换车了。
34 天前
回复了 llxe2v 创建的主题 硬件 铭凡 amd mini 主机外接 nvidia 显卡?
1 年前,minisforum 的 um773 的 USB4 外接显卡好像有点问题,有概率识别不了。不清楚现在变好了没有
1  2  3  4  5  6  7  8  9  10 ... 17  
关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   1108 人在线   最高记录 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 46ms · UTC 18:58 · PVG 02:58 · LAX 11:58 · JFK 14:58
Developed with CodeLauncher
♥ Do have faith in what you're doing.