HA

Pgm

eclipse中一键全部展开目录树 在package explorer中使用*能展开全部的目录树 但是会把引用的包也都全部展开,java文件的成员
VirtualBox主机虚拟机共享剪贴板设置之后没用的问题 在设置中启用共享剪贴板之后,还要虚拟机本身安装增强功能之后才可以使用。 具体方法为:
Java 将对象序列化为字符串 读取字符串反序列化为对象 import java.io.Serializable; class test { public static String object2String(Object obj) { String objBody = null; ByteArrayOutputStream baops = null; ObjectOutputStream oos = null; try { baops = new ByteArrayOutputStream(); oos = new ObjectOutputStream(baops); oos.writeObject(obj); byte[] bytes = baops.toByteArray(); objBody = Base64.encodeToString(bytes, Base64.DEFAULT); } catch(IOException e) { Log.e(tag,
C#重命名文件夹下的文件 var files = System.IO.Directory.EnumerateFiles(desPath); if(formatStr.Length == 0) { formatStr = "{0}.jpg"; } int count = 1; foreach(String fileName in files) { if (new System.IO.FileInfo(fileName).Length > 1024 * 75) { System.IO.File.Move(fileName, System.IO.Path.Combine(desPath, String.Format(formatStr, count)));//对文件进行重命名 count++; } } 判断系统
sqlserver 修改主键约束 sp_help book if exists (select 1 from sysobjects where name = 'PK__book__AFEBF550AD55A29F') begin print 'pk exists' alter table book drop constraint PK__book__AFEBF550AD55A29F end alter table book add constraint PK__book primary key clustered ( book_name asc, id asc ) reference SQL Server 创建表 添加主键 添加列常用SQL语句
在C#项目中使用sqlite 引入文件 从官网下载了几个dll文件都有问题之后,最终放弃,使用VS自带的NuGet包管理工具,搜索安装即可,没有