All Questions

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

How to save a row into database in ruby on rails?

I am new in ruby on rails and i want to store data of a row in my database table. How can i do this. How do I pass data Here is my router: post 'matches/:id', to: 'matches#savedata', as: 'savedata' ...
user avatar
0 votes
0 answers
2 views

Setting number of encoding slices to 1 using ffmpeg libs (libavcodec, libavutil, libavformat)

I implemented video encoder in C using libav libs. I could not seem to figure out how to set encoding slices to 1. Here is what I'm doing while initializing encoder: avcodec_register_all(); ...
user avatar
0 votes
0 answers
5 views

Is it necessarily bad to use const_cast when working with legacy functions?

I am writing a C++ program for Linux. I use many low-level libraries such as XLib, FontConfig, Xft etc. They are all written in pure C, and in some places in my code I have this annoying problem: I ...
user avatar
  • 419
0 votes
0 answers
5 views

How to make a dictionary from another dictionary values

I have a list of dictionaries, something like this [{"0_question" : "how are you"}, {"0_answer": "good"}, {"4_question" : "what time is it"}...
user avatar
  • 165
0 votes
0 answers
2 views

In Google Analytics --> All Pages Reports

We have recently set up a new instance of google analytics. In our All pages report we are able to see all the url's of our website. Page URL's doesn't have host name attached to it. We have already ...
user avatar
  • 1
0 votes
0 answers
3 views

How to handle different type of Exception in Spring Integration using java DSL?

I have following simple proxy integration flow. The main task of which is to take request from the proxy send it to the actual endpoint, get the respond and send it back to the client. I would like to ...
user avatar
  • 158
0 votes
0 answers
2 views

How to perform click in Selenium with autoplay video?

I try to write a simple code in Java (Eclipse) with Selenium. The code has to find the Instagram Stories of a user and download them in my computer. When I open the stories window of a user I'm able ...
user avatar
  • 1
0 votes
0 answers
5 views

How to assign background color through JS (same as IMG bg), depending on database value (sex)

Visualisation: [IMG]+[HIDDEN INPUT]-—-[TEXT]-—-[ICON] [IMG]+[HIDDEN INPUT]-—-[TEXT]-—-[ICON] [IMG]+[HIDDEN INPUT]-—-[TEXT]-—-[ICON] (For each user) I want to give the icon on the right the same ...
user avatar
  • 1
0 votes
0 answers
5 views

Django: Couldn't import Django, But django is installed (checked with django-admin --version, returns 4.1)

So i tried this: py manage.py runserver And got this error: ImportError: Couldn't import Django. Are you sure it's installed and available on your PYTHONPATH environment variable? Did you forget to ...
user avatar
0 votes
0 answers
6 views

Patternmatching in Haskell with Either type

I try to patternmatch on the Either type but I get an error. Why does the following work patternMaster :: Either b b -> b patternMaster (Right a) = a patternMaster (Left a) = a with ...
user avatar
0 votes
0 answers
5 views

How to terminate a process with python in Ubuntu?

I need to close an .exe at the end of my code. I was able to start the .exe file proc = subprocess.Popen('.nameProgram.exe') Now I have to close it but the terminate() function doesn't seem to work. ...
user avatar
  • 23
0 votes
0 answers
5 views

Convolutional Neural Network does not reach an acceptable accuracy

Howdy! Recently I have built my own library for neural networks. Without convolutional layers it worked fine. However, now, that I have implemented convolutional layers, it doesn't improve (in ...
user avatar
  • 33
0 votes
0 answers
7 views

forward the response of http request to the client

I am invoking a web service through an azure function in node.js with Axios, I have a couple of questions here. 1- in the body of this request I'm hardcoding the value for appUser. however, if I want ...
user avatar
  • 35
0 votes
0 answers
4 views

Read xml files from Google cloud storage into pandas dataframe via jupyterkernel instance?

I want to read hundreds of xml files into a pandas dataframe on my google cloud instance. I want to to it like this: client = storage.Client() bucket = client.get_bucket('bucketname') df = pd....
user avatar
0 votes
0 answers
4 views

Lua __index method not executing on read

I'm trying to have my __index method fire anytime a key is read from this table, but it is apparently not firing since A) the contents read are never modified according to its intended math and B) its ...
user avatar
  • 1

15 30 50 per page
1
2 3 4 5
1525249