Lập trình

Q & A cho các lập trình viên chuyên nghiệp và đam mê





2
Tham số URL dòng lệnh CURL
Tôi đang cố gắng gửi một DELETEyêu cầu với một tham số url bằng cách sử dụng CURL. Tôi đang làm: curl -H application/x-www-form-urlencoded -X DELETE http://localhost:5000/locations` -d 'id=3' Tuy nhiên, máy chủ không thấy tham số id = 3. Tôi đã thử sử dụng một số ứng dụng GUI …
186 http  curl 


15
Lỗi cài đặt trình soạn thảo - yêu cầu ext_curl khi nó thực sự được bật
Tôi đang cố gắng cài đặt Facebook PHP SDK với Trình soạn thảo. Đây là những gì tôi nhận được $ composer install Loading composer repositories with package information Installing dependencies (including require-dev) Your requirements could not be resolved to an installable set of packages. Problem 1 - Installation request …

14
Node.js tạo thư mục hoặc sử dụng hiện có
Tôi đã đọc tài liệu của Node.js và, trừ khi tôi bỏ lỡ điều gì đó, cụ thể là nó không cho biết các tham số có trong các hoạt động nhất định, cụ thể là gì fs.mkdir(). Như bạn có thể thấy trong tài liệu, nó không nhiều lắm. …

3
Javascript! Ví dụ nếu tuyên bố
Đây là một câu hỏi thực sự cơ bản thực sự chỉ để thỏa mãn sự tò mò của tôi, nhưng có cách nào để làm một cái gì đó như thế này: if(obj !instanceof Array) { //The object is not an instance of Array } else { //The object …

18
Cách sửa lỗi org.hibernate.LazyInitializationException - không thể khởi tạo proxy - không có Phiên
Tôi nhận được ngoại lệ sau: Exception in thread "main" org.hibernate.LazyInitializationException: could not initialize proxy - no Session at org.hibernate.proxy.AbstractLazyInitializer.initialize(AbstractLazyInitializer.java:167) at org.hibernate.proxy.AbstractLazyInitializer.getImplementation(AbstractLazyInitializer.java:215) at org.hibernate.proxy.pojo.javassist.JavassistLazyInitializer.invoke(JavassistLazyInitializer.java:190) at sei.persistence.wf.entities.Element_$$_jvstc68_47.getNote(Element_$$_jvstc68_47.java) at JSON_to_XML.createBpmnRepresantation(JSON_to_XML.java:139) at JSON_to_XML.main(JSON_to_XML.java:84) Khi tôi cố gắng gọi từ chính các dòng sau: Model subProcessModel = getModelByModelGroup(1112); System.out.println(subProcessModel.getElement().getNote()); Tôi đã thực hiện getModelByModelGroup(int …

8
Đọc một tệp trong Node.js
Tôi khá bối rối với việc đọc các tệp trong Node.js. fs.open('./start.html', 'r', function(err, fileToRead){ if (!err){ fs.readFile(fileToRead, {encoding: 'utf-8'}, function(err,data){ if (!err){ console.log('received data: ' + data); response.writeHead(200, {'Content-Type': 'text/html'}); response.write(data); response.end(); }else{ console.log(err); } }); }else{ console.log(err); } }); Tệp start.htmlnằm trong cùng thư mục với tệp cố …
186 node.js 




14
java.net.ConnectException: Kết nối bị từ chối
Tôi đang cố gắng thực hiện kết nối TCP, mọi thứ đều hoạt động tốt từ phía máy chủ nhưng khi tôi chạy chương trình máy khách (từ máy khách) thì tôi gặp lỗi sau: java.net.ConnectException: Connection refused at java.net.PlainSocketImpl.socketConnect(Native Method) at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351) at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213) at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200) at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:432) at …
186 java  networking  tcp 

Khi sử dụng trang web của chúng tôi, bạn xác nhận rằng bạn đã đọc và hiểu Chính sách cookieChính sách bảo mật của chúng tôi.
Licensed under cc by-sa 3.0 with attribution required.