Posts by juniorgarcia • 1,040 points
34 posts
-
2
votes1
answer580
viewsA: How to work with vueJS search method?
Just you add one v-if in the loop to display the results. If your variable MySearch is with some value, the results will be displayed based on your search. Look at line 34 of the code I made:…
vue.jsanswered juniorgarcia 1,040 -
1
votes1
answer558
viewsA: Python: How are Flask dynamic routes implemented?
Flask breaks down your URL into parts for functions that match it. For example, let’s say you have a URL to view a user’s data which is /user/1. Declare a match match match for that URL would look…
-
0
votes1
answer60
viewsA: Key file Permissions are not correct, should be 600 or 660 Instead of 644
You need to change to 600, no 644. Only the user running the web server must have access to these keys. Start by changing the key property for the user running your server. Go to the folder where…
-
0
votes1
answer47
viewsA: Questions about PDO preparation structure
You should put the query you want to execute. In your case, I understood is the value of $this->ComandoSQL. For example: <?php $result = $conexao->prepare($this->ComandoSQL);…
phpanswered juniorgarcia 1,040 -
2
votes1
answer359
viewsA: Swift: change place button according to the appearance of the keyboard
When the keyboard is displayed or inhibited, you can listen to notifications to process them. In your view controller, sign up to listen to these events as follows: override func viewDidLoad() {…
-
0
votes1
answer101
viewsA: Foreign key with more than 1 value
What you will do is a 1:n relationship, which means a schedule will have n activities. In practice, you need to add a foreign key to the atividades referencing the primary key of your cronograma.…
-
1
votes2
answers892
viewsA: PDO - Which is better: columnCount or rowCount?
It’s not a question of "which is best", it’s functions with different purposes. According to PDO documentation: columnCount - Returns the number of columns obtained in the query result and rowCount…
-
0
votes2
answers42
viewsA: Cronjob with cached file
Looks to me like it’s just a flow problem anyway. If you cannot consider another caching technique (if your system is in fact dependent on this cache medium), the best solution is the one you…
-
1
votes1
answer297
viewsA: Center Absolute sub menu with css
This solution is too complex for CSS. We’ll have to use Javascript to calculate the correct placement of submenus: $( function() { // Armazenamos o submenu numa variável por conveniência var…
-
2
votes1
answer743
viewsA: Laravel x Cakephp
No! Artisan is just an aggregator of commands that help you with some project tasks. See more. As stated in topic 1, Artisan is a command aggregator. You can use it to create parts of your…
-
1
votes2
answers614
viewsA: Request in the url with Laravel
In this case, you must be inserting the Assets the wrong way. When referring to the path of an Asset, you should use the stab asset in your template like this: {{ Asset('css/app_2.min.css') }}.…
-
0
votes2
answers1875
viewsA: Jquery mask does not work
jQuery Masked Input was made to work with text inputs. You are trying to insert a mask into a type field date (which, by itself, does not need formatting by bringing it automatically respecting the…
-
1
votes2
answers522
viewsA: The script loads before ng-view has loaded (Angularjs)
If you do not set the dependencies of a module in its creation or in configuration blocks, Angular will load the scripts asynchronously, not ensuring that the desired sequence is followed. Behold…
-
15
votes2
answers1239
viewsQ: What is the difference between *var++ and *var += 1?
I’m writing a feature with the signature: int increment(int *val). My intention is to receive an entire pointer, increase its value in 1 and return that value. The body of my function was as…
-
3
votes1
answer109
viewsQ: Memory allocation and wiping in C - how much should I worry about?
I’m learning C from the book "Use Your Head! C" (damn me). Given a lesson, I need to create a struct calling for "island" with the following code: typedef struct island { const char *name; const…
-
0
votes0
answers472
viewsQ: $Scope does not visually update the data I fill with Javascript
I’m filling in mine $scope via Javascript using the following code: myApp.controller('gruposController', ['$scope', '$http', '$window', 'usuariosFactory', '$timeout', function ($scope, $http,…
-
1
votes2
answers987
viewsA: Angularjs | How to define a boot process for a controller?
I saw that I just called a function of $scope in the directive ng-init that he does what I’m waiting for: <div ng-init="init()"> blah </div> In Javascript: //... $scope.init = function()…
-
1
votes2
answers987
viewsQ: Angularjs | How to define a boot process for a controller?
I have an app full of Ajax that needs to get data via Webservice when the page loads. I’ve already initialized via ng-init but I don’t know how to have the controller "load" and execute the code…
-
1
votes1
answer843
viewsQ: Bootstrap 3 | How to leave the last column always more to the right?
I need to leave the last column of my table (the one that has the glyphs action) always to the right: <script…
-
2
votes1
answer117
viewsQ: Making a Factory return data from an Ajax request
I’m trying to make a Factory that returns the JSON of an Ajax request that I’m making, only, I think because it’s asynchronous, the container with the users always comes back empty. So much so that…
-
2
votes2
answers522
viewsQ: Recovering value in the pivot table as property of a relationship part
I have the relationship manyToMany amid Grupos and Usuarios and a pivot table grupo_usuario which stores the keys and an extra field aprovador, boolean, which serves to indicate whether the user in…
-
3
votes2
answers129
viewsQ: Gulp + Bower - How to import Bower installed components for my final project
I’m starting to manage my components with Bower and I’m having a question: I use Gulp to perform tasks like compiling my Less files, concatenating Avascripts, only how Bower components get inside…
-
0
votes2
answers253
viewsQ: Get counter of objects associated with Laravel 5.x
My model Project has n Pieces (which is also a template). I want to add a function or Lazy Property to know how many parts are associated with a given project. Grateful.…
-
2
votes1
answer121
viewsQ: File per folder limit - Django 1.7
Does Django 1.7 provide any upload control mechanism per folder? I say this because when the number of files in a folder gets too large it tends to get slower. An example would be: Every 800 files…
-
4
votes1
answer907
viewsQ: What is the best way to fragment a Django project into apps?
I’m doing a study project to apply what I’ve learned so far with Django. My question is: what is the best way to segment the project in apps? If you want to give an example so that something…
-
5
votes2
answers707
viewsQ: Mysql to Python 3 connector
I’m doing a project with Django and Python 3 but I can’t find the appropriate Mysql connector. The django.db.backends.mysql works, but only for Python 2, and I wanted to avoid using this version. On…
-
1
votes1
answer916
viewsA: Understanding the Django 1.7 permissions system
I figured out what was going on. The problem was just that I was starting the interactive terminal shell using Python 3, that way: python3 manage.py shell When I opened using the command ./manage.py…
-
3
votes1
answer916
viewsQ: Understanding the Django 1.7 permissions system
I have an app called forms_and_models which I use for study. In documentation of Django 1.7 says that: Assuming you have an application whose app_label is foo and a model called Bar, to test basic…
-
5
votes1
answer376
viewsQ: In Django why does the is_authenticated method always return True?
I saw that the documentation indicates the method is_authenticated as being responsible for telling templates if there is a logged-in user. I also saw in the method code that it contains only the…
-
3
votes3
answers1207
viewsQ: What’s the difference when calling a function with parentheses and without in.py urls with Django 1.7?
In mapping my.py urls I use from common functions to class-based views. I want to know the difference between calling the view with or without parentheses, given that if I have the input url(r'^$',…
-
5
votes1
answer1327
viewsQ: How to set date formats in Django 1.7 for the whole system
Is there any way to change the display settings and/or date formatting at system level?
-
7
votes1
answer1327
viewsA: How to set date formats in Django 1.7 for the whole system
First so that the time/date setting is done manually, enter the file settings.py and change the value of USE_L10N for False, otherwise Django will read from its default files and set the date…
-
2
votes1
answer430
viewsQ: What is the best way to organize views in Django?
I have views.py in my study project where I group it from methods to represent views (methods that return Httpresponse), to generic views based on class (such as Detailview, Listview). I was…
-
7
votes1
answer161
viewsQ: Is it a good idea to map Urls that delete GET entries?
I’m studying Django and wondered if it’s really good practice to set up removals URL via GET, for example: http://meusite.com.br/usuario/deletar?id=10. Is this really good practice? Since some HTTP…