Posts by FReNeTiC • 1,028 points
22 posts
-
1
votes1
answer500
viewsA: How to redirect url with argument to another page in Django? (Updateview, Genericview)
According to Django’s documentation 1.11 - https://docs.djangoproject.com/en/1.11/ref/urlresolvers/#Reverse-Lazy - you can specify the URL fields using the variable kwargs. success_url =…
-
0
votes1
answer193
viewsA: Python and Django online course creation platform
What you are creating is a content management platform (Content Management System - CMS). I know these free and open source applications made in Python/Django Django CMS -…
-
1
votes1
answer35
viewsA: Python3 does not accept file.name
According to Python3 documentation (https://docs.python.org/3/library/glob.html) glob. returns a string list. Strings do not have the attribute .name. This is the error of your code. Instead of…
python-3.xanswered FReNeTiC 1,028 -
1
votes1
answer46
viewsA: How to redeem from full name database and show only first name?
What you want is to get the first name before the first white space. In PHP there are a few ways to do this. The simplest and most common solution to this problem is using EXPLODE…
-
0
votes2
answers61
viewsA: Color of text in direct mail (gmail) already read
Unfortunately not. This is standard Gmail operation. Even if you submit a CSS that tries to solve this problem, the Gmail CSS will overwrite your.
-
-3
votes2
answers99
viewsA: Minimize CSS file with Grunt
You’re on the right track! In this your code the only thing you are doing is copying your files from one folder to another. Now missing "minificar", which is a process you will carry out in those…
javascriptanswered FReNeTiC 1,028 -
2
votes2
answers168
viewsA: Inclusion of external files . js
The name of it is CORS. Browsers and servers by default block any request that has not come from the original server. You can configure your server so that it can accept requests from sites that it…
-
7
votes1
answer1571
viewsA: Composer - What is it and what is it for?
The Composer is a dependency manager for PHP. It is for PHP as well as npm is for the NodeJS, or the Bower is under development frontend, or the pip is for Python... By using Composer you can define…
-
3
votes2
answers76
viewsA: How to install Grunt offline?
To install the Grunt, so any other dependency npm you need to be connected to the internet. Once installed the Grunt will only need internet if any task described by you need this connection. As a…
-
13
votes2
answers3152
viewsA: What is CSRF attack and what damage can it cause?
What a CSRF attack? It is a type of attack to damage or steal a user’s data on a web service. Usually a malicious website, widget or application takes advantage of the user being logged in to some…
-
-1
votes3
answers1586
viewsA: Composer does not install packages
Probably Composer is trying to install everything, but its internet is slow, and then it is taking too long to download all packages. Rotate the remote with -vvv to see what’s going on: composer…
-
-2
votes1
answer67
viewsA: Change in GIT log
In my humble opinion, I wouldn’t mind that. Even so, I recommend you take a look at this Git date and time article. Edit: Apparently I wasn’t clear enough, having my answer negative. The link I…
-
0
votes2
answers87
viewsA: Mysql PDO array with Json error in view
Maybe using array_values: echo json_encode($autocomplete -> array_values(fetchAll(PDO :: FETCH_ASSOC)));…
-
2
votes1
answer460
viewsA: Require Once / Include no Laravel
You should change your PHP settings in the file php.ini. Change the value of allow_url_include for 1.…
-
3
votes1
answer1284
viewsA: php vs nodejs performance on websockets server
I’m right or wrong in this idea? You are partially right, or partially wrong. Nodejs works with a single process, which executes a loop de eventos. Every message exchanged, connection that opens,…
-
5
votes4
answers4351
viewsA: How and why use MVC in PHP?
How and why to use MVC in PHP? The best link I can give you that will open your mind is this http://symfony.com/doc/current/book/from_flat_php_to_symfony2.html The Portuguese translation can be…
-
1
votes2
answers501
viewsA: Function jQuery called by two distinct elements at once
As you are using a table, do the following: change the row var linha = jQuery(this).parent().parent(); and put that in place: var linha = jQuery(this).closest('tr'); This operation is "cheaper" and…
-
1
votes2
answers1106
viewsA: Using Laravel 4 with Microsoft SQL Server 2008
I took a quick look at Google and, according to the stackoverflow in English, your SQL SERVER NATIVE CLIENT shall be at least version 11 in order to be able to operate with the ODP. Knock yourself…
-
12
votes3
answers4784
viewsA: Why Laravel instead of Yii?
IMHO Laravel’s biggest advantage over Yii lies in the learning curve. Laravel is a much simpler framework to learn, although it contains all the features common to any WEB project. Also, Laravel has…
-
2
votes2
answers148
viewsA: Consultation that feeds grid and subgrid?
First of all it is good to take into account that your models are well connected. To do so, ask yourself: can I get this return using only Django’s ORM? (how did @Adir’s friend respond). If yes,…
django-rest-frameworkanswered FReNeTiC 1,028 -
11
votes3
answers1374
viewsA: Should I use routes or controllers in Laravel 4?
Generally, the tutorials you find on the internet demonstrate small projects, or just snippets of code. In these cases, as the need for organization and project patterns is low, the writer usually…
-
14
votes4
answers640
viewsA: Installable PHP application architecture
What you could do is learn from the examples you quoted. What Wordpress does, as well as other PHP applications (phpMyAdmin, Joomla, Drupal...), is put in a . ZIP (or .tar.gz) all the files that…