Monday, October 26, 2009

User Account Control Settings in Windows 7

One of the nice features in Windows 7 is the possibility to tell the system weather it should communicate to you about the changes in your system that applications are attempting to do or not. At home I share my PC with my wife and my children. I surely want to know about the things where as they do not care about these messages. So I can use this tool to sort out for each user.
The tool is accessible through the ControlPanel->AllControlPannelItems->ActionCenter->ChangeAccountControlSettings

Friday, October 23, 2009

Test Your Pages

Some handy tools to check you pageloads:
- HTTPFox : obviously for FireFox, but not available for new version of FF at this time :-(
- HttpWatch a free tool (can upgrade to professional) works on both IE8 and FF as addin. It rocks
- www.webpagetest.org a free website that tests your page from a remote location. They provide three remote location to initiate the test which makes your test very natural.

Wednesday, October 21, 2009

Run As Administrator

If you have an application you want to run it as administrator you could use the following command for it:

runas /user:Administrator MyApp


For things like Cisual Studio 2008 you can change the properties of the shortcut, and in the Advanced Properties check the Run as administrator checkbox.

VS 2008 JavaScript Intellisense

in his artikel about "VS 2008 JavaScript Intellisense" sdescribes the using of WebServices and AJAX Behaviors within javascripts:

http://weblogs.asp.net/scottgu/archive/2007/06/21/vs-2008-javascript-intellisense.aspx

Friday, September 25, 2009

How to stick the footer to the buttom of the page

As usual there are more roads leading to Mekka. This is one way of getting the same result without any scripts. It uses a simple cascading stylesheet:


div#footer
{
   clear: both;
   padding: .5em 1em;
   border-top: 0px solid #ccc;
   text-align: center;
   padding: 0 0 0 0;
   margin: -20px 0 0 -100px;
   position: fixed;
   left : 50%;
   top: 100%;
}

Monday, September 21, 2009

IIS Url Forwarding

One easy way of forwarding can be stablished from within the Web.config in the system.web section:


<urlmappings enabled="true"><blockquote><p><urlmappings enabled="true">
<add mappedurl="~/default.aspx?parm1=1" url="~/home">
<add mappedurl="~/Products.aspx" url="~/products">
<add mappedurl="~/Product.aspx?id=1" url="~/product">
</urlmappings>

How do I secure my browser - Part

I came across a web address that has phishing software. It was www.secure-logins.com. I figured out that this is not the only address in tis domain that has the worm, any address ending to the same domain is doing the same harm. So I had to find a way to stop all the requests going from my browser (or even better from my house) to this domain. This is what I did:

I. Tell your browser never go to that domain.
II. let your router know that this domain should be filtered.

Although the second way is enough to stop the worm but I thought some people might not have the feature in their router to do that, so I also mentioned the first one.


1. In the Internet Explorer go to Menu Tools->Internet Options and when the Internet Options pops up click on the Security tab.
2. You will see different zones. The important zone is : Restricted sites. Click on it.
3. Once you selected the Restricted sites click on the Sites button. This will pop up another window called Restricted Sites which holds a list of sites that you don't want your browser coincidently or willingly go there.
4. In th text box under "Add this site to the zone:" type the following:
*.secure-logins.com
5. Press the Add button and you will see that the address is added to the list
6. Press the Close button and you will be back to the Internet Options.
7. Click OK,
that's it

My router is a D-Link and have an option to filter any requests going to a specific address from any machine at my home. You should check your router's website which is often to e accessed by http://192.168.0.1
In the Advanced menu you will find a link to go to Website Filter. When you get there you will see an empty list where you can add your preferences. The 'Website Filter' option allows you to set up a list of Web sites you would like to deny through your network.
Add the same address there:

thats all.