All Questions

0 votes
0 answers
2 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
2 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
3 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
1 answer
14 views

Template to check if vector and map contains value

I'm a beginner in c++ i was searching for templates that could check if a vector / map independent of their data type, contains a given value, I have found these: template <typename Container, ...
0 votes
0 answers
3 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( <...
-2 votes
0 answers
25 views

Replace a string if it's not a comment or inside quotes

I'm making a Javascript superset ( just as a hobby ), and i need to replace my superset's keywords with javascript ones, but when i use something like: .replace(/set/g, "var") it replaces ...
0 votes
0 answers
3 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

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
2 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
38 views

Read and change @data in an object variable

First, the scenario. I want to display some data with DataTables. For that, I created a generic service called TableService that receives some params and one of them is an IQueryable<T>. ...
0 votes
0 answers
7 views

alternative way to define a function inside a class method

I have a the following class: class Analysis(): def __init__(self, file_dir): self.path = file_dir #file path directory def getData(self): return pd.read_csv(self.path) # ...
0 votes
1 answer
15 views

C# Kendo issues - How can ı show my grid?

I am using KendoUI but didnt show my grid. I'm getting the data, ı want to take my books on the server side and show them on my page. I wrote the following codes for this. But my books are not listed ...
0 votes
2 answers
18 views

Getting the same values for all products in reactjs

I'm new to react and i've been trying to get the product information and display it in a new page, but i keep getting the same values for all products, and can't understand the reason why. here is my ...
0 votes
2 answers
14 views

How to override scss variables correctly?

I have the following scss which sets tooltip arrow direction. The size of the tooltip is a variable that I would like to override when the .tooltip-large class is present. For whatever reason the ...
60 votes
5 answers
33k views

Register file extensions / mime types in Linux

I'm developing a Linux application that has its own file format. I want my app to open when you double-click on those files. How can I register a file extension and associate it with my application ...

15 30 50 per page
1
2 3 4 5
1527308