How to make an API call in Angular 2?
◷
تاریخ انتشار:
1395/5/10
|
ساعت:
7:43
Vote count: 0 There are lots of resources out there already but I haven't been able to find one that works for one reason or another. Take a generic example: I want to get the response from http://swapi.co/api/people, which will be a list of people from Star Wars. import {Injectable } from '@angular...
MVVM: ViewModels for bidirectional model elements
◷
تاریخ انتشار:
1395/5/10
|
ساعت:
6:32
Vote count: 0 Assume I have following Model structure: class Team { public string Name {get;set; } public List<Player> players {get;set;} } class Player { public int Age {get;set;} public string Name {get;set;} public Team Team {get;set;} } I wish to create Viewmodels for this model. However, I also...
Accounts setUsername fail with user alaready exists
◷
تاریخ انتشار:
1395/5/10
|
ساعت:
6:32
Vote count: 0 This Meteor 1.4 server code usesaccounts-base@1.2.9accounts-password@1.2.12 is giving the following error: Exception in callback of async function: Error: Use ame already exists. [403] console.log(oldUse ame); //=> abc121111 console.log(newUse ame); //=> abc123333 Accounts.setUse ame(u...
rnpm command not found in terminal after "npm install rnpm -g"
◷
تاریخ انتشار:
1395/5/10
|
ساعت:
6:32
Vote count: 0 I am still new to coding and I ran into a weird problem. enter image description here I am trying to use the facebook SDK in my react native app and I was following the tutorials for installing pm. However, after I installed pm package the " pm" command is still unusable. Can someone p...
Array of column Letters to Array of Column Numbers not working
◷
تاریخ انتشار:
1395/5/10
|
ساعت:
4:28
Vote count: 0 This is more or less my first attempt at writing a Javascript function and I want to convert an array of column numbers to an array of column letters If I run testFunction I get undefined function testFunction() { var ui = SpreadsheetApp.getUi(); aryCLTCN(["A","C","D"]) ui.alert(aryCLT...
How to set item command event for button that dynamically added to listview?
◷
تاریخ انتشار:
1395/5/10
|
ساعت:
4:28
Vote count: 0 I'm new in c# I have a listview for my site that it's itemtemplate change by click on a menu item In new itemtemplate i added a button to listview and set commandname and command argument for this button and also set on itemcommand event and write code for delete item But when i click ...
pyspark with HCatalog table in Zeppelin
◷
تاریخ انتشار:
1395/5/10
|
ساعت:
4:28
Vote count: 0 I have created a table HCatalog table with partitions mapping to some zip files in S3. In Zeppelin, I created a paragraph using the %pyspark module with the following codes: Paragraph 1: %pyspark from pyspark.sql import HiveContext hc = HiveContext( sc ) f_req_2h = hc.table( "default.f...
How can I pass json data returned from a webservice into D3.json(...)?
◷
تاریخ انتشار:
1395/5/10
|
ساعت:
1:37
Vote count: 0 Thank you for your help so far! I was able to successfully build my webservice and NVD3.js stacked area chart. However, I have been struggling without any success in passing json data from my webservice into my NVD3.js graph. On my webform, I select two dates for an interval and click ...
disabled and selected is not working in customize select option menu (Javascript)
◷
تاریخ انتشار:
1395/5/10
|
ساعت:
1:37
Vote count: 0 i have customized select option menu by java script but there is a problem,this code is not working when option tag is disabled or selected as true. i want this solution by javas cript. <form class="wrapper" action="index.html"> <ul> <li> <div class="magneto-combobox"> <select class="c...
Font-family not working in php
◷
تاریخ انتشار:
1395/5/10
|
ساعت:
1:37
Vote count: 0 I'm trying to create a font preview but I can't get the font to change. When I run the code shown below, the output is my Text - Arial.ttf - 1 my Text - Batman.ttf - 1 my Text - Verdana.ttf - 1 So the font is being found. It just isn't working. If I replace the key/data with an actual ...
Text View not visible in FrameLayout in Xamarin Forms Application in Lollipop
◷
تاریخ انتشار:
1395/5/10
|
ساعت:
0:34
Vote count: 0 I am working on a Xamarin Android form application. I am using a FrameLayout with a button and text view such that the button is in the background and the textView should be in front of them. Now when I run my application on a Kitkat/Marshmallow version of android it works perfectly bu...
How to get the Average of a specific category via Python
◷
تاریخ انتشار:
1395/5/10
|
ساعت:
0:34
Vote count: 0 I was wondering how I could calculate the average of a specific category via Python? I have a csv file called demo.csv import pandas as pd import numpy as np #loading the data into data frame X = pd.read_csv('demo.csv') the two columns of interest are the "Category" and "Totals" column...
Canoot resolve symbol 'Database' in android
◷
تاریخ انتشار:
1395/5/10
|
ساعت:
0:34
Vote count: 0 I was importing a old project written on api-level 17(android 4.2), but this problem is not solving anyway. I have searched whole inte et but couldn't find this particular error. It is showing- "Ca ot resolve symbol 'Database'". Please help me out. Here is the code of the file AddFrien...
Meteor-react props reference passes all records to delete component instead of selected one
◷
تاریخ انتشار:
1395/5/9
|
ساعت:
23:34
Vote count: 0 I do try to add submit modal to handle user confirmation when he wants to delete a record.Current expirience:I did add componentDidMount to DeletePost and in console I do see that when page loads each record receive its own delete form with passes record data to it.But when the form op...
PHP Todays Date + 1Year
◷
تاریخ انتشار:
1395/5/9
|
ساعت:
23:34
Vote count: 0 I'm putting together a little subscriptions script in PHP which will calculate the expiration date based on todays date and time, but it's giving the result of 0000-00-00 00:00:00 (Datetime) Here is my code: $added = date("Y-m-d H:i:s"); $expiry = strtotime('+ 1 year', $added); How can...
Create subgroups into xcode 7 template
◷
تاریخ انتشار:
1395/5/9
|
ساعت:
23:34
Vote count: 0 I'm making a xcode template with swift files but I want to divide these files in groups: > Group (file template name) > --- Group One > ------ swiftFile > ------ swiftFile > ------ swiftFile > --- Group Two > ------ swiftFile > ------ swiftFile ¿Can you help me? Can you also create fol...
Save SQL queries and execute them later in Laravel 5.2?
◷
تاریخ انتشار:
1395/5/9
|
ساعت:
22:31
Vote count: 0 I have two types of users in my Laravel application and I'd like them to have different permissions. I want the admin to be able to create, retrieve, update and delete some objects stored on my database. And the common user to be able to only retrieve these objects. But, I'd like to ha...
Best Way to Learn About Electromagnetic Signals / RF Signals from a Data Communication perspective?
◷
تاریخ انتشار:
1395/5/9
|
ساعت:
22:31
Vote count: 0 I am lea ing about Data and Computer Communications from W. Stallings Book. But in terms of actual signals (Frequency, Wave Forms, Signal Strength, Signal Distortion, signal waveform, Attenuation, Distortions) topics, terminologies I am missing out some very fundamental concepts. And I...
what sort of data duplication does constraints on city_province_country relations cause and which Normalization step solves it?
◷
تاریخ انتشار:
1395/5/9
|
ساعت:
22:31
Vote count: 0 I'm thinking of implementing a billing address model where the user has to fill in city, province, and country as address. However I also have a hierarchical table structure of one to many relationships already available to me where a county has many provinces and a province has many c...
How to set the value of a macro using environment variable or command line in verilog?
◷
تاریخ انتشار:
1395/5/9
|
ساعت:
21:23
Vote count: 0 I want to define a macro during runtime in Verilog using environment variable. For example, I want to print some text to a file only when the DEBUG macro is set. `define DEBUG 0 ... if(DEBUG) $fwrite(file,"Debug message"); How can I override the definition of DEBUG to 1 when ru ing the...