Most voted questions
150,413 questions
Sort by count of
-
6
votes2
answers940
viewsFilter 5GB CSV file on R
I am trying in every way to tamper with a 5GB file for my monograph. The code I’m trying to get into is as follows:: > write.csv(subset(read.csv("enem.csv", header=TRUE), UF_ESC=="SP"),…
rasked 8 years, 9 months ago André Oliveira 376 -
6
votes0
answers107
viewsGroup code in a row
Well, I would like to change my CSS code by joining the parameters that are "joinable" For example this code: { margin-top: -2px; -> juntável com MARGIN margin-right: 40px; -> juntável com…
-
6
votes1
answer129
viewsDoubt about page width, None display and size (MB)
There is a width ideal for a web page? When we put an image with display: none, the image is loaded along with the page load or when we click on it? What size (MB) is considered "lightweight" for a…
-
6
votes1
answer867
viewsInternet of Things and Remote Access
I have a prototype of home lamp automation using Arduino in case I want to control my sensors off the local network which the appropriate solution nowadays? There are some other options besides…
arduinoasked 8 years, 9 months ago Daniela Morais 4,687 -
6
votes1
answer10799
viewsCPF/Cnpj Mask in Edittext
I have an Edittext field, I want to know how I can define a mask for it to format the text inserted in the corresponding format, CPF or CNPJ, I tried using the method described in this other…
-
6
votes2
answers733
viewsEmpty constructor without calling super()
When I do parameterized constructors, I create an empty constructor as well. In the empty constructor, should I always make the call to super()? Why? (Take into account, that my class is just a…
-
6
votes4
answers5900
viewsHow to receive form data with pure HTML?
I created a simple form. In it I put: <form action="02.html" method="get" name="meu_formulario"> <input type="text" name="nome" size="60" maxlength="40"/> </form> I want to create…
-
6
votes3
answers604
viewsWorking with tags in Mysql
In a system I would like to categorize some users with tags. However there are groups of tags (for example, UF tag group, Interests). I’m trying to do a query where I can answer some questions like:…
-
6
votes3
answers13394
viewsPHP application does not log into the facebook app by localhost
I’m developing a PHP application that returns the list of facebook user friends. Although I specified the domain and site URL in the Facebbok app I created, I get the following message: The given…
-
6
votes1
answer1291
viewsHow to structure a mysql database from a JSON
I have the following structure json test: { "CE": { "Fortaleza": [ { "nome": "Teste", "email": "[email protected]", "cel": "(xx) xx-xx" }, { "nome": "Teste", "email": "[email protected]", "cel": "(xx) xx-xx" } ],…
-
6
votes1
answer1768
viewsWhat is a loopback interface?
I was going through socket connection issues on my server: Causing the error [could not bind to "tcp://127.0.0.1:8843". Cannot assign request Adress]? I managed to solve the problem. The technician…
-
6
votes1
answer187
viewsWhat are the PEP’s in Python?
I was researching about the Type Hints in Python and came across this page. PEP 0484 - Type Hints What would this PEP be? This is some kind of proposal for the next versions of languages?…
pythonasked 8 years, 9 months ago Wallace Maxters 102,340 -
6
votes1
answer1981
viewsHow do I send an Ionic app to the Apple Store?
I created an app with Ionic and want to send it to the Apple Store. I’m following this link but I’ll stop by Product>Archive. The Xcode simply does not enable this option. How to do ?…
ionicasked 8 years, 9 months ago FernandoPaiva 1,562 -
6
votes1
answer235
viewsPopular via builder with Hibernate
I was reading this article http://blog.caelum.com.br/nao-aprender-oo-getters-e-setters/ and talks about using constructors to popular objects and set aside some setters. How can I use constructors…
-
6
votes3
answers1293
viewsProblem to remove element added with jQuery
I have on a page one input, a button to add more inputs and each has a corresponding button to remove it. The problem is I can’t remove the inputs added via button. Only the original is removed.…
jqueryasked 8 years, 9 months ago Amanda Lima 3,428 -
6
votes2
answers1168
viewsUnable to call the same variable outside of Function
I’m having trouble calling my variable pt1 outside the function(data) and within the function getImageItem. Whereas the function(data) is inside the function getImageItem. function getImageItem() {…
-
6
votes1
answer356
viewsDevelop for x86 and x64 platforms
More and more operating systems are prioritizing the "version" 64bits, with this, developing applications for this architecture becomes increasingly attractive. Based on this scenario, I ask what…
-
6
votes1
answer325
viewsRun Insert in Migrations Entity Framework
I am developing an ASP.NET MVC project with Entity Framework Code First. I already checked the bank and managed the first Migrations, my question is: has how to execute a insert right after creating…
-
6
votes1
answer933
viewsHorizontal scrollview of a Textview automatically slide when inserting dynamic texts
I have a layout simple according to the shown below that it has a ScrollView horizontal when exceeding the limit of TextView. But I would like when inserting text the focus of TextView was always at…
-
6
votes4
answers11464
viewsIncrease image when user click on JS
I’d like some help for a problem I’m having: I’m doing something similar to a gallery, and when the user clicks on the image it has to open in large size, not the entire screen, but covering much of…
-
6
votes1
answer5562
viewsDisplaying message in a view through the C# MVC Controller
looking for a solution I found a way in the link Controller message to view But my problem is that nothing is shown. I don’t know if it’s because I don’t have an action in the View but the message…
-
6
votes2
answers192
viewsIn MVC, if I have utility classes, will they be part of the models?
For example, let’s assume I have a string manipulation class called strman which I will use to store operations to work with strings, already in the models folder I own usuario and usuarioDAO, in…
mvcasked 8 years, 9 months ago Renan Cavalieri 2,748 -
6
votes1
answer356
viewsWhat is * for in the expression "Foo* foo = new Foo" in C++?
I was looking into this question done in SOEN. There is teaching to instantiate a certain class. I was able to understand more or less how it works, because when I use my example, it is giving error…
-
6
votes2
answers5403
viewsHow to find out which extensions are installed in my PHP?
Is there any way to find out which extensions are installed in my PHP? I already know I can do it with phpinfo, but I find the visualization confusing. There is a simpler way, ie only the lists of…
phpasked 8 years, 9 months ago Wallace Maxters 102,340 -
6
votes1
answer75
viewsEarly return of a fold
Kotlin allows returns for previously declared tags, including implicit labels. Example of documentation: fun foo() { ints.forEach { if (it == 0) return@forEach print(it) } } In that spirit, I would…
kotlinasked 8 years, 10 months ago Anthony Accioly 20,516 -
6
votes2
answers1387
viewsSimplify LINQ query with Contains
I have two questions regarding the LINQ consultations below: { //lista de itens do orçamento var ids = itensOrcamento.Select(p => p.Id); //Produtos - todos produtos cadastrados var produtos =…
-
6
votes1
answer2111
viewsProblems to sum values using Angular JS
See the final result: <head> <meta charset="utf-8" /> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <!--inserindo a meta tag de keywords onde definimos as palavras…
-
6
votes5
answers1021
viewsPick first name with Regular Expression
I need to get the first name with regular expression, only I’m not getting it right. Today I use the code like this: <?php preg_match('/[[:alnum:]]+/i', 'Alisson Acioli', $matches); return…
-
6
votes1
answer633
viewsReturn data as JSON using ASP.NET MVC
When developing a web application, using ASP.NET MVC, I need to return the layer of view, data as JSON in the following format: { 'title': 'Gallery 1', 'description': 'Description of gallery...',…
-
6
votes2
answers297
viewsWhy does href not work as desired?
I am using a special Theme in my application that has a chat feature. To open this chat the template uses the following reference href="#offchat-canvas" to an element in my view. This chat is a…
-
6
votes1
answer694
viewsHow to pick up attribute dynamically
How I would make the following PHP code in C#? class teste{ public $x = 10; public $y = 10; } $n = new teste(); $a = "y"; print_r($n->{$a}); Note that dynamism is in the variable $a, in which if…
-
6
votes1
answer250
viewsHow to unify two Csss files
I’m doing a project Spring MVC 4.2. In this project I have more than one file CSS and more than one JS. What I want is to transform all the files Csss in a single ALL.css and that this file is…
-
6
votes1
answer123
viewsWhy can I access a structure without the pointer?
When I declare a pointer to struct I can access members without entering an address struct, why is it possible? For example: struct exemplo{ int a ; }; int main() { struct exemplo *p; p->a = 10 ;…
-
6
votes2
answers1071
viewsShow more accuracy in C++
I have this program: int main(){ double x=2; cout << sqrt(x); } I would like to show the result as accurately as possible. Thank you!
-
6
votes1
answer103
viewsHow to create an application from a Maven file?
I was working with EJB and dealing with four simple Maven projects, a web project ,a desktop project (JSE Swing), a project (JSE) that had only the interface and ultimately a web project (which I…
-
6
votes2
answers57
viewsA: problems with Sort (NA)
I have a vector I want to order using sort but, in doing so, I do not see the missing values (NA). How to do it? Grateful. > x [1] "b" "c" "a" NA NA "b" "c" "a" NA NA "b" "c" "a" > sort(x) [1]…
-
6
votes2
answers982
viewsCalling function from its name in a PHP class
I am creating an application where I need to call the function based on its name within the class. the intention to use this way is that I can call these functions through ajax and the server will…
-
6
votes1
answer131
viewsCopy DLL to directory with . nuspec without referencing it in project
I created a local Nuget. It worked fine until we found a problem that I can’t solve right away. The following: There is a reference in the project, which calls another reference. Well, it turns out…
-
6
votes2
answers162
viewsHow to count state changes in fields with a certain class within a function?
How do I count how many changes occur in all fields of a form with a certain class? Update: What I want to know is if there has been any change in each field (one), and not how many times there was…
-
6
votes4
answers877
viewsHow to search for an element with the same class depending on the number of children?
My scenario is this, I have two ul with li. As uls have the same class, but I wanted to manipulate only one of them, in this case, the one that has only one li as a daughter. Example:…
-
6
votes1
answer1209
viewsSoftware license registration file issuance and control
I have a system to control and issue electronic license registration files, so I have control of how many machines my software can run. My teacher advised me to use the CPUID processor to validate…
-
6
votes3
answers1209
viewsGet the name of the Image in the URL
I need to get the name of the image in the url. /data/data/com.intel.appx.IZICondominios.xwalk15/files/_pictures/picture_006.jpg I need you to come back: picture_006.jpg The URL template is not…
-
6
votes1
answer179
viewsWhat are digraphs in C?
Based on the question of graphs, what are digraphs? Why were they created? What are the sequences? Current compilers still allow you to use them?…
-
6
votes1
answer954
viewsSend data in json format to php
I know it is fully feasible to send PHP json to JS, but it is possible to send my data via ajax in json format to PHP?
-
6
votes1
answer214
viewsUndo click of jQuery parent element
As I can prevent the click of the #b it runs the click of the #link, I would like it to alert only "b" $("#link").on('click',function(){ alert('link') }); $("#b").on('click',function(){ alert('b')…
-
6
votes1
answer4170
viewsHow to draw elements (select elements randomly) from an array?
How can I draw elements (select elements randomly) from a vector in the R? For example, I want to draw elements from this vector: numeros = c(1,2,45,63,29,100,999,23.45,76.1)…
rasked 8 years, 10 months ago Capitão Ahab 565 -
6
votes0
answers292
viewsSave multiline text in Blob field on Sqlite
I would like a hand in this matter of saving a EditText multiline in a blob field in the Sqlite database, because when I add ContentValue values.put(CriaBanco.OBS, pedido.getObservacao()); in the…
-
6
votes1
answer103
viewshtaccess restrictions
I’d like to clean mine url so that the user does not see it,I searched on the internet but I could not make it work. I’ve already activated the bookstores in my wamp but I couldn’t make it work…
-
6
votes2
answers435
viewsMultiple regular expressions in a bar string
I need a regular expression that matches the end of a URL in the following format: /somente-letras/somente-numeros[/] To match the part of somente-letras, I used ~^/[A-Z]+$~, but from the moment I…
-
6
votes3
answers671
viewsCorrect pennies in Boletophp Bank Slips
I’m using the Boletophp project to generate bank slips, but I noticed that the pennies are not recorded correctly, because when I buy a product with the value of for example, R $ 245,00 plus the…