日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問(wèn) 生活随笔!

生活随笔

當(dāng)前位置: 首頁(yè) > 人文社科 > 生活经验 >内容正文

生活经验

2019-9

發(fā)布時(shí)間:2023/11/27 生活经验 36 豆豆
生活随笔 收集整理的這篇文章主要介紹了 2019-9 小編覺(jué)得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.

一、URL格式(Uniform Resource Locator,統(tǒng)一資源定位符)

  1、參考網(wǎng)址:訪問(wèn)帶有用戶名、密碼保護(hù)的 URL

    格式:http://username:password@host:8080/directory/file?query#ref:

?

  2、參考書籍:《圖解HTTP》第27頁(yè)

   

    

查詢字符串: 針對(duì)已指定的文件路徑內(nèi)的資源,可以使用查詢字符串傳入任意參數(shù)。此項(xiàng)可選。(這樣可以在URL中直接下發(fā)參數(shù)和命令); 3、HTTP協(xié)議 瀏覽器輸入U(xiǎn)RL,敲回車后,一般下發(fā)的是“GET”方法, 如: 1)瀏覽器給restful_server:
GET / HTTP/1.1\r\nHost: 192.168.22.190:8000\r\nUser-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36\r\nAccept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3\r\nAccept-Encoding: gzip, deflate\r\nAccept-Language: zh-CN,zh;q=0.9\r\nProxy-Connection: keep-alive\r\nUpgrade-Insecure-Requests: 1\r\nX-Lantern-Version: 5.5.6\r\n\r\n

?

?2)restful_server給瀏覽器:

HTTP/1.1 200 OK\r\nServer: Mongoose/6.15\r\nDate: Tue, 24 Sep 2019 10:51:51 GMT\r\nLast-Modified: Tue, 24 Sep 2019 08:11:13 GMT\r\nAccept-Ranges: bytes\r\nContent-Type: text/html\r\nConnection: keep-alive\r\nContent-Length: 1991\r\nEtag: "5d89cfa1.1991"\r\n\r\n<!DOCTYPE html>\n<html lang="en">\n<head>\n<meta charset="utf-8" />\n<title>RESTful API demo</title>\n<meta name="viewport" content="width=device-width, initial-scale=1" />\n<style type="text/css">\n* { outline: none; }\nbody {\nbackground-color: #789; margin: 0;\npadding: 0; font: 16px/1.4 Helvetica, Arial, sans-serif;\nfont: 16px/1.4 Helvetica, Arial, sans-serif;\n}\ndiv.content {\nwidth: 800px; margin: 2em auto; padding: 20px 50px;\nbackground-color: #fff; border-radius: 1em;\n}\nlabel { display: inline-block; min-width: 7em; }\ninput { border: 1px solid #ccc; padding: 0.2em; }\na:link, a:visited { color: #69c; text-decoration: none; }\n@media (max-width: 700px) {\nbody { background-color: #fff; }\ndiv.content { width: auto; margin: 0 auto; padding: 1em; }\n}\n</style>\n\n<script src="//code.jquery.com/jquery-1.11.0.min.js"></script>\n<script language="javascript" type="text/javascript">\njQuery(function() {\n\n$(document).on('keyup', '#n1, #n2', function() {\n$.ajax({\nurl: '/api/v1/sum',\nmethod: 'POST',\ndataType: 'json',\ndata: { n1: $('#n1').val(), n2: $('#n2').val() },\nsuccess: function(json) {\n$('#result').html(json.result);\n}\n});\n});\n\n});\n</script>\n</head>\n<body>\n<div class="content">\n<h1>RESTful API demo.</h1>\n\n<p>\nThis page demonstrates how Mongoose could be used to implement\nRESTful APIs. Start typing numbers into the text fields below.\nBrowser sends two numbers to <tt>/api/v1/sum</tt> URI.\nWeb server calclulates the sum and returns the result.\n</p>\n\n<div>\n<label>Number 1:</label> <input type="text" id="n1" />\n</div><div>\n<label>Number 2:</label> <input type="text" id="n2" />\n</div><div>\n\t<!--\n<label>Result:</label> <span id="result">&nbsp;</span>\n\t-->\n</div><div>\n\t<label>Result:</label> <span id="result"></span>\n\n</div>\n</body>\n</html>\n

二、linux下SVN不會(huì)自動(dòng)輸入密碼的解決辦法

  1、參考文檔1:Linux下svn密碼問(wèn)題

  2、參考文檔2:Linux下SVN賬戶密碼保存設(shè)置

  3、如果按照上面的辦法還無(wú)法解決問(wèn)題,則使用終極大招,修改SVN的賬號(hào)和密碼文件,位置:~/.subversion/auth/svn.simple

    

?三、cjson

  1、參考網(wǎng)址:1:cJSON的源碼下載(github)及使用說(shuō)明

  2、參考網(wǎng)址2:cJSON的使用方法

四、mongoose與resful server

  1、參考網(wǎng)址1:Mongoose搭建RESTful http/https web server

  2、參考網(wǎng)址2:使用mongoose實(shí)現(xiàn)restful server

五、linux shell中的select與function

  1、參考網(wǎng)址1:shell編程——select語(yǔ)句

  2、參考網(wǎng)址2:Shell腳本中select、函數(shù)總結(jié)

六、c語(yǔ)言

  1、#、##、...、__VA_ARGS__的區(qū)別與使用

    參考網(wǎng)址1:整理:C/C++可變參數(shù),“## __VA_ARGS__”宏的介紹和使用

    參考網(wǎng)址2:GNU C語(yǔ)言 宏定義 #args ##args

    參考網(wǎng)址3:#、##、__VA_ARGS__和##__VA_ARGS__的作用

    總結(jié):

    打印調(diào)試信息方法:

GCC:  
#define dbgprintf(format, args...)  fprintf(stdout, format, ##args)C99: 
#define dbgprintf(fmt, ...)  printf(fmt, __VA_ARGS__)   #define dbgprintf(...)  printf(__VA_ARGS__)

?

?

七、網(wǎng)頁(yè)播放器

  1、參考網(wǎng)址1:使用Chrome打開http://www.cutv.com/demo/live_test.swf頁(yè)面時(shí)swf文件自動(dòng)下載問(wèn)題

  

八、linux

  1、參考網(wǎng)址1:/proc/uptime詳解,獲取系統(tǒng)啟動(dòng)時(shí)間,系統(tǒng)負(fù)載率

  2、參考網(wǎng)址2:Linux中/proc目錄下文件詳解

  3、參考網(wǎng)址3:linux驅(qū)動(dòng)編寫之poll機(jī)制

九、SVN操作

  1、命令行svn commit時(shí),注釋怎么實(shí)現(xiàn)換行效果

    svn ci -m $'first line\nsecond line'? ?重點(diǎn)是單引號(hào)前的$

  2、SVN更新后,前邊字母的提示含義

U:表示從服務(wù)器收到文件更新了
G:表示本地文件以及服務(wù)器文件都已更新,而且成功的合并了 
A:表示有文件或者目錄添加到工作目錄
R:表示文件或者目錄被替換了.
C:表示文件的本地修改和服務(wù)器修改發(fā)生沖突

 

轉(zhuǎn)載于:https://www.cnblogs.com/shanyu20/p/11498874.html

總結(jié)

以上是生活随笔為你收集整理的2019-9的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。

如果覺(jué)得生活随笔網(wǎng)站內(nèi)容還不錯(cuò),歡迎將生活随笔推薦給好友。