All Questions

2
answers

Allow new conditions to be added without modifying code

I'm manipulating a .txt and I have to change values of type M31 to T90 for example. My code is like this: //Change machine tools for Sodick if (_strLinesFinal.Contains("M50"))...
asked on 11.10.2016 / 14:08
2
answers

Abort Thread through another process in C #

I'm developing an application in ASP.Net 5.0, where it needs to start a task through a% Secondary% co, as in the example below: //Inicia processo de pesquisa var ppBlo = new ProcessoPesquisaBLO(); //Cria a Thread para rodar o proc...
asked on 22.11.2016 / 19:09
1
answer

Concatenate new line

How to add a new line separating the inputs into a Perl script? Example: I'm using the following script: #!/usr/bin/perl print 'oi' . '\n' . 'oi,de novo' And I call by bash as follows: perl test.pl > a.txt When openin...
asked on 04.11.2016 / 13:47
2
answers

Change ownership of multiple buttons simultaneously

Hello, I'm developing a project for a dental clinic in C # which uses several buttons inside a picturebox to select the teeth, so I decided to put several buttons with a certain opacity and the result was very satisfactory, the problem and that t...
asked on 26.10.2016 / 12:19
3
answers

What is the difference between Data Annotations and Fluent API?

What's the difference between Data Annotations and Fluent API? Are there any restrictions between one or the other? Improve performance or are they just two ways to do the same?     
asked on 28.11.2016 / 20:07
1
answer

Problem with cURL, get message body even with http! = 200

I have a request in my API: $ch = curl_init(); curl_setopt( $ch, CURLOPT_URL, 'link da api'); curl_setopt( $ch, CURLOPT_FAILONERROR, true ); curl_setopt( $ch, CURLOPT_TIMEOUT, 10 ); curl_setopt( $ch, CURLOPT_POST, 1); curl_setopt( $ch, CURLOPT...
asked on 06.10.2016 / 17:04
2
answers

When do I need to use a class that inherits from an ArrayList of a type? I do not understand what this is for

Example: public class ListaAdapterItem extends ArrayList<Item>{ } And I have an Item class: public class Item { private int imagem; private String nome; private String descricao; public Item(int imagem, String nome, String descr...
asked on 23.11.2016 / 12:44
1
answer

How to detect if the system supports hardware acceleration?

I currently do this so that one of my activity which requires acceleration to work: <application android:hardwareAccelerated="true"> <activity ... /> <activity android:hardwareAccelerated="false" /> </applic...
asked on 08.11.2016 / 16:29
1
answer

How to install php-5 on ubuntu? [closed]

I am new user in Ubuntu , and I am not able to install PHP-5 via apt-get, since the stable version is PHP-7 , I get an error saying that no packages were found. I tried to use the following commands sudo apt-get install php sudo apt-get i...
asked on 28.09.2016 / 13:10
2
answers

Format Display Data DisplayFor

I have a field in the database, DataHora, and wanted to display on the screen for the user, but in separate fields, being Date and Time. First displays the Date @Html.DisplayFor(modelItem => item.DataHora) Second displays Time @Html...
asked on 01.11.2016 / 03:02