自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(38)
  • 资源 (1)
  • 收藏
  • 关注

原创 RSA pkcs8私钥如何转成.Net使用的XML私钥

/// /// parsing pem file private key /// /// pkcs8 private key /// public static RSACryptoServiceProvider DecodePemPrivateKey(String pemstr) {

2016-02-03 16:11:31 6345

原创 RSA 加密算法(.NET)

using System;using System.Collections.Generic;using System.Security.Cryptography;using System.Web;using System.IO;/// /// Summary description for RSAEncrption/// public class RSAEncrption{

2016-02-03 12:45:22 1060

原创 Openssl Installation in Window

1.ActivePerl Installation:C:\Perl64\eg\example.plHello from ActivePerl!It means you installed ActivePerl successful.******************************************************************

2016-02-01 15:19:23 570

原创 Encription

public class Encrypt { private static Encoding encoding = Encoding.Default; public static string EncryptString(string originalStr) { return EncryptString(origi

2015-11-04 17:15:38 515

原创 NSSortDescriptor ignores Comperator Block

Thanks to the hint from Paul I was able to figure out what the problem is. The solution can be found in the Apple docs(have a look at the "Fetch Predicates and Sort Description" section).I thought t

2015-08-29 13:33:47 571

原创 IOS真机运行环境操作步骤

1.Create a certificates request in local machine, save to disk.2.Create AppID.3.Connect the iPhone to Mac, get the device UIUD.4.Create Device.5.Create Profile,then download.6.Double-click profile, th

2015-08-24 20:39:36 591

原创 XCode Hugging Priority- Compress Resistance Priority

label1不约束宽度label2约束宽度为200,约束的优先级为751,大于Content Hugging Priority(250)label3约束宽度为200,约束的优先级为200,小于Content Hugging Priority(250)label4约束宽度为60,  约束的优先级为751,大于Content Compression Resistance Pri

2015-08-18 18:44:00 485

原创 XCode AutoLayout series 1

实现Label水平居中。#pragma mark - next button-(IBAction)nextTapped:(id)sender{ static NSArray *artists; if(artists==nil){ artists=[[NSArray alloc] initWithObjects:@"TheLonious M

2015-08-18 12:26:39 368

原创 UICollectionView

CollectionView 是IOS开发中的很常用的一个控件。在填充单元格时有两种方式:一个是通过注册类,另一个是使用NIB(注册XIB文件)。在视图加载事件中调用相应的注册单元格代码。registerClass与registerNib两种的区别官方文档里这样描述: // For each reuse identifier that the collection view will

2015-08-17 16:48:48 449

原创 xcode AutoLayout

效果链接代码链接Auto Layout 是IOS 6.0才开始引用的技术,如果要兼容IOS6.0以下程序,则不能启用Auto Layout,它能解决屏幕旋转界面呈现混乱的总是,如果有人使用过网页的响应式布局的话,那么它感觉就与网页响应式布局相似,它不仅能设置控件的位置与大小,而且还可以放大,缩小处理。如果是简单的设置则可以使用autolayout,如果是复杂的话,我觉得

2015-08-16 20:37:24 445

原创 pushViewController and presentViewController are not working.

@interface ViewController ()@end@implementation ViewController- (void)viewDidLoad{ [super viewDidLoad]; // Do any additional setup after loading the view, typically from a nib. //self.

2015-08-13 14:22:36 614

原创 IOS 触发按钮执行事件

- (void)collectionView:(UICollectionView *)collectionView didSelectItemAtIndexPath:(NSIndexPath *)indexPath{ //NSString *sectionName= [[sections objectAtIndex:indexPath.row] objectAtIndex:0];

2015-08-07 17:00:54 1901

原创 Passing data between view controller.

This question seems to be very popular here on stackoverflow so I thought I would try and give a better answerto help out people starting in the world of IOS like me.I hope this answer is clea

2015-08-05 14:27:09 571

原创 TableView Summary

Tableview 在ISO中的使用很频繁,我也是刚刚学习ISO开发,就些想就TableView总结一下。有什么错误或补充请大家提出来,Welcome your valuable comments.;)一、简单的列表。在开发之前我想大家应该知道TableView有两个重要的委托:UITableViewDataSources, UITableViewDelegate.这两个一个是

2015-07-13 10:03:36 509

原创 Get Stared for ISO App development.

Get Started with ISO app develepmentYou will see the link related to Objective-C, it can generated to PDF format. it's very useful.Learn Objective-C languageIt's essential knowle

2015-06-17 11:57:02 505

转载 android调用C# 服务返回对象使用方法说明

SoapObject类是一个主要用于调用WCF服务的类,其对象可以作为请求,发送到WCF服务器;也可以用于存储响应信息。之前一篇博客提到,获取WCF服务器的响应以后,返回的是一个SoapObject类型的对象。通过调试发现,该对象本身是一个存储了一套HTML语句的文本。而SoapObject本身提供了对这套HTML语句的解析。因此,我们对SoapObject的解析,其实可以理解为对HTML

2015-06-12 10:18:35 1165

转载 怎么练出肌肉

增长肌肉体积是一门艺术,训练与科学的营养共同作用于肌肉才能促使它们恢复与生长。“练”要科学地练,“吃”要吃得合理。那么如何吃才算合理呢?根据我们对健美训练者多年的跟踪调查和实践经验的总结,得出健美训练者的每日增肌饮食宝典,即适度的蛋白质加较低含量的脂肪,再加高含量的碳水化合物,同时还要合理补充促合成、防分解的“促合成因子”来保证肌肉的生长。1.补充足够的热能   人体在

2015-06-12 10:16:34 656

原创 upload pictures in C#

So, here I am presenting you with example of C# and VB.NET implementation (upload.ashx) for the jQuery Uploadify plugin:using System;using System.Web;using System.IO;public class Upload : IHttp

2015-06-12 10:07:43 462

转载 10 Tips to Improve an ASP.NET Applications Performance

In developing .NET applications, there are a few things that can be done, or avoided, to make significant and noticeable improvements in performance. Here are a few that are worth implementing:Cac

2015-06-10 14:26:11 532

转载 关于ExecuteNonQuery()执行成功却返回-1的问题

原文引用对于增删改数据,一般判断ExecuteNonQuery()是否大于0 mark= Comm.ExecuteNonQuery()>0?true:false; 注意:关于ExecuteNonQuery()执行成功却返回-1的问题 通过ExecuteNonQuery()的返回值来判断操作数据库的成功与否是可以的.但是要分情况.

2015-06-09 17:44:03 1125

原创 jquery 动态设置图片居中显示

/*image enlargement*/.imgPos { position: absolute; display: none; z-index: 1000000000;}.mask { display: none; z-index: 999999999; background-color: #000; position: absolute; top: 0; left:

2015-06-05 13:40:08 1148

原创 Form Validation

Profile body{background: #c0c0c0} .bgwhite{background:#fff;} .ptb10{padding-top: 10px;padding-bottom: 10px;} .ptb20{padding-top: 20px;padding-b

2015-05-26 15:36:10 608

原创 umbraco note-MVC

SurfaceController1.Creating an action to partake in a Child Action Macro. To define this is very simple and followsthe exact same MVC principles to creating a Child Action...just add a ChildAction

2015-05-22 09:42:22 705

原创 Entity Framework Code first

1.两个实体映射到一张表中。(两个实体的主键数据类型必须相同,并匹配一对一的外键关系)2.一个实体映射到多张表。通过Fluent API的Map方法来实现,不能使用Data Annotations,因为Data Annotations 没有属性子集的概念。将一个People表映射到数据库中A,B两表。用Map映射的时候务必不要跳过任何属性,否则Code Fist 还会自动创建第

2015-05-11 17:00:43 751

转载 Querying with EDM

Entity framework supports three types of queries: 1) LINQ to Entities 2) Entity SQL 3) Native SQL1) LINQ to Entities: Language-Integrated Query (LINQ) is a powerful query language introduced in

2015-05-07 16:24:39 677

原创 Choose development approach with Entity Framework:

We have already seen Code-first, Model-first and Database-first approaches in the previous sections.So now you have take decision about which development approach to use in your application. The

2015-05-07 16:08:23 392

原创 Types of Entity in Entity Framework

在Entity Framwork 5.0/6.0中有两种类型实体:POCO 实体和动态代理实体POCO(Plain Old CLR Object) 实体:POCO类是不依赖任何框架中特殊的基类,它与其它普通的.net类类似所以才叫"Plain Old CLR Objects".这些POCO类支持大部分的查询,插入,修改,删除那些通过Entity Data Model生成

2015-05-07 15:51:45 661

原创 Umbraco Dynamic

Umbraco Razor 中查询节点过虑条件编写示例:umbraco.MacroEngines.DynamicNodeList nodeList=Model.DescendantsOrSelf("Article").Where("ParentId == 1716 || ParentId == 1060 || ParentId == 5488").OrderBy("CreateDate des

2015-04-27 10:52:41 741

原创 JQuery.Validation Usage.

在网页开发过程中Form的验证或者表单验证操作都是必不可少的。如今有许多的验证插件,这里只介绍JQuery Validation.js的插件使用,这个也是VS中自带的验证脚本。JQuery使用上也很广泛兼容性也很好,是许多开发人员的最佳选择,还有其它的验证插件有EasyUI. bootstrap框架的验证方式(bootstrap jQuery-Validation-Bootstrap-tool

2015-04-17 17:53:16 600

原创 Positive sentences

There is no substitute for hard work. First in, last out.努力没有替代品,最先开始,最后离开。(Mary Callahan Erdoes)1.比大多数人都勤奋认真;2.把一生要做的事写下来,放在钱包里,经常拿出来看看;3.一个月至少看两本书;4.每天睡前总结一天的收获和不足;5.想做的事就立即行动,不要拖沓;6.锻炼身

2015-03-27 13:30:03 765

原创 Membership 网站安全相关配置节

引用官方参考文章ASP.NET成员资格功能是为了管理和授权用户,常常与窗体认证搭配使用,还有一个验证控件像Login,LoginVIew,LoginStatus,LoginName,PasswordRecovery, 和CreateUserWizard控件。此篇文章教你如何通过很好的编辑配置文件和编写membership 相关类的优化成员管理功能安全.Securing

2015-03-27 10:57:42 651

原创 WebForms UnobtrusiveValidationMode

在配置文件里添加下面配置节  

2015-03-20 12:07:25 514

原创 Membership Role Profile-ASP.Net Configuration

数据库与Web应用程序都配置好后,就可以通过ASP.Net中的管理界面来操作我们的添加的内置功能。点击web程序后-选择“Project”-"ASP.NET Configuratoin" 将会弹出操作程序界面如下图:通过此操作界面可以为数据库中的表添加数据及相关网站配置,网店配置操作将会对配置文件修改。“启动角色” 配置文件将会被修改。如下添加了enable='true"属性。

2015-03-19 15:27:46 734

原创 Membership Role Profile设置配置文件

上一篇文章讲述了创建一个应用成员资格,角色管理,配置文件功能的数据库。配置好数据库后现在编辑配置文件与我们的Web工程项目进行关联。如果没有配置是系统是有配置的配置文件的,可以查看系统的配置文件的内容,路径是:C:\Windows\Microsoft.NET\Framework\v4.0.30319\Config中machine.config文件。打开些文件可以看到系统有默认的

2015-03-19 15:20:02 682

原创 Membership Role Profile数据库配置

有两个工具aspnet_regsql.exe 可以为指定数据库应用多个内置提供程序,aspnet_regiis:加密配置节参考文章:http://www.4guysfromrolla.com/articles/050306-1.aspx在创建Web应用程序时,可以为应用程序添加安全功能是很常见的,这块功能可以自己设计(没有试过)在ASP.NET已经有内置权限管理提供程序

2015-03-19 14:03:05 533

原创 Android 弹出窗体

1.android对话框实现方法。①系统类型对话框(Dialog),带有标题,自定义内容,(系统里没有按钮,但可以响应取消,关闭事件)组成的简单的对话框。 Dialog dialog=new Dialog(MainActivity.this); dialog.setContentView(R.layout.dialog_layout); TextView textView= (Te

2015-03-19 13:58:38 837

原创 Android Create Shortcut for some special mobile phone.

在手机中运行App时,很奇怪的问题,有的手机运行App后桌面有快捷图标,有的手机没有快捷图标,经过在网上找了的资料,自己实践了一下,测试也没有问题,现在把步骤与代码贴出来给大家盾一下。刚接触Android开发,好多代码都是Copy过来的,每行代码只能通过字面意思理解。AndroidManifest.xml文件中添加以下权限设置,还有设置activity的intent-filte

2015-03-13 16:40:55 587

原创 android listView selectMode

simple_list_item_multiple_choice.xml文件内容:<CheckedTextView xmlns:android="http://schemas.android.com/apk/res/android" android:id="@android:id/text1" android:textAppearance="?android:

2015-03-06 16:16:30 646

图书馆管理信息系统可行性研究报告

图书馆管理有关的可行性分析。这是软件工程方面的作业。对于同学们很有用的。

2010-10-21

空空如也

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

TA关注的人

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