All Questions
0
votes
0answers
1 views
Given an array sort the elements in alternative order
I have an array of elements A={1,4,2,6,3,9}, I am trying to sort it and create an array that is alternatively sorted. Result A={1,4,2,5,3,6}.
It can be figured out that this makes a cycle where 1,2,3 ...
0
votes
0answers
2 views
UITableView is slow
I have a view which I dragged a UITableView in it, and 2 UIImageViews (the 1st one to show a background image and the second one is just showing a very small title at the top of the view with an ...
0
votes
0answers
2 views
How to reduce large numbers to smallest values keeping relative size differences in C#
Here's my problem. i have potentially large numbers, anywhere from one hundred to one hundred million or even more. i want to feed these numbers to a chart plotter ...
0
votes
0answers
1 views
Clean way to perform commands in the Emacs minibuffer
Consider the following example: I want to read a file using ido from the minibuffer, but merge in all of the directories I use often. I can't just execute
(ido-find-file)
...
0
votes
0answers
3 views
Error when showing captcha in PHP
I have following php script for showing the captcha in a web page, captcha is showing properly in my local apache server but when I uploaded in to the web hosting server I get an error as mentioned ...
0
votes
0answers
2 views
Creating a copy of the buffer pointed by host ptr on the GPU from GPU kernel in OpenCL
I was trying to understand how exactly CL_MEM_USE_HOST_PTR and CL_MEM_COPY_HOST_PTR work.
Basically when using CL_MEM_USE_HOST_PTR, say in creating a 2D image, this will copy nothing to the device, ...
0
votes
0answers
2 views
two dimensional char array in C
On the code below,
char strArr[5][20];
int i;
for(i=0; i<5; i++)
{
printf("string %d: ", i+1);
gets(strArr[i]);
}
strArr[0]=strArr[1]; //have an compile error on this line. Why ...
0
votes
0answers
7 views
multiple times function get called on click of list in navbar
Hi I have list in navbar as:
<div data-role="navbar">
<ul id="mylist">
<li onclick=getData() id="first"><a href="#">First</a></li>
...
-5
votes
0answers
25 views
Puzzle: 19 -1 = 20 ???? [closed]
sometime interviewer asked some wired question for example
6 + 4 = 8 ? how
i think the solution is
6 + Sqrt(4) = 8
but i can not figured it out, how its true
19 - 1 = 20 ?
0
votes
0answers
3 views
EventToCommand or Attached Behaviour for Events in WPF?
i was wondering What i should user for event in MVVM,EventToCommand or Attached Behaviour ?
whitch one has better performance?
0
votes
0answers
2 views
Match graph image with other graphs images using c#?
i want to compare a graph image (black line in a white background) with other set of graphs and identity most similar graph with that pattern .
what is the best way to do that in C#? does we need ...
0
votes
0answers
3 views
Compiling and Running Eclipse Java Project from Ubuntu Command Line
I am trying out a simple Web Service for learning purposes. I have created a eclipse project which has two packages, one for the server and other for the client. In the server package I have two ...
0
votes
0answers
3 views
Location Tracking: Native or web application
I would like to build an Android app that will detect and log the position co-ordinates to database.
I want to compare the results of native and web application on the following criterias
1) ...
0
votes
0answers
3 views
How to use method “scannerOpenWithScan()” and filterString in thrift's C++ to access HBase
How can I use method "scannerOpenWithScan()" and filterString in thrift's C++.
The hbase version is hbase-0.92.1.
I want to select rows by the value of column, so I added the scannerOpenWithScan() ...
0
votes
0answers
5 views
determine the depth of a tree
Is there a data structure designed to find the depth of a tree(not a binary tree) quickly?
Is the D-forest ok?
I need more details about the data structure.
Thanks in advance.