Pass string parameter to callback function in C++11
Vote count: 1 Suppose I have a callback function taking a string parameter. This callback function is invoked with a string object that is no longer needed at call site, and most likely this function will need to do some string processing. What would you suggest to use for the parameter - lvalue ref...
Should Java interface only contain getters?
Vote count: 2 I have some general questions regarding interface usage: What is the advantages in creating interface for each object class ? Should interface only contains 'getter' methods? Why not also the setter? Why should I create for each object class an interface? Will it served me in the JUnit...
Streamming Azure Media Services on Sharepoint 2013
Vote count: 0 I'm doing a proof of concept. The goal is to be able to stream videos from AMS on Sharepoint 2013. I've been working with this samples, with no luck. On the sharepoint side, I've tried using all three code options that the shared link states (by inserting html code): Shared code Embed ...
Trying to make a canvas "jump" - javascript
Vote count: 0 I'm trying to make a canvas jump. By jumping I mean moving up for a kinda sort time and then going down to the floor again. Something is obviously wrong because nothing happen when I press space. Can't think of what's wrong with my code, any ideas? var spaceKey = false; var player = { ...
how to set an input with html code
Vote count: 0 I cant understand why this is not working. I have an input in my site wich is filled by an ajax request. I would like to fill it with htmlCode, but it's empty when tried. <form name="form" id="form" method="post" action="secondpage" /> <input type="hidden" name="htmlCode" id="htmlCode"...
com.google.firebase.database.DatabaseException: No properties to serialize found on class com.thegads.uliza.model.User
Vote count: 0 05-25 12:29:53.536 4506-4506/? E/AndroidRuntime: FATAL EXCEPTION: main Process: com.thegads.uliza, PID: 4506 java.lang.RuntimeException: Unable to start activity ComponentInfo{com.thegads.uliza/com.thegads.uliza.MainActivity}: com.google.firebase.database.DatabaseException: No properti...
UWP Win 10 Tinder swipe card inside Pivot?
Vote count: 0 Firstly here's the link to my minimal version project.I am trying to create a tinder swipe card kind of effect inside my Pivot Page. After referring Lightstone Carousel Was able to create one in C# and XAML which works inside a Grid.Now my problem is that custom control should come ins...
Java: why should static interface methods have a body?
Vote count: 0 I need to have a bunch of classes with initialize static method instead of static {...} block where some initialization tasks are run. In Java 8 it is possible to define static interface method but I don't need it to have a body, I just need to know the class implements this static met...
How does @withViewPort decorator work in React?
Vote count: 0 I was reading this decorators and fount the @withViewPort usage as : import React from 'react'; import withViewport from 'react-decorators/withViewport'; @withViewport class MyComponent { render() { let { width, height } = this.props.viewport; retu <div>Viewport: {width + 'x' + height}...
Displaying a pattern of colors with setTimeout
Vote count: 0 I'm trying to build a simon says game as a lea ing project (I've coding for just 3-4 months) and I can't seem to change the class of the items so I display the colors that I generate. I can guess it's because setTimeout inside of the for loops just activate the first and the second ite...