client.send(new byte[]{(byte)0x89, (byte)0x00});ping
 client.send(new byte[]{(byte)0x8A, (byte)0x00});pong




Csdn user default icon
Spring WebSocket Ping/Pong


转到Gorilla Websocket〜在ping / pong上失败(用户断开连接)调用功能吗?

<div class="post-text" itemprop="text"> <p>I'm writing a chat program with Golang and Gorilla's Websocket toolkit.</p> <p>I'm wondering if there is a way to run a function whenever a user disconnects or a ping/pong message fails. I need this to remove them from variables and such. Is there any easy way to do this?</p> </div>

Secure WebSocket(wss://)在Firefox上不起作用

<div class="post-text" itemprop="text"> <p>I have a working WebSocket non secure application. But my website uses https and I need a Secure WebSocket connection to avoid Firefox to complain about the fact that the connection is insecure.</p> <p>I am using <a href="http://code.google.com/p/php-websocket-server/">php-websocket-server</a> for my WebSocket server with PhP 5.2.9, so when i use WebSocket secure i can't decrypt packets with the openssl_decrypt function. </p> <p>That's why i used <a href="http://www.stunnel.org/">stunnel</a> in order to decrypt packets sent by the client using wss, to do that i binded client WebSocket to 12345 port an server WebSocket to 54321 port, then i added a stunnel in server mode :</p> <pre><code>[wsServer] accept = 12345 connect = </code></pre> <p>With this configuration my application works fine on Chrome through https + wss. But on Firefox there's a problem during the handshake, it seems that <code>Sec-WebSocket-Version</code> and <code>Sec-WebSocket-Key</code> are missing in the header. I don't understand because it works on Firefox through http + ws.</p> <p>Thanks in advance for your help.</p> <p>Edit : i added an exception for the certificate on the port 12345, now the handshake is going well because i think Firefox now have the <code>Sec-WebSocket-Key</code>.</p> <p>Here the working header request with Firefox (bigger than Chrome request):</p> <pre><code>GET / HTTP/1.1 Host: User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:14.0) Gecko/20100101 Firefox/14.0.1 Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/;q=0.8 Accept-Language: fr,fr-fr;q=0.8,en-us;q=0.5,en;q=0.3 Accept-Encoding: gzip, deflate DNT: 1 Connection: keep-alive, Upgrade Sec-WebSocket-Version: 13 Origin: Sec-WebSocket-Protocol: HyBi-00 Sec-WebSocket-Key: 65nHN33M6drIPjQHcGK8pA== Pragma: no-cache Cache-Control: no-cache Upgrade: websocket </code></pre> </div>

Gorilla WebSocket与golang.org/x/net/websocket的比较

<div class="post-text" itemprop="text"> <p>According <a href="https://github.com/gorilla/websocket#gorilla-websocket-compared-with-other-packages" rel="nofollow">Gorilla Websockets Project</a> it is not possible to send pings and pongs using <strong>golang.org/x/net/websocket</strong>. At the same time, the following is on the project page of <a href="http://godoc.org/golang.org/x/net/websocket" rel="nofollow">golang.org/x/net/websocket</a>:</p> <blockquote> <p>Package websocket implements a client and server for the WebSocket protocol as specified in RFC 6455.</p> </blockquote> <p>I am a little confused. <strong>golang.org/x/net/websocket</strong> implements RFC 6455 but can not send control frames (cancel, ping, pong) although this is specified in <a href="http://tools.ietf.org/html/rfc6455#section-5.5" rel="nofollow">RFC 6455 - Section Control Frames</a></p> <p>So what will happen if I use <strong>golang.org/x/net/websocket</strong> package. Will the connection abort after a timeout? In other words, how is it ensured here that the connection does not break off.</p> </div>


<div class="post-text" itemprop="text"> <p>I am trying to implement WebSocket with php. And on my desktop computer It works correctly. But when I try to open my website on an android device. My server implementation gives the error below while handshaking.</p> <blockquote> <p>Undefined index: Sec-WebSocket-Key</p> </blockquote> <p>Then I checked the values. When I connected to web site with my desktop computers browser, Header contains Sec-WebSocket-Key index in header. But when I connected to web site from an android device, Header contains Sec-WebSocket-Key1 and Sec-WebSocket-Key2, but no Sec-WebSocket-Key. Therefore, It throws an exception. Is there any solution for this problem? Do I need two websokcet implementations, one for mobile and one for desktop?</p> <p>Thanks in advance.</p> </div>

websocket-sharp 获取不到返回值

公司搞了一台身份证对比机器,要写个接口获取对比信息 ``` using (var ws = new WebSocket("ws://" + dizhi)) { string a = "1"; ws.OnMessage += (sender, e) => { a = "2"; a = "Laputa says: " + e.Data ; }; ws.Connect(); ws.Send("get"); return a; //Console.Write(a); //Console.ReadKey(true); } ``` 返回一直是1,OnMessage事件不触发

golang解组websocket-rails JSON响应

<div class="post-text" itemprop="text"> <pre><code>[ [ "client_connected", { "id": null, "channel": null, "user_id": null, "data": { "connection_id": null }, "success": null, "result": null, "server_token": null } ] ] </code></pre> <p>Given this JSON response from a <em>websocket-rails</em> server, I was wondering what the best way to parse this as there is a string without any key?</p> </div>


<div class="post-text" itemprop="text"> <p>Snippet from WebSocket RFC:</p> <blockquote> <p>To <em>Start the WebSocket Closing Handshake</em> with a status code (Section 7.4) /code/ and an optional close reason (Section 7.1.6) /reason/, an endpoint MUST send a Close control frame, as described in Section 5.5.1, whose status code is set to /code/ and whose close reason is set to /reason/. Once an endpoint has both sent and received a Close control frame, that endpoint SHOULD <em>Close the WebSocket Connection</em> as defined in Section 7.1.1.</p> </blockquote> <p>I am trying to do the Close Handshake using <a href="https://github.com/gorilla/websocket" rel="nofollow">Gorilla WebSocket</a> package with the following code:</p> <p>Server:</p> <pre><code>// Create upgrader function conn, err := upgrader.Upgrade(w, r, nil) // If there is an error stop everything. if err != nil { fmt.Println(err) return } for { // Read Messages _, _, err := conn.ReadMessage() // Client is programmed to send a close frame immediately... // When reading close frame resend close frame with same // reason and code conn.WriteMessage(websocket.CloseMessage, websocket.FormatCloseMessage(1000, "woops")) fmt.Println(err) break } </code></pre> <p>Client:</p> <pre><code>d := &amp;websocket.Dialer{} conn, _, err := d.Dial("ws://localhost:8080", nil) if err != nil { fmt.Println(err) return } go func() { for { // Read Messages _, _, err := conn.ReadMessage() if c, k := err.(*websocket.CloseError); k { if(c.Code == 1000) { // Never entering since c.Code == 1005 fmt.Println(err) break } } } }() conn.WriteMessage(websocket.CloseMessage, websocket.FormatCloseMessage(1000, "woops")) for {} </code></pre> <p>The server is reading the Close Frame as expected outputting the following:</p> <blockquote> <p>websocket: close 1000 (normal): woops</p> </blockquote> <p>However the client is like its stopping to read once it sends a close message. The <code>ReadMessage</code> continue to return error 1005. What am I doing wrong?</p> </div>

android- websocket连接“wss://ws.biki.com/kline-api/ws”时执行onOpen,但是send信息后没有返回值

//用的websocket版本: implementation "org.java-websocket:Java-WebSocket:1.4.0" String url = "wss://ws.biki.com/kline-api/ws"; WebSocketClient client = new WebSocketClient(new URI(url), new Draft_6455()); //发送订阅 服务端返回信息 client.send("{ \"event\": \"sub\", \"params\": { \"channel\": \"market_btcusdt_kline_1min\", \"cb_id\": \"aaaa\" } }");


Opening Web Socket... stomp.min.js:8 WebSocket connection to 'ws://localhost/api/gs-guide-websocket/406/o8znidti/websocket' failed: Connection closed before receiving a handshake response sockjs.js:1213 Web Socket Opened... stomp.min.js:8 >>> CONNECT accept-version:1.1,1.0 heart-beat:10000,10000 握手都没有成功,前台有一个代理,后台没有。正常的请求可以访问进去,但是返回不了。

Gorilla Websocket-读取错误:在失败的Websocket连接上重复读取

<div class="post-text" itemprop="text"> <p>Using the gorilla websocket api for go, how do i know if a client is still connected?</p> <p>What Im trying with now is: </p> <pre><code>func Listen(ws *websocket.Conn) { connTimeout := 3 timeLastSent := time.Now().Second() for ((timeLastSent + connTimeout) % 60) != time.Now().Second() { msg := Message{} err := ws.ReadJSON(&amp;msg) if err == websocket.ErrCloseSent { break } else if err != nil { continue } //Message recived EventMessage &lt;- msg timeLastSent = time.Now().Second() } //Connection timed out. return } </code></pre> <p>But this results in the error <code>repeated read on failed websocket connection</code>. </p> <p>Ive been looking into using <code>ws.SetReadDeadline(t)</code>, but Ive no idea of either how to use it nor if its even the thing Im looking for.</p> <p>How should i go about this? </p> </div>

node.js - 通过websocket发送cookie

<div class="post-text" itemprop="text"> <p>I'm currently using node.js <code>websocket</code> module in my project. There is <code>PHPSESSID</code> in my browser but not in websocket's request header</p> <pre><code> Accept-Encoding:gzip, deflate, sdch Accept-Language:en-US,en;q=0.8,ka;q=0.6,ru;q=0.4 Cache-Control:no-cache Connection:Upgrade Host:someHost Origin:someOrigin Pragma:no-cache Sec-WebSocket-Extensions:permessage-deflate; client_max_window_bits Sec-WebSocket-Key:0Hq9BZfHAxIMbfu3cJpWyg== Sec-WebSocket-Protocol:echo-protocol Sec-WebSocket-Version:13 Upgrade:websocket User-Agent:Mozilla/5.0 (Windows NT 5.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/47.0.2526.106 Safari/537.36 </code></pre> <p>I have checked it in my server side code</p> <pre><code> wsServer.on('request', function(request) { console.log(request.cookies); }); </code></pre> <p>and it prints an empty array <code>[]</code>.</p> <p>How can I send cookie via websocket? Should I use headers or something else?</p> </div>

用于 Node.js 的哪个 websocket 库? [关闭]

<div class="post-text" itemprop="text"> <p>Currently there is a <a href="http://npmjs.org/keyword/websocket">plethora of websocket libraries</a> for node.js, the most popular seem to be:</p> <ul> <li><a href="https://github.com/Worlize/WebSocket-Node">https://github.com/Worlize/WebSocket-Node</a></li> <li><a href="https://github.com/einaros/ws">https://github.com/einaros/ws</a></li> <li><a href="https://github.com/LearnBoost/engine.io">https://github.com/LearnBoost/engine.io</a></li> <li><a href="https://github.com/learnboost/socket.io">https://github.com/learnboost/socket.io</a></li> <li><a href="https://github.com/sockjs">https://github.com/sockjs</a></li> </ul> <p>However I can't find any solid concrete comparisons between any of them... Apparently Socket.io was awesome, but has become quite dated and has failing builds. Both ws and websocket-node claim they are the fastest. And engine.io seems new, but a lot heavier than the lighter aletarntives.</p> <p>It would be amazing if we or someone could put together an answer that serves as a guide on which socket library to use and when, as well as a comparison between them.</p> </div> <p>转载于:https://stackoverflow.com/questions/16392260/which-websocket-library-to-use-with-node-js</p>

在Alpine Docker容器中从源代码编译Go时出错:“ loadinternal:找不到运行时/ cgo”

<div class="post-text" itemprop="text"> <p>I'm trying to build an Alpine Docker image for the FIPS-enabled version of Go. To do this, I am trying to build Go from source using the <code>dev.boringcrypto</code> branch of the <code>golang/go</code> repository.</p> <p>Upon running <code>./all.bash</code>, I get the following errors:</p> <pre><code>Step 4/4 : RUN cd go/src &amp;&amp; ./all.bash ---&gt; Running in 00db552598f7 Building Go cmd/dist using /usr/lib/go. # _/go/src/cmd/dist loadinternal: cannot find runtime/cgo /usr/lib/go/pkg/tool/linux_amd64/link: running gcc failed: exit status 1 /usr/lib/gcc/x86_64-alpine-linux-musl/6.4.0/../../../../x86_64- alpine-linux-musl/bin/ld: cannot find Scrt1.o: No such file or directory /usr/lib/gcc/x86_64-alpine-linux-musl/6.4.0/../../../../x86_64- alpine-linux-musl/bin/ld: cannot find crti.o: No such file or directory /usr/lib/gcc/x86_64-alpine-linux-musl/6.4.0/../../../../x86_64-alpine-linux-musl/bin/ld: cannot find -lssp_nonshared collect2: error: ld returned 1 exit status The command '/bin/bash -c cd go/src &amp;&amp; ./all.bash' returned a non-zero code: 2 </code></pre> <p>Which causes the installation tests to fail and kicks me out of the Docker image build.</p> <p>I have the <code>gcc</code> installed on the image, and tried setting the environment variable <code>CGO_ENABLED=0</code> as suggested in other questions, but neither of these things seem to alleviate the problem.</p> <p>I'm at my wits end with this problem. Has anybody else run into similar issues in the past? I don't understand why this is happening, as the build runs fine in an Ubuntu container.</p> <p>Thanks!</p> </div>

Websocket消息发送到特定房间-Golang Kataras / Iris

<div class="post-text" itemprop="text"> <p>I am trying to send Message to Particular Room, but it doesn't work and It sends message to all room along with my message being received twice from my name and with first chat room user name. Message from 1 Room is broadcasted to all Chat Room.</p> <p>I have used Example Code from here- <a href="https://github.com/kataras/iris/blob/master/_examples/websocket/secure/main.go" rel="nofollow noreferrer">https://github.com/kataras/iris/blob/master/_examples/websocket/secure/main.go</a>. and <a href="https://github.com/kataras/iris/blob/master/_examples/websocket/native-messages/main.go" rel="nofollow noreferrer">https://github.com/kataras/iris/blob/master/_examples/websocket/native-messages/main.go</a></p> <p>Below is the Code, I am using, that is giving me the error :</p> <pre><code> var myChatRoom = strconv.Itoa(room.ID) ws := websocket.New(websocket.Config{}) ws.OnConnection(func(c websocket.Connection) { c.Join(myChatRoom) c.To(myChatRoom).EmitMessage([]byte(user.(users).Username + " has Joined Chat!")) c.OnMessage(func(data []byte) { message := string(data) if message == "leave" { c.Leave(myChatRoom) c.To(myChatRoom).EmitMessage([]byte(user.(users).Username + " has Left Chat!")) return } c.To(myChatRoom).EmitMessage([]byte(user.(users).Username + ": " + message)) }) c.OnDisconnect(func() { fmt.Printf("Connection with ID: %s has been disconnected! ", c.ID()) }) }) </code></pre> <p>HTML Code:</p> <pre><code>&lt;div id="messages" style="border-width: 1px; border-style: solid; height: 200px;overflow:auto"&gt;&lt;/div&gt; &lt;input type="text" id="messageTxt" /&gt; &lt;button type="button" id="sendBtn"&gt;Send&lt;/button&gt; </code></pre> <p>Javascript Code:</p> <pre><code>&lt;script&gt; var messageTxt; var messages; var HOST = 'localhost' jQuery(function() { messageTxt = jQuery("#messageTxt"); messages = jQuery("#messages"); w = new WebSocket("ws://" + HOST + "/my_endpoint"); w.onopen = function() { console.log("Websocket connection enstablished"); }; w.onclose = function() { appendMessage(jQuery("&lt;div&gt;&lt;center&gt;&lt;h3&gt;Disconnected&lt;/h3&gt;&lt;/center&gt;&lt;/div&gt;")); }; w.onmessage = function(message) { console.log("Message Appended: " + message) appendMessage(jQuery("&lt;div&gt;" + message.data + "&lt;/div&gt;")); }; jQuery("#sendBtn").click(function() { w.send(messageTxt.val().toString()); messageTxt.val(""); }); }) function appendMessage(messageDiv) { messageDiv.appendTo(jQuery("#messages")); } &lt;/script&gt; </code></pre> <p><strong>Error:</strong></p> <ol> <li><p>It sends message to all ROOM and not specific Room.</p></li> <li><p>User who created room first automatically joins all the ROOM</p></li> <li><p>People sending message in other ROOM see their message being Repeated/cloned in their ROOM by "FirstUser" who created first room in chat. (Irrespective of whether he is member of the chat group or not)</p></li> </ol> <p><strong>Expecting:</strong></p> <ol> <li><p>People can send/receive message to only those room where they have joined.</p></li> <li><p>First User should not be able to join CHATRoom automatically.</p></li> <li><p>People should not see their message being repeated again with "FirstUser" name.</p></li> </ol> </div>


<div class="post-text" itemprop="text"> <p>I'm building a real time message system and used this <a href="http://www.sanwebe.com/2013/05/chat-using-websocket-php-socket/comment-page-1" rel="nofollow">http://www.sanwebe.com/2013/05/chat-using-websocket-php-socket/comment-page-1</a> tutorial as an example.</p> <p>In my local PC it worked find. I have a shared server and hosting provider doesn't allow me to access shell command on my server. </p> <p>Can anyone help me on this. Is there any way I can execute this shell command in a PHP file?</p> </div>


<div class="post-text" itemprop="text"> <p>When I load the page in my browser, the page gets served correctly. When the javascript executes, Chrome's console output says:</p> <pre><code>Invalid UTF-8 sequence in header value </code></pre> <p>I have searched for that string, and am unable to find any mention of it for golang.</p> <p>How do I go about telling golang not to write unicode characters to web sockets?</p> <p>I assume that this is the cause of the problem, as the "Network" tab only reveals an empty request and response for this.</p> <hr> <p>CCSSE:</p> <p>main.go:</p> <pre><code>package main import ( "fmt" "net/http" "log" "code.google.com/p/go.net/websocket" //"github.com/garyburd/go-websocket/websocket" ) const listenAddress = "localhost:9999" func wsHandler(webSck *websocket.Conn) { fmt.Fprint(webSck, "Rpy") fmt.Println("Sent \"Rpy\" to web socket", webSck) //more code here } func main() { http.Handle("/", http.FileServer(http.Dir("./static"))) http.Handle("/ws", websocket.Handler(wsHandler)) err := http.ListenAndServe(listenAddress, nil) if err != nil { log.Fatal(err) } } </code></pre> <p>static/main.js</p> <pre><code>var socket = new WebSocket("ws://localhost:9999/ws"); socket.onopen = function() { socket.onmessage = function(m) { console.log("Received: " + m); }; socket.send("Req "); }; </code></pre> <hr> <p>EDIT:</p> <p>As suggested by @Intermernet, I have set the <code>Sec-WebSocket-Protocol</code> header. To no avail, still getting <code>Invalid UTF-8 sequence in header value</code>.</p> <p>Note also that the reason I need to do <code>webSck.Config().Header = make(http.Header)</code> is that it is <code>nil</code> - confirmed by the log statement on <code>webSck.Config()</code>. Tack on to this another question - why do I have to do this; is there an intialisation step that I have missed somewhere?</p> <pre><code>func wsHandler(webSck *websocket.Conn) { webSck.Config().Header = make(http.Header) webSck.Config().Header.Add("Sec-WebSocket-Protocol", "chat") fmt.Printf("ws.Config() %#v ", webSck.Config()) var buf []byte; buf = []byte("Rpy") _, err := webSck.Write(buf) if err != nil { fmt.Println("Error:", err) } else { fmt.Printf("Sent \"Rpy\" to web socket %#v ", webSck) } } </code></pre> </div>

springmvc 整合websocket 报错 404

第一: pom 配置文件: <dependency> <groupId>javax.websocket</groupId> <artifactId>javax.websocket-api</artifactId> <version>1.0</version> <scope>provided</scope><!--这个是从网上看的是为了解决jar包冲突的 --> </dependency> <dependency> <groupId>org.springframework</groupId> <artifactId>spring-websocket</artifactId> <version>4.1.6.RELEASE</version> </dependency> <dependency> <groupId>org.springframework</groupId> <artifactId>spring-messaging</artifactId> <version>4.1.6.RELEASE</version> </dependency> 第二步: 【注册,启动 websocket server 和 握手拦截器 】 @Configuration @EnableWebSocket public class WebSocketConfig implements WebSocketConfigurer { @Override public void registerWebSocketHandlers(WebSocketHandlerRegistry registry) { System.out.println("....注册......"); registry.addHandler(myhandler(), "/websocket").addInterceptors(myInterceptors()).setAllowedOrigins("*"); registry.addHandler(myhandler(), "/sockjs/websocket").addInterceptors(myInterceptors()).withSockJS(); } @Bean public WebSocketHandler myhandler() { System.out.println("....服务端......"); return new WebsocketEndPoint(); } @Bean public HandshakeInterceptor myInterceptors() { System.out.println("....握手拦截器......"); return new HandshakeInterceptor(); } } public class WebsocketEndPoint extends TextWebSocketHandler { private Logger logger = LoggerFactory.getLogger(WebsocketEndPoint.class); @Override protected void handleTextMessage(WebSocketSession session, TextMessage message) throws Exception { super.handleTextMessage(session, message); logger.debug("GOMA === > WebSocketEndPoint.handlerTextMessage..."); TextMessage returnMessage = new TextMessage(message.getPayload()+" received at server"); session.sendMessage(returnMessage); } } public class HandshakeInterceptor extends HttpSessionHandshakeInterceptor { private Logger logger = Logger.getLogger(getClass()); @Override public boolean beforeHandshake(ServerHttpRequest request, ServerHttpResponse response, WebSocketHandler wsHandler, Map<String, Object> attributes) throws Exception { logger.debug("GOMA ===> Before Handshake"); return super.beforeHandshake(request, response, wsHandler, attributes); } @Override public void afterHandshake(ServerHttpRequest request, ServerHttpResponse response, WebSocketHandler wsHandler, Exception ex) { logger.debug("GOMA ===> After Handshake"); super.afterHandshake(request, response, wsHandler, ex); } } 第三步:页面 client 我的tomcat 的端口是 9018 socket = new WebSocket('ws://localhost:9018/testSocket/websocket'); 运行报错: WebSocket connection to 'ws://localhost:9018/testSocket/websocket' failed: Error during WebSocket handshake: Unexpected response code: 400 这是为啥? 都配置了 ,为啥 是404 奇怪~~~ 那个大神给我解决一下


<div class="post-text" itemprop="text"> <p>During websocket handshake, how can I add <code>Set-Cookie</code> in the <code>Upgrade</code> response?</p> <p>I tried the following code</p> <pre><code>import ( //"encoding/json" "golang.org/x/net/websocket" //"io" "log" "net/http" ) func main() { http.HandleFunc("/v2", onV2Handshake) // Ports below 1024 can be opened only by root. err := http.ListenAndServe(":8080", nil) // err := http.ListenAndServeTLS(":443", "cert.pem", "key.pem", nil) if err != nil { log.Panicln(err) } } func EchoServer(ws *websocket.Conn) { //io.Copy(ws, ws) } func onV2Handshake(writer http.ResponseWriter, req *http.Request) { cookie := http.Cookie{Name: "_c_id_", Value: "abcd", Path: "/", HttpOnly: true, Secure: false} http.SetCookie(writer, &amp;cookie) server := websocket.Server{Handler: websocket.Handler(EchoServer)} server.ServeHTTP(writer, req) } </code></pre> <p><strong>The handshake is done successfully but there is no <code>Set-Cookie</code> HTTP header in response.</strong> </p> <pre><code>Connection:Upgrade Sec-WebSocket-Accept:wWtU5pygFsiY0aTzMRzJEQcgnZc= Sec-WebSocket-Protocol:wamp.2.json Upgrade:websocket </code></pre> <p>According to <a href="https://tools.ietf.org/html/rfc6455" rel="nofollow">RFC6455</a>, this should work</p> <blockquote> <p>Additional header fields may also be present, such as cookies</p> </blockquote> <p>I don't have this problem in NodeJS. </p> </div>


软件测试2小时入门,让您快速了解软件测试基本知识,有系统的了解; SQL一小时,让您快速理解和掌握SQL基本语法 jmeter性能测试 ,让您快速了解主流来源性能测试工具jmeter 测试管理工具-禅道,让您快速学会禅道的使用,学会测试项目、用例、缺陷的管理、



Java 最常见的 200+ 面试题:面试必备

这份面试清单是从我 2015 年做了 TeamLeader 之后开始收集的,一方面是给公司招聘用,另一方面是想用它来挖掘在 Java 技术栈中,还有那些知识点是我不知道的,我想找到这些技术盲点,然后修复它,以此来提高自己的技术水平。虽然我是从 2009 年就开始参加编程工作了,但我依旧觉得自己现在要学的东西很多,并且学习这些知识,让我很有成就感和满足感,那所以何乐而不为呢? 说回面试的事,这份面试...




总课时80+,提供源码和相关资料 本课程从Python零基础到纯Python项目实战。内容详细,案例丰富,覆盖了Python知识的方方面面,学完后不仅对Python知识有个系统化的了解,让你从Python小白变编程大牛! 课程包含: 1.python安装 2.变量、数据类型和运算符 3.选择结构 4.循环结构 5.函数和模块 6.文件读写 7.了解面向对象 8.异常处理


获取讲师答疑方式: 在付费视频第一节(触摸命令_ALL)片头有二维码及加群流程介绍 限时福利 原价99元,今日仅需39元!购课添加小助手(微信号:itxy41)按提示还可领取价值800元的编程大礼包! 讲师介绍: 苏奕嘉&nbsp;前阿里UC项目工程师 脚本开发平台官方认证满级(六级)开发者。 我将如何教会你通过【定制脚本】赚到你人生的第一桶金? 零基础程序定制脚本开发课程,是完全针对零脚本开发经验的小白而设计,课程内容共分为3大阶段: ①前期将带你掌握Q开发语言和界面交互开发能力; ②中期通过实战来制作有具体需求的定制脚本; ③后期将解锁脚本的更高阶玩法,打通任督二脉; ④应用定制脚本合法赚取额外收入的完整经验分享,带你通过程序定制脚本开发这项副业,赚取到你的第一桶金!


本课程为HoloLens2开发入门教程,讲解部署开发环境,安装VS2019,Unity版本,Windows SDK,创建Unity项目,讲解如何使用MRTK,编辑器模拟手势交互,打包VS工程并编译部署应用到HoloLens上等。






设置复位开关。当按下复位开关时,秒表清零并做好计时准备。在任何情况下只要按下复位开关,秒表都要无条件地进行复位操作,即使是在计时过程中也要无条件地进行清零操作。 设置启/停开关。当按下启/停开关后,将




董付国系列教材《Python程序设计基础》、《Python程序设计(第2版)》、《Python可以这样学》配套视频,讲解Python 3.5.x和3.6.x语法、内置对象用法、选择与循环以及函数设计与使用、lambda表达式用法、字符串与正则表达式应用、面向对象编程、文本文件与二进制文件操作、目录操作与系统运维、异常处理结构。

计算机操作系统 第三版.pdf

计算机操作系统 第三版 本书全面介绍了计算机系统中的一个重要软件——操作系统(OS),本书是第三版,对2001年出版的修订版的各章内容均作了较多的修改,基本上能反映当前操作系统发展的现状,但章节名称基

技术大佬:我去,你写的 switch 语句也太老土了吧

昨天早上通过远程的方式 review 了两名新来同事的代码,大部分代码都写得很漂亮,严谨的同时注释也很到位,这令我非常满意。但当我看到他们当中有一个人写的 switch 语句时,还是忍不住破口大骂:“我擦,小王,你丫写的 switch 语句也太老土了吧!” 来看看小王写的代码吧,看完不要骂我装逼啊。 private static String createPlayer(PlayerTypes p...

Vue.js 2.0之全家桶系列视频课程

基于新的Vue.js 2.3版本, 目前新全的Vue.js教学视频,让你少走弯路,直达技术前沿! 1. 包含Vue.js全家桶(vue.js、vue-router、axios、vuex、vue-cli、webpack、ElementUI等) 2. 采用笔记+代码案例的形式讲解,通俗易懂


本套课程的设计完全是为初学者量身打造,课程内容由浅入深,课程讲解通俗易懂,代码实现简洁清晰。通过本课程的学习,学员能够入门微信公众平台开发,能够胜任企业级的订阅号、服务号、企业号的应用开发工作。 通过本课程的学习,学员能够对微信公众平台有一个清晰的、系统性的认识。例如,公众号是什么,它有什么特点,它能做什么,怎么开发公众号。 其次,通过本课程的学习,学员能够掌握微信公众平台开发的方法、技术和应用实现。例如,开发者文档怎么看,开发环境怎么搭建,基本的消息交互如何实现,常用的方法技巧有哪些,真实应用怎么开发。


【为什么学爬虫?】 &nbsp; &nbsp; &nbsp; &nbsp;1、爬虫入手容易,但是深入较难,如何写出高效率的爬虫,如何写出灵活性高可扩展的爬虫都是一项技术活。另外在爬虫过程中,经常容易遇到被反爬虫,比如字体反爬、IP识别、验证码等,如何层层攻克难点拿到想要的数据,这门课程,你都能学到! &nbsp; &nbsp; &nbsp; &nbsp;2、如果是作为一个其他行业的开发者,比如app开发,web开发,学习爬虫能让你加强对技术的认知,能够开发出更加安全的软件和网站 【课程设计】 一个完整的爬虫程序,无论大小,总体来说可以分成三个步骤,分别是: 网络请求:模拟浏览器的行为从网上抓取数据。 数据解析:将请求下来的数据进行过滤,提取我们想要的数据。 数据存储:将提取到的数据存储到硬盘或者内存中。比如用mysql数据库或者redis等。 那么本课程也是按照这几个步骤循序渐进的进行讲解,带领学生完整的掌握每个步骤的技术。另外,因为爬虫的多样性,在爬取的过程中可能会发生被反爬、效率低下等。因此我们又增加了两个章节用来提高爬虫程序的灵活性,分别是: 爬虫进阶:包括IP代理,多线程爬虫,图形验证码识别、JS加密解密、动态网页爬虫、字体反爬识别等。 Scrapy和分布式爬虫:Scrapy框架、Scrapy-redis组件、分布式爬虫等。 通过爬虫进阶的知识点我们能应付大量的反爬网站,而Scrapy框架作为一个专业的爬虫框架,使用他可以快速提高我们编写爬虫程序的效率和速度。另外如果一台机器不能满足你的需求,我们可以用分布式爬虫让多台机器帮助你快速爬取数据。 &nbsp; 从基础爬虫到商业化应用爬虫,本套课程满足您的所有需求! 【课程服务】 专属付费社群+每周三讨论会+1v1答疑




&nbsp; &nbsp; &nbsp; &nbsp; 本课程为Python数据挖掘方向的入门课程,课程主要以真实数据为基础,详细介绍数据挖掘入门的流程和使用Python实现pandas与numpy在数据挖掘方向的运用,并深入学习如何运用scikit-learn调用常用的数据挖掘算法解决数据挖掘问题,为进一步深入学习数据挖掘打下扎实的基础。

2019 AI开发者大会

2019 AI开发者大会(AI ProCon 2019)是由中国IT社区CSDN主办的AI技术与产业年度盛会。多年经验淬炼,如今蓄势待发:2019年9月6-7日,大会将有近百位中美顶尖AI专家、知名企业代表以及千余名AI开发者齐聚北京,进行技术解读和产业论证。我们不空谈口号,只谈技术,诚挚邀请AI业内人士一起共铸人工智能新篇章!


发现网上很多Java面试题都没有答案,所以花了很长时间搜集整理出来了这套Java面试题大全,希望对大家有帮助哈~ 本套Java面试题大全,全的不能再全,哈哈~ 一、Java 基础 1. JDK 和 JRE 有什么区别? JDK:Java Development Kit 的简称,java 开发工具包,提供了 java 的开发环境和运行环境。 JRE:Java Runtime Environ...

定量遥感中文版 梁顺林著 范闻捷译


GIS程序设计教程 基于ArcGIS Engine的C#开发实例

张丰,杜震洪,刘仁义编著.GIS程序设计教程 基于ArcGIS Engine的C#开发实例.浙江大学出版社,2012.05


系列课程主要分为3大阶段:(1)首先掌握计算机视觉必备算法原理,结合Opencv进行学习与练手,通过实际视项目进行案例应用展示。(2)进军当下最火的深度学习进行视觉任务实战,掌握深度学习中必备算法原理与网络模型架构。(3)结合经典深度学习框架与实战项目进行实战,基于真实数据集展开业务分析与建模实战。整体风格通俗易懂,项目驱动学习与就业面试。 建议同学们按照下列顺序来进行学习:1.Python入门视频课程 2.Opencv计算机视觉实战(Python版) 3.深度学习框架-PyTorch实战/人工智能框架实战精讲:Keras项目 4.Python-深度学习-物体检测实战 5.后续实战课程按照自己喜好选择就可以




微信小程序番茄时钟视频教程,本课程将带着各位学员开发一个小程序初级实战类项目,针对只看过官方文档而又无从下手的开发者来说,可以作为一个较好的练手项目,对于有小程序开发经验的开发者而言,可以更好加深对小程序各类组件和API 的理解,为更深层次高难度的项目做铺垫。

面试了一个 31 岁程序员,让我有所触动,30岁以上的程序员该何去何从?




用verilog HDL语言编写的秒表




相关热词 c#框体中的退出函数 c# 按钮透明背景 c# idl 混编出错 c#在位置0处没有任何行 c# 循环给数组插入数据 c# 多线程死锁的例子 c# 钉钉读取员工排班 c# label 不显示 c#裁剪影像 c#工作进程更新ui