Python Kivy, Unable to add Label to screen with Python
Vote count: 0 I am trying to add a simple label to a screen using Python and Kivy. I know how to do it using the Builder.load_string() method, but I wish to do it using the Kivy library through Python. When I run the code below I get a blank purple screen, but when I put the label into the Builder.l...
Invalid Null Pointer in user-defined Class?
Vote count: 0 everyone. This is my first time using classes in C++. The instructions in the assignment I'm working on seemed a little ambiguous to me, so I'm including them in case someone more experienced thinks I'm not following them properly in my code. Anyway, I wrote my program, and it works an...
cant display images in cakephp layout
Vote count: 0 I am trying to get the images to display in my cakephp website. My task is simple to get the website labelled below 1) which is a cakephp website to look like the website labelled 2) which is a freeware website. The layout of website 1) has the cakephp code which just calls in a view f...
ionic2 tabs overflow on an iphone 5
Vote count: 0 When I run 5 tabs on an ionic 2 app in an iphone 5s emulator, it has wide margins between the icons and it cuts off the first and last icon off screen. It looks fine on the browser set to a smaller screen width so it looks like it should fit. It also looks fine on an iphone 6 emulator....
Tic Tac Toe One Player
Vote count: 0 I am doing and Tic Tac Toe game following some tutorials now a would like to set Player 2 to be the computer. Could anyone help me please? Thank you in advance and happy coding :)! here is my code: import UIKit class ViewController: UIViewController { var activePlayer = 1 // 1 = nought...
UIView with gradient layer not conforming to constraints set
Vote count: 0 In viewDidLoad, I instantiate a UIView and add a gradient layer to that UIView. This works well on iPhone, but on iPad, UIView does not stretch out to fill the entire screen. Please note the following screenshot for iPad sim. iPad simulator screenshot I have attempted adding constraint...
How to write wav sound file from a list of samples?
Vote count: 0 I've got a source code on the inte et which do extract the sample values from a WAV file to a text file, like this: 1.17667 1.23074 3.07474 -0.00396729 -0.00393677 -0.00558472 -0.0159912 -0.0299072 -0.128143 -0.0204773 -0.206482 -0.252014 -0.0100098 -0.0585938 -0.317963 -0.253143 -0.30...
React Native Fullscreen
Vote count: 0 I am trying to do a simple react native application. I need to run in fullscreen mode. Is there an option to do this? I need remove/hidden the bottom buttons. I am trying in Android devices. |---------------| | | | screen | | | ----------------- | <| O [ ] | <--- I need remove this but...
How to import html in Meteor 1.3 using Coffeescript?
Vote count: 0 I have 2 files in the main dir of my Meteor project. 1. test.html <template name="test"> Test </template> 2. test.coffee { Template } = require 'meteor/templating' #require './test.html' Template.test.onRendered () -> console.log 'test rendered' When the comment is active a get the err...
my app not running "unfortunately(appname) has stopped"
Vote count: -1 im a dev but my eng not very good i dev an app. when i ru ig this in eml my app install successfully. but when i run it i have an errore "unfortunately(appname) has stopped" enter image description here CONSOL: com.example.cabbookinghome.SplashActivity on device emulator-5554 [2016-05...
Adding a UIView based on a template in swift?
Vote count: 0 I've used UITableView before and like the way that the user can add a practically unlimited number of cells by entering information and the program uses a template. I'm wondering if there is a way to do this, but instead of using a table, using regular views or even buttons. For exampl...
List of pointers in class. Expression must have pointer type
Vote count: -1 , class Node { public: string m_label; list<Node *> m_adjacent; }; int main() { Node tab[5]; tab[0].m_label = "AWK"; tab[1].m_label = "ASCII"; tab[2].m_label = "Matery"; tab[3].m_label = "2016"; tab[4].m_label = "actor"; map<string, Node> map; map[tab[0].m_label] = tab[0]; map[tab[1]....
Can not save LDA model in spark?
Vote count: 0 I am trying to run LDA. ldaModel = (DistributedLDAModel) new LDA().setK(numTopics).setMaxIterations(1).run(corpus); till now every thing is working fine however when i try to save the model after 20 minutes i get org.apache.spark.rpc.RpcTimeoutException: Futures timed out after [10 sec...
abstract class, virtual methods, inheritance, c++
Vote count: 0 I have a virtual class with pure virtual function virtual bool fun(const double &A, const double &r, int &x) = 0; I would also like to add following function into base class, but not as pure virtual fun, since no every child class has to need this method virtual bool fun(const double &...
new XMLHttpRequest().responseType empty
Vote count: 0 Why is responseType empty? JavaScript var xhr = new XMLHttpRequest(); xhr.open(method,url,true); xhr.onreadystatechange = function() { if (xhr.readyState=='4') { if (xhr.status==200) { console.log(xhr.responseType);//[empty] } } } PHP header('Content-Type: application/json'); //[Valida...
0_ os_lock_corruption_abort in NSURLProtocol
Vote count: 0 I've built a custom NSURLProtocol which is used by a WebView whilst it browses. But at seemingly random times (between a 20 seconds or a few minutes into browsing) I am getting an EXC_BREAKPOINT and the app stops ru ing in my NSURLProtocol. The relevant part of my NSURLProtocol is belo...
How to make a case insensative list search in C#?
Vote count: 0 I've been trying to make a list search method where I could present the items in the list unaffected and after a week going through every search method I could find I realizes that I'm stuck. The list (posts) stores arrays if that makes any change, this is the search function I got thi...