今天下载一些比较大的东西,用百度网盘来搞。但是它就跟饕餮一样直接一口吞掉了家里的所有带宽,爸爸的网卡到不行,上不了班。本来以为技嘉主板的那个Dragon软件可以限制带宽,但是实际上它是用来设定优先级的,没有办法直接限制。终极解决办法就是设备管理器,把网卡的工作速率降低:100M对应10M/s,1G那就是100M/s。这个是硬降速,确实也有效,一下子就给它压制在10M/s了。
Attribute Insanity 3.0修改备忘录
- 所有玩家获得每级+4%伤害
- 力量:所有伤害+5%
- 敏捷:+1先攻,+3%移动速度,+1%闪避。敏捷高于敌人时,每7点增加攻击、指向性法术的双重攻击概率
- 智力:+1%使用技能时重置所有技能冷却的几率。智力高于敌人时,每7点增加施加于敌人的状态的持续时间1回合
- 体质:+5%双甲,+10%血
- 智慧:+1%命中率,+3%暴击率,+0.5%攻击和技能范围
- 领袖:+7%几率将盟友施加于领袖的状态与领袖光环内的角色共享(每个角色单独roll几率)。领袖本身也能获得这个反向效果。
- 坚毅:+5%几率将敌人施加的状态施加回去。护甲恢复提升至10%每点。每回合开始时每1点回复2%最大护甲值。
- 报复:+5%几率回合结束时嘲讽附近角色
-
大气学派:+5%雷抗,+3%几率使用技能或攻击时电击20m内的敌人(每个角色单独roll)
-
地卜学派:+5%大地、毒素抗性,攻击和法术恢复3%物甲,在油上跑得更快。护甲恢复提升至7%
-
神射技艺:+10%回合结束时潜行几率。如果已经潜行,效果会变成隐身。几率超过100%时也会有几率直接隐身。NPC没有这个效果。
-
水占学派:+5%冰抗,攻击和法术治疗友军2%。护甲恢复提升至7%,治疗量提升至8%
-
烈火学派:+5%火抗,攻击或指向性法术有1.5%几率恢复1ap。站在火或诅咒火上时效果翻倍。
-
刺杀学派:潜行时进行攻击或指向性法术,+5%几率缴械,+5%几率致盲(穿透护甲)
-
战场技艺:增加“Chain Pull”技能,可以将敌人拉到面前。每级增加技能范围和加快冷却,高等级时附加致残和流血。
-
死灵学派:+3%几率将死了的敌人操纵3回合。+10%生命偷取
-
召唤学派:召唤物继承召唤者一半的技能等级(向上取整)以及被动效果。其他与原版一致(初始+10%体力、伤害、双甲)
-
变形学派:+6%使敌人施加的状态效果无效。不再提供额外的属性点。
-
单手:每级解锁1个虚空法术。回合开始时以及使用虚空法术时,会随机抽取另一个虚空法术来替代这个。虚空法术一共10个。
-
双手:+5%生命值损失时劈斩附近所有的角色。需要1个近战武器
-
双持:+2%闪避率。受到伤害时该数值变为+4%,直到闪避了一次攻击。如果副手为空,该数值翻倍。
-
远程:+4%几率打断敌人的施法(武器种类不限)。后续打断的几率以4%递减。
Attribute changes
- New! All players gain +4% damage per level.
- Strength -> Might: +5% damage to all attacks.
- Finesse -> Speed: +1 initiative, +3% movement speed, +1% dodging. Your attacks and targetted spells may repeat up to once per turn per each 7 Speed you have more than your target.
- Intelligence -> Magic: 1% chance to reset all cooldowns on skill use. Status effects you apply will increase duration by 1 turn per every 7 Magic more you have than your opponent.
- Constitution -> Endurance: +5% armor (both types), +10% hp per point.
- Wits -> Perception: +1% accuracy, +3% crit chance, +0.5% character range.
- No more overrides necessary for class mods!
Existing Ability changes
- All abilities: All abilities no longer grant direct damage increases. Instead, they grant various special effects.
- Leadership: Grants a 7% chance per point to share statuses applied by allies to the leader with other characters in the leadership aura, rolled once per character. The leader also has a 7% chance per point to gain statuses applied to followers.
- Perseverance: 5% chance to share enemy-induced status effects with the sender per point. Armor recovery increased to 10% per point. Furthermore, recovers 2% max armor per point on turn start.
- Retribution: 5% chance to taunt nearby characters at end of turn per point.
- Aerothurge: +5% air resistance, 3% chance per point to shock each enemy (rolled per character) within 20m upon using a skill or an attack.
- Geomancer: +5% earth and poison resistance, attacks and spells restore 3% physical armor, move 8% faster in oil per point. Armor restore percentage increased to 7% (from 5%).
- Huntsman: +10% chance to sneak at end of turn per point. If the player is already sneaking, this becomes invisibility. Scores higher than 100% chance start proccing a chance to become invisible instead. NPCs do not benefit from this trait.
- Hydrosophist: +5% water resistance, your attacks and spells heal nearby allies 2% per point. Armor restore percentage increased to 7% and healing restore percentage increased to 8% (both from 5%).
- Pyrokinetic: +5% fire resistance, 1.5% chance for attacks and spells targetted at characters to restore 1ap per point. Doubled while standing in fire or necrofire.
- Scoundrel: +5% chance to disarm and/or blind a foe (through armour) with attacks and targetted spells while sneaking (both statuses separately rolled).
- Warfare: Gains “Chain Pull” during combat, a skill which pulls enemies to your position. Increases range and decreases cooldown with each level. Cripples and Bleeds at higher levels.
- Necromancer: Grants a 3% chance per point to raise killed enemies from the dead for 3 turns. (This exists on top of vanilla’s 10% lifesteal)
- Summoning: Summons now inherit half the Ability levels (rounding up), and subsequently the passive effects, of their owner. This occurs regardless of your skill in Summoning, which has itself remained the same.
- Polymorph: Grants a 6% chance per point to shed all enemy-applied status effects upon application. No longer grants attribute points. To avoid bugs, please only add Polymorph points outside of respec. Character creation is fine.
- Dual-wielding -> Duelist: Grants 2% dodging in combat per point. Taking damage increases the bonus by 2% per point until the Duelist evades an attack, at which point the bonus will reset. This bonus is doubled for characters with an empty off-hand.
- Two-handed -> Berserk: Provides the character with a 5% chance to cleave all nearby characters (including allies) upon taking vitality damage. Only works with melee weapons.
- Ranged -> Specialist: Grants the specialist a 4% chance per point to interrupt enemy spells with a flashy weapon attack (works with melee weapons too!). Each subsequent interrupt has a -4% less chance to occur. Enemies do not benefit.
- Single-handed -> Voidtouched: Voidtouched grants the player access to 10 mysterious and powerful new spells that draw upon the Void’s power. Every time you begin a turn in combat or use a Voidtouched skill, you’ll gain access to a new skill chosen at random. Each point in Voidtouched unlocks new and more powerful spells.
今日单车远行
昨天把新买来的马牌银标外胎和建大内胎换好之后,心里总想骑个远程试试车。今天下去剪完头发神清气爽,决定就是今天出发了,目的地就回一次乡下吧。
地图上查了一下路线,高德和苹果自带的地图都是建议直接走桂澜路接联河路,拐广佛新干线接桂和公路。跟着这条路走到广佛新干线,大呼上当,大车超多,而且出口太多太复杂,完全看不懂地图,导致上错桥错过了桂和路。由于第一条桥下桥的时候差点生命定格在22岁被创去异世界,所以第二条桥就决定走下边了(其实是分叉口看见路牌好像能直行,结果到跟前一看直行打了个×)。桥下右转之后跟着导航乱走……其实已经迷路了,导航说啥就是啥。走到环市路什么的,莫名其妙就又搭上了联江路,一路下去结果就找回了桂和路,成功到了外婆家。路上还遇到三个骑车的,公路车+小轮车+山地车的奇怪组合……
然而在村里转了几圈都没找到外公外婆,于是在士多店买了个宝矿力就准备回程了。事实证明宝矿力不太够,毕竟出发前买的脉动都喝光了。刚骑出村口就感觉力气不够,觉得可能是饿了,附近的麦当劳又很远,正觉得不知道怎么办的时候看见路边有个沙县,那个葱香捞面简直极致享受。吃完再骑,还是力气不够……这下知道了,是腿累了,不是能量不够(其实还是有19公里的均速的)。路过南国桃园那段路的时候,小石头多得离谱,甚至有个大一点的把我车轮都弹开了一点。心里害怕得一匹,毕竟如果爆胎了那就只能货拉拉了。但是这个700c23的113psi胎超猛,直接弹开了大多数石头(弹不开的那就被弹开:P)。回程倒是无惊无险,甚至停在桥上拍了个照。
到桂江立交搞不清楚怎么走,看怎么大家都往桥底钻,过去一看,原来车不能左转但是人可以。
最后当然是成功到家,顺便收了个快递贴膜。
Nextcloud Docker食用指南(第一版)
首先需要安装docker和docker-compose。
部署docker
之后,打开nextcloud的dockerhub,先把docker镜像拉下来:
1 | docker pull nextcloud |
用docker run
来启动容器。不过在这之前有很多要做的。
确定各种参数
文件存储地址
为了以后方便迁移,需要新建一个文件夹给docker存储文件(你不会不想的)。我的存放地址是/var/www/nextcloud_docker
。
使用host的数据库
nextcloud的docker镜像默认使用sqlite,但是根本不适合用来同步。为了使用主机上的mariadb,需要把UDS映射到里面去。要点:
Mariadb较新版本导入mysqldump时报错ROW_FORMAT=COMPRESSED及其他问题
ROW_FORMAT=COMPRESSED
出现这个问题主要是Mariadb 10.6开始默认设置了innodb对ROW_FORMAT=COMPRESSED
的表只读(readonly),对应的设置项是cnf中[mysqld]
节的innodb_read_only_compressed
。(参见 innodb-read-only-compressed)
碰到有关ROW_FORMAT=COMPRESSED
报错的场景主要有:
- 从低于Mariadb 10.6版本的旧Mariadb中mysqldump然后导入新版本数据库中
- Nextcloud的occ做
maintenance:repair
时
为了解决这个问题,需要做以下处理:
- 用命令行参数
--skip-innodb-read-only-compressed
(systemctl edit --full mariadb
直接添加到ExecStart=
后面)让它支持读写,进行导入(针对上面的情况1) - 进入mysql命令行,用
ALTER TABLE 表名 ROW_FORMAT=DYNAMIC;
来修改ROW_FORMAT - 关掉
--skip-innodb-read-only-compressed
(用systemctl edit
来删掉之前添加的参数) - 进行occ的repair
Table ‘user’ already exists
导入mysqldump的文件时可能会报这个错,只需要修改mysqldump出来的文件,在文件开头添加:
1 | DROP TABLE IF EXISTS `mysql`.`global_priv`; |
参考MariaDB - MySQL - ALL-DB Import - Table ‘user’ already exists。但是遇到这个问题的时候通常已经导入了一些了,担心数据库不完整,想reset一下怎么办?
WordPress等使用MySQL的Unix Domain Socket
本机连接MySQL的话,当然是用Unix Domain Socket会比传统的本地回环更节省overhead。
首先使用这个命令来确定UDS的路径:
1 | netstat -ln | grep "unix.*mysql" |
对于WordPress,修改wp-config.php中define('DB_HOST','localhost')
,变为define('DB_HOST', 'localhost:/run/mysqld/mysqld.sock');
(具体localhost:什么,就看上边的命令的输出)。
对于Nextcloud,修改config.php中的'dbhost' =>
,同样也是变为localhost:/xxx/xxx的形式。并且需要把dbport改为空串’'。
本周工作小结
本周是7月26日至8月1日。关于时间的记忆不太准确。本周二遇到客户临近下班时间才来办理业务,而且是对公业务,搞到大家都非常紧张;这个业务还是当天出就必须当天由行长签名才能搞定的,而我们的行长还在居家隔离中,所以只好让我骑小电驴去南海支行找领导签名。
周四早上是新员工见面会,七点半就到了佛山分行的会议室等待。见面会开始是 汇报演出,随后是新员工代表发言及青年员工发言,然后由行长进行了简单的欢迎演讲。这一系列的安排主要就是为了彰显工行前景不错,让新员工们认真学习努力升职。随后进行了“暖心大礼包”的派发,里面是台灯、眼罩、伞和巧克力,最令人兴奋的当然是发工资,一次性补贴加上工资,税前万元户实现了!发了钱立刻底气就足了,去吃了一顿有记。
周五较为日常,中午和行长一起吃了江渔儿外卖。也听师傅八卦知道了关于主管的一些往事。
周六晚上被抓去看分行打篮球,一个钟不到就打完了,挺快的。