07 2018 档案
摘要:转载我看到的内容,然后加上自己的想法: 先粗略解释一下:一、公钥加密 假设一下,我找了两个数字,一个是1,一个是2。我喜欢2这个数字,就保留起来,不告诉你们(私钥),然后我告诉大家,1是我的公钥。我有一个文件,不能让别人看,我就用1加密了。别人找到了这个文件,但是他不...
阅读全文
摘要:目录网页源码查看器:图片查看器: handler使用步骤 1.在主线程定义了一个Handler private Handler handler = new Handler() 2.使用handler会重写handler里面的handlerMessage方法 pub...
阅读全文
摘要:// 2.点击按钮进行查看,指定路径的源码 public void click(View v) { try { // 2.1获取源码路径 String path = et_path.getText().t...
阅读全文
摘要:两种方法:第一种:// 5000ms后执行run方法// 可以在这run()里面更新uinew Handler().postDelayed(new Runnable() { @Override public void run() { tv.s...
阅读全文
摘要:目录类的生命周期:类的主动使用被动使用和类的初始化时机:反射的使用:Class.forName()读取配置文件举例通过反射获取构造方法并使用通过反射获取成员变量并使用通过反射获取方法并使用通过反射越过泛型检查通过反射写一个通用的方法,设置某个对象的某个属性为指定的值...
阅读全文
摘要:先讲可变参数。上代码:public class Test { public static void main(String[] args) { cc(); } public static void cc(int... a) { // 形...
阅读全文
摘要:记录一下讲义笔记:目录第1章 数据库1.1 数据库概述1.2 数据库表1.3 表数据第2章 MySql数据库2.1 MySql安装2.2 登录MySQL数据库2.3 SQLyog(MySQL图形化开发工具)第3章 SQL语句3.1 SQL语句3.2 SQL通用语法3....
阅读全文
摘要:目录udp传输基础示范:图形化的界面显示小Demo(udp):TCP传输笔记:客户端向服务器上传文件小Demo(tcp): 关于Java TCP/IP Socket方面这位博主写得很详细也很全面:https://blog.csdn.net/ns_code/artic...
阅读全文
摘要:学习笔记目录打气筒(LayoutInflater对象)介绍:ArrayAdapter用法:关于具有自定义 ArrayAdapter 的示例应用见这里:SimpleAdapter用法:关于ListView的点击事件onItemClick4个参数的意义:将数据库的数据显...
阅读全文
摘要:我想代码是非常容易解释这个问题的了。下文会给出总结。总结点击这里或者往下阅读:直接来一段小代码吧:public class Interrupt { public static void main(String[] args) { Thread t ...
阅读全文
摘要:嗯,对,这是我的博客。 其实我的博客就是我的笔记本,在快速学习过程中非常容易遗忘。好记性不如烂笔头,可是曾把笔记写在笔记本却很少去看,或者没有看,长篇代码又懒的抄在笔记本,到后来才写在博客。写在博客其实挺方便,有些函数什么的用法可以直接搜索,网上也有很多...
阅读全文
摘要:以下排序算法模版都会用Comparable接口数据类型,只要实现了Comarable接口的数据类型比如Integer、Double、String和其他许多高级数据类型(如File和URL),这些数据类型的数组可以作为参数调用排序方法。这里的输入不是Scanner ci...
阅读全文
摘要:在同步代码块中,锁对象是谁,就用那个对象来调用wait和notify为什么wait方法和notify方法需要定义在Object? 因为所有的对象都是Object的子类对象,而所欲的对象都可以当做锁对象 jdk1.5版本之前多个线程通信用synchronize...
阅读全文
摘要:先看Demo1:public class Demo1_Synchronized { public static void main(String[] args) { final Printer p = new Printer(); n...
阅读全文
摘要:奇珍异宝In this, the final chapter of our journey, we will look at some odds and ends.While we have certainly covered a lot of ground in t...
阅读全文
摘要:数组In the last chapter, we looked at how the shell can manipulate strings and numbers.The data types we have looked at so far are known...
阅读全文
摘要:字符串和数字Computer programs are all about working with data. In past chapters, we have focused onprocessing data at the file level. Howeve...
阅读全文
摘要:流程控制:for 循环In this final chapter on flow control, we will look at another of the shell’s looping constructs.The for loop differs from ...
阅读全文
摘要:位置参数One feature that has been missing from our programs is the ability to accept and processcommand line options and arguments. In thi...
阅读全文
摘要:流程控制:case 分支In this chapter, we will continue to look at flow control. In Chapter 28, we constructedsome simple menus and built the lo...
阅读全文
摘要:疑难排解As our scripts become more complex, it’s time to take a look at what happens whenthings go wrong and they don’t do what we want. I...
阅读全文
摘要:流程控制:while/until 循环In the previous chapter, we developed a menu-driven program to produce various kindsof system information. The prog...
阅读全文
摘要:读取键盘输入The scripts we have written so far lack a feature common in most computer programs —interactivity. That is, the ability of the p...
阅读全文
摘要:流程控制:if 分支结构In the last chapter, we were presented with a problem. How can we make our reportgenerator script adapt to the privileges ...
阅读全文
摘要:自顶向下设计As programs get larger and more complex, they become more difficult to design, codeand maintain. As with any large project, it i...
阅读全文
摘要:启动一个项目Starting with this chapter, we will begin to build a program. The purpose of this projectis to see how various shell features ar...
阅读全文
摘要:编写第一个 Shell 脚本In the preceding chapters, we have assembled an arsenal of command line tools. Whilethese tools can solve many kinds of ...
阅读全文
摘要:编译程序In this chapter, we will look at how to build programs by compiling source code.The availability of source code is the essential f...
阅读全文
摘要:打印After spending the last couple of chapters manipulating text, it’s time to put that text on paper. In this chapter, we’ll look at th...
阅读全文
摘要:格式化输出In this chapter, we continue our look at text related tools, focusing on programs that areused to format text output, rather than...
阅读全文
摘要:文本处理All Unix-like operating systems rely heavily on text files for several types of datastorage. So it makes sense that there are many...
阅读全文
摘要:正则表达式In the next few chapters, we are going to look at tools used to manipulate text. As wehave seen, text data plays an important rol...
阅读全文
摘要:本书是 The Linux Command Line 的中文版引言 (Introduction) 第一章 引言学习 shell 第二章 : 什么是 shell第三章:文件系统中跳转第四章:探究操作系统第五章:操作文件和目录第六章:使用命令第七章:重定向第八章:从 sh...
阅读全文
摘要:归档和备份 One of the primary tasks of a computer system’s administrator is keeping the system’sdata secure. One way this is done is by per...
阅读全文
摘要:查找文件 As we have wandered around our Linux system, one thing has become abundantly clear:a typical Linux system has a lot of files! Thi...
阅读全文
摘要:网络系统 When it comes to networking, there is probably nothing that cannot be donewith Linux. Linux is used to build all sorts of network...
阅读全文
摘要:存储媒介 In previous chapters we’ve looked at manipulating data at the file level. In this chapter,we will consider data at the device lev...
阅读全文
摘要:软件包管理 If we spend any time in the Linux community, we hear many opinions as to which of themany Linux distributions is “best.” Often, ...
阅读全文
摘要:自定制 shell 提示符 In this chapter we will look at a seemingly trivial detail — our shell prompt. Thisexamination will reveal some of the i...
阅读全文
摘要:vi 简介 There is an old joke about a visitor to New York City asking a passerby for directions tothe city’s famous classical music venue...
阅读全文
摘要:shell 环境 As we discussed earlier, the shell maintains a body of information during our shellsession called the environment. Data store...
阅读全文
摘要:进程 Modern operating systems are usually multitasking, meaning that they create the illusionof doing more than one thing at once by rap...
阅读全文
摘要:权限 Operating systems in the Unix tradition differ from those in the MS-DOS tradition inthat they are not only multitasking systems, bu...
阅读全文
摘要:键盘高级操作技巧 I often kiddingly describe Unix as “the operating system for people who like to type.” Ofcourse, the fact that it even has a ...
阅读全文
摘要:从 shell 眼中看世界 In this chapter we are going to look at some of the “magic” that occurs on the commandline when you press the enter key....
阅读全文
摘要:重定向 In this lesson we are going to unleash what may be the coolest feature of the commandline. It’s called I/O redirection. The “I/O” ...
阅读全文
摘要:使用命令 Up to this point, we have seen a series of mysterious commands, each with its ownmysterious options and arguments. In this chapte...
阅读全文
摘要:操作文件和目录 At this point, we are ready for some real work! This chapter will introducethe following commands:此时此刻,我们已经准备好了做些真正的工作!这一章节将会介...
阅读全文
摘要:探究操作系统 Now that we know how to move around the file system, it’s time for a guided tour of ourLinux system. Before we start however, w...
阅读全文
摘要:文件系统中跳转 The first thing we need to learn to do (besides just typing) is how tonavigate the file system on our Linux system. In this ch...
阅读全文
摘要:什么是 shell When we speak of the command line, we are really referring to the shell. Theshell is a program that takes keyboard commands ...
阅读全文
摘要:引言 I want to tell you a story.我想给大家讲个故事。No, not the story of how, in 1991, Linus Torvalds wrote the first version of the Linuxkernel....
阅读全文
摘要:目录用SQLite语句执行:利用SQLiteDatabase中自带的增删改查操作:SQLite数据库的事务介绍:目录一二的增删改查源码地址:https://github.com/liuchenyang0515/CreateDB3目录三事务介绍的源码地址:https...
阅读全文
摘要:android studio的模拟器一直waiting for target device to come online,demo也运行不上去如图所示: 你很可能运行的android 6.0 (API 23)模拟器 解决方案就是你先打开模拟器,再把运行项目就好了,或者...
阅读全文
摘要:先来个pull解析测试,然后是pull解析用法说明,文章末尾附有xml生成方式。学习目标:首先是解析测试例子给出的对于常用字段的理解,然后是pull解析常用套路方法,最后是xml的2种生成方式。经常写代码需要申请动态权限,在最后例子也顺带记录下来,方便查阅。目录pul...
阅读全文
摘要:记录学习笔记:目录1.SharedPreferences存储2.文件存储:SharedPreferences存储源码(QQlogin2):https://github.com/liuchenyang0515/QQlogin2文件存储源码(QQlogin):https:...
阅读全文
摘要:首先,我们创建文件(android6.0及以下,也就是API 23及以下示范)import android.os.Bundle;import android.support.v7.app.AppCompatActivity;import java.io.Buffere...
阅读全文
摘要:在C盘占很大的内存大约就2种原因:1.SDK占内存太大2.AVD模拟器占内存太大第一种情况,移动SDK(用android studio不需要配置环境变量)先移动C盘的Android目录,里面是Sdk目录文件,复制到E盘,再删掉C盘的sdk,然后如下图所示在Androi...
阅读全文