Below is foreach and the 3 dimension arrays, no problem with the looping but i cannot sepcify which array to echo, they must me the whole arrays like echo $subvalue, any better solutions with looping 3 dimension array? i actually feel weird with this looping. Thanks in adv
foreach ($stories as $key => $story){
//echo "<br />";
…
I've an img element with dynamically changing image. I always want to show this image in its full dimension.
So, I think, I've to dynamically change width and height attributes in img tag.
How can I do this in php or javascript?
Lets say i have 2 arrays
Array1
array($info)
$info['id'] => some id
$info['text'] => some text
etc
lets say i have a function that returns another array called images
Array 2
array($images)
$images[0] => some link 1
$images[1] => some link 2
etc
How do i add $images to the $info array as a new dimension, as such
…
assume there are three group of high dimension vectors:
{a_1, a_2, ..., a_N},
{b_1, b_2, ... , b_N},
{c_1, c_2, ..., c_N}.
each of my vector can be represented as: x = a_i + b_j + c_k, where 1 <=i, j, k <= N. then the vector is encoded as (i, j, k) wich is then can be decoded as x = a_i + b_j + c_k.
my question is, if…
hi.
Suppose I have some pointer, which I want to reinterpret as static dimension array reference:
double *p;
double (&r)[4] = ?(p); // some construct?
Is it possible to do so?
how do I do it?
Hi, I'm trying to use variable in variable in conjunction with delayed expansion but still no luck.
SETLOCAL EnableDelayedExpansion
SET ERROR_COMMAND=exit /B ^!ERRORLEVEL^!
This is my last try. I want to setup an ERROR_COMMAND to be called when one of the steps in batch file crashes. The command is supposed to be:
IF ERRORLEVEL…
Hi,
I am trying to automate a device driver's debug session in Windows XP with Windbg. My device has an "index" register and a "data" register, both memory mapped. The index register must be filled with the internal register's index, and the value can be read from the data register.
So, the followind Windbg command prints correctly…
Hi all,
I have some fairly generic code which uses preprocessor macros to add a certain prefix onto other macros. This is a much simplified example of what happens:
#define MY_VAR(x) prefix_##x
"prefix_" is actually defined elsewhere, so it will be different each time the file is included. It works well, but now I have some…
While reading documentation of Google Data API and Atlassian REST API, I found interesting functionality - link (or title, element expansion) - http://bit.ly/i3rKMw. I would like to implement this functionality in my Java project of web service server for our IS, but I can't find any proper solution or advices for implementation.…
Are there companies that sell new computers that support old ISA bus expansion cards? We have an aging computer running DOS that operates some machinery via an ISA interface board. Updated versions of this board (e.g. PCI, USB) are not available, and I am concerned about the long-term reliability of the 8+ year old computers we…
Hi!
I want to populate a star schema / cube in SSIS / SSAS.
I prepared all my dimension tables and my fact table, primary keys etc.
The source is a 'flat' (item level) table and my problem is now how to split it
up and get it from one into the respective tables.
I did a fair bit of googling but couldn't find a satisfying…
I am creating a cube with the following tables:
Customer
CustomerID,
Name
Customer Rep
CustomerID,
RepID
Rep
RepID,
Name
The important thing here is that there is a many to many relationship between Reps and Customers. I want to be able to ask the question "How much sales for customers working with rep 'A'?" In the data…
What are pointers to pointers (like char **p;) used for? Can there be char ***p; or char ****p;? What would they be used for?
my real question is >>what is the main purpose of char **p;
why we need to use that type
one answer is
char *p - one dimension
char *p - 2 dimensions
char **p - 3 dimensions
…
I am trying to use the APK Expansion Files extension for Android.
I have uploaded the APK to the server along with the extension files. If the application
was previously published i get a response from the server saying NOT_LICENSED:
The code I use is:
APKExpansionPolicy aep = new APKExpansionPolicy(mContext,
…
Heads up: This is a weird question.
I've got some really useful macros that I like to use to simplify some logging. For example I can do Log(@"My message with arguments: %@, %@, %@", @"arg1", @"arg2", @"arg3"), and that will get expanded into a more complex method invocation that includes things like self, _cmd, __FILE__,…
Hello,
I am playing around with multidimensional array of unequal second dimension size.
Lets assume that I need the following data structure:
[&ptr0]-[0][1][2][3][4][5][6][7][8][9]
[&ptr1]-[0][1][2]
[&ptr2]-[0][1][2][3][4]
int main()
{
int *a[3];
int *b;
int i;
a[0] = (int *)malloc(10 * sizeof(int));
…
Hello guys
I would like to know how to compare two two-dimension arrays value.
First array
Array 1
(
[0] => Array
(
[0] => a
)
[1] => Array
(
[0] => b
)
[2] => Array
(
[0] => c
)
}
Second one
Array 2
…
Hi Everyone,
I am looking for some suggestions on a problem that I am currently facing.
I have a set of sensor say S1-S100 which is triggered when some event E1-E20 is performed. Assume, normally E1 triggers S1-S20, E2 triggers S15-S30, E3 triggers S20-s50 etc and E1-E20 are completely independent events. Occasionally…
Hello all,
I am inheriting a Dell Dimension 8200, but it needs RAM to get up and running. I have PC3200 sticks lying around, but I am not sure how to go about figuring out if the RAM is compatible, as RAM has always confused me. Here is the Dell Dimension 8200 Tech Specs:…
Question
Do you think genetic algorithms worth trying out for the problem below, or will I hit local-minima issues?
I think maybe aspects of the problem is great for a generator / fitness-function style setup. (If you've botched a similar project I would love hear from you,…
Hi all.
I'm currently trying to automatically generate a set of fuzzy rules for a set of observations which contain four values for each observation, where each observation will correspond to a state (a good example is with Fisher's Iris Data).
In Matlab I am creating a…
I have a Dell Dimension 5150 desktop, I am not able to hear any sound when any audio file is playing, I have checked the audio drivers and have downloaded the drivers from the dell site,
Is this a Hardware problem with the sound card, in case is there any way to find out…