Posts by Danilo Favato • 379 points
17 posts
-
1
votes0
answers97
viewsQ: Django + Postfix password reset email is not sent
I set up a server with my application Django and now I’m trying to enable password reset via email using the postfix as an e-mail server. I started configuring my views and testing if everything was…
-
2
votes2
answers650
viewsA: Search refused when registering Digitalocean Host name in the.br record
I managed to solve this problem by running the step three of tutorial before the two. It seems that the register.br before changing the DNS server makes a query to the new server to know if it has…
dnsanswered Danilo Favato 379 -
1
votes2
answers650
viewsQ: Search refused when registering Digitalocean Host name in the.br record
I’m trying to set up my droplet with the domain I purchased on register.br following the tutorial of Digitalocean. In the second step of the tutorial says I have to change the domain servers of the…
dnsasked Danilo Favato 379 -
1
votes0
answers14
viewsQ: Invalidation of multiple caches efficiently in Django
In my project I own the following model: class Item(models.Model): month = models.DateField('month', null=False, blank=False, db_index=True) kg = models.BigIntegerField('kg') tags =…
djangoasked Danilo Favato 379 -
5
votes4
answers10576
viewsQ: To create a folder named after the current date in Windows cmd.exe
What I already have: %date% is the windows variable that stores the current date. When I use echo %date% the value Tue 07/25/2017 is correctly printed. But when I try to do mkdir %date% the created…
-
0
votes1
answer673
viewsA: SQL to count records that have a field
Without the diagram of the tables it is difficult to understand how the JOINS should work, but if your problem is to transpose the first query, you can exchange the CASE WHEN for SUBQUERIES united:…
-
0
votes1
answer3680
viewsA: SQL to count records that have a field with repeated value
The way the data is stored in the database makes this kind of query very difficult because the data is not normalized. The code below performs your query, but it is necessary to know beforehand how…
-
1
votes2
answers151
viewsA: Filter filenames in uppercase and with a particular snippet at the end
Expresion REGEX (([A-Za-zÁÀÂÃÉÈÊÍÏÓÔÕÖÚÇÑáàâãéèêíïóôõöúçñ])([A-Za-zÁÀÂÃÉÈÊÍÏÓÔÕÖÚÇÑáàâãéèêíïóôõöúçñ]{3,}))|([A-Za-zÁÀÂÃÉÈÊÍÏÓÔÕÖÚÇÑáàâãéèêíïóôõöúçñ]) Expression of substitution \U$2\E\L$3\E\L$4\E…
regexanswered Danilo Favato 379 -
3
votes1
answer568
viewsA: Unicode and UTF-8
Unicode may refer: to the universal standard character set - UCS (Universal Character Set) - defined and maintained by Unicode Consortium or to codepoints identifying the characters in the UCS. UTF…
-
1
votes2
answers409
viewsA: returning python list indexes
From what I understand you are trying to implement the MEDIANA function. In this case when the list of numbers has odd length you return the central element, but when the length of the list is even…
-
2
votes4
answers2768
viewsA: How do I enter a value in every record in a column of a table?
Whereas the field you want to update is called campo: UPDATE categoria SET campo = 3
-
1
votes2
answers37
viewsA: Update table according to column quantity
Considering the "Current Table" = Table1 and "Table of dependent" = Table2 The following consultation makes the "transfer" of the data to be entered. SELECT IDDoFuncionario, (SELECT nomeDoDependente…
-
1
votes3
answers323
viewsA: How to prevent a System.Nullreferenceexception within an if
I had understood your question the first time in a different way. In your case the reason for NullReferenceException is clear-cut and acquaintance by you and is an expected behavior when a tag does…
-
1
votes2
answers60
viewsA: Access the data returned in the success of an ajax request, within a $('form'). on('Submit'...)
This is because the function getDocuments_ does not have return. The return inside the property success is not caught by the assignment of the line let ficheiros = getDocuments_(curso_id);. I…
-
0
votes3
answers323
viewsA: How to prevent a System.Nullreferenceexception within an if
In this case you should separate each of the instructions into blocks of try catch specific. for (int i = 0; i < numberOfProcessAvailable; i++) { var EXIFDirectory =…
-
0
votes1
answer1333
viewsA: Error creating python mkvirtualenv virtual environment 3.6
From the version 3.3 the python comes with the module venv allowing the creation of virtual environments without the need to install additional packages via pip. Just use the command…
-
0
votes1
answer238
viewsA: Typeerror: not all Arguments converted During string formatting
This is because in some part of your code the function reduce is being called with the parameter a being a string. In this case python interprets the operator % not as mod but how formatting…
python-3.xanswered Danilo Favato 379