Most voted questions
150,413 questions
Sort by count of
-
7
votes2
answers13793
viewsBlock android rotation
I developed an android app but I need it to just stand up can not lie down... What would be the best way to block the rotation ? Thank you
-
7
votes2
answers1872
viewsError: The name 'Viewbag' does not exist in the Current context
Good morning, I have projects using System.Web.MVC na versão 4.0.0.1, worked normally in the 2013 version of Visual Studio, now I’m trying to work with Visual Studio 2015 and my Views no longer…
-
7
votes1
answer115
viewsInternal X public access modifier
When using public or international? Is there any advantage/disadvantage between them?
-
7
votes1
answer244
viewsCustom post url structure with tags and tag listing
Hello I’m trying to reach the following url structure for the post personalizado portifolio: website.com/portifolio - Display all posts - OK website.com/portifolio/Slug - Displays the portifolio…
-
7
votes1
answer693
viewsMysql Code Translation for Postgresql
I need to convert a Mysql page into Postgresql commands, but I’ve already reviewed the internet looking for similar commands and Postgresql syntax, and was unsuccessful. Some commands do not exist…
-
7
votes1
answer2480
viewsLoad list by parts using Angularjs
I want to return a query using Angularjs and, when presenting on the screen using a ng-Repeat, display only the first 10 records, and add 5 out of 5 records using the scrollbar* or just by clicking…
angularjsasked 8 years, 11 months ago Arthur Gonçalves 110 -
7
votes2
answers749
viewsTable does not appear in EDMX models
I have a problem in an application I am developing, I created the models using the ADO.NET Entity Data Model. However a specific table is not appearing follows below the script I am using to create…
-
7
votes1
answer396
viewsDelphi Error or Bug in Procedure Creation
In the creation of Procedure automatics, double click on the component, Delphi XE8 and Delphi-10 is having a strange reaction he mixes the new Procedure with one of the existing Procedure, making…
-
7
votes1
answer230
viewsLoop overload with use of foreach
Ola I am having a serious problem at least and what the aqual hosting company this my site is claiming that my code below is overloading the queries or performing various loops, and do not know more…
-
7
votes1
answer216
viewsUndefined error using replace()
I’m trying to make a sort of a people appointment, I made an attempt, but I was unsuccessful. Where is the error?? var nome =["Ana", "João", "Maria", "José"]; var frase = "@[1] é casado com @[0], e…
-
7
votes4
answers147
viewsIs there any way to decrease this script without losing functionality?
<script src="http://ajax.aspnetcdn.com/ajax/jQuery/jquery-2.1.4.min.js"></script> <script> $("div#contenthead div.left span").hover(function() { $("div#contenthead…
-
7
votes3
answers189
viewsInternationalize the content of Meta Tags
We should internationalize the content of Meta Tags HTML as description and keywords? This internationalization undermines the indexing by google since it will only analyze the page in a single…
-
7
votes2
answers1889
viewsMethods of image storage
I am studying what is the best way to store some images of users that are registered in my system. I found 3 ways to solve this problem: Save to local directory, Save as BLOB and Save as Base64. I…
-
7
votes4
answers16671
viewsSynchronous Xmlhttprequest error on the main thread is deprecated
When I use this code in my file, an error occurs in the log, and ends up giving problems in other javascript calls. Current page file (the problem javascript is at the end): <html>…
-
7
votes2
answers1075
viewsSend camera image to server by Retrofit
I learned how to send a picture of the folder drawable to my network server using lib Retrofit, but I’m not getting it from a ImageView, received from camera capture. I create a class that converts…
-
7
votes2
answers12821
viewsWhat it means *(int *)
I’m reading a code that has things like. *(int *)ptrArray = intN; *(float *)ptrArray= floatN; It is clear that different types are being assigned to the same type vector void*. The question is, what…
-
7
votes1
answer2097
viewsWhat is the difference between the concept of static and dynamic typing and the concept of strongly and weakly typed?
There is some confusion about the concept of programming languages with static and dynamic typing and the concept of strongly and weakly typed programming languages. For example, in my opinion…
-
7
votes2
answers140
viewsWhat are numbers for when creating columns in databases?
Everyone who has ever worked with databases has noticed that, during the data modeling of a table, we can define a number between parentheses. Examples: INT(20) TINYINT(4) BIGINT(10) VARCHAR(8) If…
databaseasked 8 years, 11 months ago Rodrigo Rigotti 12,139 -
7
votes3
answers402
viewsSending email via a notification button
I wonder if you have done or have any example that can send the link to the following problem: I have a project that has the Books crud and a User controller with their respective views. I made the…
-
7
votes3
answers4002
viewsDiv one on top of the other
I have a sequence of Divs being generated by a script. I would like them to be below each other and when I reached the maximum height of the father, they would enter the side . Currently putting…
cssasked 8 years, 11 months ago Pedro Augusto 2,392 -
7
votes2
answers18567
viewsPick select selected (only picking first value)
An Alert is displayed (with the sweetalert plugin) and in that Alert has a selectwith names. After selecting the name, the person has to click the button Add, when the person clicks the function of…
-
7
votes1
answer6777
viewsHow to run another program by python?
I’m looking to make a calculation engine on Python. For example, I have a name program engine.py, that takes an equation and returns the roots. I wanted to write another program named interface.py,…
pythonasked 8 years, 12 months ago Guilherme Edington 73 -
7
votes1
answer4784
viewsWhat does Cross-Domain mean?
Looking into it, I heard that Cross-Domain is an interaction between different domains. Even, I found a similar question in the SOPT itself, as link below. However, the concept itself was not clear…
-
7
votes1
answer2455
viewsWhat is the correct way to declare a main() function?
In some of the research I’ve done, I’ve noticed that there are some different ways to do it, like the examples below: int main() int main(void) void main() // entre outros... I know that statements…
-
7
votes2
answers133
views -
7
votes1
answer522
viewsPHP script paging
I would like to know how I can make a PHP pagination (in this case, 10 items per page). The exhibition is being made this way: <?php foreach($pdo->query('SELECT * FROM videos ORDER BY id…
-
7
votes1
answer713
viewsDoes number of columns influence performance?
When modeling a database, the number of columns can interfere with performance? Ex: Tabela1 possui 2 campos, 1 int pk e 1 nvarchar(50) Tabela2 possui 50 campos, 1 int pk e 49 nvarchar(50) Select…
-
7
votes1
answer3295
viewsHow to make my program default to open a file type?
I have a Java application that is very simple, represents a form and, based on what is typed in your JTextField, a file called "formulario.uniXml" is created. I set the extension to this name…
-
7
votes2
answers767
viewsPath between 2 nos of a graph using smaller number of colored edges
I’m trying to solve this programming problem. In summary, the problem describes several bus lines as an undirected graph and says that a bus ticket costs 1 real. Can someone give me a hint on how I…
-
7
votes1
answer180
viewsDoes Regular Expression vary according to language?
Most languages have support for Regex (Regular Expressions) but, for example, Javascript does not have Negative Lookhead ((?<) , however already . NET Framework has virtually all functions of…
-
7
votes1
answer1441
viewsUnique identifier of a Smartphone
I am developing a system and need to capture a unique identifier of the Smartphone. In this case, the person would access the site by Smartphone and the site will capture some unique identifier of…
-
7
votes1
answer1273
viewsIf the field has DEFAULT it must be NOT NULL?
Situation I was adding a few more columns to a table and falls from this thought. By default here we leave all fields can have value NULL, however if he has a DEFAULT he will insert the DEFAULT in…
-
7
votes1
answer1440
viewsWhat is Spring MVC?
I am developing a web java project and am using the MVC (Model-view-controller),which is a standard software architecture (Pattern design) and know that its function is to separate the…
-
7
votes1
answer104
viewsProblem with . Include() in Entity Framework(Postgres)
I’ve been having a problem with Entityframework, it’s as follows: When I use the ORM(.Include) string to give a Join in tables with foreign keys, it automatically changes the name of the keys in the…
-
7
votes1
answer3054
viewsDoubt about double exclamation (!!) in javascript / Jquery
I saw its use in the source code of Jquery, for example: fired: function() { return !!fired; } Code snippet located between lines 3222 and 3224 of version 2.1.4 Uncompressed. She’s something native…
-
7
votes1
answer589
viewsModify visual element by another thread
I want to define by a Thread the content in a Richtextbox but I get an error saying Cannot make calls from another thread distinguished from the same Textbox I have heard that it is possible to use…
-
7
votes4
answers29938
viewsRegular expression to accept only numbers and a ","
How can I make an expression or function to pick only numbers and comma, which the user informs. I want to pick up a product pricing form. If the user types a letter or something other than the…
javascriptasked 9 years ago André Nascimento 1,258 -
7
votes1
answer143
viewsMemory addresses
My architecture is 32 bits so my memory addresses are 32 bits? because I was using a debug seeing some codes Assembly and arrived in a part where had a loop , and he was picking up byte by byte of a…
-
7
votes4
answers9913
viewsDifference between prepare() and query()?
I was making a select in a table. I went to see the result, returned false. Then I used the query and it worked. What’s the difference between the two? <?php $query =…
-
7
votes3
answers660
viewsLINQ corresponding to SQL with clause LIKE 'XXX%'
I am using the following LINQ to return a query: .Where(c => c.Nome.Contains(nome)).OrderBy(c => c.Nome) But if the name is Maria, he brings: José Maria Maria José How to bring organized as if…
-
7
votes2
answers927
viewsReturn reading in JSON
I can read the return of json in the format [{"celular":"123456","_id":"1"}] The code that works with the json above is this: public static void MakeJsonArrayReq() { JsonArrayRequest jreq = new…
-
7
votes2
answers9043
viewsWhat’s the meaning of error 406?
Not Acceptable An appropriate representation of the requested Resource /aa/bb/cc.php could not be found on this server. Additionally, a 404 Not Found error was encountered while trying to use an…
-
7
votes1
answer5068
viewsProject directory list in Laravel is displayed instead of running the application
I would like your help to know why my PHP project with Laravel Framework does not work, I did all the steps correctly, but instead of seeing the framework, I am seeing your folders…
-
7
votes6
answers17707
viewsHow to validate date with Angularjs or jQuery?
I have a simple input that gets a date, how to validate that date if it is true? For example: 31/02/2006 this does not exist 20/20/9999 this does not exist <input name="data" ui-mask="99/99/9999"…
-
7
votes3
answers6427
viewsWhen should I use Empty or isset?
I noticed that some people have doubts about the use of these two functions, or if they have no doubts, they seem to apply unnecessarily one of these functions, and in certain cases the other serves…
-
7
votes1
answer3807
viewsBlock direct access to a page
Good afternoon, I’m developing a PHP site in which there is a login screen, which redirects to the admin screen, but if I try to access this admin screen through the url, it usually opens. I would…
-
7
votes3
answers2024
viewsKeep application (Windows Form) open in icon tray with C#
How to do that when closing the application (either by close button, ALT F4, or any method other than the process manager), the application continues running in the Windows icon tray: And it is very…
-
7
votes4
answers327
views -
7
votes2
answers2506
viewsCreating two projects in a single Git repository
I am creating a project in Java web and want to create another project on Android. But I would like to create only one repository and within it own these two projects with their respective trees…
-
7
votes3
answers2222
viewsWhat is a PHP Resource type? What is it for?
I am new to the PHP language, studying about it, I came across a special type available by the language, the type resource. I found a definition for her: Resource A resource is a special variable,…