Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4611004
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T01:12:34+00:00 2026-05-22T01:12:34+00:00

I am running following code : https://github.com/rjrodger/simpledb var simpledb = require(‘simpledb’); var sys =

  • 0

I am running following code :
https://github.com/rjrodger/simpledb

var simpledb = require('simpledb');
var sys = require('sys');
sdb  = new simpledb.SimpleDB({keyid:'kye'
                    ,secret:'mysectkey'});
var str="select  *  from youngib where createdon is not null  order by createdon desc limit 10";                    
sdb.select (str,  function( error, result ) {
        console.log('attr1 = '+sys.inspect(error));
        console.log('result = '+sys.inspect(result));
    });

if i run this in seperate file it run but if i run in my project it gives me this error ,why this error coming?

{ Code: 'SignatureDoesNotMatch',
  Message: 'The request signature we calculated does not match the signature you provided. Check your AWS Secret Access Key and signing method. Consult the service documentation for details.' } 

the problem was that there i have declare

Array.prototype.in_array = function(p_val) {
    for(var i = 0, l = this.length; i < l; i++) {
        if(this[i] == p_val) {
            return true;
        }
    }
    return false;
}

due to this it was not executing the simpledb , i don’t know why, if you know please tell me.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-22T01:12:35+00:00Added an answer on May 22, 2026 at 1:12 am

    If you extend Array.prototype you can get issues with for ... in loops.

    For example:

    Array.prototype.foo = 42;
    var array = [1,2,3];
    for (var index in array) {
        console.log(index + "," + array[index]);
        // logs 0,1 1,2 2,3 foo,42
    }
    

    The for in loop iterates over all properties. So basically your 3rd party code makes the assumption you have not extend on Array.prototype.

    Extending native prototypes is bad practice for these reasons.

    As for your in_array method you could use

    var contains = someArray.some(function(val) {
        return val === p_val;
    });
    

    instead.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am using the following code to tween an movieclip once _global.choiceMade equals 1...
I have the following code: $body = <SOAP-ENV:Envelope>.$data.</SOAP-ENV:Envelope>; $ch = curl_init($FD_Add); curl_setopt($ch, CURLOPT_POST, 1);
I am opening the msgbox in asp.net by following code.. if (ds.Tables[0].Rows[0][12].ToString() == 0
I'm using the Jersey Client library to run tests against a rest service running
I have Pentaho running on a server. On a different server, I have a
I'm trying to overcome the following situation. Given a directory stored on an NTFS
I'm trying install pycrypto on osx with easy_install and I'm getting the following error:
I'm running into a problem using the SnowBallAnalyzer in Lucene.NET. It works great for
I have a WPF (C# and .NET 4) application that has a long running
Hey folks, I've got this rather clumbsy piece of xslt which I use to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.