zhangtory.com
树莓派 | ZhangTory's Blog
http://zhangtory.com/archives/category/树莓派
All posts in “树莓派”. Sudo aptitude install pptpd. Sudo nano /etc/pptpd.conf. Sudo aptitude install bind9 bind9-host dnsutils. 根服务器指向文件, 由Internet NIC创建和维护, 无需修改, 但是需要定期更新. Localhost正向区文件,用于将名字localhost转换为本地回送IP地址 (127.0.0.1). Localhost反向区文件,用于将本地回送IP地址(127.0.0.1)转换为名字localhost. Include “/etc/bind/named.conf.options”. Zone “.” {. File “/etc/bind/db.root”. Zone “localhost” {. File “/etc/bind/db.local”. Zone “127.in-addr.arpa” {. File “/etc/bind/db.127”. Zone “0.in-addr.arpa” {. Sudo apt-get install xrdp.
zhangtory.com
java版U盘小偷 | ZhangTory's Blog
http://zhangtory.com/archives/137
讲apache的jar包 commons-net-3.3.jar 放在编译的class文件同一目录下。 运行方式 javaw -cp . commons-net-3.3.jar usbTrans. 网址 ( http:/ ). Powered by WordPress 4.4.2. Author by M.J.
zhangtory.com
java.util.Collections的各种用法 | ZhangTory's Blog
http://zhangtory.com/archives/90
用法 Collections.sort(list);. 用法 Collections.shuffle(list);. 用法 Collections.reverse(list);. 用法 Collections.fill(list, “1”);. 用法 Collections.copy(newList, list);. 用法 double d = Collections.min(list);. 用法 double d = Collections.max(list);. 用法 int n = Collections.indexOfSubList(list, newList);. 其实在list中也可以这么得到 int n = list.indexOf(656.0);. 用法 int n = Collections.lastIndexOfSubList(list, newList);. 用法 Collections.rotate(list, 2);. 用法 int n = Collections.binarySearch(list, 656.0);. 网址 ( http:/ ).
zhangtory.com
ESP8266 HTTP request 网页访问GET方法详解(附Arduino代码) | ZhangTory's Blog
http://zhangtory.com/archives/178
ESP8266 HTTP request 网页访问GET方法详解(附Arduino代码). 2,建立一个TCP连接,命令AT CIPSTART=”TCP”,”www.zhangtory.com”,80。 勾上 发送新行 ,GET http:/ zhangtory.com HTTP/1.0 r n r n r n,发送,然后清空发送栏,再点一次发送。 5,现在一直在准备发送数据,我们发什么命令都没反应,怎么退出呢 注意,取消 发送新行 ,然后发送 ,然后选择 发送新行 ,再发送一个空行就可以退出了。 如果固件不支持或需要烧录我的固件请移步 http:/ zhangtory.com/archives/180. 然后是Arduino代码 https:/ github.com/zhangtory/ESP8266 HTTP request/blob/master/demoESP8266GET/demoESP8266GET.ino. 说明下,我使用的固件是v0.9.5.2 AT Firmware。 GET http:/ zhangtory.com. HTTP/1.0 r n r n r n 返回的结果是.
zhangtory.com
树莓派不连接外网安装VNC | ZhangTory's Blog
http://zhangtory.com/archives/164
首先需要到vnc的官网上下载VNC的安装包 http:/ www.realvnc.com/download/vnc/raspberrypi/. Sudo dpkg -i VNC包名.deb. Sudo vnclicense -add 这个需要去官网上申请 http:/ www.realvnc.com/products/vnc/。 网址 ( http:/ ). Powered by WordPress 4.4.2. Author by M.J.
zhangtory.com
ESP8266 | ZhangTory's Blog
http://zhangtory.com/archives/category/esp8266
All posts in “ESP8266”. ESP8266 HTTP request 网页访问GET方法详解(附Arduino代码). Powered by WordPress 4.4.2. Author by M.J.
zhangtory.com
python win32gui 下载地址 | ZhangTory's Blog
http://zhangtory.com/archives/158
网址 ( http:/ ). Powered by WordPress 4.4.2. Author by M.J.
zhangtory.com
cmd下编译引用第三方jar方法 | ZhangTory's Blog
http://zhangtory.com/archives/87
Javac -cp a.jar路径 test.java. Java -cp . a.jar test. 网址 ( http:/ ). Powered by WordPress 4.4.2. Author by M.J.
zhangtory.com
用arduino uno给ATMAGE328P-PU烧录bootloader | ZhangTory's Blog
http://zhangtory.com/archives/146
可以参考官网上的方法 http:/ arduino.cc/en/Tutorial/ArduinoToBreadboard. 准备 arduino Uno,2个30pf电容 22pf等也行,只要能起振就行 ,10K电阻1个,16MHz晶振,面包版和导线。 然后要注意arduino IDE 请使用1.5.5以上. 我最开始用1.0.5烧录失败了,换了1.5.8才烧录成功的。 1在 文件 示例 选择 ArduinoISP 将程序下载到arduino uno中。 2选择 工具 板 Arduino uno。 3工具 程序员(烧录器) 选择arduino as ISP。 网址 ( http:/ ). Powered by WordPress 4.4.2. Author by M.J.
zhangtory.com
java | ZhangTory's Blog
http://zhangtory.com/archives/category/java
All posts in “java”. 用法 Collections.sort(list);. 用法 Collections.shuffle(list);. Powered by WordPress 4.4.2. Author by M.J.