- 博客(33)
- 资源 (6)
- 收藏
- 关注
原创 Writing Markdown Blogging Guide
title: “Writing Markdown Blogging Guide”date: 2021-01-12T10:42:25+08:00draft: truetags: [‘markdown’]author: “dadigang”author_cn: “大地缸”personal: “http://www.real007.cn”关于作者http://www.real007.cn/aboutA guide to using Markdown to write blog postsIn.
2021-01-12 10:44:32 202
原创 What is Markdown
What is Markdown?Markdown is a lightweight markup language that you can use to add formatting elements to plaintext text documents. Created by John Gruber in 2004, Markdown is now one of the world’s most popular markup languages.Using Markdown is differe
2021-01-12 10:33:51 285
原创 Hugo静态网站搜索方案
title: “Hugo静态网站搜索方案”date: 2020-12-20T12:53:24+08:00draft: truetags: [‘hugo’]http://www.real007.cn/about去看看hugo简介一个静态博客网站生成工具,基于golang开发,可以跨平台运行与windows,linux,mac等主流操作系统去官网看看1.第一步首先下载hugo,具体方案查看相关文档,然后hugo new site2.搭建好一个博客网站以后,新建博客文档hug.
2021-01-12 10:27:39 643 1
原创 Golang格式化时间
大地缸—title: “Golang格式化时间”date: 2020-12-31T20:40:32+08:00draft: truetags: [‘golang’]Golang时间格式化susht专注于IT技术、喜欢旅游、足球。公众号【攻城狮susht】Golang时间类型通过自带的 Format 方法进行格式化。需要注意的是Go语言中格式化时间模板不是常见的Y-m-d H:M:S而是使用Go语言的诞生时间 2006-01-02 15:04:05 -0700 MST。为了记忆方便,按照
2021-01-12 10:25:12 541
原创 Ssh免密码登录
Thu, Dec 3, 2020This is an example link.在客户端执行ssh-keygen -t rsa将客户端id_rsa.pub 拷贝到服务器上 在服务器上执行cat id_rsa.pub >> ~/.ssh/autorized_keys修改服务器sshd_config配置StrictModes no PubkeyAuthentication yesAuthorizedKeysFile .ssh/authorized_keys...
2020-12-05 20:22:52 52
原创 C# 给指定应用程序发送Windows Message
using System;using System.Diagnostics;using System.IO;using System.Runtime.InteropServices;using System.Windows.Forms;namespace 发消息{ public partial class FrmMain : Form { public
2013-01-18 12:30:21 631
原创 C# 给指定应用程序发送消息
public partial class FrmMain : Form { public FrmMain() { InitializeComponent(); } private void button1_Click(object sender, EventArgs e) {
2013-01-16 19:16:15 646
原创 C# 调用C++动态链接库 之一 传入参数
请看。C++:编写C++库文件:// testdll.cpp : 定义 DLL 应用程序的导出函数。//#include "stdafx.h"#include "stdio.h"extern "C" void test(char* p){if(NULL != p){OutputDebugString(p);printf
2013-01-16 10:24:59 1632
原创 C# Win32消息系列-User32.dll
[DllImport("User32.dll", EntryPoint = "SendMessage")] private static extern int SendMessage( IntPtr hWnd, // handle to destination window int msg, // message int
2013-01-13 10:28:27 1054
原创 C# Win32消息系列-SW
public enum ShowFlag { SW_HIDE =0, SW_SHOWNORMAL = 1, SW_NORMAL = 1, SW_SHOWMINIMIZED = 2, SW_SHOWMAXIMIZED = 3,
2013-01-13 10:27:28 631
原创 C# Win32消息系列--SC
public enum SysCmd { SC_SIZE = 0xF000, SC_MOVE = 0xF010, SC_MINIMIZE = 0xF020, SC_MAXIMIZE = 0xF030, SC_NEXTWINDOW = 0xF040, SC_PREVWINDOW = 0xF050,
2013-01-13 10:26:50 1511
原创 C# Win32消息系列--WM
public enum WinMsg { WM_NULL = 0x0000, WM_CREATE = 0x0001, WM_DESTROY = 0x0002, WM_MOVE = 0x0003, WM_SIZE = 0x0005, WM_ACTIVATE = 0x0006, WM
2013-01-13 10:26:19 1454
原创 C# 管道通信 服务器
using System;using System.Collections;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Diagnostics;using System.Drawing;using System.Globalization;us
2013-01-13 10:15:43 744
原创 C++ 进程通信 管道
// OpenPipe.cpp : 定义控制台应用程序的入口点。//#include "stdafx.h"#include#include#includeusing namespace std;HANDLE hPipe;void OpenPipe(){ hPipe = CreateFileA("\\\\.\\Pipe\\pipe_xg", GENERIC_READ |
2013-01-13 10:14:23 493
转载 C# 提取汉字
C# 提取汉字C# 提取字符串中汉字方法 protected string getChinese(string str) { string mystr = "", ResultString=""; for (int i = 0; i < str.Length - 1; i++)
2013-01-12 20:29:08 1392
原创 Wpf 遍历系统进程 C#
Kernel32 http://点击打开链接using System.Collections.Generic;using System.Linq;using System.Runtime.InteropServices;using System.Text;using System.Windows;using System.Windows.Controls;using S
2013-01-12 10:26:56 968
原创 C# Kernel32 导出函数
/// /// Kernel32导出函数 /// public class Kernel32 { [DllImport("KERNEL32.DLL ")] public static extern IntPtr CreateToolhelp32Snapshot(uint flags, uint processid);
2013-01-12 10:24:36 1674
原创 C# 操作Excel表格
using System;using System.Data;using System.Data.OleDb;using System.IO;using System.Windows.Forms;using ExcelTest.Properties;using Excel = Microsoft.Office.Interop.Excel;namespace ExcelTest{
2013-01-12 10:03:26 581
原创 C# 连接MongoDB服务器 并插入数据
// MongoDB服务器 连接串 const string connectionString = "mongodb://127.0.0.1"; var server = MongoServer.Create(connectionString); // 连接到 mongodb_c_demo 数据库 va
2013-01-12 10:02:02 1169
原创 C#MPI 第三课 MPI 发送图像数据
using System;using Emgu.CV;using Emgu.CV.Structure;using MPI;namespace MPIHello{ /// /// 测试发送图像数据 /// class TestSendImageProgram : IProgram { #region Implementation
2013-01-12 10:00:19 719
原创 C#MPI 第二课 MPI 发送结构体
using System;using MPI;namespace MPIHello{ /// /// 测试发送结构体 /// class TestSendStructProgram : IProgram { /// /// 测试发送的结构 /// struct TestStruc
2013-01-12 09:59:05 2050 1
原创 C#MPI 第一课 MPI HelloWord
using System;using MPI;namespace MPIHello{ /// /// HelloMpi程序 /// class HelloMpiProgram : IProgram { #region Implementation of IProgram /// /// 应用程序
2013-01-12 09:57:41 1445 1
原创 C# 导出Word文档中的所有图片
using System;using System.Drawing;using System.IO;using System.Windows.Forms;using NPOI.POIFS.FileSystem;using NPOI.XWPF.Extractor;using NPOI.XWPF.UserModel;namespace WordPictureExport{ p
2013-01-12 09:55:12 1279 1
原创 C# ping 局域网扫描
using System;using System.Collections.Generic;using System.Globalization;using System.Linq;using System.Net;using System.Net.NetworkInformation;using System.Net.Sockets;using System.Text;using
2013-01-12 09:53:34 789
原创 使用HttpWebRequest 首先要获得浏览器的Cookie
//每次访问完成获取Cookie var browser = webBrowser1.Document as HTMLDocumentClass; if (browser == null) return; var cookie = browser.cookie; //创建Cookie
2013-01-12 02:23:37 735 1
原创 人人网,获取好友Json代码的正则表达式
var innerHtml = browser.body.innerHTML; var reg = new Regex("var friends=.*}];"); var matchResult = reg.Match(innerHtml); var strRes = matchResult.ToStr
2013-01-12 02:22:21 439
原创 C# 快速设置和解除浏览器代理
如题using System;using System.Runtime.InteropServices;using System.Windows.Forms;using Microsoft.Win32;namespace ProxyFastSetting{ public partial class FrmMain : Form { [DllI
2013-01-12 00:46:05 1540 1
转载 无法嵌入互操作类型...请改用适用的接口 解决办法
背景:visual studio 2010、“添加引用”时出错: “无法嵌入互操作类型...请改用适用的接口”解决方案: 选中项目中引入的dll, 鼠标右键, 选择属性, 把“嵌入互操作类型”设置为Fals
2013-01-11 21:25:13 725
原创 Wpf 计时器
计时器 源代码using System;using System.Windows;using System.Windows.Threading;namespace WpfStopWatch{ /// /// MainWindow.xaml 的交互逻辑 /// public partial class MainWindow :
2013-01-11 21:05:14 1615 1
原创 WPF 多线程编程
-----------using System;using System.Collections.Generic;using System.Diagnostics;using System.Globalization;using System.Linq;using System.Threading;using System.Windows;using System.Windo
2013-01-11 20:31:24 940
转载 C++ dll to C#
http://www.gamedev.net/topic/435485-converting-c-dll-header-to-c/
2012-06-20 20:40:39 556
C#调用C++ dll 传入字符参数
2013-01-16
在内核驱动中检测隐藏进程
2013-01-13
Wpf多线程给UI发送数据
2013-01-12
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人