Pawan

1

votes
3

answer
5.5k

views

How to check if the Current Time is in between Two Given TImes?

I have got startTime and endTime and current_time , how to check if the current time is in between these two times or not ?? I have tried as following : var startTime = '08:27 PM'; var endTime = '09:31 PM'; var curr_time = getval(); if (curr_time > startTime && curr_time < endTime) { alert('No') } e...
Pawan
1

votes
2

answer
346

views

How to make the “it” in mocha to wait until the promise within “it” gets resolved?

var promise = require('promise'); var {Builder, By, Key, until} = require('selenium-webdriver'); var test = require('selenium-webdriver/testing'); var chai = require('chai'); var getUrl = require('./wdio.conf.js'); var driver = new Builder().forBrowser('chrome').build(); test.describe('Proper Testin...
Pawan Juyal
1

votes
1

answer
632

views

Overriding active admin session controller

I need to add two factor authentication for active admin. Whenever admin tries to login I need to verify them before giving access. Verification can be done either by sending OTP to email or mobile. So I need to over ride the Sessions controller for active admin devise so that I can add the function...
pawan kumar
1

votes
0

answer
557

views

Submit Campaign Monitor form data using Ajax and With Single Click

I need to submit the Campaign Monitor form data using Ajax. Currently I have achieved the submission of form data using Ajax but it's taking double click. The user has to click the submit button double times. And i need the data to be submitted on single click. Html of the Form Script for the Form...
Pawan Singh Bisht
1

votes
1

answer
195

views

agm-snazzy-info-window will close when Map is click

But I don't want to close in map click please help. It has a property called closeOnMapClick but its not working,
Pawan Sahu
1

votes
0

answer
31

views

Red Hat Enterprise linux vm not able to subscribe via subscriprion manager

When I enter the following command on my rhel command line subscription-manager register --username myusername --password mypassword I get the following error on my command line No JSON object could be decoded
Pawan Patil
1

votes
2

answer
357

views

RxJava - Observable which emits items which are new or changed

I am a newbie in reactive world and trying to implement the following scenario with rxjava/rxandroid 2.x. I have a local data set as ArrayList mItems in Application class. The same data set is synchronized with server and updated every time user opens the app. However before server returns the respo...
Pawan
1

votes
0

answer
182

views

Mongo random sampling on huge data very slow

We have a collection with more than 20 million documents. These documents store all the user activity related data for over a year and are around 2 - 3kb on average. When we count based on a specific field the results are returned in 1.5 mins but the same query with 5% sample size I.e 1 million reco...
Pawan Rao
1

votes
1

answer
264

views

How to mask particular field values in mongo collection?

Is there a way to mask the values in particular fields of collection in mongo db ? Would want to mask two fields { 'field1:'value1', 'field2':'vallue2' } When this is saved in mongo as collection would want it as { 'field1:'XXXXX', 'field2':'XXXXXX' } but when I retrieve this collection. I should g...
Pawan Kulkarni
1

votes
0

answer
101

views

Yii2 inserting new record on update

I have a setup where for one of the Model I have repeat fields like user and userchildren so userchildren have a set of fields like child_name, child_birth_date and child_gender My controller code is like this: public function actionUpdateProfile() { $user_id = Yii::$app->user->identity->id; $model...
Pawan
1

votes
0

answer
56

views

Magento moved permanently error for home page only

I have a Magento Installation version 1.9.3.1. Until yesterday It was working fine, but now the frontpage is not working with the error - Too many redirects. On further checking in the console(firebug), I can see all the files are showing as moved permanently as also it is adding a extra slash / tha...
Pawan
0

votes
0

answer
5

views

how to write elastic aggregation to plot VM's CPU % usages on grafana?

I am trying to plot VM's CUP % usages graph on grafana but do not able to figure out aggregation query. I have setup collectd with virt plugin to fetch VM's metrics and storing it into elastic search via logstash. I tried to fetch result by a simple query and it is working. But I could not able to f...
pawan pandey
1

votes
3

answer
147

views

How to show amount in round figure for Odoo 10

I have a float field and i can calculate amount within this field. I want that amount should show in round figure. For eg. when price is 64.80 then it updated to 65 and if price 64.40 then it updated to 64. So, what solution i could use? Thanks in advance.
PAWAN SHARMA
1

votes
1

answer
308

views

PostgreSQL Monthly Database growth

I have table in which i am calculating daily database growth. time_stmp| datname| datsize ----------------------------+---- 2018-05-1 | test | 35 MB 2018-05-2 | test | 38 MB 2018-05-3 | test | 49 MB . . . . 2018-05-29 | test | 57 MB 2018-05-31 | test |...
Pawan Sharma
1

votes
0

answer
37

views

How to open calendar view in many2one field for odoo 10

Like Form and list view, Can it is possible to open calendar view in many2one field. If it is possible then please suggest a model or way to open calendar view in many2one field. Thanks in advance.
PAWAN SHARMA
1

votes
1

answer
164

views

CloudFormation is not executing my command?

I am executing command through CloudFormation but it is not working. Also I am not getting any error in logs. Able to create instance & EBS with this template but command is not being executed. This the template which I am using: { 'Description' : 'AWS CloudFormation Sample Template EC2InstanceWit...
1

votes
0

answer
88

views

PWA is not updating the cache, I'm using the Network falling back to the cache approach

I've tried the below code in my sw.js file but it's not storing the updated response in the cache. It's showing the updated response while online. But when I went offline It returns the same response as my first-time visit. importScripts('/src/js/idb.js'); importScripts('/src/js/utility.js'); var CA...
1

votes
2

answer
56

views

Angular 6 Api UI update Issue

I have been working on the authentication in Angular 6 and for that I have used sessionStorage of Angular. My issue is that I have a header in which few links are displayed on the basis of the condition that if the user is logged in or not . So if the user is logged in then he will be able to see on...
Pawan lakhera
1

votes
0

answer
120

views

How to shift tree view column string on right side for Odoo

i Have problem related to UI. i want to shift sale order line tree view column string on right side. So, Is there any solution for this problem. I'm using Odoo 10. I'm also attaching screenshot below related to problem. PFA
PAWAN SHARMA
1

votes
1

answer
49

views

Paas Excel sheet data in array and send to model using Codeigniter

I am using PHPExcel for uploading large amount data file. While uploading the excel sheet it display the error : Fatal error: Maximum execution time of 30 seconds exceeded because I am sending data through foreach loop and it takes time for uploading. Now I want to send data in array form. I am usin...
pawan
1

votes
0

answer
53

views

Google Pagespeed Insights missing something

I have two different domains(both hosting Magento - M1) for client on which I am working on. I have installed the extension - https://github.com/mediarox/pagespeed Issue with example1 domain With the help of this extension - JS files are moved to the bottom, correctly, which is evident from the GTme...
Pawan
1

votes
1

answer
26

views

HIVE UDF class missing

I have created below UDF functions : package co.hive.udf; import java.security.*; import javax.crypto.*; import javax.crypto.spec.SecretKeySpec; import sun.misc.*; import org.apache.hadoop.hive.ql.exec.UDF; public class encryptHivecolumn extends UDF { private static final String ALGO = 'AES'; privat...
pawan likhi
1

votes
3

answer
33

views
1

votes
0

answer
9

views

Integration of our own customised CRM chat system into our website

I am interning at a company and I am stuck in one problem if anyone can help. QUESTION: Our company has there own CRM software and I am working on website designing. I have a task to put there chat system which is in there CRM in the website using javascript, ajax, json or php either. Does anyone h...
PAWAN RERU
1

votes
1

answer
507

views

Tomcat is returning HTTP Status 400 – Bad Request status when I try to send special characters in URL

Whenever I try to put special characters in the URL as follows in the Mozilla Firefox browser https://URL/| or https://URL/] Tomcat is returning HTTP Status 400 – Bad Request and exception stack trace as follows. Type Exception Report Message Invalid character found in the request target. The val...
Pawan Patil
1

votes
1

answer
222

views

How to implement plugin-based architecture using redux

I am working on an web app where user can subscribe to available features and all those features are having certain effects on user actions. I am using redux thunk for async actions. eg. user can select product to buy or sell from product list, this triggers a reducer called userIntention and after...
Pawan Wagh
1

votes
1

answer
25

views

Is it right to read config settings defined in web.config in database access layer?

I have some configuration settings stored in my web.config file of my front end project. I wanted to access them in the database layer, I am able to get them using this ConfigurationManager.AppSettings['Setting'] But I was wondering is it a good practice to access the settings in the database layer...
Pawan Nogariya
1

votes
0

answer
54

views

Access Denied - User doesn't have the access for the requested operation in UnionPay (WireCard)

I have using Wirecard Union Pay Payment but it return Access Denied - User doesn't have the access for the requested operation! error. Below is sandbox details; { 'MerchantAccountId': '7139c728-cc91-11e3-ac9f-00163e1a318d', 'PaymentMethod': 'chinapay', 'Mode': 'sandbox', 'UserName': '70000-APILUHN-C...
Pawan Shukla
1

votes
0

answer
27

views

Want to open Pipeline action instead of Lead when click on custom button(More Info) for CRM in Odoo11

I created custom dashboard and added custom button on that dashboard. And when i click on that button(More Info) then then it landed me to lead menu but i want to Pipeline menu action. So, how i do that. Below is my code: Python : @api.model def get_employee_info(self): uid = request.session.uid cu...
PAWAN SHARMA
1

votes
1

answer
84

views

PyQt5 QTextBrowser - setText - Alignment issue?

I am trying to make a simple GUI console using PyQt5. On trying to print the text using QTextBrowser - setText, it loses alignment and looks bad. but the text is aligned in my python console I am using the setText function to display my data frame. On changing the justify parameter of df.to_string()...
pawan kumar
1

votes
1

answer
38

views

Not able to detect flash button pressed on Nodemcu

I am working with simple Micropython with Esp8266 module and not able to detect if flash button on esp is pressed I tried using pin 0 but it is not working. p2=Pin(0,Pin.IN) while True: print(p2.value()) if p2.value(): break; I also tried this but it is also not working as expected. p2 = Pin(0,Pin.P...
pawan
1

votes
0

answer
41

views

STS- Add Server - Next Button is disabled when I try to add oracle weblogic server

I am facing issue in adding oracle weblogic sever in sts. when I go to Windows -> Preferences -> Server Runtime and try to add oracle weblogic server the next button is disabled. what is the resolution of this problem? Edit:- Error logs are as follows Unhandled event loop exception java.lang.Illegal...
Pawan Patil
1

votes
1

answer
42

views

Filter deeply nested list using Aggregation operations Spring data

I'm having the below document [ { 'pageName': 'Content_2', 'domain': 'bingo.com', 'locale': 'en-us', 'contents': [ { 'contentName': 'Template_2', 'fields': [ { 'title': 'Company Name' }, { 'title': 'Designation' } ] } ] }, { 'version': 2, 'pageName': 'Content_3', 'domain': 'bing...
Pawan Kumar
1

votes
0

answer
29

views

Initialization of bean failed; nested exception is org.springframework.beans.ConversionNotSupportedException : Application deployed on weblogic server

I am facing following exception in my project which is deployed on weblogic server Failed to convert property value of type 'javax.naming.Reference' to required type 'javax.jms.ConnectionFactory' for property 'targetConnectionFactory'; nested exception is java.lang.IllegalStateException: Cannot con...
Pawan Patil
1

votes
0

answer
45

views

java.sql.SQLSyntaxErrorException: ORA-00942: table or view does not exist : jdbcTemplate

We are using jdbc template for communicating with oracle database in our project and after deployment it is throwing following exception. org.springframework.jdbc.BadSqlGrammarException: PreparedStatementCallback; bad SQL grammar [select count(*) from users where temp_id = ?]; nested exception is ja...
Pawan Patil
1

votes
0

answer
24

views

How to insert bootstrap col in summernote editor and I want to add it into the data that is coming from database

Hey Friends, Pardon for my English, I'm working on a project where I need to insert an bootstrap grid column in a row(append just after last column) in summernote and there is a bootstrap row with some columns, already exist in summernote editor from database. I'm little confused with the jquery par...
Pawan Mall
1

votes
0

answer
22

views

gradle is always downloading latest version of dependency from artifactory

I am kind of stuck at one place because of gradle issue. in my dependencies.gradle file I have specified my dependency version as follows compile(group: 'org.comp.test', name: 'test-core', version: '3.9') but whenever I refresh dependencies in my STS and create build of my project gradle always down...
Pawan Patil
1

votes
0

answer
26

views

Magento2 minify Javascript google page speed insights

While I have no different settings for Desktop and mobile,but google page speed insights pass the test for desktop as javascript minified, but fails for all JS files for mobile test as not minified. Does anyone faced similar issue, what could be reason for this?
Pawan
1

votes
0

answer
31

views

I am comparing array store in coredata with my own array .getting crash on fetchedResultsController.performFetch()

var amentitiesPredicate: NSPredicate? var predicates = [AnyHashable]() for amentity in ['1','2','3'] { predicates.append(NSPredicate(format: ''\(amentity)' IN amenities')) // amenities is the array store in coredata } if predicates.count > 0 { if let predicates = predicates as? [NSPredicate] { ame...
pawan_kumar
1

votes
1

answer
71

views

how to fix these errors in my matlab code?

I'm trying to stack 2D images to get 3D just like How can I plot several 2D image in a stack style in Matlab? my original code had some errors and someone suggested to go with the below code M = zeros(25, 50, 8); for k = 1:8 img = imread(sprintf('%d-0000.jpg', k + 30)); img = imresize(img, [25 50]);...
Pawan Ps

View additional