All Questions

2
answers

Find words between characters {}, and remove from text in PHP?

$comoesta = "{A,O} {portador,portadora} é o mais {especializada,especializado} para o serviço ."; If it's masculine: $comodeveficar = "O portador é o mais especializado para o serviço "; If it's feminine: $comodeveficar = "A portadora...
asked on 17.01.2017 / 13:08
1
answer

Multi-person web application

I see many web applications that can be used by many companies. How do they do this? Do they only create one bank and share these various customers? For example: Company A has 10 users and Company B has 5 users of this system. Do they u...
asked on 06.09.2015 / 17:18
1
answer

String in php is a class?

String in java is a special class, where you can instantiate the object only by assigning a value without using the reserved word new . But in php when initializing a variable with a text, can we say that we are instantiating an object of...
asked on 09.04.2015 / 06:15
2
answers

Angled POST with customized header and CORS

I need to perform a POST request using angular (http.post) and I need to pass my access credentials (I am using basic authentication) to my API (.NET) in my header.    Authorization : Basic dXNlcm5hbWU6cGFzc3dvcmQ = No angular change the...
asked on 26.10.2015 / 18:17
2
answers

Apply css to all but a few specific elements

How to apply padding to all a.button except those with a span , I do not know how to do but an example: a.button:not(span)     
asked on 18.11.2015 / 12:30
4
answers

How many strings are created in the codes below?

How many String s does the JVM actually create during the runtime of the code snippets below? 1 : String s1 = "s1"; 2 : String s2 = new String("s2"); 3 : String s3 = "s3"; String s4 = s3 + "s4"; 4 : String s5 = "s5...
asked on 21.02.2017 / 18:17
1
answer

Why does the RegEx result have two values?

I need kb, mb or gb patterns, I'm using the regular expression (k|m|g)b$ and it has to be at the end of the line. test my expression results in only 1 match when testing "20kb", but in this script the array has 2 positions. Why doe...
asked on 24.04.2015 / 20:35
4
answers

Calculate Total Hours, identifying equal time intervals

After breaking my head a little, I ask you to help me in the following situation: I have a problem in SQL (Sql Server 2005) of time calculation; Basically I have to calculate the sum of hours worked on technical drives. The issue is that a...
asked on 06.03.2015 / 15:41
3
answers

Parameter passing C #

I have the following code in js function consultaSolicitacao() { id = getVar("id"); serviceURL = "/Solicitacao/ConsultaSolicitacao"; $.get(serviceURL, null, function (data) { var aux = data.length; var tblText = ''; for...
asked on 13.05.2015 / 21:03
3
answers

generate a json file with java

   Iterative Insertion: 7841910ns - 7ms       Iterative selection: 2677762ns - 2ms       Iterative merge: 708154ns - 0ms This algorithm was made in Java , in the java console is printed several values, being: search algorithm name t...
asked on 30.04.2015 / 00:59