All Questions

1
answer

Difference in formatting content in TextArea and Notepad

I have an ASP.NET MVC application where I display in a text area a content that is in the database. @Html.TextArea("Avisos", Model.Avisos, new { @class = "form-control", rows = 50, style = "max-width:none", @readonly = "" }) The display is...
asked on 01.06.2016 / 20:58
1
answer

How is the linux kernel or programs written in C tested?

When we use Java language, we use JUnit to test the codes. But the codes written in C, like the Linux , how is it tested?     
asked on 23.03.2015 / 20:41
1
answer

AngularJS Difference ng-show and ng-if

What's the difference between using ng-if and ng-show / ng-hide ?     
asked on 16.03.2015 / 21:55
1
answer

Urllib2, exception handling

I'm a beginner in the art of programming. I'm learning to program in Python through a book,    Learn to Program: The Art of Teaching the Computer (Cesar Brod - Novatec Editora) In one of the exercises, I should use the Urllib2 function li...
asked on 16.04.2015 / 01:42
1
answer

Trigger AsyncTask class exception

The class below is responsible for getting data from a WCF Rest service: public class MyAsyncTaskGeneric<T> extends AsyncTask<String, Void, T>{ private final Class<T> typeGeneric; public MyAsyncTaskGeneric(...
asked on 10.04.2015 / 21:57
1
answer

How to declare and initialize two-dimensional arrays?

I have to save the row, column and contents of a worksheet. For this I created a two-dimensional matrix. My difficulty is how do I initialize it? I believe the statement is no longer correct because I get ArrayIndexOutOfBoundsException . I...
asked on 15.04.2015 / 14:59
1
answer

Execute cmd commands by Java

I would like to know how I do to run cmd commands in java. Well, I did this: import java.io.*; public class Commands { static final Runtime run = Runtime.getRuntime(); static Process pro; static BufferedReader read; public static void main(...
asked on 06.04.2015 / 04:05
2
answers

How to send a SOAP in C?

How do I send a SOAP in C? I have a Web Service that consumes SOAP and I have to send this SOAP in C. How can I do this? Is there an API or do I have to create a library?     
asked on 06.03.2015 / 15:38
1
answer

SELECT with sequential counter does not accept LEFT JOIN

Why does a SELECT return a sequence number does not work if it has LEFT JOIN ? SELECT @ROW_NUMBER:=@ROW_NUMBER+1 AS ROW_NUMBER, P.PEDIDOID FROM PEDIDO AS P, (SELECT @ROW_NUMBER:=0) AS T LEFT JOIN PEDIDOPRODUTO AS PP ON...
asked on 27.05.2015 / 00:11
1
answer

Enable CORS via JavaScript (Phonegap)

I'm creating a Phonegap application that consumes a Web Service (Web Service) API, and I need to access an external domain. Searching through the web I found that I had to enable CORS via JavaScript to be able to access other domains. In this wa...
asked on 24.02.2015 / 20:41