Most voted questions
150,413 questions
Sort by count of
-
4
votes1
answer815
viewsNF-e query with response: "Paralyzed Service without Forecast"
I am doing in a project a NF-e XML search and download module together with SEFAZ. I made all the settings and pointed the requests to the Webservice informed on the website of the recipe but the…
nfeasked 7 years, 2 months ago Thiago Motta Barboza 382 -
4
votes2
answers2217
viewsDownload Nfe / NFEPHP
Good morning, I am consulting the Nfe of a certain client, so far so good, is returning the Key notes all right, but when I use the download option, the same returns 'Paralyzed Service without…
-
4
votes2
answers9830
viewsError encountering file: Roslyn csc.exe
I was using Visual Studio 2017 normally in an MVC project when it asked to update some packages via nuget. By doing this, the application no longer wanted to compile and presents the error below:…
asp.net-mvcasked 7 years, 2 months ago Italo Rodrigo 4,344 -
4
votes4
answers123
viewsHow to check if one String completes another?
would like to know if there is any function or operator that can check if a String looks like another in javascript for example: var str1 = "joao foi ao mercado"; var str2 = "joao fo"; What I need…
-
4
votes3
answers388
viewsIs it possible to offer return options in a method?
As far as I know Overload in the creation of methods, which are execution options, example(very simple), a method where you have the option to pass 2 or 3 parameters calling the same function:…
-
4
votes5
answers12287
viewsHow to perform SQL concatenation
I need to concatenate year and month. How could I do that? select cast(year(orderdate) as int) + ' ' + cast(month(OrderDate)as int) as Year_Month From sales.SalesOrderHeader…
-
4
votes3
answers390
viewsGet specific application memory usage
I need to get the memory and CPU usage of an application in c#, with the code below (using PerformanceCounter) did not get the same Task Manager value from Windows. PerformanceCounter cpu;…
c#asked 7 years, 2 months ago Marlon Pereira 465 -
4
votes2
answers166
viewsTablespace and data files on Oracle
A tablespace is a data file that stores multiple tables, such as a zip file? What is the relationship between tablaspace and data file?
-
4
votes2
answers381
viewscombine vectors per line in R by filling voids
I have two vectors: a <- c(1,2,3,4) b <- c(1,2) I want to create a matrix combining the vectors per line that looks like this: 1 2 3 4 1 2 0 0 That is, unite two vectors by rows and fill the…
-
4
votes0
answers388
viewsHow to compare two Strings in Haskell?
buscaLivroNome :: Livro -> Nome -> String buscaLivroNome [] _ = "Nao Encontrado" buscaLivroNome ((codigo,nome1,preco, autor, ano):resto) nome2 | nome1 == nome2 = "Livro Encontrado" | otherwise…
haskellasked 7 years, 2 months ago Alison Vieira 49 -
4
votes1
answer863
viewsMake a select and checkbox to have a behavior similar to radio button
Knockoutjs I’m having a hard time getting values from input within a table to compare it would have to be like a radio button, but there are two checkbox as can be seen in html down below: function…
-
4
votes2
answers2135
viewsKey code does not hold the ESC key
I’m doing a function, so that when you press a key on the keyboard, it performs another function. With the keys of letters, numbers and even Enter works. But the ESC key does not work. Has anyone…
-
4
votes1
answer198
viewsHow to perform a type of href with parameters on an image using Ionic / Angularjs
I have this snippet of code, which shows an image with a CSS on top: <img class="imagemCapa" image-lazy-loader="lines" ng-src="{{item.cadastra_oferta_foto}}" /> <div…
-
4
votes1
answer781
viewsWhat is the purpose of the Ternal lateinit?
I converted to the Kotlin a simple Fragment with any button. In the alternation, it basically looked like this: Java private Button btn; Kotlin internal lateinit var btn: Button What is the purpose…
-
4
votes1
answer275
viewsWhat’s faster: Stack or Heap allocation?
This question may sound elementary but it has given me a good debate with a co-worker. I whenever I can make allocations on Stack because for me the growth of Stack is constant in time. And already…
-
4
votes0
answers82
viewsHow to optimize the site according to analysis response?
I recently blogged for my wife, https://danielafolle.com.br/ which I am now working to optimize the response time of the site. I’m using the Pagespeed Insights Google to base if I’m progressing on…
-
4
votes2
answers1264
viewsHow to read a file with Kotlin?
I have a file .txt with some information I’d like to read to a string through Kotlin. I am a beginner in language and would like to know how to read a file with Kotlin.
-
4
votes1
answer682
viewsMaking the Insert in SQL Server in a float field?
I have the following problem in my code, I have a textbox that receives the value 0.900, only when I’m recording this value in the bank, it’s only recording 900, and I need you to record the 0.900…
-
4
votes1
answer95
viewsWorking with Sources C#?
I added the Dictionary Source to my project, now I need to convert it into a code dictionary, but it is bringing the null resource, someone can help me? List<string> dic = new…
-
4
votes1
answer3221
viewsError Call to Undefined Function split()
Everything in my code appears to be correct however the error: "Call to Undefined Function split()" is presented to me on the screen when running my script so I saw the error is on line 31 how can I…
-
4
votes3
answers1519
viewsWhat is 'final' in PHP?
I was at Github and I came across a class this way: final class Noticia { [...] } What use is this final reserved word? -Can only be used in classes?…
-
4
votes2
answers4695
viewsHow to change the value of a variable by function in Python?
How can I change the value of a variable through a function? Here’s an example of what I’d like to do: def func(t): t = 2 + 3 t = 7 func(t) print(t) The output of the print(t) function returns me…
-
4
votes2
answers1634
viewsSelect records smaller than the current date and time
What is the best way to query the database where the data is smaller than the current date and time SELECT * FROM agenda WHERE agendamento < '".date('Y-m-d H:m:s')."'…
-
4
votes5
answers8294
viewsCount characters while typing
I’m developing a sales website and it has a product Lettering and each letter costs R$10,00. How to calculate the value of a phrase the customer wants to buy? For example, if the customer wants to…
-
4
votes2
answers117
viewsStreamwriter class
My idea is to create a system to insert new employees through the method CadastrarFuncionario(), placing the class properties (ID, nome, CPF) inside a file names employees.txt. With the logic used…
-
4
votes2
answers1398
viewsJava to Kotlin conversion
One of the qualities cited about the Kotlin language is the creation of clean code, that is, code that is pleasant to read and that can accomplish its goal without curling. From what I saw, Android…
-
4
votes2
answers10833
viewsWhat are CRON JOBS and how to use them with PHP
Recently asked this question, but I found it kind of vulnerable to use the codes that were answered there, summarizing the best answer: Creates a Cookie with a Time and hides the button, after this…
-
4
votes2
answers2274
viewsHow to use an angular input checkbox using Array?
I’m trying to use a Array in a input[type=checkbox] with Angular 1, but was unsuccessful. angular.module('app', []) .controller("Ctrl", function ($scope){ $scope.campos = [{nome: "Brasil"}, {nome:…
-
4
votes4
answers7713
viewsHow to detect if a variable is null?
I’m trying to validate a simple form in Python 3 and I want to make sure it doesn’t record the information if the field nome is empty, but when I make a if to check whether the variable name is…
-
4
votes1
answer108
viewsHow to detect the mouse wheel?
I need to detect if the user is scrolling down the mouse scroll. I tried with the GetKeyState, but it seems that there is no way to pass as parameter the scrolling of the mouse scroll. I also found…
-
4
votes1
answer243
viewsRemote debugging in isolated environments
I work at a company doing bug fixes. Some clients deploy the system to computers on their internal network, so it is not possible to debug it remotely. Customers' computers usually have Internet…
-
4
votes2
answers2914
viewsHow to create object array in javascript?
I’m a beginner in javascript and would like to know if it is possible to create object array in javascript, if yes, how do I do that? I know that to create an object I need to do the following: var…
javascriptasked 7 years, 3 months ago CloudAC 562 -
4
votes3
answers1242
viewsUpdate based on a select
I have to update the field custo table pedidos based on the field valor table produtos_pedidos. Whereas the a.id table pedidos must be equal to the field b.id_pedido table produtos_pedidos. I’m…
mysqlasked 7 years, 3 months ago Hugo Borges 5,294 -
4
votes1
answer4507
viewsHttpwebrequest fault
I’m trying to consume a Webservice via Webrequest in c# and I just can’t get any response from the server. However, via Postman I get the answer using the same parameters. code: var JsonCliente =…
-
4
votes0
answers446
viewsCurl - PHP; How to make a looping in code?
I need that at the end of the code it deletes the downloads that were done and download again, which is repeated every 4 min. Every 4 min it runs this script of "download, delete and download…
-
4
votes3
answers640
viewsHow to resolve foreign key error 150 in Migration with Laravel?
I’m having trouble creating the foreign key in Migration. I am working with PHP, LARAVEL 5.3 and MYSQL. You’re making the following mistake: Below is my code: Table Migration categs class…
-
4
votes2
answers6024
viewsInitialize apache and mysql in windows 7 32 Bits using Xampp
I would like to initialize Apache and Mysql from Xampp as soon as the system is initialized, I did some research and found this: Service installation: In C:/xampp/apache double-click…
-
4
votes4
answers5886
viewsGit bash does not accept paste command
I wonder why git bash does not accept the Ctrl+V command. Every time I have to clone a repository on github I have to type in the whole url!
-
4
votes2
answers324
viewsWhat is the correct way to use Runonuithread() in Xamarin.Android?
When I need to update a field on the UI, I need to run this code on the UI thread? For example: I have to change my layout Activity. The code I’m using is this: RunOnUiThread(() => {…
-
4
votes1
answer264
viewsHow can I insert these characters into C#
How can I insert these characters into c# ┍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍┑ │ │ │ │ │ │ │ │ │ │ └╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍┚ I wanted to use them to create menus on…
c#asked 7 years, 3 months ago Amadeu Antunes 3,331 -
4
votes2
answers65
viewsIs it a bad idea to automatically versize classes with Jibx?
Where work we have a project (very old) that uses Jibx to generate some classes from schemas. These classes are generated in build logo os source do not exist in the project. Someone gave the…
-
4
votes2
answers137
viewsConstants of non-priminal types
In Java, constants are declared with sequences of Keywords static and final. When we have public static final int UM = 1; "makes sense to "call it constant, since its value cannot be changed. Now,…
-
4
votes4
answers211
viewsLike a tag on a table element with jQuery?
I have a simple table: table { border-collapse: collapse; } table tr td { border: 1px solid #000; } mark { background: yellow; } <table width="300px" border="1px" bordercolor="#FF0000">…
-
4
votes2
answers52
viewsAccess this inside event
How can I access the this concerning my object, when it calls an event? When the event is called, the this becomes the event itself, the window.event Ex: function Foo() { this.bar = function() {…
javascriptasked 7 years, 3 months ago Seu Madruga 2,481 -
4
votes1
answer849
viewsListing the most offensive querys in Mysql
I would like to know which are the most offensive queries in my database. I have already used the conventional methods "Show full processlist" and among others.
-
4
votes1
answer1072
viewsConfirmation dialog box using angular
How do I stop instead of calling this default browser Alert(addition confirmation) to call a screen set by me? or manipulate this Alert and be able to apply css.…
-
4
votes1
answer390
viewsSave cropped image with JCROP pro Bank
Hello! I am creating a user profile and to crop the image I am using JCROP. He cuts normally for me, but wanted to know how I do to save this result in the image and the bank accept this cut that…
-
4
votes2
answers124
viewsJava: Copy file with 0 bytes
I backup the database normally and save it to a folder using getRuntime(). exec(). I use a very simple method to copy this file using Filechannel. But it turns out that the copy gets 0 bytes. It…
javaasked 7 years, 3 months ago Maycon Stanguine 104 -
4
votes1
answer119
viewsCategories of Google query
I have a site with wordpress karanalpe.com.br. When I perform a search for it in google is returned the following information: When I perform a query for another site (earth for example) the same is…
-
4
votes1
answer838
viewsForeach within Foreach PHP
I have the following code: $row = $twitterusers->selectUserAll(); foreach ($row as $fetch) { $users[] = $fetch; } var_dump($users); It takes all users from the table, but when using the var_dump…