All Questions

Filter by
Sorted by
Tagged with
0
votes
0answers
3 views

como evitar esta circularidad en tablas, si necesito que al alumno y profesor se les asigne un campus y una licenciatura

enter image description here necesito saber como quitar la circularidad entre las tablas o dejar autónomo el catalogo de campus_carreras
0
votes
0answers
5 views

GIT: Can't add files after being forced to pull

I made a ton of changes to my files and added a bunch of new files. I was able to add and commit those changes. When I tried to push I got: failed to push some refs to remote. After I got that I did a ...
0
votes
0answers
3 views

Mapbox: Display multiple styleURLs at the same time on a MGLStyle (create layer using styleURL)

I am trying to add multiple styles to a Mapbox MGLMapView. I understand this is not directly possible as MGLMapView.style only takes a single styleURL so I have been trying to get around this by ...
0
votes
0answers
5 views

The difference between malloc and mmap

I'm Trying to implement malloc in c and I have to use mmap but I still don't understand what is the difference between malloc and mmap (MAP_ANNON) both of them used to allocate memory so why we use ...
0
votes
0answers
6 views

Finding if non-negative integral solution exists

Given K is integer between [1,19000] ,find the largest K for which equation 11x+14y+23z=K doesn't have a non -negative integral solution? My approach I tried to write brute force code i.e iterating ...
0
votes
0answers
2 views

Cypress not working with 'text/html; charset=utf-8'

I know Cypress is usually working with text/html. We're about to write Cypress tests for OTRS. I have written some example tests yet for public websites, everything worked well. Now I have the problem ...
0
votes
0answers
5 views

Options to load DLL in PHP (7.0) at run time?

I'm building small application to collect data. For data collection PHP is used, for data storage PostgreSQL is used. PostgreSQL is included so I have full control over it. The PHP for collection is ...
-1
votes
0answers
6 views

I have an identation error and I don't know how to solve it with python and tkinter [duplicate]

I would like you to help me with an indentation problem. The fact is that I did 3 functions the first function is a second window in tkinter the second is a button to save data in Mysql and the third ...
0
votes
0answers
4 views

How can I handle async task cancel when I'm calling it from while condition?

I have a loop like this inside a try-catch block: try { while ((receivedBytesCount = await tcpClient.GetStream().ReadAsync(rxBytes, 0, rxBytes.Length, tcpCancellationSource.Token)) != 0) { ...
0
votes
0answers
5 views

How to use the pares command options function

I need some help with this and I’m lost. I am not good at bash scrips .. here’s what I have to do. Your script must be named myuseradd.sh Implement the print_usage function, which will print out the ...
-1
votes
1answer
14 views

How to get 5 random number from 0 to 10 that all are different? php

suppose i have an array $array = [2,55,66,446,98,353,5435,36,335,35,33,33,33,33,33,333,333]; I will need 5 random indexes $random1 = rand(0, $array.length() -1); $random2 = rand(0, $array.length() -1)...
0
votes
0answers
6 views

Kivy [Window] Unable to find any valuable Window provider. ( I tried other answers but it did not work) Thanks in advance?

Hi guys I have a problem when trying to run a simple code in vs code for an app using Kivy Lib I already installed all the components to run kivy the code I use : import kivy kivy.require('1.11.1') # ...
0
votes
0answers
9 views

How to store a specific Firebase Firestore “URL” in a function?

I have stored the doc.id in a function, but I have to store the whole "url" in the function. How can I do this? The code below shows what I've tried, and I know it's wrong so any help is ...
-3
votes
0answers
17 views

How to use external files in python [closed]

I tried to add some external modules to my code but it gave me an error, here's my code: import testm print(testm.names[2]) and here's the code of the external file (simple example): names = ['Riad',...
0
votes
0answers
11 views

Allow only numeric, minus, dot, comma input

Looked in the forum and my variant must be unique. Demo: http://jsfiddle.net/alumic/k42f7vp0/37/ $('input[type="text"]').keypress(function(event) { if (event.which < 44 || event.which &...
0
votes
0answers
6 views

VBA for to convert Excel to PDF using landscape format

I am trying to convert a number of excel files in a folder to PDF. I have created a macro that converts the excel files to PDF and formats the the first page. I am trying to get it to format it for ...
0
votes
0answers
6 views

php jquery ajax work with multiple forms and files

i'm not sure whats the right title for this i have two inputs with two button for them in index.php <form action="<?php echo $_SERVER['PHP_SELF'] ?>" method="POST"> ...
0
votes
0answers
11 views

Why is my array doing the push function before the console.log before it is supposed to in the code? [duplicate]

I am experiementing with an array function, and my code looks like this: var myArray; myArray = ["a","b","c"]; function setup() { console.log(myArray); myArray.push(&...
0
votes
0answers
5 views

How to display human readable text below the barcode using barby gem in ruby on rails

I am using Barby gem in rails project to display barcode. I am able to display barcode , However its not displaying human readable text. How do I display the text below the barcode? Any help is much ...
0
votes
0answers
3 views

How to crop the given Irregularly shaped object along its outline in OpenCV

I have been working on a code where an image is given as shown I have to place this knife onto some other image. The condition is that I have to crop the knife along its outline and not in a ...
0
votes
0answers
5 views

Trying to understand why msal fails the first time, reloads and then works

I'm playing with msal@1.4.3 and react-aad@2.3.5 for authenticating my admin application. I have it mostly working on the FE, but trying to iron out a few things before I start working on the BE ...
0
votes
0answers
4 views

IValidationAttributeAdapterProvider.GetAttributeAdapter never called

Im using dotnet core 3.1.403. Here, seems to be working: ASP.NET Core custom validation attribute localization http://blogs.msdn.microsoft.com/mvpawardprogram/2017/01/03/asp-net-core-mvc/ My Adapter ...
0
votes
0answers
14 views

Parsing string with custom object notation to JavaScript object [closed]

I'm writing JavaScript and I've got some strings (imported from txt files) with a pretty simple object notation like the following: foo = { #comment 12.3.4 = { key = 567 } 234.56.7 = { key = 89 }...
1
vote
0answers
10 views

Can anyone verify my O(n) for my recursive function for leetcode?

After i complete a leetcode question i try to also comment the O(n) notation for practice. For this problem, I got O(log n) from my research execution time halves for each time its run. Can someone ...
-5
votes
1answer
24 views

python:Runtime error list index out of range [closed]

When I try to run this code I get a runtime error but I am not able to figure out how I am exceeding the index of the list. n = int(input()) arr = map(int, input().split()) num=list(arr) num1=list(arr)...
0
votes
0answers
2 views

How to update a foreign key in an existing record within an SQLAlchemy table

I am trying to retrieve an existing entry from my Parents table and simply update it with a father_id, which is a foreign key and is the id of a record in a separate table called Individual. My models ...
0
votes
0answers
3 views

Return columns of joined tables of a specific ActiveRecord object

I'm having a model object like this: u = User.first And the u instance is associated with Appointments, and Appointments is associated with Therapists What's the best way to join them? I tried this ...
0
votes
1answer
15 views

is there a method to initialize REGEX? [duplicate]

i have a list : cpt=0 list=["dermato","bioderma", "gatoderma"] for l in list: if re.findall(".*derma.*",l): cpt=cpt+1 So, instead of putting directly '...
0
votes
0answers
6 views

Angular http RXJS observable not invoking error callbacks

I have an angular project, which is using RXJS observables. Everything is fine unless I have to deal with error handling, but when the API returns errors the error callback is never being called. ...
0
votes
0answers
3 views

How to redirect a page from one blueprint view to another?

I am using Flask along with the Blueprint module. In my application, I am trying to redirect the page to page/home after a successful login (user/login) using LDAP but the redirect takes forever ...
0
votes
0answers
7 views

JavaScript not executed in Django template

I am testing out some simple JavaScript code in my template to detect button-click and display a text, similar to this example here But it does not seem to work in the template below. I tried ...
0
votes
0answers
7 views

Resource Exhausted independent of BS on Titan RTX, RTX 2060, and RTX 2080

import tensorflow.compat.v1 as tf import os import numpy as np import pickle from tensorflow.keras.layers import TimeDistributed import tensorflow.keras.backend as K ws=64 bs=20 def ResBlock(xin,WS,...
0
votes
0answers
6 views

How to set a form owner or two or more forms

I need to display a form2( top most property=true) on top of form1(top most property=true), and I am able to do it with: form2.owner=form1 But then, I have also form3 which top most property is on ...
-1
votes
0answers
20 views

How do I CREATE A table in SQL

Im very new to SQL and my insert statement triggers an error in SQL. Is there an error in my CREATE TABLE Syntax? I have gone through it but can not seem to find anything right now. String videos =...
0
votes
1answer
3 views

Update To Sequelize-Typescript 5 causes exception “column createdAt does not exist”

After I updated Sequelize-typescript and Sequelize to version 5. I am keep getting error "column createdAt does not exist", if I try to read anything from database. I don't have such column ...
0
votes
0answers
5 views

Unhandled Exception: type 'FirebaseFirestore' is not a subtype of type 'Firestore'

Hello guys I am building a flutter app. Now on trying to add Firebase database it brings this error and displays a blank white screen " [ERROR:flutter/lib/ui/ui_dart_state.cc(166)] Unhandled ...
0
votes
0answers
3 views

ORA-12018: following error encountered during code generation & ORA-00904: “from$_subquery$_006”.“COLUMN”: invalid identifier

My database was recently upgraded to Oracle 19c I am trying to run the below query CREATE MATERIALIZED VIEW rod_is_going_nuts (PROGRAM_KEY) AS ( SELECT PROGRAM_KEY FROM ( SELECT B.PROGRAM_KEY FROM ...
0
votes
0answers
5 views

GitLab Could not read from remote repository with SSH

I did all steps and I cannot connect to remote repo... I did add ssh key to my GitLab account but I have error : user@gitlab.com: Permission denied (publickey). fatal: Could not read from remote ...
0
votes
0answers
7 views

Allow shade of marker color to vary, within a category, according to column in a Seaborn scatterplot

Is it possible, in a Seaborn scatterplot that uses hue to identify categories and a specific column to define the marker size, to allow for the "shade" of the marker color to vary within a ...
-2
votes
1answer
25 views

What kind of pyton data structure is this? [closed]

cashflows["Interest"][current_period - 1] = 5 Is this a list with a string key and an index? Also how would I go about returning the 5 as an int. For example, if a try: test = 0 test += ...
0
votes
0answers
7 views

zeromq server has 1 min delay when client connects then disconnects and then connects back in quick succession

I am using zeromq-4.0.1 source code. In production, there is 1 server and multiple clients. The connection between these switches are via router socket. Because of link flap, the client disconnects ...
0
votes
0answers
9 views

How to Wrap up a different types in a struct with void pointers

I had a plan earlier tonight, and now it's turning into a total mess.....I think I'm missing some fundamental concept. Here's the idea: I have to send some stuff over uart that looks like this (for ...
0
votes
0answers
5 views

How do I find the main directory of my Balena project?

So, I am hosting a discord bot with a Raspberry Pi 3 Model B and Balena, I want to find the directory of my project. For example, Error: Cannot find module '/home/app/node_modules/sqlite3/lib/binding/...
0
votes
0answers
3 views

Freemarker and empty row in table

I have am invoice template in Netsuite and in my code I have an if statement that says if this item is present do not print it in the table. <tr> <#if item.item =="Late Payment Surcharge&...
0
votes
0answers
5 views

In CQ(R)S, is it OK to use a Command as a parameter of a model constructor?

Say I have a CreateUser command: class CreateUser { public string $email; public string $password; public string $firstName; public string $lastName; public LocalDate $dateOfBirth; ...
0
votes
0answers
3 views

How can I build a system that can find a custom region based on a person's location?

I'm using an API to retrieve data about electricity, and I'm currently trying to retrieve certain subregions of power based on a person's location. Unfortunately, these are complicated when it comes ...
0
votes
0answers
6 views

Spring Cloud Config - get resolved properties by specific profile and label programmatically

We have Spring Boot app with Spring Cloud Netflix stack (Eureka, Config Service, etc.). In our case, Config Service takes properties from git repo, and it works fine. Now we want to fetch resolved ...
0
votes
0answers
4 views

How to connect more than 2 streams in Flink?

I've 3 keyed data streams of different types. DataStream<A> first; DataStream<B> second; DataStream<C> third; Each stream has its own processing logic defined and share a state ...
0
votes
0answers
8 views

trouble to show component in react

im using an old version of a CRUD so i think that some codes aren't working any more, but vscode is not point it like an error, so the page goes on but my content box still empty. could somone help me?...
0
votes
0answers
7 views

why won't INSERT INTO SELECT work in phpmyadmin

I have two tables in the same DB. Table1 was autogenerated with a csv import, column names are all like: COL 1, COL 2, etc. Table2 is a table I created. In both tables, all fields are VARCHAR NULL ...

15 30 50 per page
1
2 3 4 5
407205