jimmykuu / gopher Goto Github PK
View Code? Open in Web Editor NEWGolang-China(golangtc.com) Website
Home Page: https://www.golangtc.com
Golang-China(golangtc.com) Website
Home Page: https://www.golangtc.com
主要还是处理换行的问题吧, 论坛回复经常出现文本块, 不便阅读, 也不便书写了
Github 版本的 Markdown 对原来的 Markdown 做了改进, 很多细节更舒服一些.
包括代码块的语法也有改进 https://help.github.com/articles/github-flavored-markdown
JS 方面的模块实现主要是 Marked https://github.com/chjj/marked#usage
通过 {gfm: true, breaks: true}
可以开启 GFM 支持.
GFM 在其他若干个中文编程社区已经长期使用, 因此我认为适合 Go 社区支持 GFM.
使用git,运行go get labix.org/v2/mgo时,提示"go:missing Bazaar command"
建议使用 Makefile 管理编译和安装第三方库,这样比较规范。下面这个是我在使用的 Makefile, 可以参考一下
default:go_install
go_install:
export GOPATH=`pwd` && (go install app)
fmt:
export GOPATH=`pwd`; gofmt -w src/app
export GOPATH=`pwd`; gofmt -w src/common
export GOPATH=`pwd`; gofmt -w src/module
export GOPATH=`pwd`; gofmt -w src/web
clean:
rm -f bin/*
get:
export GOPATH=`pwd` && go get menteslibres.net/gosexy/yaml
export GOPATH=`pwd` && go get github.com/lifeibo/log4go
export GOPATH=`pwd` && go get github.com/go-sql-driver/mysql
注册用户验证码不显示
可以收藏主题,文章,第三方库等
https://groups.google.com/forum/#!topic/golang-nuts/0Q-r_EkCPgk
你可以看看这个链接,在parseTemplate里面你确定FuncMap是有用的?
如果你真的用了那个gravater的funcmap的话,估计会报错……
1、安装:go get github.com/jimmykuu/gopher/server
2、运行:go run d:\go\src\crypto\tls\generate_cert.go --host 127.0.0.1:8888
3、出错:GetFileAttributesEx d:\go\src\crypto\tls\generate_cent.go
之后:
1、我在cmd里边设置代理:(我用的是xp系统)
set http_proxy=127.0.0.1:8087(我用的是GoAgent)
2、重新运行安装流程,结果:错误依旧。
3、我查看了 d:\go\src 目录,里边并没有 crypto 目录 。这是怎么回事?
求解?谢谢!
如题。
config.json 里面的jimmykuu登陆提示用户不存在
想问下是否有研究, 可以在做些改变的,,
我不知道因为上了什么网站, 被推荐的广告很的都不适合在公司打开的,
具体说都是游戏广告, 画面有点过. 不截图了.
觉得出现在论坛非常不协调, 但也觉得关了不好, 请问是否有方案可以限定广告内容范围?
Gopher China 2015 上海 大会 门票在网站已经买不到了,不知站长是否可以帮忙买一张?非常感谢!
请添加删除用户的功能
http://golangtc.com/topic/new ,右侧边栏“请在创建主题时考虑” ,最好能覆盖掉
默认域名是77fkk5.com1.z0.glb.clouddn.com 无法访问我得改成我自己的,
我看到renderTemplate里面
直接就是
flash, _ := store.Get(r, "flash")
data["flash"] = flash
这样的flash怎么销毁?
好像可以用来管理flash
store.AddFlash()
store.Flashes()
应该增加记住用户密码功能。
而且应该开发一个第三方账号接入的。比如qq,人人,微博登陆。
开发成这样已经很厉害了。
通过配置文件初始化管理员,管理员登录系统后可以设置用户为管理员
通过类别来区分不同的内容,更好的利用MongoDB的特性和方便查询
想查个资料,发现golang.tc 上不了。有临时地址吗?
http.Handle("/", r)
fmt.Println("Server start on:", Config.Port)
log.Fatal(http.ListenAndServe(fmt.Sprintf(":%d", Config.Port), nil))
为什么不写成
//http.Handle("/", r)
fmt.Println("Server start on:", Config.Port)
log.Fatal(http.ListenAndServe(fmt.Sprintf(":%d", Config.Port),r))
验证码页面显示不出,请求http://api.geetest.com/get.php?gt=xxxxxx&challenge=xxxxx&product=embed 被返回404。但是用极验给的官方的服务端的demo能跑通,可以正常请求并返回数据。
localhost mh # curl http://golangtc.com/static/go/go1.3.1.src.tar.gz --head
HTTP/1.1 404 Not Found
Server: nginx/1.6.0
Date: Wed, 20 Aug 2014 02:43:57 GMT
Content-Type: text/html
Content-Length: 168
Connection: keep-alive
我在 urls.go 里面没有找到链接,请问是还没有放出来吗?
消息是这一条: http://golangtc.com/t/53ecd96c320b520f4b000008#53f55d40320b520f4b0000a0
是别人 at 我啊, 但是显示的是我自己 at 自己:
目前注册和登入功能只支援用户明跟密码
希望可以增加 Github 帐号注册登入功能
golang **的用户名忘记了,只记得邮箱地址,请教如何找回
clone代码后,感觉有些乱,不知道样式写在哪了。所以就来提个issue
加上下面这几行样式,textarea就比以前好多了
resize: none;
overflow: auto;
outline: none;
border: 1px solid #d7dbe0;
border-color: #6daaec;
这样第一次验证码错误后,需刷新页面才能继续登录
类似于play.golang.org的功能
如题 如果将新帖子和新回复添加进.atom就好了
build.sh中的:
export GOPATH="$CURDIR"
不应该是这样么?要不找不到其他的库吧
export GOPATH="$CURDIR:$OLDGOPATH"
转载其他网站看到的文章
运行时出错在views.go:162行
应该是数据库没有连上。
我数据库已经运行了。
用的是默认的接口。
感觉应该是有一个地方设置数据库的地址端口什么的,这个公位置是在哪里?
各种安全问题比较麻烦,鉴于Go官方的playground的闭源的(貌似是为了防止被弄出安全问题),而且部署的话,没有方法在后期修改,直接反代官方的要申请User-Agent,而且share不能用,反正要单独搞一个的话,并且嵌入到topic里面的,又要解决安全问题,最后想到了gopherjs,直接把代码丢到浏览器去运行,这样就不存在安全问题了.
注册验证邮箱,取消收藏,删除用户,消息提醒系统
目前没有解决页面中包含很多七牛的http的资源.
在浏览器console.log 里面会有这样的输出:
GET https://gopher.qiniudn.com/static/css/bootstrap.min.css?v=3.3.0 net::ERR_INSECURE_RESPONSE
好像是七牛的https的域名不一样需要修改.
一样一样说吧,
1,七牛云上传的失败
原因:作者填写的是七牛自己分配的url 这个得改,要么,头像组上传失败,
建议:写在readme里面,虽然不用写成配置文件
2.第三方包数据提交东西不做审核,如果弄垃圾广告就恶心了,
3.新建文章分类模板错误
<<<<<<< HEAD <<<<<<< HEAD
新建文章分类
名称
======= ======= >>>>>>> 评论at
新建文章分类
名称
<<<<<<< HEAD >>>>>>> account 改成指针handler ======= >>>>>>> 评论at
.....................................分割线..............
现在更改作者的代码,想做个简单的文章系统还是挺简单的,给作者点个赞最好加上用户权限,要么以后是个问题.....删号还得进数据库...
我喜欢把 所有的包放在 GOPATH/src 下面, 但是gopher自己是一个GOPATH,这样的话,我文件路径就对不上号了,用了里面的shell,全局变量不知道怎么没有变,后来我手动改了,但是还是报错说找不到etc/config.json. 这个文件,那个etc的路径是相对于哪里的呀?我etc下面是有config.json的。
怎么添加管理员账号?有没有默认的超级管理员?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.