karan

-1

votes
1

answer
21

views

JavaFX update progress bar and wait for threads to complete

I'm trying to update a progress bar in Java FX. My first problem was that the window said 'not responding' instead of actually updating. It just froze and then after the tasks were done, the progress bar became full. So I found out that I had to use multithreading and implemented it like this. overa...
Karan Bijani
1

votes
2

answer
760

views

ggplot: Plotting timeseries data with missing values

I have been trying to plot a graph between two columns from a data frame which I had created. The data values stored in the first column is daily time data named 'Time'(format- YYYY-MM-DD) and the second column contains precipitation magnitude, which is a numeric value named 'data1'. This data is ta...
Karan Chaudhary
1

votes
2

answer
2.8k

views

Mistake in fetching childNodes of HTML table

I'm a bit confused regarding HTML DOM. I'm trying to get the rows of a particular so that I can interate through them. HTML MARKUP: @Html.DisplayFor(m => m.FirstName) @Html.DisplayFor(m => m.JobLocation) @Html.DisplayFor(m => m.MiddleName) @Html.DisplayFor(m => m.StateOfResidence) @Html.DisplayFor(...
karan k
1

votes
1

answer
3.4k

views

send multiple responses to client via nodejs

i am using nodejs and i want to send back multiple responses to client.And my code is below //addwork var agenda = require('../../schedules/job-schedule.js')(config.db); exports.addwork = function(req, res) { var work = new Work(req.body); work.user = req.user._id; var user=req.user; work.save(funct...
sruthi karan
1

votes
2

answer
31

views

Java - which function is called when inheritance, polymorphism, overloading and overriding are all involved?

I have this question involving inheritance, polymorphism, overloading and overriding. I understand all these terms but not sure how they work here. Here's the code: class A { public String show(D obj) {return 'A and D';} public String show(A obj) {return 'A and A';} } class B extends A { public Stri...
Karan Bijani
1

votes
7

answer
104

views

How to convert float to int in a list in python?

I am facing problem in converting float to int in python list. One of the elements of the list looks like this: {'artForm': 'Madur', 'artistName': 'Bharati Dolai', 'gender': 'F', 'district': 'Paschim Medinipur', 'phone': '', 'artisanCard': {'exists': 'N', 'cardNo': ''}, 'dob': '', 'age': 45.0, 'year...
Karan Gupta
1

votes
0

answer
30

views

FileSystemWatcher: Created event didn't fire on file creation

I have one Window service, which is watching (Subscribing) a shared location on some other server as below (Using FileSystemWatcher): _fileSystemWatcher = new FileSystemWatcher(filePath); _fileSystemWatcher.Created += FileSystemWatcher_Created; _fileSystemWatcher.IncludeSubdirectories = true; _fileS...
Karan Singh
1

votes
0

answer
81

views

Is there a way to get Mel-frequency cepstrum coefficients of a track from the Spotify API?

I am looking to get the MFCC(Mel-frequency cepstrum coefficients) of a spotify track. My main aim is to identify genre of a track, and the algorithm which I'm studying right now uses MFCC to extract features of a track. I think there might be 2 ways to do this: Spotify's API has an endpoint called h...
Karan
1

votes
1

answer
133

views

Form validation error not showing up in template

I was creating a form to register users, I added the validation error to check if the email already exists in the database. However, when you feed in an email which is already in the database, the form doesn't show up the error, it just resets. forms.py: class SignUpForm(UserCreationForm): institute...
Karan Sehgal
1

votes
0

answer
15

views

column not appearing in shipment page admin

I have created a custom module and below is the installer code. $installer = $this; $installer->startSetup(); $shipmentTable = $installer->getTable('sales/shipment'); $installer->getConnection() ->addColumn($shipmentTable, 'appointment_date', Varien_Db_Ddl_Table::TYPE_DATETIME, null, array( ), 'Appo...
Karan Adhikari
1

votes
1

answer
218

views

Plotting ccxt graph in python

I want to plot a live graph in python using matplotlib and ccxt can anyone guide me through it? I have already plotted a live bitcoin graph but i am not able to plot all the graphs by one single commands of using the ccxt library.
karan saxena
1

votes
1

answer
662

views

how to put opencart 3.0 customer name on header?

Can Any one help me how to display customer name in header after customer's login I also try some code but dosen't work in controller>common>header.php $data['customer_firstname'] = $this->customer->getFirstName(); $data['customer_lastname'] = $this->customer->getLastName(); Thank you in advance
karan brahmaxatriya
1

votes
1

answer
472

views

Adding new row to ag-grid at the top of the grid react

I'm having trouble figuring out how i should properly go about adding a empty row to my ag-grid at the top of the table. Right now this is how my component / user lifecycle is: Load page Render Grid (from componentDidMount, asking for data from reducer) fetch data from db (list of roles) update my r...
Karan
1

votes
0

answer
29

views

gitinfo not accessible from unit testcase

I'm writing a scala unittest, which checks the git information, and somehow it is not working from the Unit Test Added in pom.xml pl.project13.maven git-commit-id-plugin 2.2.4 get-the-git-infos revision {[email protected]}/test.git flat true true true true true folder structures are as shown below :...
Karan Alang
1

votes
0

answer
264

views

Singleton design-pattern for Firestore Document

I have a document for each user in my 'users' collection in Firestore. This document also stores some persistent state information about the user, which can also change because of external events. Most of my activities reference this data so I decided to use a singleton to reference the user details...
Karan Modi
1

votes
0

answer
26

views

How to show outside delivery area tag on product archive page in wordpress

How can i show outside delivery area over product based on the user location ? I have taken guest user location when user open the website.Now i need to show outside delivery label if product is not in the deliverable shipping zones. I am also using using the custom shipping method using distance ra...
Karan Rpn
1

votes
0

answer
128

views

React Redux and aggrid rebinding data

Having another issue with aggrid where I can't seem to figure out how to update a table of checkboxes the best way. I can turn deltaRowDataMode off and all works well, however it renders the whole grid and I just don't like the idea of ignoring performance. (incase i had thousands of users). I set...
Karan
1

votes
0

answer
45

views

How can I serve vendor js file from a node package via meteor server

I have to pass a javascript library available in a npm package to a Worker. Now worker can only import via importScripts. So, how do I do it other than keeping the whole minified js in public directory?
Karan Bedi
1

votes
0

answer
28

views

How do I reference a view passed as a prop from some other file for testing(using npm test <filename>)?

I have written my function as follows: _clickTile = (id, view) => { console.log(id); console.log(view); if (id == this.props.data.answerIndex) { view.zoomOut(250).then((endState) => { this.props.setProgress && this.props.setProgress(1) this.refs.questionView.zoomIn(250); this.props....
Karan Saluja
1

votes
1

answer
31

views

Is there any way to get string consists of all the prints by a function [duplicate]

This question already has an answer here: Can I redirect the stdout in python into some sort of string buffer? 8 answers consider following method in a class def printlist(self): traverser = self.head while traverser.next: print(traverser.val, end=', ') traverser = traverser.next else: print(traver...
Karan Suthar
1

votes
1

answer
37

views

I want to retrieve the only address value from firebase database?

I want to retrieve the only address value from firebase database! $scope.address = $firebaseArray(fireBaseData.refUser().child($scope.user_info.uid).child('address')); console.log(address);
Karan Kapadni
1

votes
1

answer
957

views

Spring Boot RabbitMQ - How to make sure multiple consumers consume messages one at a time

I'm using Spring Boot + RabbitMQ server and for one of my Queues I want my multiple consumers to consume the messages serially i.e. Expexted Behaviour consumer1: message1 xxxxxxxx message3 xxxxxxxx consumer2: xxxxxxxx message2 xxxxxxxx message4 Right now I'm using the following to achieve exclusivit...
Karan Gujral
1

votes
0

answer
122

views

Convert string html to IView in Asp.Net core

I am using the ViewContext of Microsoft.AspNetCore.Mvc.Rendering package to further render the html as follows: using (var output = new StringWriter()) { var viewContext = new ViewContext( actionContext, view, new ViewDataDictionary( metadataProvider: new EmptyModelMetadataProvider(), modelState: ne...
Karan Desai
1

votes
1

answer
160

views

How to return non-unique join table records in sequelize?

I'm Querying a specific 'Student', including a many - to many relationship for companies yet dupes are not coming back for records with the same studentId, and companyId. The join table does also have a primary key with id on it. Look at the line where I include Companies which is a belongsToMany Re...
Karan
1

votes
1

answer
232

views

Magento pagination for custom collection

I have created a module in which i am using pagination.I have 901 products which satisfy my filtered collection but i want to get only 360 products. see below code for more understanding.. class Test_Module_Block_Listmore extends Mage_Catalog_Block_Product_List { public function __construct() { pa...
Karan Adhikari
1

votes
0

answer
169

views

Execution failed for task ':compileDebugJavaWithJavac' in ionic 3

I built an ionic app with ionic 3 on ionic-cli 3.19.0 and later updated it to 3.20.0 It stopped building the apk and started giving this error-> ti-ionic3/platforms/android/src/com/adobe/phonegap/push/FCMService.java:393: error: constructor Builder in class Builder cannot be applied to given types;...
Karan Verma
1

votes
0

answer
332

views

Tab Layout with View Pager in React Native

I am newbie in React-Native.I am building an IOS app using react native.I am having problem in finding tab layout with view pager in ReactNative. Requirement is :- TabLayout which must be contained inside Image background. On tab layout click area under tab layout must be replaced as it works in and...
Karan sharma
1

votes
0

answer
159

views

Importing a .sql file into mysql

I have a 500 mb .sql file sent to me by one of my clients. I downloaded MySQL Versio 8.0 and want to open this file in MySQL workbench. I tried opening the .sql file through MySQL workbench but it ended with errors and did not export all the tables, so I tried the following commands on MySQL 8.0 com...
Karan Neginhal
1

votes
0

answer
124

views

Unexpected closing tag “:svg:use”

I am new in angularJS and creating app using angular2. I am getting the below error while running the app: This is my file: Unexpected closing tag ':svg:use'. It may happen when the tag has already been closed by another tag. For more info see https://www.w3.org/TR/html5/syntax.html#closing-element...
Karan
1

votes
0

answer
249

views

Angular 5 response error in Nginx

I am running an angular application inside a docker container which has nginx running inside it as a proxy server to serve the compiled angular files. The HTTP requests that this angular app makes are all to a backend application running on another docker container through nginx on that container a...
Karan
1

votes
3

answer
33

views

Changing contents of email depending on when email is opened

Hey I am not sure if this is a stupid question or not. Is there a way to dynamically change the link/greeting that a customer receives depending on the time of day they open the email we sent them. For example we sent the email at 11 am but the customer opened the email at 5pm. So they would get a m...
Karan K
1

votes
1

answer
51

views

Pycharm: unable to add pycharm.exe

I have downloaded PyCharm and I am not able to add the interpreter. I have referred all the topics here, and was able to find this. But still I couldn't solve the problem, when I select the PyCharm.exe file it says 'The selected file is not a valid home for Python SDK'. I have rebooted my system, Un...
Karan M
1

votes
1

answer
1k

views

How to upload dataset in google colaboratory?

I need to upload dataset of images in google colaboratory. It has subfolder inside it which contains images. Whatever I found on the net was for the single file. from google.colab import files uploaded = files.upload() Is there any way to do it?
Karan Purohit
1

votes
1

answer
287

views

Is it possible to remove some of the recipients from reminder message in SurveyMonkey, with API?

I have created a reminder message for recipients who have not responded yet with: POST /collectors//messages { 'type': 'reminder', 'recipient_status': 'has_not_responded', 'subject': 'Reminder! We want your opinion' } It created a reminder message for all the recipients in given collector, is it po...
Karan Suthar
1

votes
0

answer
74

views

Trouble creating a URL. Unable to reach the Branch servers, please try again shortly

I am using Branch IO Android SDK, but since yesterday I've been receiving an error: Trouble creating a URL. Unable to reach the Branch servers, please try again shortly. I've verified my code again but this is still occurring. I can't find any solutions to this.
Karan Jadhav
1

votes
0

answer
148

views

Setting Pending Intent to Builder in Onesignal NotificationExtenderService doesn't get Detected

I want to call Webview_activity on Notification Tap when app is killed , so in NotificationExtender Service ive attached Pending intent with the builder using setContentIntent() method, but nothing happens when notification is tapped. Webview_activity is successfully called when application is alive...
Karan Gada
1

votes
2

answer
21

views

Comparing Date and Time between Cells and Create a versioning column on which appeared first

screen shot of excel Hello, I have 3 columns in my excel sheet. Column A is item number, Column B is file Name, Column C is the date/time that file was modified(it is called matched in excel). I created a column D called versioning by comparing date and time of files with the same item number, right...
Karan Neginhal
1

votes
1

answer
36

views

issue facing in recording video and uploading to server in android titanium

I am using Android device for upload video on the server using titanium platform. I am facing following issue when retrieving data. No Activity found to handle Intent { act=android.media.action.VIDEO_CAPTURE dat=content://com.example.videoupload.tifileprovider/filesystem/storage/emulated/0/Android/d...
Karan Jadhav
1

votes
1

answer
36

views

Inner div go outside its outer the main div [duplicate]

This question already has an answer here: CSS Float Logic 1 answer There are three div inside my main div. But one div is going outside of main div. I dont get it, how can something like this ever happen? If there is anyone who could help me..... ...I would be so grateful =) .test1{ width: 1000px;...
Karan
1

votes
2

answer
437

views

How to do Ping Test of devices from csv list with Python

I am trying to import a csv file that has hostnames and do ping test for such ~100 devices. CSV1: Hostname abc bcd efg . . and so on I want to do ping test and write the ping status whether it is UP or Down in the output csv file along with the corresponding hostnames. Something like thi...
Karan M

View additional