Tuesday, January 17, 2012

IIS 7.5 : Running Classic ASP Site?

Having error messages when trying to run classic .asp pages on your IIS 7.0 or 7.5? Well, you can try this :

Windows 7:
     a) Start>Control Panel>Administrative Tools>Internet Information Services Manager
     b) Select Application Polls. 
     c) Right click on the Application Polls and click Advance Settings
     d) On "Enable 32-Bit Applications" , set it to True.

You might also want to see these additional settings to make your ASP site works:
     a) Start>Control Panel>Administrative Tools>Internet Information Services Manager
     b) On the left Pane, Select your SiteName.(Example: Default Web Site)
     c) Double click on 'ASP' icon.

From there, you can see some of the options you might need to change.

Monday, January 9, 2012

Adobe : Deactivating License

If you own fixed number of adobe suite licenses for your use, you may need to know that you actually need to de-activate your adobe licenses at the PC which you no longer need to use. Uninstalling the Adobe suite DOES NOT remove the Adobe License applied to that computer. 


Example of Scenario:
You have 3 license installed on 3 computer. One of the user decided to use his/her Adobe suite on his/her laptop that they just bought. So, you shall need to de-activatethe license on that user's PC, then only activate the license on his/her new laptop.


To Deactivate your license: Click on Help>Deactivate. Pls make sure you have Internet Connection in order to deactivate it.

SQL Server : Iterating/Traversing rows / results in T-SQL



You may used to iterate records on your application code using from recordset object and looping structure. Well, here are the simple codes which do almost the same thing in SQL Server.


-----------------------------------------------------


DECLARE @mycursor CURSOR
DECLARE @current_row bigint


SET @mycur = CURSOR
FOR
select top 100 id_number from mytablename (however SQL statement that you prefer)


OPEN @mycursor


FETCH NEXT FROM @mycur INTO @current_row


WHILE @@FETCH_STATUS = 0
BEGIN
            --put any processes that you need to do here
FETCH NEXT FROM @mycur INTO @current_row --move to next row.
END


CLOSE @current_row
DEALLOCATE @mycur

Monday, December 19, 2011

Trying to find the best Enterprise/Business EMail solution?

There are numerous e-mail hosting and e-mail solution offered for business & personals in the market today. With each solution providing different level of spamming control, syncronization ability, policies, storage size, and technical support mechanism, it is quite hard to choose the right provider and solution that best fit your entrprise or client.


This is an article you can use as reference. enjoy the reading. :) I shall post more points from myself later...


GMail or Exchange, Six questions to help you make the right choice :
http://www.zdnet.com/blog/bott/gmail-or-exchange-six-questions-to-help-you-make-the-right-choice/3807?pg=2

Friday, August 19, 2011

MSSQL : Need To Update the Date of your records??

Ever had a situation where your terminal had an incorrect date/time  - which causes the entries from that terminal to have wrong date stored inside your DB?


Well, here's an example of the script to update those records. In the example, I only need to update the day of the date. I need to change only the day of those dates to 18th.


declare @startID as Integer --beginning record ID in your list to update
declare @endID as Integer   --last recordID in your list to update
declare @currID as Integer --id as counter
declare @tempD as DateTime --temporary date
declare @dateString as varchar(50) --new Date to be update in String format.


Set @startID = 16883
Set @endID = 16897
Set @currID = @startID


while (@currID <= (@endID) )
BEGIN
select @tempD=thedate from tbl_x where record_id= @currID
PRINT @currID
PRINT @tempD
--construct the Date String (Ammend this to whatever format of date you prefer
Set @dateString = cast(datepart(yy,@tempD) as varchar) + '-' + cast(datepart(mm,@tempD) as varchar)  + '-' + '18' + ' ' + cast(datepart(hh,@tempD) as varchar) + ':' + cast(datepart(mi,@tempD) as varchar) + ':' + cast(datepart(ss,@tempD) as varchar)  
PRINT @dateString
--Update your table
update tbl_x set tbl_thedate=@dateString where record_id= @currID
Set @currID = @currID + 1 
END
GO

Monday, August 8, 2011

Office 2007 Annoying message : "This document is both encrypted and password protected. Do you want to increase the security"...? Disable it now



If you assigned password for your spreadsheet file, and that file was created using earlier version of Microsoft Office(earlier than 2007), you may receive this pop-up notification every time you try to save that file.


How to Disable it now using Windows Registry Editor(REGEDIT).


1. Get Admin access.
2. Go To "Start>Run>". Type in "regedit" and press enter.
3. Browse through the registry for the below key.

     [HKEY_CURRENT_USER\Software\Microsoft\Office\12.0\Common\Security]
     "NoPromptForRC4Encryption"=dword:00000001


4. If the key does not exist, just create it according to the path above.
5. Exit Registry, restart PC, and try to save the same document again.
6. Be Happy ! :)

Sunday, July 31, 2011

Android : Advanced Task Killer (ATK)

When working with smart phones, response time and battery consumption are always a concern. You always look forward to close as much unused apps to conserve processing - which will improve your battery life and response time.

One thing about Android that I dun quite like is there's no something like 'close program' button for ALL apps. (Some apps actually do have- like PAPAGO). So, at a certain point of time, we may not know what apps is actually still running. Well, here's where Task killer apps comes in handy.

Advanced Task Killer(ATK) so far works for my Sony XPeria X8. :) You can spot on any currently running apps in background and choose to close them or otherwise.

You can download it from the web or get it from the Android Market:
http://download.cnet.com/Advanced-Task-Killer-Free-for-Android/3000-18512_4-75011529.html

Android Rulez!!..