我在自己的服务器上设置了PPTP服务器.我按照本教程https://www.digitalocean.com/community/articles/how-to-setup-your-own-vpn-with-pptp
但是,当我尝试使用我的手机或PC连接我的PPTP服务器时,它说PPTP服务器挂断,用户名或密码错误.但我检查了我的用户名和密码,他们没事.在我的PPTP服务器日志中,如下所示:
Dec 14 03:57:46 localhost pptpd[2071]: CTRL: Client 121.32.107.56 control connection started
Dec 14 03:57:46 localhost pptpd[2071]: CTRL: Starting call (launching pppd, opening GRE)
Dec 14 03:57:46 localhost pppd[2072]: Plugin /usr/lib/pptpd/pptpd-logwtmp.so loaded.
Dec 14 03:57:46 localhost pppd[2072]: pppd 2.4.5 started by root, uid 0
Dec 14 03:57:46 localhost pppd[2072]: Using interface ppp1
Dec 14 03:57:46 localhost pppd[2072]: Connect: ppp1 <--> /dev/pts/3
Dec 14 03:57:46 localhost pptpd[2071]: GRE: Bad checksum from pppd.
Dec 14 03:58:16 localhost pppd[2072]: LCP: timeout …Run Code Online (Sandbox Code Playgroud) 在我的CMakeLIsts.txt文件中,我写这个:
set(LIBHELLO_SRC hello.c)
set_target_properties(hello_static PROPERTIES OUTPUT_NAME "hello")
get_target_property(OUTPUT_VALUE hello_static OUTPUT_NAME)
message(STATUS "This is the hello_static OUTPUT_NAME:"${OUTPUT_VALUE})
Run Code Online (Sandbox Code Playgroud)
当我运行时cmake,它显示错误消息:
set_target_properties Can not find target to add properties to: hello_static
Run Code Online (Sandbox Code Playgroud) 我想写一个函数,这个函数可以检测焦点是否在某个元素上.如果焦点在元素上,我调用onfocus()函数,如果不在元素上,我什么也不做.我怎么能这样做?
这是我的演示.
#include <stdio.h>
int sqsum(int a, ...)
{
va_list list;
int b = 0,n = a;
va_start(list,a);
while(n > 0)
{
b = b+n*n;
n = va_arg(list,int);
}
va_end(list);
return b;
}
int main(int argc,char **argv)
{
printf("%d\n",sqsum(1,2,3,-1));
return 0;
}
Run Code Online (Sandbox Code Playgroud)
然后我编译这个demo,它发生这个错误,我不知道这个错误意味着什么.
1.<input id="kw1"></input>
2.<input></input>
Run Code Online (Sandbox Code Playgroud)
第一个,我可以document.getElementById用来获取对象,但在某些网站上,比如第二个,元素中没有id,但我也想获得对象.我怎样才能做到这一点 ?并且不要使用JQuery