Posts by Guilherme Rigotti • 1,087 points
78 posts
-
0
votes0
answers16
viewsQ: --findRelatedTests does not work
I’m trying to use the --findRelatedTests to run pre-commit tests using lint-staged, but the following error always happens The --findRelatedTests option requires file paths to be specified. Example…
-
1
votes0
answers30
viewsQ: Placeholder of Textinput breaking after typing
I have a TextInput that when it starts works normal, but after the user type something and delete, the placeholder breaks into two lines. When starting the screen After typing and deleting…
-
0
votes0
answers45
viewsQ: Problem with Typescript interfaces
I’m doing a function to return an object, and I’m saying that this function will return a type interface ICreditAndCreditCard the inteface has been declared as follows. export interface…
-
0
votes1
answer67
viewsQ: Make mobile like desktop
I own a section on my website that on the desktop presents the expected behavior, a row divided into 3, using col-md-4, on the desktop the behavior is normal, on mobile tried to use col-xs-4 to be…
-
-1
votes1
answer98
viewsQ: col-Md-6 is not falling in mobile
I have a section that in mobile instead of falling down this overlapping the whole div. It’s supposed to look like this, but the image is getting over everything in mobile. HTML <section…
-
1
votes1
answer185
viewsQ: Col-Md-6 falling down instead of standing on the side
I need to make a section as in the image. That’s why I organized it this way. HTML <section class="second-section"> <div class="container"> <div class="row align-items-center…
-
1
votes1
answer33
viewsQ: Make a Section as the example
I’m trying to make a Section like the one in the image below, but I’m having some trouble positioning the circles the way I need to. In the green part it is to have a text and the box of it should…
-
-1
votes1
answer250
viewsQ: How to use money mask without jQuery
I would like to know if there is any way to use masks for money without having to jQuery. I know the toLocaleString to format, but would like to apply a mask in the field. I searched the internet…
javascriptasked Guilherme Rigotti 1,087 -
1
votes0
answers26
viewsQ: Problem using Hooks to control page authorization
I’m trying to use the Hooks of Codeigniter to prevent access to certain pages without being logged in. For this I enabled the Hooks and created in the archive application config Hooks.php the…
-
0
votes0
answers18
viewsQ: Function . Blur() does not run with dynamically added element
I have a select that when selecting the option Brazil he adds a input for ZIP CODE and when selecting France he adds a input for ZIP. With the value of these inputs I will query the API as an…
-
1
votes1
answer103
viewsA: Encoding problem in Codeigniter
I was able to solve using. utf8_encode But I don’t think it’s the best solution.
-
0
votes1
answer103
viewsQ: Encoding problem in Codeigniter
I use Postgres as a database and my table is set as UTF8. ENCODING = 'SQL_ASCII' LC_COLLATE = 'en_US.UTF-8' LC_CTYPE = 'en_US.UTF-8' But when I make an appointment he returns to me like this. I’m…
-
0
votes1
answer56
viewsQ: Column not floating beside
I need the columns to float next to each other inside a card. For this I set the first column to occupy 8 spaces and the second 4. col-8 e col-4 But they’re not floating next to each other. I need…
-
2
votes1
answer76
viewsQ: Leave items next to the mobile with bootstrap 4
Need to leave the following items next to each other as is the desktop. As it is on the desktop Like this on mobile I need him to have the same behavior on mobile and desktop for these items.…
-
3
votes0
answers150
viewsQ: Get domain with PHP using parse_url
I need to check if the page accessed is in the domain .com.br or .fr. I thought I’d use the function parse_url but I did not succeed, how to take only the part .com.br or .fr. For example if the…
-
-1
votes1
answer642
viewsQ: Compare two array values with foreach
I own a Foreach in an array to mount a given table, the array is ordered, but I need to remove duplicated values and leave only some information of it and not all. My idea is to compare the n with…
phpasked Guilherme Rigotti 1,087 -
0
votes3
answers40
viewsQ: Printing only the last result
I’m putting together a PDF by MPDF, using a HTML. But he has printando only the last result and should printar all, for it is within one foreach. How to make it to print all the result one in each…
-
1
votes3
answers1491
viewsQ: ORDER BY ASC and DESC at the same time
I need the data you have tr_color = success are ordered in a descending manner DESC and those who do not have it, that the column is empty, be ordered in an Ascending manner ASC. I’m assembling the…
-
0
votes1
answer241
viewsQ: Addclass and Removeclass do not perform as expected
I have a select that when changing to a certain value you should remove the class col-md-9 and add the class col-md-4 to fit a new field on the screen. He should stand as the example. But when I…
-
1
votes1
answer24
viewsQ: Trace under the page
I’m trying to put a dash under the current page as in the image. I need to do this with jQuery, it’s not an option to put one border-bottom on every open page. I thought I’d pick up the url page and…
-
1
votes0
answers116
viewsQ: Change website language with Codeigniter
I have a site in Portuguese and French, created two folders within application, being like this. application/language/portuguese-brazilian application/language/french Within it I placed the files in…
-
1
votes1
answer493
viewsQ: Turn card to Carousel when resolution decreases
I have the following card system made with bootstrap 4, each occupying 4 columns. But I need that when they go to the mobile they see a Carousel, I’m trying to use the Owl Carousel, but I need it to…
-
2
votes1
answer465
viewsQ: Adjust span within link
I own a button and within it I own a tag i with an icon of font-awesome and within the i one span with the text (without the span the icon was above and the text below). What I need is a way to…
-
2
votes1
answer433
viewsQ: 1 item on the left and two items on the right good bootstrap
I’m trying to get 1 item lined up on the left and 2 items lined up on the right with Bootstrap 4, tried to use flexbox but since there are 3 items in the middle and one at each end, I tried to make…
-
0
votes2
answers240
viewsQ: col-Md-6 occupying all space
In my contact form I need to leave on one side some information about the contact, and on the other side a form with email and message. But the part of my form of information is occupying…
-
2
votes1
answer169
viewsQ: Leave images together and responsive
I need to let the images meet one under the other, occupying half of the container and next to you the description of this image. She needs to stay that way. At the moment she’s like this But there…
-
1
votes1
answer281
viewsQ: Position font-awesome next to text
I have some arrows that need to be positioned next to the text, but not next to it. Next to it like this. But I don’t know how to position them there, at the moment I’m putting them inside the p and…
-
2
votes2
answers957
viewsQ: Cards with smaller content breaking
I’m using Bootstrap 4 to assemble a page, and at the time of making cards they are getting bigger or smaller than the others, even if they use the same class col-sm-4. It’s breaking because their…
-
1
votes1
answer507
viewsQ: Navbar disappearing at lower resolution
I’m putting together a project with Bootstrap but I am facing some problems, one of them is the navbar disappearing when the resolution decreases. The other is I can’t write a title right in the…
-
1
votes2
answers39
viewsQ: Print only the first and last date
An Ajax request returns some information, among them the data_inicio and data_fim of a mandate, but need to display only the dates that are in red, would: 23/12/1936 to 12/12/1944 I need a way to…
-
1
votes1
answer99
viewsQ: Replace in an object
I make a call Ajax and this call returns some data. I need to pass a data of descrição, is a string with a text, but to pass this data in the modal I am using the data- and for this I need to…
-
2
votes1
answer3505
viewsQ: How to make a header with background image
I need to assemble a layout with the following structure. Where the blue part will be an image. <header class="header-bg"> <div class="logo"> <span>Logo</span> </div>…
-
1
votes2
answers49
viewsA: How to query multiple columns
Only add other values to WHERE along with OR or AND $PDO = db_connect(); $busca = $_POST['campo']; $vbusca = array("%$busca%"); $sql = 'SELECT * FROM livro AS t WHERE coluna1 = ? or coluna2 = ?';…
-
1
votes1
answer63
viewsA: How to open the gmail app on mobile
Chrome on Android is blocking redirects to applications that are not done through a user gesture. Therefore, via javascript it is not possible to redirect the user to the email application, since…
-
0
votes0
answers39
viewsQ: Sort differently with . each
I have a screen that lists some skills, they come from the bank in the following format. The last two are the pays that are OK and right after it starts the rest, where 0219 is February/2019, 0319…
-
2
votes2
answers1762
viewsA: Catch current date with Vue
To work with dates in Javascript I believe that the best option is the Moment. It matters it, then to do what you need just one. moment().format('LL');…
-
0
votes2
answers72
viewsA: Order registration by name in alphabetical order
You’re using a for and simply adding the names, if you sort your search probably your problem is solved. Add a ORDER BY at the end of his SELECT SELECT nome FROM cartoes ORDER BY nome…
-
0
votes2
answers273
viewsA: Apprentice of C (Factorization in C)
It is starting a factorial in 1 and goes up to the n (informed by the user) And with each interaction it will multiply the factorial (start = 1) by n, the *= does the same as fatorial = fatorial * n…
canswered Guilherme Rigotti 1,087 -
1
votes2
answers668
viewsA: Format pennies in real
JS already has by default a function for currency formatting is the toLocaleString() An example of her use in your case. number.toLocaleString("pt-BR", {style: 'currency', currency: 'BRL' });…
javascriptanswered Guilherme Rigotti 1,087 -
0
votes0
answers27
viewsQ: Link open on another page
I have a button in a form that is responsible for generating a report, but I need this report to be generated in another page. The button is mounted as follows. <a title=\"Gerar relatório\"…
-
1
votes4
answers6441
viewsA: Format Real value (br) to decimal (10.2) mysql
It’s quite simple, let’s declare an example variable. $num = 100000.50; The standard in American USD format. number_format($num, 2); // $100,000.50 Our BRL standard number_format($num, 2, ',', '.');…
-
0
votes2
answers105
viewsQ: getJSON with parsererror
I am trying to realize the deletion and an item for this controller send a code to view 0 or 1, but the JS function responsible for treating that return is always falling into the fail with the…
-
0
votes3
answers933
viewsQ: Treat error return in codeigniter
A call to the delete method returns me the following error. Error Number: ERROR: update or delete on table "matricula" violates Foreign key Constraint "matricula_matricula_cobranca_fk" on table…
-
1
votes2
answers300
viewsA: How to Protect the Clickjacking Site
A website has a protocol, host and port i.e, http://exemplo.com/ is (http, exemplo.com, 80). https://exemplo.com/ is a different site (https, exemplo.com, 443). To avoid this access, you can…
-
4
votes3
answers85
viewsA: How do you adjust my query date?
Since you only need to make the query, can bring your column date_created select formatted as accurate. DATE_FORMAT(date_created, '%d/%m/%y') Here has more information about the function date_format…
-
0
votes1
answer65
viewsA: Doubt with Mysql and php
Try to make your file valores_contato to the next and see if it’s right. <?php $link = mysqli_connect("localhost", "user", "senha", "bd"); /* Verifica a conexao*/ if (mysqli_connect_errno()) {…
phpanswered Guilherme Rigotti 1,087 -
2
votes1
answer67
viewsA: Angular problems - NPM
This error is because Node-Sass is not present. To resolve this you just run the following command npm install node-sass
-
1
votes1
answer29
viewsA: Insert records Cart codeigniter
According to the documentation the way to add more than one item is by doing so. $data = array( array( 'id' => 'sku_123ABC', 'qty' => 1, 'price' => 39.95, 'name' => 'T-Shirt', 'options'…
codeigniteranswered Guilherme Rigotti 1,087 -
2
votes2
answers190
viewsA: Using a select value with Javascript
You are using getElementById(). The method getElementById() returns the element that has the ID attribute with the specified value. However, an ID must be unique on a page. However, if there is more…
-
2
votes2
answers1101
viewsA: How to change size, color and add Bold to folders and their names in VS code
You don’t do this through theme, but by applying your custom settings. As described in documentation As an example, this setting will change the color of folder names.…
visual-studio-codeanswered Guilherme Rigotti 1,087