All Questions

4
answers

Resize image

Well my system has an area where the user registers information about the site. So register images. The system does not restrict the size of the image. Then the site shows the images. But there are different parts on the site that carry diffe...
asked on 21.07.2014 / 14:12
1
answer

Returning with Ajax BeginForm

I have my Form with the following statement: @using (Ajax.BeginForm("Novo","Cliente", new AjaxOptions { OnSuccess = "OnSuccess", OnFailure = "OnFailure" })) { } My functions in js: function OnSuccess(response) { ale...
asked on 03.10.2014 / 19:14
2
answers

What is that "sr-only" for Twitter Bootstrap?

Studying the documentation I was wondering: what does the sr-only class of the bootstrap really serve ?     
asked on 19.08.2014 / 20:01
2
answers

Return with all the lines of the foreach

I have the following script : <?php $recursos_data = array( array( "id" => "0", "recurso_nome" => "madeira", "producao" => "%produz%", "estoque" => "200"...
asked on 28.10.2014 / 00:22
2
answers

Computer Buffer

I have read in several places about buffers and there they say that it is a place in memory to store temporary values so they give an example like this in C: char exemplo[10]; and they say that this is a buffer , but the exemplo v...
asked on 07.04.2015 / 02:32
2
answers

How do I make "Replace" replace all occurrences of a word regardless of case?

The Replace function replaces all occurrences of a word or expression, but is case sensitive: string str = "Hello WorLLd";//Substitui só os 'l' e não o 'L' str = str.Replace("l", "EL"); Console.WriteLine("My string: " + str); Output:...
asked on 11.09.2014 / 23:16
1
answer

What is the difference between TRUNCATE and DELETE + CHECKIDENT?

Both perform the same action (delete + zero the PK value), but in performance what is the difference between them? Example: When you have more records it is recommended to use what form? TRUNCATE : TRUNCATE TABLE Exemplo DELETE +...
asked on 24.07.2014 / 17:28
2
answers

Sort words with accents in PHP

I am trying to alphabetize an array in PHP, where the key of each array position is a word. I'm using ksort . Sorting works, the problem is that accented words such as "acid" are placed at the bottom of the list. I need to make the...
asked on 09.10.2014 / 18:27
2
answers

Chat with app notifications

I have an Android application that through it, the user can send a message to the administrator (me). I wanted to do something cooler in this communication, I would like it when I respond to the message, it appears in the application that it has...
asked on 02.07.2014 / 04:05
2
answers

How to access JSON values coming from ajax in a PHP page?

I passed these values via ajax: $.ajax({ url: '/loterias/cadastro.php', type: "POST", data: "{'numeros': '" + numeros + "', 'jogo':'" + jogo + "'}", dataType: 'application/json; charset=utf-8', success: function (data) {...
asked on 27.09.2014 / 17:32