摘要:
首先说一下几个地方: 1.上传使用ss.upload("domin域名","源地址","目标地址,也就是storage的地址");假设要上传到storage某一个详细的文件夹下目标地址写为"upload/"+filename;文件就上传到了upload文件夹下。 2.storage以下全部文件的路径 阅读全文
摘要:
完整代码 package com.proj.net; //导入编码的jar文件 import it.sauronsoftware.base64.Base64; import java.io.BufferedInputStream; import java.io.BufferedReader; imp 阅读全文
摘要:
1.前言 什么是UDP协议广播机制? 举一个例。 比如在一群人群中,一个人要找张三,于是你向人群里大喊一声(广播):“谁是张三” 假设它是张三,它就会回应你。在网络中也是一样的。 UDP广播机制的应用场景: 若干个client。在局域网内(不知道IP的情况下) 须要在非常多设备里需找特有的设备,比方 阅读全文
摘要:
这篇记录 android 消息机制中,MainThread 向 WorkThread 发送消息。( MainThread → WorkThread ) 步骤: 1、准备looper对象 2、在子线程中生成handler对象 3、在MainThread发送消息 代码: layout: <Button 阅读全文
摘要:
目标 实现记录SHELL执行的開始时间,结束时间。执行状态,错误信息等,以函数封装日志记录的方式,脚本调用函数 源代码 通用函数脚本program_log_new.sh function init_log() { sqlplus -S test/passw0rd@orcl <<EOF insert 阅读全文
摘要:
adt-bundle-linux-x86_64-20131030下新建project提示找不到adb和R.java问题的解决 在ubuntu14.04下,搭建Android开发环境,下载官方的adt-bundle-linux-x86_64-20131030后。启动eclipse,新建一个项目。提示找 阅读全文
摘要:
In this blog we mainly talk about the access control including limitation of ip, setting listen port and usage of username and password. In the offici 阅读全文
摘要:
/* * 装饰设计模式: * 对一组对象的功能进行增强时,就能够使用该模式进行问题的解决; * 装饰和继承都能实现一样的特点: 就是进行功能的扩转增强。 * */ public class TestIO4 { public static void main(String[] args) { P 阅读全文
摘要:
seqlist.h #pragma once #define _SEQ_LIST_ #ifdef _SEQ_LIST_ #include<stdio.h> #include<assert.h> #include<string.h> #define DEFAULT_CAPACITY 3 typedef 阅读全文
摘要:
在原来博客中有:MF CListControl 简单功能使用 推荐文章:MFC类CtrlList用法 今天又又一次来介绍点新东西:双击击listcontrol 做出响应。当然你能够做的还有非常多,比方显示点击的行列,右键点击,后面代码都有。没有截图了 主要有 1 插入数据 2 得到listctrl 阅读全文