web3 is undefined even when metamask is installed

By admin - Last updated: Thursday, March 15, 2018

If you have metamask installed, the web3 object should be populated. The invalid html doctype may cause the problem. Double check to see if you have <!DOCTYPE html> on top of your html document. 🙂  

Filed in Random

Ether Wallet

By admin - Last updated: Sunday, December 3, 2017


Filed in Random

How to upload IPA on testflightapp?

By admin - Last updated: Monday, July 29, 2013

It took me an hour to find where the UI is to upload IPA/APK file on testflightapp.com. It is here, on the top right corner – the plus icon as screen capture attached. After all, testflightapp.com offers good platform for developing/testing iphone/android apps. The upload API is also available for integration, this mean you can […]

Filed in android, iphone

Query table containing spatial datatype over linked server

By admin - Last updated: Saturday, September 22, 2012

If the target table containing column with spatial datatype, and you like to do the following query, SELECT * FROM [LinkedServerName].[DatabaseName].dbo.MyPolygon it will return Objects exposing columns with CLR types are not allowed in distributed queries. Please use a pass-through query to access remote object The work around is SELECT * FROM OPENQUERY([LinkedServerName], ‘SELECT * […]

Filed in SQL

DOS delete all svn related folders or files

By admin - Last updated: Tuesday, August 21, 2012

Run the command on the dir which contains the versioned files or folders. for /d /r . %d in (.svn) do @if exist “%d” rd /s/q “%d”

Filed in Random

“CleanRiaClientFilesTask” task failed unexpectedly

By admin - Last updated: Thursday, December 16, 2010

If you are getting the following error while compiling Silverlight project, You can try to delete the obj folder under the current project folder and compile again. Error 43 The “CleanRiaClientFilesTask” task failed unexpectedly. System.ArgumentException: Illegal characters in path. at System.IO.Path.CheckInvalidPathChars(String path) at System.IO.Path.GetDirectoryName(String path) at Microsoft.ServiceModel.DomainServices.Tools.RiaClientFilesTask.<FilesPreviouslyWritten>b__0(String f) at System.Linq.EnumerableSorter`2.ComputeKeys(TElement[] elements, Int32 count) at System.Linq.EnumerableSorter`1.Sort(TElement[] […]

Filed in NotWorking • Tags: , ,

WCF RIA Service: Pass Array, List or Collection as parameter to Invoke method.

By admin - Last updated: Tuesday, December 7, 2010

RIA Service is great WCF service library for Silverlight client, however, I found there are some limitations around customized object. Such as Passing an array, list or collection as parameter to the service method. For example, in RIA service class, public void ProcessProducts(Product[] products) { // code here } Well, this is not allowed by […]

Filed in WCF, WebServices • Tags:

Silverlight not showing in Firefox

By admin - Last updated: Friday, November 12, 2010

Try add the following line in the style sheet. as it is the wrapper div for the form #silverlightControlHost { height:100%; } In the HTML <div id=“silverlightControlHost”>         <object data=“data:application/x-silverlight-2,” type=“application/x-silverlight-2” width=“100%” height=“100%”>                   <param name=“source” value=“ClientBin/MySilverlight.xap”/>                  […]

Filed in NotWorking

WCF POX, JSON and SOAP Coexist

By admin - Last updated: Monday, August 16, 2010

Sometimes, we want to make a service available in different protocols so that clients could have an option to choose one of their favorite methods to consume the web services. Here we are going to talk about how to make one WCF service available in POX(Plain Old XML as XML for short), JSON and SOAP […]

Filed in WCF • Tags: , , , , , , , , ,

Windows Firewall opens a range of ports for Passive FTP server

By admin - Last updated: Friday, August 13, 2010

Windows Firewall opens a range of ports for Passive FTP server, you can not add a range on the UI easily, but you can do it in the command line like below. Run the command in the command prompt, e.g. high port range is from 41000 to 41100 FOR /L %P IN (41000,1,41100) DO netsh […]

Filed in Security

SQL server 2008 SP1 Restart computer checks failed

By admin - Last updated: Tuesday, July 20, 2010

I was trying to install Biztalk server 2010 beta which requires SQL server 2008 SP1. At beginning of installing SQL server 2008 SP1, it says Restart computer required. It looks something has not been reset or cleared properly. After searching around, I realised that this could be caused by that some pending operations hasn’t been […]

Filed in NotWorking • Tags: ,

VirtualPathProvider not working for static files under IIS 6

By admin - Last updated: Wednesday, June 30, 2010

If  you have come across embedding the css, javascript and aspx into a separate dll as resources and the website will resolve them by read out from resources by using the custom VirtualPathProvider. One of the ASP.NET plugin architectures used this method and it works quite well. During the development with visual studio built-in development server, everything […]

Filed in NotWorking • Tags: ,