V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX  ›  pathletboy  ›  全部回复第 1 页 / 共 13 页
回复总数  242
1  2  3  4  5  6  7  8  9  10 ... 13  
9 小时 35 分钟前
回复了 donglongfei2008 创建的主题 新手求助 我的金币去哪儿了?
3 天前
回复了 afxcn 创建的主题 Go 编程语言 使用 go 遇到的一个奇怪问题,求教
这么改试试
```go
package helper

import (
"math/rand"
"time"
)

const _charsetRand = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789@#$"

var _seededRand *rand.Rand

func init() {
_seededRand = rand.New(rand.NewSource(time.Now().UnixNano()))
}

// RandStringWithCharset rand string with charset
func RandStringWithCharset(length int, charset string) string {
b := make([]byte, length)
l := len(charset)
for i := range b {
b[i] = charset[_seededRand.Intn(l)]
}
return string(b)
}

// RandString rand string
func RandString(length int) string {
return RandStringWithCharset(length, _charsetRand)
}

// RandInt rand int between [min, max)
func RandInt(min int, max int) int {
if min <= 0 || max <= 0 {
return 0
}

if min >= max {
return max
}

return _seededRand.Intn(max-min) + min
}

// RandMax rand int between [0, max)
func RandMax(max int) int {
if max <= 1 {
return 0
}

return _seededRand.Intn(max)
}
```
73 天前
回复了 Sindo 创建的主题 Android 解决了小米手机谷歌地图没方向的问题
是不是没给 "获取设备动作与方向" 权限?默认禁的,禁了就没方向了。
@sodayo 这题我会,游戏加速里,把网络加速关了,那玩意开 VPN 的。
红绿灯人脸识别 NOT 蓝灯
350 天前
回复了 ytzong 创建的主题 云计算 AWS Lightsail 流量超出的账单问题
1T 内算双向流量,超出 1T 只算出
2023-04-25 08:39:46 +08:00
回复了 shiy05 创建的主题 程序员 github copilot X 的免费竞品
@shiy05 试用了下,右下角把 codeium disable globally , 只使用 chat 部分功能,挺不错,当然仅当 chatgpt 用也相当可以。
2023-04-25 07:32:04 +08:00
回复了 shiy05 创建的主题 程序员 github copilot X 的免费竞品
2 个同时用会冲突吗?
所有更新数据的地方打 LOG 嘛,很快就能找到。
2023-01-09 11:53:54 +08:00
回复了 rimutuyuan 创建的主题 GitHub Copilot 收到了 gihub 学生包中的 copilot 将要过期的邮件
@rimutuyuan 11 分钟前收到了
要不试试 proxychains4 ?
2022-09-20 12:08:52 +08:00
回复了 xqdoo00o 创建的主题 程序员 crates.io 快像 npm 那样太多重复轮子了
这就是 awesome 存在的意义
2022-06-23 07:13:26 +08:00
回复了 heyinglongsimon 创建的主题 Windows 不懂就问,修改内存信息
这种情况建议 patch 程序而不是系统
2022-06-22 09:38:07 +08:00
回复了 yuhangch 创建的主题 GitHub Copilot Github Copilot 正式上线了
略贵,5 刀还可以考虑考虑。
2022-06-10 15:59:01 +08:00
回复了 daokedao 创建的主题 Go 编程语言 Go 的 http 服务器,同时下载的连接不能超过两个吗?
@daokedao
http.DefaultTransport = &http.Transport{
DisableKeepAlives: true,
}
配置下可以,原因未知
2022-06-10 13:09:05 +08:00
回复了 daokedao 创建的主题 Go 编程语言 Go 的 http 服务器,同时下载的连接不能超过两个吗?
我猜是写入了同个文件 NUL ?
2022-06-07 15:15:31 +08:00
回复了 tctc4869 创建的主题 程序员 用 html、js、css 写客户端软件,除了 electron 还有哪些方案?
2022-06-02 13:20:01 +08:00
回复了 xxjwxc 创建的主题 Go 编程语言 golang 实现的一套 A 股量化系统
老哥,你把 MYSQL 密码给暴露了,看了下应该还是运营站点?
1  2  3  4  5  6  7  8  9  10 ... 13  
关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   3941 人在线   最高记录 6543   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 38ms · UTC 10:30 · PVG 18:30 · LAX 03:30 · JFK 06:30
Developed with CodeLauncher
♥ Do have faith in what you're doing.