I have to make a script that receives two parameters, of which the second must be a whole number. I have no idea how to validate that.
if test $2 =~ "^[0-9]+$"
then
echo "\nNumero positivo entero"
else
echo "\nError: El numero $2 no es...
I wanted to know how to do NOT IN in the next query
select * from WFRules
where (Class = 'DoDesign' or ParentId = 0)
and ParentType not in (5,8,9,10,11)
and Type not in (5,8,9,11,15,33,34,35,37,38,3...
This is a question of those that come to you when you are responding to situations raised here in Stackoverflow.
Is there a possibility in MySQL to save a different date and two hours in the same field?
That is, if I have this:
Fecha i...
I have an application made on ASP.net that runs on Windows 2000 Server
In a form I have 2 inputs that receive dates, (Start Date and End Date)
When I make the respective query with the Initial and Final dates, if you return th...
The following code works and has 4 conditions but I want to simplify it since they are really 150 conditions, is there any other way to reduce this algorithm and not 150 else if?
for (var j = 0; j < $scope.cants.length; j++) {
if ($scope....
I have a bug when I want to insert a text with more than 2000 characters from a TextArea , if it is less than that number of characters; insert the text without problems.
The ActiveElement returns "Nothing" if I exceed that amoun...
I need to know if there is any way (although I am almost convinced that there is no way) to detect when an outgoing call starts to ring on the destination phone.
What I need to know specifically is just THE INSTANT where the phone call star...
I'm performing the operator overload = for a Rational data type.
That is, for this to work with the Rational type:
res = p;
According to the book I am following, it tells me to do it with the operator = as a member function (method) and:...
I need to show the USB connected to my computer and how to disconnect the USB as well as put it, remove or put the letter of USB corresponding in a ComboBox . I want to do it in C # , I have this code but it is in Visual Basic .
Prote...
I am currently programming a digital signer in C# with the iTextSharp library. Initially the signer did the task correctly, since he signed the document, requested the pin, etc. Everything was fine, until I was asked to sign and...