V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX  ›  konakona  ›  全部回复第 158 页 / 共 190 页
回复总数  3798
1 ... 154  155  156  157  158  159  160  161  162  163 ... 190  
2014-08-19 03:37:52 +08:00
回复了 suifengdaren 创建的主题 DevOps 说说大家在服务器上干过最蠢的事情!
還沒。
2014-08-19 03:37:37 +08:00
回复了 unlion 创建的主题 问与答 APP 开发到 80%,客户欲违约,求助。
我都是6/4/1的……你這個2431太奇怪了!這就很說明問題!
抽风是ISP的缘故,跟服务器无关。
我坚持选择日本的seed VPN。
2014-08-18 19:31:23 +08:00
回复了 konakona 创建的主题 问与答 FacebookAPI 同步登录返回 500
@zhzhwcn 一口老血飞了出来……就连官方的javascript SDK都用不了。

以下代码,可粘贴至文本编辑框,保存为人意名称.html 点击页面中的Login,欧克,500了……TAT


<!DOCTYPE html>
<html>
<head>
<title>Facebook Login JavaScript Example</title>
<meta charset="UTF-8">
<script src="//ajax.googleapis.com/ajax/libs/jquery/2.0.0/jquery.min.js"></script>
</head>
<body>
<script>
// This is called with the results from from FB.getLoginStatus().
function statusChangeCallback(response) {
console.log('statusChangeCallback');
console.log(response);
// The response object is returned with a status field that lets the
// app know the current login status of the person.
// Full docs on the response object can be found in the documentation
// for FB.getLoginStatus().
if (response.status === 'connected') {
// Logged into your app and Facebook.
testAPI();
} else if (response.status === 'not_authorized') {
// The person is logged into Facebook, but not your app.
document.getElementById('status').innerHTML = 'Please log ' +
'into this app.';
} else {
// The person is not logged into Facebook, so we're not sure if
// they are logged into this app or not.
document.getElementById('status').innerHTML = 'Please log ' +
'into Facebook.';
}
}

// This function is called when someone finishes with the Login
// Button. See the onlogin handler attached to it in the sample
// code below.
function checkLoginState() {
FB.getLoginStatus(function(response) {
statusChangeCallback(response);
});
}

window.fbAsyncInit = function() {
FB.init({
appId : '1460769690846577',
cookie : true, // enable cookies to allow the server to access
// the session
xfbml : true, // parse social plugins on this page
version : 'v2.1' // use version 2.1
});


// Now that we've initialized the JavaScript SDK, we call
// FB.getLoginStatus(). This function gets the state of the
// person visiting this page and can return one of three states to
// the callback you provide. They can be:
//
// 1. Logged into your app ('connected')
// 2. Logged into Facebook, but not your app ('not_authorized')
// 3. Not logged into Facebook and can't tell if they are logged into
// your app or not.
//
// These three cases are handled in the callback function.

FB.getLoginStatus(function(response) {
statusChangeCallback(response);
});

};

// Load the SDK asynchronously
(function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) return;
js = d.createElement(s); js.id = id;
js.src = "//connect.facebook.net/en_US/sdk.js";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));

// Here we run a very simple test of the Graph API after login is
// successful. See statusChangeCallback() for when this call is made.
function testAPI() {
console.log('Welcome! Fetching your information.... ');
FB.api('/me', function(response) {
console.log('Successful login for: ' + response.name);
document.getElementById('status').innerHTML =
'Thanks for logging in, ' + response.name + '!';
});
}
</script>

<!--
Below we include the Login Button social plugin. This button uses
the JavaScript SDK to present a graphical Login button that triggers
the FB.login() function when clicked.
-->

<fb:login-button scope="public_profile,email" onlogin="checkLoginState();">
</fb:login-button>

<div id="status">
</div>

</body>
</html>
话说,如果直接说事业演讲,这个好像也没什么呀,
2014-08-16 21:01:30 +08:00
回复了 peartail 创建的主题 问与答 为什么大公司的决策大多看起来很蠢?
其实我想说,百度搜出来的跟大公司有关的keyword都是新闻,我想找东西都找不到,这也很蠢。
2014-08-16 17:37:43 +08:00
回复了 konakona 创建的主题 问与答 FacebookAPI 同步登录返回 500
@zhzhwcn 不造为什么,还是一样。
http://i.imgur.com/sjjqysd.png
2014-08-16 17:32:36 +08:00
回复了 konakona 创建的主题 问与答 FacebookAPI 同步登录返回 500
@zhzhwcn 你好,谢谢帮忙。我按照你的方式进行了,但还是500ing...
我贴下现在的配置图。

http://imgur.com/XSNz1zg

http://imgur.com/hMHe4Gu

http://imgur.com/PzHl97Z

http://imgur.com/lwXK26z
2014-08-16 16:18:02 +08:00
回复了 konakona 创建的主题 问与答 FacebookAPI 同步登录返回 500
@canesten 网上有一点有关多年前的FB API DOC 的总结资料,不过已经落后了……现在只能看最新的了,眼睛都花了啊~~~~~~~~~~~~~~~~~~~~~~~
2014-08-16 02:04:05 +08:00
回复了 newstar 创建的主题 问与答 大家都用什么工具写离线博客?
osx下我用Pages简单的写好文字(pages的排版,wp也不支持..),只要不是太复杂的,复制粘贴过去还是ok的。
2014-08-16 01:21:11 +08:00
回复了 sadaharu09 创建的主题 问与答 问一下大家也没有 Dreamweaver 的替代品?
@zts1993 支持1楼!从DW8就开始接触,我并不常用(即一年中使用次数低于10)。直到DW CC, 我都看不上……哼哼!我用的是PHPSTORM!
2014-08-16 01:20:17 +08:00
回复了 ivanchou 创建的主题 问与答 换笔记本,求推荐
宏基R7,很帅,至于性能,54.
2014-08-12 03:30:33 +08:00
回复了 konakona 创建的主题 程序员 已 clone 的 git,如何为其设置有效用户
=.= 公钥已添加,完全没有问题啊...
就是说我密码不对。
2014-08-12 03:30:06 +08:00
回复了 konakona 创建的主题 程序员 已 clone 的 git,如何为其设置有效用户
我直接把.git 删了,在原项目目录上执行了如下代码:


[root@li671-193 CRAZYPHPER.COM]# git config --global user.name "konakona"
[root@li671-193 CRAZYPHPER.COM]# git config --global user.email "[email protected]"
[root@li671-193 CRAZYPHPER.COM]# git clone [email protected]:konakona/CRAZYPHPER.COM.git
Initialized empty Git repository in /opt/lampp/htdocs/CRAZYPHPER.COM/CRAZYPHPER.COM/.git/
[email protected]'s password:
Permission denied, please try again.
[email protected]'s password:
Permission denied, please try again.
[email protected]'s password:
2014-08-12 03:08:02 +08:00
回复了 konakona 创建的主题 程序员 已 clone 的 git,如何为其设置有效用户
[root@li671-193 CRAZYPHPER.COM]# ssh -vT [email protected]
OpenSSH_5.3p1, OpenSSL 1.0.1e-fips 11 Feb 2013
debug1: Reading configuration data /root/.ssh/config
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Applying options for *
debug1: Connecting to oschina.net [61.145.122.155] port 22.
debug1: Connection established.
debug1: permanently_set_uid: 0/0
debug1: identity file /root/.ssh/identity type -1
debug1: identity file /root/.ssh/identity-cert type -1
debug1: identity file /root/.ssh/id_rsa type 1
debug1: identity file /root/.ssh/id_rsa-cert type -1
debug1: identity file /root/.ssh/id_dsa type -1
debug1: identity file /root/.ssh/id_dsa-cert type -1
debug1: Remote protocol version 2.0, remote software version OpenSSH_5.8
debug1: match: OpenSSH_5.8 pat OpenSSH*
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_5.3
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: server->client aes128-ctr hmac-md5 none
debug1: kex: client->server aes128-ctr hmac-md5 none
debug1: SSH2_MSG_KEX_DH_GEX_REQUEST(1024<1024<8192) sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_GROUP
debug1: SSH2_MSG_KEX_DH_GEX_INIT sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_REPLY
The authenticity of host 'oschina.net (61.145.122.155)' can't be established.
RSA key fingerprint is eb:2a:c2:28:63:43:71:d2:1c:da:6b:ff:c9:85:ff:54.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'oschina.net,61.145.122.155' (RSA) to the list of known hosts.
debug1: ssh_rsa_verify: signature correct
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug1: SSH2_MSG_NEWKEYS received
debug1: SSH2_MSG_SERVICE_REQUEST sent
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug1: Authentications that can continue: publickey,password,keyboard-interactive
debug1: Next authentication method: publickey
debug1: Trying private key: /root/.ssh/identity
debug1: Offering public key: /root/.ssh/id_rsa
debug1: Authentications that can continue: publickey,password,keyboard-interactive
debug1: Trying private key: /root/.ssh/id_dsa
debug1: Next authentication method: keyboard-interactive
debug1: Authentications that can continue: publickey,password,keyboard-interactive
debug1: Next authentication method: password
2014-08-12 03:03:16 +08:00
回复了 konakona 创建的主题 程序员 已 clone 的 git,如何为其设置有效用户
@ivenvd
[root@li671-193 CRAZYPHPER.COM]# ssh -T [email protected]
[email protected]'s password:
Permission denied, please try again.

以前都是这样设置key的,今天就不得了。唉.........我配了几十个git了,今天第一次遇到这样的事情。
2014-08-12 02:50:10 +08:00
回复了 konakona 创建的主题 程序员 已 clone 的 git,如何为其设置有效用户
@ivenvd url是对的。我的是私有库。
2014-08-12 01:06:32 +08:00
回复了 fkbd 创建的主题 站长 个人博客要不要去备案呢?放在国外访问速度老不靠谱。
我用的日本linode http://www.crazyphper.com 看看?其实主要是图多。
blog.crazyphper.com wp影响了点性能。
2014-08-12 01:04:41 +08:00
回复了 jeeve 创建的主题 macOS QQ for Mac 3.2 Beta3 增加漫游聊天记录开关
@wong2 嗯,这个真心蛋疼!!!
2014-08-10 23:52:02 +08:00
回复了 jeeve 创建的主题 macOS QQ for Mac 3.2 Beta3 增加漫游聊天记录开关
@tuimaochang teamViewer?
1 ... 154  155  156  157  158  159  160  161  162  163 ... 190  
关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   1756 人在线   最高记录 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 43ms · UTC 01:18 · PVG 09:18 · LAX 18:18 · JFK 21:18
Developed with CodeLauncher
♥ Do have faith in what you're doing.