V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX  ›  zjsxwc  ›  全部回复第 52 页 / 共 208 页
回复总数  4155
1 ... 48  49  50  51  52  53  54  55  56  57 ... 208  
2021-09-06 19:55:23 +08:00
回复了 NotreDame 创建的主题 Go 编程语言 golang 实现 office 转 pdf/image 有什么库推荐吗?
@fgwmlhdkkkw

666,我按你的想法写了个 python 脚本,借助 wps 转换任何文件到 pdf

https://github.com/zjsxwc/wpsconverttopdf
2021-09-06 10:34:23 +08:00
回复了 lbllol365 创建的主题 职场话题 和高中同学吃饭,他劝我要“格局打开”
这。。PS 工作经历和流水。
毛巾配合纸巾。。
@gBurnX #37
并没觉得有问题,而且业务上负责人不是岗位。
我觉得没必要为了使用外键而修改业务。
@JasonLaw #15

实际业务中 不怕数据多了,而是怕数据丢失,
comment 变 orphan 不可怕,甚至业务中你的 answer 也不是真删除而只是把 status 字段改成某个代表删除的值,于是对于这种业务来说外键约束级联删除都触发不了,这种伪删除的业务存在导致了数据库外键作用消失,外键只剩下 index 加速查询的作用。


忽然想到,

要用外键的一个 非常非常 重要的前提是你 真正的真实的 在删数据!!!!!!!而不是标记下伪删除。
不过也看业务,业务简单,后期不会修改业务,实体类关系是树状的用外键最爽。
@JasonLaw https://blog.csdn.net/aaaaaalll/article/details/80742064
这种已经是简化了的场景,实际情况更加复杂,会有各种花式依赖。
不是不想用,
而是业务复杂点,就碰到外键循环死锁依赖问题,
真 tm 吃 shit
2021-09-04 20:12:33 +08:00
回复了 onice 创建的主题 Linux 为什么你要用 Linux 当桌面呢?
因为不玩游戏,
因为我靠 linux 恰饭,
因为 win 下软件会流氓、会中毒、会各种广告恶心,
因为现在对 linux bash 等等比 powershell 更熟悉,

所以我在 linux 下更自在。
2021-09-04 10:20:40 +08:00
回复了 James369 创建的主题 程序员 js 的类有没有析构函数,如何进行资源释放??
上面 4 类语言中,只有 GC 语言存在 STW 卡顿现象。
2021-09-04 10:16:48 +08:00
回复了 James369 创建的主题 程序员 js 的类有没有析构函数,如何进行资源释放??
GC 语言( PHP\JAVA )的析构函数(__destruct/finalize ) != RAII 语言( C++)的析构函数 (~xx ) != ARC 语言( oc/swift )的析构函数( dealloc/deinit ) != 所有权语言( Rust )的析构函数( drop )
2021-09-03 16:43:13 +08:00
回复了 wh469012917 创建的主题 程序员 同事代码写的太烂了怎么办?
重构,有 ide 在 symbol 命名替换应该容易
2021-09-03 14:33:09 +08:00
回复了 James369 创建的主题 程序员 js 的类有没有析构函数,如何进行资源释放??
虽然 swift 没有 gc,也没有析构函数,但 swift 有 deinit 函数

In Swift, destructors are not required, as the memory deallocation is abstracted away and done automatically. However, they are available and known as “deinitializers”, to perform any cleanup that needs to be done just prior to actual deallocation of the object. Deinitializers are optional, and there can be one at most in a class.

In our car example, before we send it to the junkyard, we might want to un-register the vehicle’s license and cancel the insurance:

class Car {
//properties
init(model:String, color:String, vin:Int) {
// init code
}

deinit {
unRegisterLicense() // some function that un-registers the license
cancelInsurance() // some function that cancels the insurance policy
}
}
我对各种 php ide 的体验,
phpstorm 最强,优化最好,
netbeans 能干,但是碰到大项目会有点卡顿,插件少一点,
vscode 、emacs 、vim 、st 之流都是样子货,谁用谁自虐,谁想不开就去用。
2021-09-01 10:28:47 +08:00
回复了 onice 创建的主题 信息安全 大家有杀软综合症吗?
manjaro 表示不用
2021-08-30 16:40:35 +08:00
回复了 CatCode 创建的主题 数据库 “微型业务”用啥数据库软件啊?
https://stackoverflow.com/questions/40189226/how-to-make-mysql-use-less-memory

这个帖子和楼主同样的问题,
第二个回帖把 performance_schema = off 关掉 mysql 的性能优化策略后,mysql 内存占用只有 37M
2021-08-30 16:35:01 +08:00
回复了 CatCode 创建的主题 数据库 “微型业务”用啥数据库软件啊?
@shyangs

innodb_buffer_pool_size 默认值就是 128M,你把它改小点不行吗
2021-08-30 16:29:48 +08:00
回复了 CatCode 创建的主题 数据库 “微型业务”用啥数据库软件啊?
问就是推荐 mariadb/mysql

楼主说什么空载运行内存 cpu 占用多之类的,问题都能通过修改默认配置参数解决

https://mariadb.com/kb/en/mariadb-memory-allocation/
1 ... 48  49  50  51  52  53  54  55  56  57 ... 208  
关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   1956 人在线   最高记录 6543   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 41ms · UTC 16:29 · PVG 00:29 · LAX 09:29 · JFK 12:29
Developed with CodeLauncher
♥ Do have faith in what you're doing.