codingjames.blogspot.com codingjames.blogspot.com

codingjames.blogspot.com

Coding James

寫程式總會碰到一些有的沒的問題 好不容易找到答案 就放出來讓大家一起看吧~

http://codingjames.blogspot.com/

WEBSITE DETAILS
SEO
PAGES
SIMILAR SITES

TRAFFIC RANK FOR CODINGJAMES.BLOGSPOT.COM

TODAY'S RATING

>1,000,000

TRAFFIC RANK - AVERAGE PER MONTH

BEST MONTH

December

AVERAGE PER DAY Of THE WEEK

HIGHEST TRAFFIC ON

Monday

TRAFFIC BY CITY

CUSTOMER REVIEWS

Average Rating: 4.4 out of 5 with 13 reviews
5 star
9
4 star
0
3 star
4
2 star
0
1 star
0

Hey there! Start your review of codingjames.blogspot.com

AVERAGE USER RATING

Write a Review

WEBSITE PREVIEW

Desktop Preview Tablet Preview Mobile Preview

LOAD TIME

0.6 seconds

FAVICON PREVIEW

  • codingjames.blogspot.com

    16x16

  • codingjames.blogspot.com

    32x32

CONTACTS AT CODINGJAMES.BLOGSPOT.COM

Login

TO VIEW CONTACTS

Remove Contacts

FOR PRIVACY ISSUES

CONTENT

SCORE

6.2

PAGE TITLE
Coding James | codingjames.blogspot.com Reviews
<META>
DESCRIPTION
寫程式總會碰到一些有的沒的問題 好不容易找到答案 就放出來讓大家一起看吧~
<META>
KEYWORDS
1 coding james
2 寫程式總會碰到一些有的沒的問題 好不容易找到答案 就放出來讓大家一起看吧
3 在c#中使用rsa加解密
4 在使用這兩把鑰匙的時候,需先用x509certificate2物件將其讀出
5 string publickeyfile
6 x509certificate2 pubkey =
7 new x509certificate2 publickeyfile ;
8 x509certificate2 prikey =
9 rsacryptoserviceprovider key =
10 return key;
CONTENT
Page content here
KEYWORDS ON
PAGE
coding james,寫程式總會碰到一些有的沒的問題 好不容易找到答案 就放出來讓大家一起看吧,在c#中使用rsa加解密,在使用這兩把鑰匙的時候,需先用x509certificate2物件將其讀出,string publickeyfile,x509certificate2 pubkey =,new x509certificate2 publickeyfile ;,x509certificate2 prikey =,rsacryptoserviceprovider key =,return key;
SERVER
GSE
CONTENT-TYPE
utf-8
GOOGLE PREVIEW

Coding James | codingjames.blogspot.com Reviews

https://codingjames.blogspot.com

寫程式總會碰到一些有的沒的問題 好不容易找到答案 就放出來讓大家一起看吧~

INTERNAL PAGES

codingjames.blogspot.com codingjames.blogspot.com
1

Coding James: 四月 2012

http://codingjames.blogspot.com/2012_04_01_archive.html

RSA是非對稱式加密,金鑰分為公鑰和私鑰兩種,詳情可參考 RSA加密演算法. 12290;一般來說,公鑰會存成.crt,並且撒出去讓大家知道,而私鑰則是存成.pfx,由自己保管,同時加上密碼來保護. Using System.Security.Cryptography.X509Certificates;. Load public key from .crt. Return (RSACryptoServiceProvider)pubKey.PublicKey.Key;. String privateKeyFile, string password). Load private key from .pfx with password. New X509Certificate2(privateKeyFile, password);. Return (RSACryptoServiceProvider)priKey.PrivateKey;. 有時會需要將鑰匙存入資料庫,可以採用XML的格式,RSACryptoServiceProvider有提供很方便的存讀XML字串的函式。 訂閱: 文章 (Atom).

2

Coding James: 常見開源協議(Open Source License)的比較

http://codingjames.blogspot.com/2011/01/open-source-license.html

目前常見的開源協議大都經過 Open Source Initiative. 協議書的全文都可以在 Open Source Licenses. 最常見的有 GPL, GNU General Public License. LGPL, The GNU Lesser General Public License. 五種開源授權規範的比較 (BSD, Apache, GPL, LGPL, MIT). 自由軟體專案授權方式的轉換(上):不得撤銷原授權條款. 自由軟體專案授權方式的轉換(下):新版本號另以更改後的授權方式釋出. 訂閱: 張貼留言 (Atom). Asterisk : The Cookbook 食譜 035 - a2billing. STouch Board is now available on Google Play! Caton OO Google =? Create to Creat be Great. Use RSA in C#. CCLEERIC - Share Your Knowledge! Creating Game On Xbox 360, Windows, and Zune.

3

Coding James: 三月 2010

http://codingjames.blogspot.com/2010_03_01_archive.html

要在Management程式(.net程式)中使用舊有的Unmanagement函式,例如User32裡面的API,需要使用DllImport來做轉換,最單純的用法就像在 在WPF中取得螢幕的解析度. Static extern int GetSystemMetrics(int nIndex);. 簡單的形態轉換可以參考 Managed and Un-Managed Code in .NET. Static extern int gsm(int nIndex);. Static bool BoolFunction();. 請以 MarshalAs 標記布林 P/Invoke 引數. Managed and Un-Managed Code in .NET. Private void SetViewBox(ImageBrush ib, Rect r). IbViewboxUnits = BrushMappingMode.Absolute;. IbViewbox = r;. 例如(0,0,0.5,0.5)就是左上角的四分之一張圖. Y alias is reverse from Cartesian plane.

4

Coding James: 二月 2010

http://codingjames.blogspot.com/2010_02_01_archive.html

請參考 Writing High-DPI Win32 Applications - DPI Virtualization. Use Windows XP Style DPI Scaling. HKEY CURRENT USER Software Microsoft Windows DWM]. Open the key of Desktop Window Manager. RegistryKey k = Registry.CurrentUser.OpenSubKey(. Software Microsoft Windows DWM");. Get the value if it exists. If ( int)k.GetValue("UseDpiScaling", 0) = 1). Writing High-DPI Win32 Applications. Current Word - 「XP Style DPI Scaling」. API to get "Use Windows XP Style DPI Scaling" setting. Out double DpiX, out double DpiY).

5

Coding James: 一月 2012

http://codingjames.blogspot.com/2012_01_01_archive.html

C: Documents and Settings Administrator diskpart. Microsoft DiskPart version 5.2.3790.3959. Volume # # Ltr Label Fs Type Size Status Info. Volume 0 C NTFS Partition 15 GB Healthy System. Volume 1 D CD-ROM 0 B Healthy. Volume 2 E New Volume NTFS Partition 20 GB Healthy. DISKPART select volume 2. Volume 2 is the selected volume. DiskPart successfully extended the volume. Volume # # Ltr Label Fs Type Size Status Info. Volume 0 C NTFS Partition 15 GB Healthy System. Volume 1 D CD-ROM 0 B Healthy.

UPGRADE TO PREMIUM TO VIEW 14 MORE

TOTAL PAGES IN THIS WEBSITE

19

LINKS TO THIS WEBSITE

johnniebooks.blogspot.com johnniebooks.blogspot.com

Thinking and Coding: 五月 2009

http://johnniebooks.blogspot.com/2009_05_01_archive.html

如果我們建立一個 Win32 console application. 編寫的程式, 執行的時候是需要 C C. Pragma comment( linker, "/subsystem: "windows " /entry: "mainCRTStartup " ). Int main(int argc, char* argv[]). 參考網址: http:/ forum.icst.org.tw/phpbb/viewtopic.php? ScreenHeight, ScreenWidth;. ScreenHeight = GetSystemMetrics(SM CYSCREEN); / 取得高度的像素. ScreenWidth = GetSystemMetrics(SM CXSCREEN);. 各參數的定義, 可參考此網頁 : http:/ tech.ddvip.com/2008-11/122655593392184.html. LPSECURITY ATTRIBUTES lpMutexAttributes, / 指向安全屬性的pointer. 得到錯誤代碼 ERROR ALREADY EXIST.

greatcreatcreate.blogspot.com greatcreatcreate.blogspot.com

Create to Creat be Great: 二月 2012

http://greatcreatcreate.blogspot.com/2012_02_01_archive.html

Create to Creat be Great. 12288; (一)、64位元的uBuntu,先「sudo apt-get install ia32-libs」(uBuntu記得連上網路嘿). 12288;    安裝完成後,系統才能夠執行 adb。 12288; (二)、adb取得請先參考 本篇. 12288; (一)、接上Android裝置後,可使用以下Combo技做為連結裝置的SOP:. 12288;   1、./adb kill-server. 12288;   2、sudo ./adb start-server (PS.sudo通常會要求輸入密碼). 12288;   3、adb devices. 12288; (二)、簡化指令方式:. 12288;   1、若覺得鍵入「./adb」太麻煩時,可使用「Alias」來簡化指令。 12288;   2、簡化「./adb」或「./[PATH]/adb」的方式如下. 12288;    (2)找到[.brash]檔案,以gedit編輯。 12288; (三)、adb其他常用指令:. 12288;   &#1...12288; &#12...

johnniebooks.blogspot.com johnniebooks.blogspot.com

Thinking and Coding: 九月 2010

http://johnniebooks.blogspot.com/2010_09_01_archive.html

Touch Game - Rubik's Cube. 之前開發過不少touch相關的應用程式, 其中一個就是 Rubik's Cube. 中文叫魔術方塊), 關於它的介紹和玩法, 可參考: 維基百科-魔術方塊. 而觸控和手勢則取得透過 Win7 Touch SDK. 此遊戲可以利用 "觸控 手勢" 來作操作, 方法如下所示:. Touch one finger and move it in the direction you want the cube to rotate. 圖 1] Orienting the cube. Rotating a Cube Section. Touch one finger and move it inside the section you wish to move, and then move it in the direction you want to rotate the section. 圖 2] Rotating a cube section. Touch two fingers and move them farther apart. Include "s...

johnniebooks.blogspot.com johnniebooks.blogspot.com

Thinking and Coding: WPF - Style使用

http://johnniebooks.blogspot.com/2010/12/wpf-style.html

去自訂控制項的外觀, 尤其當我們需要相同的屬性套用在多個控制項時, Style. 設計時, 常會讓 UI. 例如:背景顏色,字型,控制項的顏色…等等. 可以方便使用者將一組屬性值(顏色,尺寸,動畫, 觸發方式等)套用到多個控制項的方式,這樣一來, 程式碼將變得簡潔. 例如下面範例中, 有一個影音播放程式,如圖1所示, 其中 UI. 上有三個外觀相同的按鈕, 在這程式碼當中, 如圖2所示, 如果不套用 Style. 的話, 我們必需要將每一個控制項都設定一次相同的屬性, 這樣, 程式碼將會有很多重覆的部分, 而且, 萬一以後要變更其中一個屬性, 將要修改到很多地方. 下面的範例中, 我們利用 Style. 組成的集合來設定目標屬性, 而每個 Setter. 是由依存屬性和設定值組成), 並集中在 Resource. 中 程式碼將變得簡潔, 管理上也變的更方便 ,. 只能給特定的控制項使用, 可用 TargetType. 屬性指定, 例如你希望只有 Button. 之間可以互相繼承, 如果要這樣做, 您可以使用一個樣式做為基礎來建立新樣式, 並利用 BasedOn. Creating a Screen Re...

johnniebooks.blogspot.com johnniebooks.blogspot.com

Thinking and Coding: 十二月 2010

http://johnniebooks.blogspot.com/2010_12_01_archive.html

去自訂控制項的外觀, 尤其當我們需要相同的屬性套用在多個控制項時, Style. 設計時, 常會讓 UI. 例如:背景顏色,字型,控制項的顏色…等等. 可以方便使用者將一組屬性值(顏色,尺寸,動畫, 觸發方式等)套用到多個控制項的方式,這樣一來, 程式碼將變得簡潔. 例如下面範例中, 有一個影音播放程式,如圖1所示, 其中 UI. 上有三個外觀相同的按鈕, 在這程式碼當中, 如圖2所示, 如果不套用 Style. 的話, 我們必需要將每一個控制項都設定一次相同的屬性, 這樣, 程式碼將會有很多重覆的部分, 而且, 萬一以後要變更其中一個屬性, 將要修改到很多地方. 下面的範例中, 我們利用 Style. 組成的集合來設定目標屬性, 而每個 Setter. 是由依存屬性和設定值組成), 並集中在 Resource. 中 程式碼將變得簡潔, 管理上也變的更方便 ,. 只能給特定的控制項使用, 可用 TargetType. 屬性指定, 例如你希望只有 Button. 之間可以互相繼承, 如果要這樣做, 您可以使用一個樣式做為基礎來建立新樣式, 並利用 BasedOn. 有很大的關聯. 在這篇文章中, ...

johnniebooks.blogspot.com johnniebooks.blogspot.com

Thinking and Coding: 五月 2010

http://johnniebooks.blogspot.com/2010_05_01_archive.html

將被配置到此區域內(這類的記憶體,常被稱為全域變數(global variable), 此區域內的所有資料為同一個process共用; Global區域內的記憶體生命週期會維持到程式結束後, 才會被釋放. Stack區域是用來儲存區域變數(local variable), 記憶體配置的生命週期受到其區塊範圍 (block scope) 的影響,當進入區塊時,會自動配置記憶體, 離開此區塊,記憶體也會被釋放. 宣告), 此記憶體不會隨函式結束被釋放. 而且釋放方式會因不同程式語言而不同. 對於 C/C. 這類的程式, 記憶體釋放需要由程式員手動釋放(例如: 使用 delete. 程式, 記憶體釋放則由 VM. 虛擬機)自動作處理, 也就是 Garbage Collection. 負責控制, 程式員就不必擔心記憶體遺失或使用到錯誤記憶體等問題(可參考 How to detect memory leak. 會追蹤 (tracing) 所有活著的物件, 如果不是活著的物件, 就會被標成 GC. 若變數為數值型別, 當變數超出有效範圍時, CLR. 上所佔用的空間, 若變數為參考型別, CLR. Clean Up...

johnniebooks.blogspot.com johnniebooks.blogspot.com

Thinking and Coding: 二月 2011

http://johnniebooks.blogspot.com/2011_02_01_archive.html

事件的深入分析(function pointer, delegate, event, EventHandler). 若要設計事件(Callback function), 可利用 function pointer. 來完成, 其詳細作法可參考 Callback Function. 特殊的類別, 它可以封裝一個函數, 但與一般類別不同之處, delegate. Void (*UpdateCallback)(double time);. Delegate void UpateDelegate(double time);. 類似於函式指標(function pointer), 不過還是有很多不同之處, 例如 delegate. 型別封裝了函數的回傳類型,引數的數目, 和引數的類型, 如下面陳述式所示. Delegate void MessageDelegate(string str);. 2 定義一個符合委派型別的簽名方法, 可為 instance method 或 static method. 3 建立委派物件, 並指定委派方法. 同時也支援 多點傳送( =, -=) ,. Null) ClickEvent(...

johnniebooks.blogspot.com johnniebooks.blogspot.com

Thinking and Coding: 事件的深入分析(function pointer, delegate, event, EventHandler)

http://johnniebooks.blogspot.com/2011/02/function-pointer-delegate-event.html

事件的深入分析(function pointer, delegate, event, EventHandler). 若要設計事件(Callback function), 可利用 function pointer. 來完成, 其詳細作法可參考 Callback Function. 特殊的類別, 它可以封裝一個函數, 但與一般類別不同之處, delegate. Void (*UpdateCallback)(double time);. Delegate void UpateDelegate(double time);. 類似於函式指標(function pointer), 不過還是有很多不同之處, 例如 delegate. 型別封裝了函數的回傳類型,引數的數目, 和引數的類型, 如下面陳述式所示. Delegate void MessageDelegate(string str);. 2 定義一個符合委派型別的簽名方法, 可為 instance method 或 static method. 3 建立委派物件, 並指定委派方法. 同時也支援 多點傳送( =, -=) ,. Null) ClickEvent(...

johnniebooks.blogspot.com johnniebooks.blogspot.com

Thinking and Coding: 十月 2009

http://johnniebooks.blogspot.com/2009_10_01_archive.html

WPF Windows7 Multi-touch (Part 2). 在 WPF Windows7 Multi-touch (Part 1). 的方式來取得Windows 7 的手勢訊息, 並對物體作手勢操作. 不過當你用這個方法來取得觸控點的資訊時, 你會發現收不到 WM TOUCH. 的訊息, 這個是因為 WPF. WPF Windows 7 Multi-touch. 因此, 如果要在 WPF. IntPtr hWnd = new WindowInteropHelper(this).Handle;. HwndSource src = HwndSource.FromHwnd(hWnd);. Win7TouchMethod.SetProp(src.Handle,. New IntPtr(0x01000000) ;. ThisStylusDown = new StylusDownEventHandler(Window1 StylusDown);. ThisStylusMove = new StylusEventHandler(Window1 StylusMove);. 下面的範例中, 我們會寫一個 WPF.

johnniebooks.blogspot.com johnniebooks.blogspot.com

Thinking and Coding: 十一月 2010

http://johnniebooks.blogspot.com/2010_11_01_archive.html

的方法, 不過此方法僅適用於 C-Style export. 出來的函式, 不行用在類別( Class. 的類別, 因此本文將介紹如何在 C#. 設計一個C-Style function 介面, 透過指標存取物件的實體. 8211; 由於 C#. 的方法, 所以我們必須將類別中 public function. 而一個物件的實體, 其實可以透過指標(*)作存取, C#. 8211; 作法可參考 如何在C#中使用Unmanaged dll. 的回收機制,不會自動回收unmanaged object記憶體, 所以我們必須透過 Dispose/Finalize. 手動回收, 其作法可參考 C#記憶體管理. 另外設計一個C-Style function 介面, 包裝要使用的C 類別. Include "stdafx.h" #include "CShapeBridge.h" extern "C" CSHAPE API CShape* CreateInstance() { return new CShape(); } extern "C" CSHAPE API void DisposeInstanc...NULL)...

UPGRADE TO PREMIUM TO VIEW 104 MORE

TOTAL LINKS TO THIS WEBSITE

114

OTHER SITES

codingiteasy.weebly.com codingiteasy.weebly.com

easy coding - Home

This site is a small compilation of simple tricks that the author have learned through the years of actual software development and hope in it's small way would shed some help. Getting xldb to work via Cygwin. Sending mail using System.Net.Mail (mail automation). Display page number and number of pages in your PDF file (PDF Automation). VB for C Programmers. Casting: VB , C#.Net. Private project 11 - Save Daily R. C# Programming $30 - $250. Bid on this project. Ends in 4d 23h 56m. Create a free website.

codingitforward.com codingitforward.com

Home | Coding it Forward

We're a rebel alliance of young people using technology for social good. We're not coding to make the next food delivery app. We're coding to battle the tough problems in government, education, public health, and the like. We're coding to make the world a little bit better. We're Coding it Forward. Our community of over 400. Talented young people and professional mentors works hard to empower the next generation to pursue careers using technology for social good. Join the alliance. List of 20 startups.

codingitmaster.blogspot.com codingitmaster.blogspot.com

PHP - JAVA - Asp.net - HTML - C - C++ Coding master

PHP - JAVA - Asp.net - HTML - C - C Coding master. HTML CSS JavaScript jQuery AJAX XML ASP.NET SQL Tutorials References Examples plus coding. PHP was at first created as a simple scripting platform called "Personal Home Page". Nowadays PHP (the short for Hypertext Preprocessor) is an alternative of the Microsoft's Active Server Pages (ASP) technology. On Linux/UNIX web servers. It is probably the most popular scripting language. We provide several versions of PHP (PHP 4.4, PHP 5.0, PHP 5.1, P...Our PHP h...

codingjabber.com codingjabber.com

Coding Jabber | 感受速度之悦,赏析交互之美

Maven Report Plugin= = = = = 继续阅读 →. Dubbo报org.I0Itec.zkclient.exception.ZkNoNodeException异常. 阿里的Dubbo框架已经集成了Zookeeper、Spring等框架所以无须再添加这些框架的引用,但是有一个例外就是zkclient,如果没有引用将会抛出如下异常信息 继续阅读 →. Dubbo报org.I0Itec.zkclient.exception.ZkNoNodeException异常.

codingjames.blogspot.com codingjames.blogspot.com

Coding James

RSA是非對稱式加密,金鑰分為公鑰和私鑰兩種,詳情可參考 RSA加密演算法. 12290;一般來說,公鑰會存成.crt,並且撒出去讓大家知道,而私鑰則是存成.pfx,由自己保管,同時加上密碼來保護. Using System.Security.Cryptography.X509Certificates;. Load public key from .crt. Return (RSACryptoServiceProvider)pubKey.PublicKey.Key;. String privateKeyFile, string password). Load private key from .pfx with password. New X509Certificate2(privateKeyFile, password);. Return (RSACryptoServiceProvider)priKey.PrivateKey;. 有時會需要將鑰匙存入資料庫,可以採用XML的格式,RSACryptoServiceProvider有提供很方便的存讀XML字串的函式。 在提供這樣的服務的同時,...

codingjamesinenglish.blogspot.com codingjamesinenglish.blogspot.com

Coding James.English

There are always some problems in coding. Let's share the answers. Wednesday, April 4, 2012. Use RSA in C#. RSA is one of the asymmetric encryption algorithm. There are two keys, public and private, in this algorithm. Detail is reference to RSA. In general, the public key is saved as a .crt file and the private key is saved as a .pfx file with password. To use these two keys, you need to load them by an X509Certificate2 object. Using System.Security.Cryptography.X509Certificates;. You can use either padd...

codingjar.com codingjar.com

Coding Jar - Vancouver Game Development

I'm Jodon Karlik, and this is my company. I have worked on some of the top-rated big budget games in the industry and have now decided to pursue my indie dreams. My goal is to produce high quality casual games and multimedia applications. Besides independent development, I'm also available for consulting. Please view my services section. To see how you can benefit from my expertise. In Fling Theory, players solve physics-based puzzles by manipulating atoms and destroying obstacles. Your weapon? Has a spe...

codingjargames.com codingjargames.com

Coding Jar - Vancouver Game Development

I'm Jodon Karlik, and this is my company. I have worked on some of the top-rated big budget games in the industry and have now decided to pursue my indie dreams. My goal is to produce high quality casual games and multimedia applications. Besides independent development, I'm also available for consulting. Please view my services section. To see how you can benefit from my expertise. In Fling Theory, players solve physics-based puzzles by manipulating atoms and destroying obstacles. Your weapon? Has a spe...

codingjava.blogspot.com codingjava.blogspot.com

Coding Java

Friday, January 18, 2008. Java Coding Question And Answers. Returning Values from a Remote Method. Return values from remote methods must be primitive, serializable, or Remote. This example demonstrates the declaration and use of all three return types. 1. Define the remote interface. Import java.rmi.*;. Public interface RObject extends Remote {. This return value is primitive. Int primitiveRet() throws RemoteException;. This return value implements Serializable. This return value implements Remote.

codingjavas.blogspot.com codingjavas.blogspot.com

Java GUI

Learn Java is possible. Sunday, March 1, 2009. JList n JComboBox sample Code. You can try this code to learn JList n JComboBox on JavaSE. This is the code here. Wednesday, January 7, 2009. Setting JDK(Java Development Kit). For you who are confused on how to install / jdk use on your computer, please follow these steps: CMIIW (Correct Me If I'm Wrong). Put your jdk directory anywhere. For example, eg C: jdk. Suppose you put in your jdk D: MyFolder jdk1.6, then you add a "D: MyFolder jdk1.6 bin". Export P...