All Questions
22,909,608
questions
0
votes
0
answers
2
views
Using System.Net.Json to serialize in two different context
I'd like to use System.Net.Json in two different serialization/deserilaiszation context :
The first when I send Json messages to my client application
The second when I store object in the ...
0
votes
0
answers
3
views
getClientOriginalName() on array in laravel controller
i have a form that submit many image to store
in store i have problem with getClientOriginalName
this is my controller code
$images=$request->file('images');
foreach ($images as $img){
...
0
votes
0
answers
4
views
Mutable Binding.constant()?
I'm using a secondary init to pass a different set of values into my struct. The issue with this is that values is a generic binding but I need to format the Binding values before setting it.
public ...
0
votes
0
answers
6
views
how to edit string in .htaccess file?
hey guys I am trying to edit the contents of htaccess by PHP
I used this code but it's replacing all the file but I just want to replace the contents between
##START DOMAIN## & ##END DOMAIN##
here ...
0
votes
0
answers
4
views
React: function in value, passed from context provider doesn't work
I'm trying to work with Django rest framework and now i want to send a POST message to log users in.
im using context to have the login function in the whole app
// index.js
...
root.render(
<...
0
votes
0
answers
4
views
How to prevent a logged in user go back to the Login page by clicking on the back button in React?
I know that others have asked similar questions. I have gone through some of the solutions but none worked for my case.
I am developing a MERN stack app. The /admin route is a client-side protected ...
0
votes
0
answers
3
views
Dynamic user profile templates in Next.js
I want to build a templating engine for user profiles. After picking a design, which might consist of HTML, CSS, and JS, I would like to be able to server-side/static render a users profile page using ...
0
votes
0
answers
4
views
Setting a Maximum Size on Circle Markers
What I am trying to achieve is have a circle marker where the size changes when you zoom in or out, but I want to set a maximum size they can get (instead of just continuing to get bigger). Is there a ...
0
votes
0
answers
5
views
Add a png and jpeg file to top of a geom_col
I have a geom_col with 13 football teams on it measuring average attendance on the y axis, team on the x axis. I want to add the logo of a team above the attendance of the red column. How would I do ...
0
votes
0
answers
6
views
Uploading files to an ftp server using express
I have to keep this as generic as possible for various reasons, and please direct me if this question has already been answered before. Essentially I have a NodeJS client created using express running ...
0
votes
0
answers
7
views
How to disable the warnings and highlights in spacemacs c-c++ mode
I enabled the c-c++ mode together with lsp in spacemacs.
Because I do not have the complilation database json file (due to some other reasons), the lsp server gives me all kinds of warnings and ...
0
votes
0
answers
5
views
Need ability to determine the Level of the log as passes from main function
Need ability to determine the Level of the log as passes from main function e.g.
log_it_all(log_path).info(log_msg), log_it_all(log_path).error(log_msg).
based on those levels the details in a format ...
0
votes
0
answers
8
views
Java: Split a string that represents a path into strings without losing the forward slash?
In Java, if I use .split() on a String "/cat/dog/mouse/elephant"
I would like to get this result:
["/cat", "/dog", "/mouse", "/elephant"]
Of course I ...
0
votes
0
answers
3
views
sed - Replace Child tag value in XML under specific Parent tag
Trying to change the value for the Child tag "Part" from 8005 to 8008 under the Parent tag "Class".
The Child Tag "Part" is used under multiple Parents, so need to ...
0
votes
0
answers
7
views
BeautifulSoup Assignment got error module 'urllib' has no attribute 'urlopen' Can anyone provide solutions for this?
I am trying to do an assignment: write a Python program that expands on http://www.py4e.com/code3/urllinks.py. The program will use urllib to read the HTML from the data files below, extract the href= ...
0
votes
0
answers
4
views
Add horizontal lines outside plot area in ggplot2
I've tried finding an answer but nothing seems to work. The first image below is a scatterplot drawn in ggplot2, which has been post-processed by a specific LaTeX journal template on Overleaf. I would ...
0
votes
0
answers
3
views
Google Colab Widgets
I have been using ipywidgets in google colab for a while but it today it started asking me to enable third party widgets and presented codes for custome widget managers. The widgets arent getting ...
1
vote
1
answer
10
views
Return formatted string as ref to bytes
I have the following struct:
struct CompareUrl {
repo: String,
left: String,
right: String,
}
And I want this struct to return itself in bytes.
impl CompareUrl {
pub fn as_bytes(&...
0
votes
0
answers
12
views
How to optimize compilation time of many std::vector::push_back?
In a code I'm working on, there is a LOT of push_back method calls (around 1500) which takes around 15s to compile... My team decided that it was too long and asked me to find a way to speed up the ...
0
votes
0
answers
8
views
Laravel Echo with pusher disconnect after 30 seconds
i have a game project on github:
https://github.com/ynizon/lemming
I m using pusher to send next player or message event.
When i load my browser, it works. But, if i wait 30 seconds, the echo.pusher....
0
votes
0
answers
5
views
How can I check if a function has POD (perl in-file documentation)?
Is there any library that can tell me if a specific function has POD? I want to add that into our build system.
1
vote
0
answers
9
views
Constant class attribute and dataclass inheritance
As far as my understanding goes, Python does not really have constants, they are all attributes or variables that by convention are typed uppercase. If this is wrong, please correct me.
I'm in the ...
0
votes
0
answers
11
views
What does my QQ Plot tell me if I have 4 variables?
I have a model:
Model <- lm(Offensive.Score ~ FirstDown+ThirdDownPct+RushYds+PassYds, data = NFL.Team)
I have done crazy research on QQ Plots and understand that they are standardized points.
I ...
0
votes
0
answers
5
views
parsing graphql response from server ts
My object looks like this
Object {
"users": Object {
"edges": Array [
Object {
"node": Object {
"profiles": Object {
&...
0
votes
0
answers
7
views
Just detecting one line on a touch screen
On my project I am using a dt035btft-pts1 display (240 x 320) and I am having trouble using its touchscreen, model ft5346. The thing is the panel just detects touches on the lower border of the screen,...
0
votes
0
answers
6
views
Google Sites - IP Adress for creating a subdomain
I am trying to create a subdomain called files.makopog.tk, but to create a subdomain, you need an IP adress that points to the website. How can get the IP adress, if there is a way?
I am using Freenom ...
0
votes
0
answers
7
views
LINQ equivalent to Seq.scan
Does C# have a LINQ equivalent to F#'s Seq.scan--like fold but storing the aggregated value at every step? (One like reduce that doesn't require a starting state would work at least as well.)
0
votes
0
answers
5
views
How do you hand off and rename a custodial NEAR account to a user?
A toy example:
The application NFTApp created a new account throwaway.near for a new user and minted some NFTs into it. NFTApp has the only full access key to throwaway.near. The user doesn't even ...
0
votes
0
answers
13
views
Compare the data in two different dataframe and see which are matching and not matching
Looking for a code to compare the columns in two data frames and create a new column in either of the data frames that shows that either the records match not matching or are not available
I want to ...
0
votes
0
answers
5
views
Jenkins why need both pr-merge and branch build for checks
In our github pr and Jenkins pipeline after we commit code and open a pull request, two checks have to pass, one for pr merge and one for branch. Why do we need two checks? For github, the branch is ...