server

跨平台图表控件TeeChart使用教程:导入XML数据

浪子不回头ぞ 提交于 2019-12-07 20:21:44
TeeChart 的最新版中包含了一个自动加载XML数据的新组件。这个组件的名字叫做TTeeXMLSource,用户可以在TeeXML.pas unit中找到这个组件。 加载XML图表所需的最小属性是"Chart"和"FileName"。图表属性表明了需要添加XML数据的图表和位置。FileName属性也可以是一个网址(URL)。Load方法用于将XML数据加载到图表系列。 让我们创建一个新的应用程序,并拖放一个Chart1组件和一个TeeXMLSource1组件。 1 2 3 4 5 6 7 8 9 10 uses Series; procedure TForm1.FormCreate(Sender: TObject); begin RegisterTeeStandardSeries; // make sure "Line" style is loaded. TeeXMLSource1.Chart:=Chart1; TeeXMLSource1.FileName:='TeeChartSampleMan ySeries.xml'; TeeXMLSource1.Load; end; 注意:在上面的示例中,可以通过添加TeeChart工具栏或添加TeeGally单位,省略调用RegisterTeeStandardSeries。它只是注册基本图表样式(线、条、饼装等)

Can't get access to http://localhost:80 on running apache server

风格不统一 提交于 2019-12-07 17:12:06
问题 On running apache server in ubuntu 14.04 I get "This webpage is not available" in browser or "curl: (7) Failed to connect to localhost port 80: Connection refused" using $ curl localhost . Besides I can connect to 127. * . * . * (e.g. 127.0.0.2) - doesn't work only 127.0.0.1 /etc/hosts 127.0.0.1 localhost 127.0.1.1 al-ubuntu # The following lines are desirable for IPv6 capable hosts ::1 ip6-localhost ip6-loopback fe00::0 ip6-localnet ff00::0 ip6-mcastprefix ff02::1 ip6-allnodes ff02::2 ip6

SSE Server Sent Events - Client keep sending requests (like pooling)

大兔子大兔子 提交于 2019-12-07 16:26:56
问题 How come every site explains that in SSE a single connection stays opened between client and server "With SSE, a client sends a standard HTTP request asking for an event stream, and the server responds initially with a standard HTTP response and holds the connection open" And then, when server decides it can send data to the client while what I am trying to implement SSE I see on fiddler requests being sent every couple of seconds For me it feels like long polling and not a one single

让人崩溃的豌豆荚(太2了)---ADB server didn't ACK的解决方法

假如想象 提交于 2019-12-07 16:07:04
这两天买了一部手机,所以安装了豌豆荚,昨天运行程序还没问题,但是今天运行的时候老是报 ADB server didn't ACK ......启动失败,提示让我重启eclipse还有adb 我的操作时将这两者 都重启 了,可是-------------- 不管用 然后继续搜呗,找到一篇内容如下 5037端口被占用的话,也会出现如下提示…… 于是乎,真像是找到了救命稻草一般,先在命令行中输入如下指令,查看5037这个端口现在是被谁占用了: netstat -a -o 5037 然后得到如下的一个结果,还真被占用了哦: 那这个4792在我机器上,到底是个什么进程呢,好的,接着输入以下命令,把真凶找出来: tasklist /fi "pid eq 4792" 然后,额。。TNN 。。。居然真的是-----> 豌豆荚 : 所以在任务管理器中将这个进程关闭 然后重启了Eclipse,接着,点击Run,程序就像以前一样,自动打开模拟器并加载了。此问题虽然不是很严重,但是从网络上每位遇到此问题的同学来看,大部分人还没遇到过我这个问题,所以记录在这里,希望能够帮助到大家。 来源: oschina 链接: https://my.oschina.net/u/114929/blog/75772

Sending data from javascript/html page to Express NodeJS server

走远了吗. 提交于 2019-12-07 15:50:26
I'm working on a cordova application, using html5 and javascript. The architecture is the following one : the phone application requests something to the server, which asks a firebird database. The database answers to the server which gives the asked data to the phone application (in html5 / javascript). I've been able to send the data from the server to the phone with JSON, and I thought it would be the same to send some data from the phone app to the server. However, I have no idea how to send data to such a server from the phone. I've tried to simplify the problem as much as possible. So

Java: how to stop a server (close a Socket) without an exception?

十年热恋 提交于 2019-12-07 13:37:22
问题 I've made a server which allows to join many clients. However I have a problem. I added START/STOP button which should start/stop server. But the code does not work like I want: connection isn't closed and code goes to the IOException "THIS IS PROBLEM" (in ServerLogic part). Additionally clients still can contact with server. SERVER LOGIC public class ServerLogic { private static ServerSocket m_sSocket; private static Set<ServerSubscriber> m_subscriberList = new HashSet<ServerSubscriber>();

Ubuntu Server如何配置SFTP(建立用户监狱)

久未见 提交于 2019-12-07 10:36:10
SSH File Transfer Protocol是一个比普通FTP更为安全的文件传输协议。(参考资料:http://en.wikipedia.org/wiki/SSH_File_Transfer_Protocol)它工作在Secure Shell(SSH)上,确保文件被加密传输。 因为工作需要,我研究了一下如何在Ubuntu Server上配置SFTP,记录如下。 需求:在服务器上开通SFTP文件服务,允许某些用户上传及下载文件。但是这些用户只能使用SFTP传输文件,不能使用SSH终端访问服务器,并且SFTP不能访问系统文件(即所谓的“Jail(监狱)”)。系统管理员则既能使用SFTP传输文件,也能使用SSH远程管理服务器。 为了便于讨论,我假设我将允许sftp-users用户组内的用户使用SFTP,但不允许使用SSH Shell,且该组用户将被"监狱"(修改系统根目录)。我将在sftp-users组内创建一个用户“alice”。而我将允许ssh-users使用SFTP以及SSH。系统管理员的账户名为admin。 第01步,如果还没有安装OpenSSH服务器,先安装它。 sudo apt-get install openssh-server 第02步,为SFTP访问创建用户组,便于管理权限。 sudo addgroup sftp-users 第03步,创建SFTP用户

Windows Server 2003服务器上IIS6.0拥有转发PHP的能力/IIS6.0与PHP共用80端口

£可爱£侵袭症+ 提交于 2019-12-07 09:54:51
第一步: 分析下系统环境 Windows server 2003 32bit; IIS6.0; ms sql server 2005 mysql 第二步:所用到的工具: fcgisetup_1.5_rtw_x86.msi php-5.3.6-nts-Win32-VC9-x86.msi 相应下载地址: Fcgisetup: http://www.iis.net/download/fastcgi 、 PHP: http://windows.php.net/download/ 相关说明: PHP现在推出5.3.2版本了,不过下载的时候有几个不同版本选择。那就是VC6 X86和VC9 X86。 首先我来解答: VC6是什么? VC6就是legacy Visual Studio 6 compiler,就是使用这个编译器编译的。 VC9是什么? VC9就是the Visual Studio 2008 compiler,就是用微软的VS编辑器编译的。 那我们如何选择下载哪个版本的PHP呢? 如果你是在windows下使用Apache+PHP的,请选择VC6版本; 如果你是在 windows下使用IIS+PHP的,请选择VC9版本; 那Non Thread Safe是什么? Non Thread Safe就是非线程安全; Thread Safe 是什么? Non Thread Safe 是线程安全

java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String android.net.Uri.getScheme()'

断了今生、忘了曾经 提交于 2019-12-07 09:34:12
问题 I am Trying To upload image to server from gallery and camera.When i Choose image from gallery to upload to server its Work Perfactly.But when i Select camera captured Image for upload to server Its Crash And Showing the error. java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String android.net.Uri.getScheme()' on a null object reference At OnActivityResult. @Override protected void onActivityResult(int requestCode, int resultCode, Intent data) { super

Repository vs. DAO (again)

此生再无相见时 提交于 2019-12-07 08:53:57
问题 In general this back-story does not matter but just to explain the code below: The server handles users and user groups. User groups are able to "discover" places - at this point in time these places are coming exclusively from the Google Places API. Current Implementation Currently, I have a lot of JpaRepository objects, which I call Repository , in my Service Layer. I am stressing " Repository " because in my proposed solution below, they'd be downgraded to DAOs. However, what I do not like