Posts by Guilherme IA • 1,414 points
91 posts
-
1
votes0
answers26
viewsQ: Imagination-Augmented in practice
I am doing a research on Imagination-Augmented, would you like to understand in practice how this using Tensorflow? I would like to know the recommended functions to work in this way, and the logic…
-
1
votes1
answer67
viewsQ: What to do after preparing a Model?
I would like to understand how I can put into practice in some system, the model I create with Deep Learning or machine Learning. I see several tutorials teaching to create a very simple structure…
-
1
votes1
answer253
viewsA: Display database data when click table row
Ideally you just get the ID of each record of your table and do an Ajax to get the other results. Since you are already using jQuery, you would need to do an ajax in some PHP that queries these…
-
1
votes2
answers45
viewsA: How to add the value of the id attribute and the text of a select from the click of a button event?
You can store the id and Description in the same array and use it later. Following its same structure, I will call it _arrData. _arrData.push({id: _id, descricao: _descricao}); Thus, the key becomes…
-
3
votes1
answer96
viewsA: Doubt about HTML/JS
You can use Angularjs in this case. You can easily, just before anything else add the angular.minjs. in your HTML. A basic example that is already displayed in the home page of the Brazilian…
-
1
votes2
answers6067
viewsA: What’s the difference in instantiating, initializing, and declaring a variable?
Being very simple and objective to your question... Which means "instantiate", "initialize" and "declare" a variable? Instantiate refers to a class. Then you will instantiate in a variable the…
-
1
votes3
answers1244
viewsA: Add button to add fields
I edited your script to make the button work. When you click add +5, it adds 5 inputs. $(function () { var scntDiv = $('#dynamicDiv'); $(document).on('click', '#addInput', function () { for (var i =…
-
2
votes1
answer418
viewsQ: How to change another element with pure CSS?
How can I change another element with Pure CSS, from one element? I tried to do this but it didn’t roll. I don’t know the CSS selectors and wonders in depth. input { display: block; transition: top…
-
1
votes0
answers41
viewsQ: Firebase Messaging with Django
I am a long time already getting caught up with it. After hours and days I could see a light at the end of the tunnel. I’m using a plugin for Django, this one: https://github.com/xtrinch/fcm-django…
-
0
votes1
answer118
viewsA: Angle variable scope not updating
I honestly did not understand what happened. My solution was to call a function and inside make the change. This way the scope variable changes in every template. HTML <button type="button"…
-
1
votes1
answer183
viewsA: Django - extend admin template
Following the answer of that post, you can use the djangosnippets and extend the admin template in an easy way. See the example: {% extends "admin:admin/index.html" %} {% block sidebar %}…
-
1
votes1
answer118
viewsQ: Angle variable scope not updating
I have a bizarre problem with a variable that I created in HTML with Angularjs. I even tried to instantiate it in Controller to see if that was the problem but no. I have a button that on ng-click i…
-
1
votes7
answers49407
viewsA: How to install PIP in Windows 10?
You need to create a file somewhere (can be on your desktop) with the name get-pip.py and put the code that is at that link. After saving the file, go to the file directory on your CMD and type:…
-
0
votes1
answer74
viewsQ: Problem with Django Cache Page/URL
I found a problem using the @cache_page(60 * 15) Django in my case. The first user to give the first F5, the page will be locked with the DELE user logged in. So even if I sign in with another user,…
djangoasked Guilherme IA 1,414 -
1
votes0
answers88
viewsQ: Using extra field in Annotate Django
I’m trying to add a column called today in a Model with the .extra(), to work on a annotate. I’m not finding it. He’s not finding the field. duration = ExpressionWrapper(F('today') - F('pub_date'),…
-
1
votes1
answer95
viewsQ: Reverse loop Selenium python
I’m trying to do a reverse loop on my list of li in Lenium and it’s not rolling. I’ve tried one reversed in the list but error. I want to loop the last one li until the first. For example, in the…
-
1
votes1
answer89
viewsA: Invoking a function by passing arguments within $Scope does not work
If your intention is to display exactly when the angular $http return happens, you can pass in the same Response. angular.module("app",[]);…
-
0
votes2
answers2400
viewsA: Putting a responsive video on my web page
See the example below if it meets your need. Video at the top and below the content of the site. css style. video { position: absolute; top: 50%; left: 50%; min-width: 100%; min-height: 100%; width:…
-
0
votes1
answer275
viewsA: Scrape list on website with beautifulsoup
Dude already tried to use Selenium? pip install selenium brew install phantomjs Code that does the same thing you need. from selenium import webdriver browser = webdriver.PhantomJS()…
pythonanswered Guilherme IA 1,414 -
1
votes0
answers388
viewsQ: Django MEDIA_URL is not working
Until yesterday it was running smoothly the route /media/ in DEV, and I went to make a production deploy and a production dump for my environment to match, and started giving this problem. I also…
-
0
votes1
answer76
viewsA: How do I fix this error when I import requests?
You need to use version 2.7 of Python. Besides, the above error is not from the import of requests but pyopenssl. Do Pip install for python 3. Remove the requests you installed and run the command:…
pythonanswered Guilherme IA 1,414 -
1
votes1
answer5904
viewsA: CRUD with Javascript
To remove and change you will do the same process by passing the ID. Remove To remove, quite simply, Voce will click the record of the table that Voce clicked, and send the selected ID. That way…
-
0
votes1
answer28
viewsA: Size in various screen sizes
You need to use percentages instead of fixed pixels when developing your CSS. For example, if you use width: 100%, Voce will always pick up 100% of the screen width. Take this example from w3school:…
resizinganswered Guilherme IA 1,414 -
1
votes2
answers1093
viewsA: Group by week
Matheus, I’ve assembled a code where I create a dictionary with the data that Voce passed there, and create 2 methods: one to add the exact week of the year on each object of the user list, another…
-
3
votes1
answer12189
viewsA: How to create an executable from python
You can use cx_Freeze. pip install cx_Freeze Create a file called setup.py in the same directory as your file (example test.py) Inside the setup.py file you play the code I’ll leave in end of…
-
3
votes2
answers1344
viewsA: How to Create an Auto Increment in Django that is not pk
You can use the Django-Sequence-field. Take an example from him: from sequence_field.fields import SequenceField # Create your models here. class TestModel(models.Model): sequence = SequenceField(…
-
-1
votes1
answer154
viewsA: Sort queryset Django by priority
I found a solution but I don’t know if it’s the best one. To tell you the truth shouldn’t be because I have to make 2 querys to bring 1 list. I create 2 querysets, being the first for the exact…
-
2
votes1
answer154
viewsQ: Sort queryset Django by priority
I am creating a search system on my platform. I do a search for the title of the content, description and tags within it. Follow the code: questions = Question.objects.filter(reduce(lambda x, y: x |…
-
-1
votes1
answer104
viewsA: "Column 'model_id' cannot be null" Django Cascade
I identified the problem. I had the 2 Foreign key (Userphone and Useraddress) inside the Customer table as Foreign key. Even using the on_delete=models.CASCADE wasn’t working. I was just taking…
djangoanswered Guilherme IA 1,414 -
2
votes1
answer89
viewsQ: Django collectstatic AWS S3
I have a question regarding collectstatic. I’m using Amazon Free Tier and I realized that I exceeded the use limit of S3 PUT because I did several collectstatic. I was one day developing in Mazon’s…
-
0
votes1
answer104
viewsQ: "Column 'model_id' cannot be null" Django Cascade
I’m having a problem deleting 2 Foreign Keys from a Foreign key. I’ll explain further: This is the hierarchy of the credit card model I have: Creditcard Customer Address Phone I’m trying to delete…
djangoasked Guilherme IA 1,414 -
2
votes1
answer1521
viewsQ: Files deleted by Django Migrations
I’m having a constant problem. As I am working with several branchs in a project, sometimes I go back in an old branch, bring updated branch to the old one so I don’t have to keep creating old bank…
-
1
votes1
answer212
viewsA: Facebook Messenger API does not respond to new users
I found out what the problem was after a few days of digging. Nowadays it is not just to mark as public and think that everything is solved. It is necessary to say which permissions you need and why…
-
0
votes1
answer212
viewsQ: Facebook Messenger API does not respond to new users
I have an APP on Facebook Developers, a BOT for Messenger. It responds to testers and admins. But not for new users. My application is already public, already passed by approval. I saw many with…
-
-1
votes1
answer154
viewsA: Siri Voice Command Manager
OS X Speech Synthesis Manager and an Osx Speech Manager. Take a look at this, I believe it’s what Voce is looking for: https://ankiatts.appspot.com/services/say…
-
1
votes1
answer52
viewsA: How do I send an ID information via email?
To get this via POST, you need to submit through a form. The correct thing would be for you to get the value of this span in another way, because the form normally uses inputs, selects, checkboxs,…
-
1
votes1
answer98
viewsA: How to create a Products table that has several prices?
Dude, you do a for or foreach picking up the products and another foreach to get every price. Would that be right? Try following this example. Hugs var produtos = [ { id: 1, produto: "Produto 1",…
sqliteanswered Guilherme IA 1,414 -
1
votes1
answer688
viewsA: Convert icone checkbox to icone bootstrap boot
Take a look at this man: Bootstrap Checkbox The bootstrap checkbox is not that magic you’re thinking about. There are other components that you can use as an alternative to checkbox, but you will…
-
-1
votes5
answers150
viewsA: Doubt with image positioning
Dude, you need to set her size first. By setting the size, you can apply the margin: auto; that it will be centralized. .relative { width: 20%; margin: auto; }…
-
11
votes5
answers7326
viewsA: Is Javascript an Object-Oriented language?
Yes, POO can be used in Javascript. But just like in PHP, you may not use. Object-Oriented Programming is a programming paradigm that uses abstraction to create models based on the real world. POO…
-
2
votes2
answers149
viewsA: Fullpage JS, running on different pages
Dude, are you just going via Cope to another page or is this going on another controller? From what I saw, it allows only 1 load per page. I don’t know if it’s a load per controller. Now the problem…