All Questions
0
votes
0answers
6 views
about check the number from string
This is my plan. {i using linux(mac(xcode&terminal))}
Name of program is Tour Company.
Ask for the user's first name and the discount code (3 letters plus 1 digit, e.g. "AGF2",or 0 if no ...
-1
votes
0answers
5 views
How can i find what variable is null and why?
I have this new class that is working every second with a backgroundworker in Form1.
This is i how i call it in Form1:
private void backgroundWorker1_DoWork(object sender, DoWorkEventArgs e)
...
0
votes
1answer
14 views
how to get the attribute value of 'width' property
This is my progress bar http://jsfiddle.net/vjNpj/2247/ , I want the span (percentage value) can change together when the width of the div changed. like when the width is 50%, the span will display ...
0
votes
0answers
4 views
Mashable like menu not working
I need to make a mega menu/mashable like menu similar to one as show in image below
So far i have been able to make it work to some extent example on jsFiddle HERE.
this has some design issue and ...
-6
votes
0answers
14 views
How do I write a code in Java which allows the user to input words and the app says which is the longest? [on hold]
I need to write a code that asks the user how many words the user wants and then the user types what those words are. The program will then display all the words and then separately display the ...
0
votes
1answer
7 views
structure type country[i].gold ;
For the line of code: {country[i].gold++;} where country is an array variable of a certain structure type and is gold is a field declared as an integer in the same structure type, why cant ...
0
votes
0answers
6 views
how to improve the homography accuracy?
I used opencv's cv::findHomography API to caculate the homography matrix of two planar images.
The matched key points are extracted by Sift and matched by BFMatcher. As I know, cv:findHomography use ...
1
vote
0answers
9 views
javascript event handler after removing node
if i add event handler on any element in javascript like
var link = document.createElement("a");
document.body.appendChild(link);
link.addEventListner("click",function(){
alert("do ...
-1
votes
1answer
13 views
python breaking if statement inside for loop
I want the if-statement to break if the condition is met, because currently if it isn't broken early then I get some mishaps in my code.
The problem is, I am not sure where to put the break. When I ...
0
votes
0answers
2 views
how can we use mercurial instead of git to host a website in heroku?
i want to host a website on heroku.I Have developed it using ruby on rails.i have used postgres database and mercurial repository. where ever i check, i can find only ways to host using git.can ...
0
votes
0answers
3 views
ImportError: DLL load failed: %1 is not a valid Win32 application. But the DLL's are there
I have a situation very much like the one at ImportError: DLL load failed: %1 is not a valid Win32 application, but the answer there isn't working for me.
My Python code says:
import cv2
But that ...
0
votes
1answer
14 views
Checking Date format from a string in C#
I am wanting to check whether a string contains dates such as 1/01/2000 and 10/01/2000 in dd/MM/yyyy format.
So far I have tried this.
DateTime dDate;
dDate = DateTime.Parse(inputString);
...
0
votes
1answer
7 views
Loading image for imageview1 at left and imageview2 at right fixed
I'm still new here in android. Please help me. I manage to put the imageview to the left and right side of my Layout. My problem is when I load my image in imageview2 it overlapped the imageview1 and ...
0
votes
0answers
2 views
Getting output from a command-line program in a Delphi application on Windows XP
I have VCL application written in Delphi XE2 that needs to execute a command-line program (also written in Delphi XE2) and obtain the text output by it. I am currently using the following code, which ...
0
votes
3answers
9 views
echo JSON_ENCODE($json) only contains data for last record
I am trying to use json_encode to echo some data back to my ajax call, but I seem to receiving only a portion of the data, specifically the last record. In the query below, when I did ...