Posts by Guilherme Nascimento • 98,651 points
2,383 posts
-
3
votes1
answer69
viewsA: Is it possible to record what happens in an iframe on video?
On the front end directly NAY is possible without relying on extra technologies, ie HTML+Javascript+Canvas is not possible. What this site recordscreen.io does is capture the screen or window that…
-
4
votes1
answer134
viewsA: How to prevent favicon error?
It’s natural to do that in browsers, when you don’t have the <link rel="icon" ...>, browser will try to load a possible from the root favicon.ico, ie, the attempt to load a possible favicon is…
htmlanswered Guilherme Nascimento 98,651 -
2
votes3
answers1520
viewsA: Can I use an iPhone to test a Xamarin app?
I can use an iPhone to test a Xamarin app? Yes, you can currently use an iPhone, as there is no iOS emulator for Windows and Linux, you can test directly on it with: Xamarin Hot Restart It will be…
-
1
votes2
answers293
viewsA: How to disable PDF download tool (icon) on a web / iframe page?
Not there is assurance that using #toolbar=0 in the URL will work, since this is unique in browsers that use the viewer from Adobe (and maybe Foxit Reader), that is, other viewers maybe do not work…
phpanswered Guilherme Nascimento 98,651 -
3
votes1
answer45
viewsA: Python - Using Threads in Windows for Multiple Events
From what I’ve researched it’s normal winsound.Beep, in the winsound.PlaySound we have the winsound.SND_ASYNC, which would allow to run without crashing (I believe), but it is for files or operating…
pythonanswered Guilherme Nascimento 98,651 -
9
votes3
answers229
viewsA: Has Javascript changed its rules about what is false or true?
That nay is a Javascript trap, actually is a "Javascript trap in browsers" When you use name in the main scope it will understand that refers to the window.name, which by default already comes set…
-
1
votes1
answer48
viewsA: How to make a Trigger animationend without Jquery?
The basics would be to use var event = new Event('animationend') with <Element>.dispatchEvent(event);, example applied with addEventListener and onanimationend var elementoAnimado =…
javascriptanswered Guilherme Nascimento 98,651 -
1
votes2
answers550
viewsA: How can I leave the dynamic baseURL in React
The very one axios.create() is dynamic, does not need to create an exaggerated module of its own, an instance of the baseURL when the current URL does not contain the "protocol", that is when nay is…
-
1
votes1
answer43
viewsA: How to return true and false in addeventlistener
Just create the variable in a scope accessible to events and use the appropriate events, in case to start the animation is the animationstart, close down animationend (or reach the end) var el =…
javascriptanswered Guilherme Nascimento 98,651 -
0
votes2
answers79
viewsA: how to select more than one option in select Multiple using javascript?
To do this you will have to pick up the specific elements using document.getElementsByName("cores")[0].getElementsByTagName('option') or document.querySelectorAll('select[name=cores] option') Then…
-
0
votes1
answer52
viewsA: Installing apk from an app from another app already installed
Install apks outside the store has to have Developer permission released on the Android operating system (at least in the most current versions of the system I believe it is like this) If you choose…
-
2
votes1
answer47
viewsA: pdfmake__WEBPACK_IMPORTED_MODULE_16___default Reactjs error
Like you’re wearing typescript (probably) then as I had already commented have to use the client-side mode of that lib: import * as pdfMake from "pdfmake/build/pdfmake"; If you’re gonna use via…
-
2
votes1
answer313
viewsA: Data being deleted from H2 database with Spring Boot
From what I read in the documentation: http://www.h2database.com/html/features.html#in_memory_databases http://www.h2database.com/html/features.html#database_url you are explicitly using the…
-
0
votes2
answers1393
viewsA: Change APP icon after installed - IONIC
Since iOS 10.3+ this is possible (since 2017), but for Cordova applications (like Ionic) it will depend on a specific plugin. You can try this plug-in (only iOS, not Android)…
ionicanswered Guilherme Nascimento 98,651 -
0
votes1
answer111
viewsA: Treat backbutton event in PWA APP created in Ionic
According to the documentation: https://ionicframework.com/docs/developing/hardware-back-button#exiting-the-app For Angular would be (I’m using capacitor, but can use with Cordova as well): import {…
-
3
votes3
answers117
viewsA: How to identify output status in a bash program?
You can use the $? Will issue 0: #!/bin/bash echo Teste echo Resultado: $? It will probably issue 127 because the command foobar failed to exist (or may have other behavior depending on the system):…
-
6
votes2
answers123
viewsA: Is it possible to delete the browser history?
Responding to: It is possible to delete browser history? There is no native way or guaranteed to solve this and no reason to clear user history. I say this because the browser is the user, even if…
-
2
votes1
answer556
viewsA: Visual Studio Code does not suggest Unity methods and classes
The image is about VS Enterprise, not about Vscode, but anyway to use Unity in Vscode install the extensions: Unity tools Debugger for Unity (this usually installs itself when installing Unity…
-
3
votes1
answer67
viewsA: How to pass the "+" signal using GET?
Change the sign of + for %2B, if you are generating the link via Javascript you can do so: var resultado = encodeURIComponent("U2FsdGVkX1+T0MCaQbe7CRkz6jsZQoznI80UCEK6s0I="); console.log(resultado);…
-
0
votes2
answers200
viewsA: Identify if the mobile phone keyboard is open
As you asked: I wonder if there is a way to access via webview some plugin that makes this relationship with Cordova Yes, Ionic is Cordova, its core at least, for example the plugin used by Ionic is…
-
2
votes1
answer45
viewsA: Extension of Chrome to run only in subdirectory
Separate in 2 scripts one for the whole site and another one for Stories, something like: "content_scripts": [ { "matches": ["*://*.instagram.com/*"], "run_at": "document_idle", "all_frames": true,…
-
2
votes2
answers43
viewsA: I cannot access the index of a for inside addeventlistener
Barter var for let even solves and yes, the use of this is correct, but the point at this point is that the main problem is trying to take something that neither "there was more", I mean, in the var…
-
0
votes1
answer102
viewsA: Event.key does not work
The event.key only available when events are of the "keyboard" type, when the event.type is equal to KEYDOWN or KEYUP for example Are you trying to run it at any time at any kind of event and the…
-
1
votes1
answer394
viewsA: How to create a custom findBy method for spring?
I recommend you read the documentation, there are several ways to create/adjust queries, see https://docs.spring.io/spring-data/jpa/docs/current/reference/html/#jpa.query-methods.query-Creation In…
-
2
votes1
answer500
viewsA: How to simulate pressing a key for a certain time?
When I hold down the key on the physical keyboard several times a signal is triggered to the chosen key, at least that’s how events in most Apis working with "input" respond back, for example, in…
-
4
votes3
answers201
viewsA: Target class error [Sendmailnewsletter] does not exist
Probably the file name inside the folder app\Http\Controllers this with different name in case of upper and lower case letters, for example, the class you wrote SendMailNewsLetter And in the file…
-
2
votes2
answers48
viewsA: this.Test1 is Undefined
Because you are passing the method directly, and so will not receive the reference, it is as if you have sent only the part that is "Function" of the method, but not this "passing" the relation with…
-
1
votes1
answer65
viewsA: Limit google Translate API - Javascript
Just add the class notranslate in the element you want to be ignored by the google translator, for example: <p>It's only a test using GoogleTranslate</p> <p…
javascriptanswered Guilherme Nascimento 98,651 -
3
votes2
answers53
viewsA: Return void in an Actionresult method?
ActionResult is to use methods for this if you will not use a ActionResult so there’s no need to force it The Response.Write is not part of the namespace System.Web.Mvc, return of an Actionresult…
-
2
votes1
answer50
viewsA: Upgrade from Laravel 5.7 to 5.8
There is no point in replacing native PHP functions with Laravel functions, the message refers to the global Laravel functions, it has nothing to do with array_push or str_replace, which are native.…
laravelanswered Guilherme Nascimento 98,651 -
3
votes1
answer103
viewsA: Find div id with variations - Web Scraping - Beautifulsoup
Use the CSS equivalent selector for attributes that checks whether the ID starts with how post_message_: [atributo^=valor] The dial should be something like div[id^=post_message_] along with the…
-
5
votes2
answers495
viewsA: Remove the R$ from the tolocalestring
Using Intl.NumberFormat also solves, an advantage over the use of this API is like the @fernandosavio commented, you can create a whole format and save in a variable, so you can reuse in several…
javascriptanswered Guilherme Nascimento 98,651 -
3
votes3
answers76
viewsA: Why doesn’t my Eps work?
Because one equals signal is value assignment and not comparison, to be dfe comparison has to use 2 equals signals, so: if(display == 'none') {
-
1
votes1
answer25
viewsA: To create an exception in htaccess mod_expires
If you are Apache 2.4 you can use <If>, using regex for example: <If "%{REQUEST_URI} =~ /^\/caminho-exemplo\/foo\/bar\//"> # se começar com /caminho-exemplo/foo/bar/ # algo aqui…
-
2
votes1
answer34
viewsA: Functions in HEREDOC PHP
The echo does not work as return, when a string is being processed first all values and functions are processed, so foo() will be executed before the string generated in <<<EOT EOT; exist.…
phpanswered Guilherme Nascimento 98,651 -
7
votes2
answers611
viewsQ: What is the purpose of using UUID (version 4) as "Primary key"?
I have noticed that some places have switched the ID (generated by autoincroment, depending on SGDB) by UUID, usually use version 4 of UUID which is based on a pseudo-random system, the question is…
-
5
votes3
answers444
viewsA: hide id passed in url
No way to hide the ID in GET: /a/164252/3635 ... something else has no sense to want to hide the IDENTIFIER, it serves for this, identify, if your intention that people do not assume the number of…
-
2
votes1
answer28
viewsA: How to prevent the scrolling of a given element?
Remember that DIV should not go inside UL, and I really think you don’t even need to do this structure like this, see https://html.spec.whatwg.org/#the-ul-element: Zero or more li and…
-
0
votes1
answer94
viewsA: Recover key value added in formData in backend
The correct is req.body to pick up the contents of a POST, so that would be it: console.log(req.body) Now if you are using multer and actually want to get work uploading a single file should do…
-
3
votes2
answers184
viewsA: How to make a window.scrollTo(0.0) without animation
I believe that behavior in the API (scroll(), scrollBy() and scrollTo()) only has 2 possible values, Smooth and auto, so I believe that Same goes for CSS: scroll-behavior: auto; scroll-behavior:…
-
2
votes1
answer46
viewsA: Similar command to python’s Try for shellscript?
Just use two pipes || (OR) !#/bin/bash python main.py || python3 main.py If the syntax fails in Python 2 (I believe your goal) then it will execute the python3 In the example the script was: import…
-
8
votes2
answers847
viewsA: How many days a week do you have in a month?
Using a while adding up days will solve the problem: while (month === date.getMonth()) { if (date.getDay() === type) count++; date.setDate(date.getDate() + 1); // testar o próximo dia } But the…
-
2
votes1
answer45
viewsA: Laravel Eloquet AND-OR-AND Undefined variable
The scope of variables in PHP are not accessible in sub-functions, you must use the use () to access the variables of a "scope above": ->orWhere(function ($query) use ($data) {…
-
7
votes1
answer53
viewsA: How to access the "this" of a class with an external function?
Change the Arrow-Function: minhaFuncao: () => { by normal Function: minhaFuncao: function () { Thus: class minhaClasse { constructor(objeto){ this.meuNumero = objeto.meuNumero this.minhaFuncao =…
-
1
votes1
answer85
viewsA: What is the cameo adb forward for and how to use it?
Not much to say about adb forward, in addition to what is in the documentation: https://developer.android.com/studio/command-line/adb#forwardports It serves to forward host ports (your computer,…
androidanswered Guilherme Nascimento 98,651 -
1
votes1
answer836
viewsA: Postgresql in the Windows command line - "psql"
Being Windows, by your comment, after downloading via https://www.postgresql.org/download/windows/ and install, if the installer did not generate the path in the PATH (environment variables) of…
postgresqlanswered Guilherme Nascimento 98,651 -
3
votes1
answer69
viewsA: Does Axios use AJAX by default?
In browsers is yes, by default it uses the XmlHttpRequest (alias ajax), can check in the source code: https://github.com/axios/axios/blob/6642ca9aa1efae47b1a9d3ce3adc98416318661c/lib/defaults.js#L18…
-
0
votes4
answers876
viewsA: How to capitalize all words in an array using toUpper?
The problem is that you are running .push(...) and this is used to add a new item, if the purpose is to update the existing items just access and apply .toUpperCase() directly, there is also no need…
-
3
votes1
answer55
viewsA: Random indentation for standardized
I suggest you create a file .editorconfig in the project folder with something like: # EditorConfig is awesome: https://EditorConfig.org # top-most EditorConfig file root = true # Estilo unix, usa…
visual-studio-codeanswered Guilherme Nascimento 98,651 -
4
votes1
answer62
viewsA: Draw only with the "brush" and just "circles" when you click certain buttons
Just set a flag (boolean) or remove the event canvas.onclick = () => { when brush and remove the event canvas.onmousemove = () => { when it is circle, in programming this is the basic: what is…
javascriptanswered Guilherme Nascimento 98,651