Xna框架和matlab(Xna framework and matlab)
我正在开发一款可以从Matlab读取实时数据的游戏。 该游戏是为Windows操作系统开发的,而不是XBox或WIndows Phone。 有什么办法,我可以用XNA连接matlab。 我也可以使用通常的Visual Studio 2008/2010开发游戏而不是使用Visual Studio Express for Windows Phone吗?
I am developing a game which would be reading real time data from Matlab. The game is being developed for Windows OS and not XBox or WIndows Phone. Is there any way , I can interface matlab with XNA. ALso can I use the usual Visual Studio 2008/2010 for developing the game rather than using Visual Studio Express for Windows Phone?
原文:https://stackoverflow.com/questions/13794216
最满意答案
原始示例不能直接使用,因为主配置位于
/etc/nginx/nginx.conf
。/etc/nginx/nginx.conf
包含http
指令,其中包含sites-enabled/*
指令。 对/etc/nginx/nginx.conf
进行的唯一修改是:work_processes 4; worker_connections 1024;
另外,从中删除
text/html
,因为它已经默认被gzip压缩。你的应用中
nginx.conf
的最终结果应该是没有http
指令,只有upstream
和server
。The original example cannot be used directly, because the main configuration is at
/etc/nginx/nginx.conf
./etc/nginx/nginx.conf
hashttp
directives, which includes thesites-enabled/*
directives. The only changes to be made on/etc/nginx/nginx.conf
are:work_processes 4; worker_connections 1024;
Also, remove
text/html
from it because it's already gzipped by default.The end result of your
nginx.conf
in your app should have nohttp
directives, justupstream
andserver
.
相关问答
更多-
linux 系统重启nginx,nginx -s reload报错:[emerg] unknown directive "#" in /etc/nginx/nginx.conf:5[2024-01-17]
proxy_pass这个指令是ngx_http_proxy_module提供的,你编译的时候没编译进去。 nginx有官方仓库,如果你不需要社区维护的模块的话,建议选用官方仓库编译好的,打包进去了所有内建模块 -
如果您仍然无法写入您的nginx.conf,则可能未成功更改其所有权。 好。 不要那样做。 相反,通过使用'sudo'继续编辑命令,例如'sudo vim nginx.conf`,给自己(临时)root权限。 如果这不起作用,您可能必须以root身份登录并将自己添加到sudoers组。 对于缓存静态文件,您需要向位置块添加Cache-Control "public"标头和过期。 到期必须明确设置或不起作用。 例如: location /static/ { expires max; add_h ...
-
通过命令行运行nginx -t将发出测试,并将带有文件路径的输出附加到配置文件(带有错误或成功消息)。 Running nginx -t through your commandline will issue out a test and append the output with the filepath to the configuration file (with either an error or success message).
-
在独角兽的例子nginx.conf中不允许使用nginx指令(nginx directive is not allowed here in unicorn's example nginx.conf)[2024-05-13]
原始示例不能直接使用,因为主配置位于/etc/nginx/nginx.conf 。 /etc/nginx/nginx.conf包含http指令,其中包含sites-enabled/*指令。 对/etc/nginx/nginx.conf进行的唯一修改是: work_processes 4; worker_connections 1024; 另外,从中删除text/html ,因为它已经默认被gzip压缩。 你的应用中nginx.conf的最终结果应该是没有http指令,只有upstream和server 。 ... -
这不是Java相关的。 你正在尝试使用nginx配置检查选项,但是你错误地使用了它。 您应该简单地调用nginx -t (nginx命令)来测试您的配置,而不是尝试运行实际的配置文件。 :) This is not Java related. You are trying to use the nginx config-checking option, but you are using it wrong. You should simply call nginx -t (the nginx command ...
-
当您包含它时,它与粘贴匹配文件中的内容一样好。 所以如果我的主要的nginx.conf是 http { line 1 line 2; include sites-enabled/*.conf; } sites-enabled/default.conf如下所示 http { server { line 3; } } 有效配置成为 http { line 1; line 2; http { server { lin ...
-
nginx.conf出现问题(Problems with nginx.conf)[2023-12-09]
如果我记得,你需要确保服务器指令在http指令内。 例如: http { //various nginx settings here server { //server stuff here } } You need to make sure the server directive is inside of the http directive if I recall. eg: http { //various nginx settings her ... -
如何获取nginx.conf include指令来忽略.bak文件(How to get nginx.conf include directive to ignore .bak files)[2023-09-12]
如果可能的话,我建议将默认值更改为default.conf或其他扩展名,然后include可以正确区分config和bak。 http { include /etc/nginx/sites-enabled/*.conf; } I would recommend changing default to default.conf or another extension if possible , then include can properly differentiate from conf ... -
说: server name http://lakemagazine.northcentralus.cloudapp.azure.com/ 应该说: server_name http://lakemagazine.northcentralus.cloudapp.azure.com/ server是一个定义服务器块的指令,用于标识应该在其中编写server_name指令的server_name http://nginx.org/en/docs/http/server_names.html 要检查配置文件语 ...
-
服务器上的/etc/nginx/nginx.conf文件几乎肯定包含include sites-enabled/*; include语句简单地将引用文件的内容内联(递归),因此nginx尝试启动时的结果配置将是: # contents of /etc/nginx/nginx.conf ... http { ... # include sites-enabled/*; # contents of /etc/nginx/sites-enabled/nginx.conf http ...