|
Hi guys i am creating a validation for checking if the user has selected at least one stand by checking it, if no stands are selected then an alert box should display telling the user to select at least one stand. my javascript function is triggered onsubmit...
Started by Donald on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at stackoverflow):
You gotta check to ensure that the ab is infact an array.
But they left out one thing.
|
|
Hi all,
I'm using C# and I'd like to check to see if a checkbox on the main form is checked and if so run some code, the problem is I'm in a class file (file with no form, is class file correct?). What is the easiest way to do this?
Thanks Jamie
Started by Jamie on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at stackoverflow):
Is optional }
Can you define an interface with a property, have the form implement the interface.
|
|
In SVN you can Check Out (to block others from working on the same file). Can you do this in GIT? It seems like you have to set up a second system that tells people what files are being edited by who with GIT?
Answer Snippets (Read the full thread at stackoverflow):
Due to itsThat would not make a lot of sense with a DVCS (as in "Distributed")
All you can do is set have the all history stored locally and....
Git doesn't have a central store that you can query to check if a file is "locked".
|
Ask your Facebook Friends
|
I have an object, that is facing a particular direction with (for instance) a 45 degree field of view, and a limit view range. I have done all the initial checks (Quadtree node, and distance), but now I need to check if a particular object is within that...
Started by Furis on
, 6 posts
by 6 people.
Answer Snippets (Read the full thread at stackoverflow):
If you're doing 3D and can define the viewing range as a frustrum, then you can use something, then that corner of the box is....
That angle))).
If it falls under FieldOfView/2, you can view the object.
At you and ends at the object.
|
|
My site loads images based on names that are created for them. It loads images assuming that they're there when sometimes they're not. Every time it loads an image like this:
<img src="/myimages/my-image.jpg" alt=""/>
if it's not there on the server...
Started by Matt on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
If this isn't an option, you can use ajax:
call a page, passing in a request parameter of the file....
="-1">
within the head section of the html..?
If you are able to, check from the server before the HTML file is ever sent to the client.
|
|
I'm iterating through a list of links on a page, creating a URI object for each. When the URI object is created, I don't know whether the URL has a scheme, so when I later call $uri->host() , I will sometimes get
Can't locate object method "host" via...
Started by Drew Stephens on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
You could also check it's type:
if ($uri->isa('URI::_generic')) { die 'A generic type - not good indeed; it contains:
$obj->....
Of a regex, you can do
if ($uri->can('host')) { say "We're good!"; }
to see if it's available.
|
|
In SVN you can checkout a portion of a repository ie:
http://some-url.com/repo/app1/trunk/plugins/plugin1
Can you do the same when you git clone? As I cannot get this to work
Thanks
Started by Piper on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
If people frequently need to get only "part" of the repository, the Git way of thinking suggests that it should... .
In Git, a repository is viewed as a contiguous element that shouldn't be split up any further .
When you clone, you get the whole repository.
|
|
First my context is that of a compiler writer who needs to convert floating point literals (strings) into float/double values. I haven't done any floating point programming the last 15 years so i'm pretty sure this is a total stupid newbie question.
double...
Started by Lothar on
, 7 posts
by 7 people.
Answer Snippets (Read the full thread at stackoverflow):
On MSVC you can use _atoflt "1.1foo"), it will....
Since you have your value in a double , you can just check ) then there are more digits than what can be safely stored in float.
Wants to use float instead of double anyway.
|
|
My thought is to use CreateFile from kernel32 and check for sharing violations. I believe this will work because I watched the file system activity with Process Monitor while issuing a rename command from CMD that I knew would fail and the last activity...
Started by Daniel Straight on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
If you check first and rename later, you will not know that the....
In my opinion, this is a design problem that creates a race condition .
If the directory can be renamed and the point at which I want to rename the directory are not the same.
|
|
Typically, on a PC, there is some non-standard set of COM ports available for use by a terminal emulator. I would like to be able to scan ports COM1-COM32 to see which (if any) of those ports can be opened as a serial port. I can do this be simply calling...
Started by Ed on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
Several ways
a) QueryDosDevice() - check against COM in the names
b) GetDefaultCommConfig() - Go, beyond enumeration, there is no function that can tell you if you can access the device determined that opening a COM port will succeed....
|