All Questions

1
answer

Consume WebService with large data volume

I have a demand where I need to import a JSON file with 65k of records for my Android app, after calling the URL of my REST service the app starts importing the data however crashes after some time, I would like to know the...
asked on 28.08.2015 / 16:00
1
answer

How to validate format and compare two dates to enable buttons

I'm using a script * to enable a button when two validations are done. The first one checks the format, and the second if the start date is smaller than the final one, but I'm having some problems adding more fields with the same functionality,...
asked on 25.06.2015 / 05:42
2
answers

use regex in explode function of php

I'm doing a query to my DB, and we can make an identical query to this:    "hello world" "pacific ocean" What happens is that I can search multiple strings at once:    Expected result:       String1: Hello world       string2: paci...
asked on 17.08.2015 / 13:46
1
answer

How can I copy an image to the clipboard?

I'm using this command to capture the screen. chrome.tabs.captureVisibleTab(null, {}, function (image) { // image = base64;string }); And now I would like to copy the captured image to clipboard. How do I do this?     
asked on 12.12.2013 / 01:54
2
answers

Rendering Partials in ASP.NET MVC

I'm having a problem in my application where I wanted to use partial to render one page inside another. That is, one controller inside another. But what happens is the partial does not render at all and I've done almost everything, but it does n...
asked on 15.05.2014 / 15:26
3
answers

How to copy to clipboard without using flash?

Google Chrome is displaying a message. This site uses a plug-in (Adobe Flash Player) that will not be compatible soon. Is there any way to do it without Flash? How? And something that preferably copies an attribute, for example: <a h...
asked on 17.08.2015 / 16:26
2
answers

How to reuse code in two similar projects

Conclude a project and need to do another with the same context. The problem is that I know I'm going to find bugs and I'll evolve the code when I'm developing the second one. Like I do in a way that I can correct a bug in both projects at once...
asked on 14.02.2014 / 18:40
2
answers

Transform Byte into String

Problem: I am getting byte and when I try to transform to String it is giving error. ... byte[] msgBytes = ch.decode(hex, ch.key()); // retorna byte String msgDecode = msgBytes.toString(); // tentando converter byte em Stri...
asked on 27.02.2014 / 20:15
1
answer

How to put an HTML code in a label in Laravel?

When I try to do this: {{ Form::label("nomecampo", "Descrição<em>*</em>", array("class" => "entrada")) }} The tag enters the tag but is not interpreted correctly. See: <label class="entrada" for="nomecampo">Descrição&...
asked on 27.01.2014 / 16:20
2
answers

How do I get the position of an element that uses the CSS transform property?

Imagine that I have a popup that is centered with transform:translateX(-50%) translateY(-50%) (if you have questions about this solution, you can see more about it here , adapted from these Answers ). So far so good, the ele...
asked on 13.03.2014 / 19:44