android -application is not running on android 6
Vote count: 0 I've a problem with installing my application on android 6 . In my gradle , I've these codes : android { compileSdkVersion 23 buildToolsVersion "23.0.1" defaultConfig { applicationId "persiandesigners.jahad.ir.book_jahad" minSdkVersion 8 targetSdkVersion 23 versionCode 1 versionName "1...
future spec custom elements
Vote count: 0 I want to make a desktop app with electronjs. For this I wanted to use custom elements.(not Polymer) But here is a note that the spec will be rewritten: https://developer.mozilla.org/en-US/docs/Web/Web_Components/Custom_Elements/Custom_Elements_with_Classes Spec for Custom Elements wil...
Sort circles into rows and columns in Java
Vote count: -1 I am developing an android app with opencv and I have convert c++ code to java about finded hough circles in java. I find c++ code and convert limited. this lines find and fill lists : vector<vector<Vec3f> > bubble; vector<pair<double,int> > row; for(int i=0;i<circles.size();i++){ boo...
Deleting item from cart session. Laravel
Vote count: 0 When I add products to my cart through session I want to be able to delete them from my cart one by one. How I'm supposed to do that ? This is my CartController public function add(Request $request, $id) { $product_from_db = Product::find($id); $product = []; $product['id'] = $id; $pro...
Can't we run main method inside enum?
Vote count: 0 I had seen a video where, main() can be run with in an enum. I am trying to do the same but it's not working. Here is my code public enum EnumMain { ABC, XYZ; public static void main(String[] args) { System.out.print("MIAN"); } } Output (The code compiles fine)Error: Could not find or ...
error deploying dns in kubernetes
Vote count: 0 when I run sudo ./deployAddons.sh under kube etes/cluster/ubuntu I get the following: replicationcontroller "kube-dns-v14" created The Service "kube-dns" is invalid. spec.clusterIP: Invalid value: "192.168.3.10": provided IP is not in the valid range Where to set this?(which file) and ...
trouble connecting with thingspeak
Vote count: 0 Hi I am having trouble co ecting a simple temp,humidity,dew point logger to Thingspeak, this code was working (I thought it was anyway) put this project down for a couple of weeks now having problems. when I run it I get the following Traceback (most recent call last): File "DHH-test5....
How to specify alias on YamlMember in YamlDotNet?
Vote count: 0 I need to deserialize the following YAML to my custom type. YamlAlias attribute seems to be obsolete, so I replaced it with YamlMember. It fails on deserializing the following YAML with the below exception: host: properties: mem_size: 2048 MB YamlDotNet.Core.YamlException : (Line: 21, ...
json get value of child in a dynamic parent
Vote count: 0 Using PHP. How would I get clanAbbrev from a dynamic parent where it also contains "team" : "2"? I don't need to get it from every player, I just need to search it until I find the first player on Team 2. All players on team 2 are in the same "clan" and that is all I am trying to do is...
C: declare type in
Vote count: -2 I have a code that uses complex number. When I declare variable,"x", which is a complex number with size of double, should I declare as: complex double x; or double complex x; ? does it make any difference? Have anyone has experience on compilers not understanding either of them? aske...
Umbraco logged in user id
Vote count: 0 I'd like to show the user id of the currently logged in user : I can get their name // logged in? var wrapper = new HttpContextWrapper(HttpContext.Current); var ticket = wrapper.GetUmbracoAuthTicket(); isLoggedIn = 0; sessionId = ""; if (ticket!=null){ if(ticket.GetRemainingAuthSeconds...
How do I create a text link with a drop down menu in Bootstrap?
Vote count: 0 I tried, <div class = "btn-group" style="display:inline;"> <a class="dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"> <span class="fa fa-star-o" aria-hidden="true"></span> Rate </a> <ul class="dropdown-menu"> <li><a href="#">Action</a></li> </ul> </di...
Error in sending post request in release mode C#
Vote count: 0 I used Microsoft.aspNet.WebApi.Client to send request to server in my project (output is dll). In debug mode all methods (Get, Post) work well. But if i run client in release mode I've got response 500 inte al error.!! Here is code: HttpResponseMessage response = client.PostAsJsonAsync...
Hadoop: java.net.ConnectException: Connection refused
Vote count: 0 Hello I have been trying to follow this tutorial: http://www.tutorialspoint.com/apache_flume/fetching_twitter_data.htm for a very long time now and I am absolutely stuck at Step 3: Create a Directory in HDFS. I have ran start-dfs.sh and start-ya .sh and both seem to have worked correct...