Most voted questions
150,413 questions
Sort by count of
-
5
votes2
answers4228
viewsHow to clone GIT repository with all branches and tags
In GIT it would be possible to clone a repository and already download all branches and tags There would be a single command for this, without the need to create a shell script?…
gitasked 10 years, 6 months ago Douglas Cabral 345 -
5
votes3
answers238
viewsHow to stop three loopings for in C
Rstou trying to implement the AI ordered search algorithm and I have reached a point where I need to stop all loopings if I have found the NODE searched. Look what I did, but it doesn’t work. I know…
-
5
votes2
answers331
viewsHow to order animations with jQuery?
I have this code and I wanted to order the animations so that the header only begins after the .logo_1 end. I tried to use Duration but it didn’t work out very well, there is some other way for me…
-
5
votes1
answer104
viewsARM-M4 Math Operations Lock When PWM Interrupt Is On
When I turn off the timer overflow interruption from PWM (+- 15Khz) operations occur normally. But when it is turned on the processor gets lost in floating point operations. I follow by the debug in…
-
5
votes4
answers5851
viewsHow to order a Mysql search with date in d-m-Y format?
The date on my bank is saved as follows dia-mês-ano. I would like to know how I can sort by date using this date format.
mysqlasked 10 years, 6 months ago Leandro Costa 2,172 -
5
votes2
answers2231
viewsShow image and upload an input
Hi, I would like to know how to get the path of an image contained in the value of a file type input. I am using the following code: $(document).on("change",'#Upload',function(){ var…
-
5
votes2
answers230
viewsHow to make a site that fits between 970px and 1300px
I need to make a site that has a minimum resolution of 970px, but that fits up to 1300px wide. Researching, I found something like this: .container-fluid { margin-left: auto; margin-right: auto;…
-
5
votes5
answers6692
viewsHow to make the textarea automatically increase height to a certain limit?
I would like to know the best way to get the textarea automatically increase height to the limit of 500px when the user enters content. Do not use another library other than Jquery. CSS: textearea{…
-
5
votes2
answers993
viewsProblem with uploading in PHP
In an input of type file, the tmp file is not being generated. this and the array generated by PHP Array ( [name] => desin3.jpg [type] => image/jpeg [tmp_name] => C:\xampp\tmp\phpE0D5.tmp…
-
5
votes2
answers2943
viewsDeprecated Error: Function ereg()
In the script that I installed gave this error: Deprecated: Function ereg() is deprecated in /home/u844214382/public_html/funciones.php on line 98 Deprecated: Code in row 98: if…
-
5
votes2
answers7608
viewsHow to create a Rigger that is fired every time you have an insert event in the table?
I need to create a Trigger that is triggered every time there is an insertion event in the table, before the insertion is made, it checks a condition, if the condition is met it changes the value of…
-
5
votes2
answers318
viewsIn an architecture, does the number of Dlls influence performance? Scalability?
I have the habit of creating my Solution like this: Entity - Class Library (Classes, entities) Utils - Class Library (Classes of support, security, generate xml, in short, all kinds of functions)…
-
5
votes1
answer2491
viewsDifferences in the dynamic creation of an object
When I create an object dynamically, for example a form, I do so: Formulario := TFormulario.Create(nil); try Formulario.ShowModal; finally Formulario.Free; end; What’s the difference in creating an…
-
5
votes1
answer7812
viewsSort table column datatable through query
I am trying to sort my table by the name field of my database table, but the jquery (datatable) plugin insists on sorting by id (first table field) How to force sorting through the query result, in…
-
5
votes1
answer57581
viewsHow to use mod in C C++?
how do I use the MOD function in C C++? (N MOD 2) = 0 I have to use this line of my code.
-
5
votes1
answer3509
viewsHow to implement a login system in a MVC standard?
I’m studying about mvc with php, I managed to make a simple start system, only I was left with doubts in some points, how can I implement my login system? where I should "take" the values of POST…
-
5
votes1
answer497
viewsHow to remove unused categories (levels) in the database
Suppose I have the following database: df <- data.frame(categorias=c("A","B","C","D","E"), valores=seq(1:5)) When I do a subset of that data frame the categories I removed continue. subdf <-…
-
5
votes2
answers178
viewsCollapsing texts in a single line in a database
Suppose I have the following data tabela<-structure(list(nome = structure(c(2L, 9L, 6L, 1L, 8L, 3L, 4L, 5L, 7L, 10L, 11L), .Label = c("12 Anos de Escravidão", "A Caça", "Ela", "Gravidade", "O…
-
5
votes4
answers6094
viewsSide banner that accompanies the scroll
I wanted to add a side banner, depending on the scroll, the banner would accompany the page. The picture shows what I want to do: But the banner can never cross some boundaries, IE, can not go over…
-
5
votes1
answer120
viewsError with super(this) when calling a Java constructor
This is allowed? public Produto(Context context) { super(context, this); } You’re making a mistake : Cannot refer to 'this' nor 'super' while explicitly invoking a constructor I’m trying to make a…
-
5
votes2
answers329
viewsTest results do not appear in browser - Grunt-karma
I’m using Grunt and karma to test my project. But when I use the Grunt test command, the results do not appear in the browser nor in the command linda. The only thing that comes up is this: This is…
-
5
votes1
answer4759
viewsChange class when resizing screen
I want to change classes as the screen is resized, the code I’m using only works if I refresh the page, I’d like to make the class change without having to refresh the page. Code:…
-
5
votes1
answer322
viewsCreating a matrix with variables with different correlations in R?
I need to generate data series that have correlations defined using R. I used a method I found here in the OS (How to generate correlated variables in R?) and I was able to create the variables with…
-
5
votes1
answer370
viewsTypescript syntax
I am studying Typescript but do not understand what this example means: interface Person { firstname: string; lastname: string; } function greeter(person : Person) { return "Hello, " +…
-
5
votes3
answers982
viewsOperation in PHP. Multiplication using percentage
<?php echo $i['sellingStatus'][0]['currentPrice'][0]['__value__']; ?> How can I multipuple '__value__' by 2 and then add 60% to the total amount? Example: Valor = 10 Multiplica por 2 = 20…
phpasked 10 years, 7 months ago GustavoCave 545 -
5
votes2
answers2845
views@CSS font-face installs the font on the computer or just uses it on the website?
I was told that when I use @font-face on a page and someone accesses it, the operating system downloads and installs the source. It happens that I noticed the following: when creating a file with…
-
5
votes2
answers710
viewsStatic string being created with wrong Encode
Hello, When creating a string in a Java class (for example: String t = "Ola Java!"), it seems that the compiler is choosing the 'wrong' encounter to interpret the bytes that are in the source and…
-
5
votes2
answers42594
viewsHow to open and close modals with jQuery
I’m trying to open a modal, wait 3 seconds and close it inside the $( document ).ready(). When I use $('#myModal').modal('show'); the modal appears but when I do…
-
5
votes2
answers306
viewsHow to do data Mining in a txt file with re.finditer
This code can tell me the location of the words batman and sei throughout the file txt: import re f = open('C:/pah.txt','r+') text = f.read() words = ['batman','sei'] for x in words: for m in…
pythonasked 10 years, 7 months ago João Pontes 73 -
5
votes3
answers860
viewsExtracting Numbers from a String
I have a string in the following format: 01 - 02 - 03 - 04 - 45 - 86 I need to put these numbers in one array int[6]. What is the best way to do this operation?…
-
5
votes2
answers6999
viewsHow to change content of a select from another select
How can I put a button related to each other? Example: <span class="IWLABEL10CSS" id="IWLABEL7">Distrito</span> <select name="PAIS" size="1" width="180" class="COMBODISTCSS"…
-
5
votes1
answer212
viewsIntegration test connected to an FTP
It is possible to-or if there is a tool that enables me to send certain purchases of a project to an FTP after it passes a continuous integration test (Travis-ci for example)? The idea is that after…
-
5
votes2
answers671
viewsSelect with transition in change with onchange
How to add a transition effect (fade) in a select with onchange, that when the object <div> change the same occurs a transition? Below follows a print table that was made: And this is the…
-
5
votes2
answers3548
viewsHow to check if a directory exists in Java?
I’m trying to check if a directory typed in JTextField exists or not. I tried to use Files.notExists() but the first argument must be of the type Path and I couldn’t figure out how to convert from…
-
5
votes4
answers1842
viewsHow to know the Kb size of a string?
I have a string which will be saved on file xml, and this file cannot be larger than 500 kb. How can I identify the size of the string which I will save on file xml? When the string is saved in the…
-
5
votes1
answer2001
viewsHow to List Users with Asp.Net MVC 5
I am using Visual Studio 2013, I am creating a new Asp.NET Web Application project using MVC and authentication by "Individual User Account". I would like to know how to list all registered users.…
-
5
votes3
answers523
viewsDynamic display of mandatory, optional or non-existent fields
There is a class that has 12 properties, which in its insertion in the database may be mandatory, optional or non-existent, depending on the business rule specified in the registration of another…
-
5
votes3
answers2432
viewsList months by year in mysql
Here’s what I’m trying to do php and mysql: What is in parentheses is the number of results within each month. For this, I am saving in my database, in the table tbl_noticias the field data of the…
-
5
votes1
answer1963
viewsAutomatic posts on facebook
I have a system where I use the cURL to login to a site. On this site I have a button to share facebook content, I want to do it automatically. That is, end the user’s work by logging into the site,…
-
5
votes4
answers1002
viewsHow to reset the hour and decrease a day of a DATETIME?
I have a field DATETIME I take from SQL, format YYYY-mm-dd H-m-s and I need to reset the hour and shorten a day. I’m managing to decrease a day using date_modify($date, '-1 day');, but how to reset…
-
5
votes1
answer5119
viewsTransition effect on jQuery
I’m starting in jQuery and I have a question: is there any way to let the change down with a kind of transition? <html> <script type="text/javascript"…
-
5
votes2
answers937
viewsHow to animate the layout of Divs and caption, when doing Hover in one of these elements?
I’m creating a website, I’ve been asked to play a prank on the team. According to this image, when :Hover in one of the parts, all the text and image are ordered: I don’t know how to take this boot…
-
5
votes2
answers1050
viewsEvent that identifies when the browser is resized.
Is there any event javascript that identifies when the browser resizes the page? I’m having problems with resizing the page with a window FancyBox, which loses its dynamic changes and returns the…
-
5
votes2
answers2939
viewsIs there a problem with not putting "/" (bar) in auto-closing tags?
When I was learning about HTML, I read that there are two types of tags, those that are necessary to 'close', (<tag></tag>, ex: <div></div>) and those with self closure…
-
5
votes2
answers114
viewsGood practice with css selectors
What is the best practice for working with css selectors? Use .menu li { } ou .item {} .menu .item { } ou .menu-item { } //aqui usamos para atribuir propriedades para as <li> por exemplo How…
-
5
votes1
answer10722
viewsHow to plot a line chart with different colors depending on the value?
Suppose the following data: set.seed(1) y<-rnorm(101) x<-seq(from=0, to=100,by=1) I want to make a Plot with a line that has different color for negative values. To make a chart of points just…
-
5
votes1
answer190
viewsPlay in Löve does not work after compiling
I recently created a game based on löve, that once finished and tested, I decided to try to compile. I followed the tutorial compilation of the löve wiki, using: copy /b love.exe+GhostShield.love…
-
5
votes3
answers22495
viewsHow do I start Tomcat as a service on Linux?
I need to put a WEB system into production using the Tomcat 7. I know I can start with the shell catalina.sh start but I would like something to work after the reboot and Tomcat to come in normally.…
-
5
votes3
answers1456
viewsEncapsulate values returned by JSON within a single object
I have a question, I have this code below on controller: [Authorize] public JsonResult Teste() { var licencas = new List<Object>(); licencas.Add(new { Responsavel = "José", Ticket = 79007,…
-
5
votes2
answers131
viewsPick singularly characters in a multiple string
Hello, I need help with a regular expression that satisfies some occurrences of a text file. In this case, I need a regular expression that finds occurrences where there are a minimum number of…