JSON Web Tokens介绍
What is JSON Web Token?JSON Web Token (JWT) is an open standard (RFC 7519) that defines a compact and self-contained way for securely transmitting information between parties as a JSON object. This...
C#设置WebBrowser默认的IE内核
通常情况下,直接调用WebBrowser控件的时候默认是IE7内核,实在是不美观。using Microsoft.Win32;
using System;
using System.ComponentModel;
namespace ClassLibrary
{
/// <summary>
/// 设置Webbrowser控件所用IE内核版本
/// &...
c# 检测操作系统版本
通过System.Environment.OSVersion.Version获得操作系统的版本号,进而判断操作系统版本,操作系统和对应版本号如下表。操作系统PlatformIDMajor versionMinor versionWindows 95Win32Windows40Windows 98Win32Windows410Windows MeWin32Windows490Windows N...
merge unrelated histories错误
git pull --allow-unrelated-histories origin master
PHP内置web服务器
从PHP5.4.0起,PHP内置了Web服务器,这对于认为需要Apache或Nginx才能预览PHP应用的开发者来说又是一个隐藏功能。这个内置的Web服务器不应该用于生产环境,但对于本地开发来说是个极好的工具。启动这个内置的Web服务器很容易启动,打开终端(Windows下对应是cmd命令行),进入项目根目录,执行如下命令即可:php -S localhost:8000上述命令会新启动一个P...
BCrypt算法的C#实现
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Runtime.Serialization;
using System.Security.Cryptography;
using System.Text;
//
// Copyright (c) 2006 Damien...
winform中TreeView透明背景
TreeView本身不支持透明背景,重写WndProc以支持背景图片。using System;
using System.Drawing;
using System.Drawing.Drawing2D;
using System.Windows.Forms;
using System.ComponentModel;
using System.Runtime.InteropServices;...