All Questions

-2
votes
1answer
16 views

Looping two Integer ArrayList in java

I have two integer array list. first array list has {3,6,7}. second array list has {-1,-4}. How can i add these values into another list in this order {3,-1,6,-4,7}? Below is the loop that i have ...
0
votes
1answer
9 views

Indentation under wrapped line

I'm beginning in programming and using Pycharm. I adopted 79 lines as maximous line length. But now I don't know if using an extra tab to indent the next line, since the previous line is already ...
-3
votes
1answer
25 views

converting boost::filesystem::path into char ??

i have worked out how to pass the boost path the required format, but i am having some issues figuring out hot to pass the path.stem into a char array, and then run some check on the filename and ...
0
votes
2answers
14 views

How to get the index value in a dataframe by comparing date with a datetime object in that dataframe?

I have a dataframe like the following. I would like to get the index value by checking the date. For example if the date is 2018-04-05, I need to get the index value as 3. Can someone let me know how ...
0
votes
1answer
10 views

Is it possible to retrive the 'account' associated with a xero bank transaction

I'm using Xero's private API to export bank transactions (so I can automate a bunch of financial reporting). Retrieving the transactions works well (as documented here https://developer.xero.com/...
0
votes
0answers
12 views

Can't run node file using Visual Studio Code terminal

I am trying to execute a file using the terminal included in Visual Studio Code. However, I cannot seem to get it working and end up receiving the following error message: Example, "node myfile.js" --...
5
votes
1answer
26 views

python: which types support weak references?

Code: from weakref import WeakSet se = WeakSet() se.add(1) Output: TypeError: cannot create weak reference to 'int' object Doc: Several built-in types such as list and dict do not directly ...
0
votes
1answer
6 views

JavaScript - Firebase value to global variable. ALMOST SOLVED

ref.child("path").on("value", snapshot => { var z = Object.keys(snapshot.val())[2]; y = snapshot.val()[z]; //Call the friggin thing exportData(y); function ...
5
votes
5answers
4k views

HTML element is attached to a document

When an element is removed from the DOM using removeChild(), the reference to the element still exist but the element is no more in the DOM. How to know if an HTML element (or its parents) is still ...
0
votes
6answers
29 views

Modify an array without mutation

I am trying to solve a problem which states to remove(delete) the smallest number in an array without the order of the elements to the left of the smallest element getting changed . My code is -: ...
1
vote
2answers
1k views

CycledLeScannerForLollipop: Scan failed: app cannot be registered (Alt-Beacon Library)

I am using Alt-Beacon Library, and getting this error and unable to detect beacons, CycledLeScannerForLollipop: Scan failed: app cannot be registered Platform: OnePlus5 Android 7.1.1 Could ...
0
votes
0answers
3 views

Bubble sort sorts weirdly

I just tried coding my first sorting algorithm aand it does weird things. I dont actually know, where this comes from but i think it has to do something with array length. because the first numbers ...
0
votes
0answers
2 views

issue when i update gradle build

When I update the gradle to 27.0.3 i have some issues. org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':sigaMina:compileDebugJavaWithJavac'. at org.gradle.api.internal.tasks....
0
votes
2answers
44 views

What are Subscriptions in RxJS and how do Observables interact with them?

I don't have it very clear on how Observables and Subscriptions work. In particular how an Observable and its Subscriptions exchange information. So to make explicit questions: Does an Observable ...
0
votes
0answers
2 views

Using a single stream in two different middlewares

I am working on a Core 2.1 webAPI project. I have two different middlewares. Both the middlewares use HttpContext to do their work. The first middleware logs the request and response for each call (I ...
0
votes
0answers
12 views

Line Item based Discount in woocommerce

My WP site sells customized t-shirts. The customization plugin makes each customized shirt a line item in the woocommerce cart. If there are 2 shirts ordered of one design (quantity of 2 on that line ...
2
votes
2answers
49 views

How to handle differently sized type in C library from C++

I have an external C library that I link to from C++. The library defines a struct that uses bool and includes a typedef for it for C. The problem is that this typedef uses an int, so (on my platform) ...
0
votes
0answers
3 views

Place GTK+-3.0 Window above Chromium in kiosk mode

I running chromium in kiosk mode and I would like to have some GTK windows pop up over top of the chromium window. With my current program, if I do not set the --kiosk flag my GTK windows open on top ...
1
vote
2answers
647 views

Fastest way to convert 4 bytes to float in c++

I need to convert an array of bytes to array of floats. I get the bytes through a network connection, and then need to parse them into floats. the size of the array is not pre-definded. this is the ...
0
votes
1answer
9 views

Cannot change Canvas.overrideSorting property

Very odd problem, I have a Canvas object and I am trying to set the overrideSorting flag to true. public void SetSortingLevel(string sortinglayerName) { _canvas.overrideSorting = true; ...
-1
votes
2answers
24 views

layout_alignParentBottom to LinearLayout not showing in screen

I am making form in my application in fragment. My parent view is RelativeLayout and in that i have ScrollView and Linearlayout. Scrollview contails form and LinearLayout contains Buttons to submit ...
1
vote
1answer
12 views

Oracle SQL Tuning Advisor with changing query

We have an C# app which will search the DB for activity in a couple of tables. The user can specify to search for certain criteria, which in turn build upon the base SQL query. This query takes a ...
0
votes
2answers
4k views

How to print a character in Linux x86 NASM?

I'm trying to print a single character or a number using NASM, targeting an x86 GNU/Linux architecture. Here's the code I'm using: section .text global _start _start: ; Linux printing ...
0
votes
0answers
2 views

Using openMP and Rcpp to implement a summary function with empirical quantiles

I am trying to implement a function in Rcpp that takes a matrix as input and calculates summary statistics and quantiles as specified by the user for the row of said matrix. Without openMP, the ...
0
votes
0answers
9 views

How to sort a list without mutating it

I would like to sort a List of items in Java and have the sort return a new sorted List without mutating the original List. Is there a commonly used library that does this?
60
votes
7answers
48k views

Replace console output in Python

I'm wondering how I could create one of those nifty console counters in Python as in certain C/C++-programs. I've got a loop doing things and the current output is along the lines of: Doing thing 0 ...
0
votes
0answers
3 views

Clarification on igraph::count_multiple()

I expect igraph::count_multiple() to count the number of parallel edges existing in a graph, which the documentation seems to reflect. However, it doesn't always result in whole numbers. An example: ...
0
votes
3answers
25 views

Errors using UNION in SQL Server

I tried to understand how UNION works in SQL Server by executing the following script: select * from Production.ProductModel where ProductModelID IN (3,4, 5, 6) UNION select * from Production....
0
votes
0answers
24 views

Setting RouterLink for Select in angular > 4.x.x

I am trying to build an app in Angular 6.1.2 in which user can select an option from a drop-down and see the desired result. So far, I am able to achieve the drop-down but I am having some problem in ...
1
vote
2answers
9 views

How to assign the elements to different subsets according to the number of letter “A” within the element in R?

I want to assign my data into different groups depends on the number of letters "A". For example, library("stringr") data1 <- c("apple","appreciate","available","account","adapt") data2 <- c("...
0
votes
0answers
5 views

Not able to consumer REST API with angular

I'm trying to consume JSON from a rest API i made but even the getting the result (status 200) from the API its not refreshed on the page. Rest response [{"flashsdcapacity":128,"installedversion":"...
0
votes
2answers
1k views

Windows: Using Tensorflow with Python 3 instead of Python 2 (Docker)

My problem is very similar to the one stated here: Using TensorFlow through Jupyter (Python 3) So, I have both installed Python 2 and Python 3 (3.4.3). Currently Tensorflow runs only with Python 2 ...
0
votes
1answer
6 views

How to know when the phone connects to a WiFi network

I've been looking for a way to know when my Android smartphone connects to a WiFi network and IS READY to connect to a certain server to exchange data. I have already tried setting a broadcast ...
0
votes
3answers
26 views

Replace part of html text with input val JS

I've been trying to replace part of the header with the input from the text field. When a user enters zip code the text would read "GREAT NEWS! WE HAVE A LOCATION IN 12345". <h4>GREAT NEWS! WE ...
0
votes
0answers
26 views

how create the resource generator like ogame with nodejs,express and mysql [on hold]

how i create system resource generator like ogame what i want its the city start with 100 of metal and if mine its level 1 produts 10 if level 2 produts 20 for hour i using nodejs express and mysql
0
votes
0answers
9 views

Hash from different files is always the same

I'm building an API which has a method that accepts a file via POST request. Based on that file, i need to create a hash on the file itself (not the name), check if the hash already exists and do some ...
-3
votes
1answer
12 views

Unhandled exception at 0x1007ED76 (ucrtbased.dll)

This code is written in c++. It seems that I have a problem with passing a vector to an object. My program is a simple simulator of animal population right now I am having trouble with my rabbits ...
-1
votes
0answers
6 views

project design, am I understanding this correctly

I'm a software developer but always worked on "small" projects/solutions. Now I'm trying to create an application from scratch on my own, just to stay in touch with new developments and learn new ...
3
votes
1answer
130 views
+50

Fast array permutation (generalised tensor transpose) in Armadillo (C++)

I have a project which involves a lot of permutations on 3D arrays ( arma::Cube<cx_double>). In particular, the required permutation is the interchange of columns by slices. In Matlab this is ...
0
votes
1answer
10 views

Auto scroll down web browser in C# winforms programmatically

I need to autoscroll webbrowser automatically with code. I tried with this function but it didn't work: private void ScrollbrowserToTheend(WebBrowser br) { for (int i = 0; i ...
0
votes
0answers
3 views

Windows CMD, trying to recursively delete all folders unless they have a certain file type

If I want to go though a directory and delete all folders unless they contain a particular file extension how would I go about this? I tried Robocopy thinking they were empty but the folders all have ...
0
votes
1answer
12 views

Get constant Variable from URL String

I am trying to isolate a constant variable in the URL string of a website. For example www.website.com/products/brand-product-description?variant=123456789 . I need a js function that will return ...
0
votes
0answers
2 views

Java Fx Tableview Combobox String Converter

I am trying to add a combo into the tableview but for some reason I cannot make the conversation. Behind the scenes I want to make the conversation if the value is 0 then it should display free if ...
-3
votes
3answers
44 views

Correct syntax for regex to limit total length of matched group [duplicate]

I want to make a regex for matching name which can have more than one words. But at the same time I want to limit the total length to 20. I used /\b(\w+ (\s\w+)*){1,20}\b/ . I am getting the syntax ...
-1
votes
0answers
25 views

.map is not a function - react

I'm trying to map over an API response but it gives me "TypeError: response.map is not a function". I think it might be due to the map method getting a string instead of an array. but when I console....
0
votes
0answers
2 views

How to read a compressed (gzip) file without extension in Spark

I am new to Spark and have a fun task in hand where I have to read a bunch of files from S3, which have some xml content in them. These files are compressed (Gzip) but do not have that extension. I ...
0
votes
0answers
2 views

Google sheets Paste Format

In the below Google Sheets code I am copying two months of calendar data from separate monthly sheets and pasting it into the "TwoMonth" sheet for display purposes. One function advances the ...
2
votes
2answers
62 views

Can an android app run gradle ? How?

I'm currently trying to generate apk files in offline mode using an android app, and I don't understand how this is possible. This application https://play.google.com/store/apps/details?id=com.aide.ui&...
0
votes
0answers
3 views

How to Parse Arrays and Extract Values with NodeRED's Switch Node

A quick NodeRed question as I am not sure I am correct in my approach. I'd like to visualize my laptop's CPU usage value to a gauge. My laptop is a quad-core, having 4 CPU's. With that, NodeRED's ...
0
votes
0answers
5 views

convertir de string a number en jasper report

Detallare un poco mas. En jasper hay una funcion iseven(number), lo que hace es verificar si el numero brindado es par. Para ello necesito mandarle un number, pero lo que yo recibo como parametro es ...

15 30 50 per page