Most voted questions
150,413 questions
Sort by count of
-
5
votes5
answers12368
viewsCentralizing menu options in bootstrap 3
I’m trying to leave options a centralized menu created in bootstrap 3, I’ve tried some alternatives, but none solved my problem, I have this snippet of code: <div class="navbar navbar-default…
-
5
votes2
answers9382
viewsIn CSS, is there any way to define the inline Hover?
I often need to develop templates for sending emails. But in some cases use the tag style to make style settings does not work. Thus, it is necessary to define the style values for inline elements.…
-
5
votes2
answers1808
viewsAssign a value to the pointer and multiply (directly)
How do I multiply the pointer so I assume a value to it? #include <stdlib.h> #include <stdio.h> int main (void) { int a,*b,*c,*d; printf ("\nInforme um valor: "); scanf ("%i",&a); b…
-
5
votes2
answers265
viewsForeign Key between different databases
Is it possible to link two different databases in a Migration? I am using Postgres. What do I have: $table->integer('id_cliente_produto')->unsigned();…
-
5
votes2
answers1003
viewsCan Sqlite work fully offline?
I need to save my alarms so that after the device is restarted they are put back into operation. The problem is that I get all of them through my database on mysql. What made me think that maybe it…
-
5
votes2
answers138
viewsIs hibernate considered white box or black box?
From what I understand the frameworks, Black box are known for their ease of use as it is not necessary to understand what is happening inside of it to use, and the white box otherwise, a knowledge…
-
5
votes1
answer9780
viewsHow to make application running in the background all the time
I tried to use the Service as they said but it’s not working yet. I don’t know if I got it right, the method onStartCommand() will run all the time? Because I debug and the application only enters…
-
5
votes1
answer446
viewsClang has Character error Too large but Visual Studio builds normal
I’m having a hard time understanding why the Clang presents the error message Character Too large for enclosing Character literal type when trying to execute the code: char c = 'ç'; while Visual…
-
5
votes0
answers148
viewsMojofailureexception caused by charsetName in Maven Archetype
A WAR project I’m trying to use as a base to run mvn archetype:create-from-project causes the following Exception stack after trying to read one of the files .java: [ERROR] Failed to execute goal…
-
5
votes2
answers1563
viewsHow to get all parent elements except for a few
I’m in a situation where I need to take all the "parent elements" of a div, but I can’t take them all, because it would not solve my problem. I wonder if I can put a limit on getting these elements.…
-
5
votes4
answers1988
viewsIs there any way to know if I’ve done git push?
Whenever I need to update the repositories, I use the command git push. The problem is that sometimes I don’t know if I’ve pulled or not, by doing several things at the same time. Then to find out…
gitasked 8 years, 4 months ago Wallace Maxters 102,340 -
5
votes1
answer165
viewspython process
I’m trying to change an external variable within a process but it’s not working. I created a simple test class: from multiprocessing import Process class Classe(): def __init__(self, parent=None):…
-
5
votes2
answers1094
viewsHow to return the page with the "Chor" of the LARAVEL id?
After submitting the form I return to the page in question with two methods, redirect() and back(). In case I’m using the bootstrap tabs and would like to return with the id anchor, ex: return…
-
5
votes1
answer504
viewsAngularjs - What is the best practice when uploading images?
I implemented this solution to upload images: MaquinaResource.save($scope.maquina, function (data, responseHeaders) { var formDataImage = new FormData(); for(var i = 0 ; i < $scope.images.length;…
-
5
votes1
answer135
viewsWeb Scraping: How to change the value of a drop down button on a site using R?
I want to create a script in R to read an HTML table. Do this from a static page with the package rvest is easy, the problem is that I have to change the value of two page buttons. This is the site…
-
5
votes4
answers6903
viewsGenerate random numbers that do not repeat
How can I generate a large sequence of random numbers that do not repeat? I have to generate 10,000 numbers from 1 to 1 million and store them in a file and they can’t repeat themselves. However…
-
5
votes1
answer803
viewsTake a specific part of a string
I need to take a specific part of a log file, its structure is something like this: ################################################## ---------------------------------------- Nome: nome_user,…
-
5
votes1
answer2732
viewsHow to hide a modal window after a while?
Colleagues. I don’t know if I was clear in my doubt, but I would like the Bootstrap modal to disappear automatically after the deletion confirmation. For example: user will delete a product,…
-
5
votes1
answer66
viewsParameterizing Dataset in C#
I created a search screen with a textbox, one button and a gridview. I would like the search results to appear on this Gridview but I can only do that with one Dataset. In this case I needed to find…
-
5
votes2
answers212
viewsDoes the user need to have . NET if I compile using Mono?
The user who will use my application needs to have the version of . NET on the PC? I saw in some topics on the internet talking about this advantage of Mono.
-
5
votes1
answer365
viewsExtract elements from a List
I have this list: a <- list() a[[1]] <- matrix(c(1,2),nrow = 2) How do I select element 2 ?
-
5
votes2
answers89
viewsAccess internal C#/. NET code structures
You can access the internal structures of a C# core code or C System.Core do . NET? For example, how is the method implemented First()? Alerta alerta = query.First(); I wanted to see how it’s done…
-
5
votes1
answer610
viewsXamarin - Sqlite Join
I’m creating an app on Xamarin, which generates a sales order, and stores on mobile. I’m using Sqlite to store the data, but I’m having trouble making a Join between my Order Items table, and the…
-
5
votes1
answer1377
viewsHow to implement a Route System in MVC?
I am creating an MVC Framework (more for studies), and I am trying to implement a route system, but I’m not sure how/where to run the routes. So I’d like to know if there’s any flow of execution of…
-
5
votes1
answer1139
viewsClose console window in C
I need to create the old game. I want to know how to close the black window that appears without having to click any key, for example: When running the program appears: 1 to play 0 to leave If the…
-
5
votes1
answer355
viewsGulp tasks with command line parameters
I work with a simple task of Gulp, created to realize a deploy in a production environment. In a simplified way, the task is: gulp.task('deploy-prod', function () { return gulp.src('dist/**')…
-
5
votes3
answers24766
viewsIs it possible to use if Else in Mysql queries?
I’ve been searching the internet and hearing rumors that it is possible to use if else in Mysql queries but saw nothing concrete about it. Is it even possible? If so, how? I want to make a query in…
-
5
votes4
answers5492
viewsDifference between two dates, ignoring weekend - working days only
I was looking for something similar, but unfortunately I found nothing. I found this solution that helped me a lot but is in Java. How to calculate the difference between two dates by ignoring…
-
5
votes1
answer115
viewsOperation with very large size lists
I have a code that calculates the area of the intersection between two polygons and for that I use lists to store the coordinates of the vertices of the polygons, however there are many polygons and…
-
5
votes2
answers4801
viewsHow to use multiple languages in a single program?
I saw that Google Chrome is made in Python, C++ and Assembly and came to mind, like programming using multiple languages in a SINGLE program?
-
5
votes1
answer587
viewsConvert String from Jtextfield to Calendar
How to perform input conversion via Swing’s Jtextfield via JDBC ? public class DadosPessoais { private Calendar dataNascimento; public Calendar getDataNascimento() { return dataNascimento; } public…
-
5
votes2
answers1064
viewsError using phpmailer class
I am making a contact form using phpmailer class and whenever sending the email this error happens: I’m using the SMTP connection. "Fatal error: Class 'SMTP' not found in…
-
5
votes2
answers463
viewsHow do I make the href that is inside my div work with Focus?
I have a list that when you click on an item it receives a Focus and appears a div with information. One of this information has a link but when I click on it, my div closes and does not open the…
-
5
votes3
answers296
viewsFunction that converts this string to a json
I have a string in the following format: "a=123 b="ABC" c="Olá Mundo!"" need to create a function that transforms this string in this json: { a : 123, b : "ABC", c : "Olá Mundo!" } I think it has a…
-
5
votes1
answer311
viewsHow to order hours
I have the following method to sort a ArrayList String of Hours: public static void ordenaHoras() { ArrayList<String> horasList = new ArrayList<String>(); horasList.add("23:45");…
javaasked 8 years, 4 months ago Vitor Mendanha 595 -
5
votes2
answers109
viewsStore values in Hashtable
When I keep the value of this Hastable he makes me wrong. Follows the code: Hashtable ht = new Hashtable(); ht.Add("index", index); ht.Add("tipo", "1"); string tipo = ht["tipo"];…
-
5
votes2
answers564
viewsIs there a difference in using constants or variables in Classes?
There is a difference in using constants or variables in Classes?
-
5
votes1
answer850
viewsProgress-bar to DOWNLOAD files in Jquery
I have seen many people looking for how to make a progress bar to download files, Megaupload style. I beat myself up to get here and I’d like to share with the guys! 'Cause I didn’t find anything on…
-
5
votes2
answers113
viewsHow to make a link presentable
How do I "index" a link on a website to display it in a more presentable way? Example of sites/app that do this is Whatsapp, facebook, gmail. For example, in Whatsapp just paste a link and wait a…
-
5
votes3
answers1864
viewsCheck if a date is earlier than another date
Good morning, I wonder if there is a way to check if one date is earlier or higher than another, in my code there are 2 inputs like date, which send their values to the database, but one date will…
-
5
votes2
answers183
viewsTrying to generate a graph of a time series
That’s what I did.. #Lê a base de dados ano1<-read.csv("os dados abaixo...",header = TRUE ,sep=";", row.names=1) #Cria a série temporal ano<-ts(ano1[,1],start=c(2009,1),…
-
5
votes1
answer821
viewsHow does Django create and verify tokens to reset password?
Considering a model to reset password already implemented by Django, in the following views: Django.contrib.auth.password_reset Django.contrib.auth.password_reset_done…
-
5
votes1
answer762
viewsHow does Sqlbulkcopy work?
I’m using in my class project SqlBulkCopy to mass input data. Everything has worked perfectly, but in recommending this to my co-workers, despite proving the efficiency, questioned about the…
-
5
votes3
answers5352
viewsHow to convert from Text to Number via code to EXCEL in C#
I have a program that reads data from a text file and exports it to an excel report. I have a problem in the transcription of the numbers, in the txt file I have data in this format: 8,000000 this…
-
5
votes2
answers711
viewsWhere to put the business rule at the angle?
I love programming web and mobile apps with Angularjs. But I’m tired of spreading my business rules by controller and factorys. I miss being able to create my objects with their respective…
-
5
votes1
answer130
viewsDifference in content formatting in Textarea and notepad
I have an ASP.NET MVC application where I display in a text area content that is in the database. @Html.TextArea("Avisos", Model.Avisos, new { @class = "form-control", rows = 50, style =…
-
5
votes1
answer473
viewsHow to make the webscrapping of a site that has post method?
I’m having trouble doing the webscrapping for sites using the method post, for example, I need to extract all news related to political parties from the website: http://www.diariodemarilia.com.br.…
-
5
votes2
answers859
viewsInvert array (vector) without an external function, 'manually'
Friends, I always invert vectors using an auxiliary in an external function (I think the standard way), however until recently a friend told me that had a way to invert vectors without using an…
-
5
votes1
answer480
viewsPython lists and dictionaries
I’m working on Python 2.7. import collections counter_ger=collections.Counter(sub_todaas) a=counter_ger.values() b=counter_ger.keys() sub_ind_novo = [Ntodos.index(i) for i in b if i in Ntodos]…
-
5
votes1
answer903
viewsAndroid studio generating two apps the same way
I developed an apk, but from the end of the project here he was always emulating two identical applications on my phone, same functions, icons. The difference between one and the other is that one…