Most voted questions
150,413 questions
Sort by count of
-
10
votes2
answers1623
viewsWhat is the real concept and usefulness of POCO classes?
I am studying and developing a new project and the little studying on Windows Phone 7.1, I saw that they suggest/ indicate the use of classes POCO, for database mapping (It seems to me that Windows…
-
10
votes2
answers4983
viewsHow do I let the bottom of the page degrade with Javascript?
It would be something like the image below; I have no idea how to do this. I don’t want to use image, I want to generate with code.…
-
10
votes2
answers1641
viewsIs it wrong to leave business rules on controllers?
I see in several code examples this, and even in the "standard" project that is created in visual studio, they leave a good part of the rule in the controller Is it wrong? When to use it? What is…
-
10
votes1
answer292
viewsScala memory leak and processes (memory Leak)
I have a fairly complex system in Scala, with multiple threads and simultaneous system calls. This system is having some problem, because busy memory grows over time. The image below shows the…
-
10
votes3
answers25526
viewsHow to delete a character within a string?
In this code I read two strings and I withdraw from the first all the letters in common with the second string. But how to put a null character in place of this common letter in both strings? My…
-
10
votes3
answers1631
viewsConcurrency control in database insertion
I have a competition control problem in entering data from a table. The scenario is as follows:: There is a table that records daily data according to user requests, and this data cannot be…
-
10
votes1
answer1380
viewsIs it good practice not to close the . php file with ? > after an XHR call made from a . html file?
Should I close the PHP tag <?php with the ?>? A friend with more experience recommended me not to close saying that it was a "good programming practice", I never understood why, but I follow…
-
10
votes2
answers664
viewsRedirection: Location vs Refresh
When to use Location and Refresh to redirect. header( "Location: www.dominio.com" , TRUE , 302 ) header( "Refresh:5; url=www.dominio.com" , TRUE , 302 ) Both options produce the same result:…
-
10
votes2
answers161
viewsHeight property of jQuery and Javascript, what’s the difference?
What’s the difference between $(window).height() from jQuery to the screen.height javascript ? Using them I perceive different results... And what’s similar to screen.height in jQuery ?…
-
10
votes1
answer2456
viewsReturn Object Code as soon as inserted
I need to do an Insert in the Entity Framework and at the same time returns the code of the inserted object, thus preventing new access to the bank.
-
10
votes1
answer358
viewsWhat are closures and what is their use?
The answer to this question on lambda What are lambda Expressions? And what’s the point of using them? talks about closures and Tree Xpressions, however, does not have a clear example of what they…
-
10
votes2
answers163
viewsWhat is differential inheritance?
I was reading this article in the English OS and came across the term Differential inheritance. Which, exactly, is differential inheritance? It is possible to have a minimum example, preferably in…
-
10
votes2
answers9199
viewsTesting an application’s Internet connection
I have an app that connects to webservice but the problem is that when I have 3G, it is a mistake. When the connection is good, with a wi-fi for example works perfectly. I have some algorithms that…
-
10
votes1
answer886
viewsWhat is the difference between automata and grammars?
I am studying about compilers and relating programming languages. What is the difference between automata and grammars?
-
10
votes2
answers6234
viewsHow to check if a number is decimal?
Is there any way to know if a number is decimal, ie if it contains "comma"?; One code I found was this: Html <input type="text" onblur="isNumber(this.value)" id="text" /> Javascript function…
javascriptasked 10 years, 6 months ago Samir Braga 10,016 -
10
votes5
answers74116
viewsRemoving a specific element in an array
I have the following array $input = array("item 1", "item 2"); But as it is dynamic, items can change $input = array("item 2", "item 4"); $input = array("item 4"); It is possible to use the…
-
10
votes3
answers4376
viewsWhat is an N-Tier application?
I’ve always heard a lot about N-Tier applications, but thinking about it lately I’ve been a little confused about what it really means. Searching on Google I found the wikipedia article on the…
software-architectureasked 10 years, 6 months ago SomeDeveloper 18,074 -
10
votes2
answers2431
viewsWorking with Git on a day-to-day basis with two different computers
I have two workplaces where I work on a project where I use GIT version control. In my studies I’ve learned a few things about GIT using Bitbucket. Let’s think about the following scenario: My…
-
10
votes1
answer4234
viewsWhen to use RUP and when to use Agile?
What parameters should I use to determine whether a project will be more successful if conducted through a methodology Agile (Scrum, XP), or through the Unified Process (RUP, Praxis)? I can think of…
-
10
votes2
answers746
viewsWhat is BDD and its relation to TDD?
In the web, when we searched for TDD, sometimes we also come across the acronym BDD. What is Behavior Driven Development (BDD)? What is your relationship with Test Driven Development (TDD)?…
-
10
votes1
answer3183
viewsSave value in Sharedpreference
How I do to save and recover information in an Android Prefence file. Example String a = "stack overflow" int b = 32; boolean c = true;
-
10
votes1
answer631
viewsWhat’s the difference between web MVC and desktop/mobile MVC?
Apparently the MVC model as employed in the web (Rubyonrails, Cakephp, etc.) is different from MVC as employed in desktop/mobile (Delphi, Android, etc). No desktop it seems to be more connected to…
-
10
votes2
answers160740
viewsFormula to calculate numerical ranges in Excel
I need some help to make a formula in Excel. =SE(C11<=6;"G4";SE(6<C11<=10;"G6";SE(10<C11<=16;"G10"))) What I want to do is: If the cell C11 is less than or equal to 6 write G4. If the…
excelasked 10 years, 7 months ago ChrisAdler 1 -
10
votes2
answers2117
viewsProcedural generation
In games such as Minecraft, Cube world and Starbound there is the term "procedurally generated map". As you walk through the game, the map is created, but with a "Seed" that will always generate the…
gamesasked 10 years, 7 months ago Weslley C X Sardinha 1,427 -
10
votes6
answers4316
viewsKnow number of checkbox selected
How many checkboxes is being selected and count. Selected 1, mark 1, selected another mark +1, took 1 mark -1. I would like to count.
-
10
votes1
answer9035
viewsScroll bar on a table with bootstrap
I have a table, where I upload database information into it. It has two columns (CNPJ and Social Reason). The table I mounted with bootstrap. I would like her to have a maximum height and create a…
-
10
votes2
answers5236
viewsRelationship N for N and One for N with Codefirst Data Annotations
How can I Relationship N to N and One to N using Data Annotations? For example: A sales drive has a user, and a user can have multiple drives. This same sales movement has several products, and each…
-
10
votes2
answers146605
viewsHow to get input using HTML and Javascript
As a beginner in the language 'JS', I would like to know how to simply pick up text from a <form> (without forwarding to another page and without changing the URL) and passing to a function…
-
10
votes6
answers14461
viewsConvert month number to name
I need to convert the number of the month to the name of the same, but it has to be in Portuguese (and preferably without the need to substr) I can do this with the standard English language…
-
10
votes1
answer2783
viewsHow to create a login and password page in ASP.NET?
I’m trying to create a login control for my application but I’m not finding a way to do that. I would like it to be a complete login control, where I can register new users, recover their passwords,…
-
10
votes2
answers5743
viewsLevel of detailing use cases
I’m starting to use use use cases to document object-oriented system requirements and I’m having a little doubt about the level of detail of a use case. Basically, I have doubts about "which should…
-
10
votes2
answers1172
viewsBlock unwanted AJAX calls
I did a test on Google Plus, turned on Firebug and inserted a post. When parsing Firebug I recovered the URL it was executed via AJAX. I copied the URL and ran it in the browser with the active…
-
10
votes3
answers265
viewsW3C HTML validator accuses "Empty Heading"
I’m trying to validate my html and it’s giving me the following message: Line 328, Column 34: Empty heading. <h3 class="titulo-chamada">A internet no controle</h3> He hinted that the…
-
10
votes2
answers11027
viewsConvert maturity factor (number of days) of billet into date dd/mm/yyyy
I have the following digit line: 74893.12004 21627.007186 37931.981056 7 60750000001400 As already seen in this question, I figured out how to calculate the salary mathematically: Extract Thread…
javascriptasked 10 years, 8 months ago user7605 1,679 -
10
votes3
answers1922
viewsWhat is the appropriate amount of changes to a commit?
I have noticed that in many public projects Github, the commits usually contain very small changes. There are several cases of commits with changes in a single line of code. In others, there are…
-
10
votes1
answer5452
viewsBasic image editing using Opencv
Hello, I’m learning to use the features that Opencv offers for image processing and the following question has arisen: How do I edit only a predetermined area of an image? To facilitate the…
-
10
votes2
answers151
viewsRelationship between Middleware and Application Delegate
I’m studying the OWIN and its implementation Katana by Microsoft. I’ve asked about it here and the answers already help to have a good overview of the subject. Going deeper I found this doubt. In…
-
10
votes2
answers808
viewsWhat are the size limits of variables in Ruby?
I would like to know the size limit of variables of the following types: String - How many characters can I have in a single string? Integer and Float - What is the largest and smallest number that…
-
10
votes3
answers7149
viewsClear ZIP code with Javascript
How to clear the formatting of a zip code field in this format: 87.678-000? I need to take out the "." and the "-" and return only the numbers. I tried something like, unfortunately it didn’t work.…
-
10
votes3
answers1415
viewsWhen should I use elements '<ul>'?
Recently I was thinking about the structure of a component for a project in which we are trying to follow the outlines of the W3C semantics, but I ended up with a certain doubt. Here is the…
-
10
votes1
answer1708
viewsASP.NET Identity and Claims
Still on ASP.NET Identity, following another question I asked about this (Example of ASP.NET Identity using SQL Server), an interesting topic within the same subject would be regarding Claims. What…
-
10
votes1
answer1565
viewsLaunch my Windows application in System Tray
I have no idea how I get my application to start with Windows 7 already in mode System Tray. That is, start with Windows and get the program icon next to the Windows 7 clock.
-
10
votes2
answers7394
viewsEntity Framework update and delete associative entity
I have a student table that has many to many relationship with the course table. Thus resulting in the table CursoAluno. I would like to know the correct way to the update and the delete table…
-
10
votes2
answers73740
viewsHow to access the print screen image?
When we hit the button Print Screen from our keyboard, the screen image is saved in some cache, in memory, somewhere, because when we give Ctrl V after, in Paint for example it trims, how to access…
-
10
votes1
answer446
viewsEaseljs isometric map, code problem, can identify
window.onload = function() { var stage = new createjs.Stage("canvas"); var bmp; var board; var img; var data; var tileClone; var x,y; var mapWidth; var mapHeight; img = new createjs.SpriteSheet({…
-
10
votes2
answers2720
viewsView control via authorization with Angularjs + Webapi
I am working on an application built with Angularjs and ASP.NET Web API. For now, using ASP.NET Identity I have already been able to implement authentication and authorization in the API using Oauth…
-
10
votes2
answers1100
viewsWhat is the difference between Meter and Progress in HTML5?
What is the difference of these two html tags, only the appearance(layout,color) is different? <meter min="0" max="100" value="22"></meter> <progress value="22" max="100">…
-
10
votes2
answers1898
viewsWhat is the difference between Tsqldataset, Tsqlquery, Tsqltable and Tsqlsimpledataset components?
In Delphi, following the line of components TTable and TQuery in the component palette BDE we also have similar components in the palette dbExpress which are the TSQLQuery and the TSQLTable, and we…
delphiasked 10 years, 9 months ago user3628 -
10
votes3
answers468
viewsInclude/Require 'file.php' or Include/Require('file.php')
I know that PHP allows the inclusion of files in both modes, but I would like to know the correct way to use these functions, or if the two modes are correct.
-
10
votes3
answers6487
viewsHow to take ID from another table and INSERT into another?
I have two tables: destinations and input: On the table destinations: id_destination(AI) and destination; On the table entree: id(AI), id_destination(relation with table id_destination…