Posts by Gilson José • 89 points
8 posts
-
0
votes0
answers13
viewsQ: Cakephp returns error in Sqlite database Cannot describe users. It has 0 Columns
Please, Using Cakephp 4.2.5, I have an sqlite database of 3 tables and are not empty. When I do on controller: $usersTable = TableRegistry::getTableLocator()->get('Users'); $query =…
-
0
votes1
answer16
viewsA: In D3.geo, how to obtain the data of a projection?
As I was in great need, I decided to use a solution not ideal but functional. In D3.geo there is a method called d3_geo_pathBuffer(), which contains the contents of the return projection. I simply…
-
-1
votes1
answer16
viewsQ: In D3.geo, how to obtain the data of a projection?
I am using only D3.geo, not the full D3 library, but only D3.geo. Configure projection and upload Geojson Multipolygon data. I get back the data as follows projectionVale = d3.geo.stereographic()…
-
1
votes1
answer50
viewsQ: What is the behavior of two anonymous functions in an object?
Explain: StarGate = {}; StarGate.c = {}; StarGate.c.m = function(t, e){ return "teste1"; },function(g){ console.log('teste2'); }(StarGate.c.m.prototype); I have doubts because, what would be the…
-
2
votes2
answers641
viewsA: Nginx with SSL Connection Error
How I was testing settings in Nginx, in the configuration file default which gets into /etc/nginx/sites-available/default already had a configuration for ssl for another domain. Probably with the…
nginxanswered Gilson José 89 -
2
votes2
answers641
viewsQ: Nginx with SSL Connection Error
I created an SSL certificate to test on the server and configured in Nginx as follows: # HTTPS server # server { listen 443; server_name kriaki.com.br; root /home/ubuntu/public_kriaki; index…
nginxasked Gilson José 89 -
2
votes1
answer156
viewsQ: Cakephp via Shell returns error: class Helloshell could not be Loaded
I configured and installed everything with respect to Cakephp to use via command line in Ubuntu. I created and saved the following: class HelloShell extends AppShell { public function main() {…
-
1
votes2
answers131
viewsQ: In Cakephp associations, how do you change the relationship key?
In Cakephp associations by default it always does the relationship being the model name in the singular followed by _id, i.e., model_id. It is possible to change this relationship key to another…