localhost

Symfony\\Component\\HttpKernel\\Exception\\NotFoundHttpException Laravel

匿名 (未验证) 提交于 2019-12-03 01:14:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I am trying to use RESTful controller. Here is my Route.php : Route::resource('test', 'TestController'); Route::get('/', function() { return View::make('hello'); }); Here is my TestController.php My app route is localhost/Test/public/ and it shows "You have arrived" message. But when I tried localhost/Test/public/test It gives me "Symfony\Component\HttpKernel\Exception\NotFoundHttpException" Here is my log: [2014-05-11 14:29:59] production.ERROR: NotFoundHttpException Route: `http://localhost/Test/public/test` [] [] [2014-05-11 14:29:59]

NoBrokersAvailable: NoBrokersAvailable-Kafka Error

匿名 (未验证) 提交于 2019-12-03 01:12:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: i have already started to learn Kafka. Trying basic operations on it. I have stucked on a point which about the 'Brokers'. My kafka is running but when i want to create a partition. from kafka import TopicPartition (ERROR THERE) consumer = KafkaConsumer(bootstrap_servers='localhost:1234') consumer.assign([TopicPartition('foobar', 2)]) msg = next(consumer) traceback (most recent call last): File "", line 1, in File "/usr/local/lib/python2.7/dist-packages/kafka/consumer/group.py", line 284, in init self._client = KafkaClient(metrics=self.

CORS: Cannot use wildcard in Access-Control-Allow-Origin when credentials flag is true

匿名 (未验证) 提交于 2019-12-03 01:10:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I have a setup involving Frontend server (Node.js, domain: localhost:3000) Backend (Django, Ajax, domain: localhost:8000) Browser Browser (webapp) --> Ajax --> Django(Serve ajax POST requests) Now, my problem here is with CORS setup which the webapp uses to make Ajax calls to the backend server. In chrome, I keep getting Cannot use wildcard in Access-Control-Allow-Origin when credentials flag is true. doesn't work on firefox either. My Node.js setup is: var allowCrossDomain = function(req, res, next) { res.header('Access-Control-Allow-Origin

Java & Kafka: Connection to node 999 could not be established. Broker may not be available

匿名 (未验证) 提交于 2019-12-03 01:10:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: My docker-compose.yml is version: "2.1" services: pg-master: image: postgres-9.6:3 ports: - "5432:5432" environment: - VIRTUAL_HOST=postgres.local web: build: . links: - pg-master:postgres.local ports: - "8080:8080" zookeeper: image: jplock/zookeeper:3.4.6 ports: - "2181:2181" kafka: image: wurstmeister/kafka:1.0.0 ports: - "9092:9092" environment: - KAFKA_ADVERTISED_HOST_NAME=localhost - KAFKA_ADVERTISED_PORT=9092 - KAFKA_CREATE_TOPICS=TestTopic1:3:1 - KAFKA_ZOOKEEPER_CONNECT=zookeeper:2181 - KAFKA_BROKER_ID=999 volumes: - /var/run/docker

Failed to start devlopment server ― BindError: Unable to find a consistent port localhost

匿名 (未验证) 提交于 2019-12-03 01:08:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: Google-app-engine development server runs great yesterday, but when I try to start it today. It only shout out this Error. I tried use lsof -i:8080 / lsof -i:8000 to make sure these ports are not taken. I also tried use a --port arg to switch to another port. I even removed the gae folder and installed a new one. -- with no luck at all. Maybe there is a obvious solution but I can't see it. Here is the Oh-My-God trace stack.. Traceback (most recent call last): File "/home/henry/software/google_appengine/dev_appserver.py", line 182, in _run

ElasticSearch geo distance filter with multiple locations in array - possible?

匿名 (未验证) 提交于 2019-12-03 01:07:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: Let's say we have a bunch of documents in an ElasticSearch index. Each documents has multiple locations in an array , like this: { "name" : "foobar" , "locations" : [ { "lat" : 40.708519 , "lon" : - 74.003212 }, { "lat" : 39.752609 , "lon" : - 104.998100 }, { "lat" : 51.506321 , "lon" : - 0.127140 } ] } According to the ElasticSearch reference guide the geo_distance filter can work with multiple locations / points per document. Once a single location / point matches the filter, the document will be included in the filter. So, is it

Apache is not running from XAMPP Control Panel ( Error: Apache shutdown unexpectedly. This may be due to a blocked port)

匿名 (未验证) 提交于 2019-12-03 01:05:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I have installed XAMPP (xampp-win32-1.8.2-0-VC9-installer.exe) on Windows 7 successfully. But unfortunately, the following error was found during running Apache from XAMPP Control Panel: 5:38:38 PM [Apache] Error: Apache shutdown unexpectedly. 5:38:38 PM [Apache] This may be due to a blocked port, missing dependencies, 5:38:38 PM [Apache] improper privileges, a crash, or a shutdown by another method. 5:38:38 PM [Apache] Press the Logs button to view error logs and check 5:38:38 PM [Apache] the Windows Event Viewer for more clues 5:38:38 PM

Uncaught exception 'MongoConnectionException'

匿名 (未验证) 提交于 2019-12-03 01:05:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: Fatal error: Uncaught exception 'MongoConnectionException' with message 'Failed to connect to: localhost:27017: Permission denied' in /var/www/html/test.php:8 Stack trace: #0 /var/www/html/test.php(8): MongoClient->__construct() #1 {main} thrown in /var/www/html/test.php on line 8 Hi Mongo experts... I am a developer wanting to try out MongoDB. So installed centoOS 6.5 64bit in a test machine (Dell E520 Intel Dual Core 4GB Ram), installed PHP (Apache was already present). Then installed MongoDB (yum install mongo-10gen mongo-10gen-server),

wrap_socket() got an unexpected keyword argument 'server_hostname'?

匿名 (未验证) 提交于 2019-12-03 01:04:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I'm trying to use Python to test a web server. I have nearly no experience with Python, but encouraged to use it because its easy to learn and simple to do things with (someone else's opinion, not mine at the moment). The script I am using is: s1 = socket.socket(socket.AF_INET, socket.SOCK_STREAM) s2 = ssl.wrap_socket(s1, ca_certs="./pki/signing-dss-cert.pem", cert_reqs=ssl.CERT_REQUIRED, ssl_version=ssl.PROTOCOL_TLSv1, server_hostname="localhost") s2.connect( ("localhost", 8443) ) s2.send("GET / ") time.sleep(1) s2.send("HTTP/1.1") The

CURL Command Line URL Parameters

匿名 (未验证) 提交于 2019-12-03 01:03:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I am trying to send a DELETE request with a url parameter using CURL. I am doing: curl -H application/x-www-form-urlencoded -X DELETE http://localhost:5000/locations` -d 'id=3' However, the server is not seeing the parameter id = 3. I tried using some GUI application and when I pass the url as: http://localhost:5000/locations?id=3 , it works. I really would rather use CURL rather than this GUI application. Can anyone please point out what I'm doing wrong? 回答1: "application/x-www-form-urlencoded" header, why? Try it out: curl -X DELETE 'http: