Most voted questions
150,413 questions
Sort by count of
-
10
votes5
answers62952
viewsHow to remove edge of input and textarea from all browsers when clicked?
Just look at the image to get an idea: When clicked this edge with blue shadow becomes visible. I think it is standard of all browser. Some solution?…
-
10
votes3
answers10991
viewsHow to escape quotes in Postgresql?
I have a postgresql function function f_criaproduto(p_texto text), I have to go this way f_criaproduto(' meu produto é 'televisao' da melhor qualidade'). How can I escape the quotation marks in the…
-
10
votes2
answers275
viewsPerformance of string substitution
I need to do some bulk replacement operations with Javascript. For my specific problem, let’s assume that I need to replace a specific substring. I need to replace each occurrence of "blue" with…
javascriptasked 10 years, 11 months ago Oralista de Sistemas 23,115 -
10
votes4
answers40379
viewsHow to replace column text in SQL Server (tsql)?
I have a text column in SQL Server 2008 R2, which is filled with wrong typed text, in thousands of records. I would like to make a UPDATE replacing the wrong text with the correct one.…
-
10
votes5
answers1668
viewsHow to use a language other than Javascript in your browser?
Despite the enormous plurality of programming languages in various environments (desktop, server, mobile devices), browser continues to support one and only one language: Javascript. The reason for…
-
10
votes4
answers13342
viewsMultiple lines of text or code with method ". html()"
When using the jQuery method .html() to apply multiple lines of text or HTML code to an element, the same error: Example in Jsfiddle $(function(){ $( '.qualquerClasse' ).html( ' conteúdo de 3 linhas…
-
10
votes5
answers1657
viewsHow to add class to the next element when clicking the button?
I have a list of several items, and just above that list will have two buttons, "next" and "previous". I wanted when the user clicked next, for example, to add a different class to the next item in…
javascriptasked 11 years ago Odair 1,653 -
10
votes5
answers16498
viewsHow can we not apply opacity to a child element?
I have a div with applied opacity, but this div has child element. I don’t want to apply opacity to those child elements, I would have some way of solving that? Example: http://jsfiddle.net/qSsC3/1/…
-
10
votes5
answers98198
viewsHow to display the result of a query on an PHP html page?
How can I display the results of a query in a table of an html page? Below is what I was able to do. However, the code only shows the first record. include("conectar.php"); $sql =…
-
10
votes2
answers2308
viewsIntrinsic function to convert numeric to string
I’m trying to find out if there is any intrinsic COBOL function to convert a numeric date to string without using the clause REDEFINES: ( PIC S9(04) COMP) If yes, it is more expensive than using the…
-
10
votes3
answers269
viewsHow to prevent a method from printing data when calling a third-party API?
I’m using an API and in some cases a feature of it prints on the screen when there are errors (api errors, not PHP). I happen to call this API via AJAX and it breaks my code since the request ends…
-
10
votes2
answers3444
viewsHow to count the amount of occurrence of a substring within a string?
I have the following return: EXCEPTION,Classexception,EXCEPTION, I’d like to take the amount of times that String appears EXCEPTION using Regex. I used the following code:…
-
10
votes3
answers3229
viewsFind certain dates in VARCHAR field in SQL (Mysql)
I have the following condition: WHERE sv_users.userDataNascimento LIKE '%95%'; And this condition searches a date (11/12/1995), of the kind VARCHAR and not Timestamp, one year ending with the…
-
10
votes3
answers2292
viewsHow do I leave a "Default" language on Github?
This is a project done in Ruby, however, how I used the Twitter Bootstrap, it presents as the predominant language Javascript, because it is the language that predominates in the repository. It is…
-
10
votes2
answers5010
viewsHow to correctly position the Abels in the barplot?
I am not able to correctly position the names in a barplot of R, because they are very extensive. My data is this way: The names end up appearing this way: fator_tecnologico_labels <- c(…
-
10
votes3
answers471
viewsAdd custom timezones in PHP?
TL;DR Is there any way to add timezones customized in PHP? Goal I would like to be able to register a schedule (using new DateTime(...)) with an arbitrary time offset value (Timezone), for example…
-
10
votes2
answers3697
viewsHow to schedule releases on continuous integration with Jenkins?
I’m using the Jenkins tool for continuous integration, it’s working normally. I tried to leave scheduled to build every 3 hours, so I checked the checkbox "Build periodically" and left as follows: *…
-
10
votes1
answer3389
viewsHow to receive a notification whenever there is a new record in a database table?
I need to receive a notification whenever there is a new record in a particular database table, which I can do to receive ? If I use one Trigger Mysql will not work when I change database. If I make…
-
10
votes1
answer946
viewsHow to get multiple of some PHP value?
I need to do a search in the database and according to the value found within a range of values must return a specific value. For example: if you find the values 1 to 4, you must return 1, finding 5…
-
10
votes1
answer1361
viewsHow do I use Freetds with MAMP on Mac OS?
I need to use the methods mssql_ of PHP and have always done so using the Freetds in the native Apache of MAC OS. What happens is that right after you upgrade to the OS X 10.9 (Mavericks) I started…
-
10
votes3
answers17841
viewsImporting library in Android Studio
How to import a library into Android Studio? I have a project on Eclipse that uses libraries: zip_file library downloader_library needed to add APK Expansion Files to an application that has more…
-
10
votes1
answer508
viewsHow does the secret of Bittorrent Sync work?
I’m looking for a completely Open Source alternative to Bittorrent Sync, and it seems we have almost every element there: Sparkleshare would do what they wanted to do, just missing the direct…
-
10
votes2
answers1364
viewsSqlite error on Android : error code 11: database disk image is malformed
I have a version of the App in production where it is allowed to mark a message as favorite, only that this totally random error happens provoking corruption of the database and resulting in…
-
10
votes2
answers603
viewsHow to get the identity of an object in Javascript?
Several languages have a means of obtaining the "identity" of an object, i.e. an [integer] number that is unique to each object, such that different objects have different identities. Examples: Java…
javascriptasked 11 years, 1 month ago mgibsonbr 80,631 -
10
votes5
answers2566
viewsIs it recommended to use Linq instead of SQL?
To avoid string abuse and avoid code injection problems can be a good practice using the Linq. I can also imagine, for example, that it’s slower. Who ever used the Linq to communicate with the…
-
10
votes1
answer15267
viewsHow to generate a full value in Portuguese in MS Office Excel?
In an Excel spreadsheet, having a cell with a numerical value, how to calculate its value in full? For example, in the cell A1 have the value R$ 587,32. I need a function that passes the cell as…
-
10
votes1
answer236
viewsHow to make Dbunit recognize the POLYGON data type of Postgresql?
I have the following dominance of the type polygon in the database: CREATE DOMAIN "global".polygon AS pg_catalog.polygon; The following table using this domain: CREATE TABLE user.area_geom (…
-
10
votes3
answers7413
viewsHow to customize error pages on an ASP.NET MVC system?
How to display a friendlier page when an error occurs in my Asp.net mvc application (not that yellow page)?
-
10
votes4
answers1546
viewsHow can I optimize a recursive method for finding ancestors?
I have a class Pessoa who owned relationships for his father and his mother (these at any time may be null). On a particular piece of my code I need to find out if one person is an ancestor of the…
-
10
votes5
answers2222
viewsWhich libraries to develop a Restful API in JAVA?
I’m a beginner in java and would like to create a RESTFUL API but I don’t know which library to use or how to use it. Can someone refer me good tutorials or some libraries for study. I would like to…
-
10
votes2
answers1509
viewsMatplotlib + Latex: Writing Text on the Axes in English
Let’s start from the beginning, the versions I have are: Ipython: 1.1.0 Matplotlib: 1.3.1 Latex: pdftex 3.1415926-2.4-1.40.13 (Tex Live 2012/Debian) OS: Ubuntu 12.04 I want to plot what is below, in…
-
10
votes1
answer496
viewsIntegration between Alfresco and Liferay to use Alfresco as a document library
I have the need to create a public interface that allows access and download of files available in Alfresco Share. I’ve been trying to do this using the existing integration between Alfresco and…
-
10
votes3
answers3264
viewsInvert the order of a jQuery widget list
How to reverse the order jQuery iterates an array of elements? In this case what I would like is to invert the contents of the items within the array. For example: <ul> <li>Item…
-
9
votes1
answer55
viewsWhat is the default for naming modules (fonts) in Python?
In Java we have the custom of creating fonts with the first uppercase letter for example: Carrinho.java and DetalheCompraFragment.java. But so far I have not found a standard for naming modules in…
-
9
votes4
answers150
viewsWhat regular expression to use to replace symbols in a string?
I got a string, just like "1x2,4÷4" and I want to replace the x for *; to , for . and the ÷ for / using the replace javascript. Which regular expression I would need to use to make this replacement?…
-
9
votes1
answer271
viewsWhy does "parseint(0.0000005)" return "5" in Javascript?
Again, Javascript shows me a show of horrors magic and this time I want to know why this unexpected behavior while using the parseInt. Why parseInt(0.0000005) returns 5 and not 0? How I get around…
-
9
votes0
answers259
viewsWhat is the relevance of category theory to computer science?
I’m studying a little about functional programming and not infrequently I end up coming across people who talk about Category Theory, which makes me think it might be something with some importance…
functional-programming computer-science category-theoryasked 3 years, 9 months ago Luiz Felipe 32,886 -
9
votes1
answer74
viewsA function created within another function is created with each call or persisted by reference?
In the call for the declaration const minhaFuncao = fora(), i am storing the function execution result fora, that in this case would be the function dentro in minhaFuncao. In this case, am I…
-
9
votes2
answers146
viewsIn what context is the state machine pattern indicated?
I have been researching some state machine implementations and would like to know in which situation the state machine fits and what benefit to use it?
-
9
votes2
answers304
viewsWhat are the differences between match and switch in PHP8?
PHP 8 looks like have already been launched, with a series of changes and new things. Among the changes, they created the expression match. I saw that she reminds a little of the old and traditional…
php characteristic-language php-8 pattern-matchingasked 4 years, 1 month ago Wallace Maxters 102,340 -
9
votes1
answer144
viewsWhy Arrays and Functions are Objects?
I learned that objects store properties and methods: let objeto = { propriedade: "valor da propriedade", metodo: function() { return "retorno" } } But I see sites calling functions and arrays of…
-
9
votes2
answers287
viewsWhat precautions should I take when naming a Python file?
It is quite common to see problems generated because the Python file was named after a library. # requests.py import requests response = requests.get(...) This code snippet would generate the error:…
-
9
votes1
answer941
viewsWhat is the difference between Object.assign and spread Operator?
What is the detailed difference of using Object.assign and the Operator spread (...) for spreading properties of objects? For example, when editing an object for new values, it is the same output:…
-
9
votes1
answer328
viewsWhat is the difference between using appendchild and insertAdjacentHTML?
In a code from which I will have to add an element within a DIV. What’s the difference between first creating the element and adding it to div through the appendchild and doing…
-
9
votes1
answer197
viewsDeno and Node.js - Compatibility
The creator of Node.js has developed a new Javascript platform called Deno. The code written for Node.js will be compatible with this new platform? There is a Issue open about it, but I didn’t quite…
-
9
votes1
answer1543
viewsWhat exactly is "Clean Architecture"? How and where to use?
I have seen several times in replies and in other pages the term Clean Architecture. What exactly is this? How was it created? Where and how should it be used? There are alternatives or…
-
9
votes0
answers94
viewsHow to use the AWS SDK C++ Xray in a "Layer" implemented in C++ of a Lambda AWS in Python?
My team implemented a Pipeline using Computer Vision (Opencv) and a DNN (Neural Network) in Tensorflow and Keras using C++. This Pipeline is an AWS "Layer" used by a Lambda Function implemented in…
-
9
votes1
answer390
viewsWhat is the difference between Local Storage, Indexeddb and Websql?
I have a habit of using Local Storage to store JWT, I would like to know the difference between Local Storage, Indexeddb and Websql and when to use one or the other.
-
9
votes1
answer191
viewsWhat is Borrow Checker?
I was reading a little bit about Rust and I came across that term, I’d like to know: What is Borrow Checker? Is there any connection with Counting? What would be the translation for this term in…
terminology characteristic-language garbage-collector rustasked 4 years, 11 months ago Denis Rudnei de Souza 3,686 -
9
votes1
answer261
viewsButton inside a clickable card
During development I saw the following situation: Where the card is clickable and leads to the user stock, but inside the card has an inactive button, that is, the user will usually click the button…
uxasked 4 years, 11 months ago Felipe Duarte 6,284