« first day (21 days earlier)   

10:04 AM
0
Q: CSS border-bottom problems

HHHI want to have a border that separate the title and the text , I have it but is 100% of the h2 and I wanted to have it like 80% and in the center. I tried to take separate the h2 but if I add a width of 80% it makes the h2 80% width of the entire div. PS I hope this code shows the way I wanted. ...

0
Q: MariaDB configuration in Spring Boot for AWS Aurora

mohitmayankI have an application running MariaDB using Aurora RDS MySQL as datasource. In my application.properties, I have: spring.datasource.url=jdbc:mariadb:aurora://****.cluster***.rds.amazonaws.com:3306,****.cluster-ro***.rds.amazonaws.com:3306/db Intermittently, I see this error: Caused by: java....

1
Q: Javascript array access(with string literal as key) - space complexity

Sushil JainSample object: const myArray = {'attributes':{ 'fullName': 'Foo Bar'}; During code review, I found that one key(string type) was being used to access the object in multiple functions. Now my question is, should we access the object directly by using the string literal as key, e.g. myArray['att...

0
Q: Extending a dict: Passing keyword args via a through function does not work

StrugglerI am trying to extend a dict using dict(existing, **kwargs) But this does not work when the kwargs are coming via another function. Can someone help me understand why is this so? Sample test code: def funct(*args, **kwargs): a = {'a': 1, 'b': 2} print kwargs return dict(a, ...

0
Q: Best Technique or Mechanism to Auto Save Form in Rails?

Muhammad HamzaI Just want to know what are the Best Technique or Mechanism for auto saving a form in Rails? Like I know some Ajax Requests would do that ! But if there is Some thing more Optimized or more Better way in terms of Performance Concerns ? A form object might be have many associations or no...

0
Q: Power BI Measure to calculate percentage which changes with filters

JEmilyI want to create a visualisation from a dataset which shows percentages that change accordingly when filters are used. I have a dataset like the below but with over 1 million rows of data covering 18 months. All the fields are text except Month which is a date and SUMofAPPTS which is numerical. ...

0
Q: how to set scrollable offset of a marker

blankdengI create a marker with an icon, but the position of the icon is not in the top-right where the perfect place it should be, So how to set position offset for a marker. I searched a while and found a raw solution, it's not work after the a mouse scrolling. when I zoom in the map, the icon moves fa...

0
Q: not getting how to use incoming image from android chooser intent

modiI'm trying to display the image in main page. the image will come from whats app profile upon sharing that image to my app. app.js if (intent.getClipData()) { let imageUri = intent.getClipData().getItemAt(0).getUri() console.log(imageUri); // content://com.whatsapp.filepro...

0
Q: How to formulate the given data for machine learning

SrinathGiven a data set containing sequences of vectors of length n, which are to be mapped to a binary variable (0/1) v<sub>1</sub>1 v<sub>1</sub>2 v<sub>1</sub>3 ... v<sub>1</sub>m -> 0 v<sub>2</sub>1 v<sub>2</sub>2 v<sub>2</sub>3 ... v<sub>2</sub>m -> 1 v<sub>3</sub>1 v<sub>3</sub>2 v<sub>3</sub>3 ...

0
Q: How can I cut off things that are drawn outside the border of a rectangle?

White_GorillaI have a list with many rows and it's possible to scroll up and down in the list. The background of the list is a rectangle and the rows are rectangles. I use SpriteFont to draw text in the rows. The problem is that everything is drawn and not just the things that are inside the background of th...

0
Q: How to solve NSURLErrorDomain: Cannot decode raw data in swift

Karan KaushalI am trying to send request to server. I get status code as 200, content-length is 90956 and result return FAILURE: Error Domain=NSURLErrorDomain Code=-1015 "cannot decode raw data" in swift 4 I tried to change parameter encoding value as JSONEncoding.Default but nothing happen. AF.request(url,...

0
Q: How to check if two different child dropdowns has the same value in Angular 7?

HELPMEI have two different dropdowns (implemented a as a cihld components) with the same data inside. I want to display mat-error if those two selected values are the same. On a mat-error tag, I call a function: areValuesTheSame() { if (this.form.controls['value1'].value && this.form.controls['valu...

-1
Q: How to get multiple rows from a column in efficient way?

Sushil SurwaseI want to obtain a matrix 'data' of size (N-60*60) from the below mentioned Matlab code. With for-loop and N with a very large value, it takes high computational time. Could someone please recommend the faster way to obtain the data matrix. N=10000; a = randn(N,1); order = 60; for i=order:length...

0
Q: How to pass Click event handler as a parameter to another sub?

AttilaIn VB.Net I’m writing a program but I don’t know how to pass Click event handler as a parameter to another sub and how to call it from there. Can I do that? If yes, how? E.g.: I have the following code. On two forms I have 1 ListView and 1 Button. If I press the button, it calls the click event ...

0
Q: How to fix certificate unknown error from chrome v73

vinay karthikI am getting an error when using my certificate to connect to an offline device. TLS 1.2 Alert Level Fatal: Certificate Unknown is the error that is seen in wire shark. Seeing this behavior in Chrome Version 73.0.3683.103 (Official Build) (64-bit) and later. The same scenario was working proper...

0
Q: Django Logging all the GET requests

Naeem KhanI'm trying to put all the GET requests that appear in console into the database from django. For example: console log: [23/May/2019 13:58:44] "GET /testapp/ HTTP/1.1" 200 409 [23/May/2019 13:58:45] "GET /testapp/page2/ HTTP/1.1" 200 172 I'm trying to get the timestamp, page URL and user name ...

0
Q: How to set pid limit in Kubernetes pod?

JavaTechnicalI am looking for a way to limit the number of pids in the Kubernetes pod. The following issue seems to be closed (already implemented) long time ago. https://github.com/kubernetes/kubernetes/issues/43783 But nothing seems to be there in the reference yet.. https://kubernetes.io/docs/reference...

0
Q: Set more than 2 values depends on conditions, python

CiamciaramciaI have a dataframe looks like this: Nickname Vpip% Pfr% Agg Hands 0 -2dV2dA- 25.675676 16.666667 1.187500 222 1 06Hookd 26.470588 16.176471 1.000000 68 2 0spiel2632 23.794212 17.363344 0.750000 311 3 10Pet10 23.214286 7.1428...

0
Q: rtsp url to stream on kurento

damini chopraI have installed ffmpeg and when MP4 video is successfully running on URL:http://x.x.x.x:8050/live.mjpeg ,but when i want url(http://180.179.214.151:8050/live.mjpeg) of to display on remote stream of kurento it doesnt display any visual. Logs in kurento console: Remote icecandidate {"module":"k...

0
Q: Maximum Limit For IN Query in Mysql

Akash JainI want to know how many maximum items you can query on in mysql Query with "IN" clause. For eg: select * from student where student.name IN ("a","b","c"); select * from student where student.name IN ("a","b","c");

-1
Q: Mysql multiple max values from a table

Md. Parvez AlamI have below structure +----+-----+----+ | C1 | C2 | C3 | +---------+-----+ | 1 | A | 21 | | 2 | A | 21 | | 3 | A | 32 | | 4 | B | 32 | | 5 | B | 24 | | 6 | A | 25 | | 7 | C | 32 | +----+-----+----+ Output should be C1 C2 3 A 5 B 6 A 7 C It...

0
Q: Batch behaves differently when using as an administrator

Mechamodi try to create a batch file which copies a folder (and its contents) to the users folder, and then create a link from one of the files to the desktop. When starting the batch file on windows as a standard user it only moves the folder, but says i haven't the privileges to create a link. Howeve...

0
Q: image+message not sharing on social media react native

Rahul MishraI tried with react-native-share and Share class of react native but image(base64) and message together not sharing. If anyone having a solution for the same please help me into this...Thanks in advance.

0
Q: How to convert ND array to 1D and revert it back

güray gölcükI need to convert n array (dimension is not known) to 1d and revert it back to nd array. I loop through the whole array and add elements to 1d to convert, but I don't know how to revert it back. public class ArrayND<T> { private int[] _lengths; private Array _array; public ArrayND...

0
Q: Pytorch RuntimeError: [enforce fail at CPUAllocator.cpp:56] posix_memalign(&data, gAlignment, nbytes) == 0. 12 vs 0

room13I'm building a simple content based recommendations system. In order to compute the cosine similarity in a GPU accelerated way, i'm using Pytorch. At the time of creating the tfidf vocabulary tensor from a csr_matrix, it promts the following RuntimeErrorr RuntimeError: [enforce fail at CPUAlloca...

0
Q: Google Indexing API - Invalid attribute. 'url' is not in standard URL format - But my URL is Correct

Ellery LeungI am currently using Indexing API v3. When I am using this API in a loop, I got this error: Invalid attribute. 'url' is not in standard URL format But I am pretty sure that my URL is correct, because it is download from Google search console: Here is the code: from oauth2client.service_accou...

0
Q: sklearn KernelDensity score_samples giving values greater than 0

AshutoshI am using sklearn KernelDensity function to estimate density and then evaluate pdf at some points using score_samples function but the values returned by the score_samples function are much greater than 0 which shouldn't be the case because as per documentation it returns log(density) [Documenta...

0
Q: Check if third party trackers are disabled in Javascript

Joshua Bakkerso I'm working on something and I have to check whether the visitor's third party tracking is disabled (for example, in Brave where you can disable it via an icon in the address bar). I know there's this: Check if third-party cookies are enabled but it requires 2 domains and I kind of only have...

0
Q: How can we find item by incomplete name in commercetools?

Mefisto_FellI recently work with commercetools and I have such a question. How can we find item in this case Category by incomplete name? I thought we can use % like in SQL queries but its not. What mechanism does commercetools have in Java code? QueryPredicate<Category> predicate = CategoryQueryModel.of()....

0
Q: How to get Class<E> enumType from com.google.protobuf.Descriptors.FieldDescriptor

user2928444I am generating type info from protobuf. Now I have a fieldDescriptor which type is Descriptors.FieldDescriptor.JavaType.ENUM. I want to get EnumTypeInfo from it. switch (fieldDescriptor.getType()) { case ENUM: // The param is wrong. What's the right way? return Types.ENUM(fieldDescr...

0
Q: How to add multiple classes inside hasClass?

AngelaI want to add another class on the hasClass part which is status-2 , I've already tried isClass but it doesn't seem to work with the code I already have. $(function() { function showHideEmptyBlocks() { $(".contentMachine").each(function() { // var isVisible = $(this).find(".timeimg")...

0
Q: You need to set exactly 4 parameters on the prepared statement Error for addBatch()

Akshay T.I am trying to add list of values in a single column of some table from mysql. and for that I am doing this forloop get integet val from integer valueset pstmt.setInt(3, val)-> pstmt.addBatch() once looping is done then execute the batch and then execute update pst...

0
Q: Keras: How to get the index of the predicted classes ( i.e. the index of closest member of a predicted class)

user19265Let me give you an example of what I'm trying to achieve with the Iris dataset. Not only do I want to predict the class of the flowers, I also want to know which flower is the most similar. To the dataset I've added an index for every flower starting from 0 to 149. What I want from the output i...

0
Q: Was not able to run cmd process from ASP.NET application hosted in IIS

Grig VardanyanI was not able to run cmd process from back end of application with Process class hosted in IIS 10.0. I have tried Add Administrator user for application pool in IIS Switch on an option Allow to interact with desktop from World Wide Web Publishing service My IIS version is 10.0 Process p...

0
Q: Which version is stable in ionic v4 - 4.0.0 or 4.3.1?

Riddhi MistryI want to use angular6 and ionic4 for my application so I want to know which ionic4 release is better or stable. ionic v4.0.0 or v4.3.1? Is there anyone who help me to find out this? Thank you in advance.

0
Q: How to convert date format coming in an ajax object?

Lenna SmithI am getting 2018-06-10 00:29:04 this type of value in the key date. I just want to have the date to be displayed not time. I want to have 2018-06-10 from 2018-06-10 00:29:04.

0
Q: Laravel roles and how to show them

itai neil chiriseriHello there I have a Laravel Question. I need to create a table that shows the following data. Client details ( client name, surname, contact numbers, email address, address). The Client should be in two categories which are Cooperate and Individual Client. Here is a snippet of what i what i did...

0
Q: How to build an index that is best for this SQL?

zzz sleeperI'm querying database by a simple SQL like: SELECT DISTINCT label FROM Document WHERE folderId=123 I need a best index for it. There are two way to implement this. (1) create two indexes CREATE INDEX .. ON Document (label) CREATE INDEX .. ON Document (folderId) (2) create a composite ind...

0
Q: Git is detecting changes in files I did not touch at all?

TaouBenI have a small problem, I made some changes in the project I am working it and I commited my changes and pushed it, then I made a merge request to my expert, and in gitlab I see some changes in files I did not touch. Now I dont now how to solve such problem, I am using SourceTree and I don't kno...

0
Q: Should I use dependency injection instead of class funcs?

SoniusI was reading a blog article by https://www.raywenderlich.com/ about the integration of health kit. For the communication with HealthKitStore, they used a class with a class func in it like this f.e. class HealthKitSetupAssistant { class func authorizeHealthKit(completion: @escaping (Bool, E...

0
Q: Current best practice for timed job execution in Android

Development_LarrySince I'm struggling a lot with the Android Oreo background restriction, I was asking myself if working with the AlarmManager is even the best way of timing Job execution to e.g. 03:00 AM. I saw some people use JobScheduler, but it seems it's not that suitable for executing tasks every day at a g...

0
Q: How to insert a random integer number, for a given column and several rows

Chris_1985I was wondering.. Is it possible, with a SQL query, to: generate randomly, a list of integer number insert this in a table, for a specific column, and for multiple rows I didn't try anything, to be honest I was just asking myself the question Thanks for your answers

0
Q: Use preinstalled fluentd installation in a K8saaS in the IBM-Cloud?

Jan-Hendrik PalicOne K8saaS cluster in the IBM-Cloud runs preinstalled fluentd. May I use it on my own, too? We think about logging strategy, which is independed from the IBM infrastrukture and we want to save the information inside ES. May I reuse the fluentd installation done by IBM for sending my log informat...

0
Q: didSelectItemAt IndexPath not performing segue (but does get called)

ChakeeelI have made a request to push navigationController to a new viewController when an item in my UICollectionView has been selected. The code runs but the action isn't performing. didSelectItemAt is being called however, as I checked this by requesting the colour changes when selected (which execute...

0
Q: Todo List with NodeJS and Express

AndroBackI made a todo list with the function of adding and removing todos. I am trying to implement todo modification. I used Jquery to edit the fields when the user clicks the Edit and Save link. I use EJS as a template. The problem is that I do not know how to implement the put method in my express cod...

0
Q: How Best to Find Dependency Modules For Angular App?

SollosaI have any angular app, I'm trying to run it as minimally as possible, so I followed these steps but it is requiring to install more modules on every new command & compile step. These were list of commands that were run: curl -sL https://deb.nodesource.com/setup_11.x | sudo -E bash - sudo apt-g...

0
Q: How to use substring() function to get middle string with relative index in VB.NET?

LyessDI want to extract characters from a string. However the string doesn't have the length every time. Basiacally I get data from a database and I want extract the value I need in it. But I'm stuck on step where I have to extract the right value. So first I get data like that : infoDataset2 = ac...

0
Q: How to Get webpack resolve modules using the right order in entry js file

Lamine KessoumI'm trying to require many scripts in an entry js file but unfortunately modules loads in the wrong order. The correct order is like how the requires ordered. I've tried all the webpack loaders, includes script-loader, expose-loader, exports-loader. What's happening is the app.min built before ...

-1
Q: Display the number of parcels that have been lost but have not been claimed yet for any compensation

Er. VishwajeetDisplay the number of parcels that have been lost but have not been claimed yet for any compensation

-1
Q: How to fix this? C# Error Index out of Range exception

Abdallah Elrouby Line 99: uint ID = uint.Parse(split[0].Split(new char[] { ' ' }, StringSplitOptions.RemoveEmptyEntries)[0]); File EshopV2File.cs using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.IO; namespace Kingdom.Database { public static class EShop...

0
Q: tkinter.TclError: no display name and no $DISPLAY environment variable python

Smack AlphaI want to execute my python file in a remote system using ssh. I exported the file to the remote system. Here's the sample file: import os import time import pymsgbox pymsgbox.alert('Hi Afreeth ', 'Welcome') if 'DISPLAY' not in os.environ: pass I want to execute it using ssh from my sys...

0
Q: How to mention a picturebox created is formLoad?

KajquoI've created a picturebox at Formload that is meant to be like a starter screen and i want it to disappear on a button click but it "doesnt exisist in the current context" private void Form1_Load(object sender, EventArgs e) { var picture = new PictureBox { ...

0
Q: Paragraphs become merged after processing with Beautifulsoap

DenisMy Task is to highlight some words in a html file. This works fine but unfortunately in the result file the paragraphs become from some point merged together (so I have then solid text without blank lines) which Looks rather ugly. I don't really understand the reason for this, especially because ...

0
Q: How to pass an object from Laravel to Vue without using props

AndrykVPI'm setting up some Vue Components in my Laravel 5.8 application, that require user information available through Auth::user(), most importantly, the api_token that I must use in my axios requests. I want to pass the Auth::user() object from Laravel to Vue in a secure and private method. I initi...

0
Q: LINQ with Regex.Replace

kameI want to remove all digits of every array item. I want to use LINQ and Regex. This is my code so far, but it doesn't work: var input = new[] { "aaa12", "bbb423" }; var pattern = new Regex(@"\d+"); var result = input.Select(x => x.Replace(pattern, "")).ToArray();

-1
Q: How to concat hour with date in python

Aritra SenI have a pandas dataframe where date and hour is in two different columns as shown below - I want to concat these two columns to have a new datatime column where I can apply pandas window/shift functions. Please share your views. date hour 0 20190409 0 1 201904...

0
Q: Zip4j allowing user to update encrypted zip by 7zip

Pranoy SarkarI have used zip4j to zip certain files. It is able to properly zip and while extracting it asks for password also. So far so go. Now problems I am facing After encrypting with password you can see the file name if you open by 7zip [is there any way to hise this?] You can add new files to the z...

0
Q: Spring-Cloud-Stream-Kafka Custom Health check is not giving Kafka status

Taufique AlamI have tried to add custom Kafka health check followed the same example set in the link Spring-Cloud-Stream-Kafka Custom Health check not working ----- But I am not getting the desired result. When I hit link localhost:8080/actuator/health, It gives { "status": "UP", "details": { ...

0
Q: Symfony Doctrine - Prevent slug from being null

Alexander Br.I have a Article table where the only field that can contain text is content From that i'm trying to get a slug /** * @ORM\Column(type="string", length=64, unique=true) * @Gedmo\Slug(fields={"content"}) */ private $slug; By mistake I found out that if I try to use some ...

0
Q: FIVEM LINUX Error in node_file.cc - what do I need to do? Do I need to update or edit the file? Or could it be something else?

user3202739I am getting some kind of error after running the server for a little while, and it seems to have with node.js to do. What could be causing this error? I have not tried anything since I cannot possibly know what is causing the problem. [2450]: ../../../../vendor/node/src/node_file.cc:162:void n...

0
Q: How to reshape array to pass into placeholder

HalI am trying to pass this array into the placeholder arr = [10 930 2 2840 231 1] that has a shape of Tensor("Shape_31:0", shape=(1,), dtype=int32) I would like to pass this array into my placeholder class RNN: def initialize(self): self.X = tf.placeholder(shape=[None, None], dtype=t...

0
Q: How to load external image in FileInputStream

sujirajanI am working in html to pdf conversion using flying saucer(itextrenderer)...I have to render image..I have rendered the image which was in my local storage(it works fine)..I have to do the same thing with external image.. Here is my code snippet for html to pdf image renderer... { t...

0
Q: Mac Os cannot gives errors when running this code for a react application how to fix this?

dory2380head: illegal byte count -- -5 is given when I try to run an sh file on a mac, when on ubuntu it is fine Never seen this error before, but tried changing variables around and syntax #!/bin/bash object='{}' find 'public/data' -type f -name '*.csv' | while read -r filename; do filename=$(ech...

0
Q: Woocommerce shipping cost calculations

Abhisake JainHow to prevent woocommerce preventing shipment multiplied with quantity of a particular category product in cart page I have tried using custom shipping methods but it didn't worked

0
Q: IBM Watson double-byte string conversion

stedejanIn IBM's documentation for text-to-speech feature there is an example of adding words to Japanese custom model: Adding words to a Japanese custom model They say the following: The following examples of the PUT /v1/customizations/{customization_id}/words/{word} method translate the URL-encod...

0
Q: Remove the space beneath the cards bootstrap

BeginnerIm using this block of codes to generate a deck of cards <div class="row> <div class="col-md-6"> <b-card> Test 1 </b-card> </div> <div class="col-md-6"> <b-card> Test 2 Test 3 </b-card> </div> </div> <div class="row> <div clas...

0
Q: how to get the desire rows by condition in DataFrame

ShanNI have the DataFrame with index is the post_code and its value as medicines name and proportion. How can I just get 1 medicine name for each post_code alphabetically (some post_codes may have multiple 'bnf_name' with the same rate for the maximum. In this case, take the alphabetically first 'bnf_...

0
Q: Automate Type Conversion in Hibernate Criteria API

JamesI'd like to use the hibernate criteria api on my Order entity in the following way: Restrictions.eq("orderDate", new org.joda.time.DateTime()); However my Order entity uses the Java 8 time api: class Order { java.time.ZonedDateTime orderDate; } With the code as it stands Hibernate tries...

0
Q: Excel macro stops running by itself when I switch to another Excel file

NikoleI'm working on a macro-enabled Excel file that I want to work like a timesheet. There's a button that the user will press and the current time will be stamped in the start column; if the user presses it again, the current time will be stamped in the finish column. If the user started a cycle and ...

0
Q: ANSIBLE - how to concatenate a string with a list

il-foxI am trying to concatenate a string which is referenced as variable with a nested list I looked into the options of using the set_fact and join but to no avail. config.yml name: concatenate module_name:Test state: present port: {{ env_dc }}{{item.ports}} with_items: "{{ my_list }}" gr...

0
Q: it is possible to use an if without executing its condition

Letho123so im trying to make an if statement to tell me if an sftp connection was sucessfull or failed, and if its a sucess i want to run a piece of code that automates an sftp download that ive already made. My problem is that this if statement executes this sftp connection, and then prompts me for a pa...

0
Q: To append the attribute name with an input variable

Nitin RaoI want to append the node attribute name with an input integer value. Eg: count=1 node["example_#{count}"] expected value: node[example_1] But we are getting a nil value. Please let us know the right way of appending. count=1 node["example_#{count}"] node[example_1]

0
Q: Laravel - Display query results as singular row

user11352561I want my query results to be display as singular I have created the Controller and the view. Controller $actives = DB::table('users') ->selectRaw(' IF((plan = 1), COUNT(*), "0") as daily, IF((plan = 2),...

0
Q: how to remove zeroe's before the number

RahulI have been working on this code for 3 days now and I can't figure out how to remove zeroe's before the output. It is a program which calculates factorial of a number. even if I use if statement as you can see which is commented It removes zeroes after and between the numbers. I even tried to tak...

0
Q: Dose ejb.jar and jboss-client.jar support java 11?

HardikDoes below jar support java 11? ejb.jar - javax.ejb API v.3.1 -Bundle-Vendor: GlassFish Community jboss-client.jar - 7.1.1.Final - JBoss by Red Hat

0
Q: Need help doing this view on swift

JoãoI came here to get some help.. I have to do this view on swift I can't show nothing when I run the app, but I don't know if I'm doing it well... Can I do this view with a collectionView? import UIKit class DetalhesViewController: UIViewController, UICollectionViewDataSource, UICollectionVie...

0
Q: How to return the value of foreach loop in c++?

h.hI need to take multiple lines of string and then prepends with spaces. I am using boost::split to split the string and assign the value to a vector. And then inside for-each loop, I add spaces to the vector value. static string test(){ std::string text = "This is a sentence.\nAnd another s...

0
Q: Why is the password on the hash does not match?

legolock holmesI am using password_verify to verify the hash but it is not doing what is expected, please help me with my code I've tried searching for answers but can't find one //Putting the hashed passwords to the data base session_start(); require('connect.php'); $hashedPwd = password_hash($dbc...

0
Q: I kept on getting that my variable isn't defined everytime I tried to update my DataFrame

BrightI've been trying to write an app using TkInter which will save the input data upon clicking the 'save' button. At first I tried putting my data in Dictionary but It kept on deleting old data. I've already posting a question about it and got the answer that I should use DataFrame instead of Dictio...

0
Q: Java client for connecting SFTP server without password

Ramya MI am in need of connecting SFTP host only using a username. Is there any java client available with avove feature? Please share

0
Q: Change declaration of column

ludzikI have a table with column "start" and "end" declared as follows: CREATE TABLE [dbo].[mytable]( [name] [varchar](30) NOT NULL, [start] AS ([dbo].[myfunction1]([name])), [end] AS ([dbo].[myfunction1]([name])), CONSTRAINT [pk_id] PRIMARY KEY CLUSTERED ( [name] ASC )WITH (PAD_IN...

0
Q: How to insert an html to the top of a page?

Laksh GoyalI need to find a way to insert an HTML page into the top of any page using an extension. It should basically appear as a bar that fills the width of the full screen and occurs right below the bookmarks bar, so right above the body. I have the HTML page ready, but I have absolutely no idea how to ...

0
Q: looping each row of a pandas dataframe

EliasI have a large dataframe and I want to divide values of the same row by eachother if a certain condition is met and create a new column for each condition. I tried all kinds of loops but Im getting the error that the truth value of a series is ambiguos. I think Im close to the solution but I can...

0
Q: Read from text file with delimiter

incnnuI have a text file with an index of students that looks something like this: Anna Baker Class 1B Long description text about the student lorem ipsum dolor sit amet, consetetur sadipscing elitr. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt. Lorem...

0
Q: Java: Sharing a variable across multiple threads

paulBackground: I am running automation tests in parallel. Multiple browsers get launch in the same number of threads i.e. 1 browser is 1 thread, using forking in pom.xml. <forkCount>5</forkCount> <reuseForks>true</reuseForks> I want only 1 thread to access the "prepare test data" function and set...

0
Q: H2 database hanging on specific query

dosenfantWe have an application storing data in a local H2 database (file mode). Everything works fine except for a single query that's executed on application shutdown. The query is issued to the H2, but never returns (no exception is thrown). As far as I know, this only appears on a single workstation ...

0
Q: Trying to get a four weekly running forecast of our average m3 sold

James Palmerenter image description hereI would like to get a running average m3 over the last four weeks of sales. so far I have come up with the following MDX query but it doesn't seem to work Avg ([Normal Calendar].[Calendar Hierarchy].[Cal Week].Lag(4) : [Normal Calendar].[Calendar Hierarchy].[Cal Week...

0
Q: wrong size of ijvm chunk file in c question

sir HoyleI am trying to implement an IJVM an read a binary file. I understand that an .ijvm file contains a 32-bit magic number and any number of data blocks and that a data block has three parts. My intention is to first read and store the magic number which is always of constant size and then the data...

0
Q: Attach a custom plugin to Vue-Chart

user1602496We need to attach a custom plugin to vue-chart. Please guide us how to implement on the same import { Line, mixins } from 'vue-chartjs' export default { namespaced: true, extends: Line, props: ['chartData', 'options'], mounted() { this.renderChart(this.chartData, this.ch...

0
Q: Why @ExceptionHandler annotated methods are protected?

cananAlthough not explicitly specified in @ExceptionHandler's official documentation, almost in all the examples on web, methods annotated with @ExceptionHandler are protected. Is there a specific reason for that?

0
Q: Shap Explainer Using Python Pipeline models

Nayana MadhuI've a pipline model as given below; pipeline = Pipeline(steps= [ ('imputer', get_imputer( categorical_features=categorical_features, real_features=real_features, int_features=int_features, )), ('classifier', RandomForestClassifier(crit...

0
Q: How to run multiple job without affecting existing running job using spring boot batch?

Manoj KumarI am running spring boot batch using jobbuilderfactory with Job, Flow and Step. I am running one job it keeps on processing. But i am trying to implement another job that will be processed and should be stopped once the data are moved to csv file. Below is my code currently works for one job @B...

0
Q: Broken url in vue.js template inline

UncokeHow to pass a data value to inline component in Vue.js? I need to create a simple template inline just like: router-link :to="{name:':name'}" :class=\"[...] But when rendered it has a broken link (missing the name) "componentLoggedOff": { template : " <router-link :to=\"{nam...

0
Q: Git pull fatal: Out of memory, malloc failed even though repo less than 10 kb

Supreme Grand RulerI've seen there are a lot of similar questions, however, my folder is very small... less than 2 mb. With the .gitignore, it's 5 files and maybe about 10 kb of stuff. The remote repo is empty save for a readme. When I try to pull it, I get the error fatal: Out of memory, malloc failed (tried to a...

0
Q: user merge fields doesn't replace by user record ID

kailash ChandraI am trying to send email through email template to user but It is always replacing the user merge fields by org admin's user name instead of targetobjectID user. Org admin : luke wright Email template Body : Dear {!User.Name} , Hearty Congratulations on this beautiful occasion. May your marria...

0
Q: React: Customize HashRouter to not use hash for some urls

MelchiaI am using react-router-dom as a router for my application. I need to redirect some hash urls like this one: http://localhost:3000/#/contract?id=8171675304 So I used HashRouter. This solution works for my link above but the issue is that I have a security redirection( with AuthenticationProvider)

0
Q: Duplicate Rows in Power BI multiple times by a number indicated in another column

JamesThe idea of the problem I am having is that in Power BI I have a table like: col1 col2 entry1 1 entry2 2 entry3 1 I would like to create a table of the form: col1 entry1 entry2 entry2 entry3 That is you duplicate each row by the number specified in a different column. In my actual case my table...

-1
Q: Am i learning to solve problems the wrong way?

cole Mathy TI have this thought in my mind that if I copy other peoples code it's cheating since you should break the problem down(Which is what I am learning to do still). the way I do things is I will break the problem as best as I can, like an example: there was a list with 4 values and I wanted to run te...

-2
Q: cannot remove jpg using unlink function

dhruvDelete Function function delete_news($id,$img) { $sql = $this->con->prepare("DELETE FROM `nm_news` WHERE news_id=:id"); $sql->bindParam(':id', $id); $sql->execute(); unlink("uploads/".$img); header('Location: all_news.php'); $this->con = null; } Here I am able to delete...

0
Q: Electron: Changes to html not shown until process completes

CodeCabbieI update several dom elements to show progress during a loop, but the browser doesn't show the changes. Only when the loop finishes, do all the dom elements get updated at the same time with the final progress message. <ul id="progress1">Ready to import flight 1...</ul> <ul id="progress2">...

0
Q: What guidelines are there when converting PowerBuilder app to Angular app

BerkaPowerBuilder developers are hard to find and moreover that there are very few companies that are still using PowerBuilder. There is need to convert PowerBuilder app to some other technology. The problem i face is the basic knowledge required to evaluate Angular for 100% compatibility with all the...

0
Q: Write An SQL Query To Print The CompanyName, ContactName, CintactTitle and Product name Having The Highest UnitPrice In Each ProductName

AshokWrite An SQL Query To Print The CompanyName, ContactName, CintactTitle and Product name Having The Highest UnitPrice In Each ProductName. Product table Id ProductName SupplierId UnitPrice Package IsDiscontinued 1 Chai 1 18.00 10 boxes x 20 bags ...

0
Q: Connection Refused when creating a two nodes cluster in Apache NiFi

abdellah elazzamI'm facing a problem regarding a refused connection on the cluster node protocol port. I'm using the following configs to create the two nodes cluster: For the First node manager : #################### # State Management # #################### nifi.state.management.configuration.file=./conf/...

0
Q: Can I add a navigation bar with a "Share" button to second viewController, capturing the screen as an image?

oleh1Im developing an app that allows coworkers to upload a photo from their photo library/camera and add a couple of symbols using a tableView function. Basically, the initial viewController allows the user to upload a photo and preview it, then if you hit "edit photo" it takes you to a second viewCo...

0
Q: BAT file for "User Info" with parameter from command prompt

PonyriusI'd like to run the script with parameter from cmd and without any further interaction, receive the output. For example: "netuser.bat JOHN" Result: Net user information for "John" What I got at the moment: goto :main :main set /p user=%1 net user %username% /domain goto :eof If I run the...

0
Q: How to convert yyy/MM/ss hh:mm:ss into seconds?

WhiteGloveIntroduction I'm trying to get the difference in seconds from two Epochs i.e 2019-05-22 18:28:56 -> 1558542536 seconds 2019-07-22 19:00:00 -> 1563814800 seconds The diff will be: 5,272,264‬ seconds This date format comes from a binary file as a String My code public static void main(Stri...

0
Q: Bounty amount on reputation tab hardly readable

GlorfindelToday, a bounty was awarded to one of my answers (thanks @gnat); when I visited my reputation tab I noticed that the amount is hardly readable since it's green text on a blue background: Can that be changed (back?*) to white text please? *: I'm sure somebody would've noticed it unless it was ...

0
Q: How to fix randomForest that gives OOB of 100%

ElkeI am working on a dataset of 5000+ genes that all have an (numeric) expression at 6 different nutrients. These are in a dataframe in which the first column is the nutrients, and the other 5000+ columns are the genes. nutrient gene1 gene2 gene3 gene4 gene5 gene6 gene7 1 Ammon...

0
Q: Cannot reach an otherwise reachable web API, with certain parameters in URL

StackLloydI have a web service which has to be called passing four arguments. They are not optional, and are to be included directly in the URL, without a query string, as such: .. api/myservice/argument1/argument2/argument3/argument4 If I try to call it with the URL written above, it answers and giv...

0
Q: How to access API data using vue.js with v-for loop

LinguisticsI am looping through some API data & cannot access a part of the object I am using v-for method in vue.js. In the main div I loop through using the iterator recipe, it works for everything except for analyzedInstructions.steps <div class="food" v-for="(recipe,index) in recipes" v-bind:r...

0
Q: 'AxesSubplot' object does not support indexing

Disha GuptaI am currently working on some survey data, and I am using python for the purpose of analyzing it. I have implemented the following code img = axes[r][c].pcolormesh(datahist.values, edgecolor='w', linewidth=1) and it is giving me an error "TypeError: 'AxesSubplot' object does not support inde...

0
Q: I have tried mapping it with @GetMapping and with @RequestMapping, still not able to find the solution

Kartik DuttI'm getting 404 with this code. Controller class @RestController public class TestAPI { @RequestMapping(method = RequestMethod.GET, value = "/") public ResponseEntity<String> hello() { System.out.println("Hit me!"); return new ResponseEntity<String>("Hello, you!", HttpStatu...

0
Q: How can I sync Folders from a Serverfile to a client computer with powershell?

Dr_L4ngI have some issue with Sync center on my computer since I upgrade it to W10, so I try to write an alternative script that compare the sync folders/files on a desktop and our ServerFiles and copy the latest version of each folders/files on the user computer. Thanks to the community I found some c...

0
Q: Training mask rcnn on google tpu using - Socket closed

Lezard van TubberghI have follow the google tutorial to train Mask rcnn on Coco data without issue (https://cloud.google.com/tpu/docs/tutorials/mask-rcnn) I then followed the tutorial steps again but on my own data this time. My dataset has about 3000 samples This is how I start the train script: python ~/tpu/m...

0
Q: how to pass data from listview to another listview in the same page?

Aly Ramadani develope point of sale system and i need to send data from listview to another list view in the same page to make Bill or from listview to listbox any ieda about this

0
Q: Why perl distinguish `"` and `'`?

Eugen KonkovAccording to this comment: You also should not use single quotes in print ">>${ '_<$filename' }<<\n". Instead try: print ">>${ \"_<$filename\" }<<\n" I always thought that differences between " and ' are only that the string is interpreted or not. I want to ask why at this context: print "

0
Q: jsdoc exclude folders with exceptions

NoarkHow could I exclude any folders on my nodejs app with jsdoc with exceptions? I have this (relevant) piece of code: "source": { "include": [ "./../../", "../../app/_public/global_scripts", "../../app/_public/lang", "../../app/_public/errors...

0
Q: Text input not showing in Kivy launcher (Android) QPython

whatisupNot sure why text input doesn't show. from kivy.app import App from kivy.uix.boxlayout import BoxLayout from kivy.uix.label import Label from kivy.uix.textinput import TextInput class MyApp(App): def build(self): b = BoxLayout() l = Label(text="Hi there, Welcome.") ...

0
Q: Why is my implementation of TCollections.CreateObservableList for interfaces not working?

Andreas MeckI tried to implement as Stefan suggested in Why is Spring4D's IList OnChanged event not fired?. This version should implement an observable list of interfaces. Compiles but is unable to find a 'change' event handler at runtime. I changed some procedure parameter from TObject to IInterface. Some ...

1
Q: Display the hour

SakuraI'm tryring to write an algo with JS that displays the time with the h/m/s format, counting seconds per seconds and with a H24 format. The goal is to obtain the time one second after having defined the time. Link here : https://repl.it/@LunaShivaya/Heure-suivante Problem on "unexpected token" i...

0
Q: How to gray out a button when file is not chosen

S0ul3rI already managed to disable the button when file to upload is not chosen, but I want to change how it looks when it is disabled/enabled (btn-secondary, btn-primary) I tried to change the .css file but it didn't work for me I just want the button to be gray when no file is selected like here: ...

0
Q: converting rows to column for a set of ids

MHOOSConsider the following query: DECLARE @t1 TABLE( CompanyId INT, DirectorName VARCHAR(100)); INSERT INTO @t1 VALUES (1,'D11'), (1,'D12'), (1,'D13'), (1,'D14'), (1,'D15'), (1,'D16'), (2,'D21'), (2,'D22'), (2,'D23'), (2,'D24')...

-1
Q: Azure - virtual machine

wlochaty7I want to move to the azure cloud from the current DC. At the beginning I was planning to build an analogous virtual machine farm, unfortunately I have a performance problem. The CPU and RAM are ok, while the disk speed, despite the choice of ssd premium, is significantly lower. I carry out the t...

0
Q: how to marks detected object from video on 2D image with same coordinates?

msahabI am going to replicate this Here's a link! . I am working on live telecast of football match. No dimension of ground, No information about camera, no aerial view. I wanted to map the detected players on 2D field according to the ground I have done player detection and their team by using tenso...

0
Q: Python : Pearson Correlation Between two identical arrays is returning out of range value

priyammathurOn calculating correlation between two identical arrays, the correlation which is supposed to be 1, is coming out to be greater than 1. Is there any reason for a correlation value to come out of range of [-1,1] Im using numpy to calculate the covariance and standard deviation. import numpy as ...

0
Q: Cumulative sum/subtraction dependent on flag and account number R

MLPNPCI have a data set that looks TransAmount C/D ACCOUNT BALANCE NEW_BALE 110 C 500000 130.34 -6128.74 200 D 500000 130.34 -6328.74 83.07 C 500009 -1079 -6411.81 113.49 C 500026 112.63 -6525.3 39.74 C 500041 179.2 -6565....

0
Q: Statement X in SAS

RedI'm trying to export a file to sharepoint with SAS, when I test it with cmd It works, but when I test it with sas, I have an error. X copy 'C:\Users\XX.XX\Desktop\Stage\Mantis\testExport\qsf.txt \\XX.sharepoint.com\Documents%20partages\qsf.txt'; Error : 1 ...

0
Q: Access to font at from origin has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource

Ujjawal PooniaI have two problems in my website 1) Mixed Content: The page at 'https://www.mywebsite.com/' was loaded over HTTPS, but requested an insecure font 'http://demo.kallyas.net/ares-furniture-interior-design/wp-content/uploads/sites/6/2016/03/montserrat-light-webfont.woff'. This content should also b...

0
Q: How do I convert cURL into guzzle requests?

piyepedamI'm working with Lufthansa API and want to fetch some data. I can fetch a token but not any other information. I get the following error: "Error: Account Inactive". How would I get the getAirlines() function to work? <?php require 'vendor/autoload.php'; class Lufthansa { private $client_id...

0
Q: sentiment analysis on excel data

Ahmad MuhammadI have an excel file containing students' comments for 9 weeks. There are 100 students making a total of 900 comments. How do I perform sentiment analysis on this data. some of the comments have commas and pull stops in them.

0
Q: Too many open files on a project using spring-cloud stream and kafka after upgrade to 2.1

GUISSOUMA IssamAfter upgrade to spring cloud stream 2.1 on a project using multi binder kafka(2 brokers) and rabbit(1 broker) we are facing too many open files problem. The number of files opened keeps growing to the limit defined by the os(redhat 7.3). I use the actuator endpoint to monitor: /actuator/metric...

0
Q: How to create image secret, with my docker hub credentials

arun kumarI am trying to pull my image from dokerhub to openshift..It is asking to configure image secret Could not load image metadata. Reason: imagestreamimports.image.openshift.io is forbidden: User "actionsna" cannot create imagestreamimports.image.openshift.io in the namespace "test11": no RBAC polic...

0
Q: How to get the data that is not loaded in the target table?

pranay tanniruI am having a small ETL mapping in SAP BODS where the Source table data is loaded into the target table. But there are chances where some rows might be having some errors and may be skipped. I want to store the count of all these rows that are skipped by BODS into another table(C). Can someone pl...

0
Q: Get SharePoint rich text field value in C#

MaroIn case rich text field contains new lines, bold, italic, formatting or any color, the first line of my document, which is the value of the rich text field is being exported nicely (with the same formatting, that is in item), and the rest code is not being exported in the word document. However, ...

-3
Q: I can't intercept localhost with OWASP Zap

synnefreeI've read all the guides available online to solve this matter, I've set ZAP to port 8090 and WebGoat to 8080 , Then I set Firefox proxy to manual proxy -> ZAP's proxy I can intercept anything from web apps other than localhost But I gt nothing with localhost and my "No Proxy For" option in Fi...

0
Q: SQLite speed in Android studio

이ᄋᄉI have a table, less than 100 rows, 5 attributes. At an activity, there are 4 tabs by fragment. In each fragment, I call the following code at 'onCreateView'. When I change the tab to another tab, the speed of change is taken about 1s? maybe less than that but I can fill that it's definitely sl...

0
Q: i want to get only session id value from this array field

susmitha pandaCan i get this sessionid from this array field , please help me with this var data = ['JSESSIONID=CE04D3A4F9A930F7716ABD1CF1D7E4A9; Path=/sample/; Secure; HttpOnly']

0
Q: How can I add/edit permissions in linkedin apis?

Adil KadiyawalaI need to get user interests from linkedin via api but due to permission I can not get interests of user. So what I can do to get the interests list of user?

0
Q: How to create nested JSON for the multi-level menu list using Spring boot and MYSQL?

Tài BùiI've been trying to create a multi-level nested JSON using MySQL and Spring boot. I will need this JSON so I can later on use jQuery to create HTML menu. But I'm currently struggling to create my multi-level nested JSON. Basically, I've got an MYSQL database that looks like this: id catego...

0
Q: How to perform a transformation to each slice individually?

maxpayneI have a series of Xray images of a cylindrical part. With that, I can create and visualize the volume, but the data appear like a stack of slices from -Z to Z which is expected. What I want is to rotate each slice image with an incremental angle along Y-axis to make the whole volume cylindri...

0
Q: getOutputStream() has already been called for this response in [JASPER] [Spring Boot]

VIGNESH REveryone I'm Beginner in Spring Boot Java .I am facing One error past two days.I have tried to resolve that issue.I have checked in stack overflow.I have read existing errors in stack overflow but I couldn't .I have uploaded the code what i have written.In Front end I am using .JSP Files My doub...

0
Q: Effect of synchronized keyword

LoopinfilityI am currently studying on java concurrency subject(threads etc.) Could you please give some knowledge about the effects of the Java keyword synchronized when applied to: i)an object ii)a method iii)a static method

0
Q: Flutter - How to get Inputs values from textfields and display it as new text

Ashish More I'm trying to get values from user as they type in the Text field and display it as a new text below.The Problem is I'm not getting the values from textfield. Here is the code that I have return. Code : Column( mainAxisSize: MainAxisSize.min, children: <Widget>[ ...

0
Q: Notice: Undefined property: TableK2Category::$title in

gianniskarHi i have this notice Notice: Undefined property: TableK2Category::$title in /var/www/vhosts/.../httpdocs/plugins/content/geotext/geotext.php on line 78

0
Q: Combine two array using a field in PHP

Harjeev SinghI have an array in which i want to combine the common fields together. So that the common names get grouped together and they contain the common values of that particular name. Below is my array [ [ count_employee: 2, name: "Harry" ], [ count_employee: 61, name:...

0
Q: Lotus script: How to fix error "91 Object variable not set in FUNCTIONNAME(Object variable not set)"

Samuel OmopariolaThe code when run manually (right click and run) it works perfectly, but the issue arises when it is automated using schedule. When automated the code runs fine but right at the end of running the code it fails with the above error message. The code looks fine, variables are set as they should a...

0
Q: Runing Jenkins build throws: java.lang.reflect.InaccessibleObjectException

David CunninghamHey I'm trying to get a Maven Java project to run via Jenkins build, It run perfectly via the command line but when I run this via Jenkins. I get this error: Building remotely on Windows10 in workspace c:\jenkins\workspace\SELENIUM Single-Browser Automated Test hudson.remoting.ProxyException: ja...

0
Q: R: Speed up for loop containing which

AMDI have two data frames - one contains a bunch of postcodes and surveys allocated to them (df1), the other contains all possible postcodes and the zones within which these are contained (df2). I essentially need to remove the postcodes, and allocate each survey to a zone (using the postcodes to cr...

0
Q: run time error 4004 sum if with variable sheet name in function

Rens LooijenWhen coding a specific range of cells (column) with a sumif function within VBA i get an object or application defined error. The sumif function refers to another sheet,which is the same for all 4 variable sheets, in the workbook and is returned to 4 different sheets The source sheet is the Mach...

0
Q: Merge 2 linq querries, using result from 1 to continue search

VincentCurrently I've written this: var announcement = await Context.BulkmailAnnouncement .Where(x => x.PackageTrackingIdentifications.Any(y => y.Value == packageTrackingIdentification) && x.AuditReportIndicator != true) .FirstAsync(); re...

0
Q: sum columns of a table, grouping by table partition

BonzayI have a table which holds daily metrics : |DateID | Metric1 | Metric2| 20190501 24 34 20190502 25 56 ..... .... .... The table has more than 150 million rows. It is partitioned on DateID, per month (each partition holds rows which DateID from first of mo...

0
Q: Xcode10.2 AVAudioFile - framePosition

HiDuEiThis is a recommendation of stackoverflow on a question to let a audiofile being played later from its original starting point. framePosition is a instance property of AVAudioFile. Okay https://developer.apple.com/documentation/avfoundation/avaudiofile/1390785-frameposition#declarations How can...

0
Q: Do Heroku app dyno hours carry over between accounts?

SurajMy team uses several apps deployed on Heroku from my account, and I just ran out of free dyno hours for the month. While I'm happy to start paying for a few of them, having 10+ apps running me $7 each isn't really feasible, so I decided to transfer ownership to my teammates, assuming that the app...

0
Q: How to send json request and get string response in volley

RJ-JSONObject couponJson = new JSONObject(); try { couponJson.put("couponCode", coupon); couponJson.put("orderId", getOrderId()); } catch (JSONException e) { e.printStackTrace(); } JsonObjectRequest jsonObjectRequest = new JsonObje...

0
Q: How to join 2 tables in HDFS out which 1 is small enough to be stored in the RAM of a node in the cluster?

eAposteveryone. I am a newbie in HDFS/Hive and I have the following tables: One table, e.g. D, which is small enough to be stored in the RAM of a single compute node in the cluster Another table, e.g. E, which is much bigger than D (E exceeds the average RAM of a cluster node) Based on the above...

0
Q: Delphi/Pascal & VB (.NET) Interoperability

PixyI have a Program which calls the Start function within a .dll like Start(ExePath + '\a.dll', @Start, True); Both are written in Delphi/Pascal. Ideally, I would like to use a .dll in VB instead of Delphi/Pascal to call the Start function within the .dll, but since the dll and the program are co...

0
Q: How can I solve the following error when attempting to obtain a token from an external module

BernyI am currently working on the development of a module to obtain product information from a db and transform it into csv for quickly import/export. The module came with a guide on how to do it, but I find it quite lacking, and this is the my first time with Visual Studio and C#, wich does not help...

0
Q: wdio - Jenkins integration

Jaw. M.I'm currently facing a problem with integrating Jenkins by using wdio which I couldn't solve so far. When I start the wdio configured job via Jenkins I get the following output: This is how I execute the build by using the shell: export PATH=/var/lib/jenkins/tools/jenkins.plugins.nodejs.tools...

0
Q: Data source name not found and no default driver specified". Failed to acquire connection "DestinationConnectionOLEDB"

RajeshI have created an ssis package to import the excel to sql. I have set the connection string and excel file path by expression. After that I'm trying to invoke package by c# wpf application by Microsoft.SqlServer.Dts.Runtime.DTSExecResult and passing value of connection string and excel path. My ...

-3
Q: Any code for Monthly event calendar in asp.net?

Yabaz ThampiI want to a calendar with monthly Events. I have tried on google but couldn't find anything Expected Result

0
Q: How to send item position Adapter to fragment and fragment to activity

Equalto multiplyI have problem in my code i want first Adapter click item position in fragment and then this position want from fragment to MainActivity i have implement some design in my main_activity.xml so i want some data from model class by this position i have achieve Adapter click and successfully receive...

0
Q: Prepopulate algolia instant search with results from a previous geolocation query

M GriffinI have a search feature on my application whereby a user can type a city and perform a search based on results from that city (lat, long) I would like to then pass these results from the algolia geolocation search to the instant search front end component so I can filter it further. I know you ...

0
Q: How to made a specific merge

Laadhari AmineI'm trying to merge two arrays in one result I used array_search function to check if the key exist i just took the value for ($i = 0; $i < count($cashByPacks); $i++) { $result[$i] = array('pack_id' => $cashByPacks[$i]->pack_id, 'pack_name' => $cashByPacks[$i]->pack_name, 'effect...

0
Q: Is there a way to put interactive matplotlib graphs in django webpages?

SOFUserI want to make an interactive plot, so that clicking on a position on the plot, shifts the plot to the position. I have implemented it in matplotlib or PyQt. But I don't know how to make interactive matplotlib graphs in webpages (particularly django). Is there any way to detect click locations...

0
Q: How to read only the names of files inside the 7zip file?

Mayank kumarI have the requirement to read only the names of files inside 7zip file using java.I do not want to decompress the file . I String archiveFilename="002.7z"; SevenZFile sevenZFile = new SevenZFile(new File(archiveFilename)); SevenZArchiveEntry entry = sevenZFile.getNextEntry...

0
Q: The "left" tag works but the top only works when i set it as px and doesnt when i set as %

Lewis CooperWhen trying to set the distance of the paragraph from the top of the page it only works when its set as a pixel value and not when i set it as %. It somehow works with left though I've tried the % but hasnt worked HTML: <div class="para1"> <p>If you're reading this I just would lik...

0
Q: Convert image to string and send via post to Angular website

Maximilian von UnwerthWe take a picture and convert it to a string with base64. Then we send this String via Post to our Angular Website. The received image just contains ~two valid lines of the image. The other parts seem to get lost on the transfer. We use res.write(data); to send the data to the website We send ...

0
Q: d3 drag fires event even when dx and dy is 0

MrDeiblwhen i try to create a new d3.drag() function and bind it afterwards to my selection the "drag" event fires even when i didn't move the mouse (dx and dy = 0) on click. I wan't to call a click handler when there was no "drag". var drag = d3.drag() .on('start', dragStart) .on('drag...

0
Q: How can I cache this api response between restarts?

blukku blukkuThe branding scheme of my app is set using an api response that contains 2 strings. Imagine something like: { primary: "#3eab5c", secondary: "#1fb3b7" } I'd like to cache the values, so should a user ever open my app with no connectivity or perhaps my branding api is unavailable, then I can con...

0
Q: C++ titlebar icon

HyperByteri got a problem with setting titlebar icon for my application. trying to figure out and googling what is wrong for 2 days already, without success. MainWindow.cpp: #include "../../res/Icons.h" void MainWindow::Create(HINSTANCE hInstance, HINSTANCE hPrevInstance, PWSTR pCmdLine, int nCmdShow) { ...

3
Q: Specific alignment within \begin{align} environment

JulienI would like to produce the following alignment with \begin{align*}...\end{align*}. -0,1 < E < 0,1 6,3 < S < 6,4 6,3-0,1 < S+E < 6,4+0,1 6,2 < I < 6,5 I can't figure out where to place the & signs. Thanks for your help.

0
Q: How to store a nested dict in a local file and retrieve it back maintaining the data type as dict and not str

Jatin JhalaniI saved a list which contains nested dict to a csv file. When I tried to retrieve back the dict, it's type is being converted to str. How do I get back the dict type? This is the list - a = [{'Ford India Pvt Ltd': {'x': ['June, 18', 'July, 18', 'Aug, 18', 'Sep, 18', 'Oct, 18', ...

-1
Q: How to set unique at struct Beego

BilguunHow to set unique at the struct specific columns. first name type User struct { ID int64 `orm:"size(100)", pk` Lastname string `orm:"size(100)"` Firstname string `orm:"size(100)"` Role string `orm:"size(100)"` Created time.Time ...

0
Q: Struggling to display table rows with ngFor

tearswepI have 2 arrays of objects. 1 of them has multiple objects that like this : (tableData) (2) [{…}, {…}] 0: {claimId: "C.24NNT.001.001", MON: 8, WED: 3.2, FRI: 5.3, sum: 16.5} 1: {claimId: "C.24NNT.005.001", THU: 8, sum: 8} And the other one has SOMETIMES 1 object thats like this: unspecifiedTab...

0
Q: Bootstrap 4 modal div with ID (Guid from C# model)

martoSo basically if I go with: <button type="button" class="btn btn-primary" data-toggle="modal" data-target="#@Model"> <div class="modal fade" id="@Model.ID" tabindex="-1" role="dialog" aria-labelledby="CenterTitle"" aria-hidden="true"> it does not work! (ID is public Guid ID { get; set; }) The b...

0
Q: Converting datetime from CSV import formatting error

MikeMI have imported a CSV file using read_csv. The raw data in the column of the CSV that I am interested in records the date in the format as follows: 19/01/2012 9:00:00 AM However, when the data is imported it is shown as: 2005-03-21 10:30:00 Not sure why this is happening. Ultimately I am ...

0
Q: Azure AD authentication with auth code grant flow in asp.net mvc application

Ashwinee VaishampayanI would like to use auth code grant flow in asp.net mvc application. I have created an azure ad app but the ID token under implicit grant is not enabled. In Startup.Auth.cs private static string clientId = ConfigurationManager.AppSettings["ida:ClientId"]; private static string clientSe...

0
Q: Drop down list with values from the same record

LinaI am setting the new database and can't figure out how to make a combobox with values from the same record. It's about the customers and orders. Customers might have up to 3 delivery addresses. So when person is raising a new order in a form, he has a drop down list with addresses and can choose ...

0
Q: Extend Woocommerce search by custom field value

LukFrom what I see, the Woocommerce search engine searches by the title and the content. I would like to add a search by custom field value I have read many posts with a similar problem. A lof of users recommend pre_get_posts or woocommerce_product_query for that. I tried to do this with that met...

0
Q: How can I restrict login of a user account to specific 3 devices only?

Kamran ShahI need to implement a functionality for a user A to login via maximum 3 devices, That means user A must register every new device after logging in to his account, and can increase maximum number of devices after paying for an addon. I developed this functionality using cookies but client is aski...

0
Q: How to find ip address in netlify

James VibarI have a website deployed in Netlify and I have a form that submits a POST request to a webhook in Integromat. The webhook works but I want to add IP restriction to the webhook so that no else can use the webhook. Integromat is asking for an ip but I can't seem to find what ip address to use, i...

0
Q: search for a string and replace the entire line from a file

signalhouseI want to search for a string in a file and replace the entire line with a value returned from a command. But for some reason the script does not update the value in the file. Ex: Search for $FileName in the file and replace that line with the value $FileName=truncate_20190523.log derived from t...

0
Q: Regular expressions matching several values same group

SircamSo, I'm having a JSON file with this value as an array: "role":["ONE ROLE","ROLE TWO","ROLE WHATEVER",13123,123123] And I'm trying to extract all the values of the role using a regex, for dynamically getting the field "role" and all it's values within the array. Up to now, with this regex, I'...

0
Q: How to generate extent report for cucumber + testng framework

PrateekHow to generate extent report for cucumber + testng framework in such a way that on each scenario failure I can get the screen shot captured, without repeating the code before and after every scenario in step definition file I have setup the Testing framework using Cucumber+Testng. However, I n...

0
Q: Is there a view which lists all database users?

wenzzzelI'm making a script that compares a list of users with the actuall users that's in a database, but I can't find a good view in sql server to use for the comparison. Expected result I'm in need of a view that shows all users on the current database. i.e. the users that show up when expanding da...

0
Q: Saving and Loading: Can't anchor or use loaded model

FabricioI'm trying to save and later load and use a model. It works insofar, that I can load the model and see all the parameters, but somehow I don't manage to continue training or use it for predictions. What do I have to change? import gpflow import numpy as np ### Setup np.random.seed(1001) N = 50...

0
Q: Adding exhaustive dependencies into useEffect and useCallback causes infinite loop

DanVSo I thought I was getting the hang of these hooks, but the lint rule react-hooks/exhaustive-deps is tripping me up. I have this method inside my Provider const onScreenChange = useCallback( (key, value) => { const newState = Object.assign({}, screenState, { [key]: value }); localStorage.se...

0
Q: Cannot update any attribute in the testUpdateBookOrdersShippingAddress

Tomas JonasI have a problem about updating BookOrder. BookOrder is connected to DetailOrder via composite key according to many to many relationship. The error is shown below. May 23, 2019 2:33:48 PM com.mchange.v2.c3p0.impl.NewPooledConnection INFO: [c3p0] Exceptions occurred while trying to close a Poo...

0
Q: What is the delay before renamed entities names appears in the Graph API?

Olivier BrousseauWe are querying the Facebook Graph API on behalf of our app users. In one case, one user mentioned he renamed his Ad Campaigns (in Facebook Business Manager) to be able to filter them out in an easier fashion. However, querying the Graph API (on the Ad Campaign endpoint, https://developers.faceb...

0
Q: Queryset Django - according to parameters date in weight compartment

Maddie GrahamI'm trying to get a result where my data from the database is sorted first by weight and then by date. My models.py look like this: class Example(models.Model): date_created = models.DateTimeField(auto_now_add=True) weight = models.PositiveIntegerField(default=1, validators=[MinValueVa...

0
Q: how can I investigate no pg_hba.conf entry for host error using pgadmin?

gringogordoI have a local postgres install and I'm trying to also connect to ome remote servers. So far I've connected to 2 without issue. This is the pg_hba.conf entry # IPv4 local connections: host all all 127.0.0.1/32 md5 host all all 10...

0
Q: How to access the host of another node from the inventory file?

Bhavani PrasadI have an ansible inventory file which contains "nfsserver" and "clusternode" IPs. I am running the role for "nfsserver" and need to access the "clusternode" ip in "nfsserver" role. What is the command I can use? I have tried '{{ hostvars["clusternode"] }}' but it didn't help. Tried '{{ hostvars...

0
Q: How to install node and npm on macOS without admin rights?

James Sulley SullivanI work in a big organisation as UX designer. I have basic programming knowledge. I've been trying for ways to install node / npm on macOS without admin rights with no luck. I've tried all the methods described here https://gist.github.com/isaacs/579814 but all of them require using sudo or ma...

0
Q: AngularJS application continuously redirects within BPM and thus crashing browser

Muhammad Faizan UddinI included a standalone AngularJS project in IBM BPM by keeping all the project assets (html, css & js files) in resources (teamworks.war) and keeping the index.html and AngularJS's main controller in customHTML in BPM's coach view. Routing file for AngularJS (app.js): angular.module('demoApp',...

0
Q: Child component returns props as null

Hareini SreethiI am fetching data from api in the parent and I'm sending the data as a prop to the child component. When I try consoling the props it returns null. Dont know why. But the props are getting displayed when the child component is rendered again This is parent component componentWillMount(){ ...

0
Q: Not able to load pager fragments when navigating back from settings screen

Devrathpublic class BaseFragment extends Fragment { @BindView(R.id.txt_base_heading) CustomTextView txtBaseHeading; @BindView(R.id.base_tab_lyt) TabLayout baseTabLyt; @BindView(R.id.view_pager_base) ViewPager viewPagerBase; String title = ""; String[] str = {}; Frag...

0
Q: Do I need to create virtual environment through terminal?

Erfan AhmedI am creating a new Django project through PyCharm, I already have Virtualenv selected instead of conda, so do I have to create a virtual environment through the terminal and install all libraries? I am not planning to upload this site on domain or server, it's for my learning, will upload it on ...

0
Q: How to access Node Express server using proxy once deployed to Heroku?

Sasha KolomiytsevHow do I tell my app that when it is in production, and paypal triggers the 'return_url' it should look for '/success' on the server side rather than in the client? I have set up an express server to handle PayPal payment requests. When a post request is served to 'localhost:5000/pay' on expres...

0
Q: How to compute euclidean distance matrix in pyspark?

Munindra NaiduI have a dataset with 1,00,000 records. I need to find euclidean distance matrix for this dataset. It should create 1,00,000*1,00,000 matrix. In python we have squareform(pdist(x)). As i cannot perform the same function on the rdd, How to do it on spark platform in python? loc = "/usr/lib/spark...

0
Q: ERROR : [ioredis] Unhandled error event: Error: connect ETIMEDOUT

Jakka rohithI have facing this issue redis connection timeout in my node application. I have tried this code new Redis({ connectTimeout: 10000 }) But was of no use it didn't help me with the code [ioredis] Unhandled error event: Error: connect ETIMEDOUT at Socket.<anonymous> (/code/node_modules/ior...

2
Q: Where would I ask this question about city names?

TermatinatorI got a question about geography, why some city names remain the same in different languages and others not, where would I ask this?

0
Q: Malformed link at the Ask Wizard's "Show some code" step

Nicolas RaoulNotice the non-rendered link labeled "minimal, reproducible example":

0
Q: How to use: split 'hh:mm:ss' string to milliseconds float in every row of a dataframe in Python?

Marc OttenbacherI'm fairly new to python and I struggle with ML-Problem where I want to convert a column of running paces 'hh:mm:ss' format to milliseconds. The paces are Type: String and Milliseconds should be in Type: float afterwards. I have figured out how to convert single values with the following functi...

0
Q: How to join using double LTRIM

SaevilI'm trying to join two tables through specific code, however in primary table i have to trim some numerical characters ('858','859') in order to correctly join to second table.(ca1) I need to specifically TRIM just these two numerical characters ![1]: https://i.imgur.com/2NbHIKM.png "tables" I h...

0
Q: Django (DRF) fails to POST data to url with similar path

LilianeIn my url conf I have two similar patterns: urlpatterns = [ path('chat/', views.chat), # create chat path('chat/message/', views.search), # create message ] The second path works as expect, however, when I try to POST data to chat/ I get error 405 and {"detail":"Method \"POST\" not a...

0
Q: How to efficiently display text instead of null when binding in vue.js?

Colton ScottieIn the following code site can be null, but if it is there, then company will not be null. How can I efficiently display a "-" when the site is null that scales well for 1000's of these rows? <tr v-for="obj in objs" :key="obj.id"> <td>{{obj.site.company.name || "-"}}</td> <!-- does not work --> <

0
Q: How do I get Http Header of calling API from a WebApi

Debasis GhoshI have two WebApi (.NET Core) application e.g. WebApi1 and WebApi2. Now I am calling/consuming WebApi1 (endpoint) from WebApi2. How do I get WebApi1 Http Header values from WebApi2 application? Tried with Request.Header; but did not get WebApi1 headers.

0
Q: What kind of charts Jira provides out-of-the-box (without any plugins)?

embedcI'm new to Jira and I want to know kind of charts, diagrams etc it provides (out-of-the-box, without any plugins)?

0
Q: Vue CLI V3.7.0 - Creates All Folders As Readonly

Ameer TaweelI used to work on my Vue.js projects using Vue CLI v2. Recently I started getting security errors in GitHub and it recommended upgrading to the new Vue CLI v3. I installed it and removed the old one. Now when I try to create a new project using vue create project-name it creates a readonly folder...

0
Q: Any idea how to make a Drupal 8 route be loaded when a Drupal 7 one is called?

managumeI've and old Drupal 7 site in drupal7.mysite.com hosted in an amazon machine. The idea is start developing in parallel a new site with Drupal 8 in the same machine and deploy it step by step. First step is create a landing page in Drupal 8 and that landing responses at drupal7.mysite.com/landing...

0
Q: Spring Data Insert Data when entry not yet exists

medTechSCENARIO: I have a MySQL Database where I have one Table with a Mapping of a user and a product. My Application offers an api so I have to be aware that the mapping will not be done multiple times. Therefor I want to check if the two ids( of the user and the product) are already mapped. PROBLEM:...

0
Q: My recyclerView shows only one item, Is it problem with imageView?

FormaxMy app shows only one item from Array, could you help me to find a problem? Is it problem with ImageView? Or just miss some code? I used tutorial for do that (just changed image source, from url to vector). Its hard to find solution. I tried to run it without image code but didnt work also. Its ...

0
Q: A script to insert email address into sender_access_regexp (and add a regexp)

MephiusI, a complete noob even by skiddie standards, am trying to write a script that would do following: ask for an email address (as an input) run sudoedit on /etc/postfix/sender_access_regexp (as current user) check if duplicate lines exist (meaning if such an address is already listed in above men...

0
Q: How do I execute javascript after a extension-toolbar-item click in safari?

Alexander LohrI am trying to execute some javascript code (print simple Hello World to the console) after a click on the toolbar-icon from my self written safari extension. Where can I define which function it should execute? I try do port Buster-extension to Safari. For this I want to click on the toolbar-ic...

0
Q: Using JavaScript API 3.10 with ArcGIS Server 10.6

Stan LambertWe are upgrading our ArcGIS server to 10.6 but do not have the resources to upgrade our JavaScript client which is still on 3.10. We plan to upgrade to the latest version of the JavaScript API in the future but it won't be part of this current project. Does anyone know of any compatibility issue...

0
Q: how to change Default exe file icon in electron framwork

Anshu Sharma"how to change Default exe file icon in electron js"enter link description here

0
Q: Render MS documents pages to images (JAVA)

GuillemI need to convert some MS-documents to PDFs using Java. Due to legal purposes, the format should be equal. I have been trying with POI and Itext and they somehow change the format (not recognized fonts, a badly-shaped table, etc.). I thought about rendering each page of a document as an image, ...

0
Q: Issue Working with CRUD for images and media files in entity framework

AdamScenario I need to store images and media files in my database as VarBinary. I am using MVC5 and entity framework. I have already made a CRUD controller for another table in the database which does not contain media files or images and this is working correctly. What I have done so far I have...

0
Q: Spring - Send parameter(s) per url mapping to same Filter

user7294900I have Spring application deployed on Tomcat, I'm adding a OncePerRequestFilter @Component public class MyFilter extends OncePerRequestFilter { private static final Logger logger = Logger.getLogger(MyFilter.class); @Override protected void doFilterInternal(HttpServletRequest reques...

9
Q: What is a fully qualified name?

Lightness Races in OrbitAs far as I can tell, the term fully qualified isn't mentioned in the standard (e.g.), but I can recall "hearing" it many times online. What do people mean when they say a name is fully qualified? Does this count? A::f() or only this? ::A::f() And, if it is standard, which wording have I ...

-3
Q: Get the id of the ul a certain li element is belonging to

riya fernandoI have a nested <ul> <li> arrangement created dynamically. All these are assigned ids during creation. With a known <li> id how can I find the first <ul> element it meets and get its id. <div> <ul> <li> <div></div> </li> <ul> <li> <div></div> </li> <li

0
Q: How to resample using Python

Lini KuangI have a dataframe as below. import pandas as pd frame = pd.DataFrame({"a":range(7),'b':range(7,0,-1), 'id'['one','one','two','two','two','three','four'], 'date':['2019-05-01','2019-05-08','2019-05-01','2019-05-08','2019-05-15','2019-05-01','2019-05-15']}) print(frame) pd.to_datetime(frame['dat...

0
Q: How do I hide a div when an inside div is empty?

AngelaPlease check my jsfiddle to check the whole code. I am trying to hide the whole contentMachine div if the div class timeimg is empty or no ledBar with status-1 or status-2 classes are present. I have the ff code right now: $(function(){ function showHideEmptyBlocks(){ $(".contentMa...

0
Q: azure-devops-node-api: Authenticate with username and password

Waleed Ahmad QureshiI am new to node.js 'azure-devops-node-api'. I want to connect with my collection, getPersonalAccessTokenHandler(token) method works fine, But I want to authenticate with username and password. getNtlmHandler(username, password) do authenticates but I am unable to get respositories with this appr...

0
Q: Prometheus.Metrics counter don't count request with response <> 200

Igor CovaI use the package Prometheus.Metrics in my .Net Core API project. I configure counter for requests to endpoints like that (in file Startup.cs): public void Configure(IApplicationBuilder app) { Counter counter = Metrics.CreateCounter("PathCounter", "Counts requests to endpoints", new CounterCo...

0
Q: Committee Methods (ensemble learners) Best Model

احمد عربI have the following question and I seek your kind support: You are given the choice of two types of base classifiers (models) to use in a (bagged) committee: Classifier A: which is known to have an (error) variance of 40, but has been found to produce uncorrelated models under bagg...

-2
Q: boot0 vs boot1 stm32f103

mojtabaI have a question about designing st-link v2. According to the schematics provided by st.com Please help me in analyzing this schematic. Why boot0 was pulldown with a 100k resistor but connected boot1 without GND resistor.

0
Q: passing 0 test testing angular 7 routing component

S. NI have one app thats hosts 2 other apps.one of them is a website and the other is dashboard. I want to testing my angular route component. The test I am writing doesnt work because of this error and I can find out why:" error TS2339: Property 'path' does not exist on type 'Location'. this is...

0
Q: why in java, if "*" is given in argument with the main method main in command-line compilation, this is considered as an "a"

Makane KANEWhy in java, if "*" is given in argument with the main method main in command-line compilation, this is considered as an "a" class Bonjour { public static void main(String[] args) { System.out.println(args[0].charAt(0)); } } C:\Users\cri\Desktop>javac Bonjour.java C:\Users\cr...

0
Q: How to reach destination object in ModelMapper's AbstractConverter.convert() method

Dmitry BogdanovichI would like to map fields from source into the existing object dest via custom Converter. Could you please suggest a canonical way to reach out dest object from AbstractConverter#convert() Please find the code below: Source source = new Source(xxx); Dest dest = new Dest(yyy); modelMapper.addC...

0
Q: Comparing two columns and if it matches then it should be highlighted in another column

Deepak LI have two columns J and L if the value of J column matches with the corresponding value of L column both the cells should be highlighted in Red. I am new to this excel I am not able to develop this macro

posted on May 23, 2019 by jonny bristoo

enter image description here The best website design GPC Softwares, Yes,we become a good website when it design with sample steps. When design a website remember some point figure out on which topic our website based,which feature we want,create the hierarchy of importance topic and write content then design a website. Website prices vary greatly depending upon numero

0
Q: Ggplot2 doesnt draw a line though points, but draws horizontal lines. How can I solve this?

R. AberdeenIn R, I want to make a plot with y= elevation, x= distance. The data comes from QGIS; from which it is copied into excel. Then it was saved to a .csv file. I tried it with both enter image description hereread.csv and read.csv2. Using ggplot2 i tried to make a plot. However, instead of drawing l...

0
Q: How can I select one text in a tCorpus in R?

Nienke CornelissenFor my master thesis, I am analyzing the amount of nationalist words in presidential speeches. Based on a dictionary "dict" (here it only consists of 3 word groups), I would like to create vectors in which the amount of matching words as a percentage of the total amount of words is saved, "vPerce...

0
Q: How to make a timer work in between two methods

LeoI am trying to make a bot to make some mouse click and make some auto typing. My mouse movements are working properly by my typing is not working between them. I am trying to make a mouse click in my desired position then type some text from text box and then click in another window position. F...

0
Q: BottomNavigationView ActionLayout for MenuItem not showing

TscheppeBecause of the Android Design Guidlines for BottomNavigation I want to display the icon and the text side by side and not stacked in landscape mode. For this I have a nice programmatically solution. But I have seen that it is possible to to the same by setting an actionlayout for the menuItem. I...

0
Q: Dictionary comprehension that contains an (embedded) list comprehension

freddyvhHow do I return each country as the key and a list of cities in that country as the value? Using dictionary and embedded list comprehension? Without using collections country_city_tuples= [('Netherlands', 'Alkmaar'), ('Netherlands', 'Tilburg'), ('Netherlands',...

0
Q: LiveObjectDetection using Firebase MLKit in Android

RanjithI have integrated MLKit for object detection in my project. The sample project detects all objects but I want to detect only a specific object for example a watch and disregard other objects from detecting. How can I do it in android?

0
Q: ionic3 error AndroidManifest.xml:53:66-112 requires a placeholder substitution but no value for <GOOGLE_MAPS_ANDROID_API_KEY> is provided?

Kapil soniI got above error after build android in ionic3 i tried each and everything but nothing is worked for me.i tred below solution: 1st solution from this link add 'tools:replace="Android:value"' to <meta-data> element at AndroidManifest i have put below code in the build.gradle configura...

0
Q: How to scrap and index multiple tables from one page in Python?

AdamI'm trying to match the district numbers with community areas in Chicago using the Wikipedia page: https://en.wikipedia.org/wiki/Community_areas_in_Chicago I know how to do it table by table, but I believe there is a loop that can make this task much easier. However, the area names are not incl...

0
Q: SMALLEST YOCTO IMAGE

gastonI am trying to build a small linux image using the Yocto project.While i was searching the net, i found that i can remove some DISTRO FEATURES that i don't need for my image. How can i check which distro features i m using now ?

0
Q: React + Axios Progress bar

abbeyI want to make File Download Progress bar with React + Axios. So I wrote the code that below. But I got a "Uncaught (in promise) TypeError: Cannot read property 'get' of undefined" error. Is there anyone can find the problem in my code? I don't know how to fix it.. progress = async () => { ...

0
Q: How do I retrieve the count of distinct rows from each table in a join with T-SQL without knowing which fields are unique in each table?

Christs_ChinI have inherited hundreds of Stored Procedures. Each Stored Procedure comprises more than a dozen joined tables and TVFs. This task, one among many, is to understand the Stored Procedures performance by looking at how many rows each table contributes to the final statement, with the non-negotiab...

0
Q: Can't run Angular application with ng serve

Igor Minyayloenter image description here Hi. I can't build and run my Angular application. I tried to reinstall angular/cli, node.js and remove all node modules packages globally but it did not help.

0
Q: Using nth-child() ranges to apply style to nth-children

northernerSuppose I have the following table: I want to change the background color (for three rows) every three rows. By example, three rows should be white, the next three rows should be grey, and so forth. Been struggling with how to do this using nth-child(): Using .datatable-row-wrapper:nth-...

0
Q: what is the best way to get coordinates (2d) between 2 coordinate systems by having the coordinates of 4 known points in both?

aliI have an image and its screen shot of a map an I want to show GPS lat and long on my image , so I want to transform my lat and long coordinates into my image coordinate to visualize it on image.I have lat and long for 4 corners of image .I'm looking for best way for transformation in java.I fou...

0
Q: Why does the IDE give a warning when I try to call the constructor from a member function?

user442029I'm trying to take a object by reference to a member function as an argument and assign it to a new object, the IDE gives me a warning says that I should avoid using unnamed objects with custom construction and destruction. So I was asking about an alternative for doing so, or to understand what ...

0
Q: Instantiate a bullet towards player position

Charlotte BarnekowOn input left click (Fire1), the projectile spawns from the projectileSpawn position. On right click(Fire2), I want to have the projectile shoot "in reverse" and start from the projectileSpawnTwo position and back to the initial projectileSpawn location. It currently shoots forward but I want the...

0
Q: Are there any tools/libraries that can convert tensorflow lstm model to .mlmodel format to run in iOS app

thecodeboxedI have a simple tensorflow model that consists of lstm layers - such as tf.contrib.rnn.LSTMBlockCell or tf.keras.layers.LSTM (I can provide the sample code also, if needed). I want to run the model on an iOS app. However, I have looked at several websites that say that presently there is no way t...

0
Q: JQuery - select entire element except specific element inside main

Daniel SmithSo, I have the main div (modal-container) which taking a full page and inside the main div and having another div (modal-inner) with two buttons. The main DIV was set to full height/width of the page and inside DIV (modal-inner) having calc(100% - 40px) width of screen. Through Jquery I have add...

0
Q: Problem two query db2 sqlserver is not print output

francescoThis is the correct example, which does not work: If the LANGUAGE column is the same as the LANGUAGE COLUMN and the NLS_CLASS_NAME column is the same as the KEYWORD COLUMN Given that they are true, if you noticed the language string I turned it into lowercase and I cut the string so that it beco...

0
Q: How to connect reactjs application with flask api?

martial hermann WafoI've already build a a flask resplus api which is running on localhost:8888 but I'm struggling to connect it with a reactjs application. Any advice???

0
Q: Real time data integration how does Kafka, Hadoop, Avro and HDFS fit together and what kind of architectures is there for data integration

Charbel.AYI am trying to understand what architectures there is for real time data integration and how all the pieces fit together. I have tried to research on the internet but I could not find good resources. Can anyone explain how to use for example hadoop kafka and other components to make a real time...

-3
Q: What's it cleaner?

XemuthToday, me and my colleague have a disagreement on a subject : What's it "cleaner" and why ? : bool check(){ if(!test to do){ return false; } if(!other test to do){ return false; } return true; } Or: bool check(){ bool result = true; if(!test to do)...

0
Q: Manifest merger failed with multiple errors, occur during merging two project in to single project

Shailesh KumarI need to merge to android project in to single project. For doing this I changed one project from application module to library module and import it as a module in second project and its imported successfully, but when i run the project they show error Manifest merger failed with multiple errors...

0
Q: Schedule a task to run at specific time when the iOS app is in background state

Nimesh ChandramaniyaProblem: I want to run specific code at specific clock time even if the application is background state. Approach Tried: I tried using NSTimer but the NSTimer pauses when the application enters the background state. I am not using the "Background Fetch" approach, as there will be long time be...

0
Q: VK_IMAGE_LAYOUT_UNDEFINED vs VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL as initial layout for Framebuffer attachment

audi02I saw that it is recommended to set initial layout as VK_IMAGE_LAYOUT_UNDEFINED , because we really don't care for its content when it is used as target for the next rendering process. But if I know that an image is attached for being color target, isn't it better to set it to VK_IMAGE_LAYOUT_CO...

0
Q: Why can't the free function begin operate on C arrays while std::begin can in C++14 in some cases?

xropiI noticed that begin (without namespace specifier) compiles in some situations and fails in others. Can you guys explain why can it work when it works and why is there a difference due to the use cases? The code fails to compile the same way under VS2017 15.9.7 and gcc-8.3.0 std=c++14 is used f...

0
Q: How can I use existing ASP.NET Membership data in a new .Net Core project?

David ShochetI am starting a new .Net Core Web application. And I want to use the authentication tables (aspnet_Users, aspnet_Membership etc) that already exist in our database. But I am not sure how to do it. Upon creating the project, I select "Individual User Accounts" option for authentication. Then I nee...

0
Q: Is providing an MCE in an answer now considered bad practice?

Neil ButterworthI recently provided an answer to this this Why does this if-statement combining assignment and an equality check return true? which contains a (very small) compilable program. From the comments and downvotes it seems that this is now considered a bad thing to do. Is that really the case?

0
Q: Filter DataFrame columns with regex

PatrickHellmanI count statistics for the dataset, and I want to filter columns that contain specific strings. How I could do it with regex? Here in volumes_c I filtered some structures, that have Volume in there names Select_list = ["Amygdala", "Hippocampus", "Lateral-Ventricle", "Pallidum", "Putamen", "Thal...

0
Q: Sql server over order by with predefined order

RobertI have query with simple order: SELECT ROW_NUMBER() OVER(ORDER BY flagid desc ) as RowNr, stepid, flagid FROM ( select stepid, flagid from opstep_flag where stepid = 262677032 ) a And It returns data like this: It is possible to order data that the flagid will be for example 7,5,8 ? ...

-1
Q: Regex in Python. Remove whole sentence with a word

Pinky the mouseHere is my text: text = "It's not just about being better. Here is useless sentence. It's about being different. You need to give people a reason to choose your business." How do I remove Here is useless sentence.with Regex? If possible, please give both patterns: when starting with "Here is"...

0
Q: Translating an IF-statement into an apply-function for a DataFrame

timI'm currently applying values to a column in a large DataFrame using an if-statement, but it is taking quite long because it requires looping through the full DataFrame. I'm pretty sure there is a faster method using for instance the apply-function. The DataFrame has two columns containing True...

0
Q: Angular Pipe returns values, but ngFor won't display them

despa migrosI have a pipe, that filters my ngFor only with the exact matches, that I pass through by Clicking on the filterargument. Here is my pipe: transform(werte: any[], kriterium: string, gruppe): any[] { if (!werte) { return []; } if (!gruppe || gruppe.length === 0) { return w...

0
Q: Angular 7 test case throwing broadcaster error

Piyush Dholariyawhile running test cases it throws this error. Almost added all required components and services and other dependencies though it is throwing error while running test-cases in Angular & Error: StaticInjectorError(DynamicTestModule)[Broadcaster]: StaticInjectorError(Platform: core)[Broadcaster...

0
Q: Single logout not working in asp.net core

harmeetWhat nuget packages are you using Sustainsys.Saml2.AspNetCore2 packages is being using to consume SAML from ADFS 4.0 What is the expected behaviour When I initiate single logout by calling "Saml2/Logout". Saml2Handler>HandleRequestAsync method is called Then in LogoutCommand>InitiateLogout is ...

0
Q: Use knuth-morris-pratt algorithm to determine if a string is a cyclic rotation of another string

Davide MelisFirst of all, I have the same question posted by another user here: Determining whether one string is a cyclic rotation of another? but #1 T and T' must have same lenght 2 I cannot duplicate T' 3 I cannot modify the fail_algorithm This is my implementation of KMP algorithm in C int KMP_match...

0
Q: Is Stormcrawler v1.14 compatible with Elasticsearch 6.7.x?

jimmatIn the completed tasks list for Stormcrawler 1.14 I see both "Upgrade to Elasticsearch 7.0.x" and "ES 6.70 dependency elasticsearch" listed. Does that mean that 1.14 is compatible with both? I ask this mostly because I was attempting to use mvn archetype:generate to generate a 1.13 stormcrawler,...

0
Q: Cisco controller ssh not taking in commands from python script

Matt LekityI am using a python script to connect to a local Cisco controller via ssh. I am using windows 10, python 3.7 and using the most recent paramiko library. I believe my script establishes a connection, but seems to not be able to properly enter a username and password. SSH code import paramiko im...

0
Q: how to count %s dynamically in excel formula

Rohit jhastrong text I want to modify this working code. Basically right now I had to pass Row manually in this code according to the number of columns present in the formula for example:- IF(OR(B%s="", B%s ="", B%s =""),"C", IF(OR(B%s ="", B%s ="", B%s ="", B%s="", B%s ="", B%s ="", B%s =""), "S", ""))' ...

0
Q: Redis How to store array preserving order of keys

Jocelyn McelveenI'm trying to save sorted array to Redis, preserving it's order of keys (it's crucial) [ 'abcdef' => value1, 'abcd' => value2, 'abc' => value3 ] ,and I need to restore it in the same order; I tried hashes, but when I get the array back, it's realized unordered. For example: [ 'abc' => value...

0
Q: Generating Qt pro files from sln file

arsdeverI like to make Qt applications in Visual Studio. But sometimes, there is a need to continue development in Linux space, where Visual Studio is not available. Therefore, there's a need to write down project files manually. Is it possible to generate .pro files and makefiles from configurated .sln...

0
Q: Spring integration sftp outbound adaptor

jsjunkieI have a requirement to create a process which should poll multiple local directories and transfer files from their to corresponding sftp servers. Multiple sftp servers are their and process to send files based on input directory mapped to that server. I am trying to achieve this with dsl and de...

0
Q: Do all SVG paths have to start with a Move?

nobodyI tried the following SVG path in my Firefox <svg> <path d="M50,50 l100,0 l0,100 l-100,0 Z"/> </svg> And it makes a pretty square as expected. However this path doesn't draw anything: <svg> <path d="L50,50 l100,0 l0,100 l-100,0 Z"/> </svg> I would expect the previous command to have...

0
Q: Trying to resize a text input. (Kivy, QPython, Android). But not sure how to write the code correctly

yalpsidI want to resize the text input as it fills up half of the screen. This code fills up half of the screen:https://imgur.com/a/FAVkik8 from kivy.app import App from kivy.uix.boxlayout import BoxLayout from kivy.uix.label import Label from kivy.uix.textinput import TextInput class MyApp(App): ...

-1
Q: Average Salary for Junior developers in Norway?

Jesús Narváez TamésI am working in Norway as a backend junior consultant and I think my salary is blow the average. I have 2.5 years of experience aproximately. How much do you think its a good salary for a junior programmer in Norway?` Right now I am on 41.000 kr monthly. Thank you so much :)

0
Q: How to search for an unknown collection containing identifying document fields?

CasperSIs it possible to search for an unknown collection that contains a document with identifying fields like an email? My structure is like this: Each user gets their own collection based on a unique ID. Each collection contains a user doc and a accounts doc. user doc contains the information about ...

0
Q: SQL Group by fixed list of values

AntonIf I have two columns: col1 col2 amount 1 2 15 2 3 12 1 3 10 3 1 4 3 2 3 And I perform a group by col1,col2 then I get a row for each combination (present) in the data. My problem though is, that I dont always have ...

0
Q: Login my application using Instagram application

Taslim AnsariEvery time I log into my app using instagram it takes me to the webview to login using Instagram credentials and there is not any option to login using Instagram application as Facebook provides option on its webpage to login using FB application and redirects to FB app to get token. I have trie...

0
Q: Drawing full screen chessboard pattern?

fjubeI'm working in OpenCV (camera calibration and than creating 3d model) and till now I always printed checkerboard pattern on paper and then took pictures needed for calibration. I tried to find a way to draw pattern on full screen with pre-defined square sizes (so I could set that square size in c...

0
Q: how to set up a wallpaper app using firebase recyclerview?

Tec Piranhai created a wallpaper app ,i'm using firebase to upload images to a database and shown it to recyclerviewer ... i can see the images that i uploaded in firebase through the recyclerview and i can also pass that image to a another activity... but my problem is, i can't set the image as wallpape...

0
Q: How to modified the resolve when implementing pagination in graphql-ruby

alo gonI'm trying to implement something like in this tutorial https://www.howtographql.com/graphql-ruby/8-pagination/, but my code is a little different. For example, if I want to add pagination to a query that brings all the items, I have to change the resolver to something like module Resolvers ...

0
Q: First Match - awk

Eng7consider file having values: foo boo too and another one: foo,1 foo,2 boo,1 soo,1 How to get only first match from the 2nd file, where output will be: foo,1 boo,1

0
Q: Java string split numbers

Alex BundinI have some rows of numbers in String str; Numbers split by TAB [code] 1 2 3 4 5 6 1 2 3 4 5 6 1 2 3 4 5 6 1 2 3 4 5 6 1 2 3 4 5 6 \... many others, ~ 2 000 strings [/code] I need split columns with 1 numbers to massive1, 2 numbers to massive2, 3 numbers to massive3, 4 numbers to massive4, ...

0
Q: AndroidManifest.xml requires a placeholder substitution but no value for <GOOGLE_MAPS_ANDROID_API_KEY> is provided

tarun malviyaIonic cordova build android getting me that error.please provide me some details to sort out this issue Thanks

0
Q: Why can a byte[] be passed to a method that takes a ByteBuffer?

Snail CadetSay you have a method: public final int someMethod(ByteBuffer b){return 0;} Why does Java allow it to be passed abyte[],like this: byte bytes[] = new byte[10]; int x = someMethod(bytes); I can't find anything referencing an automatic typecast betweenByteBufferandbyte[],nor can you pass aByte...

0
Q: Exception in app:transformClassesAndResourcesWithR8ForRelease

Deepanshu NamdeoI recently updated my gradle version to gradle-5.2.1 but during creating release apk i am getting exception is there any way to solve this ? I recently updated my gradle version to gradle-5.2.1 but during creating release apk i am getting exception is there any way to solve this ? I rec...

0
Q: Unable to access Web Api when app registered in Azure portal

FILMy Angular app communicates with backend Web API (both registered as a single app in old Application Registration Portal - apps.dev.microsoft.com about half a year ago). Both apps work well all the time. The Angular app can communicate with Web API using MSAL and AADv2. I tried to deploy my apps...

0
Q: Display Google Geochart in log scale

Shilpa NagavaraI'm using Google's geochart. I'm using the number of visits per country as the data to be displayed. But, the data is not linear. So, instead of plotting it against the number of visits, I'd like to plot it against its log value. Basically, I'd like to use the log scale. How do I do that? I trie...

0
Q: Regular Expression to find string between two characters

M. SinghI'm trying to create a REGEX to find the string between \ and > in the following input : \\RANDOM\APPLE\BOB\GEORGE\MIKE\TOM >>\\TEST\TEST2\TEST3\TEST\TEST\JOHN. Desired Output:TOM I've been able to create ([^>]+) to isolate the first section of the string before the first > . I just can't ...

-1
Q: Fatal error: Uncaught Error: Call to undefined function mysql_select_db

Samson Lowenz OboiFatal error: Uncaught Error: Call to undefined function mysql_select_db() in C:\xampp\htdocs\oboi\login.php:2 Stack trace: #0 {main} thrown in C:\xampp\htdocs\oboi\login.php on line 2

0
Q: how can i handle an event on editText and image view in adapter

Gharsa KhouloudI'm setting a list from firestore in a recyclerView with an adapter to handle the item my objective is to update the information of the list . when the user click on the name in the listView it will update the name in the firestore list same for the image view . i couldn't find a solution any ide...

0
Q: How to handle after_create error? (trying to create webhook)

Anatolii StupinI am new at backend developing. Sorry for my English. Now I am working at RoR app using Trello Api. I have Relation model in my app. I need to create webhooks after Relation object was created. But also I need to create Relation object if Webhook cannot be created (because it already exists). ...

0
Q: How to create a matrix heatmap in R with preserving the structure of the matrix?

PatrisI want to create a correlation matrix heatmap. I followed this tutorial. Here is the code: mydata <- mtcars[, c(1,3,4,5,6,7)] cormat <- round(cor(mydata),2) # Get upper triangle of the correlation matrix get_upper_tri <- function(cormat){ cormat[lower.tri(cormat)]<- NA return(cormat) } lo...

0
Q: g++ compile error when declaring std::atomic<std::pair<int, int>> in struct

hexiecsWhen compiling following code using g++, struct X { std::atomic<std::pair<uint32_t, uint32_t>> A; }; I got following compile error info /usr/local/include/c++/4.8.2/atomic:167:7: error: function 'std::atomic<_Tp>::atomic() [with _Tp = std::pair<unsigned int, unsigned int>]' defaulted on it...

0
Q: Check properties that changed since last interval in NodeJS

demoIn nodeJS, let's say that I have a little setInterval: setInterval(() => { // ... }, 50) And it sends to client entities: setInterval(() => { socket.emit("entities", { ... }) }, 50) Entities looks like this: { "0": { "collisionRadius": 40, "entityClass": "Prop", "health...

0
Q: How to display jasper report from spring boot to angular 2?

Shivani KhotI am new to angular.I am using jaspersoft studio tool to generate report in spring boot.I written code below for generation of jasper report.Now i want to display jasper report into angular 2.I want help for showing jasper report from spring boot app to angular 2. Product Controller: @RestContr...

0
Q: C# check if string is equal to const name

wesI'm not sure if this is possible at all or if I should use something else then const. I have about 50 const strings, with all a unique value. The program will read a string which is one of the const names. what I want: private const string AllPlace1 = "1355,-203,-4,0.002551732,0.705572185,0.70...

0
Q: cache pages based on condition in mvc

Aloki have a situation where i want to cache page response based on condition, similar to this answer: Conditional Cache using OutputCacheAttribute in Asp.net MVC 4 but in my code this depends on database column "isCachable" & "cacheDuration", so whenever i have a data marked as is cachable i need ...

0
Q: Node Js Garbage collector not running when deploying package with node.exe

tarini sunilGC for node.exe is not running when running the server with node.exe. However when running the server with node js installed runs the GC properly. I get <--- Last few GCs ---> [4784:0000019E4B6BC630] 1216762 ms: Mark-sweep 1394.7 (1426.4) -> 1394.5 (1426.4) MB, 1840.3 / 0.0 ms (average mu = 0....

0
Q: I can't install Psycopg2 with Python3 on Mac. I've installed Python3 and pip3

Giacomo CavalcaI've tried to type this command: pip3 install --user psycopg2 psycopg2-binary Bash answers: ERROR: running install It appears you are missing some prerequisite to build the package from source. You may install a binary package by installing 'psycopg2-binary' from PyPI. If you want to install p...

0
Q: Generating FlexBox layout with Button

krunal nagvadiaHow can generate the flexbox layout with button please check the attach image. Any library available? Or can make with collectionView.

0
Q: How to create a searchable dropdownlist

SnooleyI have some drop-down lists that the user can use as a filter to manipulate what they see in the grid view. To stop the drop-down list getting too long, I would like the user to be able to search for what they need in it rather than scrolling. <script type="text/javascript" src="http://ajax.goog...

0
Q: How to fix the undefined data when fetching the response data from https request?

Arun ElangovanI'm getting the value 'undefined' concatenated to my original data when calling the HTTPS response data This is for calling a URL and getting the response data url = "xxxxxxxx"; //url is anonymous, so cant disclose function externalApi(url){ try{ var https = $.require('https'); var req...

0
Q: Conditionally Stop or Cancel Intent in Broadcast Receiver

David MandengendaI am running an enerprise app in Xamarin.Android that should only disable app as Device Admin when a certain condition is true Example of my code is below: using System; using System.Collections.Generic; using System.Linq; using System.Text; using Android.App; using Android.App.Admin; usi...

0
Q: Determine attached managed disks of a VM

MattSI want to determine the managed disk IDs of all data disks that are attached to a particular VM. The data sources "azurerm_managed_disk" and "azurerm_virtual_machine" are of no great help, they do not provide information about the relationship between the VM and its disks. In PowerShell, you hav...

0
Q: Spark build keeps failing

DevesterI'm unable to build Apache Spark 2.4.3 from source with Phive-thriftserver. Build fails while building Spark Project SQL which I also need. Setup: OS: Debian Strech Java SDK: tried both OpenJDK 8 and Oracle SDK 8 Scala: 2.12.8 (sames in the pom.xml) Zinc sever has been shutdown: ./build/zinc...

0
Q: Is there a way to return a response from an API call to ASP.NET while keeping the instance running?

Tristan TrainerI am writing an API using ASP.NET and I have some potentially long running code from the different end points. The system uses CQRS and Event Sourcing. A Command comes into to an end point and is then published as an event using MediatR. However the Handlers are potentially long running. Since so...

0
Q: What is the relation between 'add_form' and 'add_fieldsets' in the Django UserAdmin?

Ankur ParikhI have added a custom user model to Django (version 2.2) using the documentation on the Django website. While my code is working fine, I am having trouble understanding the correlation between 'add_form' and 'add_fieldsets'. Specifically, in my CustomUserCreationForm, I have only included 3 fie...

0
Q: Add event handler and call once immediately

ygoeIn a web application using jQuery, I have the following code: $("input[type=checkbox]").on("click", function (event) { let isChecked = event.currentTarget.checked; // Do something }); This will do something whenever the user clicks on a checkbox. It is necessary to properly initialise...

0
Q: Access Private googel drive doc without port 8080

Jack TrainI am trying to Access Private google drive docs using python and the Google api however i am coming against a major issue due to IT security restraints I cant use port any port (e.g 8080) to oauth 2.0 my app, is there anyway you can access drive docs with an old fashioned key,

0
Q: Bash using cut to separate an IP and Port

JelBoyI am trying to pass an ip and port to my bash script from a list of devices but the script is reading it as multiple devices instead of port. So in the example from below it's trying to telnet to 4 devices as it's reading the ports as a device. for device in `cat device-list.txt`; do hostname...

0
Q: It is possbile to have ALLOWED_HOSTS different configuration for some urls?

jalangaI want to have ALLOWED_HOSTS=['*'] for some url's but for the rest I want it to be ALLOWED_HOSTS=[".example.com"]. For csrf we have @csrf_exempt For cors we have the signal check_request_enabled But for ALLOWED_HOSTS?

0
Q: Possible to set Content-Disposition header from Flux<FilePart> in Multipart request?

olanI'm attempting to "pass through" an upload from a controller to another server as part of a multipart request using WebClient. I've finally got the file upload working, but am having trouble getting the file name in a streaming fashion from the FilePart. I'm not sure this is even possible? This ...

5
Q: How to ignore kerning of underbrace in math mode

ToldryIs there a way to instruct LaTeX to ignore the text in the \underbrace for purposes of kerning the equation in math mode? \begin{align} &x \underbrace{(4-3y)}_ {\text{Positive $\forall y \in [0,1]$}} +4y -1 \end{align} . I know that I can use \mkern-30: \begin{align} x ...

0
Q: Fixed wrong output that has been written in a code comment - edit got rejected

AndreasI fixed the wrong output in a code comment that was clearly wrong and misleading. It's the top and approved answer and obviously he only copied the code from the question and then changed the code without adjusting the comment with the output. I edited that and fixed it. 2 declined my edit, 1 ap...

0
Q: Auth0 upgrade to Node8

SidduMy applications are on Node-v4 and use Auth0 for authorisation. End of May, Auth0 is being upgraded to Node-v8 from Node-v4. Should I also be updating my applications to a higher level of Node or will the applications work fine as is even after Auth0 updated? Please let me know What I Tried: I'v...

0
Q: having trouble connecting to my mysql database

AndrewI am trying to connect to my mysql database, but I get this every time: Fatal error: Uncaught exception 'PDOException' with message 'SQLSTATE[HY000] [1049] Unknown database 'socialnetwork.spf'' in /Applications/XAMPP/xamppfiles/htdocs/socialnetwork/create-account.php:3 Stack trace: #0 ...

0
Q: How to restrict to generic types to be the same subtype of another generic type?

Никита ЮдинI want to declare a type that represents a changing of some object. For example: const test: SomeType = { a: 1, b: "foo" }; const changing1: Changing<SomeType> = { obj: test, was: { a: test.a }, now: { a: 3 } // Correct one const changing2: Changing<

0
Q: How to get the value from XML in SQL

ErlicaI could not find an error. Select s empty, but should be not... declare @xml xml = ' fx_risk_lt_st_liabilities_currency3_realistic_percentage_input 5 fx_risk_lt_st_liabilities_currency3_realistic_percentage realistic_percentage currency3 fx_risk_lt_st_liabil...

0
Q: How to create animated GIF form several JPG images using Ruby and MIniMagick

evgeniy_trebinI need to create animated GIF form several JPG images using Ruby and MiniMagick, how to do it?

0
Q: JavaScript function only running once on remove

TravisI have a two buttons, one to create, one to remove different uses <button id="create-user" class="btn btn-primary" style='float:right; margin-right: 230px;'>Add</button> The above button creates and is just in a div. Nothing special. The remove button however is made dynamically in the table b...

0
Q: android.widget.Scroller add fast scroll behaviour

AtalykHow can enable for android.widget.Scroller? I have android.widget.Scroller working fine but I want to achieve fast scrolling behaviour like in recycle view.

0
Q: CloudFront usage in Unity3d

GuardFromUASearching for use cases of CloudFront in Unity and can't find it. Can I use CloudFront in Unity3d?

0
Q: how to get the mac address of the Scanned Wifi SSIDs which has been come in wifiManager.ScanResults() programmatically?

Mr. ChinmayaI am scanning the wifi SSIDs available. Now I want to get the Mac address of the corresponding wifi scanned. Need help to get the Mac address of scanned results using wifi manager in android. private List<ScanResult> mScanResults; final WifiManager wifiManager = (WifiManager) getApplicationCont...

0
Q: Which features should be selected for my clustering analysis?

PeddapaanI want to cluster firms based on balance sheet data. I have access to very detailed balance sheet data of firms. The dataset contains more that 1000 features for more than 1000 firms. Now, my goal is to cluster those firms with respect to their business model based on a subset of those features....

0
Q: How to refresh and share access token from main isolate and background isolate

Lucien TheronMy flutter app is using refresh and access tokens to validate requests to a c# web API. This works perfectly. However, as soon as I introduced android_alarm_manager to do some background syncing of data (using isolates), I found that my refresh tokens were becoming invalid after a while (I store ...

0
Q: Why do I get NaN from this function?

piedudeI'm trying to calculate the total price from an array with multiple objects, but somehow my function returns NaN. It will show all the different prices if i use this.totalPrice = this.items[i].amount, but when i add the + to get the total sum, it returns NaN. Does anyone here know why? getTotal...

0
Q: How to stop .net-core build from continuously adding folders on build

RevlynEvery time i build my .net-core project, it adds a deeper folder containing the .csproj file in \bin\release. The result is the following folder structure: D:\home> D:\home\site> D:\home\site\repository> D:\home\site\repository\bin> D:\home\site\repository\bin\Release> D:\home\site\repository\bi...

0
Q: Getting different test results running mocha directly in git bash vs running it as an npm script

SloWaitI have a Node.js unit test that utilizes newman library to run a postman collection test. When I run mocha test/test_file.js directly in git bash I get all the console statements and newman results chart that I want and need to proceed. However I need to use it in my build script for gitlab c...

0
Q: Add a mySQL lib to visual studio to a remote computer(linux)

Gai Maimonii have project on linux and i open the the project on remote computer i try to include mysql (mysql installed on the remote computer) Error :mysql.h: No such file or directory how to include on visual studio 2017 ??

0
Q: JSON get Javascript from API, but I want to get from my own work

CamileSo currently I have a code that get's random quotes from https://forismatic.com/en/api/ , using this code in my main.js file: $.ajaxSetup({ cache: false, "error": function() { init() } }); function init () { $.getJSON('https://cors-anywhere.herokuapp.com/https://api.forismatic.com/a...

0
Q: Saving data back to PostgreSQL from jupyter

Reda SAfter I load data from Postgre, I make some calculations and create a new dataset which I want to save back into the Postgre database in a specific scheme. How can I do that ? This is how I read data : from sqlalchemy import create_engine engine = create_engine("host=localhost dbname=postgres ...

0
Q: 401 Unauthorized even after validating JWT token successfully

Shreyas PednekarI'm using JWT Tokens to secure my .net core api's. I'm creating JWT Token while signing in and using that token to call other api's by passing the token into header. I have created one custom authorization filter to validate my tokens and grant user to access api's and authorization filter is va...

0
Q: Getting Jedi to look at additional paths for code completion

AadI am trying to get jedi code completion to work with Python stub files within the Spyder IDE (from Anaconda). In Visual Studio Code I can add the location of the files by adding to VS Code settings.json "python.autoComplete.extraPaths": ["StubsDirectory"] which works, Jedi will provide code ...

-3
Q: Can a jquery id selector works if it starts with

Swathi VenatiWill this jQuery code work: $('#.sometime').anyfunction()? Can you please tell that it works or whether it will return a error? If it works,Please share the code how it works. Thanks in Advance.

0
Q: Angular Firebase image display issue in chrome

iMDroidAngular 6: Images takes time to load in chrome This issue is specifically in chrome and not in any other browser. We have used Firebase in our project, and used snapshotchange method to fetch the image to angular project from the same, the image urls are like this https://firebasestorage.goog...

0
Q: audio recognition: resize audio examples to the same length

vvxI have an audio dataset featured with MFCCs and it is a 1D array numpy file. There are 50K of examples in total, so it is a numpy file with 1 column and 50K row. In each row, there is a nested object with N rows and 13 columns. Since the length of each example is different, I am trying to resize ...

0
Q: Overriding Default Values in Styled-System Variants

MosheNOTE: I am referencing the following functionality in styled-system: https://styled-system.com/api#variants I have the following buttons variant in my theme.js file: ... buttons: { flat: { color: '#343434', boxShadow: 'none', backgroundColor: 'transparent', trans...

0
Q: WPF Disbale Button using IsEnabled="False" do not work within the code

Taher ShakerI am working on a GUI project over here, my issue is related with disabling a submit button. The GUI is a Wizard and in some pages, there would be more than one Submit Buttons. Whenever the user clicks on any of the Submit Button, some verifications will be done and if everything is good the ne...

0
Q: How to fix 'googlemaps/googlemaps.h' file not found' error in flutter

Donald Ezema Ugonna S.I'm setting up my flutter app to work for ios on MacOS but I keep getting the error googlemaps/googlemaps.h' file not found. How do I solve this problem? I have tried using the same flutter package for android and it works. I pushed the source code to git repository to reuse for ios and it fail...

0
Q: Javascript. What .input method exactly does for array items?

Stan MarshI have some function that sorts string based on digits in the words. For example: "a2m on5 Stac6koverflow q4uestion I1 askin3g" becomes "I1 a2m askin3g q4uestion on5 Stac6koverflow". It looks like follows: const order = string => { return string .split(' ') .map(item => item...

0
Q: How to dynamically set the corner radius of a UIButton?

jonchafI have a UIButton in a storyboard that automatically resizes based on the device's current orientation. I have a 1:1 aspect ratio constraint on the button, and the button's corner radius should always be half its width so that it displays as a circle. I have tried to update the corner radius in...

0
Q: Convert Dataset<String> containing Json into Dataset<StructType>

nclarkSpark is great at parsing into JSON on the initial read from disk, but what if I already have a String column containing JSON in a Dataset, and I want to map it into a Dataset with a StructType column, with schema inference that takes the whole dataset into account, while fully leveraging paralle...

0
Q: How to represent a many-to-many relationship where the join table contains the identifying type

DrHill55Running Grails 3.3.10, I have a Product entity which has a many-to-many relationship with a Message table on 2 separate fields (product.type1Messages and product.type2Messages) and the "type" field is located in the join table in the database. Is it possible to use mappings to get the right mess...

0
Q: Restart remote windows server through php script remotely

ExpinatorI want to restart windows server remotely through the php script. But I am unable to do that. I have created the .bat file on the windows server but I am unable to reach to that file remotely. I am using exec() function to do that using php exec('c:\WINDOWS\system32\cmd.exe /c START C:\WINDOWS\...

0
Q: Android - ViewPager is not showing the fragments

Thorvald Ólavsen V.I am using a tablayout inside a fragemnt, the TabLayout has two fragments: one is showing a calendar and the other is just a simple plain text, I can switch between tabs correctly with out triggering any error, the problem is the content (inner fragments) are not showing, they are just "not there...

-1
Q: Sort Dictionary which contains list of dictionaries by value

AlkI've got a dictionary of the following format: {"key1": [{"title":"bla bla", "percentage": "0.3493"},{"title":"bla bla bla", "percentage":"0.293"}], "key2": [{"title":"bla bla", "percentage": "0.635"},{"title":"bla bla bla", "percentage":"0.987"}]} So basically it is a dictionary which contai...

0
Q: Outputting large XML file from SQL with Powershell

user2980115I have a Powershell script that calls a stored procedure in SQL server and outputs the resulting XML directly to a file. It works for a smaller test file but falls down with the full size (~1.5gb file). The stored procedure works fine. I can call it within SQL server - the problem is that I have...

-1
Q: Somebody Knows The Reason

Sergio Legaz RuizThe #include problem class widget{ } class fubar:public widget{ void value_parameter(widget ); // 2 void ref_parameter(widget &); // 3 void ptr_parameter(widget *); // 4 virtual void value_parameter(widget ); // 5 virtual void ref_parameter(widget &); // 6 virtual void ptr_pa...

0
Q: MISRA-2012 Rule 20.12 violation: misra_c_2012_rule_20_12_violation: macro parameter "val" is used in both expanded and raw forms

Amit SharmaI've been facing this MISRA violation: Definitions: #define A (1UL < 10) #define INIT_A ((A) | (1UL << 15)) #define INIT_A_MASK (0xFFFFUL << 15) #define IS_STATE_IFSET(state, val) ((((state) & (val##_MASK)) == (val)) ? true : false) //issue is here ? ...

0
Q: apply fucntion within class to pandas dataframe

ben121i have a class with two functions within it import pandas as pd class fees(): def __init__(self): self.total_fee = 0 def base_fee(self, value): if value <= 200: fee = value * 0.1 self.total_fee += fee return fee elif value >...

0
Q: How to use Redis and Memcached, in-memory cache at the same time in playframework

CSPassionantWe have a cache already, which is "Memcached", and there is another cache we have, which is "Redis". We would not like to change the cache servers, we would like to keep them as they are, some part of the application connects the "Memcached" server, and the other connects to "Redis". In fact, we ...

0
Q: Something is wrong with MongoDB Native Driver

Antom GI'm trying to create and make a connection with a Mongo database but I can't . The terminal trow the next Error: /home/user/.node_modules-global/lib/node_modules/mongodb/lib/topologies/server.js:240 throw err; ^ Error: connect ECONNREFUSED 127.0.0.1:8000 at TCPConnectWrap...

0
Q: How to get values from object and assign them to consts

Nizar HabibSo I'm pulling some data from my DB and it comes out in the form of an object. I'd like to take this object and turn it into separate constants. This is the object (sorry for link, I dont have enough rep to post images) https://i.imgur.com/ay7cI29.png How can I take values out from the object an...

0
Q: How add a new a key after using USORT in PHP multidimensional array

Bhuvan MI am having one array in that array i want to make ASC order, after that i want insert new column rank then value it will get increase like 1 2 3 ... My Array $mainArray = [ "key1" => ["name" => "A", "price" => 5], "key2" => ["name" => "B", "price" => 7], "key3" => ["name" => "C", "...

0
Q: Convert MySQL update query into sequelize query

ShahrukhUPDATE `users` SET tempToken=tempToken-"5" WHERE `id`="1" How can I write this query into sequelize query.

0
Q: screen resolution Change in Server 2008 R2

Kalaiselvani'm using server 2008 with some policy applied by GS .Recently something updated and after that the screen resolution changed then the IT Tech also not able to change the Previous one. Tried with admin Login to change the Screen Resolution not able to Change maybe i do not know other way to cha...

0
Q: Reverse a patch file

Marko BlazekovicI need to reverse a patch file. To be more precise I would like to make all the pluses minuses and all the minuses pluses. It is not my patch, it is not my code so I don't have git history and commits. So instead of manually writing all the lines, how could I make a reverse patch file that should...

0
Q: How to import svg into next.js component?

Mark JamesI am trying to import svg image from file into next.js component. In assets folder I have google.svg(icon): <svg className="svgIcon-use" width="25" height="37" viewBox="0 0 25 25"> <g fill="none" fillRule="evenodd"> <path d="M20.66 12.693c0-.603-.054-1.182-.155-1.738H12.5v3.28...

0
Q: Lodash.uniqueId always returns 1

Alexander  LadoninTry to use lodash (version 4.17.11) _.uniqueId() always returns 1 instead of random 3-digits number. Also _.uniqueId('prefix') always returns prefix1. Is it a problem?

0
Q: std::chrono::from_stream correct usage

Přemysl ŠťastnýI am thinking about usage of function std::chrono::from_stream (std::chrono::year_month_day) to get std::chrono::year_month_day object from const std::string& like 2018-12-09T00:00:00. In cppreference is no example of usage std::from_stream. So I thought, that it could be used in the same way l...

0
Q: How to use asynio with processpoolExecutor

Awaish KumarI am searching for huge number of addresses on web, I want to use both asyncio and ProcessPoolExecutor in my task to quickly search the addresses. async def main(): n_jobs = 3 addresses = [list of addresses] _addresses = list_splitter(data=addresses, n=n_jobs) ...

0
Q: libui - how to load icon from resource file?

KozinoI am using libui (https://github.com/andlabs/libui) for simple GUI app and I want to set window icon from resource file (not portable, only for Windows). If I add this line: MAINICON ICON main.ico to resources.rc, application will have main.ico as its icon, but this icon won't appears in wind...

-1
Q: Huge delay in receiving emails to my G-Suite

manosagentI have a VPS, with cpanel enabled, where I manage the DNS zones of my domain. On Saturday ( 18/5 ) the IP of the VPS was changed. No other settings where affected. Since then I have a very big problem receiving emails from some of my clients. After investigating, I found out that all of these cli...

4
Q: bash regexp matching fails in [[ ]]

SuuuehgiI would like to check whether a user is in a certain group via [[ "$(getent group groupname)" =~ \busername\b ]] but this does not work (bash 5.0.3) although the following works: getent group groupname | grep -E "\busername\b" I noticed that the backslashes appear to be swallowed at some pl...

 

« first day (21 days earlier)