31 December 2008

Load report failed.

Whenever you trying to open the Crystal Report in run-time, the system prompts you the above error message, means you have to make sure the report path is correct.

If you are doing web application, you can refer to the web.config to verify the correct report path.

To know where is the web.config, you need to check the local path:



Updated 31st December 2008

Beside make sure the path and file name are correct, you may also need to check:

a). The access right of the user to access the RPT file.

This information is collected from http://www.ironspeed.com/Designer/3.2.4/WebHelp/Part_V/Load_Report_Failed.htm

17 December 2008

Forwarded NEWS: Serious security flaw found in Internet Explorer

Reference: http://news.bbc.co.uk/2/hi/technology/7784908.stm



Users of Microsoft's Internet Explorer are being urged by experts to switch to a rival until a serious security flaw has been fixed.

The flaw in Microsoft's Internet Explorer could allow criminals to take control of people's computers and steal their passwords, internet experts say.

Microsoft urged people to be vigilant while it investigated and prepared an emergency patch to resolve it.

Internet Explorer is used by the vast majority of the world's computer users.

"Microsoft is continuing its investigation of public reports of attacks against a new vulnerability in Internet Explorer," said the firm in a security advisory alert about the flaw.

Microsoft says it has detected attacks against IE 7.0 but said the "underlying vulnerability" was present in all versions of the browser.

Other browsers, such as Firefox, Opera, Chrome, Safari, are not vulnerable to the flaw Microsoft has identified.

Browser bait

"In this case, hackers found the hole before Microsoft did," said Rick Ferguson, senior security advisor at Trend Micro. "This is never a good thing."

As many as 10,000 websites have been compromised since the vulnerability was discovered, he said.

"What we've seen from the exploit so far is it stealing game passwords, but it's inevitable that it will be adapted by criminals," he said. "It's just a question of modifying the payload the trojan installs."

Said Mr Ferguson: "If users can find an alternative browser, then that's good mitigation against the threat." But Microsoft counselled against taking such action.

"I cannot recommend people switch due to this one flaw," said John Curran, head of Microsoft UK's Windows group. He added: "We're trying to get this resolved as soon as possible."

"At present, this exploit only seems to affect 0.02% of internet sites," said Mr Curran. "In terms of vulnerability, it only seems to be affecting IE7 users at the moment, but could well encompass other versions in time. "

Richard Cox, chief information officer of anti-spam body The Spamhaus Project and an expert on privacy and cyber security, echoed Trend Micro's warning.

"It won't be long before someone reverse engineers this exploit for more fraudulent purposes. Trend Mico's advice [of switching to an alternative web browser] is very sensible," he said.

PC Pro magazine's security editor, Darien Graham-Smith, said that there was a virtual arms race going on, with hackers always on the look out for new vulnerabilities.

"The message needs to get out that this malicious code can be planted on any web site, so simple careful browsing isn't enough."

"It's a shame Microsoft have not been able to fix this more quickly, but letting people know about this flaw was the right thing to do. If you keep flaws like this quiet, people are put at risk without knowing it."

"Every browser is susceptible to vulnerabilities from time to time. It's fine to say 'don't use Internet Explorer' for now, but other browsers may well find themselves in a similar situation," he added.



Reference: http://news.bbc.co.uk/2/hi/technology/7784908.stm

10 October 2008

Where should I go to check my Informix service port?

Path to check the Informix service port = C:\Windows\system32\drivers\etc\

File name = services

NOTE:

"services" is a file that come with no file type, but you can open it by using any text editor, such as Notepad or UltraEdit.

05 September 2008

Sony Recalls Notebook Computers Due to Burn Hazard

This article is copied from U.S. Consumer Product Safety Commission : http://www.cpsc.gov/cpscpub/prerel/prhtml08/08392.html




WASHINGTON, D.C. - The U.S. Consumer Product Safety Commission, in cooperation with the firm named below, today announced a voluntary recall of the following consumer product. Consumers should stop using recalled products immediately unless otherwise instructed.

Name of Product: Certain VAIO TZ-series Notebook Computers

Units: About 73,000

Manufacturer: Sony Electronics Inc., of San Diego, Calif.

Hazard: Irregularly positioned wires near the computer's hinge and/or a dislodged screw inside the hinge can cause a short circuit and overheating. This poses a burn hazard to consumers.

Incidents/Injuries: Sony has received 15 reports of overheating, including one consumer who suffered a minor burn.

Description: The recalled notebook computer models are the VAIO VGN-TZ100 series, VGN-TZ200 series, VGN-TZ300 series and VGN-TZ2000 series. The computers' screen size is about 11.1" measured diagonally. Not all units are affected; consumers should contact Sony to determine if their unit is included in the recall.

Sold by: The SonyStyle stores and Web site, authorized electronics retailers, and authorized business-to-business dealers nationwide from July 2007 through August 2008 for between $1,700 and $4,000.

Manufactured in: Japan and United States

Remedy: Consumers should stop using the recalled notebook computers immediately and contact Sony to determine if their notebook is affected. The firm will arrange for an inspection and repair, if needed.

Consumer Contact: For additional information, contact Sony toll-free at (888) 526-6219 anytime, or visit the firm's Web site at www.sony.com/support


27 August 2008

Copied From BERNAMA: Screen Blackout? Check If Your Software Is Genuine

http://www.bernama.com/bernama/v3/news_business.php?id=355471

By M. Saraswathi


KUALA LUMPUR, Aug 27 (Bernama) -- Screen blackout? This is software giant Microsoft's latest strategic measure in its war against piracy campaign dubbed as Windows Genuine Advantage (WGA).

For the next five weeks beginning Wednesday, users of pirated versions of the Windows operating system will encounter a plain black background with pop-up window alert, said Microsoft Malaysia's director of client business group, K.T. Ng.

The users will be able to reset the background to the original setting but every 60 minutes the computer will revert to the plain black background and the persistent notice will remain until a genuine copy of Windows is installed and validated.

"It is also about giving genuine users an assurance and protecting them," Ng said.

In 2005 when Microsoft started WGA, for every 10 personal computers that went for validation, only 3.5 passed, but now after almost two years, 70 percent of the personal computers that went for validation passed, he told Bernama in an interview.

"We are aiming for very high passing rates in the future," he said.

Hence, WGA has played a greater role educating the people on genuine software as well as helping to reduce the software piracy rate in Malaysia, according to Ng.

So far, he said, the Malaysian government in collaborating with the industry has managed to bring down the piracy rate to 59 percent from 70 percent 10 years ago.

"The education process is very important and once they start using genuine software and see the benefits for themselves, they will appreciate it," he added.

Asked if price was a factor in users choosing pirated software, Ng said that Microsoft on its part has come up with affordable rates.

For instance, he said, users can purchase a Window Vista Basic at RM250 and the company has also worked together with various parties to come up with ultra low-cost personal computers with Windows XP installed at less than RM80.

Ng said users were mostly unaware that using pirated software made their computers vulnerable to virus attacks, which could result in the loss of all data stored in the computers.

"That kind of cost (of losing the data) is a lot more than the initial savings of RM50 or RM60. So that is very important," he said.

Ng said software purchases were critical decisions for any business and many users did not know that they were the victims of piracy.

Microsofts anti-piracy programmes are designed to help ensure that people receive the high quality, legal product they thought they paid for and when people discovered they have been the victims of piracy, Microsoft offered a number of get- genuine programmes to help them out, he said.

Multimedia Development Corporation's general manager, global profiling and portfolio management, Rizatuddin Ramli, said it is supportive of measures that stimulate and promote an intellectual property (IP) culture in Malaysia.

"Microsofts WGA initiative is one method that bodes well towards realising this behaviour among Malaysians," he said.

Rizatuddin said IP rights in software and services provided local software houses the intellectual assets for economic value of their work in creating solutions for the marketplace.

"We would like to see acts of piracy and disregard for others IP eventually diminished as MSC Malaysia promotes respect for innovation and creation of IP," he said.

International Association of Software Architects president Hasan Ganny Hanif said a reduction in the piracy rate will promote the development of Malaysia into a full-fledged knowledge economy, acknowledging the contribution of IP.

"At the same time, this also provides assurance to local software providers that their 'Made-in-Malaysia' innovations will be protected and that they are able to the reap the rewards of their development and ideas that go into such innovations," he said.

The association is also confident that Microsoft's WGA programme will go some way towards reducing the country's piracy rate and helping to shape a culture that respects IP, he added.

-- BERNAMA

01 July 2008

Even Bill Gates also dunno how to download MovieMaker...!!

Quoted from: http://blog.seattlepi.nwsource.com/microsoft/archives/141821.asp

---- Original Message ----

From: Bill Gates
Sent: Wednesday, January 15, 2003 10:05 AM
To: Jim Allchin
Cc: Chris Jones (WINDOWS); Bharat Shah (NT); Joe Peterson; Will Poole; Brian Valentine; Anoop Gupta (RESEARCH)
Subject: Windows Usability Systematic degradation flame

I am quite disappointed at how Windows Usability has been going backwards and the program management groups don't drive usability issues.

Let me give you my experience from yesterday.

I decided to download (Moviemaker) and buy the Digital Plus pack ... so I went to Microsoft.com. They have a download place so I went there.

The first 5 times I used the site it timed out while trying to bring up the download page. Then after an 8 second delay I got it to come up.

This site is so slow it is unusable.

It wasn't in the top 5 so I expanded the other 45.

These 45 names are totally confusing. These names make stuff like: C:\Documents and Settings\billg\My Documents\My Pictures seem clear.

They are not filtered by the system ... and so many of the things are strange.

I tried scoping to Media stuff. Still no moviemaker. I typed in movie. Nothing. I typed in movie maker. Nothing.

So I gave up and sent mail to Amir saying - where is this Moviemaker download? Does it exist?

So they told me that using the download page to download something was not something they anticipated.

They told me to go to the main page search button and type movie maker (not moviemaker!).

I tried that. The site was pathetically slow but after 6 seconds of waiting up it came.

I thought for sure now I would see a button to just go do the download.

In fact it is more like a puzzle that you get to solve. It told me to go to Windows Update and do a bunch of incantations.

This struck me as completely odd. Why should I have to go somewhere else and do a scan to download moviemaker?

So I went to Windows update. Windows Update decides I need to download a bunch of controls. (Not) just once but multiple times where I get to see weird dialog boxes.

Doesn't Windows update know some key to talk to Windows?

Then I did the scan. This took quite some time and I was told it was critical for me to download 17megs of stuff.

This is after I was told we were doing delta patches to things but instead just to get 6 things that are labeled in the SCARIEST possible way I had to download 17meg.

So I did the download. That part was fast. Then it wanted to do an install. This took 6 minutes and the machine was so slow I couldn't use it for anything else during this time.

What the heck is going on during those 6 minutes? That is crazy. This is after the download was finished.

Then it told me to reboot my machine. Why should I do that? I reboot every night -- why should I reboot at that time?

So I did the reboot because it INSISTED on it. Of course that meant completely getting rid of all my Outlook state.

So I got back up and running and went to Windows Update again. I forgot why I was in Windows Update at all since all I wanted was to get Moviemaker.

So I went back to Microsoft.com and looked at the instructions. I have to click on a folder called WindowsXP. Why should I do that? Windows Update knows I am on Windows XP.

What does it mean to have to click on that folder? So I get a bunch of confusing stuff but sure enough one of them is Moviemaker.

So I do the download. The download is fast but the Install takes many minutes. Amazing how slow this thing is.

At some point I get told I need to go get Windows Media Series 9 to download.

So I decide I will go do that. This time I get dialogs saying things like "Open" or "Save". No guidance in the instructions which to do. I have no clue which to do.

The download is fast and the install takes 7 minutes for this thing.

So now I think I am going to have Moviemaker. I go to my add/remove programs place to make sure it is there.

It is not there.

What is there? The following garbage is there. Microsoft Autoupdate Exclusive test package, Microsoft Autoupdate Reboot test package, Microsoft Autoupdate testpackage1. Microsoft AUtoupdate testpackage2, Microsoft Autoupdate Test package3.

Someone decided to trash the one part of Windows that was usable? The file system is no longer usable. The registry is not usable. This program listing was one sane place but now it is all crapped up.

But that is just the start of the crap. Later I have listed things like Windows XP Hotfix see Q329048 for more information. What is Q329048? Why are these series of patches listed here? Some of the patches just things like Q810655 instead of saying see Q329048 for more information.

What an absolute mess.

Moviemaker is just not there at all.

So I give up on Moviemaker and decide to download the Digital Plus Package.

I get told I need to go enter a bunch of information about myself.

I enter it all in and because it decides I have mistyped something I have to try again. Of course it has cleared out most of what I typed.

I try (typing) the right stuff in 5 times and it just keeps clearing things out for me to type them in again.

So after more than an hour of craziness and making my programs list garbage and being scared and seeing that Microsoft.com is a terrible website I haven't run Moviemaker and I haven't got the plus package.

The lack of attention to usability represented by these experiences blows my mind. I thought we had reached a low with Windows Network places or the messages I get when I try to use 802.11. (don't you just love that root certificate message?)

When I really get to use the stuff I am sure I will have more feedback.

27 June 2008

Bill Gates, finally retired.

Quoted from http://www.microsoft.com/presspass/presskits/leadership/default.mspx

On June 27, 2008, Bill Gates will transition out of a day-to-day role in Microsoft to spend more time on his work at the Bill & Melinda Gates Foundation.

Bill Gates will remain as Microsoft’s chairman and will be involved in selected projects based on direction from Chief Executive Officer Steve Ballmer and the leadership team.

Microsoft will continue to be led by a deep leadership team, led by CEO Steve Ballmer, Chief Research and Strategy Officer Craig Mundie and Chief Software Architect Ray Ozzie.

Say good-bye to Bill Gates as the tycoon of IT, say hello to Bill Gates to get involve full time in charity.

18 June 2008

Firefox Version 3.0 released...!



Finally, the latest version of Firefox is released.

Below are some of the improvements that you can see in the latest release:

a). Whenever you sort your bookmarks, the bookmarks menu will not disappear by itself anymore (Great!).

b). One screen to display more contents. More than 2/3 of the interface of the browser is used to display the contents of the websites that you are surfing. Enjoy?

c). Speeding. I can feel that the speed to load a page is more faster than the Microsoft Internet Explorer or even previous version of Firefox itself.

For more details about the latest version of Firefox, please visit http://www.mozilla.com/en-US/press/mozilla-2008-06-17.html

Enjoy your internet experience now, with Firefox!

07 May 2008

Microsoft Windows XP Service Pack 3

Are you using Microsoft Windows XP?

Then, you are recommended to download the latest service pack for your Windows XP.



How to obtain the latest Windows XP service pack: http://support.microsoft.com/kb/322389/

Release notes for Windows XP Service Pack 3: http://support.microsoft.com/kb/936929

Windows XP Service Pack 3 Network Installation Package for IT Professionals and Developers: http://www.microsoft.com/downloads/details.aspx?FamilyId=5B33B5A8-5E76-401F-BE08-1E1555D4F3D4&displaylang=en

22 April 2008

How to Improve the speed of your computer?



1. "Start" button -> "Run" -> Key in "regedit" and then press "ENTER".

2. In the "Registry Editor", goto "HKEY LOCAL MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management".

3. In the right-hand-side pane, double-click the "DisablePagingExecutive".

4. In the "Edit DWORD Value" form, key in 1 for the "Value Data". Please make sure the "Base" is "Hexadecimal".

5. Click the "OK" button and then close the "Registry Editor".

6. Restart your computer to take effect.

Version numbers in .NET?

'Version number of the program created by you:

System.Reflection.Assembly.GetExecutingAssembly().GetName().Version.ToString()

'Version number of the common language runtime:

System.Environment.Version.ToString()

'Version number of the operating system:

System.Environment.OSVersion.Version.ToString()

18 April 2008

How to For...Loop in SQL statement for Oracle?

-- Assign the data in Table_Name to objX in For...Loop method.
For objX In (Select Field_Name From Table_Name) Loop

-- You can use the Field_Name in Table_Name with objX object now.
If objX.Field_Name = 'OK' Then
-- Some process that you want to do.
End If;

End Loop;

How to call a function within PL/ SQL?

Declare

-- Initialize the date variable.
strDateVar Date;

Begin

-- Call the function and return the value to the variable.
strDateVar := PACKAGE_NAME.Function_Name(Any_related_arguments);

End;

15 April 2008

How to install Microsoft Loopback Adapter? 2

Go to Control Panel -> Add Hardware.

In the Add Hardware Wizard, click the Next button.

System will start the searching for hardware that is not yet been installed.

System will double check with you "Is the hardware connected?". Click the "Yes, I have already connected the hardware" and then click the Next button.

Scroll the list until you see "Add a new hardware device". Select it and then click the Next button.

When you see "The wizard can help you install other hardware", select "Install the hardware that I manually select from a list (Advanced)" and then click the Next button.

Now, select "Network adapters" and then click the Next button.

Select "Microsoft" in the manufacturer list. After that, select "Microsoft Loopback Adapter" in the network adapter list. Then, click the Next button.

Click the Next button.

Installation is completed now. Click the Finish button.

You can review the Microsoft Loopback Adapter that you have installed just now from the Network Connections.

Safari version 3.1



This is the latest browser from Apple Inc.

Previously, this browser is only developed for Apple Mac, but because of the internet browser market is become bigger and bigger, thus Apple now is trying to expand its territory from Mac to PC based computer.

In order to compete with the existing competitors, such as Microsoft Internet Explorer 7 and Mozilla Firefox, Safari is equipped with some useful features such as Bonjour, wider-browsing-screen, faster loading time, faster when execute JavaScript, looks clean, better graphics and fonts, and etc.

Below are my test results:

a). Safari really able to load faster than Mozilla Firefox; but Safari will cost a little bit more of memory usage.

b). Bookmarks feature is not-so-user-friendly if compare to Mozilla Firefox and Microsoft Internet Explorer 7. Beside that, anyone can tell me how to sort Bookmarks in Safari?

c). The default theme for Safari is not that good at the upper section. Those bars, tabs and fonts are come in dark gray color, so you will need to pay more attention to which tab you are accessing and be extra careful when you try to click the tabs.

d). Safari is not able to differentiate which hyperlink is visited. This feature is not comes with the Mozilla Firefox as well; but for Microsoft Internet Explorer 7, the feature is ready.

Overall, I will give 75 points to this browser.

Official website: http://www.apple.com/safari/

09 April 2008

How to connect from Windows Mobile emulator to Microsoft SQL Server 2005 Express Edition?

Beside coding part, there are some settings that developers should do before trying to establish database connection from Windows Mobile emulator to Microsoft SQL Server 2005 Express Edition:

1). Check your Windows Mobile emulator, make sure the network adapter is enabled:



2). Check your SQL Server Configuration Manager, make sure the TCP/ IP is enabled and other settings are set properly:



3). Finally, add the TCP port that using by Microsoft SQL Server 2005 Express Edition into the Windows Firewall -> Exceptions:



Latest Update!

How if you still cannot establish the connection from Windows Mobile emulator to your Microsoft SQL Server 2005 Express Edition?

Please try the following method, it's proven workable:

(a). Go to Emulator Properties, tick the Enable NE2000 PCMCIA network adapter and bind to check box. Make sure the drop-down-list is display your network adapter's name.

(b). Click the OK button.

(c). In the emulator screen, click File -> Reset -> Hard.

(d). Wait until the emulator complete the restart process.

(e). Now, you should be able to establish the connection from Windows Mobile emulator.

How to install Microsoft Loopback Adapter? 1

To install Microsoft Loopback Adapter

1. In the host operating system, right-click My Computer, and then select Properties. Depending on the style of the Start menu, My Computer may be located in the Start menu.

2. In the System Properties dialog box, on the Hardware tab, click Add Hardware Wizard.

3. In the Add Hardware dialog box, click Next.

4. When the Is the hardware connected? dialog box appears, click Yes, I have already connected the hardware, and then click Next.

5. In the Installed hardware list, click Add a new hardware device, and then click Next.

6. In the What do you want the wizard to do? list, click Install the hardware that I manually select from a list (Advanced), and then click Next.

7. In the Common hardware types list, click Network adapters, and then click Next.

8. In the Manufacturer list, click Microsoft.

9. In the Network Adapter list, click Microsoft Loopback Adapter, and then click Next twice.

10. If a message about driver signing appears, click Continue Anyway.

11. In the Completing the Add Hardware Wizard dialog box, click Finish, and then click OK.

Note:
To perform this procedure, you must be a member of the Administrators group on the local computer, or you must have been delegated the appropriate authority. If the computer is joined to a domain, members of the Domain Admins group might be able to perform this procedure. As a security best practice, consider using Securing Virtual Server to perform this procedure.

For more information, please refer to http://technet2.microsoft.com/windowsserver/en/library/43a47e57-089d-495d-b1c5-de63d001e67a1033.mspx?mfr=true

31 March 2008

How to return recordset from SELECT statement in Oracle?

In Oracle, returning a recordset from a stored procedure is not as straight forward as simply write a SELECT statement in MSSQL stored procedure. We will need to make use of a reference cursor to do that.

-- First, declare the reference cursor.
Type YourCursorType Is Ref Cursor;

-- Then, write the SELECT statement as usual by assign the cursor.
Open YourCursorType For
Select Field_Names From Table_Name
Where Related_Conditions
-- Group By Field_Names
-- Order By Field_Names

-- Note that the Group By and Order By are optional statements.

For more information, please refer to: http://decipherinfosys.wordpress.com/2007/08/06/oracle-returning-a-recordset-from-a-stored-procedure/

The request could not be submitted for background processing.

After install the Crystal Report Version 9.0, please remember to install the Crystal Report 9.0 Service Pack 5.

For more information, please refer to: http://technicalsupport.businessobjects.com/KanisaSupportSite/search.do;jsessionid=02A38E28C4F8A1D3D2D9382F64778A5A?cmd=displayKC&docType=kc&externalId=c2012318&sliceId=&dialogID=360384&stateId=1%200%20356275

ORA-06502: PL/SQL: numeric or value error: character string buffer too small

Make sure that the size of the target variable is same as the size of the assign value.

Examples:

-- Correct Way.
fstrVar1 VarChar2 (5);
fstrVar2 VarChar2 (5);

fstrVar2 := ‘12345’;
fstrVar1 := fstrVar2;

-- Incorrect Way.
fstrVar1 VarChar2 (4);
fstrVar2 VarChar2 (5);

fstrVar2 := ‘123456’; -- Error prompted here because fstrVar2 only accept 5 characters.

-- If fstrVar2 is changed to accept 6 characters.
fstrVar1 := fstrVar2; -- Error prompted here because fstrVar1 only accept 4 characters.

The breakpoint will not currently be hit. No symbols have been loaded for this document.

This error occurred when the file date is not match for the *.dll and *.pdb files, normally what I will do is: delete all of the *.pdb files and then debug again.

20 March 2008

How to read a text file by using stored procedure in Microsoft SQL Server?

SET NOCOUNT ON

/* Create a temporary table to store the data in the text file. Maximum character is 8000. */
CREATE TABLE #tempfile (line varchar(8000))

/* Insert data from the text file to the temporary table */
EXEC ('bulk INSERT #tempfile FROM "' + 'C:\Sample.txt' + '"')

/* Return the data in the text file. */
SELECT * FROM #tempfile

/* Drop the temporary table. */
DROP TABLE #tempfile

19 March 2008

Safety Windows Live Messenger

To make sure that your Windows Live Messenger (a.k.a. MSN) is safe enough, normally we will apply the followings:

1). Go to Tools -> Options



2). Go to 'Security', make sure the checkboxes are checked and un-checked accordingly.




3). NEVER open any internet link within the instant messenger or email.

The following are the common words that will be used by those instant messenger spammers or email spammers:

a). Click here to see my pictures.

b). Click here to see who delete you from their msn.

c). I just update my profile, please come and see.

d). I just uploaded some of my recent photos, please come and see.

Prevent is always better than cure.