Unmatched response on ItemLook Up based on UPI
I have tried using ItemLook operation to identify an ItemId based on UPC
IdType. I expected to get a unique result, since it is based on UPC. But
for some of the queries made, more than one result came up and sometimes,
items clearly not related to the UPC comes up in response.
For example, made a lookup for "035000530271" item, which is a kitchen
degreaser. I got three responses for it: two of which were from the same
brand and variants, but the third response was of a metal surface polish.
How did this happen? UPC of an item linked to something totally different?
I was hoping that I could make use of Amazon APIs to uniquely identify an
item from its barcode number and get price details. Can you please help me
understand, if this is expected, ie more than one responses, even if its
based on UPC? Or if there is some other way of fine tuning the lookup to
pin point to correct result?
Thanks!
Thursday, 3 October 2013
Wednesday, 2 October 2013
C# like List in VBA
C# like List in VBA
I'd like to create a List<T> on VBA like you create on C#, there is any
way I can do that? I looked for questions about it here on SO, but I could
not find any.
I'd like to create a List<T> on VBA like you create on C#, there is any
way I can do that? I looked for questions about it here on SO, but I could
not find any.
Mapping multiple functions, in order, over a single list
Mapping multiple functions, in order, over a single list
I would like to map three different functions, in order, over a single
list. To demonstrate what I mean, say we want to do the following three
mappings:
(map foo mylist)
(map bar mylist)
(map foobar mylist)
If we define mylist as '(1 2 3), and we run the above functions one at a
time, we get:
(map foo mylist) ===> (foo1 foo2 foo3)
(map bar mylist) ===> (bar1 bar2 bar3)
(map foobar mylist) ===> (foobar1 foobar2 foobar3)
Instead, I would like the output to be in the following format:
===> ((foo1 bar1 foobar1) (foo2 bar2 foobar2) (foo3 bar3 foobar3))
How would you go about this?
I would like to map three different functions, in order, over a single
list. To demonstrate what I mean, say we want to do the following three
mappings:
(map foo mylist)
(map bar mylist)
(map foobar mylist)
If we define mylist as '(1 2 3), and we run the above functions one at a
time, we get:
(map foo mylist) ===> (foo1 foo2 foo3)
(map bar mylist) ===> (bar1 bar2 bar3)
(map foobar mylist) ===> (foobar1 foobar2 foobar3)
Instead, I would like the output to be in the following format:
===> ((foo1 bar1 foobar1) (foo2 bar2 foobar2) (foo3 bar3 foobar3))
How would you go about this?
#EANF#
#EANF#
I need to allow users on my website to delete their images off the server
after they have uploaded them if they no longer want them. I was
previously using the unlink function in PHP but have since been told that
this can be quite risky and a security issue. (Previous code below:)
if(unlink($path.'image1.jpg')){
// deleted
}
Instead i now want to simply move the file into a different folder. This
must be able to be done a long time after they have first uploaded the
file so any time they log into their account. If i have the main folder
which stores the users image(s):
user/
and then within that a folder called del which is the destination to put
their unwanted images:
user/del/
Is there a command to move a file into a different folder? So that say:
user/image1.jpg
moves to/becomes
user/del/image1.jpg
I need to allow users on my website to delete their images off the server
after they have uploaded them if they no longer want them. I was
previously using the unlink function in PHP but have since been told that
this can be quite risky and a security issue. (Previous code below:)
if(unlink($path.'image1.jpg')){
// deleted
}
Instead i now want to simply move the file into a different folder. This
must be able to be done a long time after they have first uploaded the
file so any time they log into their account. If i have the main folder
which stores the users image(s):
user/
and then within that a folder called del which is the destination to put
their unwanted images:
user/del/
Is there a command to move a file into a different folder? So that say:
user/image1.jpg
moves to/becomes
user/del/image1.jpg
Tuesday, 1 October 2013
Algorithm: How to generate a virtual box to include all the points
Algorithm: How to generate a virtual box to include all the points
I am thinking to use a algorithm to create a virtual box to include all
the points in. Here is the example:
1) Original points:
2) The result should look like this:
I've tried to use convex hull algorithm, however, the result will include
white space in the virtual box which is not what I want. It is better to
remove as much as white space. (space that not includes any points). (Each
point has x and y value)
If you guys can provide some idea that will be great. Thanks!!!
I am thinking to use a algorithm to create a virtual box to include all
the points in. Here is the example:
1) Original points:
2) The result should look like this:
I've tried to use convex hull algorithm, however, the result will include
white space in the virtual box which is not what I want. It is better to
remove as much as white space. (space that not includes any points). (Each
point has x and y value)
If you guys can provide some idea that will be great. Thanks!!!
mysqli_query() expects parameter 1 to be mysqli, null given in
mysqli_query() expects parameter 1 to be mysqli, null given in
My error messages
Warning: mysqli_query() expects parameter 1 to be mysqli, null given in
/home/orikina/public_html/peacce/php/peacce.sys.php on line 30
Warning: mysqli_num_rows() expects parameter 1 to be mysqli_result, null
given in /home/orikina/public_html/peacce/php/peacce.sys.php on line 31
My code:
$usernameCheck = mysqli_query($myCon, "SELECT * FROM `users` WHERE
`username` = 'username'");
if (mysqli_num_rows($usernameCheck) > 0)
{
mysqli_query($myCon, "INSERT INTO users (username,
password, email)
VALUES ('$username', '$passwordReal', '$email')")
or die();
$usernameCheck = mysqli_query($myCon, "SELECT * FROM
users WHERE `username` = 'username'");
if (mysqli_num_rows($usernameCheck) > 0)
{
header("location: ../register.php?data=registerSuccess");
}
else
{
header("location:
../register.php?data=registerError&&refine=3");
}
}
My error messages
Warning: mysqli_query() expects parameter 1 to be mysqli, null given in
/home/orikina/public_html/peacce/php/peacce.sys.php on line 30
Warning: mysqli_num_rows() expects parameter 1 to be mysqli_result, null
given in /home/orikina/public_html/peacce/php/peacce.sys.php on line 31
My code:
$usernameCheck = mysqli_query($myCon, "SELECT * FROM `users` WHERE
`username` = 'username'");
if (mysqli_num_rows($usernameCheck) > 0)
{
mysqli_query($myCon, "INSERT INTO users (username,
password, email)
VALUES ('$username', '$passwordReal', '$email')")
or die();
$usernameCheck = mysqli_query($myCon, "SELECT * FROM
users WHERE `username` = 'username'");
if (mysqli_num_rows($usernameCheck) > 0)
{
header("location: ../register.php?data=registerSuccess");
}
else
{
header("location:
../register.php?data=registerError&&refine=3");
}
}
Can we graph $x^{\infty}-y^{\infty}=1$
Can we graph $x^{\infty}-y^{\infty}=1$
Playing around with exponents on $x^{n}-y^{n}=1$ suggests a trend toward
cleaner and cleaner corners as n increases on one graph for even numbers
and a second graph for odd numbers. Therefore, is it possible to graph the
case of $n=\infty$ for odd and/or even numbers (separately)?
Playing around with exponents on $x^{n}-y^{n}=1$ suggests a trend toward
cleaner and cleaner corners as n increases on one graph for even numbers
and a second graph for odd numbers. Therefore, is it possible to graph the
case of $n=\infty$ for odd and/or even numbers (separately)?
Find asymptotic of recurrence sequence math.stackexchange.com
Find asymptotic of recurrence sequence – math.stackexchange.com
Given a sequence $x_1=\frac{1}{2}$, $x_{n+1}=x_n-x_n^2$. It's easy to see
that it limits to $0$. The question is: is there exists an $\alpha$ such,
that $\lim\limits_{n\to\infty}n^\alpha x_n\neq0$. …
Given a sequence $x_1=\frac{1}{2}$, $x_{n+1}=x_n-x_n^2$. It's easy to see
that it limits to $0$. The question is: is there exists an $\alpha$ such,
that $\lim\limits_{n\to\infty}n^\alpha x_n\neq0$. …
Subscribe to:
Comments (Atom)