Showing posts with label Solutions. Show all posts
Showing posts with label Solutions. Show all posts

Jan 2, 2008

Component cannot be created and AspCompact need to be TRUE

Usually in a vb6 to ASP.NET migration process, you will get this error.
Error: The component 'myCOM.COMClass' cannot be created. Apartment threaded components can only be created on pages with an <%@ Page aspcompat=true %> page directive.System.Web

The error above noted that we need to add page directive aspcompat = true because you are using COM interop with ASP.NET pages.

Just simply add the page directive "aspcompat=true" and it solved! :)

Nov 20, 2007

How To Create PDF Files For Free

You need at least a free PDF generator:

Here are some references:
PDFonline.com ( Free Online PDF Generator )
http://www.pdfonline.com/

Go2PDF ( Freeware - Printer Intergration )
http://www.go2pdf.com/product.html


DoPDF ( Freeware - Printer Intergration)
http://www.dopdf.com/download.php
doPDF is a free PDF converter for both personal and commercial use. Using doPDF you can create searchable PDF files by selecting the "Print" command from virtually any application. With one click you can convert your Microsoft Excel, Word or PowerPoint documents or your emails and favorite web sites to PDF files. doPDF5.0 installs itself as a virtual printer driver so after a successful installation will appear in your Printers and Faxes list. To create PDF files, you just have to print your documents to the doPDF pdf converter. Open a document (with Microsoft Word, WordPad, NotePad or any other software), choose Print and select doPDF. It will ask you where to save the PDF file and when finished, the PDF file will be automatically opened in your default PDF viewer. doPDF is free for both personal and commercial use. To install doPDF you need Microsoft Windows 2000, XP, 2003 Server or Windows Vista and approximately 5MB of free disk space. It doesn't require Adobe Acrobat or GhostScript to be installed to generate the pdf file. Searchable PDFs - you can search for text within the generated PDF file (and search engines will also index the text from the PDF)

PDF Creator List ( Freeware)
http://www.trustmeher.net/freeware/pdf.htm

Go2PDF ( Freeware )
http://www.go2pdf.com/product.html

Foxit PDF Creater
http://www.foxitsoftware.com/pdf/creator/

Adobe Acrobat Profesional
http://createpdf.adobe.com/

Steps:
1. Install one of those freeware PDF creator (e.g: Go2PDF )
2. Just open any documents and click print
3. Choose Print to PDF option
4. Save and give a name to your PDF.
5. You can open your new PDF with free PDF Reader.
e.g: Foxit PDF Reader or Acrobat Reader

Nov 10, 2007

How To Monitor Whether A Hosting Is Up?

Pingdom.com
http://www.pingdom.com
  • Profesional Report
  • Sms notification
  • Statistic

AmIUp.co.uk

http://www.amiup.co.uk
  • No need extra configuration
  • Good Report







Microsoft Uptime.exe
http://support.microsoft.com/kb/232243

A new tool, Uptime.exe, is available for displaying system availability. Uptime.exe can be used to display the current uptime of the local or remote system. Optionally, it can also scan the Event log for key system events such as system restart or computers that are not responding (hanging). Where possible, it also calculates system availability. It is primarily intended for Windows NT Server 4.0 Service Pack 4 or later, though it operates in limited fashion on earlier versions.




Host-Tracker.com
http://host-tracker.com







  • Possibility to receive error notifications both to your Email, ICQ, GTalk or cell-phone via SMS;
  • Possibility to receive specified (daily, weekly, monthly, quarterly, yearly) reports;
  • Accumulation of availability statistics with further reporting;
  • Resource accessibility instant check.
  • Uptime button;
  • Distributed monitoring;
  • Instant site check;
  • Monitoring period – every 1/5/15/30/60 minutes;
  • The HEAD/POST/GET HTTP-methods support;
  • Keyword presence control of a page;

UpTime.OpenAcs.Org
http://uptime.openacs.org/uptime/about.adp
  • Free

Nov 8, 2007

Hard To Login MSN Messenger ? Try Flush DNS!

Having Hard Time To Login MSN Live Messenger?

I have a hard time login MSN Live Messenger sometimes, after connected and being 'kick out' again >_<. I found out some way which sometimes works for me: 1. In 'RUN' , type cmd. 2. Try to flush DNS by typing: ipconfig /flushdns 3. Register your DNSagain by typing: ipconfig /registerdns 4. Then try login MSN Live Messenger again. 5. You can view your DNSinformation by typing: ipconfig /displaydns

More Information about Ipconfig As Reference

Displays all current TCP/IP network configuration values and refreshes Dynamic Host Configuration Protocol (DHCP) and Domain Name System (DNS) settings. Used without parameters, ipconfig displays the IP address, subnet mask, and default gateway for all adapters.

Syntax

ipconfig [/all] [/renew [Adapter]] [/release [Adapter]] [/flushdns] [/displaydns] [/registerdns] [/showclassid Adapter] [/setclassidAdapter [ClassID]]

Parameters

/all : Displays the full TCP/IP configuration for all adapters. Without this parameter, ipconfig displays only the IP address, subnet mask, and default gateway values for each adapter. Adapters can represent physical interfaces, such as installed network adapters, or logical interfaces, such as dial-up connections.

/renew [Adapter] : Renews DHCP configuration for all adapters (if an adapter is not specified) or for a specific adapter if the Adapter parameter is included. This parameter is available only on computers with adapters that are configured to obtain an IP address automatically. To specify an adapter name, type the adapter name that appears when you use ipconfig without parameters.

/release [Adapter] : Sends a DHCPRELEASE message to the DHCP server to release the current DHCP configuration and discard the IP address configuration for either all adapters (if an adapter is not specified) or for a specific adapter if the Adapter parameter is included. This parameter disables TCP/IP for adapters configured to obtain an IP address automatically. To specify an adapter name, type the adapter name that appears when you use ipconfig without parameters.

/flushdns : Flushes and resets the contents of the DNS client resolver cache. During DNS troubleshooting, you can use this procedure to discard negative cache entries from the cache, as well as any other entries that have been added dynamically.

/displaydns : Displays the contents of the DNS client resolver cache, which includes both entries preloaded from the local Hosts file and any recently obtained resource records for name queries resolved by the computer. The DNS Client service uses this information to resolve frequently queried names quickly, before querying its configured DNS servers.

/registerdns : Initiates manual dynamic registration for the DNS names and IP addresses that are configured at a computer. You can use this parameter to troubleshoot a failed DNS name registration or resolve a dynamic update problem between a client and the DNS server without rebooting the client computer. The DNS settings in the advanced properties of the TCP/IP protocol determine which names are registered in DNS.

/showclassid Adapter : Displays the DHCP class ID for a specified adapter. To see the DHCP class ID for all adapters, use the asterisk (*) wildcard character in place of Adapter. This parameter is available only on computers with adapters that are configured to obtain an IP address automatically.

/setclassid Adapter [ClassID] : Configures the DHCP class ID for a specified adapter. To set the DHCP class ID for all adapters, use the asterisk (*) wildcard character in place of Adapter. This parameter is available only on computers with adapters that are configured to obtain an IP address automatically. If a DHCP class ID is not specified, the current class ID is removed.

/?: Displays help at the command prompt.

Nov 3, 2007

Reducing your memory usage in Firefox

Ryan on CyberNet news has a good post on reducing your memory usage in Firefox that explains which extensions have memory leaks and which will slow down Firefox’s performance.
Let me list a few of the extensions that cause these problems.



  • IE Tab (memory leak)

  • Session Saver (memory leak)

  • ForecastFox (memory leak)

  • Filterset.G Updater AND FlashGot used in conjunction will produce a memory leak

  • FasterFox doesn’t have a memory leak specifically, but it will not help your Firefox performance.

  • Tabbrowser (slows Firefox)

  • FoxyTunes (memory leak)


Are you using any of these extensions which cosuming a lot of memory ?

How to remove all unwanted Yahoo Messenger Ads

Yahoo! Messenger Ads can get really irritating at times. From time to time it changes Ads wasting our precious bandwidth. One of the easiest ways around this is to remove them using Y.AddsRemover.

To remove all Yahoo! Messenger Ads just start the program and click ‘Select All’ and then ‘Remove Selected Ads’. That’s it. You can now enjoy an Ads free Yahoo! Messenger

Update: Since the orginal link to the software is not working.

Download Y.AddsRemover

How to reduce memory usage of Yahoo Messenger

With every new version, Yahoo! Messenger seems to be using more and more memory than the previous versions. With the addition of the Plugin feature in the latest version, things have got even more bulky.

Currently, Yahoo! Messenger uses about 41,164K memory on my system. Based on your usage of the messenger, the memory usage increases and decreases.
Here are some very simple tips to decrease memory usage of Yahoo Messenger:

Uninstall Plugins:
The amount of memory Plugins use depend on the number of plugins you install. To uninstall plugins from the Plug-ins Manager, go to ‘Actions>Choose a plugin…’ and click the ‘My Plug-ins’ tab. Decide which Plugins you don’t need and then click ‘Stop’ and the icon near to it to uninstall

Remove Ads:
You can save some memory and bandwidth by removing Yahoo! Messenger’s Ads. You can find how to do it here

Switch to Classic Skin: If you prefer performance to appearance, you may switch to the classic skin of Yahoo! Messenger. You can do this by going to ‘Messenger>Change Skin…’ and select Classic from there.

Just little reference to reduce memory usage of yahoo messenger.

Nov 1, 2007

Shrink SQL Data Log File

When DBCC SHRINKFILE is run, SQL Server 2000 shrinks the log file by removing as many virtual log files as it can to attempt to reach the target size. If the target file size is not reached, SQL Server places dummy log entries in the last virtual log file until the virtual log is filled and moves the head of the log to the beginning of the file. The following actions are then required to complete the shrinking of the transaction log:

1. You must run a BACKUP LOG statement to free up space by removing the inactive portion of the log.

2. You must run DBCC SHRINKFILE again with the desired target size until the log file shrinks to the target size.

The following example demonstrates this with the pubs database and attempts to shrink the pubs_log file to 2 MB:
1. Run this code:

DBCC SHRINKFILE(pubs_log, 2)


NOTE: If the target size is not reached, proceed to the next step.

2. Run this code if you want to truncate the transaction log and not keep a backup of the transaction log. Truncate_only invalidates your transaction log backup sequence. Take a full backup of your database after you perform backup log with truncate_only:

BACKUP LOG pubs WITH TRUNCATE_ONLY

-or-
Run this code if you want to keep a backup of your transaction log and keep your transaction log backup sequence intact. See SQL Server Books Online topic "BACKUP" for more information:

BACKUP LOG pubs TO pubslogbackup

3. Run this code:

DBCC SHRINKFILE(pubs_log,2)

must run step 1,2 then 3

Oct 30, 2007

How To Change Vista Desktop Icon Size

Just start using Windows Vista and found the desktop icon is too large which to allow me to put more items on desktops.

so... any of you face the same ?


Solution:

Right-click the desktop, choose View, and choose between "Classic icons", "Medium icons" and "Large icons" (the default is medium).

=)

Oct 28, 2007

Enable Windows Vista Administrator Account

Introduction

If for whatever reason you must login Windows Vista with the Administrator account this guide will show you how it’s done.

Warning: Running as Administrator in Windows Vista bypasses all security (UAC) and is NOT recommended. If you decide to use the Administrator account don’t complain when you start having problems.

Enable the Administrator Account

  1. Open the command prompt with Administrative privileges by opening the Start Menu, type cmd in the search box, and then press Ctrl+Shift+Enter to open cmd with admin rights.
  2. Type the following in the command prompt and press Enter after:

    net user administrator /active:yes

  3. Restart your computer and logon as Administrator.

Note: You might want to set a password for the administrator’s account for at least a little protection.

Disable the Administrative Account

To disable the Administrative account run the Net User command demonstrated above while logged on an account with administrative privileges but not as the Administrator account and replace yes with no.

or

Disable the User Account
To disable the user account run the Net User command demonstrated above while logged on an account with user privileges but not as the Administrator account and replace yes with no.

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

Here is another way!

Remember that cute "Administrator" account you see when you login to safe mode in XP? That's the built-in administrator account that's installed by default, and disabled by default too, after a little digging-in I made this tutorial that'll let you enable and use this account in normal mode, and with a little other tweak, enjoying an XP-like administrator experience, while UAC is left ON (or off, it doesn't matter), but with no prompts or right clicks.


For Windows Vista Ultimate/Business/Enterprise:
1- Click Start, and type "secpol.msc" in the search area and click Enter.
(You may receive a prompt from UAC, approve/login and proceed)

2- In the left list, choose "Local Policies", then "Security Options"

3- Set "Accounts: Administrator account status" to Enabled.

4- Set "User Account Control: Admin Approval Mode for the Built-in Administrator account" to Disabled.


For Windows Vista Home Basic/Home Premium:
1- Click Start, and type "cmd" in the search area, right click on "Command Prompt" and select 'Run as Administrator".

2- In the command prompt type "net users Administrator /active:yes" (Note the capital "A" in Administrator) and press Enter, you will get a confirmation as "The command completed successfully".

3- Click Start, and type "regedit" in the search area and click Enter, navigate to: [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System]Double click on "FilterAdministratorToken" and set it to "0"

*************************************

Now log-off, and you'll see new account named "Administrator" is available, click on it to login.
Now you are the master of your domain! I recommend if you're going to use this method is to apply it as soon as you do a fresh install of Windows, so you can simply delete whatever administrator you've created in the setup process, and make this one the "real" administrator for your PC, also you can rename this new admin account or change its password like any other account from "User Accounts" in the Control Panel.

A last note/disclaimer:
Please note that disabling UAC and using the built in Adminstrator account will also disable IE7 "Protected Mode", fore more information and a work around please see this post.
Please apply this procedures only if you know what you're doing. Disabling security features in the operating system is not something recommended to the average Joe, and for sure I won't be held accountable for any damaging happens to your system or files resulting from running a full administrator account all the time.


Special thanks to:

- Farstrider for providing the location of the relevant register keys that made applying this method to the home versions of Vista possible!.

- bradavon for his comment/solution of IE7 protected mode.