Thursday, September 26, 2013

test

http://a499.phobos.apple.com/us/r1000/026/Music6/v4/ee/1c/8e/ee1c8eea-cbfc-2984-db5e-5c4f2cf7c8c0/mzaf_3865492851037958779.plus.aac.p.m4a

Thursday, January 17, 2013

Encrypted Field

The steps to encrypt a field is easy, full details are here



CREATE MASTER KEY ENCRYPTION BY
PASSWORD = 'your password here'
GO

CREATE CERTIFICATE EncryptTestCert
    WITH SUBJECT = 'name'
GO


CREATE SYMMETRIC KEY cryptoKey
    WITH ALGORITHM = TRIPLE_DES
    ENCRYPTION BY CERTIFICATE EncryptTestCert
GO


To get encrypted content

OPEN SYMMETRIC KEY cryptoKey
DECRYPTION BY CERTIFICATE EncryptTestCert



ENCRYPTBYKEY(KEY_GUID('cryptoKey'),@input) 



To get decrypted content

OPEN SYMMETRIC KEY cryptoKey
DECRYPTION BY CERTIFICATE EncryptTestCert




CONVERT(nvarchar(Max), DecryptByKey(fieldName))





Tuesday, December 4, 2012

WCF postback size limitation

The maximum size is about 1MB. You need to modify web.config for this.



  <system.serviceModel>
    <serviceHostingEnvironment aspNetCompatibilityEnabled="true"/>
    <standardEndpoints>
      <webHttpEndpoint>
        
       
        <standardEndpoint name="" helpEnabled="true" automaticFormatSelectionEnabled="true" maxBufferSize="2147483647" maxBufferPoolSize="2147483647" maxReceivedMessageSize="2147483647">
          <readerQuotas maxDepth="2147483647" maxStringContentLength="2147483647" maxArrayLength="2147483647" maxBytesPerRead="2147483647" maxNameTableCharCount="2147483647" />
        </standardEndpoint>
      </webHttpEndpoint>
    </standardEndpoints>
  </system.serviceModel>

Sunday, October 7, 2012

Good controls

sortable plugin

uploader

jquery ui theme


app creator

app creator 2

phone gap
api

Good dragable control + color theme

dragable Control

seems that jquery color theme is good

Wednesday, September 19, 2012

integrating ASIHTTP

key note

issues

-xml lib file is missing

Good photo viewer

similar to native photo app viewer

Monday, September 17, 2012

Addressbook - ios 101

Custom control to simulate address book phone vc

Custom control that simulate address book phone detail VC


Sunday, August 19, 2012

Sunday, July 22, 2012

useful snippets

here


Apple controls

apple login form

product showcase from code

loading icon


Good design

Nice color combi

black and yellow

gray color

light gray  color ~ Good

admin site template

jquery Form, buttons & plugins

demo 1 ~ very basic

gradient buttons 101

101 plugins

important !!
CSS Generator

Table column generator

Data Table

sample 1 ~ Datatables

sample 2 ~ flexigrid

sample 3 ~ jqGrid

sample 4 ~ recurly

Saturday, July 21, 2012

time picker

this jquery timepicker is quite basic.

complex type

Wednesday, July 18, 2012

Click to edit control

Click to edit control from original blog
For textarea case, just do a click event to expand the height of the control and shrink it when lose focus.

Wednesday, June 27, 2012

Useful custom control

Tooltip control


Dropdown box selection
- Refresh issue, remember to use the below code when ajax is called. Do it when you try to refresh the current page using ajax
$("SELECT").selectBox('destroy');


Pop up control
- Pop up image only
$.modal("");




Saturday, April 28, 2012

ajax jquery loading

ajax loading screen

Twitter 101

Twitter integration basic

http://search.twitter.com/search.json?q=@XXX&page=X

@XXX : search keyword
X : Current Page

Wednesday, April 18, 2012