Posts by michelmfreitas • 619 points
34 posts
-
-1
votes6
answers14224
viewsA: Distribute list of <li> in two columns
Correct solution: ul { -moz-column-count: 4; -moz-column-gap: 20px; -webkit-column-count: 4; -webkit-column-gap: 20px; column-count: 4; column-gap: 20px; } Reference:…
-
1
votes1
answer163
viewsQ: Eclipse keeps dropping connection to remote server (NET Virtua)
I work with eclipse remotely connected to a server. Recently, I changed the internet from Vivo (former GVT) to NET. After switching, the eclipse connection to the server does not persist - drops…
-
0
votes1
answer127
viewsQ: Data typing
all right? Putting into practice what I learned in angular/Ionic, I came across some doubts: 1- I made an ion-select with a list of states coming from firebase. When I typed the model States, be in…
-
1
votes0
answers29
viewsQ: Rewrite URL in Wordpress
See if they can help me. I have a URL like this: http://www.site.com.br/portfolio-site/ilha-de-manhattan I wish she’d stay like this: http://www.site.com.br/ilha-de-manhattan Whereas manhattan…
-
0
votes2
answers264
viewsQ: I cannot enable GZIP cache and compression on my website. Why?
I have a client site to optimize on Wordpress. He was scoring 32 and 34 on the mobile and desktop test at Google’s Pagespeed Insights, respectively. I improved some items and the grades went up to…
-
2
votes1
answer79
viewsQ: Pick all levels of product categories
I have a question. I have a table of categories: CREATE TABLE `categorias` ( `id` int(10) UNSIGNED NOT NULL, `parent_id` int(10) DEFAULT NULL, `lft` int(10) DEFAULT NULL, `rght` int(10) DEFAULT…
-
0
votes0
answers120
viewsQ: How to access DOM element from within the Clientesdao.js model?
I am making a query to the database and, to display the result in a #state element of the form, Nodejs does not recognize Document.getElementById('element'), nor jQuery. Error: ReferenceError:…
-
2
votes3
answers887
viewsQ: FIREBASE + NODEJS error: Firebase App named '[DEFAULT]' already exists
I have a CRUD made with NODEJS + EXPRESS, using FIREBASE. I add a record normally, but when I add the next one, it gives me the error: [DEFAULT]: Firebase: Firebase App named '[DEFAULT]' already…
-
1
votes1
answer813
viewsA: Problem loading static files on routes with nodejs / expressJS
Solved, the problem was to insert the "/" before the path, searching at the root and not taking the relative path.
-
0
votes1
answer813
viewsQ: Problem loading static files on routes with nodejs / expressJS
Programming my first system I came across a little problem... I am creating a client system and changed the structure of the views folder as follows: /app /views /customers ejs customers. add ejs.…
-
0
votes1
answer103
viewsQ: Cakephp: Problems with routing and paging
I have a problem with the routes of CakePHP. I have the following URL: http://www.nomedosite.com.br/Produtos/index/61/789/ And it works normally. The problem is when I go to the second page:…
-
0
votes1
answer135
viewsQ: I can’t set up remote GIT on the server
I can’t configure GIT to climb the server. I started git locally and set up GIT REMOTE (apparently) right, following some tutorials found on the web. On the server, I created the folder where the…
-
4
votes2
answers4167
viewsQ: Upload files with AJAX
I am unable to upload some files with AJAX. I need to send 3 files with dynamically generated inputs, so I didn’t use the Multiple attribute. Firing the event, I get to xhr.send(files), which does…
-
0
votes2
answers61
viewsQ: Events do not work after fired once
I’m doing a CRUD with JS and localStorage. However, when I do an inclusion or an exclusion, when trying to click the buttons for this the events are no longer triggered. Can you explain to me why?…
-
1
votes1
answer404
viewsQ: How to set up remote GIT on Amazon AWS?
I made an account on AWS and I’m having trouble organizing and configuring repository files with GIT. I already have APACHE, PHP, MYSQL, and GIT installed. I created a /var/git folder to organize…
-
3
votes1
answer3256
viewsQ: Function . click being executed twice
I have a $(".btn-buy") function. click() which, when I click, runs twice. I can’t solve the problem. I’ve already searched the whole code and it doesn’t have duplicity. Which could be? Function:…
-
1
votes0
answers100
viewsQ: Authentication on Facebook with Javascript
Hi, I’m having a little trouble studying Facebook Login by JS. Testing the permissions, I went to my Facebook profile and withdrew the permission 'user_friends'. When entering the page again, it…
-
0
votes1
answer2372
viewsQ: Git/Github problem - large files
I’m having a little trouble creating and uploading a git repository. He tried to upload a file larger than 100.0MB and Github notified me of the restriction. However, I went to the folder and…
-
2
votes1
answer6836
viewsQ: I cannot call a function with ng-click
I’m learning Angularjs and I have a problem that I can’t solve. I have a function inside a controller that’s inside a module. This function is responsible for mounting an accordion element with…
-
0
votes2
answers4914
viewsQ: How to get value from a form with Angularjs?
I’m starting with Angularjs and a question has arisen that seems to me to be simple. I’m making a shopping cart (just for learning) with the little I’ve learned (ng-controller, ng-repeat, ng-model,…
-
2
votes1
answer579
viewsQ: Rationale: How does a friend localization app work?
I am studying mobile development and painted me a question: how works an app that locates friends on the map in real time? Example: An app that shows on the map where your friends are who also has…
-
0
votes1
answer28
viewsQ: What is Fauxgap.js for
all right? After seeing some articles on mobile dev, much was said about a facilitator file for emulation called fauxgap.js What exactly does it do? Emulates Cordova and phonegap js in the browser?…
-
2
votes2
answers3843
viewsQ: Redirect site to another server via DNS
all right? I have a question. I have two servers: Locaweb (Windows Plan) and Hostgator (Linux Plan). In Locaweb’s plan are the emails and files of an internal system of the company made in ASP. On…
dnsasked michelmfreitas 619 -
3
votes1
answer3088
viewsQ: Back repository to previous state
I have a project that we use GIT for versioning. However, one of the programmers uploaded a wrong version to the remote server, gave commit, push and several commits and pushs. Then the site gave…
-
3
votes1
answer1829
viewsQ: Hide domain directory using htaccess or cakephp router
I am having trouble creating a setup on . htaccess to hide a folder from my site. My domain has the following structure: www.site.com.br/cake , where are the files and folders referring to the…
-
6
votes1
answer4297
viewsQ: Configure FTP on AWS
need to configure FTP to access the folders inside /var/www on a server in AWS, using Filezilla. Can you help me?
-
2
votes1
answer288
viewsQ: Recursive in Cakephp - Explanation
I would like to know, for example, how the recursive cakephp. $this->Model->recursive=2; What he does exactly, in practice?
-
5
votes1
answer697
viewsQ: What are the packages?
I’m starting with Phonegap and creating a project has the following structure: phonegap create helloWorld com.dominio.pasta HelloWorld But I never understood about this package. Is it a reverse URL?…
-
4
votes1
answer1218
viewsQ: Show products from 2 categories on page (Woocommerce)
I have a question. How do I show products from 2 categories on a Woocommerce page, as if it were a filter? I tried to make creating the page with the plugin shortcode, but it did not work:…
-
0
votes0
answers102
viewsQ: Mod_rewrite in Cakephp
I need to change all the URL’s of a website once it’s done. The current URL is in the following structure: www.meudominio.com.br/website/ And I would like it to be removed from all the internal…
-
1
votes0
answers269
viewsQ: Google Maps API: zoom into the group of markers
I have a map where the user looks for points like bakeries, registered supermarkets around an area. I would like, when loading the map, the API to grab all the registered points zoomed in that…
-
0
votes2
answers161
viewsQ: Version Control Help - GIT/ SVN
I joined a company that works with GIT, I worked with SVN, and I’m having some difficulties adapting to GIT. Then I would like to migrate to SVN, since the team are only two programmers. We have the…
-
0
votes2
answers80
viewsQ: CAKEPHP: conditions with AND
I have a question when making a search. The item conditions in my current query is this way: 'conditions'=>array( 'Produto.publicado'=>1, 'Produto.titulo LIKE'=>"%$kw%",…
-
1
votes0
answers65
viewsQ: How to debug (show errors) on a system that uses Mootools?
all right? I don’t know JS in depth, but I need to debug a chunk of code that uses Mootools. When I tell my code to write an array with print_r or debug (from cakephp), I don’t see anything and the…