pavan

0

votes
2

answer
50

views

Can we improve performance on lists other than java 8 parallel streams

I have to dump data from somewhere by calling rest API which returns List. First i have to get some List object from one rest api. Now used parallel stream and gone through each item with forEach. Now on for each element i have to call some other api to get the data which returns again list and save...
Pavan
0

votes
2

answer
19

views

Is there a way to 'Update' existing table with new user list than running entire query to replace table everyday?

I am running query in a job that updates user list everyday in MS SQL. Query below is running everyday to update the data if object_id('report.dbo.data') is not null drop table report.dbo.data SELECT UserID, date into report.dbo.data from data a where date >= '2019-01-01' and date < getdate() O...
1

votes
3

answer
91

views

AS400 SQL Database Query

The time column has a string type containing a time in the format HHMMSS. Sample data is: 95030 122030 132030 As you can see, there are no leading zeros. I am trying to extract the above values and convert them to something like below 95030 -> 9:50:30 122030 -> 12:20:30 The Sql Query: select ca...
Pavan_Obj
1

votes
1

answer
63

views

Not able to access smartedit url https://localhost:9002/smartedit

I followed the steps provided in the wiki to install smartedit. After installation of the same.. I tried to access the smartedit url https://localhost:9002/smartedit. But it is throwing 404 page and the following exception: error expected mime type application octet stream but got text Error 404 Not...
Pavan yvs
0

votes
0

answer
7

views

Windows sleep even for UWP apps

In my app I have UP and DOWN channels which continuously listen for Audio stream. I want to know that In windows is there any event which will tell me that machine is now going to sleep state (not sign-out because machine will go to sleep after sign-out based on the user settings) so that i can susp...
Pavan Tiwari
2

votes
1

answer
15

views

How to compare and get count of coulmn value occurance from multiple dataframes

Is it possible to compare 4 dataframes based on 2 columns and get result containing duplicate if appeared in 2 or more dataframes. The result should contain count of occurance. My dataframes look like >>>df1 Circle Division Power 0 AAAA AA 25 1 BBBB BB 5 >>>df2 Circle Divisi...
Pavan Kumar T S
0

votes
0

answer
11

views

To scrape website and put in excel segregated into Headings and Contents. The problem is that both have same class and tags, How to segregate?

I am trying to web scrape http://www.intermediary.natwest.com/intermediary-solutions/lending-criteria.html segregating into 2 parts Heading and Content, The problem is that both have same class and tags. Other than using regex and hard coding, How to distinguish and extract into 2 columns in excel...
Pavan SN
1

votes
0

answer
173

views

Exoplayer with android navigation bars

What should I do to show android navigation (top and bottom) bars when Exoplayer is hosted on the activity? Below is my Activity XML And when activity is launched, this how the it appears However, when I set android:visibility='invisible' to the SimpleExoPlayerView, navigation bar appears properly....
Pavan G R
1

votes
1

answer
43

views

Am stuck in parsing Push Notifications

I want to fetch value of description from the below response. In body few more key-value pairs are there. I have tried, unfortunately am failing to crack. My code is in Objective C. And My code for Parsing as below NSData *jsonData = [NSJSONSerialization dataWithJSONObject:notification.request.conte...
Pavan padmashali B S
1

votes
0

answer
34

views

React navigation TabNavigator resets to default route

I've a strange thing happening in my navigation. I've a tab navigator with home as a default tab and Profile as another tab. When I try to upload an image from profile tab using fetch and formData it automatically redirects back to home tab. I tried to call a simple api w/o formData and it did not r...
Pavan
1

votes
1

answer
153

views

Seekbar progressDrawable is offset in some of the devices (mostly observed in tablets)

I have an AppCompatSeekBar which has a progressDrawable and they use 9 - patch images internally for the filled and the non filled section of the seekbar. Everything seems to work fine in most of the phones. But when it comes to few tablets the seek track is offset towards the top. The following is...
Pavan
1

votes
0

answer
347

views

Server receives POST request twice from Nginx

We have a nginx server acting as a reverse proxy between the client and server. Whenever the server returns a 500 we actually see that the request is being sent to the server twice from the nginx logs: 173.38.209.10 - - [26/Jan/2018:15:15:36 +0000] 'POST /api/customer/add HTTP/1.1' 500 115 'http://...
Pavan
1

votes
0

answer
292

views

How to set width and height to qr scanner in ionic 2?

I am using qr scanner in my ionic2 application.I am uisng this link https://ionicframework.com/docs/native/qr-scanner/. All are working fine, but camera shows entire screen. I want to show certain width and height of qrscanner. please help me....
Pavan Reddy
0

votes
0

answer
6

views

Google & Apple - In-App Purchases - For groups

I am new to in-app purchase. I am writing a mobile app which will allow users to create groups (like WhatsApp Groups). Each user in these groups can perform an action once, for each such action they will need to use a coin. These coins will be bought by a group member for that entire group (one coin...
Pavan Jaju
1

votes
0

answer
46

views

rest assured File not Found error

When i use authorization in headers for rest assured by bassing token variable giving 'File Not Found' error. And if hardcode the token in headers then it's working successfully. Can anyone help me out what can be the issue. Below is my code, public static void getIndentId() throws IOException { if(...
Pavan
1

votes
0

answer
27

views

IBM MobileFirst Sql Adapter Prod build not working in IOS

We are worked IBM MobileFirst mobile app.We have one SQL Adapter getting userinfo from DB.We are working on PROD build. Below code working fine with Android.But it's not working for IOS CODE: function fetchUserInfo(params) { var data = JSON.parse(params) data.status = 'ACTIVE'; var response = WL.Ser...
Pavan Alapati
1

votes
1

answer
73

views

AngularJS - $emit test case in Karma

I'm new and doing my first Karma testing and have referred this post for $emit test case. I have some trouble understanding the concept. This is my code: ctrl.toggleUserMode = function(pUserId, pUserName, userModeFlag) { $scope.$emit('userModeToggleEvent', userModeFlag); } Sorry If my question see...
Pavan
1

votes
1

answer
49

views

parallelism in spark sql when list of tables are need to be processed

Using Spark 1.6.0 , cdh 5.7.0 I have a csv file which has list of tables to be processed and I want to achieve parallelism in processing. As of now I am using collect to process each , tried using future option in scala and even tried this https://blog.knoldus.com/2015/10/21/demystifying-asynchron...
j pavan kumar
1

votes
1

answer
182

views

ServiceNow Rest API Timefield

I am trying to write a Rest API client where ServiceNow Database will be polled every 10 minutes to get the Data. Below is the Url that I built: 'https://servicenowinstance.com/api/now/table/employee_table?sysparm_limit=200&sysparm_offset=0&sysparm_query=sys_created_onBETWEENjavascript:gs.dateGener...
Pavan_Obj
1

votes
2

answer
45

views

How to set multiple spark configurations for same spark job

I am dealing with a weird situation , where I have small tables and big tables to process using spark and it must be a single spark job. To achieve best performance targets, I need to set a property called spark.sql.shuffle.partitions = 12 for small tables and spark.sql.shuffle.partitions = 500 fo...
j pavan kumar
1

votes
1

answer
78

views

Label Encoder is not creating dummy variables

import numpy as np import matplotlib.pyplot as plt import pandas as pd dataset=pd.read_csv('Churn_Modelling.csv') X=dataset.iloc[:, 3:13] Y=dataset.iloc[:, 13] from sklearn.preprocessing import LabelEncoder label_en1=LabelEncoder() X.values[:, 1]=label_en1.fit_transform(X.values[:, 1]) label_en2=La...
Pavan Borole
1

votes
0

answer
24

views

request.getRemoteAddr(); returns 127.0.0.1 in jboss6 and in wildfly10 it returns actual remote ip

I am migrating jboss6 to wildfly10, somewhere in code i am checking request.getRemoteAddr(); in jboss6 it returns 127.0.0.1, but in wildfly10 it returns the actual remote ip of client. But i want to know the logic behind that, or achive the same in wildfly10. Thanks Pavan
Pavan Patidar
1

votes
1

answer
196

views

Close JIRA ticket on Git Commit

I am trying close all the JIRA tickets on post-receive hook. My python script is executing on post-receive, from commit message I am able to get JIRA ticket number and found the ticket in JIRA also. All it is working fine but when I want to change status of JIRA ticket with below code getting error...
Pavan
1

votes
0

answer
81

views

@Counter-style rules in html

I am aware of the css counter functions but recently I came across @counter-style https://www.w3.org/TR/css-counter-styles-3/, which we can use to define custom rules for counters. I tried locally to see the effect of counter-style but browser is not honoring counter-style properties. HTML ex @count...
Pavan Tiwari
1

votes
1

answer
935

views

Convert a Word Document into PDF in NodeJS

I have a requirement to convert a complex word document into .pdf file with nodejs. I have tried multiple wrapper modules written upon unoconv and unoconv module directly but stumbled upon ENONET error even after trying all the fixes in respective repos. I have applied mammothjs and tried converting...
Pavan Tolety
1

votes
1

answer
137

views

How to load resource file in jenkins plugin?

I am trying to load a resource file which is in src/main/resources folder as part of Jenkins plugin. It is always giving me FileNotFoundException. Can someone please explain how to make it work? Exception message: java.io.FileNotFoundException: file:/var/lib/jenkins/plugins/Report/WEB -INF/lib/Repor...
pavan
1

votes
0

answer
62

views

App crashing after multiple transition from initial screen to Map Screen which has GMSMapView

my app has initial search screen and on search goes to maps screen (GMSMapView) in navigation, after multiple to and fro transitions app crashes without error and some times with error * Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: '{id: 31684}: An -observeVa...
Pavan Kumar
1

votes
0

answer
48

views

Enable serving assets in Sails App after using --no-frontend

I'd created a sails 1.0 app with --no-frontend option. Now I want to serve static html from it. Anyway I can rewire it inside the same app. Where do the settings reside to enable it.
Pavan
1

votes
0

answer
59

views

How do I fix a 3D object on glsurfaceview and cameraview and rotate it from a different angle?

I want to build an augmented reality (AR) app as shown in this video: Ikea’s new augmented reality app will change the way you decorate I have loaded a 3D .stl object on glsurfaceview and cameraview, and I am able to rotate the object with the touch of a finger. However, the problem is my object i...
Sejpal Pavan
1

votes
0

answer
646

views

Laravel Multiple Group Chat room using pusher

I want to create a multiple chat rooms using laravel and pusher. I have created the chatroom where the user logged in can have a group chat with others who are online. But I want to create where something where a users creates a group and the only those users can chat and multiple users can create m...
Sai Pavan
1

votes
0

answer
30

views

Requesting rest API generated using Swagger but it is giving me error

I am building web REST API using swagger with all its APIs. I am doing using Maven, I have included all the dependencies. When I clean install the project it does not give me any error, when I run it on Tomcat7 it executes all the code at sever API (as I can see it with console) but somewhere it fai...
Pavan Divekar
1

votes
0

answer
42

views

How to construct HTTP_REQUEST_HEADERS in native server push functionality, HttpDeclarePush

I am trying to implement iis native server push functionality, HTTPDeclarePush, in VC++. Below is the syntax for HttpDeclarePush (from msdn). ULONG WINAPI HttpDeclarePush(     _In_ HANDLE RequestQueueHandle,     _In_ HTTP_REQUEST_ID RequestId,     _In_ HT...
Pavan
1

votes
1

answer
263

views

how to stop or exit protractor from executing the other specifications with wrong credentials

` import { async, ComponentFixture, TestBed } from '@angular/core/testing'; import { LoginComponent } from './../login/login.component'; import { browser, by, element } from 'protractor'; import { error } from '@angular/compiler/src/util'; import { CATCH_ERROR_VAR } from '@angular/compiler/src/outpu...
Pavan
1

votes
2

answer
43

views

View comma separated values of one column in multiple rows or in multiple values

I am creating a shopping website in which I have saved multiple values in one column in my database. The column name is 'availablesize' and the stored values are 'S,M,L,XL'. Now I want to view these three values in separate rows. Here's my code:
Pavan Chanda
1

votes
0

answer
32

views

How to update sub-sub-documents in spring-boot mongodb?

{ 'refNum' : 'ESMEUS', 'faqs' : [ { 'type' : 'about company', 'answer' : 'xxxxxxxxxxxxxxx', 'questions' : [ { 'question' : 'tell me abt company' }, { 'question' : 'tell me abt company' }, { 'question' : 'tell me abt company' } ] }, { 'type' : 'about ceo', 'answer' : 'xxxxxxxxxxxxxxx', 'ques...
pavan kalyan
1

votes
0

answer
410

views

Nested JSON dynamic data conversion to xls or csv file

I have a JSON file which i need to convert it into excel or csv file . JSON file: { 'gstin': '37AAACGJSJOSFF', 'fp': '032018', 'b2b': [ { 'ctin': '33ASADKSDMK', 'cfs': 'Y', 'cname': null, 'inv': [ { 'itms': [ { 'num': 500, 'itm_det': { 'csamt': 0, 'rt\n': 5, 'txval': 0, 'iamt': 0 } } ], 'val': 87004...
1

votes
0

answer
24

views

Alternate API on google cloud for NLP

Is there a Nexidia , Aurix alternate API on google cloud for phonetic speedAnalytics on calls? Somewhat like NLP for TextAnalytics
Pavan
1

votes
1

answer
27

views

Programatically Edit a Protected microsoft Excel Sheet

Experts, I want to Programmatically change the values of Drop Down Entries in a protected XLS . There are some 1000+ entries with value set to TBD and these entries are not in a sequence . Doing a CTRL-H (replace) throws error that it is password protected sheet . Changing drop-down entry value ma...
Pavan Nittala
1

votes
1

answer
77

views

click event is not getting triggered with puppeteer API

I m trying to test web page of my project with JEST & Puppeteer testing tool. In web page when i right click on element one menu pops up in page with setting some style attributes on element. So with this flow i m trying to test the same with JEST, I have written following code for the same. desc...
Pavan Divekar
1

votes
1

answer
406

views

AWS S3 object Public URL Dilemma

I am located in Asia-Pacific(Mumbai) region. I have S3 bucket abc. I have a image A.png with full public read access. So now URL i can use to access it from internet as suggested by AWS in AWS console is: https://s3.ap-south-1.amazonaws.com/abc/A.png I can also access Image from Following URLs as...
Pavan Rao

View additional