Most voted questions
150,413 questions
Sort by count of
-
5
votes1
answer7627
viewsDynamically Open Image in Modal Bootstrap
My intention is the following, after generating the list of images by PHP, I wanted that when I clicked on some of the images it opened in a modal dynamically, where I would pass the address of the…
-
5
votes1
answer1838
viewsCompare Coordinates
In my mysql I have a column containing positioning coordinates coming from a polygon, drawn in the google maps api, the question is how can I compare the coordinates I have within the column with…
-
5
votes1
answer1166
viewsDifficulty navigating between views using Ionic Framework
recently start in Ionic, and I believe that as a beginner doubt, I’m having some questions about opening pages, ie, browse between my views in case there are 3 would be them, the home, Pag1, pag2,…
-
5
votes1
answer64
views -
5
votes1
answer1721
viewsArduino mandar GET to PHP page
I have the following code on the Arduin: #include <SPI.h> #include <Ethernet.h> #include "DHT.h" #define DHTPIN 2 #define DHTTYPE DHT11 DHT dht(DHTPIN, DHTTYPE); byte mac[] = { 0xDE,…
arduinoasked 8 years, 7 months ago Rodrigo Segatto 743 -
5
votes1
answer2736
viewsError "Doesn’t have a default value" when trying to insert data into DB
I was trying to enter the variables I received from a form when I received this error message: 'nidcrespons1' doesn’t have a default value My code: <?php $link = mysqli_connect("localhost",…
-
5
votes1
answer425
viewsWhy does the image get distorted (doesn’t maintain the proportions) in Imageview?
I have some images inside the folder drawable and call them via code: public void inserindoImage(ImageView image,int rid,LinearLayout linear ) { image.setBackgroundResource(rid);…
-
5
votes3
answers384
viewsReset "<select>" by unchecking checkbox
Hello dear beasts in Jquery, following the logic of the example below, how to make select always return to the first value of the list after unchecking the respective checkbox? And the second…
-
5
votes1
answer186
viewsMethods that require return even having Void in "signature"
I am doing some tests to understand in practice the functioning of the classSwingWorker in the swing, and I noticed that the method doInBackground demands a return null, even starting the form…
-
5
votes1
answer705
viewsHow to update Listviem after deleting an item?
When I click on an item of mine Listview, i open a dialog with 3 buttons (Edit, Finish and Delete). By clicking delete, I would like to make the Listview be updated. Man Adapter is in a separate…
androidasked 8 years, 7 months ago dnsfirmino 401 -
5
votes3
answers8991
viewsWhat language is used to program an operating system?
What language is used in the programming of an OS?
-
5
votes1
answer1476
viewsA real reason to use the data-* attribute in the html element?
Can anyone mention a single real case of using the data-* attribute (in the pattern that suggests W3C) for the html root element? If a real reason is not possible, at least then imagine a situation…
html5asked 8 years, 7 months ago Ingrid Farabulini 1,002 -
5
votes3
answers14329
viewsHow to use the C++ vector class?
Necessarily need the library #include<vector.h> To raise it vector <int> c; Question: How to store values in it and read them?
-
5
votes2
answers7863
viewsWhen should I use GET function and when should I use POST function?
I have a question and I think it’s quite "idiot" but when to use GET and when to use POST ? I know that when using GET the text or message written in a form or field, it is also passed to the link…
-
5
votes2
answers7033
viewsWhat is to bind?
I can’t find the meaning of Bind to explain to me what this is. I would like an example of Bind with the same java language.
-
5
votes2
answers396
viewsHow to play relationship in Objects?
According to the definition of this website: CARDINALITY Is the maximum and minimum number of occurrences of an entity that are associated with the occurrences of another participating entity…
-
5
votes3
answers1915
viewsRemove element from a vector in C# and don’t leave the vector with a blank space?
I need to remove an element from a vector with 5 elements, and cannot get empty space in the vector. I need to remove by index.
-
5
votes3
answers1419
viewsWhat is the difference in checking an array with isset and array_key_exists?
In PHP we often have more than one way to do the same operation. A basic example is in verifying the existence of a given index in a array: we can use array_keys_exists. Example: $arr = ['a' =>…
-
5
votes2
answers2096
viewsMysql and C#inheritance modeling
I have a question about modeling a Desktopapplication system in C# with Mysql. Essentially I will have the entities Customer, Supplier, PF and PJ. PF can be a customer or supplier. And PJ can also…
-
5
votes2
answers1863
viewsWhat is the purpose of the default when used in the signature of a method?
Within the interface List<E> of Java there is the method replaceAll() the purpose of which is to replace all occurrences of a specified value of a list. However, in his signature he uses the…
-
5
votes1
answer2373
viewsHow can I get the current date and time in #R?
I am creating a routine process report, a simplified "logfile", and would like to store the date the time of the error moment in a variable. What function results in the date and time of the moment…
-
5
votes3
answers1261
viewsSelf Relationship with Laravel
I have the following problem trying to make a self relationship with Laravel 5. I want to make a user registration, where users may have other users linked, creating an autorelationing N x N,…
-
5
votes2
answers878
viewsloop in correlation matrix in R
I have tried to learn about loops and functions in R. So I disposed to the following situation: I have a matching correlation matrix: dados<-matrix(rnorm(100),5,5)…
rasked 8 years, 7 months ago Ricardo Adelino 73 -
5
votes2
answers954
viewsExhaust character
I’m having trouble understanding the escape characters, I already know that the \n break line in a string, but the other characters could not understand. Ex: \a \b \f \r \t \v, found the…
c#asked 8 years, 8 months ago Samuel Renan Gonçalves Vaz 720 -
5
votes2
answers866
viewsChar pointer or char array?
There’s a program that I picked up at a company, where pointers are used to char, guy char*, and then allocated a memory for it with the malloc, done the operations and at the end de-located that…
-
5
votes2
answers1160
viewsHow to copy an html block when clicking a link/button?
Today a friend and I thought about developing a system for registering resumes, only I need to click on a link add 1 more block inputs each time clicked. I tried searching, and did not find nice…
-
5
votes1
answer687
viewsCould not create a System.Object type constant value. Only primitive types or enumeration types are supported in this context
I am trying to make a query in LINQ, and is returning the following error message: Could not create a System.Object type constant value. Only primitive types or enumeration types are supported in…
-
5
votes2
answers1620
viewsCompare equal dates in javascript
With reference to these two questions: Simple comparison between dates How to compare two dates in Javascript or jQuery I need to compare the dates and I need three distinctions between two dates,…
-
5
votes3
answers2025
viewsHow to save a Base64 image to SQL and save it locally as PNG
I need to know if it is possible to save a Base64 image in SQL and then retrieve it and save it locally as PNG or JPEG. I already know how to convert to Base64, but to download in all browsers this…
-
5
votes1
answer930
viewsWhat is the difference between Classes and Interfaces?
What’s the difference between classes and interfaces? I’ve read that apparently the difference in interfaces is because they are 100% public, but I have no idea. Could someone explain the difference…
-
5
votes1
answer1165
viewsLocate nearby restaurants registered in the database through google maps
I could use some help. I have a PHP system with a mysql database with several registered restaurants, with fields such as: id, name, address, longitude and latitude and I am creating an application…
-
5
votes2
answers902
viewsDomain . com has more relevance than . Tk to google?
I would like to know if a domain .com (www.example.com) is more relevant than the domain .tk(www.example.Tk). Or this has no importance for Google?
-
5
votes2
answers111
viewsControl order causes "System.Nullreferenceexception"
I’m doing some initial tests with the WPF and I came up with this question. Make no mistake: <DockPanel Margin="5"> <TextBox x:Name="myTextBox" DockPanel.Dock="Right" Width="50" />…
-
5
votes3
answers213
viewsWhy don’t I need to pass parameters to that function?
I would like to know how the function passage works as a parameter in JS, I am starting in the language now and I needed to make a call to EventListenner…
-
5
votes1
answer10913
viewsHow to disable browser 'back' button function?
How to prevent the user from using the javascript back button? I have a page and I want it to use the page back button.
-
5
votes2
answers3095
viewsHow to pass variables from Controller to View in ASP.NET MVC 4.5?
I’m quite used to PHP MVC where I can pass the values to the view from the controller as follows: public function Index(Users user) { return View('index') ->with('user', $user); } Or to return…
-
5
votes2
answers4914
viewsHow to delimit a string field in c#
I have a string field for example address in the code. This address field receives a 60 character data. What I want is to delimit the address size so that it only receives 30 characters and not…
-
5
votes3
answers390
viewsCalculate parent and child totals
Friends have 2 templates. Orders have several Details. I use Cocoon to create forms. The order model has a total that is the sum of the child model totals. What I would like to know is what is the…
-
5
votes1
answer578
viewsDynamically create Divs
Sirs, I am working with tabs in Jquery. I have a page called inclu_server.php where I do the Insert in the database of as many servers as I want. I need that after clicking the button next the…
-
5
votes2
answers2039
viewsWhat is a hook method?
I am studying some design standards and came across this method, however, its concept was not clear to me. What the method does and how it relates to the Template Method? I’d like an example in…
-
5
votes2
answers1327
viewsWould it be feasible to save session user data in Sessionstorage?
Save user data to SessionStorage is a good option? For example, the user enters with the login and password I do the authentication on back-end and return the entire object, then store that user in…
angularjsasked 8 years, 8 months ago DiegoAugusto 8,694 -
5
votes2
answers31527
viewsHow to round with 2 decimal places in javascript using a specific rule?
Hello. I need to make a simulator where a student enters the grade 1, the grade 2 and he calculates the average. Note 1 is multiplied by 0,4 and Note 2 by 0,6. Notes are decimal and only the second…
-
5
votes1
answer246
viewsSpring MVC getJdbcTemplate Insert in Oracle return column value
I have a project in Spring MVC, I’m using the getJdbcTemplate to make Insert’s. Only I do not insert the key Primary in Oracle from a sequence and need that value to re-enter another table where…
-
5
votes1
answer582
viewsHow to combine two vectors and get all the results of a given account with them
I’m trying to make a calculation, and I need your help. First I make a sequence with normal distribution with 420 numbers, then I make a sequence of numbers I call mci with 42 numbers, then the next…
-
5
votes1
answer312
viewsCapture image by url
I have the following url: http://ddragon.leagueoflegends.com/cdn/6.3.1/img/champion/{{name}}. png Replacing the word nome by a specific name and navigating to the page in question the site shows an…
-
5
votes1
answer1718
viewsHow does auto increment work with composite keys in the Myisam engine?
I ended up taking a table to manipulate, I noticed that sometimes the value of auto increment repeated, the first thing that called me the attention was that the key Primary was composed of two…
-
5
votes3
answers21403
viewsTurn rows into columns with their respective values
I have the following table idRegistro|Campo |Valor 1 |Nome |Zonaro 1 |Email |[email protected] 1 |campoX|valorX 2 |Nome |Fulano 2 |tel |1188889999 2 |campoY|valorY I need to create a select that…
-
5
votes2
answers1589
viewsHow to nested Tables with bootstrap?
How can I nested Tables with bootstrap as in this example with ASP.Net? There is way to do this with bootstrap?…
-
5
votes1
answer1084
viewsRedirect System.out.println output to Jtextarea
I’m having trouble making this redirect, let’s explain. I own a class called Engine.java, this class is responsible for doing my processing and in it has all the System.out.prints process, the…
-
5
votes2
answers1259
viewsHow to escape the percentage character (%) in the LIKE?
I have a system where I use the Laravel to make the query in the database. It is a search form. I use the following code: $search = trim(Input::get('search')); return Empresa::where('nome_fantasia',…