问题标签 [stackexchange]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
3 回答
266 浏览

django - 用于 Stack Exchange API 身份验证的 Django 库?

我正在编写一个大量使用 StackExchange API 的网络应用程序。我目前正在使用 OpenID 身份验证,但鉴于唯一将使用该站点的人将是 SE 成员,我一直想知道是否有一个 Django(或 Python,一般而言)库可以为我处理登录过程。

django_openid_auth我正在特别考虑像项目一样融入流程的东西。

0 投票
1 回答
136 浏览

stackexchange - 其他 stackexchange 页面的 RSS 提要

我用

接收有关 stackoverflow 更新的信息。

我试着做同样的事情

通过以明显的方式修改 url(替换 stackoverflow),但它似乎不起作用。知道是否,如果是,我如何接收这些页面的 rss 更新?

0 投票
3 回答
8652 浏览

javascript - 实时更新如何工作?

现在,在大多数使用量很大的流行网站中,实时更新很常见。

我想知道这些“实时更新”是如何工作的?我只是在寻找一般的鸟瞰视角。我怀疑 JS 不能每 X 秒调用一次服务器进行更新,然后将其附加到<ul>. 是从服务器发送的通知去拉更多的内容吗?

如果有一个简单的如何用演示解释这一点的文章会很棒吗?

0 投票
1 回答
686 浏览

java - api.stackexchange 上的 API Apache 的 Java Http 请求

我正在尝试使用 api.stackexchange 上的 Apache Api(httpcomponents)在 Java 中执行 http 请求。但是这个请求返回文本而不是 html。

这是我的代码:

第 1 行第 19 列的返回 json 值似乎有错误。

线程“main”com.google.gson.JsonSyntaxException 中的异常:java.lang.IllegalStateException:应为 BEGIN_OBJECT,但在第 1 行第 19 列为 STRING

0 投票
1 回答
321 浏览

seo - 堆栈交换 SEO 技术

Stack Exchange 对问题使用以下 URL 格式:

虽然问题加载时没有问题标题,即。http://stackoverflow.com/questions/1234567,那么为什么 Stack Exchange 使用 URL 的question-headinganduser-name部分呢?

WordPress 也使用类似的 URL 修正。

这是SEO技巧还是其他什么?

0 投票
2 回答
302 浏览

grails - Wiki based website - Choice of technology

I am willing to build a wiki-based website that would have some other features, namely comments, social sharing, video insertion, article rating and gamification. In a nutshell, something very close to the StackExchange's websites, but the pages would consist of a single piece article instead of a thread of questions implementing the footnote feature.

I have not coded a single line yet.

I am rather experienced with Grails, so I know Groovy and Java. I also know JQuery and a bit of PHP, but I can learn basically everything required. I will be the only one programming on the project.

My questions are:

  • Which technology should I use according to YOU ? Should I use Grails as this is what I know best, and try to integrate a wiki technology within my app (if yes, which one) ?

  • Should I start from an already existing wiki technology (WikiMedia, XWiki, TWiki, Moinmoin, ...) and modify it to integrate the features I need (gamification, comments, video insertion, article rating and social sharing) ? Once again, if you think that is the best solution, please quote a technology, and if possible, tell me why is this THE one.

Thank you very much for your help. I find it rather hard to choose, and ever harder to know which path is the right one to go. Any suggestion is most welcome.

0 投票
1 回答
125 浏览

mysql - 如何通过 data.stackexchange.com 获取每个标签的问题和答案?

如果这是不正确的位置,我深表歉意 - 如果是,请移动它!在过去的几个小时里,我一直在尝试提出一个查询,该查询将返回以下信息:

最近三个月(2012 年 4 月、2012 年 5 月、2012 年 6 月)中每个“前 5”标签的问题数和答案数。

根据我发现的其他查询,我已经做到了这一点:

问题是 JOIN 消除了没有关联 PostTag 的记录。我对 SQL 不是很熟练,所以这给我带来了一些问题。相关信息:

  • 问题是 PostTypeId 设置为 1 的帖子
  • 答案是 PostTypeId 设置为 2 的帖子

如果有人可以提供帮助,我将非常感激。

谢谢。

0 投票
1 回答
186 浏览

javascript - 堆栈交换站点列表页面中的盒子重排算法

我对这个 stackexchange 页面中的一个有趣且有创意的功能感到好奇,它以网格样式列出了所有 stackexchange 站点。

当我单击一个站点框时,它会变大,并且其周围的框将重新排列以适应整个画面。

重排算法如何工作?有任何想法吗?

0 投票
1 回答
279 浏览

sql - SQL 查询 - 无效的列名和参数 - data.SE

不是程序员,而是使用 data.stackexchange.com。我正在查询公共 SE 数据资源管理器,并且我指定的列名无效。另外,如何指定计数(帖子)和计数(投票)?是否有人查询 data.se 并知道 db 模式能够帮助我更正此代码?

0 投票
1 回答
235 浏览

c# - Stack Exchange OpenID 支持哪些额外的值?

我正在尝试获取username / display name,但我不知道支持的值是什么。我得到了emailand realname,但我不知道返回的是什么username / display name

在此处输入图像描述

是否有相关文档或其他内容?

我当前的代码: