All Questions

2
answers

Erasing columns containing NA's in their last 5 lines

I have this personal dataframe, set.seed(1) df <- data.frame(A = 1:50, B = 11:60, c = 21:70) head(df) df.final <- as.data.frame(lapply(df, function(cc) cc[ sample(c(TRUE, NA), prob = c(0.85, 0.15), size = length(cc), replace = TRUE) ]))...
asked on 27.09.2018 / 01:00
3
answers

How to put separate ggplot2 graphics, but on the same screen?

Suppose I have these 4 graphics: p1 <- ggplot(mtcars, aes(mpg, cyl)) + geom_point() p2 <- ggplot(mtcars, aes(mpg, cyl)) + geom_line() p3 <- ggplot(mtcars, aes(mpg, cyl)) + geom_line(color="blue") p4 <- ggplot(mtcars, aes(mpg, cyl))...
asked on 26.09.2014 / 02:29
2
answers

How to search for two words in the same field Mysql

Good morning. I have a field in my table called tags , I would like to search, where two or three words can be considered. Example: In the tags field, I have some words, like "free", "booths", "audiometer" ... with the query b...
asked on 09.03.2018 / 15:12
3
answers

How do I delete a file marked with the "read only" attribute?

I'm trying to delete a file that is marked with the "read-only" attribute: Wheneverthefileismarkedwiththisattribute,Igetthefollowingexception:  System.UnauthorizedAccessExceptionwasunhandledIfitisafilewhose"Read-only" attribute is unchecked,...
asked on 03.01.2014 / 19:14
4
answers

How do I call a function by pressing Enter on an input

I'm creating a chat for a site and I need the user to just hit enter and the message appears in chat , this function usually works with a field textarea but with input no. HTML <form action="" method="post" id="fr...
asked on 04.02.2014 / 16:18
2
answers

Ruby application that keeps reloading source files

How can I design my application so that whenever I modify and save a .rb file, the application behaves "in the new way"? I'm doing an application that reads the command, executes, prints the result and reads the next command (REPL, Read-Eval-...
asked on 17.01.2014 / 13:03
5
answers

How do I make the textarea automatically increase to a certain limit?

I'd like to know how best to make textarea increase automatically to the limit of 500px when the user enters content.    Do not use another library besides Jquery . CSS: textearea{ resize: none; /* impede que o...
asked on 07.04.2014 / 05:45
1
answer

Javascript documentation documentation standard and automatic generation of documentation in IDEs and exportable

Java has Javadoc, PHP has PHPDoc and other languages, has documentation standards. Which standard is most commonly used to document javascript , already integrated to IDEs, so that when using functions, it auto-complete the c...
asked on 11.02.2014 / 19:06
2
answers

Always present an error when I try to use the mysqli expression

I know that the expression mysql has been deprecated, so I'm trying to use the expression mysqli , but every time I try it shows me a syntax error! example: $buscaDados = mysqli_query("SELECT * FROM usuario"); Generate this er...
asked on 04.03.2014 / 23:13
2
answers

How do I prevent a property from being mapped to an entity in the Entity Framework?

I need to insert a property in the template class, but when I enter the code first, it says that the table already exists and changes have been made. My code: public class Data { [Key] public int Id { get; set; }...
asked on 04.03.2014 / 15:37