Posts by Lucas Blaschi Gameiro • 110 points
10 posts
-
0
votes2
answers41
viewsA: Within a method belonging to an object, the this of the called function does not point to the object
This is the default behavior of the language. This behaves differently in js than in other languages. Here’s a good link explaining the differences:…
-
0
votes1
answer1392
viewsA: Curl php is not working
Apparently the site of the plateau has a user agent check to answer... making the Curl from my machine it does not work but passing a browser user agent it responds correctly. Ex via terminal: curl…
-
1
votes1
answer228
viewsA: How to deploy without changing the contents of a folder on the server?
The upload folder should be removed from the repository and inserted into . gitignore (git ignore does not work if the file is already in the repository) public/uploads/* After removing vc creates…
-
0
votes8
answers7818
viewsA: Check if variable contains a well formatted PHP email address
I recommend using the following function implementing RFC 822. Very good and easy to use: <?php # # RFC 822/2822/5322 Email Parser # # By Cal Henderson <[email protected]> # # This code is…
-
1
votes1
answer86
viewsA: Using a FB.Api within another FB.Api
What happens is that the Divs are not yet in the gift when you do the "Document.getElementById('Friend'..." and with it the var divFriendsPost is empty. Therefore, if you insert the newline into the…
-
3
votes4
answers1259
viewsA: Git merge between branches with submodules
The interesting thing in this case is whenever you make a change, create a branch from master because then you can merge with any other branch without taking the submodules. Staying: master |-----…
-
1
votes4
answers1175
viewsA: Function to expand list
The problem is that the for does not iterate in the chars but only with number. To do what you want I believe it is easier to do so: function expandirTudo() { var letters =…
-
2
votes2
answers3169
viewsQ: Wordpress plugin for uploading large files
I’m developing a wordpress blog for a client (who has little experience with computer and internet). In this blog, videos and zips files will be available for download. Thinking that these files can…
-
0
votes2
answers388
viewsA: How to remove table of results from a Cakephp find()?
In giving unbind, you fully remove the relationship of this model during execution. I recommend selecting data in 2 ways: For direct associations, you can pass recursive together with Fields and…
-
1
votes2
answers131
viewsA: In Cakephp associations, how do you change the relationship key?
Make sure you’re not confusing what should appear on foreignKey. As the cake manual shows, the model should look like this: class Profile extends AppModel { public $belongsTo = array( 'User' =>…