Wednesday, 24 October 2012

A cool guy

Who is a cool guy? Is he probably handsome, rich and nice?
It's easy for me define the cool guy. I think he or she must be a respectable person.
I can define as shown below.
  • Person who has a dream and works hard to make the dream come ture.
  • Person who keeps his or her faith and act on it.
 Do you agree with me?
I think such kind of people are really attractive for me. Fortunately I know many people like that.
I hope I can be like that someday.

Monday, 15 October 2012

ADO.NET in .NET Framework

A.D.O(ActiveX Data Objects).NET is a part of the base class library included with the Microsoft .NET Framework.The set of classes can be used by programmers to access and modify data stored in relational database systems.
http://en.wikipedia.org/wiki/.NET_Framework
http://www.asp.net/
http://en.wikipedia.org/wiki/ADO.NET
http://msdn.microsoft.com/en-us/library/e80y5yhx.aspx

Wednesday, 10 October 2012

CSS gradients

This post will help you to use CSS gradients in the major browsers. Actually the spec of gradients keeps changing. You must be careful when you use CSS gradients.
 
------------------------------------------------------------------------------------------------
<HTML>
<div class="gradients">
            <p>TEST GRADIENT</p>

 </div>
------------------------------------------------------------------------------------------------
<CSS>
.gradients { 
                   height:80px;
 
                 line-height: 80px;
 
                 color:#fff;
 
                  width: 180px;
                   background: #ffffff; 
                   background-image: -webkit-gradient(linear, left 0%, left 100%, from(#ffffff),                                       to(#000000)); /* Safari 4+, Chrome 2+ */ 
                   background-image: -webkit-linear-gradient(top, #ffffff, 0%, #000000, 100%); /* Safari                    5.1+, Chrome 10+ */ 
                   background-image: -moz-linear-gradient(top, #ffffff 0%, #000000 100%); /* FF 3.6+ */                    background-image: linear-gradient(to bottom, #ffffff 0%, #000000 100%); /* Standard */                    background-image: -ms-linear-gradient(top, #ffffff 0%,#000000 100%);/* IE10 */ 
                   filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffff',                                       endColorstr='#000000',GradientType=0) !important;/* IE7, 8, 9 */ 
 }
------------------------------------------------------------------------------------------------
  

Tuesday, 9 October 2012

How to use input placeholder

Using input placeholders is confusing. However, it’s worth putting placeholders into your site no. Please refer to the website and code below
http://stackoverflow.com/questions/2610497/change-an-inputs-html5-placeholder-color-with-css/2610741#2610741

----------------------------------------------------------------------------
<HTML><input class="search-query" type="text" maxlength="200" size="30" value=""placeholder="Search"></input>
----------------------------------------------------------------------------
<CSS>

input.search-query {
           background-color: #596872 !important;
}
  
input.search-query::-webkit-input-placeholder {/* WebKit browsers */
           background-color: #596872 !important;
           color: #fff !important;
}

input.search-query:-moz-placeholder { /* Firefox 18- */
           background-color: #596872 !important;
           color: #fff !important;
}
input.search-query::-moz-placeholder {  /* Firefox 19+ */
           background-color: #596872 !important;
           color: #fff !important;
}
input.search-query:-ms-input-placeholder {  /* IE 10 */
           background-color: #596872 !important;
           color: #fff !important;
}
----------------------------------------------------------------------------

Sunday, 7 October 2012

CSS Reset

CSS reset are sometimes important because it gives you more control after removing the browser's styling of HTML elements. But you must be careful which CSS reset you should use.
http://www.cssreset.com/which-css-reset-should-i-use/

This one is often used by many developers. Check it out!
http://yuilibrary.com/yui/docs/cssbase/ 

/*
YUI 3.12.0 (build 8655935)
Copyright 2013 Yahoo! Inc. All rights reserved.
Licensed under the BSD License.
http://yuilibrary.com/license/
*/

h1{font-size:138.5%}h2{font-size:123.1%}h3{font-size:108%}h1,h2,h3{margin:1em 0}h1,h2,h3,h4,h5,h6,strong{font-weight:bold}abbr,acronym{border-bottom:1px dotted #000;cursor:help}em{font-style:italic}blockquote,ul,ol,dl{margin:1em}ol,ul,dl{margin-left:2em}ol{list-style:decimal outside}ul{list-style:disc outside}dl dd{margin-left:1em}th,td{border:1px solid #000;padding:.5em}th{font-weight:bold;text-align:center}caption{margin-bottom:.5em;text-align:center}p,fieldset,table,pre{margin-bottom:1em}input[type=text],input[type=password],textarea{width:12.25em;*width:11.9em}#yui3-css-stamp.cssbase{display:none}
 

Thursday, 4 October 2012

C# Remoting via TCP Channel

Use TCP protocol to transmit messages.

http://msdn.microsoft.com/en-us/library/system.runtime.remoting.channels.tcp.tcpchannel.aspx
------------------------------------------------------------------------
namespace Server
{
    class Program
    {
        static void Main(string[] args)
        {
            TcpChannel tcpChannel = new TcpChannel(7777);

            ChannelServices.RegisterChannel(tcpChannel, false);
            ServerQueue queue = new ServerQueue();
            RemotingServices.Marshal(queue, "ServerQueue");

            RemotingConfiguration.ApplicationName = "MyRemoteService";
            RemotingConfiguration.RegisterWellKnownServiceType(typeof(ServerQueue), "ServerQueue", WellKnownObjectMode.Singleton);
        }
    }
}




Drupal7 Google Analytics

You can add the Google Analytics to your Drupal website. Google Analytics is web statistics tracking system provided by Google.
https://drupal.org/project/google_analytics
http://www.youtube.com/watch?v=5EBvNwfKZQE