Posts by Gabriel Schmidt Cordeiro • 728 points
44 posts
-
0
votes0
answers11
viewsQ: Fix CLS in dynamic images
One of the main problems faced in Google’s Lighthouse is the issue of CLS. In my customers this is something that happens very often. I know that to fix CLS the best alternative is to set the size…
-
1
votes1
answer42
viewsA: Infinite loop gives pagescaping window.ready or window.onload
I believe this will solve. I was just wondering where the variable comes from pais. My solution is not the best possible, but will solve. From what I understand it happens the loop because there is…
-
0
votes1
answer22
viewsQ: Is it possible to set the number of items displayed in a material table per device?
I’m doing a project in React and I have a component that makes a data listing using Material Table. By default I set to display 10 items per page, but in mobile it is bad to have so many items,…
-
1
votes1
answer63
viewsQ: Use H3 for product title in the display case
I have a list of products where I put their name within a span using the itemprop="name" of Schema.org to define that this is the name of the product, but a marketing agency of my client contacted…
-
0
votes1
answer122
viewsQ: Download Laravel dependencies via Composer in AWS EC2
I cloned an Laravel project on a linux server EC2 and when I will download the dependencies via Build it gives the error Do not run Composer as root/super user! See https://getcomposer.org/root for…
-
0
votes1
answer260
viewsQ: Error The user denied your request when trying to generate Instagram Access Token
I registered my account in the Instagram development area to generate Access Token but when I generate it ends up denying the request. I’ve performed the same process on other accounts but on this…
instagramasked Gabriel Schmidt Cordeiro 728 -
0
votes1
answer327
viewsA: Update json field with select in the same Postgresql table
I was able to solve it this way: UPDATE config SET conf_json = ( SELECT json_object_agg(key, value)::jsonb FROM ( WITH to_merge AS ( SELECT * FROM jsonb_each(( SELECT (conf_json)::jsonb FROM config…
-
0
votes1
answer327
viewsQ: Update json field with select in the same Postgresql table
I have a table where I have to take data from a record and update it in a column from another record of the same table. These fields are like json. I was able to get the data to be entered but I’m…
-
0
votes0
answers41
viewsQ: Module Node restarting on multiple requests
I am developing a personal project to perform performance tests on a list of websites and for this I am using the Lighthouse modules and Chrome-Launcher. In my application is being read a list of…
node.jsasked Gabriel Schmidt Cordeiro 728 -
0
votes1
answer32
viewsA: Pagination error while removing number displayed in link
From what it seems if you remove the value of the page parameter your variable will be coming empty, because in $pagina = (isset($_GET['pagina']))? $_GET['page'] : 1; is validated if there is the…
-
1
votes0
answers84
viewsQ: Upload image to Laravel does not work on web server
When trying to upload an image to Laravel on a web server it is not generating the image. When using $request->hasFile('image') even if the image is being sent but if I run the same project on…
-
1
votes2
answers268
viewsA: z-index does not change!
In your class . insert z-index: 10; to z-index: 999;
-
0
votes2
answers2255
viewsA: Where in a JSON Postgres Array
I was able to solve it this way: SELECT opcoes FROM pagina WHERE opcoes::jsonb @> '{"filtros":[{"valor":{"18":[]}}]}';
-
6
votes6
answers1015
viewsA: How could I highlight the radio button that is selected?
Each time a button is clicked, a class . active is added to it, so a specific style can be created for that class. Following the default Focus button can be added for example a box-shadow on it when…
-
0
votes2
answers2255
viewsQ: Where in a JSON Postgres Array
How can I select only the records that have the value "18" in this JSON? '{"filtros":[ { "tipo":"caracteristicas", "operador":"=", "valor":{"18":[12]} } ]}' I tried to use the comparison with the…
-
0
votes1
answer786
viewsQ: Div daughter overlapping parent div who has overflow: Hidden
I want the daughter div 'overlap' the father div that has an overflow: Hidden and a fixed size. This parent div is an item from one of a Carrousel library made with JS and it adds a fixed size and…
-
0
votes0
answers95
viewsQ: Is it possible to save an image with the Imagine PHP library without compressing its size?
I am using the Imagine PHP library to upload and process images and when I will upload images of the type . GIF he does this normally keeping the dimensions of the original image but he does the…
-
4
votes1
answer8624
viewsQ: Perform action after user stops typing with Jquery
I’m doing a search suggest where after the user type at least 4 letters in the input he does via Ajax the search with the suggestions for the user. But currently after the user has typed the first 4…
jqueryasked Gabriel Schmidt Cordeiro 728 -
0
votes2
answers697
viewsQ: Automatic menu break with icon and text aligned
I’m making a menu with ul and li where inside my li has an a with a span for the icon and a span for the menu item text. Currently when it arrives at a resolution xxx it breaks the items. I wish…
-
-1
votes7
answers4205
viewsA: Count elements on the screen
try this with Jquery: var i = 0; $('li').each(function(){ i++ }); alert(i);
-
0
votes2
answers614
viewsQ: Duplicate results when searching with POSTGRES
I’m performing a database search where I perform some JOIN on different tables. In the SQL that inseir below I make a Join with the product table_categoria_compatible where the product id must be…
postgresqlasked Gabriel Schmidt Cordeiro 728 -
2
votes2
answers330
viewsQ: Why do my Jquery events stop working after an AJAX request?
I have two buttons that when clicked make the call of a .on('click',function()) but before that an AJAX request is made and after that request they no longer work. Before I did the function to…
-
0
votes1
answer841
viewsA: Update content of DIV
Solved $.ajax({ url: "exemplo.php", type: 'GET', success: function(html){ var headline = $(html).find('#mydiv'); $('#mydiv').html(headline); } });…
-
1
votes1
answer841
viewsQ: Update content of DIV
Is it possible to update the content of a DIV? I have a DIV in which I pick up data present in the browser cookies and make a foreach to the listing of the items of cookies showing them to the user.…
-
7
votes3
answers1160
viewsQ: How to set number of times the setInterval will be executed?
It is possible to control the number of executions of setInterval? I made a script very simple where I wanted to div flash 3x to alert the user. But in script that I made it keeps blinking straight.…
-
1
votes1
answer1106
viewsQ: How to return the records of the last 7 days counting the current day with postgresql?
I’m doing a database search where I want to return the records from the last seven days. I made an SQL script that returns the records of the last 7 days but it does not count the current day as the…
postgresqlasked Gabriel Schmidt Cordeiro 728 -
0
votes1
answer30
viewsQ: Search using between no postrgres
I am performing a database search in order to return only the characteristics that are between the range of 40 and 100. But when running the script below it is returning me other features that are…
postgresqlasked Gabriel Schmidt Cordeiro 728 -
0
votes1
answer78
viewsQ: How do I return the highest and lowest value within a loop by using Twig?
I make a list of some products and would need to return the largest and lowest value of products without using max and min in SQL query. I tried to use for example the function max() from Twig, but…
twigasked Gabriel Schmidt Cordeiro 728 -
0
votes2
answers153
viewsQ: Is it possible to use between to filter searches with a Character field?
For example, if I am going to do a database search of a table with the price of the products, I use in my condition Where: preco_product between 10 and 550 but and for me to do the same type of…
-
4
votes1
answer1019
viewsQ: How can I make an email mask with PHP?
How do I make an email mask with PHP showing some letters, all numbers and special characters? Ex: [email protected] should look like this: stack_______2015-_____@__tmail.com…
-
7
votes5
answers34006
viewsQ: How to return the last record of an array with Javascript or jQuery?
I’m making a custom search filter where the user can select the brand and product features and I return their id. But I wanted to return only the last record of mine arrays where they contain all…
-
2
votes2
answers4643
viewsQ: How to remove characters from a certain point with Jquery?
How do I remove everything you have before the ? in that string smartphones?marca=3 or celular?marca=4 presenting only what is after the question mark "?" with Jquery or Javascript?…
-
2
votes1
answer973
viewsQ: Subscribe button from youtube
I’m making a page listing youtube videos and I would like to make a button for the user to subscribe to the channel, but in the examples I found on the internet they come a lot of information beyond…
-
1
votes2
answers287
viewsA: Share button for Linkedin
<div class="social-ctn linkedin-new"> <a href="#"…
-
3
votes2
answers287
viewsQ: Share button for Linkedin
How can I make a share button for Linkedin? I did facebook, google, twitter and Whatsapp but Linkedin I’m not getting. For example look at the one on facebook: <script type="text/javascript">…
-
2
votes1
answer3005
viewsQ: How can I change the color of scrollbar inside a div?
How can I change the color and style of a scroll bar within a div? I searched the internet and found this example but it didn’t work: scrollbar-arrow-color:#000000; scrollbar-base-color:#000000;…
-
1
votes1
answer196
viewsQ: How to control the positioning of a div with position Fixed?
How can I make sure that when my right div gets to the div of the comment area it gets fixed again? When it arrives at a number X distance from the top I apply a position Fixed to it to keep track…
-
4
votes1
answer3081
viewsQ: How to customize buttons for social networks?
I wanted to know how to customize the buttons to share something on some social network. In web there are already the default buttons but I wanted to customize them just using CSS. I plan to do like…
-
0
votes1
answer542
viewsQ: How to know which is the first and last element with Jquery?
Good evening, everyone. I have a question. I am doing an image gallery and would like to know how I know what is the first and last element. Like I have the right and left arrows for previous image…
-
0
votes2
answers143
viewsQ: How can I apply a style only to one or the other <p>?
I have a problem that is apparently simple but because of my lack of experience I am getting screwed. The thing is, I’m doing a database listing of a text, and this text already comes with the tags…
-
0
votes1
answer487
viewsQ: How to count the number of twitter followers via php?
Good morning. I’m developing a blog and I need to list the number of followers that a certain company has, but I’m not able to do it. I managed to do the Facebook likes listing but Twitter can not…
-
1
votes4
answers1215
viewsA: How to make an HTML list searchable
I use the HTML 5 Datalist when I need to do this. For example, I take information from a table (e.g., categories) and do a foreach inside it. Below is a standard HTML-only example: <input…
-
1
votes1
answer149
viewsA: Why am I not able to do the INSERT in the database?
Check your connection to the database $conn = new PDO('mysql:host=localhost;dbname=meuBancoDeDados', $username, $password);
-
2
votes3
answers58
viewsA: Increase spaces when we decrease page
Use % instead of px. Study fluid layouts or media query. If you want to use a front-end framework I recommend bootstrap.