Run Multiple Instances of Firefox with Portable Firefox

6 Comments | Sep 05, 2009

You might have needs to open multiple FireFox instances at once for multiple tasks, it’s not just open more and more tabs, but also cookies, authentication session, website, bookmarks, online accounts….That mean multiple FireFox, multiple workspaces/

If you’d love to like so, here is tips to do

image

  1. Download FireFox Portable Editon from portableapps.com.
  2. Run file you have just downloaded, it will extract to where you choose to place your FireFox Portable
  3. Open folder you have just extracted and looking for files [FireFox Portable]\Other\Source\FirefoxPortable.ini
  4. Open FirefoxPortable.ini and change AllowMultipleInstances=false to AllowMultipleInstances=true
  5. Save FirefoxPortable.ini
  6. Copy FirefoxPortable.ini to root folder of [FireFox Portable]
  7. Clone folder [FireFox Portable] as many as you’d like, each of them will be a single FireFox instances
  8. Each time, just choose a folder of them and run FirefoxPortable.exe
  9. Hope you love it.

Get BlogEngine.net running on IIS 7

Add Comment | Jun 22, 2009

You need to make some changes in web.config file in order to get it work.

The easest way is to download an updated web.config here (thanks to ASPone’s wiki).

Get ASP.NET Menu work on Chrome, Safari and Opera

391 Comments | Oct 26, 2008

Matt Williamson have suggest two solutions which both work fine

Solution 1.

   1: using System;
   2: using System.Collections.Generic;
   3: using System.Linq;
   4: using System.Web;
   5: namespace MyProject.WebSite
   6: {
   7:     public class PageBase : System.Web.UI.Page
   8:     {
   9:         protected void Page_PreInit(object sender, EventArgs e)
  10:         {
  11:             // This is necessary because Safari and Chrome browsers don't display the Menu control correctly.
  12:             // All webpages displaying an ASP.NET menu control must inherit this class.
  13:             if (Request.ServerVariables["http_user_agent"].IndexOf("Safari", StringComparison.CurrentCultureIgnoreCase) != -1)
  14:                 Page.ClientTarget = "uplevel";
  15:         }
  16:     }
  17: }

 

Then make sure all of your pages get inherit from this PageBase.

Solution 2.

   1: if (Request.UserAgent.Contains("AppleWebKit")) Request.Browser.Adapters.Clear();

I'm remember that some one have done a smart declarative browser adapting solution which we can control ASP.NET Render to render fine-tuned HTML code for selected Browser in Web.config, but now can't find it back. Please lets me know if you find it around.

Get ASP.NET Menu work on Chrome, Safari and Opera

One Comment | Oct 25, 2008

Matt Williamson have suggest two solutions which both work fine

Solution 1.

   1: using System;
   2: using System.Collections.Generic;
   3: using System.Linq;
   4: using System.Web;
   5: namespace MyProject.WebSite
   6: {
   7:     public class PageBase : System.Web.UI.Page
   8:     {
   9:         protected void Page_PreInit(object sender, EventArgs e)
  10:         {
  11:             // This is necessary because Safari and Chrome browsers don't display the Menu control correctly.
  12:             // All webpages displaying an ASP.NET menu control must inherit this class.
  13:             if (Request.ServerVariables["http_user_agent"].IndexOf("Safari", StringComparison.CurrentCultureIgnoreCase) != -1)
  14:                 Page.ClientTarget = "uplevel";
  15:         }
  16:     }
  17: }

 

Then make sure all of your pages get inherit from this PageBase.

Solution 2.

   1: if (Request.UserAgent.Contains("AppleWebKit")) Request.Browser.Adapters.Clear();

I'm remember that some one have done a smart declarative browser adapting solution which we can control ASP.NET Render to render fine-tuned HTML code for selected Browser in Web.config, but now can't find it back. Please lets me know if you find it around.

Visual Studio: Task failed because "sgen.exe"/"al.exe" was not found, or the correct Microsoft Windows SDK is not installed

10 Comments | Sep 20, 2008

Problems

Compile a Class Library project, you received this error

C:\WINDOWS\Microsoft.NET\Framework\v3.5\Microsoft.Common.targets(1993,9):
error MSB3091:
Task failed because "al.exe" was not found, or the correct Microsoft Windows SDK is not installed. The task is looking for "al.exe" in the "bin" subdirectory beneath the location specified in the InstallationFolder value of the registry key HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SDKs\Windows\v6.0A. You may be able to solve the problem by doing one of the following:
1) Install the Microsoft Windows SDK for Windows Server 2008 and .NET Framework 3.5.
2) Install Visual Studio 2008.
3) Manually set the above registry key to the correct location.
4) Pass the correct location into the "ToolPath" parameter of the task.

Or

C:\WINDOWS\Microsoft.NET\Framework\v3.5\Microsoft.Common.targets(1993,9):
error MSB3091:
Task failed because "sgen.exe" was not found, or the correct Microsoft Windows SDK is not installed. The task is looking for "sgen.exe" in the "bin" subdirectory beneath the location specified in the InstallationFolder value of the registry key HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SDKs\Windows\v6.0A. You may be able to solve the problem by doing one of the following:
1) Install the Microsoft Windows SDK for Windows Server 2008 and .NET Framework 3.5.
2) Install Visual Studio 2008.
3) Manually set the above registry key to the correct location.
4) Pass the correct location into the "ToolPath" parameter of the task.

 

Solutions

- Manually add a registry key http://social.msdn.microsoft.com/Forums/en-US/vssetup/thread/71f6b1fc-2e22-4ced-9825-469beb4381eb/)

  • Copy & paste following to NotePad:

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SDKs\Windows\v6.0A]
"InstallationFolder"="C:\\Program Files\\Microsoft Visual Studio 8\\SDK\\v2.0\\"

  • Then rename the file extention to vsfix.reg.
  • Double-click the file you just created then choose "Yes".
  • You're done. :)

- Add a system environment variable : http://bhaidar.net/cs/archive/2007/12/25/al-exe-not-found-solution.aspx

Some more links I have just know

  1. http://dukelupus.wordpress.com/2008/02/05/task-failed-because-sgenexe-was-not-found-solution/
  2. http://wiki.evident.nl/Default.aspx?Page=Task%20failed%20because%20sgen.exe%20was%20not%20found&AspxAutoDetectCookieSupport=1

Open popular IM from your website

Add Comment | Sep 14, 2008

AOL Instant Messenger (AIM)

AOL Instant Messenger (AIM) ids can be represented using the aim: protocol. Many who publish their AIM ids do so with clickable URLs e.g.:

<a href="aim:goim?screenname=ShoppingBuddy">IM with the AIM ShoppingBuddy</a>  

Yahoo Messenger

Similarly, Yahoo Instant Messenger (YIM) ids can be represented using the ymsgr: protocol. And similarly many publish their YIM ids as clickable URLs e.g.:

<a href="ymsgr:sendIM?SomeYahooFriend">IM with SomeYahooFriend</a>

MSN Messenger

MSN Messenger (MSNIM) ids can be represented using the msnim: protocol. And similarly many publish their MSNIM ids as clickable URLs e.g.:

<a href="msnim:chat?contact=joebob@hotmail.com">IM with joebob@hotmail.com</a>

XMPP (Jabber)

Extensible Messaging and Presence Protocol (XMPP) (http://www.xmpp.org/) ids can be represented using the xmpp: protocol, e.g.:

<a class="url" href="xmpp:username@jabberservice.com">IM with username@jammerservice.com</a>

Skype

Skype can be represented using the skype: protocol. It can be used to open a chat session or make a Skype call.

<a href="skype:echo-chinese?chat">IM with the Skype echo service (Chinese) </a>
<a href="skype:echo-chinese?call">Skype call to Skype echo service (Chinese) </a>  

ICQ

ICQ does not have a URL scheme. Rather ICQ links on the web use HTTP hyperlinks to download a resource of content-type application/x-icq which then the operating system opens with the user's ICQ client.

Thus we can markup those HTTP hyperlinks with the content-type set explicitly to communicate the ICQ semantic:

<a class="url"
   type="application/x-icq" 
   href="http://www.icq.com/people/cmd.php?uin=[ICQNUMBER]&action=message">
 Contact with ICQ</a>

Replacing [ICQNUMBER] with the user's actual ICQ number.

Path to Microsoft .NET 3.5 Developer Certification

Add Comment | Sep 11, 2008

Path to Microsoft .NET 3.5 Developer Certification

RIA: 44 Silverlight 2.0 screencasts

Add Comment | Aug 28, 2008

Mike Taulty recently uploaded and amazing collection of Silverlight 2.0 screencasts on how Silverlight works, controls, File IO, networking, UI design,  data-binding, interacting with HTML pages, and more.

  1. Silverlight - Hello World
  2. Silverlight - Anatomy of an Application
  3. Silverlight - The VS Environment
  4. Silverlight - Content Controls
  5. Silverlight - Built-In Controls
  6. Silverlight - Width, Height, Margins, Padding, Alignment
  7. Silverlight - Using a GridSplitter
  8. Silverlight - Grid Layout
  9. Silverlight - StackPanel Layout
  10. Silverlight - Canvas Layout
  11. Silverlight - Databinding UI to .NET Classes
  12. Silverlight - Simple Styles
  13. Silverlight - Custom Types in XAML
  14. Silverlight - Binding with Conversion
  15. Silverlight - List Based Data Binding
  16. Silverlight - Simple User Control
  17. Silverlight - Templating a Button
  18. Silverlight - Resources from XAP/DLL/Site Of Origin
  19. Silverlight - Animations & Storyboards
  20. Silverlight - Uploads with WebClient
  21. Silverlight - Downloads with WebClient
  22. Silverlight - Calling HTTPS Web Services
  23. Silverlight - Calling Web Services
  24. Silverlight - Making Cross Domain Requests
  25. Silverlight - Using HttpWebRequest
  26. Silverlight - File Dialogs and User Files
  27. Silverlight - Using Sockets
  28. Silverlight - Using Isolated Storage
  29. Silverlight - .NET Code Modifying HTML
  30. Silverlight - Using Isolated Storage Quotas
  31. Silverlight - Calling JavaScript from .NET
  32. Silverlight - Evaluating JavaScript from .NET Code
  33. Silverlight - Handling HTML Events in .NET Code
  34. Silverlight - Handling .NET Events in JavaScript
  35. Silverlight - Calling .NET from JavaScript
  36. Silverlight - Displaying a Custom Splash Screen
  37. Silverlight - Passing Parameters from your Web Page
  38. Silverlight - Loading Media at Runtime
  39. Silverlight - Dynamically Loading Assemblies/Code
  40. Silverlight - Reading/Writing XML
  41. Silverlight - Multiple Threads with BackgroundWorker
  42. Silverlight - Insert/Update/Delete with the DataGrid
  43. Silverlight - Getting Started with the DataGrid
  44. Silverlight - Embedding Custom Fonts

Someone is WRONG on the Internet

Add Comment | Aug 19, 2008

Windows: Logon failure: the user has not been granted the requested logon type at this computer

Add Comment | Aug 16, 2008

When you share a Folder from a Windows XP machine, you might not able to access to it even you see that computer in it's work group, any time you attempt to access to, you receive a error message like

  • \\[SHARE] is not accessible. You might not have permission to use this network resource. Contact the administrator of this server to find out if you have  access permissions. 
  • Logon failure: the user has not been granted the requested logon type at this computer

 

When ran into it, you can consider one of two solution I found from others over Internet. It  might help a lot.

Audit Local Security Settings

  1. On Start Menu>Control Panel>Users, enable Guest user.
  2. Open Local Security Settings by select Start Menu>Control Panel>Administrative Tools>Local Security Settings
  3. Navigate to Local Policies>User Rights Assignment
  4. Right-click on Access this computer from the network>Properties>Add Users or Groups, add everyone or any users you want to be able to access the computer from the network > Add Guest user to this if not exists
  5. Right-click on Deny access to this computer from the network>Properties, remove everyone or any users you do NOT want denied to be able to access the computer from the network > Remove Guest user from this if exists

Using Windows Server 2003 Resource Kit Tools (Steve Winograd)

 

  1. Download and install the Windows 2003 Server Resource Kit Tools
    from http://go.microsoft.com/fwlink/?LinkId=4544 .
  2. Click Start | All Programs | Windows Resource Kit Tools | Command Shell.
  3. Type these lines at the command prompt. The second and third commands are case-sensitive, so type them exactly as shown. Note the "+r" in the second one and the "-r" in the third one:
    • net user guest /active:yes
    • ntrights +r SeNetworkLogonRight -u Guest
    • ntrights -r SeDenyNetworkLogonRight -u Guest

 

Technorati Tags: ,