ubuntu 14.04运行asp.net core程序所需要的一些运行库支持 apt-get install -y libunwind8 libunwind8-dev gettext libicu-dev liblttng-ust-dev libcurl4-openssl-dev libssl-dev uuid-dev
.htaccess 隐藏index.php
.htaccess 隐藏index.php <IfModule mod_rewrite.c> RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ index.php?/$1 [L] </IfM...
放下对技术的执着
选择技术的标准 选择能既好又快完成需求的,不浪费时间的、不折腾的,最主要的是自己熟悉的技术;而不是选择最新最潮的技术。许多新技术就像潮流一样,一年一个新花样,无穷无尽层出不穷。人的精力是有限的,...
ASP.NET WebForm 下载文件,兼容各个浏览器,下载文件名无乱码
ASP.NET WebForm 下载文件,兼容各个浏览器,下载文件名无乱码 protected void btnDownload_Click(object sender, EventArgs e) { string webPath = Request.QueryString["filename"]; string fi...
apache禁止使用服务器IP直接访问
apache禁止使用服务器IP直接访问 #禁止使用IP直接访问服务器 <VirtualHost *:80> ServerName 47.89.43.68 #服务器IP DocumentRoot "/www/htdocs/guest" <Directory /> Orde...
asp.net core显示环境信息
在razor中添加如下代码,即可在页面显示服务器的环境信息。 @inject Microsoft.Extensions.PlatformAbstractions.IRuntimeEnvironment env <html> <body> <img src="images/ASP-NET-Ban...
tar打包目录
tar打包目录 打包 tar -czf default.tar.gz default 解压 tar -xvf xxx.tar.gz
VC获取程序所在的目录
VC获取程序所在的目录 CString GetCurDir() { char sDrive[_MAX_DRIVE ]; char sDir[_MAX_DIR ]; char sFilename[_MAX_FNAME ], Fil...
VC++获取控制台命令的输出结果
VC++获取控制台命令的输出结果 #include "stdafx.h" #include <Windows.h> #include <iostream> #include <string> using namespace std; BOOL ExecDosCmd(string cmd, string &outp...
C++获取windows系统分区大小及使用情况
C++使用Windows SDK获取系统分区大小以及使用情况,代码如下: // ConsoleApplication1.cpp : 定义控制台应用程序的入口点。 // #include "stdafx.h" #include <stdint.h> #include <windows.h>...
