V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX  ›  ManjusakaL  ›  全部回复第 6 页 / 共 30 页
回复总数  595
1 ... 2  3  4  5  6  7  8  9  10  11 ... 30  
2020-11-10 20:39:04 +08:00
回复了 GTD 创建的主题 Java 不懂就问,为什么 double 后面一定要加上一个 0?
Java 的一个语言特性而已

> If an integer operator other than a shift operator has at least one operand of type long, then the operation is carried out using 64-bit precision, and the result of the numerical operator is of type long. If the other operand is not long, it is first widened (§5.1.5) to type long by numeric promotion (§5.6).

> Otherwise, the operation is carried out using 32-bit precision, and the result of the numerical operator is of type int. If either operand is not an int, it is first widened to type int by numeric promotion.

所以显示声明 是 long/(float|double),换句话说等价于 double period = (end - start)/(double) 1000000;

参见 https://docs.oracle.com/javase/specs/jls/se7/html/jls-4.html#jls-4.2.2

这种问题,Google 搜一下因为英文关键词, "java division of integers" 前面几条都是有效答案。。
又重新实现了一套类 etcd 。。。
而且很多问题没法自恰。。
2020-11-10 20:18:50 +08:00
回复了 SystemLight 创建的主题 Python wsgi 有什么作用?
BTW WSGI 只是一个标准而已

其实现有很多种,生产常用的 uWSGI,Gunicron,Web Framework 自带的 如 Flask 的 Werkzurg,Python 官方库内置的 wsgiref 等
2020-11-10 20:17:11 +08:00
回复了 SystemLight 创建的主题 Python wsgi 有什么作用?
因为自带的不具备生产可用性。。。。
2020-10-28 20:27:30 +08:00
回复了 raymanr 创建的主题 问与答 有没有看得懂 Linux 源码的大佬评价下, Linux 源码是屎山吗
有屎山,有非常优雅的设计 23333
2020-10-15 20:24:00 +08:00
回复了 aneureka 创建的主题 职场话题 拿了几个校招 offer,求前辈们指点对比一下
微软
2020-10-13 10:39:08 +08:00
回复了 328115208 创建的主题 分享发现 不了解 NAS 的朋友进来看看,嘀嘀嘀发车了~ 附 DS1621+测评
车呢?
2020-10-13 10:35:38 +08:00
回复了 gejun123456 创建的主题 推广 最好的 Mybatis 代码提示, IDEA MybatisCodeHelperPro 插件送激活码
看起来还不错
2020-10-12 19:29:51 +08:00
回复了 liyhu 创建的主题 问与答 大家用谁家的 openjdk 呢?
openj9 和 ali-jdk 都有用
2020-10-10 22:00:09 +08:00
回复了 AmrtaShiva 创建的主题 问与答 Linux 系统从 Intel 平台迁移到 AMD 需要注意什么吗?
新 CPU 建议用 5.8 以上内核,等等 59 LTS 更好
2020-10-09 22:33:16 +08:00
回复了 Te11UA 创建的主题 Python python3 新特性这么多,你常用的是什么?
fstring, type hint
2020-10-09 20:04:46 +08:00
回复了 feng32 创建的主题 Kubernetes Kubernetes 下如何方便地获取不断重启的服务的日志
容器的话 stdout/stderr 输出的日志可以搜集到 ELK 或者其余后端存储
2020-10-09 15:01:34 +08:00
回复了 JJstyle 创建的主题 Kubernetes 小白求问: k8s 能生成相同 pod 的不同版本吗?
@sniperking1234 嗯,实际上 istio 坑也挺多的,,一般不建议轻易上(可能 lz 基础的服务都还没收口)
2020-10-09 14:52:33 +08:00
回复了 JJstyle 创建的主题 Kubernetes 小白求问: k8s 能生成相同 pod 的不同版本吗?
@sniperking1234 只是举个例啊,你要是整数比例就用两个 deployment 控制不同的 replica

你要是细粒度的控制流量,用个 APISIX 这种 Ingress 都比直接 istio 轻量啊

也没多大还起个 istio,可能最后 envoy 耗的资源都比业务多。Mesh 不是这么玩的
2020-10-09 14:05:02 +08:00
回复了 JJstyle 创建的主题 Kubernetes 小白求问: k8s 能生成相同 pod 的不同版本吗?
@sniperking1234 这个事情关 istio 啥关系。。一个简单地灰度而已。。。

起两个不同的 Pod,然后 Service 走同一个 label 关联就行
2020-10-09 14:03:35 +08:00
回复了 qq1197336728 创建的主题 问与答 24 岁入行程序员晚嘛
建议先提升学历
有啊,Kuberlet 可以配置具体的 Container 的 GC Policy

参见 ![Configuring kubelet Garbage Collection]( https://kubernetes.io/docs/concepts/cluster-administration/kubelet-garbage-collection/#container-collection)
2020-10-07 19:33:48 +08:00
回复了 hj960511 创建的主题 问与答 技术社区都有哪些,分享一下呗。
reddit
2020-10-05 13:13:55 +08:00
回复了 howdareyou 创建的主题 职场话题 用 go 写了两年业务,想往存储/中间件方向发展
直接内转不就好了。。
1 ... 2  3  4  5  6  7  8  9  10  11 ... 30  
关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   3425 人在线   最高记录 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 33ms · UTC 04:36 · PVG 12:36 · LAX 21:36 · JFK 00:36
Developed with CodeLauncher
♥ Do have faith in what you're doing.