Interesting questions
-
1
votes1
answer5762
viewsUnboundlocalerror: local variable 'adversario_1' referenced before assignment
I have the following code: def aleatorio(): from random import random a = random() return a def torneio(): canditado_1 = aleatorio() while canditado_1 <= 0.5: canditado_1 = aleatorio() if…
python-2.7asked 9 years ago Danilo 447 -
6
votes3
answers475
views -
0
votes1
answer249
viewsError while trying to create a Controller or Apicontroller
I created an empty Asp.Net Core 2.0 project (no scaffold). DDD model and etc. However when I try to create my controller, whether inherited from Apicontroller or Controller, it gives error:…
-
0
votes1
answer243
viewsHow to add Sender parameter in thread onterminate?
I have a thread that performs a action and in onterminate performs a secondary process. It works that way: procedure qualquer; var Thread: TThread; begin Thread.CreateAnonymousThread( procedure()…
-
0
votes1
answer278
viewsMongodb - Add documents that have a certain value within an array
Hello, thank you for your attention. If I have left any questions, please let me know. I found a problem that is driving me crazy. I have the following collection: { "_id":…
-
0
votes1
answer46
viewsObjectify does not return query with a simple filter
I am using Objectify 4.0.1, and cannot query with a simple return value filter. My class is this: @Entity public class Jogador implements Serializable{ @Id private Long id; private String nome;…
-
0
votes1
answer42
viewsUndefined index in SELECT with INNER JOIN in PHP table
I made a PHP code that makes the INNER JOIN of 4 tables, only in the other PHP code that is inside a <table> several mistakes are happening. Error Notice: Undefined index:…
-
3
votes2
answers1169
viewsSave form data in session
I created an access form for my administrative area, using a tutorial by Microsoft. Now I need to retrieve the login that he typed to enter and show it on an administration page, and also to make…
-
3
votes1
answer424
viewsCustomize List within Admin Panel - Wordpress
I am in a project, I need to make some changes exactly within the Wordpress panel. More specifically on a page that lists a specific list of posts. I need to add a custom search field with a…
-
1
votes2
answers162
viewsCreating a link from one site to another in cakephp
I’m having a problem, I’m creating a button, which is on an X site, but the controller the action of the link is on the Y site. My problem is that when I click the button, it references the…
cakephpasked 11 years ago Michel Henriq 647 -
1
votes1
answer1258
viewsHow to fix the percentage on top of the chart using Chartjs?
I have the following chart: var chartData = [{"visitor": 39, "visit": 1}, {"visitor": 18, "visit": 2}, {"visitor": 9, "visit": 3}, {"visitor": 5, "visit": 4}, {"visitor": 6, "visit": 5}, {"visitor":…
-
2
votes1
answer237
viewsHow to sort an array by the frequency of appearance of each element?
Not to delay too much I go straight to the point, I am trying to make a program for an exercise that possessed the following instruction: Build a function int ordenaFreq(int v[], int n) efficient,…
-
1
votes3
answers21331
viewsInsert image into database
What type of variable do I use to store an image in the database? And is there a specific command for this? or just enter as any record? I have a product table with the fields: code, name, price,…
-
0
votes0
answers14
viewsTDD with Jest and sequelize - POSTGRES Migration error for SQLITE
I am implementing TDD with Jest in a Node with express application, my database is POSTGRES and I have several sequelize Migrations already configured, and for my test scenarios I am running these…
-
-2
votes1
answer83
viewsHow to print only vowels contained in a string?
Implement a Python function that takes a string as a parameter and prints the vowels of that string. Example: string univesp must print out the characters 'u', 'i' and 'e'. I managed to do it here,…
pythonasked 5 years, 7 months ago halbuquerque 11 -
0
votes1
answer100
viewsChange border-color according to the value of a jquery variable
I have a form and want to change the color of the border-color to red if the user/email has already been registered in my database. I tried something like: <script> $(document).ready(…
-
9
votes2
answers2120
viewsWhat’s the difference between "this" and "$Scope"?
In the AngularJS we use $scope to share information between the domains of a controller. There is also the syntax Controller as which allows us to use the this to the same end. With $scope: function…
-
2
votes0
answers18
viewsHow to enable katex symbols in latex rendered via mathjax?
In the company where I work we have a content production team that writes all the content in Notion using the Equations functionality that they provide. To parse this content we create a lib which…
latexasked 5 years, 2 months ago Bruno Mello 21 -
2
votes1
answer99
viewsHelp with grandfather, father and grandson relationships
I am learning and enjoying using the Standard, but I have some doubts about relationships and how to get the result I want. have the tables: TB_FORMULARIO - ID_FORMULARIO - NO_FORMULARIO TB_CAMPO -…
-
-5
votes1
answer1111
views