Posts by Joao Nivaldo • 1,229 points
84 posts
-
1
votes0
answers17
viewsQ: Redirect from port 443 to another
Guys, see if you can help me, I’ve already looked it up, and I can’t find anything on this. The following I have 2 domains configured for a site in Laravel 7 so far ok. I have configured htaccess as…
htaccessasked Joao Nivaldo 1,229 -
4
votes2
answers132
viewsQ: Is it good practice to insert CSS tags at the end of Body’s body?
I checked the performance by means of testing on the website of google so-called Pagespeed Insights, when inserting the tags related to the CSS at the end of the body of body scores go up. But this…
-
4
votes3
answers1422
viewsQ: Clear string with Regex
I have the following array in PHP: [ "Opcao 01 - Frase aleatória - Menu Superior", "Opcao 02 - Outra Frase aleatória - Menu Su", "Opcao 03 - Mais 01 Frase - Menu", "Opcao 04 - Mais Frase -", "Opcao…
-
0
votes2
answers66
viewsA: Problems creating a foreign key
I found the bug. The person who created the Category table put the ID with unsigned there won’t even. I took the unsigned and all right. Thank you all very much.
mysqlanswered Joao Nivaldo 1,229 -
0
votes2
answers66
viewsQ: Problems creating a foreign key
Staff need to create a relationship between table attendance and table category, but every time I try it gives error 1215 cannot add Foreign key. What am I doing wrong? Both tables are empty. CREATE…
mysqlasked Joao Nivaldo 1,229 -
0
votes2
answers712
viewsA: Testing if the image exists
I was able to solve by creating a new route where I check if the file exists and if it does not exist I put the default file and then forward it to the default Intervention route. It worked out that…
-
1
votes1
answer46
viewsA: Does not display relationship data within WITH
I decided to add in select the link fields with the relationship. $result=Carro::with('dono')->select('dono_id','dono_type')->where('id',10)->get(); I don’t know why this but it makes…
-
0
votes2
answers712
viewsA: Testing if the image exists
I don’t know if it’s the best way but I did it like this: @if(strtoupper($file_headers = @get_headers('http://www.meuservidor.com.br/miniatura/'.$item['imagem'])[0])=='HTTP/1.1 200 OK') So it worked…
-
0
votes2
answers712
viewsQ: Testing if the image exists
I use Intervention in Laravel 5.5 and use its routes with filters to generate images dynamically. I would like to know how I can test in the filter class and the image I passed it exists on the…
-
1
votes1
answer46
viewsQ: Does not display relationship data within WITH
I have a relationship Polymorphic between Customer and Car Class. Client class: public function carros() { return $this->morphMany(Carro::class, 'dono'); } Car Class: public function dono() {…
-
0
votes1
answer280
viewsQ: CURL is not working locally
People have 2 applications in Laravel 5.5 running locally. One is the API and the other is a frontend. The API I configured it as a vhost in WAMP Server as the name api2018.local and I configured…
-
2
votes1
answer65
viewsQ: Compile multiple JS keeping the original names
Guys, I have a folder inside the Resources called js where you have several JS files and subfolders with other Jss. How do I set up Laravel Mix to compile all the contents of the JS folder including…
-
4
votes2
answers679
viewsQ: Maintain item order in JSON
Have to maintain the order of the items that came in JSON of a API? This is like this coming from API: {"6":"Abadia","218":"Abel Reis","44":"Alexandre Campos - Jardim","13":"Alfredo Freire…
-
0
votes0
answers51
viewsQ: Problems to ignore URL in CSS
As I do in Webpack for it to ignore content with images within the URL, e.g.. background-image: url("../img/marker.png"); I have a SASS file with this content: // Fonts @import…
webpackasked Joao Nivaldo 1,229 -
0
votes2
answers124
viewsA: Rollback problems on Laravel 5.5
After trying a lot together with Dinaerte Neto of the Laravel Brasil Facebook group, we verified that the problem was that the table was of the Myisam type and it seems that it does not support…
-
1
votes2
answers124
viewsQ: Rollback problems on Laravel 5.5
I am importing/migrating an old database from my site to a new format. I am using Transactions in this import as per the code below. The problem is that when I get an error the rollback is not being…
-
2
votes0
answers135
viewsQ: Url forwarding keeping the url
Personal my client has a resale plan at Locaweb where he has a main website and within this brush has the Subsites that are generated dynamically and do not have folders in the hosting. I need to…
-
0
votes3
answers5589
viewsQ: Grab child element in css
I have the following html structure: <div class="box1"> <p>texto</p> <p>texto</p> <p><img src="imagem1.jpg"></p> <p>texto</p> </div>…
-
0
votes2
answers15714
viewsQ: mysql error 1215 cannot add Foreign key Constraint
Guys I’ve researched several other topics about this bug and none solved my problem so I’m posting here for you. Here’s the thing: I have a table called "members" that already has content and I’m…
mysqlasked Joao Nivaldo 1,229 -
1
votes2
answers256
viewsQ: Data field update in string format
Guys, I took an old bank from a client where there’s a birth date column that’s in a string format and doesn’t date. So far so good only that it has certain recorded dates that do not have the 0 in…
-
0
votes0
answers19
viewsQ: Laravel on Windows server
Staff I made a site in Laravel 5.3 and when I was publishing it I realized that the client’s hosting is in Windows 2008 on Ocaweb. I can’t change to Linux. I’ve already turned on php 5.6. I just…
-
1
votes1
answer109
viewsQ: How to know if a plugin is active
Personal am wanting to make my site only with a JS file and in it I would like to know if a certain plugin is loaded since for example the carousel I only load on a page. How I test if the plugin is…
jqueryasked Joao Nivaldo 1,229 -
0
votes1
answer233
viewsQ: Make this grid with Flexbox
People I’m having a great difficulty to create with Flexbox this grid, as the image below. I need it to be no fixed size because when the images are seen on the phone will be in the same position…
flexboxasked Joao Nivaldo 1,229 -
1
votes0
answers156
viewsQ: Maintain image size for CSS printing
Personal as I do to generate an image that will stay background in a div with a text overlaying it and the time I print it keep its size. Type I have an image generated in Photoshop with the…
-
2
votes1
answer175
viewsQ: Error while uploading site
Guys I just uploaded a site of mine made in Laravel 5.2 with Pho 5.6 locally. I went up to a shared hosting in Locaweb that I have. I configured PHP 5.6 correctly and I went up the site here giving…
-
0
votes0
answers77
viewsQ: Maintain values when using history.back
Guys I have a search page that is all in ajax that is working cool, like the website of Trivago. Only when I change the values of the fields and then I choose one of the answer items I load a new…
-
6
votes1
answer374
viewsQ: How to decode html entities (Entity)?
I have a string which returns me from the bank in the following format: Received by trainee & aacute;rios do project Memória I would like to convert it to format without the marking…
phpasked Joao Nivaldo 1,229 -
0
votes1
answer52
viewsQ: Request returning Decimal
Guys I have a field in a form that is type text and when I give a post in the form and capituro the request->get this field returns string when it has some letter in it. but if it only contains…
laravel-5asked Joao Nivaldo 1,229 -
0
votes0
answers88
viewsQ: Horizontal menu does not use 100% of space
Guys I’m making a simple horizontal menu and I split the columns in percentage so the last column isn’t breaking the row. I need the menu this way because it will be responsive. HTML and CSS nav ul…
css3asked Joao Nivaldo 1,229 -
0
votes0
answers38
viewsQ: Ajax converts url
Guys I have a routine that sends a query via AJAX to my PHP, so when I have for example the following query: ? value<=1000 ai it converts to ? value%253C=1000. The Request URL looks like this:…
-
0
votes1
answer34
viewsQ: Route with the character "."
Personal need to create a route in which a parameter of it is a filename with the extension. How do I create this one? Ex. http://localhost:8080/download/.pdf file I created so but error because of…
slimasked Joao Nivaldo 1,229 -
1
votes0
answers105
viewsQ: Problems in displaying an image with the marked name in the folder
Folks I am updating a project of a client that was originally made in Vb.net and am moving to Laravel 5.1. Ta all right only one problem with the display of certain images that has in the folder…
-
0
votes0
answers51
viewsQ: Rotate Laravel site 5 on Locaweb
Staff need to run a Laravel 5.1 site on a shared hosting on Locaweb. Before any comments really need to be on the customer’s Locaweb and requirement. The root folder is public_html already tried to…
laravel-5asked Joao Nivaldo 1,229 -
1
votes2
answers207
viewsQ: Problems in the return of a JSONP
People I’m trying to get a response from an API of mine as JSONP but not the right one. Code ajax is this: $.ajax({ type: 'GET', url: url, async: false, contentType: "application/json", dataType:…
-
1
votes1
answer22
viewsQ: Strange error in class method call
I have a simple class with 2 methods, here is the code: namespace app\Services; use App\Repositories\LogRepository; class LogService { protected $repository; public function…
phpasked Joao Nivaldo 1,229 -
0
votes2
answers184
viewsQ: View formatless HTML tags from Twitter Bootstrap
Guys have a column in the bank where I type posts from the site. La I do all the formatting with Bold, alignments, fonts and everything. Only when I will display on the site many settings of the…
-
0
votes2
answers1367
viewsQ: Limit the amount of files in Dropzone.js
People are using the plugin Dropzone.js to send images and I need to limit the amount of images I send in it. For example I want to limit to 5 files in total. Then it can only send to the server and…
dropzonejsasked Joao Nivaldo 1,229 -
1
votes0
answers1823
viewsQ: Mocking the Recaptcha
I have a website made in VB.net and he has a contact form where he has a Google Recaptcha 2 in it and today had a citizen who is able to send messages in this form and going through Recaptcha…
-
3
votes0
answers4251
viewsQ: How to update ASP.NET website hosted at Locaweb
I’ve had a website running for four years on a client of mine. The site was developed in VB.Net, and Locaweb migrated its servers from Windows 2003 to 2008 and consequently changed the Trust Level…
-
2
votes3
answers7469
viewsQ: ASP.NET Trust Level
Personal Locaweb made an update on its servers and a site of a client of mine started to present the following error: System.Security.Securityexception: Request for the permission of type…
asp.netasked Joao Nivaldo 1,229 -
4
votes1
answer540
viewsQ: Recover most viewed videos from youtube channel
There is how I recover the 5 most viewed videos from my Youtube channel to put on my website?
-
0
votes2
answers120
viewsA: How to return only one column
Guys I managed to solve using Distinct. It was like this: $ent->createQueryBuilder('t') ->select('count(DISTINCT c.id)') ->join('t.categoria', 'c') ->join('t.noticia', 'n')…
doctrine-2answered Joao Nivaldo 1,229 -
0
votes2
answers120
viewsQ: How to return only one column
People I have the following query made. $ent->createQueryBuilder('t') ->select('count(t.id)') ->join('t.categoria', 'c') ->join('t.noticia', 'n') ->groupBy('n.id')…
doctrine-2asked Joao Nivaldo 1,229 -
1
votes0
answers30
viewsQ: Enable thumbnail via ajax
I am loading an image gallery via AJAX with the fancybox so I need to also put the thumbnails in this gallery as I should proceed? Return of my JSON: [{"title":"caption 1....…
fancyboxasked Joao Nivaldo 1,229 -
0
votes0
answers117
viewsQ: Load fancybox across the screen
Guys, I have an iframe on a page of mine that has some images inside. I need to shoot the fancybox in these images but it has to occupy the entire screen of the page and not the total space of…
fancyboxasked Joao Nivaldo 1,229 -
0
votes2
answers214
viewsA: UPLOADIFY plugin does not send MP3
The problem was not really in the Plugin, but in the file size limit. I increased the file size from 3 to 20 megas and that’s all right. Thank you
jquery-pluginsanswered Joao Nivaldo 1,229 -
0
votes2
answers214
viewsQ: UPLOADIFY plugin does not send MP3
Personal use the plugin UPLOADIFY to send files, but I just discovered that it is not sending when the file has the extension . MP3. If I give a var_dump($_FILES) it comes back empty to me when it…
jquery-pluginsasked Joao Nivaldo 1,229 -
1
votes1
answer96
viewsQ: Charset conversion
I have a site to develop for a client and his Mysql database is like this: Database Properties: Character set: latin1-cp1252 West European; Collation: latin1_general_ci The tables are all like this:…
mysqlasked Joao Nivaldo 1,229 -
0
votes0
answers146
viewsQ: Screen-up effect
Personal as I do this paralax effect of climbing the screen by overlaying other. Ex. Manutti Just scroll your mouse and you’ll see the screen go up and pass over the central banner. Editing: I read…
-
3
votes0
answers206
viewsQ: Run Angularjs in SILEX project
Guys I have a backend all made in Silex running perfectly, then my client sent me the frontend made in Angular, as I never used the Angular like to know where I put the htmls, JS, CSS of this…