码迷,mamicode.com
首页 > Windows程序 > 周排行
Spark API编程动手实战-06-对搜狗日志文件深入实战操作
本节中所用到的内容是来自搜狗实验室,网址为:http://www.sogou.com/labs/dl/q.html 我们使用的是迷你版本的tar.gz格式的文件,其大小为87K,下载后如下所示: 上传到服务器后,解压并查看: 查看Sogou文件内容:...
分类:Windows程序   时间:2015-02-04 13:10:35    阅读次数:181
WebAPI 用户认证防篡改实现(一)MD5签名获取
在开始前先说下防篡改机制的原理,如果已经接触过支付宝的可以跳过此部分 防篡改,顾名思义就是防止有人恶意篡改请求数据以达到恶意攻击的目的,那要怎么才能实现这样的目的呢?其实很简单,将要请求的数据加上合作号、合作Key按规则组织成一个字符串,获取对应的MD5摘要,然后将该摘要及合作号同时作为请求的一部分一起传递(合作Key禁止传递) 下面进行举例: 假定需要进行签名的参数如下(以json格式举例...
分类:Windows程序   时间:2015-02-04 18:49:55    阅读次数:420
popuWindow
1,xml布局<?xmlversion="1.0"encoding="utf-8"?><LinearLayoutxmlns:android="http://schemas.android.com/apk/res/android"android:layout_width="wrap_content"android:layout_height="wrap_content"android:background="@drawable/local_popup_bg"android:orientat..
分类:Windows程序   时间:2015-02-05 07:11:23    阅读次数:228
WinPhone学习笔记(四)——磁贴
对每个Windows Phone的使用者来说,给他们的第一印象就是大大小小的磁贴——Metro,本篇介绍的是Windows Phone的磁贴,提到的有开始菜单的磁贴,也有在App里面的磁贴。开始菜单的磁贴首先介绍了一下每个磁贴的构造,每个磁贴分正反两面,正反两面都有图标,而正面有一个标题和统计数量(...
分类:Windows程序   时间:2015-02-05 09:24:46    阅读次数:291
C#多个Windows Service 传递给ServiceBase时,只运行其中一个的解决办法
在之前编写的一个服务里,ServiceBase[]里只有一个, static class Program { /// /// 应用程序的主入口点。 /// static void Main() { ...
分类:Windows程序   时间:2015-02-06 16:36:46    阅读次数:705
使用C#,轻松发邮件之QQ邮箱
参考来源http://www.cnblogs.com/youring2/archive/2008/11/29/1343911.html
分类:Windows程序   时间:2015-02-06 18:27:23    阅读次数:238
C#异常
/*异常: * Date: 2015/2/6 * Time: 18:54 * * To change this template use Tools | Options | Coding | Edit Standard Headers. */using System;namespace Excep....
分类:Windows程序   时间:2015-02-06 20:26:44    阅读次数:224
日志输出--C#
using System;using System.Collections.Generic;using System.Linq;using System.Web;using System.Web.Mvc;//添加引用,并导入命名空间using System.Management;using Syst...
分类:Windows程序   时间:2015-02-06 23:02:01    阅读次数:234
C#计算器
最近刚刚学习C#,在师傅的要求下,写了个计算器的程序 1 using System; 2 using System.Collections.Generic; 3 using System.ComponentModel; 4 using System.Data; 5 using System...
分类:Windows程序   时间:2015-02-08 10:14:46    阅读次数:215
windows下配置bower路径
具体安装参考http://jingyan.baidu.com/album/90895e0fb3495f64ed6b0b50.html当然安装完了之后使用bower安装jquery时会报错,当输入bower install jquery时会报错“bower is not installed or no...
分类:Windows程序   时间:2015-02-08 16:44:01    阅读次数:166
读《C#高级编程(第9版)》之我有话说
之前用过Visual Studio 2005和Visual Studio 2012做过项目,感觉Visual Studio这个IDE是非常强大的,当时C#还是4.0版本,如果4.5版本横空出世,让大家对C#语言更加看好,尤其最近微软的一系列动作,尤其是新CEO上台后的大刀阔斧的改革,让微软变得越来越开放了。从C# 2.0出来就是为了和Java竞争的,当时增加了对泛型的支持,随后C# 3.0引入WPF和WCF,让该语言在通信方面的竞争力越来越强。C# 4.0引入了运行库,提供动态语言集成,例如Linq、Lam...
分类:Windows程序   时间:2015-02-08 23:21:18    阅读次数:290
Win8.1(64bit) Hyper-V 安装Ubuntu 14.04LTS(64 bit)
为了学习在Linux平台下开发,时隔将近一年多,重新搭建开发环境。写文档确实很费时间,不过还是很有必要写的,这么一个简单的事情花了接近3个小时才算最终大功告成。像这种连环嵌套的问题,一旦超过了1个半小时就有必要停下来思考下,用笔在纸上简单整理下事情的经过,为了解决A,出现问题B;再为了解决B又出现问...
分类:Windows程序   时间:2015-02-09 08:13:49    阅读次数:592
window 下相关命令
1.启动window服务(各种应用启动设置的地方)命令方式: 1). window 按钮(输入CMD的地方)处输入:services.msc ,然后执行。 2). 计算机 -- 右键 -- 管理 -- 服务和应用程序 -- 服务2. DOS 命令下清理当前窗口命令:cls3. 打开记事本命令:n.....
分类:Windows程序   时间:2015-02-09 10:41:07    阅读次数:217
leetcode[76]Minimum Window Substring
Given a string S and a string T, find the minimum window in S which will contain all the characters in T in complexity O(n).For example,S="ADOBECODEBA...
分类:Windows程序   时间:2015-02-09 15:38:06    阅读次数:176
C#的post请求
public string Query(string queryString) { HttpWebRequest request = (HttpWebRequest)HttpWebRequest.Create(RequestURL); ...
分类:Windows程序   时间:2015-02-09 21:27:16    阅读次数:179
WPF:间接支持虚拟化的ListBox
/// /// 间接实现了虚拟化的ListBox /// 子项必须实现IVisible接口 /// 你可以在IsVisible发生改变时实现一系列自定义动作 /// 比如:当IsVisible = false时,清空子项的内容;当IsVisible = true时,...
分类:Windows程序   时间:2015-02-10 18:37:50    阅读次数:591
c#动态类型
class Program { static void Main(string[] args) { dynamic test = new ExpandoObject(); test.Name = "asdasd"; ...
分类:Windows程序   时间:2015-02-10 20:09:02    阅读次数:164
【转】C#实现二叉查找树
原文URL: http://www.cnblogs.com/CareySon/archive/2012/04/19/ImpleBinaryTreeWithCSharp.html简介 树是一种非线性结构。树的本质是将一些节点由边连接起来,形成层级的结构。而二叉树是一种特殊的树,使得树每个子节点必须小于...
分类:Windows程序   时间:2015-02-11 00:27:00    阅读次数:271
GitHub for windows 使用方法
1.①http://windows.github.com/下载GitHub for Windows,大约660K,一个在线安装程序,如图:②.运行GitHubSetup.exe,如下图,可能会下载一个必须的文件:如果机器上没有.NETFramework 4.5会自动在线安装:③.上面的都下载完了,就...
分类:Windows程序   时间:2015-02-11 18:02:39    阅读次数:257
C# 计算文件的MD5值
/// /// 计算文件的MD5校验/// /// /// public static string GetMd5HashFromFile(string fileName){ try { FileStream file = new FileStream(fileName, ...
分类:Windows程序   时间:2015-02-12 10:26:50    阅读次数:234
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!