在Linux系统中,有一个很重要的目录——/usr目录。关于这个目录名称的由来,网上主要有下面几种说法:user的缩写User Shareable
Read-only的缩写Unix/User System Resources的缩写Unix/User Software Resources的缩写目前大多...
分类:
系统相关 时间:
2014-05-08 09:07:43
阅读次数:
347
今天用VC下编译libevent的http-server示例,却发现用浏览器怎么也打不开网页,跟踪下来,发现运行到evbuffer_add_file
函数就阻塞了起初怀疑是 libevent的evbuffer_add_file函数实现有Bug,所以自己写了个简单的实现来替换 //evbuffe...
分类:
其他好文 时间:
2014-05-08 08:57:17
阅读次数:
441
利用jQuery的ajax函数就可以实现异步上传图片了。一开始我是想在处理程序中,直接用context.Request.Files来获取页面中的input
file,但是不知道为什么一次获取不了。网上说的,Form中要设置enctype="multipart/form-data"和 method="...
分类:
Web程序 时间:
2014-05-08 07:46:26
阅读次数:
401
首先展示是我们的首界面。下面展示的是初级的代码及界面。using System;using
System.Collections.Generic;using System.ComponentModel;using System.Data; using
System.Drawing;using Sys...
分类:
其他好文 时间:
2014-05-08 07:32:09
阅读次数:
447
hive 中的union all是不能在sql语句的第一层使用的,否则会报Top level
UNION is not supported currently 错误;例如如下的方式:select id,name from user where type
= 1union allselect id,n...
分类:
其他好文 时间:
2014-05-08 07:17:42
阅读次数:
420
先上源码: 1 using System; 2 using
System.Diagnostics; 3 using System.IO; 4 using System.IO.Compression; 5 using
System.Text; 6 7 namespace TestCompress 8....
分类:
其他好文 时间:
2014-05-08 07:04:16
阅读次数:
360
连接查询值得注意的是:字段前必须加表名,以便混淆1 -- 多表连接查询和子查询2 select
* from dbo.stu_info ,dbo.sname23 -- 加连接规则的查询 where4 sele...
分类:
数据库 时间:
2014-05-08 06:34:30
阅读次数:
795
最近看了几个 用 go 写的实现 gmail 发送邮件的程序,发现代码甚是简单。然后仔细研究了一下
smtp 协议,已经相关技术。1.go code调研go 的 "net/smtp"包的两个函数就可以了。func SendMail(addr string, a
Auth, from string, ...
分类:
其他好文 时间:
2014-05-08 06:23:22
阅读次数:
511
一、安装路径在哪? Android应用安装涉及到如下几个目录:
system/app系统自带的应用程序,无法删除。data/app用户程序安装的目录,有删除权限。安装时把apk文件复制到此目录。data/data存放应用程序的数据。data/dalvik-cache将apk中的dex文件安装到dal...
分类:
移动开发 时间:
2014-05-08 06:12:00
阅读次数:
567
①打印:***************for(intx=1;x<=5;x++){
for(inty=x;y<=5;y++){
System.out.print("*");//向下一般的格式for(inty=x;y<=5;y++)
}
System.out.println();
}②打印:***************for(intx=1;x<=5;x++){
for(inty=1;y<=x;y++){
System.out.print("*");//..
分类:
编程语言 时间:
2014-05-08 03:41:13
阅读次数:
295