Most voted questions
150,413 questions
Sort by count of
-
13
votes1
answer1813
viewsWhat is the difference between Action, Predicate and Func
What’s the difference between Action, Predicate and Func in the C#? I would like, if possible, examples of use.
-
13
votes1
answer2046
viewsWhat is the purpose of the "Return true;" command at the end of a function?
I noticed that in many functions in javascript I see at the end a return true. function EscreveDados(){ document.getElementById("divData").value = 'texto'; return true; } and in HTML we have the tag…
-
13
votes4
answers31386
viewsSending email via Phpmailer to Gmail
I can’t at all send an email to my Gmail account via PHP. I had a previous project where I tried to use phpmailer and I can’t get it to work properly (2 months trying). Now I finished a website and…
-
13
votes4
answers570
viewsExtend x Superscript, what’s the difference?
Researching on concepts of Object Orientation, I came across the following comparative, Extend (Heritage) versus Superscript. I found the following statement for this comparative: Extend: When we…
-
13
votes2
answers1498
viewsUsing Object or Iframe to import other sites to my site
I was needing to import several random pages from other sites to my site. Wikipedia, for example. I saw that I can use either Iframe (this worked) or Object (does not show content). Then, I would…
-
13
votes2
answers756
viewsDisplay player in Android notifications area
I created an app that transmits a Streaming radio, but if I "minimize" the application it continues playing. So I’d like to know how I can get you to open a box at notification list android, type…
-
13
votes2
answers127257
viewsPut a background image and make it responsive
I’m having a problem putting a background image on my page. I did some tests and it looks like this when I change the window size: When I maximize it’s right: How can I adjust this image to get the…
-
13
votes1
answer1710
viewsExchange messages between objects, what does it mean?
What is the term message exchange between objects in Object-Oriented Programming?
-
13
votes1
answer2964
viewsCalculate force to reach point B from point A
I have the value of the starting point, the end point (target) and the initial angle of the object. I would like to know the strength to reach the end point, as in the image below. Is there a…
-
13
votes3
answers666
viewsIn bash, what is the difference between <, << and <<?
I’m learning now to mess with bash (Ubuntu terminal) and would like to understand the difference between these three operators. I think that < It’s file-related, but I can’t explain what he does…
bashasked 9 years, 5 months ago Wallace Maxters 102,340 -
13
votes1
answer1179
viewsAuto Deploy after Git Push
I use daily the Openshift to create and host applications in the clouds. One interesting thing I observe is as to the process of deploy applications hosted on this platform. deploy is preceded by…
-
13
votes2
answers133
viewsget original HTML entities with javascript
I need all the original HTML entities of a paragraph, mainly the accents, the methods I know only recover some entities, as the example below where ">" is correctly coded but "ç" does not. It is…
-
13
votes6
answers10207
viewsOpen Multiple Bootstrap Modals
As per bootstrap documentation: Modal Multiple modes are not supported and require additional code. I am trying to open various modals within others, these modals are called external files with…
-
13
votes3
answers1482
viewsWhy does Visual Studio suggest simplifying names? - IDE0001 Name can be simplified
Visual Studio 2013 suggests name simplifications, as you can see below: The suggestion is: IDE0001 Name can be simplified Translation : IDE0001 Name can be simplicate Example: var obj = new…
c# string visual-studio-2013 visual-studio encoding-styleasked 9 years, 5 months ago Guilherme de Jesus Santos 6,566 -
13
votes2
answers141
viewsHow to Lambda in Extension Methods with Multiple Lists?
There are the following Objects: public class Objeto1 { public List<Objeto2> PropObj1 {get; set;} } public class Objeto2 { public List<Objeto3> PropObj2 {get; set;} } public class…
c# .net entity-framework linq lambda-expressionsasked 9 years, 5 months ago Jedaias Rodrigues 6,718 -
13
votes4
answers590
viewsInteraction between forms?
In my program, I inserted a button and a panel. When the button is clicked, logic inserts another form into the panel superimposing the form initial. In the form2 that appears has a return button,…
-
13
votes2
answers13163
viewsHow to make the Genericdao class using Hibernate?
I wanted to know how to make a generic Dao of a project, using Hibernate and JPA in java. All this to not be mounting a DAO as follows for each object that will persist in the bank: public class…
-
13
votes2
answers1261
viewsDetect extended click, javascript
Assuming these types of click: 1 CLICK 2 CLICKS IN A ROW EXTENDED CLICK i know how to detect normal click and dbclick but how to detect extended click? that click you click and secure for X time for…
javascriptasked 9 years, 6 months ago Elaine 2,770 -
13
votes5
answers169
viewsWhat is the fastest is_null($y) or $y == null?
What’s the fastest is_null($y) or $y == null?
phpasked 9 years, 7 months ago Paulo Costa 3,976 -
13
votes1
answer678
viewsCalling C functions from R
I need to optimize some functions that are in the C language, but using the packages of genetic algorithms in R. Is there any way to call C functions in R? In Matlab I know that there is this…
-
13
votes2
answers2440
viewsHow does Math.sqrt work in javascript?
All right, I know it returns the square root of a number. But, what numerical operations it does to bring this result?
-
13
votes4
answers2688
viewsHow to add the ninth digit, fixed, using jQuery Mask?
How to add the ninth digit, in a fixed form, using the jQuery Mask? $('#telefone').mask('(00) 90000-0000'); This way I use is only optional.…
javascript jquery input mask jquery-mask-pluginasked 9 years, 7 months ago Marcelo de Andrade 7,261 -
13
votes3
answers515
viewsCompany can monitor everything employee does on work computer?
Tied to my case /questions/69324/skype-monitoramento I need answers that are based on something beyond the sense of achism, there are people who tell me that is provided for in the law. For example:…
-
13
votes2
answers54909
viewsEncoding utf-8 allows accents?
If we do # encoding: utf-8 in the first line of a Python program, we can make accents in the whole code?
-
13
votes1
answer1879
viewsHybrid Apps: when to use and what is needed?
With Hybrid Applications cross-platform gain development time, but have some doubts about the real need to use a framework. The most famous Phonegap, Ionic and Titanium are easy and friendly. But…
-
13
votes5
answers554
viewsError passing URL as parameter... Joeblogs & Htmlagilitypack
Main namespace ReaderXML { class Program { static void Main(string[] args) { var website = LeitorDeXML("http://SITE ORIGEM/").ToArray(); var total = website.Count(); for (int i = 1; i < total;…
-
13
votes2
answers641
viewsDoubts with relationships in Eloquent
Guys I’m making a belongsToMany to recover several Users that are related to a Item. It returns me in the all array Users correctly, but I need to make a hasOne of each User(created on the model…
-
13
votes1
answer161
viewsShould translation dictionaries use the original strings as keys?
I have already built some systems and multilingual websites, and in the tools I have known there seems to be a tendency to use the string in the application’s original language (usually English) as…
-
13
votes4
answers7944
viewsHow to take print (screenshot) from a web page?
I would like to know how to print a page, and save in image. Follow example for understanding:…
-
13
votes6
answers4694
viewsHow to make a stopwatch continue counting after closing the page?
I need to create a stopwatch that is started through a play, but wanted a solution, other than by SESSION, to let you count even if the customer closes the window or drops his internet, ie that is…
-
13
votes1
answer487
viewsChange the scroll of spring-security by bean
I’m using the spring-security to authenticate my user, until then beauty, now I want to be able to exchange the user’s role for managed bean, someone has an idea? Type I have several modules and…
-
13
votes2
answers255
viewsWhat would be the 'e' passed as a parameter in js functions?
What would be the 'e' that is passed as a function parameter? Ex.: function nome(e) { (instrução); } Does anyone have any material, or keyword for research that I can turn to to study a little more…
-
13
votes3
answers2379
viewsWhen is the controller needed?
I rarely use MVC for the simple fact that me it seems that each person uses their way, I know that the MVC came before the web, while reading these links I had a feeling that it seems that one…
mvcasked 9 years, 9 months ago Guilherme Nascimento 98,651 -
13
votes5
answers2967
viewsTake all the names and put comma to separate them
When I get the names and add them to a variable, I can’t separate them with a comma normally. has to be by comma and period at the end I can’t put each name in line break using It’s hard to explain,…
phpasked 9 years, 9 months ago Murilo Man 439 -
13
votes2
answers428
viewsIs it correct to use JS to make the effects of an HTML?
What I want to know is whether it is right to use Javascript/Jquery to do some button and screen effects, center the content horizontally and do certain tasks that can be done by CSS. The company’s…
-
13
votes1
answer447
viewsInstruction to add value to AX
What command/syntax to use to set the value 55d in the AX register?
-
13
votes3
answers2493
viewsHow to choose the highest value of an array?
I’m trying to use the function max, but I can’t hit. // variáveis da diferença salarial $saldev[0] = $_POST ["Tdate5"]; $saldev[1] = $_POST ["Tdate9"]; $saldev[2] = $_POST ["Tdate13"]; $saldev[3] =…
-
13
votes1
answer9507
viewsWhat is -Webkit-Transform? What is it for?
So, direct I find in Csss this -Webkit-Transform, but I have no idea what it is or what it’s for and God also does not know answer me: I would be eternally grateful if someone could explain me or…
-
13
votes2
answers531
viewsTranslation of the word flush
I am preparing reference material on functional programming using the language Ocaml and would like a good translation into Portuguese of the word flush, commonly found in the description of input…
-
13
votes3
answers13657
viewsHow to make a column occupy the rest of the available space?
I would like to put two blocks inside a div of parallel size, one with fixed size, and the other that fits exactly in the remaining space. For example : div#container { width: 50%; /* este tamanho…
-
13
votes3
answers1055
viewsIs there any performance gain when using ternary operator instead of a conditional operator?
What is the difference in performance using conditional operators and ternary operators? Is there any significant gain or the choice of use of ternary operators is unique to code simplification?…
-
13
votes3
answers2082
viewsDocumentation at the beginning of a project working alone
Studying object-oriented analysis and design I found various types of documents that are built before any code is developed. Among these documents are user Stories, use cases and several UML…
software-architecture project-management software-projectasked 9 years, 11 months ago SomeDeveloper 18,074 -
13
votes1
answer593
viewsAnti-aliasing algorithm in Java
I’m using the method setRenderingHints from the awt library to do anti-aliasing. The method provides a significant improvement in the rounded 2D objects. How does the algorithm work? What are the…
-
13
votes2
answers7111
viewsHow do I pass a parameter to another Scope with Angularjs?
I have a screen that contains a list of information, when clicking on some item I can get his number, for example: Item 5 of array. The problem is that on another screen I need to display the…
angularjsasked 9 years, 11 months ago Claudia Mardegan 357 -
13
votes3
answers8700
viewsTypeerror: not all Arguments converted During string formatting (Python 3.4)
I’m new to programming and I’m trying to do a simple code for an exercise to calculate a phone bill: t = float(input('Digite a quantidade de minutos gasta: ')) if t < 200: p = t * 0,2 if t >=…
-
13
votes4
answers452
views& Together with PHP operators and functions
What is the meaning of the use of & together with operators and functions in PHP because I checked in some libraries (example) and functions this use (I am aware of the use together with…
-
13
votes2
answers1520
viewsWhat are the benefits of using HTTPS?
Where I work, people always comment that they have to put HTTPS in the systems to make it safer. I’d like to know: On what the SSL makes a website safer? What are the types of attacks they avoid? In…
-
13
votes2
answers869
viewsWhat is Finally for in PHP 5.5?
PHP 5.5 implemented a feature (which I’ve heard exists in other languages) called finally, in the handling of exceptions (together with the try/catch) We have the following example:…
-
13
votes3
answers4364
viewsWhat are decimal, hexadecimal, and octal notation numbers?
What are decimal (base 10), hexadecimal (base 16) and octal (base 8) notation numbers? In the book the code is like this: <?php // numero decimal $a = 1234; // numero octal (equivalente a 83 em…
hexadecimal decimal numerical-representation octalasked 10 years ago João Paulo Vieira da Silva 1,933 -
13
votes5
answers41788
viewsHow to sort an array of objects with array.Sort()
Could I specify for the method array.sort(); What is the way of ordination? For example, I have an array of person objects, and person has name and number I wanted the sort to be done by name. How…
javascriptasked 10 years ago Leonardo Villela 1,620