Most voted questions
150,413 questions
Sort by count of
-
4
votes1
answer229
viewsPhpstorm , How to change the user name?
Every time we create a new file(file) it gives us a commented header with our username. How do I change the User name? I searched everywhere in the tool and could not find! <?php /** * Created by…
-
4
votes2
answers2001
viewsPython Basic Request
How can I make a basic Python request to a Webserver ? I’m trying, but without success. Desire in get, in the simplest way.
-
4
votes1
answer5659
viewsGenerate csv output of python code
I hope you can help. I’m new to python and my question is this. I created a regex extracted from a file in csv the parts of the text I want. But I want to save the output of this function in csv to…
-
4
votes1
answer857
viewsVarchar or int for "type" fields
I have a column guy with 6 options to save in the bank, it is better to save the string as varchar or as int and treat it in front? For example, when it is 1 in the bank, display certain string on…
-
4
votes1
answer42
viewsWEB Systems What is the best way to escape from Searchers and make it invisible
When it comes to WEB systems What would be the safest and most used way for it to become invisible to search engines? I know there are the "Goals" but I think there should be more reliable way…
-
4
votes2
answers4167
viewsUpload files with AJAX
I am unable to upload some files with AJAX. I need to send 3 files with dynamically generated inputs, so I didn’t use the Multiple attribute. Firing the event, I get to xhr.send(files), which does…
-
4
votes3
answers220
viewsAttributeerror: 'Qstring' Object has no attribute 'strip'
I’m making a small application in Pyqt4 to understand how it works. In a certain part, I’m using a callback function to display in a QLabel the text that is typed in QtextEdit. This text should be…
-
4
votes1
answer763
viewsHow to return the converted image to Base64 in Postman
I have a Web Service REST Server, need to traffic a web service image to the client, when the client requests a particular image, the web service does the conversion to base64 and send it to the…
-
4
votes3
answers1831
viewsHow to compare variables using Javascript?
I use a lot of variable comparison. Example: if (item[l].item[0] == 'tipoRescisao') { log.info('Tipo Rescisão: ' + item[l].item[1]) if ( (item[l].item[1] == (1)) || (item[l].item[1] == 01) ||…
-
4
votes1
answer131
viewsForeign key recording as null
Foreign key is writing as null. I have done several searches I could not find a solution. Could help me find my error. This is an example that I searched on the internet, if I can popular the…
-
4
votes1
answer6159
viewsjquery.inputmask mask with Real Currency values
I’m using the plugin jquery.inputmask for various types of mask in the imputs of my application and including for format coins. I’m using the following custom rule: <script> $(function() {…
-
4
votes2
answers833
viewsChange the quality of online video?
How do websites such as Youtube and Facebook offer different qualities for uploaded videos? Is there any specific tool/code to change the quality of the videos, or do they encode and save the video…
-
4
votes1
answer3294
viewsInvalid postback or callback argument
I’m having a mistake that came to nothing, I’m two days trying a solution to the same and so far unsuccessful. I have a form all made in webforms that when clicking the button to send the data is…
-
4
votes3
answers2680
viewsHow to iterate over a dictionary?
I have seen several ways to iterate over a dictionary. There is one considered standard?
-
4
votes2
answers119
viewsObject does not exist when one foreach is inside another, except during debugging
In my code I consulted 2 services and placed their results (objects) inside an array called deferreds. These objects have a property called results, which is another array. I need to take the first…
javascriptasked 8 years ago Wellington Fernandes 101 -
4
votes1
answer100
views -
4
votes1
answer1658
viewsIssues with accentuation when reading data from JSON file
The method below is extracting data from a JSON file, to fill a Dropdownlist. public static List<Uf> GetAll() { var client = new WebClient(); JsonSerializerSettings settings = new…
-
4
votes4
answers1225
viewsHow to block website and leave free only for some ips?
I would like to know how I can block my site that is under maintenance and leave free access to two ips, I’m doing this way , but it only leaves free for one. I want you to be free for both of you .…
-
4
votes1
answer55
viewsHTML5: Problem with operator not in the Pattern attribute of input text
I want to make input text allow only the following strings: site.com; site.com.br; site123.com123.br; site-123.com.br. But never: site-123-.com.br My expression was like this:…
-
4
votes0
answers45
viewsFramework for working with websockets in java
I need to present some frameworks in java that use JSR356 but I can’t find current information of which is most used and why.
-
4
votes1
answer44
viewsWhere’s the mistake I can’t see?
What happens in the jeans_status and jeans_opcao it works a beauty more in the first if It doesn’t work, it goes into the if without checking whether the imagem_status == 1 and the imagem_opcao ==…
-
4
votes3
answers533
viewsHow to compare Mysql to an array?
I have to make a comparison MySQL with an array of numbers. For example: I have a array whole-assed: $inteiros = array(); And I have to return the ids of my class table with this array, thus: SELECT…
-
4
votes1
answer279
viewsBuild Accumulated Density Probability using R
I have this two-column date frame (Y and X) With the package quantreg I can estimate the amounts of Y given x. Done this I’m not managing to build the CUMULATIVE Y conditional density function.…
-
4
votes3
answers759
viewsHow to style a select with Javascript only without Jquery?
I know that the jQuery UI has the method selectmenu(), as it would be with pure Javascript ? Not just the button select where will open the options, but also the window containing the options,…
javascriptasked 8 years, 1 month ago MagicHat 12,262 -
4
votes2
answers1355
viewsIs there a way to redirect to another page by clicking on a div?
I have a div: <div class="col-lg-4 col-sm-6"> //Essa aqui <section class="panel div-border-red"> <div class="symbol red"> <i class="fa fa-eye"></i> </div> <div…
-
4
votes3
answers494
viewsInstalling ruby with rbenv
I have a question, I installed the ruby in Ubuntu, but it was installed without the rbenv, has any problem installing it now, or it will be necessary to remove it first?…
-
4
votes1
answer122
viewshttps (webservice) requisition from the São Paulo Public Treasury
I’m trying to make a request https the Webservice of the São Paulo Public Treasury, but I don’t know where I’m going wrong. This is the address: http://www.fazenda.sp.gov.br/contas/webservice.shtm…
-
4
votes1
answer177
viewsReadfile function by dropping PHP session
I had a problem with file downlod, where the session was closed when several download occurred in a short time (less than 1 second) and the same did not occur when the download was slower. (This…
phpasked 8 years, 1 month ago adrianosymphony 568 -
4
votes1
answer2113
viewsHow do I exchange text in unity3d with a script I can’t remove?
I have a problem in unity3d and I don’t know how to solve. I have a certain script using UnityEngine; using System.Collections; using UnityEngine.SceneManagement; using UnityEngine.UI; public class…
-
4
votes1
answer174
viewsDoubt about float field query (ruby on Rails with mysql)
Hello, I have a question regarding the database with Rails. If I declare a field to be "float", when I do the query, I need to use the ". to_float" so that Rails understands the type of this field?…
-
4
votes1
answer545
viewsError while running Eclipse after Windows 10 installation
When using the Windows 8 Eclipse worked normally now that I installed Windows 10 every time I try to execute I have this message:…
-
4
votes2
answers1010
viewsDoes the use of traits replace the role of multiple inheritance?
What happens if I use in a class two traits different, and both have a method with the same name, but different implementations in this method?
-
4
votes2
answers2570
viewsError "Class 'Mongodb Driver Manager' not found"
At the time of use of the Mongodb, along with the Laravel it returns the following error: Fatalerrorexception in Client.php line 61: Class 'Mongodb Driver Manager' not found…
-
4
votes1
answer75
viewsSql group records
I have the following appointment: select T1.dt_producao, T1.cod_turno, T1.cod_periodo, CASE WHEN T2.TP_PALLET = 'DZ' THEN sum(T1.QT_PROD* T2.QT_EMBALAGEM*12) ELSE sum(T1.QT_PROD* T2.QT_EMBALAGEM)…
-
4
votes2
answers7992
viewsFind and Replace Multiple Words Inside a File
I want to develop a script which will replace any words in filing cabinet. I know what I can do with the command(s) below: $ tr 'ABC' '123' < arquivo.txt > novo-arquivo.txt or $ sed…
-
4
votes2
answers1652
viewsInsert "div" html element with javascript
How can I enter a div according to its class or id? Exemplification <div id="main"> </div> <div id="about"> </div> <div id="more"> </div> They are stored in a…
-
4
votes1
answer271
viewsQuadratic Curve Estimating Minimum Square using R
I have a quadratic model that I want to run a simple multivariate regression using Minimal Ordinary Squares. This is my code: df<-data.frame(rnorm(50),rnorm(50)) x_Square<-df[,2]^2…
-
4
votes2
answers3309
viewsCheck if difference between dates is greater than X minutes in PHP
First of all, I’ve done a lot of research here on the site and I haven’t found any more in-depth examples, just basic questions/answers on how to get the difference between dates, what I was able to…
phpasked 8 years, 1 month ago celsomtrindade 8,038 -
4
votes1
answer13034
viewsNameerror: name [name] is not defined
I need to do Python programming to know the CG percentage in a DNA string... maior = 0 dnaMaior = "" while True: dna = input("Digite uma sequencia de DNA: ") if dna == "Z" or dna == "z": break else:…
-
4
votes1
answer1650
viewsSearch for relationship whereHas Laravel?
I have a Query in my Criteria that returns the id belonging to the relationship amid models if ($this->request->has('notin_portal')) { $portal = $this->request->get('notin_portal'); if…
-
4
votes1
answer3172
viewsHow to concatenate data into sql server
I have a field where the date and time is recorded: '2013-06-13 00:00:01' and '2013-06-13 11:59:59' I want to make an appointment by passing the date and a fixed time: CONVERT(VARCHAR(10),…
-
4
votes2
answers833
viewsVarchar or Datetime?
I always save my bank dates using the type datetime. When displaying these dates in an application, I do something like: select Convert(Varchar, GETDATE(),103) Data Upshot: 04/10/2016 I’d like to…
-
4
votes4
answers3012
viewsHow to convert scientific notation to full number string
What php function should I use to do this type of conversion? Convert: 1.3388383658903E+18 to: 1338838365890273563 I tried that, but it didn’t work: echo sprintf(sprintf('%%.%df', 0),…
-
4
votes1
answer597
viewsidHTTP Post Response html hacked
Buenas. I’m doing a Post via idHTTP where the result comes in a StringStream. The problem that this result is coming in half. In case, by cutting the response html. There Is A Way To Buffer This…
-
4
votes1
answer568
viewsHow to set up an app to launch in Google play and Apple Store
I’m developing an app using Ionic/Cordova and I came up with some doubts, are they: Must do some kind of specific configuration in my file Package.Json to have no future problems when generating a…
-
4
votes1
answer95
viewsHow to create C program that can use parameters?
I’m studying C, and now I’m trying to pass parameters. Well, although I think I did, it’s making a mistake when I try to use that variable... I explain, the char "argument_value" that step on the…
casked 8 years, 1 month ago Roberval Sena 山本 492 -
4
votes1
answer456
viewsSave tts as audio file
How can I generate an audio file from a TexttoSpeech to share with other services (sms, Whats, messenger, ...)? I created this function to share private void shareAudio() { Intent intent = new…
-
4
votes1
answer858
viewsIntegrating HTML + Node.js with Angular.js in "Real Time"
I’m having some problems automatically updating a code in Angular.js within my site. The integration is Node.js with HTML, integrating with Angular.js. But I always have to give F5 on the page for…
-
4
votes1
answer2263
viewsWhat is the purpose of contentDescription?
I have in my application I have several Warning's as stated below: [Accessibility] Missing contentDescription attribute on image Imagery I did some research and found that it’s about the…
-
4
votes1
answer195
viewsHow to optimize html and css files?
Optimization does not compress html and css files. After compressing them into minifier html and minifier css and putting the following code in htaccess(see below) still not accusing the compression…