我正在使用以下sql脚本在SQL Server 2008中创建新的登录:
CREATE LOGIN [xyz] WITH PASSWORD='xyz',
DEFAULT_DATABASE=[master], DEFAULT_LANGUAGE=[us_english],
CHECK_EXPIRATION=OFF, CHECK_POLICY=OFF
Run Code Online (Sandbox Code Playgroud)
它成功创建新登录.但是当我尝试使用SQL Server Management Studio登录时,它无法说:
已成功与服务器建立连接,但在登录过程中发生错误.(提供程序:共享内存提供程序,错误:0 - 管道的另一端没有进程.)(Microsoft SQL Server,错误:233)
怎么了?我该如何解决这个问题?
我还有另一个问题要问你.我安装了mondodb的Amazon EC2实例.除了一件事之外它很好用 - 我无法从外面访问(连接)它(我的电脑).我认为安全组的问题.这是某种默认防火墙.有谁知道如何配置EC2实例来访问mongodb?提前致谢.
我是Oauth的新手.在过去用Python编写的twitter应用程序中,我使用python-oauth2库来初始化客户端,如下所示:
consumer = oauth.Consumer(key = CONSUMER_KEY, secret = CONSUMER_SECRET)
token = oauth.Token(key = ACCESS_KEY, secret = ACCESS_SECRET)
client = oauth.Client(consumer, token)
Run Code Online (Sandbox Code Playgroud)
这很简单,因为twitter提供了消费者和访问密钥和秘密.但现在我需要为tumblr做同样的事情.问题是tumblr只提供CONSUMER_KEY,CONSUMER_SECRET和这些网址:
Request-token URL http://www.tumblr.com/oauth/request_token
Authorize URL http://www.tumblr.com/oauth/authorize
Access-token URL http://www.tumblr.com/oauth/access_token
Run Code Online (Sandbox Code Playgroud)
使用此数据如何初始化客户端以访问tumblr API?
UPD
jterrace建议我之前尝试使用的代码.它的问题是oauth_callback.如果我没有指定任何,api返回错误"没有oauth_callback指定",但如果我确实指定了一些网址,如"http://example.com/oauthcb/",请点击链接http://www.tumblr.com/oauth/authorize?oauth_token = 9ygTF ...,然后按下允许按钮,tumblr不会显示任何PIN码页面,它会立即重定向到该回调网址,因为它是桌面应用程序,所以没用.为什么不显示PIN码?
UPD 2
Tumblr API不支持PIN码授权.请改用xAuth - https://groups.google.com/group/tumblr-api/browse_thread/thread/857285e6a2b4268/15060607dc306c1d?lnk=gst&q=pin#15060607dc306c1d
有以下简单的代码:
from multiprocessing import Process, freeze_support
def foo():
print 'hello'
if __name__ == '__main__':
freeze_support()
p = Process(target=foo)
p.start()
Run Code Online (Sandbox Code Playgroud)
它在使用Python 3.3的Linux或Windows上运行良好,但在使用Python 2.7的Windows上运行失败.
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "c:\Python27\lib\multiprocessing\forking.py", line 346, in main
prepare(preparation_data)
File "c:\Python27\lib\multiprocessing\forking.py", line 454, in prepare
assert main_name not in sys.modules, main_name
AssertionError: thread
Run Code Online (Sandbox Code Playgroud)
一般来说,我尝试的所有多处理示例都失败了.为什么?
python windows program-entry-point multiprocessing python-2.7
我应该怎么做才能通过其调用名称在Windows中调用Ghostscript?我将Ghostscript bin文件夹添加到Windows PATH和Path变量,但它不起作用,'gswin32c.exe'和'gswin32c'都没有.注销然后重新登录也没有用.我该如何解决这个问题?也许我使用了错误的调用名称?
如何在Windows窗体应用程序中添加+按钮TabControl.这是WPF的答案.但我想在WinForms应用程序中使用它?
如何使WinForms TabPage标题宽度适合它的标题?这是问题所在.

似乎我坚持一些基础知识.有人可以解释我为什么下一个代码:
#include <stdlib.h>
void Test1(char *t)
{
t = (char *)malloc(11);
strcpy(t, "1234567890");
}
void Test2(char **t)
{
*t = (char *)malloc(11);
strcpy(*t, "1234567890");
}
void Test3(char *t)
{
strcpy(t, "1234567890");
}
char * Test4(char *t)
{
t = (char *)malloc(11);
strcpy(t, "1234567890");
return t;
}
int main()
{
char *t1 = NULL;
Test1(t1);
printf("\nTest1: %s\n", t1);
char *t2 = NULL;
Test2(&t2);
printf("\nTest2: %s\n", t2);
char *t3 = (char *)malloc(11);
Test3(t3);
printf("\nTest3: %s\n", t3);
char *t4 = NULL;
t4 = … 带有 curl 的简单 GET 请求返回空正文(内容长度:0):
curl -v https://www.flyorientthai.com/booking/en/index.php
Run Code Online (Sandbox Code Playgroud)
另一方面, wget 可以很好地处理该网址:
wget https://www.flyorientthai.com/booking/en/index.php
Run Code Online (Sandbox Code Playgroud)
卷曲有什么问题?
python ×3
c# ×2
tabcontrol ×2
windows ×2
winforms ×2
access-token ×1
amazon-ec2 ×1
button ×1
c ×1
command-line ×1
curl ×1
date ×1
firewall ×1
ghostscript ×1
libcurl ×1
linux ×1
mongodb ×1
oauth ×1
path ×1
python-2.7 ×1
regex ×1
security ×1
sql ×1
sql-server ×1
ssl ×1
string ×1
tabpage ×1
tabs ×1
wget ×1
width ×1