kele1997
kele1997
numpy的100练习,适合学习numpy入门和复习 https://github.com/rougier/numpy-100 python matplotlib的入门文章 http://www.labri.fr/perso/nrougier/teaching/matplotlib/#regular-plots
因为 httpd 监听的端口号是 4000,simple_client.c发送的端口号是9734,需要对应下端口号。但是呢,改完端口号,也没啥反应,会阻塞。我正在看代码
1. simplecilent.c 不是一个 http 客户端,只是一个发送 'A' 的套接字程序 2. 测试 httpd ,可以使用 `curl -v localhost:4000/index.html` 3. 如果运行 curl 异常(阻塞,无结果,结果不对),那么你可能运行的是无线程版的,需要把 accpet_request 函数中的第一行修改一下,从 `int client = (intptr_t)arg;` 修改为 `int client = *(int*)arg;`
@TronYY https://gist.github.com/kele1997/8d2db488b9fc1e5830fc7e1f6e29dfbd#file-httpd-c-L55 直接用这个文件,或者自己注意修改 `void accept_request(int arg)` 第55行左右的 arg 参数,和 509行传参
https://github.com/EZLippi/Tinyhttpd/issues/38#issuecomment-620491181
@tonydeng 建议您检查一下 https://github.com/tonydeng/sdn-handbook/blob/b4827d7b7147bb88038a9df1a5dd8b3f2d4a7c49/.travis.yml#L18 检查一下 github secret 的权限是否过大,可能导致不安全。一般来说 travis 都推荐将密钥之类的信息通过环境变量注入,而不是直接写入到 .travis.yml 文件中
```diff // main_chan.go func main() { var wg sync.WaitGroup ch := make(chan struct{}, 3) for i := 0; i < 10; i++ { - ch
想到 slice 只要不扩容,就不会重新分配空间,其实可以提前分配好空间,避免在调用的函数内部扩容。但是由于整个 `slice` 是作为传值传入函数内部的,所以 `slice` 结构体内部的 `len` 在函数结束后,依然是原来的长度。 我尝试了手动修改 `slice` 结构体内部的 `len` ,算是第三种 foo 函数影响原切片的方法(滑稽 🤣 ```go func foo(a []int) { a = append(a, 1, 2, 3, 4, 5,...
https://github.com/goharbor/harbor/issues/13170#issuecomment-815666081 If anyone else meet this issue, you can check if `chartmuseum` and `notary` installed correctly. https://github.com/goharbor/harbor/issues/14446
@will-beta I read the harbor doc, and find that the command `helm repo add ` is wrong,we should use the commands as below : ```bash helm registry login xx.xx.xx.xx helm...