All Questions

4
answers

How to validate if a parameter is a whole number in UNIX?

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...
asked on 15.03.2016 / 02:20
3
answers

How to make a NOT IN in LINQ?

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...
asked on 20.01.2016 / 20:53
1
answer

In MySQL it is possible to save a date and two hours in the same field or column?

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...
asked on 04.09.2017 / 21:35
2
answers

Conversion from string DEF to type Date is not valid

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...
asked on 18.04.2018 / 00:50
3
answers

Simplify multiple "else if" based on the value of a string variable

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....
asked on 19.01.2016 / 17:49
1
answer

WebBrowser ActiveElement vb.net

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...
asked on 14.12.2015 / 20:56
2
answers

Android: Detect the time when an outgoing call starts ringing on the other phone

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...
asked on 24.08.2017 / 19:40
1
answer

Overloading the operator =

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:...
asked on 09.02.2018 / 11:51
1
answer

Detect USB in C #

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...
asked on 30.03.2017 / 00:53
1
answer

Error activating LTV TimeStamp iTextSharp c #

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...
asked on 18.10.2016 / 17:17