自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(40)
  • 收藏
  • 关注

原创 Ubuntu下Nginx rtmp直播 hls http m3u8 及 直播录制

首先进入到nginx.conf的配置文件sudo vim /usr/local/nginx/conf/nginx.conf然后编辑这个文档 新增一个根节点内容如下rtmp{ server{ listen 1935; #rtmp 端口 1935为nginx 默认端口 chunk_size 4000; #流整合的最大的块大小。默认值为 4096。这个值...

2019-03-25 10:48:09 3376

原创 ubuntu nginx 安装

1安装需要的包sudo apt-get install build-essential libpcre3 libpcre3-dev libssl-devsudo apt-get install unzip2创建一个目录sudo mkdir /usr/nginx-installcd /usr/nginx-install3下载 nginx 包及 rtmp扩展 源码wg...

2019-03-13 08:53:46 204

原创 搭建office online server 备忘录

之前搭建OWAS出了很多问题.于是就放下来.最近项目又遇到需要在线预览office.所以再搞一盘.这次预览通过了才写的这个备忘录.因为这边只做预览,不做编辑(因为这个东西要授权,而且巨贵),所以编辑这块并未进行测试1.准备两台机器都是windows_server_2012_r2版本,一定都要干干净净,什么都不要搞包括office2.区分两台机器一台为域控找配置差一点的都阔仪...

2019-03-11 09:03:23 428

原创 Oracle 创建只读帐号

首先登录Sysas sysdba--创建用户create user ordldy identified by ordldy;--给他一些基础的权限grant connect to ordldy;grant create synonym to ordldy;grant create session to ordldy;--找到所有的表 做同义词授权 把结果复制出来...

2019-03-01 15:45:53 599

转载 身份证验证类CardHelp

using System;using System.Collections.Generic;using System.Text;namespace QualityTesting.Common{ public class CardHelp { /// <summary> /// 根据身份证号获取生日 /// &lt...

2018-11-20 11:32:40 303

转载 动态引用WebSerivce[方式1]

.添加引用WebSerivce2.继承3.internal 重写4.引用实例:WebService为:http://www.webxml.com.cn/WebServices/TraditionalSimplifiedWebService.asmxusing System;using System.Collections.Generic;using System.Linq;us...

2018-11-20 11:32:16 122

原创 js 混淆加密/解密

加密:http://tool.chinaz.com/js.aspx解密:javascript:s=document.documentElement.outerHTML;document.write('<body></body>');document.body.innerText=s;不论加密如何复杂,最终都要还原成浏览器可以解析的html代码,而docume...

2018-09-25 09:19:24 6026

转载 sql server 排序按笔画

select * from table order by cell collate Chinese_PRC_Stroke_ci_as (按笔画循序排序 )Chinese_PRC_CS_AI_WS 前半部份:指UNICODE字符集,Chinese_PRC_指针对大陆简体字UNICODE的排序规则。排序规则的后半部份即后缀 含义:   _BIN 二进制排序    _CI(CS) 是否区...

2018-09-25 09:19:15 708

转载 C#中Thread.sleep()

我们可能经常会用到 Thread.Sleep 函数来使线程挂起一段时间。那么你有没有正确的理解这个函数的用法呢?思考下面这两个问题:1、假设现在是 2008-4-7 12:00:00.000,如果我调用一下 Thread.Sleep(1000) ,在 2008-4-7 12:00:01.000 的时候,这个线程会 不会被唤醒?2、某人的代码中用了一句看似莫明其妙的话:Thread.Sleep(...

2018-09-25 09:18:56 159

转载 sql 2008 修改链接服务器 Rpc &Rpc Out

USE [master]GOEXEC master.dbo.sp_serveroption @server=N'LinkName', @optname=N'rpc', @optvalue=N'true'GOEXEC master.dbo.sp_serveroption @server=N'LinkName', @optname=N'rpc out', @optvalue=N'true'...

2018-09-25 09:18:47 764

原创 游标循环插入 SQL 事例

create PROCEDURE sendWord @WorkID uniqueidentifier, @GradeID uniqueidentifier, @ClassID uniqueidentifier, @SchoolID uniqueidentifier, @TeacherID int, @SendTime dateTime, @WorkState char(1) a...

2018-09-25 09:18:37 698

原创 C# 四舍六入无成双 函数

public double GetFloatPic(string t) { double tmp = 0.00; string[] arr = t.ToString().Split('.'); if (arr.Length == 2) { string ...

2018-09-25 09:18:24 406

原创 .Net 4.0 3个新东西

using System;using System.Collections.Generic;using System.Web;using System.Web.UI;using System.Web.UI.WebControls;namespace WebApplication1{ public partial class WebForm1 : System.Web.UI....

2018-09-25 09:18:08 156

原创 Excel导入数据库错误:The 'Microsoft.ACE.OLEDB.14.0' provider is not registered on the local machine

windows 2008 r2 x64版本的操作系统中通过oledb提供程序连接访问Excel2010/2007时,程序会报如下错误:System.InvalidOperationException: The 'Microsoft.ACE.OLEDB.14.0' provider is not registered on the local machine.此查找资料认为产生此种错误的原因有...

2018-09-25 09:17:42 1487

原创 SQL SERVER 和Excel的插入,导出,导入

1、在SQL SERVER里查询Excel数据: -- ====================================================== SELECT * FROM OpenDataSource( 'Microsoft.Jet.OLEDB.4.0', 'Data Source="c:\book1.xls";User ID=Admin;Password=;Ext...

2018-09-25 09:17:28 570

原创 UpdatePanel中使用FileUpload

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="AuditDrugExcel.aspx.cs" Inherits="JinJiangVideoLiveSystem.Manage.AuditDrugExcel" %><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 T

2018-09-25 09:17:11 269

原创 SQL Server 阻止了对组件 'Ad Hoc Distributed Queries' 的 STATEMENT'OpenRowset/OpenDatasource' 的访问,因为此组件已作为此服

启用Ad Hoc Distributed Queries:exec sp_configure 'show advanced options',1reconfigureexec sp_configure 'Ad Hoc Distributed Queries',1reconfigure 使用完成后,关闭Ad Hoc Distributed Queries:exec sp_con...

2018-09-20 09:26:45 499

原创 asp.net xsd验证xml文件代码

using System;using System.Collections.Generic;using System.Linq;using System.Web;using System.Web.UI;using System.Web.UI.WebControls;using System.Xml;using System.Xml.Schema;namespace WebAppl...

2018-09-20 09:26:18 247

原创 查询Execl转化为DataSet转化为xml

using System;using System.Web;using System.Web.UI;using System.Web.UI.WebControls;using System.Data;using System.Data.OleDb;using System.Xml;using System.IO;using System.Xml.Schema;namespac...

2018-09-20 09:24:48 88

原创 将Office文件转换为Swf

/// <summary> /// 将Office文件转换为Swf(需要print2flash软件) /// </summary> /// <param name="srcFile">需要转换的文件地址和文件名</param> /// <param name="swfFile...

2018-09-20 09:24:31 677

原创 C# 文件/目录监听示例代码

using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;using System.Windows.Forms;using System.IO...

2018-09-20 09:24:02 264

原创 sql语句导入execl文件(office2007版)

use tablenamegotruncate table tablenamegoinsert into table(x,x,x,x,x,x)select x,x,x,x,x,xfrom OpenDataSource('Microsoft.Ace.OLEDB.12.0','Data Source="xls文件路径";Extended Properties="Excel 12.0;HD...

2018-09-20 09:23:36 335

转载 Row_Number分页

select *from ( select row_number() over(partition by archiveTYpe order by operdate desc) as rownum ,* from archiveinfo ) as t where rownum between (((@pageindex-1)*@pagesize)+1) and (@pageindex*@...

2018-09-20 09:23:15 457

原创 sql汉字转拼音函数

CREATE FUNCTION [dbo].[GetPY] ( @str nvarchar(4000) ) returns nvarchar(4000) as begin declare @word nchar(1),@PY nvarchar(4000) set @PY='' while len(@str)>0 begin s...

2018-09-20 09:22:54 423

原创 firefox下onblur的focus不好用解决代码

if(/[^0-9]/g.test(this.value)){alert('只能输入数字');window.setTimeout(function(){document.getElementById('txtposncount').focus();}, 0);} 

2018-09-20 09:22:32 357

原创 XML+XSL简单示例

<?xml version="1.0" encoding="utf-8" ?><?xml-stylesheet href="XSLTFile1.xslt" type="text/xsl"?><Count> <users> <name>胡杨</name>

2018-09-20 09:22:06 2123

原创 JAVA POI组件 针对Word模版替换 V2 可替换图片

private CustomXWPFDocument searchAndReplace(String srcPath, Map<String, Object> map) { try { CustomXWPFDocument document = new CustomXWPFDocument(POIXMLDocument.openPackage(srcPath)...

2018-08-24 11:05:12 2404 2

原创 Office Web Apps Server 搭建(一)

准备工作按照微软的说法 需要Windows Server 2008及以上.看官方Server 2008 需要Server08 R2 Sp1.NetFrameWork4.5PowerShell 3.0Win7Sp1 和 WinServer08R2Sp1平台更新(KB26670838)卧槽.好复杂 于是我这使用Windows Server 2012 R2那么你需要安装 ...

2018-08-24 11:03:23 3795

原创 Office Web Apps Server 搭建(二)

域配置  前面我们卡到域那个地方.这篇我们就来搞定域首先我们来安装域服务器和DNS 角色管理上图 下一步 下一步      装完重启.....我觉得在Windows下安装完成一个东西 重启是个好习惯.不然你都知道炸到哪在然后我们开始来配置这个域    老规矩 下一步 完成 重启.这部应该时间会比较长...

2018-08-24 11:01:02 799

原创 Office Web Apps Server 搭建(三)

如果上诉都没有问题 那么应该像网上说的一样 但是我就遇到问题了. 一切搭建完成后.不报错不扯拐.不知道为什么 所有aspx 404于是我重新New-OfficeWebAppsFram -InterletURI "" -ExternalURI "" -AllowHttp -EditingEnable意思是 创建一个新的office 场 内部访问地址  外部访问地址  允许http...

2018-08-24 10:55:29 822 1

原创 debian9 安装MariaDB 帐号密码无法登录

Access denied for user 'root'@'localhost' 先退出mysql  执行 mysql_secure_installation    然后设置你的新密码回到mysqluse mysql; update user set plugin='' where User='root'; flush privileges; exit; ...

2018-08-24 10:54:03 989

原创 mybatis 中 if判断字符串相等

<if test=" ids == 1 ">or<if test=" ids == '1'">都不行 最后百度到如下写法<if test=" ids == '1'.toString() ">成功

2018-08-24 10:52:41 353

原创 Ubuntu Redis安装及配置

今天说ubuntu 17.04的redis 安装及配置1. sudo apt-get install redis-server  如果中国服务器不扯拐你就可以等他下载完 就用很荣幸......今天我遇到404了,excuse me?官方源!!!!好另外想办法.下面进入 第二招自己搞1.准备好资源 这我使用3.2.6http://download.redis.io/r...

2018-08-24 10:50:43 141

原创 SignalR Hubs 部署到服务器IIS 404错误

发现于 SiteserverCMS今早将SiteserverCMS 转移到正式服务器上,老是出现这个问题.表示不能理解.......其他所有开发机及自己的虚拟机都是好的......尝试了各种操作...最后在web.config中修改配置即可<modules runAllManagedModulesForAllRequests="true">方法虽然很粗暴.对服务器...

2018-08-24 10:45:40 1993

原创 linux下配置Java环境

各版本通用........1.备准文件 在这里使用java10 (传送门)2.将文件上传到linux(因为我这是windows......)   2.1准备上传工具 这里使用Ubuntu   2.1.1 sudo apt install lrzsz  等待安装完成   2.2将文件上传至你需要的目录   2.2.1 sudo rz 然后弹出个对话框选择文件.3.解压ta...

2018-08-24 10:44:39 302

转载 备份与恢复 Oracle12C

      emmmmm......接手项目用到了这个东西.发现以前的备份与恢复不太好用了..........在多方咨询后.记录下过程....需要注意的点:1.备份与恢复的表空间需要一致.2.使用以下命令查询到 数据库备份路径select *from dba_directories where directory_name='DATA_PUMP_DIR';...

2018-08-24 10:40:00 1750

原创 mysql8的安装

官方说 mysql8 比mysql5.7 快了2倍 卧槽.简直不敢相信...于是就下载了 msi版本的 本想 full 下一步 下一步 下一步  完成.....结果.他需要vc++  2015版本.....奈何我机器上又有vc++2017 它又不认我的新版本....马蛋.自己动手丰衣足食系列开始首先 下载zip 名字叫mysql-8.0.11-win64.zip 不要问我在...

2018-07-31 09:04:43 117

原创 SpringBoot 加入Ueditor

官方提供的只有jsp版本.....emmmmmm......................又有那么多功能不想自己重写....好在有一堆java文件...那好办了......首先创建一个 Ueditor包把官方的java文件 全部拷贝进去.....改掉Import 让他不报错.这里需要用到几个包.修改Pom.xml添加<dependency&gt...

2018-07-25 17:33:10 409

原创 在IDEA中 使用Git 出现错误 unable to auto-detect email address

 是因为错误的email配置造成的.打开项目git根目录.git目录然后 右键 Git Bash Here -> 输入 [vi|vim] config 取决你有哪个工具-----------------------------------------------[VIM]进去后 将光标移动到最后一行 按两个 "a" 然后你就可以输入了-------------...

2018-07-25 17:30:25 1862

原创 英雄无敌3.win10下无法工作

 32位的.据说打上11.reg文件就阔仪了.但是我是64位的系统.所以打开txtREGEDIT4[HKEY_LOCAL_MACHINE\Software\Wow6432Node\New World Computing][HKEY_LOCAL_MACHINE\Software\Wow6432Node\New World Computing\Heroes of Might ...

2018-07-25 17:28:27 20208

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除