Posts by Raphael Ribeiro • 953 points
24 posts
-
0
votes0
answers33
viewsQ: Calling a function from the same Javascript module
It is possible to somehow reproduce the scenario below? module.exports = () => ({ func01: () => { console.log(1) }, func02: () => { this.func01(); } });…
javascriptasked Raphael Ribeiro 953 -
0
votes1
answer19
viewsQ: Use Doctrine createQueryBuilder with tablets that have no entity
It is possible to perform a query with Doctrine createQueryBuilder using a table that does not have a declared entity (Entity)? Example: In the code below table table2 (t2) does not have an entity…
-
0
votes1
answer32
viewsQ: Multiple Environments with AWS Dynamodb
There is the possibility to create different environments for development, qa and production using AWS Dynamodb on Amazon?
-
0
votes1
answer146
viewsQ: Comparison of hashes in PHP
Is there any way to make a comparison with two hashes of different types and find out if their content is equal or not? For example: I have a hash in SHA512 and another in MD5 (can be any other type…
-
1
votes1
answer1609
viewsQ: Adding Component Dynamically in React
I’m trying to dynamically add one component inside another in React. So that I click on some element and in onClick it adds this component together to the specified div. I tried to do it this way:…
-
3
votes1
answer720
viewsQ: Focus on the first enabled form field
This way I activate the Focus in the first field of the form that is not hidden: $('form:first *:input[type!=hidden]:first').focus(); As active the focus in the first field of the form which is not…
-
0
votes2
answers1032
viewsQ: Remove tag (strip_tags()) html along with content - PHP
When I use the internal function strip_tags() to remove a tag html, it removes only the tag itself <p></p>. But I would like to see its contents removed as well <p>teste</p>.…
phpasked Raphael Ribeiro 953 -
9
votes2
answers7326
viewsQ: What is the correct way to call Python methods?
What is the correct way to make a method call in Python? As in the example below. def __init__(self): mtd([1, 2, 2, 3, 3, 3, 4, 4, 4, 4]) def mtd(data): for value in data: print(value)…
-
7
votes2
answers331
viewsQ: Semicolon(;) in Ecmascript 6 is no longer required?
When using Ecmascript 6 (ES6) it is no longer necessary to use semicolons (;) at the end of each code line?
-
11
votes3
answers24684
viewsQ: How to browse an object in Javascript?
How to navigate the object below with Javascript? var obj = { "column01": "Coluna 01", "column02": "Coluna 02", "column03": "Coluna 03", "column04": "Coluna 04", "column05": "Coluna 05", "column06":…
javascriptasked Raphael Ribeiro 953 -
5
votes2
answers1182
viewsQ: Using For in Python
Python can only work with for' (loop) using a list? It is not possible only with an integer as in other languages?
-
19
votes1
answer294
viewsQ: Error running container (Docker) with browser-Sync
I get this warning when I give start in my container with browser-Sync: [BS] Watching files... (node:1) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): Error: Exited…
-
2
votes1
answer112
viewsQ: Requirejs data-main does not work
Hello I’m always getting the same message when trying to run my index.html file that tries to reload jQuery from requireJS. /Testerequire/jquery.js net::ERR_FILE_NOT_FOUND Error: Script error for…
-
1
votes1
answer276
viewsQ: Error webpack with bootstrap-Loader
I’m having trouble implementing the bootstrap-Loader in the webpack. I get this error output on the console: ERROR in . /~/css-Loader!. /~/resolve-url-Loader!. /~/Sass-Loader? sourceMap!.…
-
0
votes1
answer128
viewsQ: Creating a Custom Exception from Pdoexception
Hello. I need to implement a custom Exception that extends from Pdoexception and with it create some methods that return standard messages. So far I have only found unclear examples. Someone has…
-
3
votes2
answers7769
viewsQ: Log table using Mysql
How to create a table of log Mysql audit that stores when and what was changed in each record? Mysql provides something that can facilitate this kind of thing?
-
1
votes1
answer618
viewsQ: Calculate rest with 2 Biginteger numbers
How to calculate the rest with "%" from two Biginteger numbers?
-
12
votes2
answers5497
viewsQ: How to perform method overload with PHP?
How to perform method overload with PHP? To declare methods with the same name but with different parameters.
-
1
votes1
answer5815
viewsQ: Changing values of a two-dimensional array - PHP
Hello. I need to assemble a foreach to update the array values below: Array ( [0] => Array ( [id] => 1 [profissao] => Ajudante de cozinha [interesse] => ) [1] => Array ( [id] => 2…
-
0
votes1
answer370
viewsQ: Displaying vector with foreach - PHP
Someone would have an example of a foreach to display the vector data below? Code: Array ( [empregadoTO] => Array ( [0] => EmpregadoTO Object ( [id:EmpregadoTO:private] => 1…
-
1
votes1
answer383
viewsQ: Passing value from one view to another view - PHP
Guys, I need to pass a value from one View to another View, in case an ID. For example: In the Main View I have a list of vacancies, when I click on one of the vacancies will load the second View…
-
0
votes2
answers773
viewsQ: Include_once and right directories - php
I’m having trouble with include regarding directories, because when I call a class from another directory that contains another include the paths are different. I need to know if there’s any way to…
-
0
votes1
answer230
viewsQ: How to view the SQL executed by php when using the functions "prepare()" and "execute()"?
Hello need to echo or print the SQL running from the function below. The goal is to visualize how the SQL will look when the values of "?" replaced. Does anyone know how to do this? public Function…
-
6
votes1
answer1204
viewsQ: Redirect to a page by passing an object
I need to pass an object to a page. For example: I wish that the moment I redirect to a particular page that will present html, that in it I could recover this object and use whatever is in it.…
phpasked Raphael Ribeiro 953