Relative layout for Windows Phone Application using XAML C#
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
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
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
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
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)
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
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
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
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 ...
Mosquitto broker not functioning with all configurations
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...
app force closing android.view.inflate error
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
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...
ng2-table angular2 rc4 HTML tags
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/...
Referencing the same variable across two different classes
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...