Thursday, September 5, 2013

Internet Information Services (IIS) fail to start webserver - HRESULT : 0x80070020 (Reason: Skype update)

Internet Information Services (IIS) fail to start webserver - HRESULT : 0x80070020 (Reason: Skype update)

Recently when trying to start the website using Inetmgr I am getting error that "The process cannot access the file because it is being used by another process. (Exception from HRESULT: 0x80070020)". Everything was working fine a day before.

I checked the log and found that Skype was the only application that was updated the previous day. On checking the settings of the Skype I found that it is configured to use the port 80 which is the default port used by the webserver.

I changed the port and the webserver started working.
 Steps to change the setting in
Skype Tools -> Options -> Advanced -> Connection and
un-check 'Use port 80 and 443 as alternatives for incoming connections'.

 Restart Skype.

Monday, July 22, 2013

Un-Ordered List, Ul li - List Items Multiple Columns

ul{ width:760px; margin-bottom:20px; overflow:hidden; border-top:1px solid #ccc; } li{ line-height:1.5em; border-bottom:1px solid #ccc; float:left; display:inline; } #double li { width:50%;} /* 2 col */ #triple li { width:33.333%; } /* 3 col */ #quad li { width:25%; } /* 4 col */ #six li { width:16.666%; } /* 6 col */

Solve Microsoft IIS Error - 0x80070021


code 0x80070021 and http error 500.19 and managed to solve it
With command prompt launched as Admnistrator, go to : C:\Windows\Microsoft.NET\Framework64\v4.0.30319>
execute
aspnet_regiis -i
There you go :)

Monday, May 6, 2013

DNN Host Login PassWord Lost


Method 1:
Goto your website and register as a new user
    * make sure to remember the username and password we will need this later!
Login to your database and locate the “Users” table.
Copy the information in the password cell for the new user you created.
Paste the password you copied into the password field of the host or admin account needing the password reset.
Delete the user the user you created in Step 1.
Save the table.

You should be able to login with the host or admin account with the new password you created during the registration process.

If you are still unable to login then try the next method.

Method 2:
Goto your website and register as a new user
* make sure to remember the username and password we will need this later!
Run the following query, replacing “KNOWNUSERNAME” with the username of the user you created, and replace “LOSTUSERNAME” with the user your trying to reset (host or admin):

/*
-- Database Utility ---------------------------------------------------------------------------
Description : Reset a Password in a DotNetNuke database
Author : Tony Tullemans
Date Created : 18.04.2007
Note/s : Before you run this script you must know the UserName and Password of another
registered DNN user in the database you wish to affect.
-----------------------------------------------------------------------------------------------
*/

DECLARE @databaseName VARCHAR(128)
SELECT @databaseName = DB_NAME()

PRINT 'RESET PASSWORD IN DATABASE : ' + @databaseName
PRINT '-----------------------------' + REPLICATE('-', DATALENGTH(@databaseName ));

DECLARE @knownUserName NVARCHAR(128)
DECLARE @lostUserName NVARCHAR(128)
DECLARE @lostUserId NVARCHAR(128)
DECLARE @knownPassword NVARCHAR(128)
DECLARE @knownSalt NVARCHAR(128)

SET @knownUserName = 'KNOWNUSERNAME'
SET @lostUserName = 'LOSTUSERNAME'

SELECT @knownPassword = Password, @knownSalt = PasswordSalt
FROM aspnet_Membership
INNER JOIN aspnet_users
ON aspnet_Membership.UserId = aspnet_users.UserId
where UserName = @knownUserName;

PRINT ''
PRINT 'Known Password for "' + @knownUserName + '" is : ' + @knownPassword
PRINT 'Known Password Salt for "' + @knownUserName + '" is : ' + @knownSalt

SELECT @lostUserId = aspnet_Membership.UserId
FROM aspnet_Membership
INNER JOIN aspnet_users
ON aspnet_Membership.UserId = aspnet_users.UserId
WHERE UserName = @lostUserName;

PRINT ''
PRINT 'UserID for "' + @lostUserName + '" is : ' + @lostUserId
PRINT ''

IF (DATALENGTH(@lostUserName) <= 0 OR @lostUserName IS NULL)
PRINT 'Invalid Lost User Name ' + @lostUserName
ELSE BEGIN
IF (DATALENGTH(@knownUserName) <= 0 OR @knownUserName IS NULL)
PRINT 'Invalid Lost User Name ' + @lostUserName
ELSE BEGIN
IF (DATALENGTH(@knownPassword) <= 0 OR @knownPassword IS NULL)
PRINT 'Invalid Known Password ' + @knownPassword
ELSE BEGIN
IF (DATALENGTH(@knownSalt) <= 0 OR @knownSalt IS NULL)
PRINT 'Invalid Known Salt ' + @knownSalt
ELSE BEGIN
PRINT ''
PRINT 'BEFORE'
SELECT left(UserName, 12) as UserName, aspnet_Membership.UserId, left(Email, 20) as Email, Password, PasswordSalt
FROM aspnet_Membership INNER JOIN aspnet_users ON aspnet_Membership.UserId = aspnet_users.UserId
WHERE UserName IN ( @knownUserName, @lostUserName );
PRINT ''
PRINT 'Changing Password for User Id : "' + @lostUserId + '" to "' + @knownPassword + '"'
PRINT ''
UPDATE aspnet_Membership
SET Password = @knownPassword,
PasswordSalt = @knownSalt
-- SELECT UserId, Password, PasswordSalt
-- FROM aspnet_Membership
WHERE UserId = @lostUserId;
PRINT ''
PRINT 'AFTER'
SELECT left(UserName, 12) as UserName, aspnet_Membership.UserId, left(Email, 20) as Email, Password, PasswordSalt
FROM aspnet_Membership INNER JOIN aspnet_users ON aspnet_Membership.UserId = aspnet_users.UserId
WHERE UserName IN ( @knownUserName, @lostUserName );
END
END
END
END
GO

PRINT ''
PRINT ' * * * END OF SCRIPT * * *'
PRINT ''
GO

This query will copy the password of your new user overtop the password of your lost user. Once its run you should be able to login to DNN with the new password.

Monday, March 18, 2013

Re-enabling your locked HDFC Bank NetBanking Account & Re-generating your Password

Many a times it so happens that you enter a wrong password consecutively 5 times at the HDFC bank Netbanking site & your account gets locked. Now you have 2 problems - your NetBanking access locked out & also that you have forgotten your password. The Banks standard procedure calls for filling an application form at the Branch to re-enable your account & also re-generate a new password.

I have discovered a simple workaround with which you use the power of Net to both re-enable your account & re-generate a new password.
(My site statistics show that this is one of my most successful posts in my Blog. Unfortunately, almost all my readers forget to drop me a THANK YOU message after getting the required results :-( . I would feel nice if you could comment on this post after successfully unlocking your HDFC Bank NetBanking Account. This would inspire me to write more.)

The procedure is as follows -
  1. Visit https://www.hdfcbank.com/applications/webforms/customersupport/mainfrm.htm & select the Radio Button "I am a customer of the bank and have a query / Clarification on a transaction / Product".
  2. Now under the section "What is the query about?" section select "Assistance with NetBanking Service".
  3. Now under the section "Kindly classify your request:" select "Access Denied - Enable access to NetBanking" & then click on submit.
  4. In the following screen fill up all your details - Customer ID, First Name, Last Name, E-mail ID.
  5. Now comes the most important trick - select the check box "Yes I remember my IPIN and just need re-activation of the same.". Though this may sound funny, since you don't remeber your IPIN (NetBanking Password), but do this as suggested by me. And then click submit.
  6. After almost 24 hours visit the NetBanking page & under the "Whats New" section on the right hand side, click on the link for "Forgot Your IPIN (password), click here to generate instantly".
  7. Now just follow the steps & re-generate a new IPIN.
Simple... isn't it ? So never ever worry again if you have a locked HDFC Bank NetBanking account & have forgotten your password :)

Tuesday, March 5, 2013

Enable Dynamic Content Compression in IIS 6, 7

Installation of the Dynamic Content Compression feature 

• Windows 7 and Vista
1. Open the Programs and Features console by going to Start > Control Panel > Programs and Features.
2. Click 'Turn Windows features on or off'.
3. In the Windows Features dialog, expand Internet Information Services > World Wide Web Services > Performance Features, and turn on Dynamic Content Compression.
4. Click OK.

• Windows Server 2008
1. Open the Server Manager console by going to Start > All Programs > Administrative Tools > Server Manager.
2. In the Server Manager tree view, expand Roles, and click Web Server (IIS).
3. In the main window, scroll down to the Role Services panel, and click Add Role Services.
4. In the Select Role Services dialog, click and enable Web Server (Installed) > Performance (Installed) > Dynamic Content Compression.
5. Click Next.
6. On the Confirm Installation Selections screen, click Install.
Enable compression in Microsoft IIS 7
1. Go to Start > All Programs > Administrative Tools > Internet Information Services (IIS) Manager.
2. In the Internet Information Services (IIS) Manager dialog, highlight the server name.
3. In the Features View, scroll down to the IIS Section and double-click the Compression icon.
4. Select 'Enable dynamic content compression'. Ensure that 'Enable static content compression' is also selected.
5. In the Actions box, click Apply.

 Consider increasing the value of the 'Only compress files larger than (in bytes)' setting to 1,024 bytes (1 kilobyte) or greater so the server and client application do not use resources to compress content of a relatively small size. This optimization setting depends on the individual system and may be affected by many factors such as available memory, CPU size, and CPU load. Esri does not recommend a value higher than 2,048 bytes (2 kilobytes).
6. Restart IIS by opening the Run dialog, typing "iisreset", and then clicking OK.

Tuesday, August 17, 2010

Its my Theory!!!

Creativity is the ability to generate innovative ideas and manifest them from thought into reality. The process involves original thinking and then producing.

The process of creation was historically reserved for deities creating "from nothing" in Creationism and other creation myths. Over time, the term creativity came to include human innovation, especially in art and science and led to the emergence of the creative class.

Creativity comes from the Latin term creō "to create, make". The ways in which societies have perceived the concept of creativity have changed throughout history, as has the term itself. Originally in the Christian period: "creatio" came to designate God's act of Ex nihilo, "creation from nothing." "Creatio" thus had a different meaning than "facere" ("to make") and did not apply to human functions. The ancient view that art is not a domain of creativity persisted in this period.

Creativity and positive affect relations

According to Isen, positive affect has three primary effects on cognitive activity:

1. Positive affect makes additional cognitive material available for processing, increasing the number of cognitive elements available for association;
2. Positive affect leads to defocused attention and a more complex cognitive context, increasing the breadth of those elements that are treated as relevant to the problem;
3. Positive affect increases cognitive flexibility, increasing the probability that diverse cognitive elements will in fact become associated. Together, these processes lead positive affect to have a positive influence on creativity.

Fredrickson in her Broaden and Build Model suggests that positive emotions such as joy and love broaden a person's available repertoire of cognitions and actions, thus enhancing creativity.

According to these researchers, positive emotions increase the number of cognitive elements available for association (attention scope) and the number of elements that are relevant to the problem (cognitive scope).