2019年2月1日

Asp.Net Core run on Ubuntu

摘要: dotnet *.dll 阅读全文

posted @ 2019-02-01 14:23 刘顺利 阅读(89) 评论(0) 推荐(0) 编辑

2019年1月31日

.net core中使用GB2312编码

摘要: 引用 System.Text.Encoding.CodePages 注册 Encoding.RegisterProvider(CodePagesEncodingProvider.Instance); 阅读全文

posted @ 2019-01-31 16:30 刘顺利 阅读(301) 评论(0) 推荐(0) 编辑

2019年1月30日

ubuntu mysql 安装

摘要: 安装mysql sudo apt-get install mysql-server mysql-client 测试是否安装成功 sudo netstat -tap | grep mysql 相关操作 登录 mysql -uroot -p 检查MySQL服务器占用端口 netstat -nlt|gre 阅读全文

posted @ 2019-01-30 17:12 刘顺利 阅读(121) 评论(0) 推荐(0) 编辑

2019年1月28日

samba的安装

摘要: 修改文件sudo gedit /etc/samba/smb.conf 一. samba的安装: 二. 创建共享目录: 三. 创建Samba配置文件: 1. 保存现有的配置文件 2. 修改现配置文件 在smb.conf最后添加 四. 创建samba帐户 然后会要求你输入samba帐户的密码 [如果没有 阅读全文

posted @ 2019-01-28 13:35 刘顺利 阅读(184) 评论(0) 推荐(0) 编辑

2019年1月25日

查看目录中的内容及权限

摘要: ls -a 显示全部的文件及文件夹,包括隐藏的文件或文件夹 ls -l 显示较全的文件信息,包括权限、用户、用户组等。 ls -al 阅读全文

posted @ 2019-01-25 11:22 刘顺利 阅读(365) 评论(0) 推荐(0) 编辑

文件夹权限

摘要: sudo chmod -R 777 ××× -R代表当前文件夹及其内部所有内容 sudo chmod 600 ××× (只有所有者有读和写的权限)sudo chmod 644 ××× (所有者有读和写的权限,组用户只有读的权限)sudo chmod 700 ××× (只有所有者有读和写以及执行的权限 阅读全文

posted @ 2019-01-25 11:21 刘顺利 阅读(256) 评论(0) 推荐(0) 编辑

更改端口

摘要: dotnet WebApplication1.dll --server.urls "http://*:8080" 阅读全文

posted @ 2019-01-25 08:53 刘顺利 阅读(154) 评论(0) 推荐(0) 编辑

2019年1月24日

路径问题

摘要: 在进行asp.net core 开发时,路径应该使用“/”,而非"\",以兼容linux. 阅读全文

posted @ 2019-01-24 16:33 刘顺利 阅读(103) 评论(0) 推荐(0) 编辑

2019年1月23日

Install the .NET SDK In Ubuntu

摘要: 安装环境wget -q https://packages.microsoft.com/config/ubuntu/18.04/packages-microsoft-prod.deb sudo dpkg -i packages-microsoft-prod.deb sudo add-apt-repos 阅读全文

posted @ 2019-01-23 11:12 刘顺利 阅读(160) 评论(0) 推荐(0) 编辑

2019年1月22日

切换到root用户

摘要: 通过su切换到root用户首先要重设置root用户的密码:xzm@ubuntu:~$ sudo passwd root登录root:su之后就可以自由的切换到root用户了xzm@ubuntu:~$ su输入root用户的密码即可。su "king" 或者 exit回到用户权限 阅读全文

posted @ 2019-01-22 11:39 刘顺利 阅读(284) 评论(0) 推荐(0) 编辑

网络相关

摘要: 1.1 安装ifconfigSudu apt install net-tools1.2 查看网络ifconfig 阅读全文

posted @ 2019-01-22 11:38 刘顺利 阅读(89) 评论(0) 推荐(0) 编辑

用户

摘要: w查看当前活跃的用户列表groups 查看当前登录用户的组内成员groups test 查看test用户所在的组,以及组内成员whoami 查看当前登录用户名cat /etc/passwd查看所有的用户信息cat /etc/passwd|grep 用户名,用于查找某个用户cat /etc/group 阅读全文

posted @ 2019-01-22 11:37 刘顺利 阅读(113) 评论(0) 推荐(0) 编辑

samba

摘要: samba,samba-client, samba-common 一句 sudo apt-get install samba samba-client 就能全部装上 启动samba也很简单: sudo /etc/init.d/samba start 设置samba的密码, 可以先添加samba用户, 阅读全文

posted @ 2019-01-22 11:36 刘顺利 阅读(83) 评论(0) 推荐(0) 编辑

用户操作

摘要: 一,组操作 1,创建组 groupadd test 增加一个test组 2,修改组 groupmod -n test2 test 将test组的名子改成test2 3,删除组 groupdel test2 删除 组test2 4,查看组 a),查看当前登录用户所在的组 groups,查看apache 阅读全文

posted @ 2019-01-22 10:25 刘顺利 阅读(137) 评论(0) 推荐(0) 编辑

2018年12月7日

居中

摘要: position: absolute; width: 90%; min-height: 300px; background: #fff; left: 50%; top: 50%; -webkit-transform: translate3d(-50%, -50%, 0); transform: tr 阅读全文

posted @ 2018-12-07 17:27 刘顺利 阅读(83) 评论(0) 推荐(0) 编辑

replace 重写

摘要: String.prototype.myReplace = function (f, e) {//把f替换成e var reg = new RegExp(f, "g"); //创建正则RegExp对象 return this.replace(reg, e); } let str = "2018-8-1 阅读全文

posted @ 2018-12-07 16:40 刘顺利 阅读(222) 评论(0) 推荐(0) 编辑

2018年12月6日

JS数组添加元素的三种方式

摘要: 1、push() 结尾添加 数组.push(元素) 2、unshift() 头部添加 数组.unshift(元素) 3、splice() 方法向/从数组指定位置添加/删除项目,然后返回被删除的项目。 阅读全文

posted @ 2018-12-06 09:56 刘顺利 阅读(496) 评论(0) 推荐(0) 编辑

2018年11月20日

临沧融媒-技术服务支持

摘要: 阅读全文

posted @ 2018-11-20 09:56 刘顺利 阅读(261) 评论(0) 推荐(0) 编辑

2018年11月14日

Asp.Net Core 包

摘要: Scaffold-DbContext "Server=.;Database=ReXYControl;User ID=infos1;Password=20030102" Microsoft.EntityFrameworkCore.SqlServer -OutputDir Models Install- 阅读全文

posted @ 2018-11-14 18:09 刘顺利 阅读(168) 评论(0) 推荐(0) 编辑

2018年9月29日

CSS3 动画 可以参考

摘要: jquery HoverEx 插件样式。可以参考 @charset "utf-8"; .he-wrap { position: relative; zoom: 1; display: inline-block; *display: inline; position: relative } .he-v 阅读全文

posted @ 2018-09-29 13:24 刘顺利 阅读(144) 评论(0) 推荐(0) 编辑

CSS3 动画

摘要: 加载动画 鼠标划过效果一,缺点是效果比较简单 还可以通过jquery设置css实现 还可以通过animation:mymove 5s设置keysframe实现动画 阅读全文

posted @ 2018-09-29 12:51 刘顺利 阅读(130) 评论(0) 推荐(0) 编辑

2017年9月11日

完全居中

摘要: position: absolute; top: 0; height: 100%; width: 100%; display: flex; flex-direction: row; justify-content: center; align-items: center; position: abs 阅读全文

posted @ 2017-09-11 07:17 刘顺利 阅读(134) 评论(0) 推荐(0) 编辑

2017年7月14日

List.Jion

摘要: private void simpleButton1_Click(object sender, EventArgs e) { IList list = new List(); Channel item = new Channel(); item.ID = 1; item.Channel... 阅读全文

posted @ 2017-07-14 17:41 刘顺利 阅读(143) 评论(0) 推荐(0) 编辑

2016年6月30日

$.ajax()方法详解

摘要: 1.url: 要求为String类型的参数,(默认为当前页地址)发送请求的地址。 2.type: 要求为String类型的参数,请求方式(post或get)默认为get。注意其他http请求方法,例如put和delete也可以使用,但仅部分浏览器支持。 3.timeout: 要求为Number类型的 阅读全文

posted @ 2016-06-30 20:12 刘顺利 阅读(193) 评论(0) 推荐(0) 编辑

2016年6月29日

jquery 焦点事件

摘要: $(function () { $('.search_input').bind({ focus: function () { if (this.value == this.defaultValue) { ... 阅读全文

posted @ 2016-06-29 18:02 刘顺利 阅读(444) 评论(0) 推荐(0) 编辑

2016年4月12日

SQL注入攻击

摘要: SQL注入攻击的总体思路是: 1.发现SQL注入位置;2.判断后台数据库类型;3.确定XP_CMDSHELL可执行情况4.发现WEB虚拟目录5. 上传ASP木马;6.得到管理员权限; 一、SQL注入漏洞的判断 一般来说,SQL注入一般存在于形如:HTTP://xxx.xxx.xxx/abc.asp? 阅读全文

posted @ 2016-04-12 11:59 刘顺利 阅读(201) 评论(0) 推荐(0) 编辑

2016年3月21日

ffmpeg与ffserver的协同工作

摘要: ffmpeg和ffserver配合使用可以实现实时的流媒体服务,可以实时传输来自摄像头的数据,客户端可以采用HTTP、RTSP、RTP协议等播放视频流。 一、概念和流程 ffmpeg和ffserver配合使用涉及到四个概念: 1. ffmpeg,负责媒体文件的转码工作,把你服务器上的源媒体文件转换成 阅读全文

posted @ 2016-03-21 21:48 刘顺利 阅读(6096) 评论(0) 推荐(0) 编辑

2016年3月19日

FFmpeg获取DirectShow设备数据(摄像头,录屏)

摘要: 这两天研究了FFmpeg获取DirectShow设备数据的方法,在此简单记录一下以作备忘。本文所述的方法主要是对应Windows平台的。 命令执行后输出的结果如下(注:中文的设备会出现乱码的情况)。列表显示设备的名称很重要,输入的时候都是使用“-f dshow -i video="{设备名}"”的方 阅读全文

posted @ 2016-03-19 20:38 刘顺利 阅读(836) 评论(0) 推荐(0) 编辑

滚动加载数据

摘要: using DevExpress.XtraGrid.Views.Grid;using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing; 阅读全文

posted @ 2016-03-19 15:56 刘顺利 阅读(170) 评论(0) 推荐(0) 编辑

ffmpeg基本用法

摘要: FFmpeg FFmpeg 基本用法 本课要解决的问题 1.FFmpeg的转码流程是什么? 2.常见的视频格式包含哪些内容吗? 3.如何把这些内容从视频文件中抽取出来? 4.如何从一种格式转换为另一种格式? 5.如何放大和缩小视频? 6.如何旋转,翻转,填充,裁剪,模糊,锐化视频? 7.如何给视频加 阅读全文

posted @ 2016-03-19 11:37 刘顺利 阅读(274) 评论(0) 推荐(0) 编辑

2016年3月18日

C# 下写入视频的简单实现(AviFile)

摘要: 很多时候我们要读写视频,C#读视频(对视频解码)网上的例子很多,然而写视频(对视频编码)的例子却很少,也很少能搜索到有用的信息。下面是使用Aforge.Net写视频的简单方案。 Aforge.Net 是一个 C# 版的图像和计算机视觉库,网站 http://www.aforgenet.com/ 。下 阅读全文

posted @ 2016-03-18 22:02 刘顺利 阅读(692) 评论(0) 推荐(0) 编辑

MSSQL 查找子結節與父節點

摘要: -->Title:Generating test data -->Author:wufeng4552 -->Date :2009-09-30 08:52:38 set nocount on if object_id('tb','U')is not null drop table tb go crea 阅读全文

posted @ 2016-03-18 21:57 刘顺利 阅读(187) 评论(0) 推荐(0) 编辑

【C#】AviFile使用(播放AVI文件,兼容性比较差)

摘要: 最近在做一个视频识别项目,需要用到视频处理,在codeproject上找到了一个关于对Avi的操作库,感觉不错,在这里把一些要点记录下来 http://www.codeproject.com/Articles/7388/A-Simple-C-Wrapper-for-the-AviFile-Libra 阅读全文

posted @ 2016-03-18 21:53 刘顺利 阅读(2444) 评论(0) 推荐(0) 编辑

2016年1月16日

iList.where

摘要: List whereUsers = stru_users.Where(t => suerid.Contains(t.sUserID)).ToList();whereUsers[0].sUserName 阅读全文

posted @ 2016-01-16 09:08 刘顺利 阅读(353) 评论(0) 推荐(0) 编辑

2015年12月4日

读取 COM1 端口上接收的所有可用的数据。

摘要: using System;using System.IO.Ports;class PortDataReceived{ public static void Main() { SerialPort mySerialPort = new SerialPort("COM1"); ... 阅读全文

posted @ 2015-12-04 16:41 刘顺利 阅读(527) 评论(0) 推荐(0) 编辑

c#监控程序

摘要: usingSystem;usingSystem.Collections.Generic;usingSystem.ComponentModel;usingSystem.Data;usingSystem.Drawing;usingSystem.Text;usingSystem.Windows.Forms... 阅读全文

posted @ 2015-12-04 16:40 刘顺利 阅读(456) 评论(0) 推荐(0) 编辑

2015年10月21日

带进度条的上传(Asp.net+MVC+Uploadify)

摘要: 1、Uploadify简介 Uploadify是基于jQuery的一种上传插件,支持多文件、带进度条显示上传,在项目开发中常被使用。 Uploadify官方网址:http://www.uploadify.com/2、ASP.NET MVC3中的使用Uploadify 搭建ASP.NET MVC3解决... 阅读全文

posted @ 2015-10-21 16:45 刘顺利 阅读(951) 评论(0) 推荐(0) 编辑

2015年3月11日

winform 加载窗体时弹出另一个窗体并显示进度条的源码

摘要: winform 加载窗体时弹出另一个窗体并显示进度条的源码//frmA: 源窗体//------------------------------------------//引用using System.Threading;BackgroundWorker worker; publi... 阅读全文

posted @ 2015-03-11 18:09 刘顺利 阅读(363) 评论(0) 推荐(0) 编辑

2015年2月8日

C#调用耗时函数时显示进度条浅探

摘要: 第一种:使用BackgroundWorker进行进度条控制BackgroundWorker对象有三个主要的事件:DoWork - 当BackgroundWorker对象的多线程操作被执行时触发。RunWokerCompleted - 当BackgroundWoker对象的多线程操作完成时触发。Pro... 阅读全文

posted @ 2015-02-08 16:39 刘顺利 阅读(238) 评论(0) 推荐(0) 编辑

2015年2月5日

Dev技巧

摘要: 1.TextEditor(barEditItem)取文本 string editValue = barEditItem1.EditValue.ToString(); //错误,返回null string editValue = ((DevExpress.XtraEditors.Text... 阅读全文

posted @ 2015-02-05 22:47 刘顺利 阅读(593) 评论(1) 推荐(1) 编辑

导航