I am getting 3 camera input to MATLAB with Infinite Trigger. But after minutes, cameras fill up my memory, and I have to restart MATLAB. How can I deal with this memory problem?
Hi,
I want to extract the status from the string untill I found a timespan. My input is something like "Something in start but not with this keyword of sure. STATUS: My Status Is Here Which can be anything but timespan 23:59:01 and so on. I want to extract the string after STATUS: untill 23:59:01 is found. How can i achieve this through regex. this 23:59:01 is a timespan and it is always in this format hh:mm:ss
I am using estimateRigidTransform with about two vectors of 100 points and is working FINE.
But somehow getAffineTransform doesn't work.
I know that findHomography finds the best matrix using RANSAC and getPerspectiveTransform needs only 4 points.
My question is what happens if I give more inputs in estimateRigidTransform or getAffineTransform?
Does it take only 4 points from input matrix? Or do some kind of RANSAC?
When we have a column that will store a username that will only accept letters and numbers we always do validation on this input field using javascript or even server validation from code .. but i want to know if is there any way that can allow me make this validation on the Table column itself even some one try to enter data from any place it don't accept and throw exception ?
Input integer array:
a[8] = { a1, a2, a3, a4, b1, b2, b3, b4 }
Output array:
a[8] = { a1, b1, a2, b2, a3, b3, a4, b4 }
Forget all corner cases, make sure your solution works for any int array of size 2n. You can use one or two temp variables for looping or anything, but you shouldn't use any temp arrays/stacks/queues etc to store entire array or part of array.
I'm able to get answer in O(n*log n), but I'm looking for better solution.
hi all,
in the case of an IM client.
i have made 2 separate threads to handle sending packets (by std io) and receiving packets.
the question is how to make these 2 threads run simultaneously so that i can keep prompting for input while at the same time be ready to receive packets at any time?
i have already tried setting a timer but the data is always lost receiving.
Hi,
I have stored procedure that takes input parameter of table type.
procedure test( name samptable type);
My table has the structure like
table:
samptable(
name chracter varying;
address text[];
)
So how shoul i pass the values to the function to fill the table.
Hello,
I have written a webservice which is taking URL as an input and producing a JSON respone. My problem is that now I have list of 1000 URLs and want to execute maximum threads of Webapplications to get output. Like I want to execute 100 instances of webservice at a time to get response.Please can anybody give some guidance how can I do it using java.
Thank you in advance
Quoted from here:
BW = edge(I,'zerocross',thresh,h)
specifies the zero-cross method, using
the filter h. thresh is the
sensitivity threshold; if the argument
is empty ([]), edge chooses the
sensitivity threshold automatically.
If you specify a threshold of 0, the output image has closed contours,
because it includes all the zero
crossings in the input image.
I don't understand it,can someone elaborate?
can anyone plz provide me a simple working code snippet of codeigniter for uploading 2 images at once (through 2 different input field ofcourse). I need 2 images to be uploaded at once, or one after another. and both of the images need to be in different location.
I tried to make it myself by calling upload function twice but it returned last images with these extentions: *.jpg.jpg.
can anyone help
I have simple form for editting site content:
- a text input for title
- a textarea for content
When adding content, there is no problem, allthings add normally:
$chead = mysql_real_escape_string(stripslashes($_POST['chead']));
$ctext = mysql_real_escape_string(stripslashes($_POST['ctext']));
But when edittig the article that containig the
$chead = 'sdsfsf' "sdgsdgs"ggdsfsdg
The $chead = 'sdsfsf'
and the "sdgsdgs"ggdsfsdg will be lost!!!
What is the problem with mysql_real_escpae_string?
Thanks
given an X, what math is needed to find its Y, using this table?
x->y
0->1
1->0
2->6
3->5
4->4
5->3
6->2
language agnostic problem
and no, i dont/cant just store the array, and do the lookup.
yes, the input will always be the finite set of 0 to 6. it wont be scaling later.
I'm trying to change the src of an image form submit button using an onclick, but it doesn't seem to be working correctly. Am I missing something?
<input class="submit_image" id="my_form_button" onclick="$('my_form_button').src='/images/buttons/submitting.gif'" src="/images/buttons/submit.gif" type="image" />
I've also tried using the same JS on the form tag using onsubmit with no luck.
Hi, I have a struts app with a jsp with the code:
...
...
<input name="inrofol" class="inputfilter" id="inrofol" size="22" maxlength="20" type="text">
...
And even though it's not linked to the associated form bean, I get the exception
Error 500: No getter method for property: "inrofol" of bean: "com.test.forms.CompForm"
Any hints ? Thanks
I have the following code:
(function(jQuery){
jQuery.fn.timepicker = function(){
return this.each(function(){
jQuery(this).val("14:00");
});
};
})(jQuery);
Currently I invoke this function by the following code: $("#event_start_time").timepicker();
Where #event_start_time is the ID of an <input> field.
How can I invoke this code only when I click inside the text box?
i have created http seesion, using the same http session, i would like to do some get and set operations.
Note : What ever the operation, data is present in XML Format, giving xml file as input. And need to fetch the status.
Is it possible using TCL curl.
Here's the code:
this.Form.find("input[type=checkbox]").click(function(event) {
if ($(this).is(":checked")) {
console.log("checked");
}
else {
console.log("unchecked");
}
});
If the checkbox is not checked, and I click with the mouse, I get "checked". If I trigger it programmatically like $("#someCheckbox").click(), I get "unchecked". How to make the two behave the same way?
I'd like to display a little popup window next to the notification area. It's similar to what Outlook/Skype/Live! Messenger/etc does when it displays the notification about a new message. In my case it will have some input controls (textbox, datetimepicker, buttons...) so a simple bubble won't do.
The trick is doing this correctly when the user has multiple monitors and/or the taskbar is not located at the bottom of the screen.
I use this code for drawing text in a panel:
Graphics g = panel1.CreateGraphics();
g.DrawString(...);
So I want to know how many pixels the input text will take in the panel?
I would like to write a small module that can check if anything is connected to my computer's HDMI input, and if so write a frame of video to bitmap once in a while.
Can anyone point me to resources regarding grabbing audio/video from HDMI on windows?
Hi,
ist is possible? What would be the easiest way? I tried to compare in the input string character to character so
if(char([i]=="^M") char[i]=""
but it does not work.
By the way, if I were able to check it, what is the wistes substitution? to "" ?
Thanks
I have the following:
<input type="hidden" name="phone_home" value="<? echo $_SESSION['full_home_phone'] ?>">
this works for firefox but not for google chrome.. can anyone help?
thx ahead of time
I can imagine one case, in which the input parameter could be NULL so that pass-by-pointer is preferred but not pass-by-reference?
Can anybody add more cases?