Most voted questions
150,413 questions
Sort by count of
-
5
votes2
answers2291
viewsCrop a piece of the image using mouse
Hello, I have the following situation, in a FORM I have any image, I need to select a part of the image through the MOUSE click, and as soon as I release the mouse button, that part I selected is…
-
5
votes3
answers698
viewsIn OOP, what are the differences between Afferent Coupling and Efferent Coupling?
With regard to the concept of acoplamento in Programação Orientada a Objetos, what are the differences between Acoplamento Aferente and Acoplamento Eferente? If possible, to better elucidate the…
-
5
votes2
answers273
views.after() jquery on JS Pure?
In jquery: $( "#main article:nth-child(3)" ).after( "<div style='clear:both;/>" ); How would I look in pure JS?
javascriptasked 8 years, 11 months ago Ericki 515 -
5
votes1
answer8620
viewsWhat is $Scope for. $apply ?
I saw in a code $Scope. $apply that uses Angularjs, what does it serve ? In the context it is in this way: var a = function(param){ $scope.$apply(function(){ var image =…
-
5
votes3
answers2556
viewsHow to know how many objects were instantiated?
In a Java application, how do I know how many objects in a class were instantiated? This doubt came to me by reading the article mentioned in the link below. It follows the excerpt that led me to…
-
5
votes1
answer923
viewsTips to improve the performance of an ASP.NET MVC site
I attended Devday 2015 and had the opportunity to participate in the Roberta Arcoverde about the architecture of Stackoverflow. I found her approach on the issue of performance interesting,…
-
5
votes3
answers756
viewsSend parameters via GET
I’m making a requisition the following way. http://localhost/sistema-agenda-server/tarefas/listAll?id=1 I asked to see in the answer the generated sql and got the following answer: SELECT * FROM…
-
5
votes1
answer6725
viewsAndroid Studio does not find JDK during installation. How to resolve?
Good afternoon, I’m trying to install Android Studio on my Windows 7, however it never finds the folder with jdk installed. Even if I point manually, it does not locate. I have already entered the…
android-studioasked 8 years, 12 months ago Toni Cesar A. Amaral 51 -
5
votes3
answers16008
viewshow to update column with single quote sqlserver
I’m needing to update a column that has lots of simple quotes in the field, content with the letter was inserted so it has several tags of the type <span style="FONT-SIZE: 12pt; FONT-FAMILY:…
sql-serverasked 8 years, 12 months ago hyperpixel 389 -
5
votes1
answer957
viewsMerge Excel cells via Delphi code
I am updating an old system made in Delphi that uses a class to create an Excel file without the need to use OLE objects or have Excel installed. Class works normally using the code that is just…
-
5
votes1
answer93
viewsWhy should we make a bootloader before the kernel first?
Why when we develop an operating system, we always have to make an bootloader, because we can’t start with kernel?
-
5
votes1
answer613
viewsHow to create a symbolic link to a Python code on Linux?
I want to run a simple Python code I created from anywhere on my system. I know to do this with a shell script just turn the command ln -s /home/user/script.sh /usb/bin/script, but would like to…
-
5
votes1
answer755
viewsChange icone action back with Fragment
Good morning, everyone, I’m having trouble changing the action of the icon back <- on my Toolbar. I have two Fragments A and B being that B are details of A. - When I’m on Fragment B and I press…
-
5
votes1
answer907
viewsHow to recover deleted commit?
Consider the following story: In the local repository I commit A and B. I pushed to the repository on the server. I went back to the local repository and made changes. I removed commit B from the…
gitasked 8 years, 12 months ago Filipe Moraes 8,737 -
5
votes1
answer1621
viewsPHP + Google API Geocode
Follow the method code: function GetGeoCode($address) { $geo= array(); $geocode = file_get_html('http://maps.google.com/maps/api/geocode/json?address=' . $address . '&sensor=false'); $output =…
-
5
votes1
answer142
viewsWhat function in R to reorder a data.frame that contains missing data (NA)?
I got the following data.frame: Linha Data Total Med.2 DP.2 Med.3 DP.3 Med.4 DP.4 1 2009 1.4749 NA NA NA NA NA NA 2 2010 2.9945 2.2347 1.0746 NA NA NA NA 3 2011 2.9945 2.9945 0.0000 2.4880 0.8774 NA…
-
5
votes2
answers446
viewsIn the POO when to use Re-turn?
I have a question related to POO, when should I use the return in a method?! Since when I pass an object to the method and modifications are made to it, I do not need to Return, example below:…
-
5
votes1
answer684
viewsIs it possible to use composite key for Entity Framework with Model First?
I have the modeling down and will need to map composite keys like the Embedded id of Hibernate, but in the Entity framework using the model first, it is possible ?…
-
5
votes2
answers2664
viewsManipulate and model Json object
I have a JSON object with the following structure: [{ "Codigo": 7, "Descricao": "Atividade 1", "CodigoMilestone": 6, "TempoRevisado": 2, "Inicio": "\/Date(1445738400000)\/", "InicioCedo":…
-
5
votes1
answer5315
viewsHow to prevent text from being selected using CSS
How to prevent user-selected text using a CSS rule?
-
5
votes3
answers1909
viewsCapture Input ID
Anyone knows how I do to capture an input id and send it to the database? EXAMPLE I have this input: <input type="checkbox" name="adicional" id="Leite Ninho" value="2.00"> It has the name I…
-
5
votes2
answers200
viewsGrab thumbnail of videos (Windows)
I Googled several terms of how to get the thumbnail of the videos but only found how to "generate" the thumbnail of a frame of the video using the Xuggler, but I’m making mistakes. The mistake I’m…
javaasked 9 years ago Wilson Tamarozzi 382 -
5
votes2
answers600
viewsError using apache Httpclient class
I’m trying to develop an app in which will communicate with webservice, but by the time having to use the Httpclient or other classes related to apache library gives error as it does not exist, I…
androidasked 9 years ago Alan Martins 123 -
5
votes1
answer355
viewsIntegration between PHP and R
I am developing a project with php and decided to use R for statistical calculations. But I’m not sure how to accomplish this integration. If there is a "design pattern" for situations like this.…
-
5
votes2
answers491
viewsI cannot create php class and use PDO connection
I’m creating a class that fetches data from the database for display. For example, one of the functions of the class is to take the date, of a given, in the database and display on the screen. The…
-
5
votes2
answers102
viewsWhat’s this code for?
I have seen this structure lately, in javascript, tried to search about it but could not get concrete answers. I know it is an Object -I think- but it is that I am beginner and did not understand…
javascriptasked 9 years ago user33505 -
5
votes2
answers1685
viewsHow to format all elements of a list in Python?
In php, when I want to generate a array formatted, I use the function array_map. Thus: $numeros = range(1, 10); array_map(function ($value) { return sprintf('%04', $value); }, $numeros); Returns:…
-
5
votes1
answer866
viewsHow does the responsive utilities of Bootstrap work?
From an application performance point of view, how the classes work hidden-** and visible-** ? If I put a div with hidden-xs it will be loaded on an Xs device and will not be visible, or bootstrap…
-
5
votes2
answers8546
viewsHow to set and pick objects saved in Javascript session
I’m wondering how to save an Array of objects in the session, and then how to recover them. Today I use the sessionStorage.setItem("pessoa", arrayPessoa); and sessionStorage.getItem("pessoa");, but…
javascriptasked 9 years ago Renan Rodrigues 3,709 -
5
votes3
answers94
viewsHow to stick with just one part of the string?
I have several string’s (idPergunta-18, idResposta-18, idPergunta-17, idResposta-17) Needed to write only (idPergunta, idResposta, idPergunta, idResposta) How do I in PHP? The goal is as follows:…
-
5
votes1
answer13456
viewsHow to go through attributes of a JSON?
I’m trying to go through attributes of a json, I’m trying this way for (var i = 0, length = r.length; i < length; i++) { for (var i2 = 0,length = r[i].lenght; i2 < length; i2++ ){…
-
5
votes5
answers3336
viewsHow to mix an array in Javascript?
In PHP, when I need to mix an array, I use the function shuffle. Thus: $a = array('@wallacemaxters', '@rray', '@CiganoMorrisonMendez'); shuffle($a); print_r($a); exit: Array ( [0] =>…
-
5
votes2
answers185
viewsHow to know which methods and properties I put in a class?
I’m going to do my first commercial system using C#. The system will be used to manage the guests and rooms of a small hotel, for now that’s all he asked for. Obviously I am happy with that, while…
-
5
votes1
answer688
viewsHow to publish an MVC 5 site?
I made a subscription to Godaddy and I’m having doubts to publish the project. Currently in the root directory of the site contains only one HTML page: index.html, as we can see below. index.html:…
asp.net-mvcasked 9 years ago hard123 2,329 -
5
votes2
answers545
viewsProblem accessing a One to Many interface in Laravel
My Product model has the following relationship: public function categoria(){ return $this->belongsTo('estoque\Categoria'); } and my Category model has: public function produtos(){ return…
-
5
votes1
answer452
viewsCheck for data in column
Have a check to see if there is data inside a column in a table? I want to do a check and if there is data in the column it displays a div. I know the mysql_num_rows to add the data that was…
-
5
votes1
answer938
viewsHow to create buttons next and back QUI Pyqt4
Hello, I’m new to Pyqt and I have a question, I need to create a program with several steps, or screens, where the user will do his due processing on each screen and clicking 'forward' to the next…
-
5
votes3
answers2845
viewsImage to byte[]
Hi! I’m using Xamarin.Forms to make an app. So, I need to save images to Parse. To do this, I need to convert the images to byte[]. Any idea how I can do this ? I’ve looked on the internet but none…
-
5
votes1
answer112
viewsWhat is the difference between element.push("value") and element[element.length]
Hello. Whenever I need to add a new index in an array I use the second method, but I see some using the first one and I don’t know if there is any difference between them.
javascriptasked 9 years ago efreitasn 63 -
5
votes1
answer1241
viewsCustomize android webView error page
Please have a webview on my android app, how can I customize if the user doesn’t have internet ? Thank you Code of the current webcview : WebView wv=(WebView) findViewById(R.id.webView); WebSettings…
-
5
votes1
answer147
viewsGson to Java - Map
I need to pass these values from a json file to a java class file, the Json file is of this type: { "id":1, "name":"Gold", "description":"Shiny!", "spriteId":1, "consumable":true, "effectsId":[1] },…
-
5
votes2
answers2657
viewsRegex to pick sequence of equal numbers
I need to do a validation using regex, how do I validate if a string is coming with repeated numbers? for example "1111","2222","3333"
-
5
votes1
answer73
viewsIdentification of regions google maps - Javascript
I have a list of latitudes and longitudes and I would like to find out in which region of the country such latitude/longitude belongs.
-
5
votes4
answers3583
viewsWhat is the best free and online tool as an alternative to Jira?
The jira is a great tool to track bugs and stories, but is paid. Someone knows a free and online compatible tool?
project-managementasked 9 years ago Frederico Coêlho 61 -
5
votes2
answers1988
viewsA Good Fortran Random Number Generator
The GNA of FORTRAN (Rand()) seems to be bad, this because it is proved to be worse than very simple random number generators. For example, in my simulations the GNA below SUBROUTINE GNA(iiseed) USE…
-
5
votes2
answers195
viewsClear Input When Choosing Another Option
What I wish to do The guy has in the form the option of registering natural or legal person. I want that when he clicks on the radio of the individual, he cleans the legal person input, and vice…
-
5
votes1
answer188
viewsHow to keep a rotated text centered on a dynamic height div?
Basically my problem is in color div, and rotated text. I need the color div to have the minimum height relative to the size of the rotated text, and the maximum height to be relative to the…
-
5
votes1
answer9192
viewsHow can I set an old version of php in Xampp on localhost?
I’m taking a course in PHP and is appearing errors due to version PHP Xampp be more updated than the version PHP course. Question: It is possible without too much time loss to set a previous PHP…
phpasked 9 years ago Cristina Silva 51 -
5
votes1
answer353
viewsWhat to do when Avast detects a threat in a harmless app?
I made a network hack, no virus, and the blessed Avast! Warns and destroys my project:…
visual-studioasked 9 years ago CypherPotato 9,292 -
5
votes1
answer2420
viewsAre there any random text generators that produce correct phrases?
Is there any program, preferably in python, capable of generating random text but syntactically correct? The language I’m looking for is English.