All Questions

0
votes
0answers
5 views

Javascript cross-site scripting htmlEncode

I have an HTML input textbox that has id paramater of textboxId. Whatever is entered in the textbox and then submitted, javascript/ajax call is made to return results. I needed to prevent cross-site ...
0
votes
0answers
14 views

Why does SSMS insert a ' TOP (100) PERCENT' into the view that I am trying to write and warn me that ORDER BY may not work?

I am trying to create a SQL View in SSMS. I am using Views because they are easier to invoke from Power BI than Stored Procedures (especially when no parameters are needed). I start by writing and ...
0
votes
0answers
6 views

Is there a way to create an iterative function for this recursion?

I've been working on a little side project and heard you could convert most recursive functions into iterative ones. This function is only part of a large class but the functions used (like ...
0
votes
0answers
7 views

Fullcalendar re-fetch events after change in React state

I have this really simple React component: import { useState } from "react"; import FullCalendar from "@fullcalendar/react"; import dayGridPlugin from "@fullcalendar/daygrid&...
0
votes
0answers
3 views

Impossible to use spritecollide with spritesheet pygame

I'm making a pong game using spritesheets like this one (for the paddle) and another one for the ball: What I want is detecting only the red image as a collision and not the blue one: I created a ...
-1
votes
0answers
8 views

R: How to create a variable representing a strata?

For my classes I am working with a dataset that has used quota sampling. I am stuck at a task where I have to encode my survey data into a svydesign object without including weights. I tried to encode ...
1
vote
0answers
7 views

redirect module function stdout to flask socket

I have a file with a function that counts to 15 in a for loop. I want to redirect the output to a socket. test.py def counttest(): x = 0 for x in range(0,15): x = x+1 print(&...
0
votes
0answers
3 views

Victory Charts: Darkening a range on the x-axis

I am looking to darken a region on the x-axis to designate weekends in a time series. What is the best way to go about this with victory charts?
0
votes
0answers
6 views

How to delete element from database realm Kotlin

I need to delete elements from the database. That's my code and I don't know if I am right realm.executeTransaction( realm1 -> { ...
0
votes
0answers
8 views

How to upload file to mysql in laravel

I want to migrate a file in MySQL database but I can't seem to get the data type of the file right in Laravel. Help if you can please I have read Link but it does not solve my problem. I am a beginner ...
-2
votes
0answers
17 views

Can a txt file be directly printed by the browser?

When I print a txt file via Javascript with the print function, the final result is a PDF file when opening the print popup. But I need the resulting file to be the TXT file and send it to print. Is ...
0
votes
0answers
14 views

Is it possible to use period (dot) in a PHP function name?

I am using a template of a "certificate of completion" for online courses for my website. On the template it has placeholder function names where presumably values would be pulled from ...
0
votes
0answers
5 views

Question about nested lists in a nested list, Mongoose

I have this structure of Schemas and I want to create a new Item in the array of items in the List which is an Item in the array of lists of an account. Thats how it looks: const itemsSchema = new ...
0
votes
0answers
4 views

TCP connection not closing in infinite loop

There is a video streaming script built on PHP A server listens on port 9090 accepts a connection of a client and then send video to the client endless. My server doesn't notice that the user is ...
0
votes
0answers
17 views

How to get wave on 50% of screen

Hey i want in css to make a background with 50% of a color and 50% of another color but this color need to be terminated by a wave like that Actualy i have that But it don t take 50% of screen here ...

15 30 50 per page