V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX  ›  konakona  ›  全部回复第 155 页 / 共 188 页
回复总数  3744
1 ... 151  152  153  154  155  156  157  158  159  160 ... 188  
2014-08-22 18:30:33 +08:00
回复了 skywalkerfan 创建的主题 分享创造 100offer 注册送亚马逊充值卡活动第二弹
wow,太棒了!想买书!
@trimleo 关注。
2014-08-21 04:25:51 +08:00
回复了 gkiwi 创建的主题 程序员 大家用 mysql 做项目的时候,是否用外键呢?
不用。
2014-08-20 04:33:50 +08:00
回复了 Livid 创建的主题 4K Dell UP2414Q 4K IPS 显示器在 newegg 美国已经降价到 $799 了
24寸要4k?设计师专用!
@Yvette
@WildCat
@O21
把贱好的鸡蛋黄含在嘴里...棒...
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:
1 ... 151  152  153  154  155  156  157  158  159  160 ... 188  
关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   5669 人在线   最高记录 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 73ms · UTC 02:04 · PVG 10:04 · LAX 19:04 · JFK 22:04
Developed with CodeLauncher
♥ Do have faith in what you're doing.