Most voted questions
150,413 questions
Sort by count of
-
4
votes1
answer421
viewsPython - How to get the output of running a . py file to a . txt
I have the following command: python3 -u teste.py > saida.txt 2>&1 This command causes the execution output of the teste.py be sent to this file saida.txt, case saida.txt does not exist it…
-
4
votes1
answer661
viewsHow to map json entities?
I wanted to know if there is any way to map json objects in React-Native. For example, let’s say I get the following json: { "data": { "lastUpdate": { "name": "Lala" } "dob": "01/01/2001" } } and I…
-
4
votes1
answer40
viewsHow to rollback the transaction using?
How can I give RollBack() in a transaction initiated in the declaration using? I know I can keep the transaction variable out of the using of SqlConnection, but it is possible RollBack() using the…
-
4
votes1
answer1043
viewsEncoding / Accents / Punctuation / R Markdown Symbols have gone
I have had a highly boring situation and the previous tutorials did not help. I recently switched computers, and now the R Markdown accents just got lost. Use windows 10 and the image file below is…
-
4
votes2
answers782
viewsHow to delete git branches that don’t exist on the remote
In my current project, I locally created several branches for local testing - all from master. Now, I have more than 20 local branches that don’t exist on the server. I wanted to clean up here, and…
-
4
votes1
answer209
viewsRemove all before the first occurrence of a word gsub regex
This is so simple but I can’t find the answer! I would like to delete everything before the first occurrence of the word "that" in a string: What am I doing: v <- c("blabla que 1", "blabla que eu…
rasked 5 years, 7 months ago Jessica Voigt 883 -
4
votes1
answer45
viewsstacked arrays
I gave a search through the internet and did not find answer for this my problem. Imagine that you have arrays stacked. For example: var array = [[[1, 2], [3, 4]], [[[5, 6], [7, 8]], [9, 10]]]; What…
-
4
votes1
answer1154
viewsHow to remove text from a string in a data frame column in r?
Hello! I have the following dataframe: Município (Código) Município Valor 2 1100015 Alta Floresta D'Oeste - RO 408765 3 1100023 Ariquemes - RO 477322 4 1100031 Cabixi - RO 126630 5 1100049 Cacoal -…
-
4
votes2
answers2567
viewsJunit Eclipse Error: "No test found with test Runner Junit 5"
I’m not being able to run my tests in Eclipse, below is a simple test that doesn’t work: import org.junit.Assert; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; class…
-
4
votes2
answers260
viewsHow do I edit a JSON within my database?
I have a JSON saved in my database. I would like to know how to edit this json using PHP and saving it again in the database. The json that would like to change the value is this…
-
4
votes1
answer50
viewsJoin scattered values on different lines in the same line
Hello, I have a database in which I used tidyr::spread which resulted in information spread across several lines. I would like to join the different lines in one. Example: df <- data.frame(obs =…
rasked 5 years, 7 months ago Jessica Voigt 883 -
4
votes2
answers2017
viewsPython - How to build a good function to check for internet?
The idea is to build a small function to check if there is an internet connection. I have a draft of a function that uses the library socket, but I do not believe that this is the most efficient way…
python-3.xasked 5 years, 7 months ago Matheus Leite 127 -
4
votes1
answer81
viewsDispose() - Resource Release or Memory Release?
After seeing the topic "I should always use Dispose?", I still had some doubts and would like to know more about. It’s no secret that it’s ideal to use the Using statement for objects Idisposable,…
c#asked 5 years, 7 months ago Victor Laio 2,043 -
4
votes3
answers1422
viewsClear string with Regex
I have the following array in PHP: [ "Opcao 01 - Frase aleatória - Menu Superior", "Opcao 02 - Outra Frase aleatória - Menu Su", "Opcao 03 - Mais 01 Frase - Menu", "Opcao 04 - Mais Frase -", "Opcao…
-
4
votes2
answers419
viewsGlobal variables Xamarin
Is it possible for me to create modules to add global variables in Xamarin? how I could create variables that can be accessed from anywhere?
-
4
votes2
answers238
viewsHow to search MYSQL search for word in title and then in text and sort by title first
I have a table with title and content and wanted to do a search to see if the term is in any of these fields. If you have, bring the results of the title first and then the content tabela…
-
4
votes3
answers982
viewsConcatenation in Ruby and . object_id
Hello, my friends! I was studying Ruby and reading the concatenation methods I noticed a slight difference. When I tested the first method using "+", I noticed that when using the .object_id it…
-
4
votes2
answers583
viewsWhat makes "group by 1" and why it causes errors in Laravel
I wonder what the group by 1 does in the MySQL ? I’m curious because I have a very complex query on MySQL and it works great, only I’m trying to use it in Laravel and I get an error in the return.…
-
4
votes1
answer1017
viewsCreate File Name with Day of the Week
I need to create a routine that does the backup with the name of day of week in order to comply with the following layout: Example: backup_01012019_second.7z The closest you could find that didn’t…
-
4
votes1
answer332
viewsSwitch to lambda/Drum a foreach
I have this method with a foreach inside [Route("")] [HttpGet] [ResponseType(typeof(List<MarkupListResponse>))] public IHttpActionResult Get(int resellerId) { var catalogs =…
-
4
votes1
answer232
viewsfread(); problem in implementation
I have a simple problem. I can use the function fread normally to work with audio processing in C. In case I have 2 codes. The first reads a file . WAV (with fread) and saved in a .CSV. file This…
-
4
votes1
answer154
viewsProblem with exporting to Excel using C#
I am exporting a list to excel, it occurs that in one of the fields, "fiscal note number content" and very large, excel tries to format it, generating special characters. Is there any way to select…
-
4
votes1
answer172
views -
4
votes1
answer1351
viewsToast materialize
I am trying to implement a Toast (code below), however, there is no result when clicking the button. I don’t know what I might be doing wrong. <div class="row"> <button id="btn"…
-
4
votes1
answer907
viewsWhen to use the.call function?
Dieferenmente de lapply, do.call applies a function across a list (which is also a data.frame). Consider the loop for down below: set.seed(123) for (i in 1:6) { assign(paste('var', i, sep = '_'),…
-
4
votes1
answer65
viewsHow do I make a script work in a specific browser?
How do I make a script work only in a specific browser, for example: that works only in Chrome? And the opposite: block the script from working in a specific browser? What do I have to add to the…
-
4
votes2
answers624
viewsWhat is the function of the <embed> and <Object> tags in HTML5?
In the explanation on the website https://www.w3schools.com/html/html_object.asp explains how to use these tags but both do the same things, so why use one or the other they have something…
htmlasked 5 years, 8 months ago user139915 -
4
votes2
answers1253
viewsC program executing commands in cmd
I am wanting to create a C executable that opens the prompt and execute commands through it, the executable is a solution to the problem "ethernet does not have a valid ip configuration". I’ve even…
-
4
votes2
answers250
viewsHow to select strings that start with a given word
I’m manipulating a dataframe on R v.3.5.2 and would like to know how I create a new variable called ES_1_4 which has only rows in the column Pathways which has the starting string as its value…
-
4
votes1
answer155
viewsHow to stop the SQL Server service using C#
I wonder if it is possible to stop SQL Server using C lines of code#. I have a C# application and would like to add a button to stop the SQL service or the instance, so I can work with the files.…
-
4
votes2
answers422
viewsOmit passing of parameter
I have the following method that contains the second declared parameter post(path:string, body: Object = {}){ ... } And here the call of the same with the omission of the second parameter…
typescriptasked 5 years, 8 months ago renanvm 3,797 -
4
votes3
answers103
viewsNullable property in C#
I was looking at some tutorials and suddenly I saw this property public Nullable<int> Id {get; set;}. What it means and when I would use it?
-
4
votes1
answer401
viewshow to change the display of div by js?
For some reason that I do not know this time the browser does not want to render the code... basically I need to change the display: nome of div for display: blockthrough javascript. botaoSticky =…
-
4
votes1
answer4350
viewsDistributed systems (advantages and disadvantages)
What are the advantages and disadvantages of a distributed system?
-
4
votes2
answers1250
viewsHow to close menu by clicking outside or anywhere on the page?
Could someone help me get this menu to close when clicking outside, or anywhere on the page? 'Cause it’s closing just by clicking .button menu.…
-
4
votes3
answers78
viewsHow to style classes initiated with . fa-?
I’m using the Fontawesome in the React and to change the color of an icon you need to change the color in the icon class. See an example below: .fa-drash{ color: #ff0000; } The bottom follows the…
-
4
votes1
answer2524
viewsHow to remove an object from an object array within another object array, in javascript?
Hello, I need to return the objs array by eliminating the objects that have the req key === "test" inside the c object array. Thanks for your help! const objs = [ { a: "a", b: 1, c: [ { send:…
-
4
votes1
answer164
viewsWhat is each of the "data types" of the DOM?
I’m studying about the GIFT and I came up with a question regarding his data types, which are: document element nodeList node attribute namedNodeMap I didn’t really understand what each type of data…
-
4
votes1
answer173
viewsText transition effect
I would like to make an effect that when the user hovers over the frame the background would turn white, coming from left to right first, and once that effect was complete the text would also appear…
cssasked 5 years, 8 months ago Lucas Granvilla 444 -
4
votes1
answer90
viewsMerge into two worksheets format . csv in R
I’m doing a job using the transparency portal, I need to join two databases prof1.csv and prof2.csv. The final result of merge, that I named prof.csv, is doubling rows due to columns 18 of gross…
-
4
votes1
answer425
viewsHow to Automatically Detect a Captive Portal
I’m making a hotspot on a server with Centos 6 and would like to have mobile phones (android and iOS) automatically recognize that they need authentication as soon as they connect to the network, to…
-
4
votes2
answers2885
viewsRetry Case Gives Timeout with Axios
Eae guys, I have a little problem to give a Retry in a POST using Next case exceeds Timeout. I’m trying to implement this(https://github.com/softonic/axios-retry) library next to Axios, but it…
-
4
votes2
answers366
viewsWhat is the typedef function in struct in C? Can I use struct without it?
I’m studying data structure in C, and every time my teacher uses the typedef us struct, but I don’t understand his function.
-
4
votes2
answers643
viewsCreate and edit data from a table with Laravel relationship
I have a table called agenda, among the fields of this agenda it is possible to add several responsible for it, which are the users registered in the system, for this there is a field of type…
-
4
votes2
answers86
viewsSelector does not accept value=""
I am trying to make my select empty after the previous select is modified. (Since the two are interconnected, where the select1 is state and as the state is released the cities in Select2 HTML code…
-
4
votes1
answer221
viewsIonic with admob-free advertising displays only "Nice Job"
I created an application with Ionic version: 3.20.1 and set up with admobfree: cordova plugin add cordova-plugin-admob-free --save --variable ADMOB_APP_ID="ca-app-pub-XXXXXXXXXXXXXXXX/XXXXXXXXXX"…
-
4
votes1
answer278
viewsInterpretation of logic operators in Java regarding short-circuit
I read that question Doubt about logical operators && e || in Java, but I follow with the doubt. Solving some exercises on Java I find such a statement: Operators & and | operate in the…
-
4
votes3
answers6310
viewsProblem with brmask in Ionic 4?
Besides this mask I tried to use two others that resulted in the same error, which is the following: ERROR Error: Uncaught (in promise): Error: More than one custom value accessor matches form…
-
4
votes1
answer126
viewsv-for vuejs how to charge with timer
How do I get the list display to be paused, example wait 1 second display: 1 + 1 segundo 2 + 1 segundo 3 <div> <span v-for="n in 10">{{ n }} </span> </div> I used setTimeout…
vue.jsasked 5 years, 8 months ago Sidiclei F. Almeida 307 -
4
votes4
answers1515
viewsTake a field value by id and put it into a variable
Hello, I have a field on a form that receives the id: "teste", how can I catch via javascript this value and put in a variable?? I found the following on the internet var str =…