0
Here are some usefull videos to show Building VS projects with Build and View Build Definition and writing Custom tasks.
Understanding Team Foundation Build Configuration Files
Posted on 8:54 AM by Badragheh and filed under
Visual Studio
Here are some usefull videos to show Building VS projects with Build and View Build Definition and writing Custom tasks.
Understanding Team Foundation Build Configuration Files
0
Posted on 2:36 AM by Badragheh and filed under
C#
string English_pattern = "^([\u0000-\u007F]+)*$"; string Noallowed_pattern = "^[^*?<>:\\//|]*$"; string content = userFile.FileName; if (!Regex.IsMatch(content, English_pattern) || !Regex.IsMatch(content, Noallowed_pattern)) { //English } else { Non-English }
0
Usually after a long run time of SQL service, ther process takes a lot of memory resources. by restarting the service the token memory resource will be released.
restarting can be accomplished using the
net stop
net start
A full list of the exact services is found in the registry (run regedit.exe) under the HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services key.
Alternatively, you can perform the stop and start using the name that is showed in the Services Control Panel applet by putting the name in quotes, i.e.
net stop ""
net start "
Usually after a long run time of SQL service, ther process takes a lot of memory resources. by restarting the service the token memory resource will be released.
restarting can be accomplished using the
net stop
net start
A full list of the exact services is found in the registry (run regedit.exe) under the HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services key.
Alternatively, you can perform the stop and start using the name that is showed in the Services Control Panel applet by putting the name in quotes, i.e.
net stop "
net start "
0
you can use web Deployment tool or IIS Remote manager to migrate from one IIS server to another.
Easily right click on IIS and Deploy -> Export Server Package
http://learn.iis.net/page.aspx/514/export-a-package-through-iis-manager/
http://www.iis.net/download/WebDeploy
you can use web Deployment tool or IIS Remote manager to migrate from one IIS server to another.
Easily right click on IIS and Deploy -> Export Server Package
- .NET Framework 2.0 SP1 or greater
- Web Deployment Tool
- IIS 7.0 or IIS Remote Manager
http://learn.iis.net/page.aspx/514/export-a-package-through-iis-manager/
http://www.iis.net/download/WebDeploy
0
If you have multiple network adaptor, for example network adaptor and Lan adaptor and you want to change the default adaptor which is used by windows follow the instruction:
you have to manually add a "metric" to each interface. Windows will automatically use the interface with a lower metric. To check and change your network adapters' metric:
1. Open Command Prompt and type: route print - you will see a list of active routes, the last column displaying their "metric". Lower metric routes are preferred over higher ones.
2. Open the Network Adapter Properties (Control Panel > Network and Internet > Network Connections > right-click on adapter and choose Properties)
3. Open the properties of Internet Protocol Version 4 (TCP/IPv4).
4. Click on Advanced.
5. Untick "Automatic Metric" and set the interface metric to a number.
6. Hit OK until you close the Network Adapter properties.
7. Repeat steps 2-6 for your other network adapter(s) choosing different metrics. Remember lower metrics are preferred over higher ones.
for more information you can read:
http://support.microsoft.com/kb/299540
http://technet.microsoft.com/en-us/library/cc771274.aspx
Posted on 3:46 AM by Badragheh and filed under
Windows
If you have multiple network adaptor, for example network adaptor and Lan adaptor and you want to change the default adaptor which is used by windows follow the instruction:
you have to manually add a "metric" to each interface. Windows will automatically use the interface with a lower metric. To check and change your network adapters' metric:
1. Open Command Prompt and type: route print - you will see a list of active routes, the last column displaying their "metric". Lower metric routes are preferred over higher ones.
2. Open the Network Adapter Properties (Control Panel > Network and Internet > Network Connections > right-click on adapter and choose Properties)
3. Open the properties of Internet Protocol Version 4 (TCP/IPv4).
4. Click on Advanced.
5. Untick "Automatic Metric" and set the interface metric to a number.
6. Hit OK until you close the Network Adapter properties.
7. Repeat steps 2-6 for your other network adapter(s) choosing different metrics. Remember lower metrics are preferred over higher ones.
for more information you can read:
http://support.microsoft.com/kb/299540
http://technet.microsoft.com/en-us/library/cc771274.aspx
0
Create Your Own Test Certificate and add it to your solution (key certificate)
http://msdn.microsoft.com/en-us/library/ff699202.aspx
How to run application in startup in registry
Microsoft.Win32.RegistryKey key = Microsoft.Win32.Registry.CurrentUser.OpenSubKey("SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Run", true);
key.SetValue("sysadmin", Application.ExecutablePath.ToString());
Get Current Directory of running application
System.Reflection.Assembly.GetExecutingAssembly().Location;
Posted on 7:02 AM by Badragheh and filed under
C#,
Visual Studio
Create Your Own Test Certificate and add it to your solution (key certificate)
http://msdn.microsoft.com/en-us/library/ff699202.aspx
How to run application in startup in registry
Microsoft.Win32.RegistryKey key = Microsoft.Win32.Registry.CurrentUser.OpenSubKey("SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Run", true);
key.SetValue("sysadmin", Application.ExecutablePath.ToString());
Get Current Directory of running application
System.Reflection.Assembly.GetExecutingAssembly().Location;
0
Domain backordering refers to a service that most domain registrars offer which will allow you to register a domain name that will soon be expiring in hopes of capturing the rights to that domain name before someone else grabs it.
to read more:
http://www.mikeindustries.com/blog/archive/2005/03/how-to-snatch-an-expiring-domain
http://www.registercompass.com/wiki/domains/backorder.aspx
these three services are recommended.
Pool.com
Namejet.com
Snapnames.com
Posted on 5:08 AM by Badragheh and filed under
Internet
Domain backordering refers to a service that most domain registrars offer which will allow you to register a domain name that will soon be expiring in hopes of capturing the rights to that domain name before someone else grabs it.
to read more:
http://www.mikeindustries.com/blog/archive/2005/03/how-to-snatch-an-expiring-domain
http://www.registercompass.com/wiki/domains/backorder.aspx
these three services are recommended.
Pool.com
Namejet.com
Snapnames.com


Visual Studio.Net