All Questions

0
votes
0answers
2 views

how i can change JS variable from Code behinde c#

how i can change value for (min, max, values[]) from c# code behinde? thank you <script type='text/javascript'> $("#slider-range").slider({ range: true, min: 60, ...
0
votes
0answers
3 views

Is it possible to display the full text of a dropdown option in Chrome using the default select element?

Really simple question here but not sure where to find answer. I have a site that in Safari displays the entire text of a dropdown option by wrapping the text and expanding the height of the select ...
0
votes
0answers
3 views

I have problem with import and export function using ES6

I'm trying to import my function called funcoes.js at main.js and when I run this error appears Uncaught SyntaxError: Unexpected token { //funcoes.js export function soma(a, b) { return a+b; } //...
0
votes
0answers
5 views

why does grep gives me error while using hypen

I was hoping to use the grep command with the hyphen parameter but it keeps giving me an error I've tried a few things and looked around on stack overflow for a bit but couldnt find anything ...
1
vote
0answers
3 views

Change the timestamp timezone in result of jdbc query connection

I use Redshift and jdbc. The timezone of redshift server show timezone; is UTC. My application(jvm) timezone is +2. When I execute the query via jdbc select SYSDATE; I got the correct Timestamp with ...
0
votes
0answers
4 views

SQL: Nested Query

I am trying to make a moving average based on the last 15 values that are greater than a specific condition. I already made a code that produces the intermediate steps to the solution, but I cannot ...
0
votes
0answers
4 views

Can CSS scale a set of images to fit together (like Google Photos)?

Google Photos takes images of various sizes and scales them so that the images in each row have the same height and each row completely fills the width of the window. For instance: If the window is ...
0
votes
0answers
3 views

Excel formula: Find Date from Weeknum and weekday

I am trying to find the date out of a weeknum, weekday and year. There are many information on the web but after several attempts, I couldn't find what I was looking for. So far, I have this formula:...
0
votes
0answers
6 views

evaluating a string variable in a pug template

I have an express application loading this pug template: article.pug: extends layout block content h1= article.title h5 Written by !{author} p= article.body hr if user if user.id ==...
0
votes
0answers
3 views

How to get grouing of rows in SQL

I have a table like this: id name 1 washing 1 cooking 1 cleaning 2 washing 2 cooking 3 cleaning and I would like to have a following grouping id name count 1 ...
0
votes
0answers
2 views

Can't get an image to be the width I want it to be

I want the image in the card to be 855px wide but I also want it to automatically resize to something smaller when the screen squeezes it. I've tried different combinations of flex-grow/flex-basis/...
0
votes
0answers
5 views

Match multiple changing time periods between two datasets

I have two data frames, the first of which spans 3 months and has recordings of depth every 2.5 minutes. shark depth temperature datetime date location A 49.5 26.2 20/03/2018 08:00 ...
0
votes
0answers
4 views

Playback Stutters using NAudio

When I playback an audio file (Wave), I here stuttering. I tried changing the order of instantiation of the ISampleProviders I am chaining together. Public Property FilePath() As String ...
0
votes
0answers
4 views

Javascript library to visualize network graph with custom image background

Is there any javascript library for graph (network topology) visualization with support custom image as background with zoom support? Idea is to use floor plan (jpg/png) and change positions of nodes ...
0
votes
0answers
3 views

How can I have both a vue.config.js and babel.config.js working together?

Having added also a vue.config.js next to my babel.config.js I realized that the code doesn't get transpiled to ES5 anymore, probably because babel.config.js is fully ignored once there's a vue.config....
0
votes
0answers
5 views

printf difference between c and perl

In C: printf ("%09u", 17860374324089702869); prints "3336554965" (this is the answer I want!) In perl, the same line of code prints "17860374324089702869". How can I get perl to produce "...
0
votes
0answers
4 views

NodeJS error : Missing writing permission

I am trying to setup express application generator and am running into the following error: I am not able to understand why the writing access is being denied and so many errors are occurring. ...
0
votes
0answers
2 views

Display a react native component in a fixed screen position no matter what

I would like to place a component, in this case a simple text app version number that is clickable and will force a version refresh, on the screen of a react native app. I would like this to be ...
-1
votes
0answers
3 views

How can alling button in bootstrap

Please coders help me I want to allign the button of into the card i've try <div className="text-center"> ...
0
votes
0answers
2 views

Excel - returning a cell in a row only if multiple criteria from current row are matched

I have a spreadsheet of transactions with unique IDs. For each transaction, there may be two rows corresponding---one initiating, one fulfilling. As new information keeps flowing in, I want to find ...
0
votes
0answers
2 views

How to test SSE(Server Side Events) with Rest client?

I am using Spring Reactive WebFlux concept with SpringBoot 2.1.3. I have developed an SSE(Server Side Events) which sends events to the client based upon the type of parameters. I am able to test get ...
0
votes
0answers
7 views

selected item in drop down list stays selected and I can't click back on it unless I refresh

I use a drop down menu to go between views of different groups I'm displaying. After click an option on the select list, that item stays blue and I'm unable to click that option again after clicking ...
0
votes
0answers
6 views

How to structure the x/inputs and y/outputs of a multiple feature RNN

I have been trying to get a multiple feature RNN to work by including not only the past features but the features next to the target output feature. The issue I am having is not knowing how to ...
0
votes
0answers
3 views

How to download a PDF from Firebase Storage into Document directory on the phone?

So, I wish to download a PDF stored on Firebase Storage and save it as a PDF on Documents directory on a different name. I tried many functions across the net and the documentation. none of them ...
0
votes
0answers
6 views

Get total cost for a customer call

I have 2 tables = customer and their call history Now I want to charge them based on call duration and that too for a specific month say Jan 2015. Here is the criteria to calculate the cost for ...
-2
votes
0answers
16 views

JavaScript need help understanding the following code [duplicate]

I have the following JavaScript code. could someone explain to me what everything in this code means. From each symbol (example : , ? ) or character. Example code 1: JS{{ var widget = id == "...
0
votes
0answers
2 views

automatically change size of widgets when user changes size of window

How to automatically change the size of the different widgets when a user changes the size of the window? So for example, if a user drags down the window and make the height 2x as large, that the size ...
0
votes
0answers
6 views

changing the color of an img with an SVG src

I want to change the color of the SVG img using CSS. I'm using this code but it's not working <img class="svg analyt" src="icons/Icons/analysis.svg"> .analyt path { fill: #fff; } I used ...
-1
votes
0answers
13 views

How to transfer data between array of different classes or structs

I encountered a problem in transfer data from an array of class A[1000] to an array of class B[1000] in C++, or struct in C. class A { public: int N_a; ... } class B { ...
0
votes
0answers
3 views

Laravel select table columns with GROUP_CONCAT column

8 This is my query $query = DB::table('hr_employees') ->select(DB::raw('hr_employees.id', 'hr_employees.employee_id_number', 'hr_employees.first_name', 'GROUP_CONCAT(...
0
votes
0answers
4 views

movsd from memory to xmm0 in c x86-64 jit

I'm attempting to write a small x86-64 JIT, and I'm a little over my head in a few places. I'm trying to JIT a simple function that assigns the value of a float into the xmm0 register and then ...
0
votes
0answers
6 views

Iterating through complex json array

I'm recieving the following multidimensional array via an ajax post: array(1) { ["result"] => array(3) { [0] => array(2) { [0] => string(1) "0" [1] => array(2) { ...
0
votes
0answers
3 views

How to recreate a mongo database with using Node.js mongodb official provider?

I have a simple case - I want to drop a database if it exists, then I want to create a new one. I use node.js official driver. Now, I am trying to do it with the following code: const client = new ...
0
votes
0answers
8 views

How to train a CNN model?

When trying to train the CNN model, I came across a code shown below: def train(n_epochs, loaders, model, optimizer, criterion): for epoch in range(1,n_epochs): train_loss = 0 valid_loss = 0 ...
0
votes
0answers
2 views

Apache Ignite inserts extremely slow

I'm attempting to load a large matrix into an Apache Ignite master node running in AWS. The EC2 instance has 128GB of memory and 512GB of disk space. The matrix is a CSV with 50,000 columns and 15,...
0
votes
0answers
9 views

Why doesnt (click) sends my data inside <button>, but (change) inside <input> does in Angular, HTML

I want to send some data to my Glassfish RESTful server. When I use (change) inside the input tag it activates the method and succesfully sends the data, but when I use (click) or (change) to activate ...
0
votes
0answers
4 views

text_field_tag with ActiveAdmin

I've a hard time with ActiveAdmin and their DSL. I'm using it to build my admin and at some point in a form I need to have a text_field_tag; I mean some fields which aren't related to the model I'm ...
0
votes
0answers
9 views

Attempting to get a value from a JSON Object freezes task

I have a lyrics app where I need to download the lyrics from all songs in a Spotify library. This process has 3 functions: the first calls the Spotify API to retrieve the list of songs and saves that ...
0
votes
0answers
5 views

HIbernate doesn't create table that already exist in another database

I m using spring hibernate integration hibernate ver: 4.3.9 spring ver: 4.3.9 mysql as database java 8 and netbeans I have a bean entity named com.test.Student which is mapped to a table named '...
0
votes
1answer
29 views

Multiplying N positive odd numbers

I'm trying to get the produce of N positive odd numbers function multOdd(n) { var mult = 1; var counter=[]; for (var i = 1; i <= 2*n-1; i += 2){ counter.push(i); } console.log(...
0
votes
0answers
4 views

Tokenize base on specific phrase (Python)

To put it simply, I want to tokenize my string by a certain phrase. Specifically, I want that if, for example, the word 'greener' comes up, it will tokenize as 'green' and 'er'. I want this to not ...
-2
votes
0answers
16 views

SQL Server Varchar Military Date Format YYYY-MM-DD

I am using SQL Server and in my database I have a date column of type varchar and has data like 04042011. I am trying to write a query that is being used for another program and it is requesting the ...
0
votes
0answers
5 views

Can Help me with list of images in Xamarin

I'm trying to show a image in listview in Xamarin, but the image doesn't show. I tried the upgrade and the downgrade in xamarin.forms, but it doesn't work. The version of the xamarin.forms is 4.0.0....
-1
votes
0answers
6 views

When uploading a file to Flask form, the file is not getting read properly on the backend

The Context I have the following flask app which, in a nutshell, just interrupts a form submit to send the form data to the backend, processes the uploaded file with a python script, and then takes ...
0
votes
0answers
4 views

mysql query function works in python shell but ImproperlyConfigured error when run in python

I am practicing using mysql in django and wanted to run a simply query on a database that I set up in my settings.py. I am connected to the database and can run the query fine in the manage.py shell. ...
0
votes
0answers
3 views

How to Fix Cached Schema Registry lookup causing terrible performance

I am working on a program that is pulling a byte array from kafka, decrypting it (so it is secure while on kafka), converting the bytes to a string, the json string to json object, looking up the ...
0
votes
0answers
6 views

Convert to RGB returns a RGBA image

I'm trying to use Python and PIL to add some text to an image. I am failing on saving the resultant image as JPG. I've based it on the example given on https://pillow.readthedocs.io/en/5.2.x/...
0
votes
1answer
8 views

How to use a CASE statement with a JOIN

I am trying to use join statement that vary based on certain case statements. When the field lane.dest_postal_code_prefix is NOT NULL then I want the join to be like the first block of code below. ...
1
vote
0answers
9 views

How to interact with an exe file with python

I have an exe file which accepts input from the keyboard, and returns a response based on the input text. When trying to read the output returned by the exe the python script freezes. I'm running ...
0
votes
0answers
6 views

Firebase cloud store rules: how to check is property exists?

I need to check is property exists in document in store. allow update, delete: if resource.data.uid; in code above i have error "Property uid is undefined on object.", so how i can check is uid in ...

15 30 50 per page