web3 is undefined even when metamask is installed
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. 🙂
Ether Wallet
0x0A25196aBA41d5e026E552C6b6885c625010c6A2
How to upload IPA on testflightapp?
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 […]
Query table containing spatial datatype over linked server
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 * […]
DOS delete all svn related folders or files
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”
“CleanRiaClientFilesTask” task failed unexpectedly
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[] […]
WCF RIA Service: Pass Array, List or Collection as parameter to Invoke method.
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 […]
Silverlight not showing in Firefox
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”/> […]
WCF POX, JSON and SOAP Coexist
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 […]
Windows Firewall opens a range of ports for Passive FTP server
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 […]
SQL server 2008 SP1 Restart computer checks failed
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 […]
VirtualPathProvider not working for static files under IIS 6
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 […]