All Questions

2
answers

Sorting data with value priority using LINQ

I have a status table with the following values: ID 1 = Ativo ID 2 = Novo ID 3 = Excluido How would you return a list of objects (which have the status object) prioritizing, coming first, those that have Status 2 (New) using LINQ? I wou...
asked on 16.09.2015 / 18:39
2
answers

Ternary Operator, is_array, unexpected

See only .. Follow the instruction $var = 123; echo "valor de var: " . is_array($var) ? implode("-",$var) : $var; Ai gives the following error: implode(): Invalid arguments passed . I expected that the implode function would not b...
asked on 10.09.2015 / 04:56
3
answers

How to stick with only one part of the string? [duplicate]

I have several string's (id-question-18, id-answer-18, id-question-17, id-answer-17) I needed to just write (id Question, id Answer, id question, id answer) How do I do in PHP? The goal is as follows: At this point I have the follow...
asked on 27.10.2015 / 17:11
2
answers

How to change the color of the icon in the Materialize?

I'm using the framework materialize and to put an icon do it this way: <i class="material-icons">menu</i> It turns out that by default the icon is white, would you like to know how I can change the color of the icon? I've...
asked on 21.09.2015 / 04:13
3
answers

Read Log.txt from the Remote Server on the Local Server in Real Time

These days passed the idea (I must have read somewhere and refreshed) to have a program on the local server that is synchronized with the remote server, where in this program I can see in real time the log file of the server, thus facilitating a...
asked on 28.08.2015 / 20:50
4
answers

Regular expression to accept only numbers and a ","

How can I make an expression or function to get only numbers and commas, which the user informs. I want to get a product pricing form. If the user types a letter or something other than the comma, it will not be validated. I have the example...
asked on 17.10.2015 / 17:48
3
answers

mysqli_escape_string () expects exactly 2 parameters, 1 given

I'm experiencing an error in my code, when I run the DW c6 server behavior, when I move from mysql_ to mysqli_ , I get an error in the function executed on line 10. The error is:    Warning: mysqli_escape_string () expects exa...
asked on 21.09.2015 / 17:06
2
answers

How to restrict access to routes in angularjs?

How do I restrict access on some routes, and allows logged-in users to access your content on Angulajs.     
asked on 25.08.2015 / 10:31
2
answers

.after () jquery in JS Pure?

In jquery: $( "#main article:nth-child(3)" ).after( "<div style='clear:both;/>" ); How would you look in pure JS?     
asked on 06.11.2015 / 07:05
2
answers

Switch case Java ends for no reason

I have an example of switch-case with 8 options. However from case 7 it ends the program. It was for him to go back to the menu option after running. Does case have options limit? Follow the code: import java.util.Scann...
asked on 12.08.2016 / 14:59