Ahsan Ahsan Mughal

1

votes
0

answer
587

views

Convert xlsx file into binary data

I am working on creating xlsx file and i am almost done because i created file successfully but the next i want to do is to add the currently created file into database table and my column requires bytea data so i need to convert the file in binary data. Which i tried in last line but its giving me...
Ahsan Attari
1

votes
1

answer
763

views

Laravel JWT Authentication without User Model

I'm trying to build a laravel application and API for mobile users in the same project. The main web is actually a backend of a website and require proper authentication that I have already implemented. And the api also need to authenticate but with different credentials (not user model from web). A...
AHSAN
1

votes
1

answer
31

views

Setting Height of Pattern-Image for Canvas

I am drawing frames around some images. This is my code for drawing the top frame: this.frame.top.height = this.frame.top.height * this.resizeMultiplyer const pattern = this.context.createPattern(this.frame.top, 'repeat'); console.log(this.frame.top.height); console.log(this.frame.top.height); this....
Ahsan Aasim
1

votes
0

answer
552

views

Text Categorization by uisng mlr package in R

I need to train a model which would perform multilabel multiclass categorization on text data. Currently, i'm using mlr package in R. But unluckily I didn't proceed further because of the error I got it before training a model. More specifically I'm stuck in this place: classify.task = makeMultilabe...
Ahsan Nawaz
1

votes
2

answer
528

views

Record Screen Specific View using MediaRecorder

I want to record my screen video in specific View link only want to record the action performing inside LinearLayout. Right now, MediaRecorder is recording whole screen, how to record specific part of screen?
Ahsan Saeed
-1

votes
0

answer
4

views

How to group data on the basis of year in R?

I am working with the London Crime data set. It has a Borough, Major Category, Minor Category, Dates, and the Count. Below is my data structure. 'data.frame': 139392 obs. of 5 variables: $ Borough : Factor w/ 32 levels 'Barking and Dagenham',..: 1 1 1 1 1 1 1 1 1 1 ... $ Major.Category: Fac...
Ahsan Hasan
1

votes
0

answer
229

views

Reticulate not working with numpy 1.13.3

I am using python 3.6 and numpy 1.13.3. On numpy import, I am getting an error Cannot import name 'dtype' reticulate::import('numpy') throws Error in py_run_string_impl(paste0('import sys; sys.path.append('', system.file('python', : ImportError: cannot import name 'dtype' Should I need to use some...
Ahsan Abbas
1

votes
0

answer
42

views

How to fix the bug related to scroll bounce effect on mobile?

So this error is related to scroll effect. As I open my website (https://bobobee.com) on a mobile browser and scroll down, it often gets stuck and bounce back. This started happening after I enabled Auto Adsense Ads on the site. I am not able to figure what exactly is causing this error and how to...
Ahsan Mirza
1

votes
0

answer
143

views

fail to load external js files in angular4 components

I have angular 4 applicaiton in which i want to integrate form wizard. I have downloaded form wizard from a link and it has 3 .js files which i have to load in my component. I have tried various methods but still .js files are not loading. I have tried to in this way in my register.component.ts im...
1

votes
0

answer
149

views

Ionic 2 - tabs disappear when i push component from side menu

Ionic tabs disappear whenever I push a new page/component from side menu navigation.it works fine when i go to tabs child navigation.
Ahsan Mustafa
1

votes
1

answer
35

views

Conversion from string “insert into reciptdetails(recip” to type “integer” is not vaild)

geting the recipt id from the database SQL = 'select max(reciptid) as MAXID from recipts where 1' Dim CMD2 As New OleDb.OleDbCommand CMD2.Connection = MyConnection CMD2.Transaction = MyTransaction CMD2.CommandText = SQL Dim ReciptID As Long = CMD2.ExecuteScalar() CMD2.Dispose() insert the details of...
Ahsan Baloch
1

votes
0

answer
117

views

jsPDF save to serverside

My code is working correct. It's capturing and generating the whole page and prompting download too. But I need this to be saved on my server automatically in 'uploads/pdfs/' folder. I actually want to send this through php mail and save it on the server instead of prompting. Please help me. This is...
1

votes
0

answer
27

views

Logging into a website and then getting asp data in BeautifulSoup4 in Python3

I have to do following tasks: a. Login into a router GUI with user and password b. You'll land on http://192.168.10.1/index.asp c. Navigage to http://192.168.10.1/html/common/getneighbourAPinfo.asp and get all data in a json or text file. I can go directly to the link provided in point 'c' if I hav...
Ahsan Farooqui
1

votes
5

answer
601

views

Android Recyclerview item side by side

I have recycler-view with items in it and can be scrolled vertically. Currently what i achieved is items are added one after another like a list. By i need to place them side by side. Like the image below And my output is My recycler-view setup code: topicAdapter = new TopicAdapter(topicList, getA...
Ahsan Aasim
1

votes
0

answer
145

views

Modify URL in asp.net zero

I have different tenants name and a login page whose path is localhost:4200/account/login but before that i have localhost:4200/account/workspace page where i will enter my tenantName in a textbox and the particular tenantId will be in the cookies. Now i want my next login page url to be like this...
Ahsan Nissar
1

votes
0

answer
242

views

Realm in React Native - TypeError while not using JS Debugging

I am Currently developing an app in react-native in which I would like to create a Database on the device as well. I found a good library Realm to use as a Database storage in my app but I am having error in running it. App works fine when I activate Debug JS remotely Fails and gives error TypeErr...
Ahsan Ahmed
1

votes
1

answer
205

views

Token in localStorage cleared when dashboard page refresh in Angular Application

I'm trying to figure out a way to keep my angular variables with page refresh / across components. My workflow is user logs in via credentials(Username & Password) and gets an access token users access token will be used with every request Al through my application works fine. When user login and ge...
Ahmer Ali Ahsan
1

votes
2

answer
356

views

Stripe connect error in creating account

I am not able to create account of a customer in my application. The code which I found on stripe documentation id: Map accountParams = new HashMap(); accountParams.put('email', '[email protected]'); accountParams.put('country', 'US'); accountParams.put('type', 'custom'); Account account = Account...
Ahsan Sharif
1

votes
0

answer
96

views

Keeping the order of insertion In Map object after deleting elements

My Findings: object.forEach loop is messing up order of element (ascending and descending) but for loop is working fine. Does anyone else experienced it too ? or any explanation about it ? I think JavaScript does not guarantee property order of objects. What I am trying to achieve ? I have an array...
Ahsan
1

votes
0

answer
204

views

What is the difference between identity server 4 open id connect and Azure AD?

What I know about IdentityServer and OpenID connect is: The IdentityServer is a free, open source OpenID Connect and OAuth 2.0 framework for ASP.NET Core. That incorporates all the protocol implementations and extensibility points needed to integrate token-based authentication, single-sign-on and AP...
Ahmer Ali Ahsan
1

votes
0

answer
17

views

how to download images and pdf files to gallery and files folder

This is my code it download file but not placing files in gallery or files folder: let destination: DownloadRequest.DownloadFileDestination = { _, _ in let documentsURL:NSURL = FileManager.default.urls(for: .documentDirectory, in: .userDomainMask).first! as NSURL print('***documentURL: ',documentsUR...
Ahsan Sajjad
1

votes
0

answer
185

views

Tensorflow indices in tf.map_fn

I'm facing 'slice indices must be integers' error while using tf.map_fn when I use the index variable to reference an image array in tensorflow. If I don't use index variable and hardcode the value, the result comes alright. Following are the details: print(img_x.shape) xm = tf.map_fn(lambda i: img_...
Ahsan
1

votes
1

answer
68

views

Overpass the duplicate value in primary key if exist

I have a table like below: +--------+--------+ | TestNo | Value | +--------+--------+ | 1 | Test1 | | 2 | Test2 | | 3 | Test3 | | 6 | Test6 | | 7 | Test7 | +--------+--------+ in which TestNo is the Primary Key and have the following values. Notice that the 4, 5 TestNo...
Ahsan Ali
1

votes
0

answer
95

views

open62541 Visual Studio 2017 error, OPCUA

I am trying to build open62541, generate files for VS 2017, using Cmake. I am having problem, 'MSB6006 'cmd.exe' exited with code 1 error ' for open62541 files. When I build the generated file from Cmake, using VS2017. I am trying to connect my 4Diac control system to UA expert, which will be used...
Ahsan
1

votes
1

answer
44

views

Check session before login page request

I am trying to make my login page to check if the session is already running then just route to the home page but since my login page is an angular modal so whenever i put the if condition it does check but it first show the modal view and then check if the session is running or not and if it finds...
ahsan
1

votes
1

answer
43

views

image uploading returns a File not found exception

I am trying to upload an image from Android client to a .net web API. I can not figure out what's going wrong with the client code. Client code @Override protected String doInBackground(String... strings) { try { String lineEnd = '\r\n'; String twoHyphens = '--'; String boundary = '*****'; int byte...
Niaz Ahsan
1

votes
1

answer
331

views

How to generate dynamic menu tree using recursion in ASP.Net?

Let say I have below menu picture in my mind. According to the above picture I've created my SQL CTE query and the query returning me the below result. Scenario The scenario is to create a multi level menu in ASP.Net webform application. In my past experience I've created menus using sitemap and men...
Ahmer Ali Ahsan
1

votes
1

answer
38

views

How to search value in Sqlite database?

I'm developing an app which is used for contacts and for this i used sqlite database to store name and number so i want to filter name and number for searching for which i tried that query but it's not working for me any solution for problem i used like and '=' both? public boolean onQueryTe...
Ahsan
1

votes
1

answer
54

views

Laravel 5.6 session not redirect to view

I'm using Laravel 5.6 and facing some problems. I want to authenticate a User if email and password found in Database match then redirect. If the User exists, redirect to 'user1', otherwise redirect to '/': also atttached the Migrations file Routes Route::any('/user1','[email protected]'); Route::g...
Ahsan Ashraf
1

votes
0

answer
27

views

actionModeBackground is not working in lower Version?

This code is working fine in lollipop and above lollipop version but not working in lower Version so any Solution for this. @color/colorPrimary @color/colorPrimaryDark @color/colorPrimary true true @color/brownish_dark @color/lightblack @color/brownish_dark @color/white @color/lightblack
Ahsan
1

votes
0

answer
40

views

Facebook Authentication failed while Login?

While login app it's showing authenticaion Failed while pressing login button , the error is on Accessing token, while registration of callback its working fine but in handlefacebookAccessToken its showing authentication failed and App is live on developer.facebook console. onCreate() method: prote...
Ahsan
1

votes
1

answer
33

views

Iframe trigger function issue

using iframe inside Angular component, in iframe there is list of users, is there any way when i click on user it will trigger a function, that function will be inside component .ts file.
Ahsan Mustafa
0

votes
4

answer
31

views

How to convert a string factor into Date?

I'm working with the London crime dataset which contains dates in an integer format. I melted them and now they have become factors. For example, 'X200801'. I want to convert it into '1/1/2008'. I know as.Date is used to convert different types into date format but still, I am a bit confused with t...
Ahsan Hasan
1

votes
0

answer
38

views

No Gradients Provided

My problematic network takes a 10x10x1 image as input and returns 4x2x3 image as output. Like so: Input to the network The input image has two patches of size 2x2x1. Output of the network: My problematic network needs to extract output image of size 4x2x3. Like so: These above patches should be dire...
Ahsan
1

votes
0

answer
211

views

Fetch user data to firestore in flutter?

The data is Already in firestore if the user enters the correct data then the next page will go and if incorrect then will give the error. how can i do this on flutter ??? import 'package:flutter/material.dart'; import 'dart:async'; import 'package:cloud_firestore/cloud_firestore.dart'; void main()...
Ahsan Khan
1

votes
1

answer
28

views

ionic android not building for testing.

When I run the command ionic cordova run android --device on npm. I get the following error. But the thing is, ionic serve works totally fine without giving any errors or warnings. Also, i dont think there is any problem with the page 'transfercredit' as i was getting the same error before i created...
Ahsan
1

votes
0

answer
42

views

AdamOptimizer returns invalid datatype error

I have been struggling to fix this for the past couple of days, any help would be appreciated. I have a network that outputs numeric locations x,y coordinates in an image, hence the int32 datatype. The output is of size (2,2). Ground truth also has the locations as int32. Then I run, following two l...
Ahsan
1

votes
2

answer
38

views

Can't login in admin page after accessing my website pages

I created a superuser in my admin section. After that I can log in admin page. But Whenever I try accessing some myapp pages then and then I again want to access the admin page It shows this error'Please enter the correct username and password for a staff account. Note that both fields may be case-s...
Ahsan Shuvo
1

votes
0

answer
77

views

access spinnaker api using curl

I am trying to use api methods to manage spinnaker, creating pipelines if have to be specific. Reason for not using spin cli or other tools is plan to launch this automation at aws lambda. using google oauth and get methods are working fine when using browser. but when try to do same with curl get n...
Ahsan Naseem
1

votes
0

answer
347

views

Android GCM Push notifications not received on some latest OS (Oreo and Pie)

We're using GCM for push notification for our app with target release to 26. But on some devices with OS(Oreo and Pie) notifications are not received. We have implemented push notification channels as well.For mostly users it worked but some users face this issue. Details: Play services GCM versio...
ahsan hameed

View additional