Friday, 19 October 2012

Install Chrome on CentOS 6

How to Install Chrome on CentOS 6?
http://linuxinternetworks.com/applications/how-to-install-google-chrome-on-centos-6/

Chrome rpm:
https://www.google.com/intl/en_uk/chrome/browser/?platform=linux&hl=en-GB#eula



Installing Centos

Allow a Root group "wheel"
The Right Way:
## Allows people in group wheel to run all commands
%wheel  ALL=(ALL)       ALL
http://serverfault.com/questions/58378/add-new-user-with-root-access-in-linux

Add the user to group wheel
usermod -a -G ftp tony
http://www.cyberciti.biz/faq/howto-linux-add-user-to-group/

Installing SSH
http://www.cyberciti.biz/faq/how-to-installing-and-using-ssh-client-server-in-linux/


Install VM Ware Tools:
http://install-climber.blogspot.hk/2012/02/installingvmwaretoolscentos6visually.html

SQL Server Injection

 SQL Server Injection

Havij:
http://www.itsecteam.com/products/havij-v116-advanced-sql-injection/index.html

SQLMAP
http://sqlmap.org/

Avoiding SQL Injection
https://www.owasp.org/index.php/Avoiding_SQL_Injection

SQL Source Control


http://www.simple-talk.com/content/article.aspx?article=1247

http://www.troyhunt.com/2011/02/automated-database-releases-with.html

Monday, 8 October 2012

安裝 .NET Framework 4 之後無法安裝 .NET Framework 1.0

安裝 .NET Framework 4 之後無法安裝 .NET Framework 1.0

安裝 .NET Framework 4 之後就無法安裝 .NET Framework 1.0,  因此必須先安裝 .NET Framework 1.0,然後再安裝 .NET Framework 4。
若要解決這個問題:
  1. 移至 [控制台],然後開啟 [程式和功能]。
  2. 解除安裝 .NET Framework 4 Extended。
  3. 解除安裝 .NET Framework 4 Client Profile。
  4. 安裝 .NET Framework 1.0。
  5. 安裝 .NET Framework 4。

 


Full Readme:
https://sites.google.com/site/ccwccw110/NETFx4RTM.htm?attredirects=0&d=1

IIS deployment error: There is a duplicate scriptResourceHandler section defined

http://www.codeproject.com/Articles/255278/IIS-deployment-error-There-is-a-duplicate-scriptRe

Error:
Depolying a .NET 3.5 in IIS7
There is a duplicate ‘system.web.extensions/scripting/scriptResourceHandler’ 
           section defined.
 

About .NET Framework 4 Client Profile

.NET Framework 4.0 Client Profile vs .NET Framework 4.0

What is it: The .NET Framework 4?
Client Profile is a subset of the .NET Framework 4 that is optimized for client applications. It provides functionality for most client applications, including Windows Presentation Foundation (WPF), Windows Forms, Windows Communication Foundation (WCF), and ClickOnce features.

Only Difference in Size?
But the Full .NET 4.0 Framework is not much bigger than the client profile. (48 MB against 41 MB). So why should i use the .NET Client Profile?

>The client profile attempts to restrict the set of referenced assemblies to those that are only interesting to a client application. For example it won't make System.Web available by default because it is not typically valuable to client apps.


http://stackoverflow.com/questions/2759228/difference-between-net-4-client-profile-and-full-framework-download
When to use NET4 Client Profile and when to use NET4 Full Framework?
NET4 Client Profile:
Always target NET4 Client Profile for all your client desktop applications (including Windows Forms and WPF apps).
NET4 Full framework:
Target NET4 Full only if the features or assemblies that your app need are not included in the Client Profile. This includes:
  • If you are building Server apps. Such as:
    o ASP.Net apps
    o Server-side ASMX based web services
  • If you use legacy client scenarios. Such as:
    o Use System.Data.OracleClient.dll which is deprecated in NET4 and not included in the Client Profile.
    o Use legacy Windows Workflow Foundation 3.0 or 3.5 (WF3.0 , WF3.5)
  • If you targeting developer scenarios and need tool such as MSBuild or need access to design assemblies such as System.Design.dll
 

Friday, 5 October 2012

Chart API

jQuery Charts:
gRaphael — JavaScript plotting Library
http://g.raphaeljs.com/

Flot - Attractive Javascript plotting for jQuery
http://www.flotcharts.org/
http://drupal.org/project/flot
Flot - How to Add Charts to your Web Pages:
http://www.pikemere.co.uk/blog/flot-how-to-create-charts/
Flot - How to create line charts:
http://www.pikemere.co.uk/blog/flot-how-to-create-line-graphs/


Google Charts:
https://code.google.com/apis/ajax/playground/?type=visualization

Microsoft Chart:
Microsoft Chart Controls for Microsoft .NET Framework 3.5:
http://www.microsoft.com/en-hk/download/details.aspx?id=14422

Microsoft Chart Controls Add-on for Microsoft Visual Studio 2008 (VS Studio ToolBox > Data > Chart)
http://www.microsoft.com/en-us/download/details.aspx?id=23903

Microsoft Chart Controls for .NET Framework Documentation
http://www.microsoft.com/en-us/download/details.aspx?id=11001

Video: how to use Microsoft's Chart Control in your Application
http://www.youtube.com/watch?v=bRnUAwUFIgY

Adding a Syntax Highlighter to your Blogger blog

http://www.cyberack.com/2007/07/adding-syntax-highlighter-to-blogger.html

<pre class="brush:html">
Your 'HTML' code goes here
</pre>
Your 'HTML' code goes here

<pre class="brush:css">
Your 'CSS' code goes here
</pre>
Your 'CSS' code goes here