博文

HTTP status code

List of HTTP status codes : http://en.wikipedia.org/wiki/List_of_HTTP_status_codes   1xx Informational   2xx Success   3xx Redirection   4xx Client Error   5xx Server Error java.net.HttpURLConnection.getResponseCode(): Gets the status code from an HTTP response message. For example: the following codes from w w w . c ode java. net/java-se/networking/use-httpurlconnection-to-download-file-from-an-http-url /*  * To change this license header, choose License Headers in Project Properties.  * To change this template file, choose Tools | Templates  * and open the template in the editor.  */ import java.io.File; import java.io.FileOutputStream; import java.io.IOException; import java.io.InputStream; import java.net.HttpURLConnection; import java.net.MalformedURLException; import java.net.URL; /**  * A utility that downloads a file from a URL.  * @author www.codejava.net  */ public class HttpDownloadUtility {   ...

Unicode 5.0 and javascript ☯ ☯ ࿊ ࿊䷀

易经六十四卦符号 YI JING H exagram S ymbol ( &#19904 ) ( &#19905 ) ( &#19906 ) ( &#19907 ) ( &#19908 ) ( &#19909 ) ( &#19910 ) ( &#19911 ) ( &#19912 ) ( &#19913 ) ( &#19914 ) ( &#19915 ) ( &#19916 ) ( &#19917 ) ( &#19918 ) ( &#19919 ) ( &#19920 ) ( &#19921 ) ( &#19922 ) ( &#19923 ) ( &#19924 ) ( &#19925 ) ( &#19926 ) ( &#19927 ) ( &#19928 ) ( &#19929 ) ( &#19930 ) ( &#19931 ) ( &#19932 ) ( &#19933 ) ( &#19934 ) ( &#19935 ) ( &#19936 ) ( &#19937 ) ( &#19938 ) ( &#19939 ) ( &#19940 ) ( &#19941 ) ( &#19942 ) ( &#19943 ) ( &#19944 ) ( &#19945 ) ( &#19946 ) ( &#19947 ) ( &#19948 ) ( &#19949 ) ( &#19950 ) ( &#19951 ) ( &#19952 ) ( &#19953 ) ( &#19954 ) ( &#19955 ) ( &#19956 ) ( &#19957 ) ( &#19958 ) ( &#19959 ) ( &#19960 ) ( &#19961 ) ( &#19962 ) ( &#19...

SQL Server connection strings

1.  jdbc:sqlserver://192.168.10.220\ northstar ;databaseName=Northstar The server\instance name syntax used in the server option is the same for all SQL Server connection strings. northstar is a instance name. each instance match a port of TCP .  2.  jdbc:sqlserver://192.168.10.220: 1433 ;databaseName=Northstar (Provider=SQLOLEDB.1;Password=*;Persist Security Info=True;User ID=sa;Initial Catalog= Northstar ;Data Source=192.168.10.220 ,1433 ) 1433 is the default port for SQL Server, can be dynamically assigned, such as 1863, 1875... netstat -aon | findstr 1433 * A .udl file can be used to set connection string at client side. Creating and Configuring Universal Data Link (.udl) Files * svrnetcn.exe at server side sets port. * netstat command displays protocol statistics and current TCP/IP network connections. (netstat -an) Ref: https://www.connectionstrings.com/sql-server/  http://support2.microsoft.com/?id=832017 This article contains several refe...

prototyping - Axure

www.axure.com Axure RP gives you the wireframing, prototyping and documentation tools needed to make informed design choices, persuade any skeptics, and document your design.

系统保留分区简介

产生保留分区 一般来说,100MB的系统保留分区只有在以下两种情况都发生时才会产生: 1) 全新安装 Windows 7 ; 2) 使用Windows 7 分区 画面进行分区 格式化 不产生保留分区 以下任意一种情况发生,100MB的系统保留分区都不会产生: 1) 升级安装Windows 7; 2) 在全新安装之前使用其他工具(比如gdisk.exe)先对硬盘进行 分区 格式化 ; 3) 在全新安装过程中使用diskpart.exe对硬盘进行分区格式化; 要执行全新安装,而又不想使用这个100MB的系统保留分区,可以选择在执行全新安装之前使用其他分区工具比如gdisk.exe来对硬盘进行分区格式化,或者直接进行全新安装,但是在分区画面,使用diskpart.exe来进行分区。 Windows 7的100MB的保留 分区 是Windows 7的 活动分区 ,类似于Linux的/boot. 在Windows 7 beta版本的时候就在安装Windows 7过程中会分出一个100MB的小分区(早期版本的Win7是200MB),这是Windows 7的活动分区,启动 引导文件 存放的分区。 这其实有点类似 Linux 的做法,Linux在安装过程中可以专门分出一个100MB左右的分区作为它的 引导分区 (/boot),这个分区主要用来存放grub.exe,menu.lst, *fs_stage_1.5, initrd,以及 内核 文件vmlinuz的等Linux启动引导过程会用到的文件。 类似地,Windows 7的这个保留分区是它的 主分区 , 系统分区 , 活动分区 。Windows 7在启动过程中会从这个 分区 启动,然后再启动C盘目录。 Windows 7的启动过程 : BIOS--MBR-- Bootmgr--BCD--Winload.exe-- 内核 加载 开机后,BIOS进行开机 自检 (POST),然后选择从硬盘进行启动,加载硬盘的MBR并把控制权交给MBR(MBR是硬盘的第一个 扇区 ,它不在任何一个分区内); MBR会搜索64B大小的 分区表 ,找到4个主分区(可能没有4个)的活动分区并确认其他主分区都不是活动的,然后加载活动分区的第一个扇区(Bootmgr)到内存;...

Oracle_Home in regedt32

图片
The subkey \HKEY_LOCAL_MACHINE\SOFTWARE\ORACLE in the Registry Editor window. For subsequent installations to different Oracle homes on the same computer, the path is \HKEY_LOCAL_MACHINE\SOFTWARE\ORACLE\ HOMEID where ID is the unique number identifying the Oracle home,such as "KEY_OraDb11g_home1", "KEY_OraDB12Home1"

MIT License

MIT License : free for use on commercial sites.