Most voted questions
150,413 questions
Sort by count of
-
9
votes1
answer1403
viewsSave image link as file in Storage location
How can I save a link (http://example.com/img.png) in the file format, which in this case is . png, using Javascript and saving in the local $localStorage angularjs?…
-
9
votes3
answers1244
viewsHow to make a NOT IN SQL?
I want to get all pilots who have never performed flights on route 12345, I have tried with NOT IN and so on: SELECT pl.id FROM Piloto pl, Voo v, Rota r WHERE pl.id = v.id_comandante AND pl.id =…
-
9
votes2
answers331
viewsHow to implement a "slim" controller
I am working on a prototype of an ASP.NET MVC application, where I want to leave my controller lean (with the least amount of code possible), for such, not making business logic in it, but rather in…
-
9
votes2
answers3718
viewsHow do I create my own package/project for "Composer" on github?
I never distribute a library using a repository with commiserate, I have no experience with this, what I tried to do was to create a folder structure like this: ./ |-- composer.json |-- src/ |--…
-
9
votes1
answer234
viewsWhat is the algorithm for distributing the paragraphs?
I am reading a specific portion of the Bible per week based on programming published on the website Jw.org. I made a javascript script that takes the paragraphs and verses of each chapter and shows…
-
9
votes1
answer262
viewsHow could I improve the code of this paging control?
I set up a pagination control for a blog I’m building, but I’m not sure I did it the right way, I tried to copy the pagination control of the Stack Exchange sites. Could you look around and tell me…
-
9
votes3
answers156
viewsRegular expression to reorder string
I have the result of a query with several joins, and in a row I have the concatenation of 2 groups. The line returns me a string as: 1,4|a1,b4. What I need is to regroup ID and Valor as follows:…
-
9
votes2
answers1768
viewsWhat is and what is php.ini for?
It may be a simple question but I’d like to know what the php.ini and its use for a website/system. If possible, I would like good references (not always the meeting) that can help in the…
-
9
votes2
answers355
viewsDownload file by mobile device
I have a link, and by clicking on this link he downloads an image. So far so good, plus when I access from some mobile device I can’t download this file, someone has some idea or solution to solve…
-
9
votes1
answer4061
viewsWebservice Delphi Soap with authentication
I’m using Delphi to read a web service from an insurance company. It happens to come in XML format in SOAP. I import the WSDL I can get the methods. But to connect to the Web Service I have to send…
-
9
votes2
answers5484
viewsApply css to all elements except some specific ones
How to apply padding to all a. button except those who have a span, I don’t know how to do it, but an example: a.button:not(span)
-
9
votes1
answer1033
viewsGet index back to front
Imagine I have the following string: string texto = "Stackoverflow em Português"; If I want to know the index of the first space, just: int index = texto.IndexOf(" "); But in this case I have two…
-
9
votes3
answers432
viewsJavascript - Thread, Asymchronism, Ticks
Situation Studying on Thread, I understood that they are lines of execution within a process. Studying on Assincronismo em javascript, I understood that it does not support multiple Thread, but has…
-
9
votes1
answer695
viewsWhat is a Prototyping Language?
Reading an article on the Internet, I came across the following excerpt: Python, for its more generalist proposal, is a great choice as language for prototyping of systems built in, say, more…
-
9
votes4
answers1959
viewsReceive json data in PHP
I’m having trouble receiving JSON data in PHP to save to the database, and this data is sent from a python script, have tried the json_decode using the variable $_REQUEST, but unsuccessfully, when I…
-
9
votes3
answers8723
viewsDifference between "Attribute" and "Instance Variable"
Reading some books and articles about introduction to Java and OO I realized that these terms are not well defined. Looking deeper I found different definitions in different sources on the subject.…
-
9
votes1
answer921
viewsDesktop development with Electron
With the growth of web many people have abandoned desktop development, but some interesting technologies have emerged, such as the Electron: Electron allows you to create desktop applications with…
-
9
votes2
answers326
viewsIs the term ASP.NET MVC correct?
Is it correct to use the term ASP.NET MVC? It seems that they are two different things, like, in MVC we no longer use components of ASP.NET, we use either HTML or Razor or both? I know that besides…
-
9
votes4
answers12732
viewsMultiple return in C/C++
Is it possible to return multiple values? For example: umafuncao() { int x = 1, y = 2; return x,y; } void main() { int a, b; a, b = umafuncao(); } I’m asking this question because I built a code…
-
9
votes1
answer3112
viewsDebug and Release mode in Visual Studio, what is it for?
In my Visual Studio I’ve noticed that there are two configurations that I can’t understand what they’re for, it’s them Debug and Release, is part of the option Solution Confugurations. Could someone…
-
9
votes2
answers5074
viewsWhat is the use of 'SELECT 1'?
I am making a query using NOT EXISTS on a college job. The situation is as follows: 1.14 - Designing the CPF and the amount to pay in rentals by customers who have rented media and have not made any…
-
9
votes1
answer188
viewsHow to use Ivalidatableobject?
How to use the IValidatableObject not to validate a foreign key property during a registration? I want to validate only the foreign key in the edition.
-
9
votes2
answers2293
viewsWhat is the best (fastest) way to read a file from a web server?
I need to read a file on a web server, but when I need to store the content in an array of bytes it is taking too long. Does anyone know a faster way to do this? Follow my code. Thanks in advance.…
-
9
votes1
answer6417
viewsWhat is the best practice for a "back page" link?
Would you like to know what is the best practice for that standard button/link (back) in the applications? Today I use href="javascript:history.back();" however there are some considerations that…
-
9
votes1
answer526
viewsAdd bar at end of URL with Htaccess
I’m having a problem with my .htaccess, because I used to use .htm at the end now that I want to bar can not change. End use .htm query string: ##### Url Dinamica ###################################…
-
9
votes1
answer1625
viewsHow to include a C function in Python?
I want to use a function made in C. Example: I have a function int swap(){ printf("lista"); } And I want to call you by Python...…
-
9
votes2
answers2054
viewsIs it wrong to structure a form with tables?
Today with the HTML5/CSS3 and its numerous ways to align the elements (Divs) Is it wrong to structure a table form? Ex: <form action="action" method="POST"> <table style="width:100%">…
-
9
votes2
answers649
viewsWhen should I maintain or delete a branch?
I’m working on a project and I’m starting to use a versioning control system, Git. When I create a branch to introduce a new functionality and after its completion, I merge with the master. What is…
-
9
votes3
answers8386
viewsHow to create a task scheduler without using cron and without using wordpress
I need to create an automatic method to schedule my email marketing system, to trigger emails automatically, without using the browser. Today my system is using cron, and every time I enable it on a…
-
9
votes4
answers301
viewsHow to find hashtags in a string and store them in an array?
I have a content posting system on a particular social network of our company. When the user type the text with hashtags, I need to detect all of them and store them in an array. Example: Hi, I’m…
-
9
votes1
answer7446
viewsWhere does the expression "brushing bits" come from, and what is the equivalent in English?
"Bit brushing" is an expression that means, among other things, "worrying about low-level details", such as excessive and/or unnecessary optimizations. The English equivalent expression ("bit…
terminologyasked 9 years, 3 months ago Otimal 91 -
9
votes1
answer1165
viewsHow to avoid HTTP request overload when consuming REST API?
I have a REST API made with Laravel and a Webapp (which uses the features of this API) made in Angular.JS. My Webapp is a unique portal for registered users, but now I’m creating a website so that…
-
9
votes2
answers509
viewsHow to get the instance of the top/parent object in a javascript Function?
I am implementing a method extension library of prototype, and if I do it simply everything works perfectly as you can see in the simple example below: String.prototype.append = function(value) { //…
javascriptasked 9 years, 3 months ago Fernando Leal 9,770 -
9
votes1
answer2403
viewsWhat is Cultureinfo.Invariantculture?
I installed Resharper and on that stretch x.Id.ToString() he suggests changing to x.Id.ToString(CultureInfo.InvariantCulture). What is CultureInfo.InvariantCulture and why that way is better?…
-
9
votes3
answers3285
viewsWhat does -> mean in PHP?
I’m studying a little php to use in a job and came across a snippet of code on the internet that is used "->" in the code and I could not find any page dealing with this element of code. return…
phpasked 9 years, 4 months ago Jack Jibbers 157 -
9
votes4
answers31971
viewsCan I write Javascript in PHP?
I can write in php the tag html<script> and inside write the Javascript script </script> using echo? If I do for example echo("<script> var a = 'texto';</script>"); This is…
-
9
votes2
answers238
viewsHow to create operators in C#?
How to create an operator in C#? For example, There are operators like: * multiplicacao / divisao % percentual The question is: How can I create my own operator? For example: 100 ~ 2 = 200.8 Where ~…
-
9
votes3
answers197
viewsWhat is the function of this 'and' that is passed as a parameter?
The example I’m going to show you here is just to illustrate. I’d like to really understand how this one works e which is usually passed as a parameter in various functions that matches in codes…
-
9
votes2
answers6946
viewsWhat is the difference between Template and Layout?
I would like to know the difference semantic, visual and web development front-end and back-end. @Edit Related: Is there any kind of dependency? To have the layout you need to have the template?…
-
9
votes1
answer823
viewsWhat is the Null Object standard for?
I asked that question What is the purpose of Emptyiterator? at SOEN, because I found no answers here. Then I was told in a response from the SOEN of a pattern called Null Object. What is the purpose…
-
9
votes1
answer22992
viewsAccess Mysql with C#
I’m creating a Form simple that has 3 TextBoxes and 3 buttons and I want to save the information typed in Textboxes in a table. I’ve already created the querys all within a class acessoBD, but I…
-
9
votes1
answer200
viewsWhen and why to use window before functions?
There are numerous predefined Javascript functions that can be used with or without the object window as prefix. Example: window.setTimeout(function() { }); setTimeout(function() { }); What is the…
javascriptasked 9 years, 4 months ago Kazzkiq 11,493 -
9
votes2
answers5337
viewsHow to filter data from a JSON with JS?
Guys, wanted to know how to make a "select" inside a JSON file using JS. Example: I have a table below using data coming from a JSON file, but I wanted to make a filter so when click search, it drop…
-
9
votes1
answer939
viewsWhat is the name of the :: (double-point) operator in PHP?
In PHP, it seems that this operator :: has a Hebrew name (I don’t know why anyone would use Hebrew), Paamayim Nekudotayim. I always have a problem when I have to explain to someone the name of that…
phpasked 9 years, 4 months ago Wallace Maxters 102,340 -
9
votes2
answers1725
viewsMy image does not appear in Imageview
I’m looking for the image in Sdcard. It happens all right, open the gallery, select the image, but the selected image does not appear in Imageview. Code: public void btnFoto(View view){ Intent…
-
9
votes1
answer1492
viewsLibraries, interface, classes and methods
What’s the difference between libraries and interfaces? For example, on the line: import java.util.Scanner; The util would be the interface and Scanner the class? Or the util would be the library…
-
9
votes1
answer450
viewsWeb application for multiple people
I see many web applications that can be used for various companies. How do they do it? They create only one bank and share between these various customers? For example: Company A has 10 users and…
-
9
votes2
answers878
viewsHow to create a unique method to handle errors with ajax
I have a web application that performs several calls ajax. My college professor challenged me to create a generic message and combine the whole error treatment into a single function. Someone could…
-
9
votes1
answer1858
viewsWhat are the differences between Hashmap and Hashtable?
What are the differences between HashMap and Hashtable in Java? Which is more efficient?
-
9
votes1
answer375
viewsHow $.when() and . then() aligned works
In my studies of javascript with Jquery framework, I have come across several times with $.when() and .then() aligned. I would like to know how they work together. an example I came across was the…