Relative layout for Windows Phone Application using XAML C#
◷
تاریخ انتشار:
1395/5/18
|
ساعت:
19:52
Vote count: 0 I am creating Windows phone app and in this app i need to deal with webview control and custom keyboards. I need to use my custom views as keyboard where there is system keyboard is used which is ok but the problem is how do i achieve the Relative layout. Currently in app i have a grid...
Spark cartesian product
◷
تاریخ انتشار:
1395/5/18
|
ساعت:
18:46
Vote count: 0 I have to compare coordinates in order to get the distance. Therefor i load the data with sc.textFile() and make a cartesian product. There are about 2.000.000 lines in the textfile thus 2.000.000 x 2.000.000 to be compared coordinates. I tested the code with about 2.000 coordinates an...
How to find point between 2 incomplete lines
◷
تاریخ انتشار:
1395/5/18
|
ساعت:
18:46
Vote count: -1 How to find all the lines segments from a image [p0,p1] ... The main problem is that some lines may-be not be completely co ected as shown. The output should be line segments from one point to another like : p1 = (160,0), p2 = (140,65) asked 43 secs agoiratzhash Let's block ads! (Why?...
matplotlib histogram splitting up specified bins
◷
تاریخ انتشار:
1395/5/18
|
ساعت:
18:46
Vote count: 0 I'm having an issue with creating a histogram using matplotlib. I specify a series of bins, but the plot retu s with the bins split up and showing lots of bars. The code I'm using is: plt.hist(Ri, bins = [-50,-25,0,25,50,75,100,125,150,175,200],rwidth=1) This then gives me this: Histog...
General Runtime Error
◷
تاریخ انتشار:
1395/5/18
|
ساعت:
17:45
Vote count: 0 We have a digital asset management (DAM) server that we host for a client. We had a little difficulty in installing the DAM to begin with as we have to employ an Apache VirtualHost in order to pass through 443 requests to 80 and then 8080. for the most part it works fine except for whe...
concrete5 Pro Events List custom template (PHP)
◷
تاریخ انتشار:
1395/5/18
|
ساعت:
17:45
Vote count: 0 My question is probably more of a PHP question than a concrete5 or Pro Events question so please bare with. I'm using the Pro Events add-on. I've added an Event List block to the page and with the help of someone, created a custom display template. In short, this allows me to lists mov...
Validate custom file type using data annotation validator
◷
تاریخ انتشار:
1395/5/18
|
ساعت:
17:45
Vote count: 0 I have a simple form that will upload multiple files. I have created a custom file type in order to store other relevant data in the upload and i am trying to validate the files uploaded but the model fails to bind from my custom file type so the model.isvalid always retu s false So i ...
Read and preset a combobox of color properties
◷
تاریخ انتشار:
1395/5/18
|
ساعت:
16:42
Vote count: 0 From a tutorial I have the following combobox: <ComboBox Name="comboBox_wa Color" Margin="5,0,5,0" SelectionChanged="comboBox_wa Color_SelectionChanged"> <ComboBox.ItemTemplate> <DataTemplate> <StackPanel Orientation="Horizontal"> <Rectangle Fill="{Binding Name}" Width="12" Height="12"...
How we can pass the graph type dynamically
◷
تاریخ انتشار:
1395/5/18
|
ساعت:
16:42
Vote count: 0 I am trying to pass the graph type dynamically by selecting the options from the select list. Below is my code : <html> <head> </head> <body> <select id="ChartType" name="ChartType" onchange="drawChart()"> <option value = "0">Select Chart Type <option value="PieChart">PieChart <option ...
How to generate a sequence in R, that starts with 01 and ends with 99?
◷
تاریخ انتشار:
1395/5/18
|
ساعت:
16:42
Vote count: 0 I want: 01 02 03 ... 10, 11, 12 ... 97, 98, 99 I have tried using following: seq("01":"19") # Doesn't help paste0("0",seq("01":"19")) # Doesn't help Please suggest something! asked 9 secs agoAbhijeet Arora Let's block ads! (Why?)
Mosquitto broker not functioning with all configurations
◷
تاریخ انتشار:
1395/5/18
|
ساعت:
15:42
Vote count: 0 I did the following changes in mosquitto.conf password_file "etcmosquittopasswordfile.txt". allow_anonymous false. But still when i send the command mosquitto_pub -u admin -P (wrong password) -m "1" -t "topic" and mosquitto_sub -u admin -t "topic" I am still receiving, at the broker th...
PHP - croping image - 20px from top and bottom
◷
تاریخ انتشار:
1395/5/18
|
ساعت:
15:42
Vote count: 0 I need to crop 20px from top and 20px from bottom. Is it possible in PHP with Imagick? asked 18 secs agoTadeáš Jílek Let's block ads! (Why?)
How to index data using edge ngram in elasticsearch which include spaces also?
◷
تاریخ انتشار:
1395/5/18
|
ساعت:
15:42
Vote count: 0 I am using the edge ngram analyzer. While checking the analyze API for the field I am getting the below result. For example for the query "galaxy j7", it is analyzed as. ["g","ga","gal","gala","galax","galaxy","j","j7"] I want data to be analyzed as below. ["g","ga","gal","gala","galax...
app force closing android.view.inflate error
◷
تاریخ انتشار:
1395/5/18
|
ساعت:
14:24
Vote count: -2 Process: com.example.welkinfort.mymovie, PID: 7337 java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.welkinfort.mymovie/com.example.welkinfort.mymovie.HomeScreen}: android.view.InflateException: Binary XML file line #17: Error inflating class android.suppo...
Convert iterable to RDD
◷
تاریخ انتشار:
1395/5/18
|
ساعت:
14:24
Vote count: 0 I want to save from spark-streaming to couple of elastic-search indices. I create pairs of <key(index), value>, when I execute groupByKey the result is Tuple of <key(index), Iterable<value>> but in order to save to elasticsearch using elasticsearch-spark plugin I need the values as Jav...
Spotipy auth workflow results in error=state_mismatch in browser
◷
تاریخ انتشار:
1395/5/18
|
ساعت:
14:24
Vote count: 0 I am attempting to run through the spotify authentication workflow via spotipy and it's prompt_for_user_token utility. I am following the directions here, the official spotify web api tutorial, verbatim from what I can tell. And using the examples from Paul Lamere's spotipy project her...
ng2-table angular2 rc4 HTML tags
◷
تاریخ انتشار:
1395/5/18
|
ساعت:
13:12
Vote count: 0 I have a angular2 component which is generating data to populate my ng2-table, but I ca ot seem to put HTML tags into a cell. Instead the cell renders as such: (Don't have enough reputation to post as an image) http://i.imgur.com/9D2zaJs.png https://github.com/valor-software/ng2-table/...
PHP: How to print out "00:00:00" on start and 23:59:59 in the end?
◷
تاریخ انتشار:
1395/5/18
|
ساعت:
13:12
Vote count: 0 enter image description here there is discrepancy on time that we are getting on it. we need to get starting time that is "00:00:00" and ending time that is "23:59:59". for this problem the total stop time is 15:48:56 but were getting only is 07:15:26. (00:00:00 to 05:06:18) and (20:32...
Referencing the same variable across two different classes
◷
تاریخ انتشار:
1395/5/18
|
ساعت:
13:12
Vote count: 0 <?php class Foo{ public $basket; public function __construct() { $this->basket = 1; } public function getBasket(){ retu $this->basket; } } class Bar{ public function __construct(&$basket) { $basket++; } } $newFoo = new Foo(); $newBar = new Bar($newFoo->getBasket()); echo $newFoo->getBa...
Is the expression that allocates memory rvalue expression or lvalue expression?
◷
تاریخ انتشار:
1395/5/18
|
ساعت:
12:10
Vote count: 0 Let say I have the following code int main(){ new int; // Is this expression l-value or r-value?? retu 0; } I know that lvalues are persistent object (since it has specific place in memory from where we can access latter even after the expression ends) and rvalues are temporary object ...