Sunday, December 19, 2010
Monday, December 13, 2010
"Pull down to refresh" Table view
Friday, December 10, 2010
Dec 9, 2010 Objective-C Memory Management For Lazy People
Thursday, December 9, 2010
Android vs iOS: A Developer’s Perspective
Tuesday, December 7, 2010
Nike Targets Women With New Workout App
http://mashable.com/2010/12/06/mobile-app-development-pitfalls/
Monday, December 6, 2010
Sina Weibo api
http://open.t.sina.com.cn/wiki/index.php/FAQ
http://open.t.sina.com.cn/wiki/index.php/OAuth
http://jssdk.sinaapp.com/_html/api/
Forum:
http://forum.open.t.sina.com.cn/
Thursday, December 2, 2010
Dating Site Lets You Propose Cool Dates, Rather Than Pore Over Pics
Wednesday, December 1, 2010
Social media Campaign 注意事項
2. 如果係Facebook campaign,要check 埋(User not visible) 呢個exception,同收野既人既setting 有關。
Monday, November 15, 2010
cocos2d tutorial
Thursday, November 11, 2010
iframe with no src causes security alert in IE6
http://gemal.dk/blog/2005/01/27/iframe_without_src_attribute_on_https_in_internet_explorer/
Tuesday, November 9, 2010
Thursday, November 4, 2010
jQuery Gallery Plugin
http://devkick.com/lab/galleria/demo_01.htm
http://galleria.aino.se/media/galleria/src/themes/fullscreen/fullscreen-demo.html
http://galleria.aino.se/
http://sandbox.leigeber.com/slideshow/
http://tobia.github.com/CrossSlide/
Monday, October 25, 2010
Thursday, October 21, 2010
Monday, October 18, 2010
iPhone development
1. Learning Objective-C: A Primer
http://developer.apple.com/library/mac/#referencelibrary/GettingStarted/Learning_Objective-C_A_Primer/index.html
2. Your first ios application:
http://developer.apple.com/library/ios/#documentation/iPhone/Conceptual/iPhone101/index.html
Beginning iPhone 3 Development: Exploring the iPhone SDK
http://www.amazon.com/Beginning-iPhone-Development-Exploring-SDK/dp/1430224592
iPhone programming tutorial
http://icodeblog.com/
Sample app:
http://stackoverflow.com/questions/1353130/where-can-i-find-sample-iphone-code
AppsAmuck iPhone Example application:
http://appsamuck.com/
Friday, October 15, 2010
Wednesday, October 6, 2010
ADC hardware purchase program
What is the ADC Hardware Purchase Program and who is eligible for hardware discounts through the ADC Hardware Purchase Program?
The ADC Hardware Purchase Program is only available to existing paid ADC Members and it allows them to purchase, at a discount, a limited number of hardware systems to use for development and testing. ADC Premier members receive ten (10) ADC Hardware Discounts each membership year and ADC Select members receive one (1) ADC Hardware Discount each membership year. Prices, product offerings, and program terms are subject to change at Apple’s discretion. Prices for particular product purchases are those in effect at the time of shipment. All products are accompanied by Apple’s standard limited hardware warranty for those products. Purchases made outside of the ADC Hardware Purchase Program will not be re-booked or credited at developer pricing. There are no refunds on items purchased through the ADC Hardware Purchase Program. There are no hardware discounts associated with the new Mac Developer Program.
Monday, October 4, 2010
Tuesday, September 28, 2010
Monday, September 27, 2010
10 Excellent Tools for Testing Your Site on Mobile Devices
Tuesday, September 21, 2010
Monday, September 20, 2010
Safari browser and asp:menu
http://forums.asp.net/t/941229.aspx
http://codegain.com/articles/aspnet/menus/asp-net-horizontal-menu-control.aspx
Saturday, September 18, 2010
Friday, September 17, 2010
http://softwareas.com/cross-domain-communication-with-iframes
Wednesday, September 15, 2010
HTML5 Examples
http://www.phpguru.org/html5-examples
http://www.smashingmagazine.com/2009/08/04/designing-a-html-5-layout-from-scratch/
http://visionwidget.com/showcase/graphics/521-examples-of-fresh-html5-websites.html
http://visionwidget.com/showcase/graphics/521-examples-of-fresh-html5-websites.html
Wednesday, September 8, 2010
Calling ASP.net validators with javascript
Monday, September 6, 2010
Thursday, September 2, 2010
Monday, August 30, 2010
Wordpress Problem
http://wordpress.org/support/topic/error-is-its-parent-directory-writable-by-the-server-uploading-images
Monday, August 23, 2010
Wednesday, August 18, 2010
Tuesday, August 17, 2010
Article list
http://www.loiclemeur.com/english/2010/08/how-much-can-you-really-make-developing-mobile-apps.html
http://techcrunch.com/2010/08/17/social-recommendations-startup-getglue-launches-android-app-mobile-website/
http://techcrunch.com/2010/08/17/ipad-browsing-share/
Monday, August 16, 2010
Tracking Email with Google Analytics
Sunday, August 15, 2010
Article list 2
facebook宣傳 一「Like」10元
http://hk.news.yahoo.com/article/100815/4/jpjm.html
5萬成本 打造市值千萬企業
http://hk.news.yahoo.com/article/100815/4/jpjn.html
Friday, August 13, 2010
article
http://wiki.developers.facebook.com/index.php/FBJS/Examples/Dialogs/Ajax
Wednesday, August 11, 2010
Monday, August 9, 2010
ASP.net Mobile Device Browser File
The Mobile Browser Definition File contains definitions for individual mobile devices and browsers. At run time, ASP.NET uses the information in the request header to determine what type of device/browser has made the request.
http://mdbf.codeplex.com/releases/view/49626
Sunday, August 8, 2010
Thursday, August 5, 2010
Weekly Articles List
Pokein
ASP.NET Comet Ajax Library
http://pokein.codeplex.com/
Should Developers have Access to Production?
http://blog.serverfault.com/post/893001713/should-developers-have-access-to-production
Six open source projects you should be using
http://infoworld.com/t/enterprise-architecture/six-open-source-projects-you-should-be-using-208
MediaWiki is a free software wiki package written in PHP, originally for use on Wikipedia. It is now used by several other projects of the non-profit Wikimedia Foundation and by many other wikis, including this website, the home of MediaWiki.
Graph api c# get access token
some facebook c# toolkit
http://opengraph.codeplex.com/documentation
http://blog.prabir.me/post/The-Ultimate-Facebook-SDK-for-NET.aspx
http://github.com/prabirshrestha/FacebookSharp
Wednesday, August 4, 2010
Safari Facebook Cookie Problem
http://anantgarg.com/2010/02/18/cross-domain-cookies-in-safari/
http://stackoverflow.com/questions/408582/setting-cross-domain-cookies-in-safari
http://wcrawford.org/2007/08/29/revisited-facebook-safari-and-external-iframes-that-need-cookies/
http://forum.developers.facebook.com/viewtopic.php?pid=254029
http://forum.developers.facebook.com/viewtopic.php?pid=251664
http://forum.developers.facebook.com/viewtopic.php?pid=241391
Tuesday, August 3, 2010
Ajax Control Toolkit AsyncFileUpload
jQuery Template
http://github.com/nje/jquery-tmpl/blob/master/demos/samplesCore/basic.html
http://blog.reybango.com/2010/07/09/not-using-jquery-javascript-templates-youre-really-missing-out/
Monday, August 2, 2010
Friday, July 30, 2010
How to have a javascript callback executed after an update panel postback?
Wednesday, July 28, 2010
Monday, July 26, 2010
Get number of likes of page
https://api.facebook.com/method/fql.query?query=select total_count,like_count,comment_count,share_count,click_count from link_stat where url=
Ref:
http://developers.facebook.com/docs/reference/fql/link_stat
http://forum.developers.facebook.com/viewtopic.php?id=57636
http://forum.developers.facebook.com/viewtopic.php?id=64105
http://www.halgatewood.com/get-number-of-facebook-likes-for-a-url/
Tuesday, July 20, 2010
sql 2000 problem
Monday, July 19, 2010
Facebook get permission link
http://wiki.developers.facebook.com/index.php/Authorization_and_Authentication_for_Desktop_Applications
http://forum.developers.facebook.com/viewtopic.php?pid=247712
http://www.facebook.com/connect/uiserver.php?app_id=
FB.api("/me/accounts")
Wednesday, July 7, 2010
Tuesday, July 6, 2010
Facebook Development FAQ
No. (2010-07-06)
2. Can I send messages to fan page fans?
Yes, through the fan page admin panel.(2010-07-06)
3. Can I open the post to wall popup in fan page tab?
Yes, through the old Facebook.streamPublish function. New Fb.ui cannot. (2010-07-06)
4. Width of multi-friend-selector cannot be changed?
Use width="700" instead of style="width:700px"
5. Encounter Error:
" Fatal error: Uncaught CurlException: 60: SSL certificate problem, verify that the CA cert is OK. Details: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed thrown in /Users/wesbos/Dropbox/OrangeRhinoMedia/reporting/src/facebook.php on line 512"
Solution:
http://forum.developers.facebook.com/viewtopic.php?pid=225380
6. Get Insights from a Page, not an App
http://forum.developers.facebook.net/viewtopic.php?id=58146
7. FQL Like statement
WHERE strpos(message,'the') >= 0
http://forum.developers.facebook.net/viewtopic.php?id=30775
List of posts:
IE8 XSS
http://wiki.developers.facebook.com/index.php/Talk:Fb:request-form#IE8_Final_.28iframe.29
http://forum.developers.facebook.com/viewtopic.php?id=32954
I can't get the new Javascript SDK to work with IE8
http://forum.developers.facebook.com/viewtopic.php?id=61389
Graph API - Post Photo to fan page
http://forum.developers.facebook.com/viewtopic.php?id=59063
Uploading photos to fan page album
http://forum.developers.facebook.com/viewtopic.php?pid=246096
Get Filename from Url
Ref:
http://bytes.com/topic/asp-net/answers/317977-extract-filename-url
Friday, July 2, 2010
Hide CustomValidator error message once the action is done
ValidatorValidate(/*The element here*/);
Reference:
http://www.velocityreviews.com/forums/t62952-calling-function-validatorvalidate-val.html
http://msdn.microsoft.com/en-us/library/aa479045.aspx
Monday, June 21, 2010
Friday, June 18, 2010
Wednesday, June 16, 2010
Monday, June 14, 2010
Facebook post photo to fan page
http://forum.developers.facebook.com/viewtopic.php?pid=235179
http://forum.developers.facebook.com/viewtopic.php?id=59711
http://forum.developers.facebook.com/viewtopic.php?pid=232498
http://forum.developers.facebook.com/viewtopic.php?id=59071
Sunday, May 30, 2010
Facebook Graph API Resources
http://thinkdiff.net/facebook/graph-api-iframe-base-facebook-application-development/
http://stackoverflow.com/questions/2867993/facebook-graph-api-authentication-in-canvas-app-and-track-session
http://www.nikhilk.net/CSharp-Dynamic-Programming-REST-Services.aspx
Iframe app
http://osnapz.wordpress.com/2010/04/23/using-asp-net-with-facebooks-graph-api-and-oauth-2-0-authentication/
Monday, May 17, 2010
Balsamiq Mockups - useful tools for UI
http://www.balsamiq.com/products/mockups
Tuesday, May 11, 2010
Is Response.End() considered harmful and ThreadAbortException
Thursday, May 6, 2010
New Facebook Connect in C#
http://ingig.net/weblog/2010/04/21/using-graph-api-to-post-status-update-with-c/
Good Facebook api tutorial
http://thinkdiff.net/facebook/php-sdk-graph-api-base-facebook-connect-tutorial/
http://thinkdiff.net/facebook/graph-api-javascript-base-facebook-connect-tutorial/
Wednesday, May 5, 2010
Tuesday, May 4, 2010
Monday, May 3, 2010
Twitter Widgets
jQuery Twitter plugin:
http://coda.co.za/content/projects/jquery.twitter/1.0/
http://tweet.seaofclouds.com/
http://www.jquery.wisdomplug.com/jquery-plugins/jquery-user-interface-plugins-jquery-plugins/9-jquery-twitter-plugins/
Friday, April 30, 2010
Thursday, April 29, 2010
Wednesday, April 21, 2010
Monday, April 19, 2010
Convert java.util.Date to java.sql.Date
Friday, April 16, 2010
Wednesday, April 14, 2010
Tuesday, April 13, 2010
Sunday, April 11, 2010
Thursday, April 8, 2010
Facebook App using Java
http://www.developer.com/java/article.php/10922_3733751_3/Writing-Facebook-Applications-Using-Java-EE.htm
Need Java 1.5 to use the api client
My version: 1.5.0_06
Other Tutorials
http://t-machine.org/index.php/2007/08/02/how-to-make-facebook-apps-using-java-part-1/
http://t-machine.org/index.php/2007/08/13/how-to-make-facebook-apps-using-java-part-2/
Sunday, April 4, 2010
Wednesday, March 31, 2010
Sunday, March 28, 2010
Friday, March 26, 2010
Date Extract function of Oracle
select extract(month from date1) from table
select extract(year from date1) from table
Thursday, March 25, 2010
JSP request.setCharacterEncoding
Finally, the solution is
request.setCharacterEncoding("utf8");
JavaServer Page Implicit Objects
http://www.gulland.com/courses/JavaServerPages/jsp_objects.jsp
Oracle Special Table - Dual
Dual is a special table with a garbage cell which is used for our queries.
For example,
select seq.nextval from dual
Wednesday, March 24, 2010
Friday, March 19, 2010
Useful .net 4.0 features
The following list describes additional new capabilities, improvements, and conveniences. Several of these are based on customer suggestions.
To support culture-sensitive formatting, the System.TimeSpan structure includes new overloads of the ToString, Parse, and TryParse methods, as well as new ParseExact and TryParseExact methods.
The new String.IsNullOrWhiteSpace method indicates whether a string is null, empty, or consists only of white-space characters. New overloads have been added to the String.Concat and String.Join methods that concatenate members of System.Collections.Generic.IEnumerable<(Of <(T>)>) collections.
The String.Concat method lets you concatenate each element in an enumerable collection without first converting the elements to strings.
The System.Guid structure now contains the TryParse and TryParseExact methods.
Secure Sockets Layer (SSL) support for the System.Net.Mail.SmtpClient and related classes.
Credentials for password-based authentication schemes such as basic, digest, NTLM, and Kerberos authentication in the System.Net..::.NetworkCredential class. To improved security, passwords may now be treated as System.Security.SecureString instances rather than System.String instances.
Ability to specify how a URI with percent-encoded values is converted and normalized in the System..::.Uri and System.Net.HttpListener classes. For more information, see the System.Net.Configuration.HttpListenerElement, System.Configuration.SchemeSettingElement, System.Configuration.SchemeSettingElementCollection, and System.Configuration.UriSection classes.
Thursday, March 18, 2010
Wednesday, March 17, 2010
ASP.net WebRequest Exception "System.Net.WebException: The server committed a protocol violation"
And here is my stackoverflow post:
http://stackoverflow.com/questions/2460605/asp-net-webrequest-exception-system-net-webexception-the-server-committed-a-pro
Finally I set the request.KeepAlive=false to solve the problem.
Tuesday, March 16, 2010
Monday, March 15, 2010
ObjectDataSource Cache
http://www.asp.net/learn/data-access/tutorial-58-cs.aspx
Using SQL Cache Dependencies
http://www.asp.net/learn/data-access/tutorial-61-cs.aspx
Check if a URL exists
http://stackoverflow.com/questions/924679/c-how-can-i-check-if-a-url-exists-is-valid
http://blogs.microsoft.co.il/blogs/dorr/archive/2008/09/02/how-to-check-if-a-file-exists-over-http.aspx
http://www.developerfusion.com/code/4654/asynchronous-httpwebrequest/
Sunday, March 14, 2010
Thursday, March 11, 2010
Efficiently Paging through data using the ASP.NET ListView Control
http://www.dotblogs.com.tw/walter/archive/2009/07/11/listview-datapager-with-objectdatasource.aspx
http://mosesofegypt.net/post/Building-Custom-Paging-with-LINQ2c-ListView2c-DataPager-and-ObjectDataSource.aspx
http://www.4guysfromrolla.com/articles/011310-1.aspx
SelectCoundMethod with Cache
http://msdn.microsoft.com/zh-cn/library/system.web.ui.webcontrols.objectdatasource.selectcountmethod.aspx
Sunday, March 7, 2010
Internet Explorer shows error when downloading excel file in SSL site
Internet Explorer shows error when downloading excel file in SSL site
http://stackoverflow.com/questions/2399203/internet-explorer-shows-error-when-downloading-excel-file-in-ssl-site
It's aboutthe Reponse Header's cache control.
Sunday, February 28, 2010
Thursday, February 25, 2010
Wednesday, February 24, 2010
Sunday, February 21, 2010
Thursday, February 18, 2010
Wednesday, February 17, 2010
Thursday, February 11, 2010
Wednesday, February 10, 2010
Monday, February 1, 2010
Sunday, January 31, 2010
Thursday, January 28, 2010
Wednesday, January 27, 2010
Facebook Connect
http://wiki.developers.facebook.com/index.php/Getting_Started_with_Facebook_Connect
http://wiki.developers.facebook.com/index.php/How_To_Write_A_Good_Connect_App
http://wiki.developers.facebook.com/index.php/How_Connect_Interacts_with_the_Facebook_API
Disable ?returnUrl for ASP.net Membership
Here are two posts that can solve the problem.
1. Call Response.redirect to the destination URL:
http://www.velocityreviews.com/forums/t367373-remove-returnurl-from-url.html
2. Remove the returnUrl part in the login page:
http://ordinastage.blogspot.com/2007/05/aspnet-membership-returnurl-problem.html
Tuesday, January 26, 2010
Secure HTTP cookie
<httpCookies httpOnlyCookies="false" requireSSL="true" />
http://forums.asp.net/p/1242647/2275159.aspx#2275159
Single Sign-On Enterprise Security for Web Applications
http://msdn.microsoft.com/en-us/library/ms972971.aspx
Monday, January 25, 2010
Thursday, January 21, 2010
OpenSta Tutorial
CHARACTER*512 fileuser, FILE = "user", SCRIPT
CHARACTER*512 filepassword, FILE = "password", SCRIPT
CHARACTER*512 fileaccountno, FILE = "accountno", SCRIPT
CHARACTER*100 currentUsername, LOCAL
CHARACTER*100 currentPassword, LOCAL
CHARACTER*100 currentAccountNo, LOCAL
2. Tell when it should use the new variables
ACQUIRE MUTEX "Login"
NEXT fileuser
NEXT filepassword
NEXT fileaccountno
SET currentusername = fileuser
SET currentpassword = filepassword
SET currentaccountno = fileaccountno
RELEASE MUTEX "Login"
3. Replace the previously recorded info with the new variables.
4. Create new files (.fvr, e.g. user.fvr, password.fvr, accountno.fvr in this case)
Each line in the file represent one record (line break to separate it).
and place them in C:\Program Files\OpenSTA\Repository\Data
5. Create a new Test and drag the script in the task view.
6. Set the VU (Total number of virtual users for this task group)
Error: The located assembly's manifest definition does not match the assembly reference.
The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
Wednesday, January 20, 2010
3DES
http://superconductor.voltage.com/2009/04/3des-128-bit-encryption.html
Friday, January 15, 2010
Thursday, January 14, 2010
Javascript email Regex
Wednesday, January 13, 2010
Tuesday, January 12, 2010
301 redirect using IIS
1. Setup another site and set TCP port to 80 (original site uses other value).
2. Under "Home Directory",
Select "A redirection to a URL",
In Redirect to, type "https://www.example.com$S$Q
3. Check "The exact URL entered above" and "A Permanent redirection for this resource".
Generate a CSV from a generic list of objects using reflection and extension methods
http://www.joe-stevens.com/2009/08/03/generate-a-csv-from-a-generic-list-of-objects-using-reflection-and-extension-methods/
using System.Text;
using System.Reflection;
public static class Extensions
{
public static string GetCSV(this List list)
{
StringBuilder sb = new StringBuilder();
//Get the properties for type T for the headers
PropertyInfo[] propInfos = typeof(T).GetProperties();
for (int i = 0; i <= propInfos.Length - 1; i++)
{
sb.Append(propInfos[i].Name);
if (i < propInfos.Length - 1)
{
sb.Append(",");
}
}
sb.AppendLine();
//Loop through the collection, then the properties and add the values
for (int i = 0; i <= list.Count - 1; i++)
{
T item = list[i];
for (int j = 0; j <= propInfos.Length - 1; j++)
{
object o = item.GetType().GetProperty(propInfos[j].Name).GetValue(item, null);
if (o != null)
{
string value = o.ToString();
//Check if the value contans a comma and place it in quotes if so
if (value.Contains(","))
{
value = string.Concat("\"", value, "\"");
}
//Replace any \r or \n special characters from a new line with a space
if (value.Contains("\r"))
{
value = value.Replace("\r", " ");
}
if (value.Contains("\n"))
{
value = value.Replace("\n", " ");
}
sb.Append(value);
}
if (j < propInfos.Length - 1)
{
sb.Append(",");
}
}
sb.AppendLine();
}
return sb.ToString();
}
}
Monday, January 11, 2010
Avoid concurrent login (logout former login session) in ASP.net membership
protected void Login1_LoggedIn(object sender, EventArgs e)
{
string sKey = Login1.UserName;
string sValue = Session.SessionID;
Session[sKey] = sValue;
TimeSpan SessTimeOut = new TimeSpan(0, 0, HttpContext.Current.Session.Timeout, 0, 0);
HttpContext.Current.Cache.Insert(sKey, sValue, null, DateTime.MaxValue, SessTimeOut,
System.Web.Caching.CacheItemPriority.NotRemovable, null);
}
In Master Page of admin:
protected void Page_Load(object sender, EventArgs e)
{
string sValue = Cache[HttpContext.Current.User.Identity.Name].ToString();
if (Session.SessionID != sValue)
{
FormsAuthentication.SignOut();
Response.Redirect("login.aspx");
}
}
http://stackoverflow.com/questions/2025908/avoid-concurrent-login-logout-former-login-session-in-asp-net-membership
Thursday, January 7, 2010
Monday, January 4, 2010
Hash and Encryption
Hash is 1 way which cannot be decrypted.
Hash method:
1. MD5
2. SHA1
http://dotnetpulse.blogspot.com/2007/12/sha1-hash-calculation-in-c.html
http://www.obviex.com/samples/hash.aspx
http://stackoverflow.com/questions/1454747/how-to-decrypt-md5-or-sha1-is-it-possible
Encryption
Encryption is 2 way and can be decrypted.
Encryption method:
1. TripleDES
2. Rijndael
Rainbow Table
http://en.wikipedia.org/wiki/Rainbow_table
Salt
http://en.wikipedia.org/wiki/Salt_%28cryptography%29