Monday, September 13, 2010

Android-Notifier-Desktop

Hi,
I found really a great tool useful for phones based on Andriod.  If you don't want to deal with your phone while you're at your computer, free app Android Notifier will send all your phone's call, SMS, and battery notifications to your desktop. Check out below link for more details.

Android-Notifier-Desktop


Cheers!!!

Ujjwal Soni

Create a Portable Version of Just About Any Program

Hi,

If you're a big fan of portable applicatons, but there isn't a portable version of your favorite app out there, free app Cameyo will create one for you.

Cameyo is a free download for Windows only.

I tried it and it works really great..

Cameyo [via Freeware Genius]

Cheers!!!

Ujjwal Soni

Monday, July 5, 2010

Message: Not Implemented (Annoying Javascript Error)

Hello Everyone,

Recently i was doing some development stuff on Google maps API. After i finished my integration of google maps and google street view API with my application, during testing, i found an annoying Message: Not Implemented error message and the line number to which it was pointing was 1 and was senseless. I did'nt get this error on other browsers like Chrome & Firefox. This error was specific to internet explorer only (Why the hell they keep javascript's different for different browser's god knows !!!). Well, so i did some research and ultimately found a solution.

The error was in one of my javascript's onload function.

In my buggy code it was something like below ::

body.onload=loadMap();

I removed those open close parenthesis and my error got vanished.

body.onload=loadMap;

Internet explorer was really pointing to a strange line number to which you can never imagine this sort of error.

Anyways, thank god to internet explorer 8 javascript debugger which really helped me in finding the correct issue.

Cheers,

Ujjwal Soni

Thursday, July 1, 2010

Google Street View availability validation

Hi,

Yesterday, i was working on street view google maps api, i faced an issue on validating some addresses as well as some latitude longitude data for street view. As street view is avaiable only for some locations, some addresses were showing as blank on street view. I managed to validate that via code mentioned below.

function showStreetViewGoogleMaps()
{



 var svClient = new GStreetviewClient();

        svClient.getNearestPanoramaLatLng(point, function (nearest) {
          if ((nearest !== null) && (point.distanceFrom(nearest) <= 100)) {
             alert('Street view available');
          }
          else {
             alert('Street view not available');        // Not within 100 meters
          }
       });


}

This is how i managed to validate street view for google maps.

Cheers!!!

Ujjwal Soni

Thursday, June 24, 2010

Problem running Apache 2.2 with XAMPP

Hi,

Today i was installing XAMPP on windows 7 desktop. Well, the installation gone perfectly well. Finally, i was able to access XAMPP control panel, but, the moment i started apache 2.2, it failed. Then i installed it as a service and then started, but it was still in vain.

Later on, i changed C:\xampp\apache\conf\httpd.conf file contents as below

Listen 80

to

Listen 81

and then restarted the service, finally it worked.

The reason why i changed the port is because i later on found that skype also listens to the same port which was a default port for Apache 2.2

Tuesday, June 22, 2010

Now Predict through Google Search (funny)

Generating Serial Numbers from Database

Hi,

Recently, in one of my e-commerce applications, there was a need for generating a unique serial number. I tried for all possibilities from java code but some one suggested to do this from backend. I tried for below mentioned way and it worked finally.

CREATE TYPE ARRAY AS TABLE OF VARCHAR2(10)
/

CREATE FUNCTION MY_NUMBERS(N IN NUMBER DEFAULT NULL)
RETURN ARRAY
PIPELINED
AS
BEGIN
FOR j IN 1 .. NVL(N,10)
LOOP
PIPE ROW('ACUPRO'||lpad(j,5,0));
END LOOP;
RETURN;
END;
/

select * from TABLE(MY_NUMBERS(3));

COLUMN_VAL
----------
ACUPRO00001
ACUPRO00002
ACUPRO00003


Regards,

Ujjwal Soni