All Questions

1
answer

Error "invalid input '..' in utf8towcs" with "read.csv"

I have a .csv database that gathers posts from both Facebook and twitter. For reading the bank in R, the code I have used is bancodedados <- read.csv("nomedobanco.csv", sep=";", encoding="UTF-8") The code loads the database almost to t...
asked on 28.01.2015 / 14:12
6
answers

How to change the text of the title element?

Follow the code below: $(document).ready(function() { $('#1ano_card_title').text('R$20,00'); }); <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script><h2id="1ano_card_title" class="car...
asked on 14.02.2018 / 15:43
5
answers

Print string in reverse

Why can not I print this string in reverse? I know there is a possibility of using a simpler form, but I want to understand the error. static void Main(string[] args) { string frase = "Diego lima de Aquino"; for(int i = frase...
asked on 19.10.2016 / 15:37
3
answers

In practice, what is a system test and what should it cover?

Among the most well-known tests then the unit tests that test each class of the system individually, the integration tests testing two distinct parts of the system, such as a DAO, and the database. But what about the system test? What is it,...
asked on 15.02.2017 / 04:55
7
answers

Randomize results with PHP

I have a structure like this (which I created): <div class="banners"> <?php echo do_shortcode("meubanner_1")?> <?php echo do_shortcode("meubanner_2")?> <?php echo do_shortcode("meubanner_3")?> </div>...
asked on 02.09.2014 / 15:18
5
answers

Sum of multiples of 3 or 5

I'm trying to build a program that finds and adds the multiples of 3 or 5 below 1000. The problem is that it is returning a result of the sum that does not match what I ordered. package basicojava; public class Multiplos { public s...
asked on 15.08.2017 / 02:24
2
answers

In Magento how to add class to list depending on the attributes to be displayed?

I have foreach which brings me all the children of an X attribute, and I need to add a specific class in the <ul> list to be able to format by CSS according to the Y attribute. However, I can not add the attribute name in the class...
asked on 11.12.2013 / 17:49
2
answers

How to Capture a Keystroke with the Program Running in the Background

The code I have so far is this: public static void main(String[] args) { SystemTray tray = SystemTray.getSystemTray(); Image image = new BufferedImage(10, 10, 10); String tooltip = "Oi amiguinho"; PopupMenu menu = new Popu...
asked on 28.08.2015 / 21:18
7
answers

How to check if at least one item in the array has a value greater than or equal to 2

I have the following array: array[0,2,0,0]; I need to create a function that returns true if at least one item in the array has a value equal to or greater than 2     
asked on 01.11.2016 / 17:52
6
answers

Is there a way to print everything without the line break?

I have this code: print "t" print "e" print "s" print "t" print "e" It has the following output: t e s t e What I find annoying "\n" . Is there a way to print everything without the line break?     
asked on 08.08.2016 / 17:51