Posts by Pedro Soares • 786 points
43 posts
-
1
votes2
answers113
viewsQ: Does the component import order interfere with performance?
Today I wondered about a question in the component import order, whether it be this in Angular, React, or Vue. Would the component import order refer to order of use, improve performance or nothing…
-
1
votes1
answer137
viewsA: Android pass Authentication Token in header using Volley
I solved my problem by simply removing the "_" from the api_token and staying like this: headers.put("apitoken", deliverymanEntitie.getTokenEntitie().getToken()); that way I managed to pass and…
-
0
votes1
answer137
viewsQ: Android pass Authentication Token in header using Volley
I’m having trouble sending authentication token in header using Volley This is my code @Override public void onActivityCreated(@Nullable Bundle savedInstanceState) {…
-
0
votes1
answer87
viewsA: Instagram API returns data on the network but does not return in callback
Guys, the answer to this problem is this:: If you are unable to recover the data in the reply of your request, try the following code $.ajax({ type: "GET", dataType: "jsonp", url: querystring,…
-
2
votes1
answer87
viewsQ: Instagram API returns data on the network but does not return in callback
I’m in a strange trouble and he’s just like that: I’m consuming the instagram API and it happens this happening the following thing: The return is displayed in the network tab of devtools, but in…
-
2
votes1
answer266
viewsQ: Winston Node creates log file but does not save: Attempt to write logs with no Transports
I have a problem in Winston, follow my settings: const logger = winston.createLogger({ level: 'info', format: winston.format.json(), transport: [ new winston.transports.File({ filename:…
-
1
votes1
answer1006
viewsQ: How to make HTTP access available to my apache web service on Linux
For a simple programmer we are used to creating web servers and working on localhost, my big question is, and when it comes to leaving this server online? Today we have cloud but would like to know…
-
0
votes1
answer56
viewsA: Change view when clicking on another item?
Right, do a function that receives the email ID This function will be responsible for when triggered fetching the information from the clicked email and fill in the direct field. I could understand…
-
1
votes1
answer852
viewsA: To return the function variable in Jquery
From what I’ve seen here, literally you won’t be able to return the result this way, because when you do the Return within the jQuery method, it is returning yes but to the scope of the jQuery…
-
0
votes2
answers148
viewsA: Fixing iframe video when scrolling page
If it’s the same, leave the wireframe as position fixedand positions him with right:0 and bottom:0 these values you can help according to what gets better I think that’s it, only css solves things…
-
0
votes2
answers1592
viewsA: Vuejs: How to share data from one component to another?
Have two elegant ways to do this, or you instantiate the other component within your own and pass the new values via props Or you use Vuex to build a directional architecture. I hope I’ve helped!…
vue.jsanswered Pedro Soares 786 -
5
votes2
answers1055
viewsA: What are slots and how do they work and "scoped slots" in Vue.js?
Vue.js slots is especially for you to insert extra html into the component Example: This is the creation of a component with slots, in the following example you have a complete modal structure to be…
-
2
votes4
answers17158
viewsA: Include another HTML file in an HTML file
An elegant solution would be to use some javascript framework like Vue, Angular and etc.. For they already come with a nice structure to work in such a way. Since you need different environments on…
-
0
votes0
answers33
viewsQ: How to load javascript dependencies into javascript itself
I have a javascript file that requires others to work correctly It’s a gigantic tramp to always remember to call when to use this js somewhere (because just thinking about it brought me here) There…
javascriptasked Pedro Soares 786 -
0
votes1
answer1334
viewsQ: When I run Curl to localhost:8080 it cannot communicate
When I run Curl to localhost:8080 it cannot communicate $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_POST, true); curl_setopt($ch, CURLOPT_POSTFIELDS, $data);…
-
1
votes2
answers997
viewsQ: How to enable php extensions inside a Docker container
I need to enable Curl but I am using Docker to manage my application. I wanted to know how I could change information from php.ini via terminal, I tried with gedit but did not succeed. Maybe a…
-
1
votes1
answer337
viewsQ: How to disable materialize input
I realize that with Framework materialize as soon as I put an input it already stylizes by type. But I don’t want to use styling for input, like disabling?
-
3
votes2
answers331
viewsQ: Should email HTML 5 still be done inside tables?
Hello, I’m making a HTML for email and, I realized that they are lately tabulated, but my question is whether that is still necessary. There’s some kind of risks if I do not do in tables and the css…
-
0
votes0
answers448
viewsQ: Connection refused Lockable
When I send my form, after processing the data in the save method of the Laravel the following error happens: QueryException in Connection.php line 769: SQLSTATE[HY000] [2002] Connection refused…
-
1
votes1
answer2928
viewsQ: How to update Docker-Compose
Does anyone know how to upgrade Docker-Compose to the latest version? Mine is in 1.5.x and I come across some problems like ERROR: In file './Docker-Compose.yml' service 'version' doesn’t have any…
-
0
votes3
answers428
viewsQ: CSS right in the HTML tag
I have a question today regarding CSS Sometimes it is more feasible to put CSS code directly in the HTML tag and I wonder if this is a bad practice How do I proceed with this doubt? It’s really bad?…
-
10
votes3
answers5691
viewsQ: Can everyone see my projects on Github?
Personal greetings I’m starting there with the concepts of Github and would like to know when I put my project there it becomes accessible to all people with the download option. If yes: Is there a…
githubasked Pedro Soares 786 -
1
votes1
answer20
viewsQ: Preview input field does not work
my browser is not displaying the image. Fear something wrong with this code? $(document).ready(function () { $("input[name='fun_imagem']").change(function () { readImage($(this)); }); }); function…
-
2
votes2
answers155
viewsQ: Easiest way to turn a request into Formdata
this.getArray = function(callback){ $http({ method: "post", url: "index.php?modulo=ClientesOnline&acao=getClientes", headers: {'Content-Type': 'application/x-www-form-urlencoded'}, data:…
-
0
votes2
answers231
viewsQ: Multidimensional array in C# equal PHP?
First time here on this forum, I usually use stack overflow but come on. My question refers to the array in C#: I’m more familiar with PHP and in php we can name our array indexes for example:…
-
1
votes1
answer531
viewsQ: CSS event in one element apply in another
It is possible with CSS to make the following code .grupo-input input:hover .grupo-input span{ margin-top: -30px; } Where in HTML you find yourself this way: <label class="grupo-input">…
-
1
votes1
answer908
viewsA: Uncaught Error: Call to a Member Function prepare() on null in
I found the problem Why this error appeared was the following. I created a class to be responsible for the contact and the address: class Endereco extends AbsGeral { function __construct() { } } The…
-
0
votes1
answer908
viewsQ: Uncaught Error: Call to a Member Function prepare() on null in
I am trying to register my customer address and he gives the following message: Uncaught Error: Call to a member function prepare() on null in I have no idea what it might be, I query it this way:…
-
3
votes0
answers493
viewsQ: Websocket Html5 and Php?
interest of knowledge has arisen here to make applications in real time. I saw here several articles but this giving "pal" in the url that step in js This is how I’m passing: var socket = new…
-
0
votes0
answers340
viewsQ: exceeded the 'max_user_connections' Resource (Current value: 3)
Good evening, everyone. Dude I hate this mistake and I have no idea how to fix it. I’m closing the connection with the bank after every request but still. I am using PHP. Someone knows how to fix…
-
2
votes2
answers6785
viewsQ: Image upload with Jquery
How to upload image using Jquery? This is a question that has been chasing me for a long time, I hope you can help me. Well, I’ve been researching and I saw that you have a plugin for this,…
-
4
votes1
answer136
viewsQ: Is it possible to know if a two-dimensional array is empty?
basically my doubt is already clarified in the question. That’s it, I wonder if it is possible to know if a two-dimensional array is empty? Thank you in advance!…
-
0
votes1
answer119
viewsQ: ajax returning white
I once again here. Come on. Well, here’s my problem: I am passing values to my method in php via ajax, however they are not returning me anything, I did some tests and it is catching on the…
-
0
votes1
answer126
viewsQ: Foreign key SQL SET NULL
Well folks, let’s have one more question from me, I hope you can help me. I have the following problem: When I create a foreign key linking to another field of another table I always define it as…
-
-1
votes1
answer48
viewsQ: How to have more than one value for another table?
Good people, I come with a doubt that has been chasing me for a long time. Let’s get to it: I have the table X however values of table X I picked up at table Y. How to store more than one value in…
-
4
votes2
answers614
viewsQ: Enter data into a foreign key table
I am trying to register a user put in his table there is a foreign key linked to another table. My problem is that this foreign key is referencing the address table, only I still have no address for…
-
1
votes1
answer54
viewsQ: In which cases work with more than one php database?
I am working on a system where more than one company will have its space and I want to do something where companies register their products and visitors (users) can first of all see all companies…
-
0
votes1
answer162
viewsQ: Ajax URL changes if pages come by variables through the URL?
Good people, I have an index.php that calls my other pages as requested Ex: index php.: <a href="home.php">Home</a> if( isset($_GET['pagina']) ){ include_once 'paginas/'.$_GET['pagina'];…
-
0
votes1
answer81
viewsQ: How to use method_exist()
Good people, I want to use the method_exist(), I’m trying to pass values to my class in PHP, in URL that need to call the class it is necessary to call the method to where the values go. How’s a…
phpasked Pedro Soares 786 -
-1
votes1
answer1406
viewsQ: How do you pass data to a php class via ajax when this is another instance class?
Hello guys I hope you can help me, I’ve been having this problem for a long time I pass my data via Ajax to my class but in the URL do not know how to reach it in a way other than error I tried it…
-
4
votes1
answer1116
viewsQ: how to pass data to a php function by ajax url?
People try to give me a force around here, I’ve searched and I can’t find an answer that answers me. Come on! I am working with php classes, I would like to pass data from a form through ajax.…
-
1
votes0
answers32
viewsQ: A database or an individual database for each user?
Good people, I thank you for being here helping me, come on. I’m having a question I’m having a hard time getting answers to. Let’s say I’m creating a system, OK. In this system each company will…
-
1
votes0
answers40
viewsQ: I want to access a PHP function from Ajax
My doubt is the ajax URL, I want to know how to access the function of my class Ajax with jQuery $.ajax({ type:'post', url: "Usuario.php?apagar", data: {titulo: 'Ola mundo'}, success: function( data…