Most voted questions
150,413 questions
Sort by count of
-
8
votes1
answer6038
viewsImplications of using Inner Join and left Join in a single select
I have some stored procedures in a SQL Server 2008 R2 database, these stored procedures have several joins, in some cases I used in it select, Inner Join and left Join, for example: Tabela Pessoa |…
-
8
votes4
answers542
viewsSubsequent Calls in Ajax
I wrote a system in Web2py for a client, and he wants me to automate a procedure. I thought of using Ajax. The idea is the following: I have a list of companies. Let’s say, 50. I want the screen to…
-
8
votes2
answers1484
viewsCompareto: Comparison method violates its general Contract!
I found many questions on this subject, and tried all the suggestions I found, however the problem persisted. If anyone can help me, there’s my problem: I have a list of requests, this list is…
-
8
votes1
answer662
viewsHMVC and HTML Componentization
I have read several articles on HMVC, both in PHP and in other languages, and in all of them the implementation of the standard revolved around having a "Master Controller" which requested the…
-
8
votes1
answer410
viewsMatrix parameter passing error
I am trying to understand the function of pointers for an array. For this, I have elaborated the small program below. I made some mistake, because, in the indicated line, error is occurring…
-
8
votes1
answer16812
viewsHow to change the compiled application name?
How to change the name "app-release" that gets after compiling the android app ?
-
8
votes1
answer3619
viewsGet the previous URL with javascript
How do I get the previous URL of the current javascript page?
javascriptasked 9 years, 10 months ago Emerson Barcellos 954 -
8
votes2
answers2097
viewsMysql connection failed via VBA
I am trying to connect to a Mysql database via Excel VBA, but returns an error stating catastrophic failure. I made a test by putting the wrong password, or the name of the wrong database, and it…
-
8
votes1
answer107590
viewsHow to insert favicon into an HTML?
I’m starting to play in HTML and would like to know how to implement a favicon.
htmlasked 9 years, 10 months ago João Pedro -
8
votes1
answer323
viewsschema.org: What to use: Microdata or JSON-LD?
The marking of structured data Schema.org for search engines Google, Yahoo! , Bing and Yandex is great for rich snippets. However I realized that most webmasters use Microdata and almost never use…
jsonasked 9 years, 10 months ago Ennio Sousa 686 -
8
votes6
answers14224
viewsDistribute list of <li> in two columns
I’m trying to create a list with 4 blocks, but they don’t align side-by-side correctly, they’re like this: I wish they’d stay that way: HTML: <li></li> <li></li>…
-
8
votes4
answers688
viewsSuperclass can become subclass?
I have the classes Versao, that a general version, VersaoFirmware and VersaoSoftware. In practice the user can add one or more versions to an equipment. However, at first, it is not yet known what…
-
8
votes1
answer2098
viewsHow do I use git to organize my development, approval, and production environment?
We are adopting the use of an homologation server here in our company, but we still do not know how to organize the development flow from this paradigm, since currently each developer when he wants…
-
8
votes2
answers732
viewsHow to structure a solution by separating Webapi from Webui using ASP.NET Identity?
How should be organized a solution that will have at least three projects, being them: Class Library as infrastructure Web Application as Web Api Web Application MVC for Webui (user interface) Where…
-
8
votes2
answers925
viewsHow to add Static methods in interface?
I have my method: public static CloudStorageAccount GetAccount() And in my Interface: public interface IAzureStorangeService { CloudStorageAccount GetAccount() } But the compiler accuses that the…
-
8
votes2
answers209
viewsProcessing time is affected by the size of variable names?
I was analyzing some frameworks developed by large companies and noticed a certain uniqueness, its variables and functions usually have small names. Variable or function name size interferes with…
performance variables encoding-style response-timeasked 9 years, 11 months ago Guilherme Lautert 15,097 -
8
votes2
answers348
viewsSingleton in Javascript
How to implement the Singleton standard in Javascript in a simple and correct way - which assures me that the instance will be unique? I’ve seen somewhat complex implementations, but it wouldn’t be…
-
8
votes2
answers18126
viewsOpen DIV after clicking a Link Button
I would like to know how to create, whether in CSS3, Javascript or Jquery, a button that, when clicking it, is revealed a DIV on it, and opens a new page with target _Blank. I’ve done a lot of…
-
8
votes1
answer349
viewsIn Python, how do you explain the expression 'x = not x'
I already know the result, but I would like to understand what happens, why of such a result... For example: >>> a = True >>> b = not a >>> print(b) False It’s a simple…
-
8
votes3
answers2984
viewsHow to name a unit test when using TDD?
It is common to use nouns to name: classes (Car, Vehicle, Notafiscal); action verbs (infinitive or not) for method names (Calculartotal/Calculatotal, Lertodasaslinhas, Closeconnection, Abra…
-
8
votes2
answers217
viewsRisk in allowing developers to upem files. Blade
I’m developing a blog platform where users submit their template and Laravel uses this template to build the blog. The user/developer will only inform where the values will be, example:…
-
8
votes1
answer10842
viewsChanging remote path in Git
PROBLEM: I gave git clone in the repository of Web Starter Kit and the project already comes with Git started and with git remote origin master configured as Git default. So if I execute the command…
-
8
votes6
answers41250
viewsHow to prevent Submit from an empty form?
I have a custom search form for Google Search, and I want that if the search field is empty, Submit does not happen. You can do this blocking via Javascript?
javascriptasked 9 years, 11 months ago Gustavo Ponte 135 -
8
votes2
answers1213
viewsWhat are the advantages and disadvantages of storing session variables in the database?
From Rails 4.0, was eliminated the Activerecord Session Store, that kept session variables in the database, for "performance issues." But the functionality continues to work through a Gem. Today…
-
8
votes1
answer1089
viewsdir, html or css attribute
The attribute dir is usually omitted for languages LTR (default) and used for RTL - which are written from right to left (Arabic and related), for the purpose of changing direction, but found…
-
8
votes2
answers405
viewsWhy is the route not recognized by Silex when there is a "/" bar at the end of the requested url?
I’m starting my MVC studies with Silex today, but I’m having a hard time creating routes by accessing addresses containing a bar at the end. Example: http://site.com.br/home/ I already got access to…
-
8
votes1
answer981
viewsWhat is the difference between the Height and Clientheight properties of a Tform?
In Delphi a form has 2 properties to define the height of the form: Height and Clientheight. However, what is the difference between the properties Height and Clientheight of a Tform?…
-
8
votes1
answer5235
viewsWhen to use input type="button" or input type="Submit"
I have a simple question facing the semantic part. The button I can modify your actions using the Javascript. When I should wear it or trade it for submit ? <input type="button"> e <input…
htmlasked 9 years, 12 months ago Allan Ramos 2,488 -
8
votes2
answers390
viewsCan Missing semicolons in CSS and Javascript influence how code works?
I always leave my css code and javascript minified but had never noticed the output generated. Well, I noticed that the last rule of a selector (in css) and the last function (in javascript) always…
-
8
votes3
answers44043
viewsHow to put icon inside input using Font Awesome?
I’m trying to make a search field with an icon using Font Awesome, I want it to look like this: but he gets like this: What is the best way to put the button within the input? HTML: <form>…
-
8
votes2
answers719
viewsFilling Flash objects with solid colors and textures
I’ve been a Java programer for a while and now I’m creating a kind of Flash based coloring book in that video. Today there is a color palette, when clicking on the color and then in the drawing that…
-
8
votes2
answers2526
viewsWhat is [QSA] and similar for in Rewriterule?
I have as an example the following RewriteRule ^(Home)?/?$ page/php/Home.php [NC,L] I know that the NC is Non-Case(Não diferencia maiúsculas e minusculas). L means that if a RewriteRule is true he…
-
8
votes2
answers9392
viewsSerialize object list for JSON: A circular Reference was Detected while serializing an Object of type
I’m trying to Serialize a list of objects to Json and have received the following error: An Exception of type 'System.Invalidoperationexception' occurred in Microsoft.Web.Extensions.dll but was not…
-
8
votes3
answers1135
viewsHow to make the first two numbers of a sequence Math.Andom are NOT EQUAL
I made a lottery system in order to learn, I will not post the entire code here just the part I’m stuck. The PC draw is a sequence of 6 numbers that I present in the DOM (that doesn’t matter), so I…
-
8
votes1
answer12581
viewsHow to reverse engineer an android app?
As from an android app in the extension . apk, get the classes, layouts, libraries etc, ie, perform reverse engineering? Note: I used 7-zip as Bacco advised and resulted in the following file…
-
8
votes1
answer1127
views -
8
votes5
answers42558
viewsHow to delete data from a table with dependencies in other tables
I need to delete data from a table that has dependencies on other tables. For example, so that I can delete a data from the person table first I have to delete a dependency that exists in the…
-
8
votes1
answer2562
viewsMain differences between Mongodb and Redis
I’m reading a book on real time applications with Nodejs. The author used Mongodb and Redis to exemplify the use of database with Nodejs. My doubt arose when he used both at the same time,…
-
8
votes1
answer10339
viewsHow does Rewritebase work on . htaccess?
I’ve always used the .htaccess for url's amigáveis no php, but recently when passing to a company X server, the . htaccess that always worked didn’t work on that server.... After researching I found…
-
8
votes2
answers1533
viewsWhat does <<- mean in R?
What the operator means <<- in R, what are your differences with respect to <- and under what circumstances it may be useful?
rasked 10 years, 1 month ago Carlos Cinelli 16,826 -
8
votes1
answer373
viewsOffline mode Rails app
In a new endeavor, I need a simple application to stay working if the internet connection is lost. Can someone explain to me how to do this? I had thought to use HTML5’s persistence features in case…
-
8
votes1
answer152
viewsHow to return an object by calculating dates?
I am calculating the difference between dates in a period. From today until x previous days: hoje = new Date(); periodo = new Date().setDate(hoje.getDate() - 5); That way the output is as follows:…
javascriptasked 10 years, 1 month ago Marcelo de Andrade 7,261 -
8
votes1
answer480
viewsIs there a way to open a direct SQL table in a data.table, without doing the SQL path > data.frame > data.table?
I want to open a direct SQL table in a date.table. When I do a query with dbGetQuery, what I get is a data.frame. I know I can then turn that data.frame into a data.table easily. But I would like to…
-
8
votes2
answers1879
viewsWhat are the differences between background and foreground threads?
What are the differences between these two types of threads: background and foreground?
-
8
votes5
answers7954
viewsRemoving the " n" from a string read using fgets()
Usually when using the fgets() function it reads the string but is sensitive to Enter, like reading the string to be adding to it the " n"??
-
8
votes1
answer18996
viewsChange address bar url without refreshing page
I am developing an application where a form with a series of <select> send information to a chart loaded via AJAX. I would like these filters to reflect in the browser url, to make it easier…
-
8
votes2
answers198
viewsWhat main precautions should I keep in mind for my application to work properly in different browsers?
I program small systems using xhtml, ajax and php. When I mount the code I test the parts in Chrome developer tool (Ctr+I) and in phptester.net. When I finish my application I have to debug…
-
8
votes2
answers145
viewsNumber of repetitions per character
A friend passed me the following exercise: Create a function frequencyLetra(text) that returns an object containing the amount of occurrences of each character present in the text. I started from…
javascriptasked 10 years, 1 month ago David Bastos 355 -
8
votes4
answers425
viewsIs it not recommended to use scaffolding?
Certain frameworks offer the possibility of scaffolding, that is, some parameters (such as model/table name and attributes/columns) are reported and the framework generates all (or a good part) the…
software-engineeringasked 10 years, 1 month ago user7261 -
8
votes2
answers1442
viewsHTTP requests in C++
How could I make a request in a URL that would return a json in C++? I need to access a /Return.php URL that returns the string {"status":true,"hash":"12#87!!3@WSS\/.","user":"admin"} and work on it…