Jamil

1

votes
3

answer
66

views

Angular - Push API response into an array

I have a situation where i need to push the response of an API called to an array. Previously, I hard coded the data like this. filterrole = [ { text: 'Supervisor', value: 'Supervisor' }, { text: 'Administrator', value: 'Administrator'}, { text: 'Maintainer', value: 'Maintainer' } ]; But now, i need...
ameruddin jamil
1

votes
3

answer
2.8k

views

MySQL blob: how to get just a subset of the stored data

I would like to use MYSQL as a storage system for a huge number of files. I would like to read/write just a portion of the data stored in a column (data is stored as bytes) so I don't have to load the entire file into the application (because it can be > than a GB). So, in brief, I would like to hav...
Umar Jamil
1

votes
0

answer
33

views

Issue connecting to play game using game center

I am facing the issue of Multiplayer Invitation endless Processing below is the detail. open func player(_ player: GKPlayer, didAccept inviteToAccept: GKInvite) { print('player is \(player) \nInvite is \(inviteToAccept)') EGC.guestPlayerIdentifier = player.playerID guard let gkmv = GKMatchmakerViewC...
Jamil
1

votes
0

answer
249

views

Deployment of a spring-boot app generates error “UnexpectedLiquibaseException: java.util.zip.ZipException: invalid block type”

So I am trying to deploy a Spring boot app (.jar file) that uses LiquiBase 3.5.3. I keep running into the following error : 27/03/18 12:52:19.538 [APP/20-0] ERR Caused by: liquibase.exception.UnexpectedLiquibaseException: java.util.zip.ZipException: invalid block type 27/03/18 12:52:19.538 [APP/2...
Naurin Jamil
1

votes
0

answer
386

views

online time series anomalies detection with apache spark

we have a data pipeline system apache kafka---->spark steaming----->spark mlib the data consumed is time series data (e.g. each record is in the form [key,value,timestamp]) we want to monitor time series anomalies for each key (like twitter anomalies https://anomaly.io/anomaly-detection-twitter-r/)...
jamil
1

votes
0

answer
27

views

How to distinguish actual inApp and sandbox inApp?

In the following code while verifying inApp receipt on Apple we receive a status code 21007 which indicates this is a receipt of a Sandbox inApp and then we test it with Sandbox URL. receipt_dict = json.loads(receipt) request_data = json.dumps({'receipt-data': receipt_dict['Payload']}) request = url...
Hamza Jamil
1

votes
0

answer
452

views

app:bundleReleaseJsandAssets stuck at this and always gives an error for every build

I have tried many solutions but it always give the same problem on every project. I am stuck at this for more then 3 days. The possible solutions that i have tried are as follow ./gradlew assembleRelease -x bundleReleaseJsAndAssets { 'presets': ['react-native'], 'ignore': ['index.ios.js','index.andr...
1

votes
1

answer
111

views

while debugging python in visual studio auto window don't show anything

while debugging python my auto window is not showing anyvalue as shown as the following screenshot: I think the value of x, y and sum should be appear in the auto window
1

votes
0

answer
29

views

Django 2 How to use forign keys of one model in another model

I am new to django and I am building a cricket club management website in django. There are teams, players, grounds and match apps. In team apps. Players Model: class Players(models.Model): player_full_name = models.CharField(max_length=40) player_email = models.EmailField(unique=True) player_team...
Jamil Ahmed
1

votes
1

answer
281

views

ValueError: operands could not be broadcast together (not being able to print the line charts)

I have tried the following (mydata/mydata.iloc[0]*100).plot(figsize = (50,5)); plt.show() But got the error ValueError: operands could not be broadcast together (1004, ) (4,)
Hasan Jamil
1

votes
2

answer
42

views

Angular - where to logout

I know there are lots of similar questions, but I didn't find what I need. In my application I need to store Users login\logout time. If user logouts manually it's fine, however he can simply close the window or browser. I found out that there is awindow.onClose() Function in Angular, but I don't kn...
Jamil
1

votes
0

answer
156

views

consume -kafka processor is not working on nifi UI?

​Got stuck into this simple problem for last two days nothing worked for me. The case is quite simple.Here is the case ' On nifi UI consume-kafka shows nothing although on a terminal kafka-consumer-console showing successful consumption of data ' . please do suggest me the solution.Thanks in advan...
M.WAQAS JAMIL
1

votes
0

answer
134

views

Nifi processors(publish and consume kafka) are not communicating with kafka on Ambari platform

I want to establish a communication channel between nifi and kafka. Four processors in nifi(GenerateFlowFile->publishKafka) and (ConsumeKafka->logAttribute). PublishKafka and ConsumeKafka are not communicating with Apache kafka(pictures are attached along with their errors). Apache kafka security=PL...
M.WAQAS JAMIL
1

votes
0

answer
98

views

Configuring the WSO2 IS to external LDAP

I've been following this documentation on how to connect to external LDAP server from WSO2 Identity Server. Now I am stuck at running the product. Upon running the WSO2 IS, I got an error saying that the admin user is not exist in PRIMARY. If I am using the existing configuration, everything went we...
ameruddin jamil
1

votes
1

answer
57

views

html dynamic name with php

I try to make dynamic add/remove table with jquery. The problem of how I can pass value from the table to PHP because the HTML name dynamically generated by jquery. I know it can solve by making php loop but I don't know what kind of loop. Sorry for my messy code cause I'm still new in this kind. ht...
Hafiz Jamil
1

votes
2

answer
48

views

Git clone automation error Permission denied (publickey)

I want to automate git clone by using shell script. I use git clone -b branch '$repository' but it gives error : Permission denied (publickey). fatal: Could not read from remote repository. but i have already added the ssh key to my account and i can clone manually using the same command. What can...
Jamil
1

votes
1

answer
45

views

My application require login for every ActionResult method, even when user is logged in? [closed]

I am using ASP.NET Identity authentication, I have added some more columns in AspNetUsers table. Application is working fine on local but on live site, when a user sign in and access any ActionResult method it shows error 401 i.e authentication. How can it be handled?
Jamil Moughal
1

votes
1

answer
74

views

ef core trouble with creating schemas

I need to create schemas in the runtime and copy existing tables there. DbContext: public class TenantContext : DbContext { public TenantContext(string schemaName) { this.SchemaName = schemaName; } public string SchemaName { get; set; } protected override void OnConfiguring(DbContextOptionsBuilder o...
Jamil
1

votes
1

answer
43

views

How to pass multiple auth ids e.g password and email, to the user_create method of the “webApp2_extras” user model?

def create_user(cls, auth_id, unique_properties=None, **user_values): '''Creates a new user. :param auth_id: A string that is unique to the user. Users may have multiple auth ids. Example auth ids: - own:username - own:[email protected] - google:username - yahoo:username Please help explain what I a...
Haris Jamil
1

votes
1

answer
20

views

How did they come up with the equation for calculating module of 2 numbers “a%b = a-b*(a//b)”

if we try different example you can see it satisfy the equation print(13 % -4) print(-10 % 9) the question is where did they get the equation a%b = b*(a//b)-a from
jamil
1

votes
4

answer
2.5k

views

Gridview display for lookup fields

I have a SPGridView that displays items from a list (using spboundfield). the list has some lookupfields. and multi-lookup fileds in my SPGridview the filter values of a lookupfield appear in this format: {id};#{Value} what are my options now?
Jamil Ferdaus
1

votes
1

answer
246

views

How to Hide Toolbar

Creating a ListViewWebPart. I am able to set custom view and everything else. I have a need to set Toolbar to None. How do I do that? (Using C# console app)
Jamil Ferdaus
1

votes
4

answer
610

views

oracle PL/SQL: sort rows

I run a query with a order by but my column is not the order a want to be in I wanted it like this: PRODUCT PROD_1 PROD_2 PROD_3 PROD_4 PROD_5 PROD_6 PROD_7 PROD_8 PROD_9 PROD_10 but it gives me this PRODUCT PROD_1 PROD_10 PROD_2 PROD_3 PROD_4 PROD_5 PROD_6 PROD_7 PROD_8 PROD_9
Jamil Smith
1

votes
2

answer
312

views

How to Customize SubView as PopuPView in Ipad?

I am working on Ipad application.in this application i use Subview over UISlider as above my Screen Shot show,with the value changed my Subview also get movement.my UISilder is nearly whole screen. i want to customize this Subview as Popupview.as my below Screen shot show. I know how to use Popupvi...
jamil
1

votes
1

answer
1.1k

views

EXTJS 4.1 , listeners for events on grid row body tpl

currently i am facing a problem in extjs, which is i have a grid with the feature rowbody. in this rowbody feature i render a tpl. this tpl is as follow: . . . '' + {name}: {number}' + ' . . . when a user open the rowbody there is aother data and a prt of it is that what i am showing, there will...
jamil isayyed
1

votes
1

answer
511

views

Chrome re-downloading the same video after creating and destroy the <video> tag

I am creating a video library. Whenever a user clicks on a thumbnail, a 'video' element is dynamically appended to the page to let the user watch the video (I already tried to show/hide videos, but chrome loaded the page slowly, so I opted for the dynamic method). The problem is that if the user clo...
Umar Jamil
1

votes
1

answer
5.8k

views

change mysql output column width

Is there a way to change mysql column output width like in sql: SET LINESIZE 50000; I am not looking for ending the query with \G because I want to keep it in column format. I have seen a few answers using pager less but that just cuts off anything that goes past my terminal size
Jamil Seaidoun
1

votes
1

answer
1.2k

views

LibGDX Box2D incorrect sprite position of moving body

I'm trying to make a 2D car side scrolling game. I'm using wheel joints to move the car. Here is the screenshot when car is not moving. Screenshot of car when not moving And when the car is moving. You can see sprites are not in correct position. Screenshot when the car is moving Here is the constru...
Danish Jamil
1

votes
3

answer
904

views

regex that matches positive integers and positive float values only

for my project I need such a regular expression that matches price input that accepts: (25.99, 15.5, 30.00, 0.5 or 50) but does not accept: (0, 0.00, -25.99, -50, $32 or €32). I have found some regular expressions but none of them meet my requirement. following is my current regex but its not sui...
Danish Jamil
1

votes
2

answer
846

views

Onsen UI Toolbar title and icons are not vertically aligned in physical device

I'm using onsen ui to build a phonegap mobile app. Toolbar line-height is set to the size of toolbar so that the inner elements are vertically centered and text-align to center. It is working perfectly fine in browser but not on a physical device. CSS .navigation-bar { font-family: 'Helvetica Neue',...
Danish Jamil
1

votes
1

answer
56

views

Displaying data from json file

I'm trying to get content from a json file, but until now I get nothing. I have the status connection == 200 and I can see the content in the chrome console but I get nothing when I try to display the data to html table, but when I use the same jquery code with api from another service like import...
jamil
1

votes
1

answer
192

views

Onsen UI menu.SetMainPage is working but giving error which is causing strange behaviour in Phonegap Developer App

Here is the error that function is giving. After this error click events stopped working. In fact I had to force exit the app. But it is working very fine in Google Chrome desktop with this error. TypeError: undefined is not a function at Class.module.factory.Class.extend._destroyEventListeners (ons...
Danish Jamil
1

votes
1

answer
217

views

Getting error in Phonegap developer but working fine in browser Onsen Ui Cordova app

I have a list of objects in a page.. Clicking on the list item pushes a new page with some parameters passed from parent page. Navigator's var name is navi. $scope.navi.pushPage('somepage.html', {listItem: item}); and navi.pushPage('somepage.html', {listItem: item}); is working fine in browser. But...
Danish Jamil
1

votes
1

answer
253

views

Phonegap Onsen UI app shows code before starting

Phonegap Onsen UI App is showing code before starting. Before it properly initializes it shows some of AngularJS and HTML code for some time. I don't understand the nature of the problem. I thought may be Splashscreen is the solution of the problem. I followed phonegap docs to add splashscreen and s...
Danish Jamil
1

votes
1

answer
2.4k

views

Facebook SDK: AccessToken.CurrentAccessToken always null, even after logging in

I am using the following code (on Xamarin) to log in using the latest Facebook SDK (I am also using Parse to manage my backend): partial void LoginWithFacebook (UIButton sender) { LoginManager login = new LoginManager(); login.LogInWithReadPermissionsAsync(kPermissions).ContinueWith(t => { if (t.IsF...
Umar Jamil
1

votes
1

answer
240

views

iText encrypting a digitally signed PDF

I did an encryption/decryption of a PDF document using the PdfWriter setEncryption. Everything is working fine and the decryption is OK. When I did the same for a digitally signed PDF document I have the digital information corrupted with the message (SigDict/Contents illegal data) Is it possible to...
Jamil Nour
1

votes
1

answer
591

views

ONSEN-UI Adding more than three buttons on the toolbar

I want to add multiple buttons on the toolbar when I add more than two buttons on the toolbar the buttons don't appear. I want to add buttons on the toolbar like in this image.
jamil
1

votes
2

answer
1.5k

views

Angularjs how can I reload the content

I have this code that loads the content when the page load, Now I want to know how to reload the content by clicking the button. Can you show me how to do it with example please? Javascript code: .controller('InterNewsCtrl', function($scope, NewsService) { $scope.events = []; $scope.getData = func...
jamil
1

votes
2

answer
88

views

Why is the control's in panel gets overwrite everytime?

Everytime the button's click event get fired, the label (or any other control) in panel gets overwrite by the new one! Here is the button event. protected void Button3_Click(object sender, EventArgs e) { Label lbl = new Label(); lbl.ID = 'name'; lbl.Text = Profession.SelectedItem.ToString(); Panel1....
Jamil
1

votes
2

answer
711

views

Routing multiple pages in ASP .net c#

I am trying to route 2 pages but its only routing the first registered one only. Here is the code: static void RegisterRoutes(RouteCollection routes) { routes.MapPageRoute('DynamicCity', '{dCity}.aspx', '~/DynamicCity.aspx'); routes.MapPageRoute('DynamicPage', '{Description}.aspx', '~/DynamicPage.as...
Jamil

View additional