https://wiki.openwrt.org/about/toolchain <!-- wikipage start --> <!-- TOC START --> Table of Contents OpenWrt build system – Features OpenWrt build sy ...
分类:
其他好文 时间:
2017-02-22 00:07:57
阅读次数:
291
@login_required
@ajax_required
defremove(request):
try:
feed_id=request.POST.get(‘feed‘)
feed=Feed.objects.get(pk=feed_id)
iffeed.user==request.user:
likes=feed.get_likes()
parent=feed.parent
forlikeinlikes:
like.delete()
feed.delete()
ifparent:
parent.calc..
分类:
其他好文 时间:
2017-02-17 22:19:48
阅读次数:
270
消息中间件一般两个功能,解耦和异步处理,分别举个例子吧解耦合:比如我们做一个微博产品中的好友系统,就很需要使用消息中间件当我们添加一个关注的时候, 涉及以下几个子系统推荐系统,需要根据你关注的人给你做数据分析搜索系统,需要根据你的数据建立索引feed系统,需要根据你关注的人,发送一条新鲜事统计系统 ...
分类:
其他好文 时间:
2017-02-14 21:45:54
阅读次数:
257
Match类 示例:查找出字符串中包含的url string text = "FirstUrl: http://www.sohu.com ,SecondUrl: http://www.baidu.com ";string pattern = @"\b(\S+)://(\S+)\b"; //匹配URL ...
Google大脑科学家贾杨清(Caffe缔造者)-微信讲座 机器学习Caffe 贾扬清 caffe Google大脑科学家贾杨清(Caffe缔造者)-微信讲座 机器学习Caffe 贾扬清 caffe Google大脑科学家贾杨清(Caffe缔造者)-微信讲座 机器学习Caffe 贾扬清 caffe ...
分类:
微信 时间:
2017-02-11 16:59:59
阅读次数:
567
Feed the dogs Time Limit: 6000MS Memory Limit: 65536K Total Submissions: 20634 Accepted: 6494 Description Wind loves pretty dogs very much, and she ha ...
分类:
其他好文 时间:
2017-02-07 14:10:34
阅读次数:
237
开启feed功能 步骤一:在模版文件的<head></head>元素中添加wp_head()函数,且wp_head()函数要放在</head>标签之前,而且紧邻</head>标签,如: 步骤二:在主题的functions.php中,添加一段代码,开启feed自动链接功能,代码如下: 步骤三:在模版文 ...
分类:
其他好文 时间:
2017-01-31 10:21:51
阅读次数:
310