Pass string parameter to callback function in C++11
◷
تاریخ انتشار: 1395/3/5 | ساعت: 23:40
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?
◷
تاریخ انتشار: 1395/3/5 | ساعت: 23:40
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...
How to extend only the amount of block time in csf port flood option?
◷
تاریخ انتشار: 1395/3/5 | ساعت: 23:40
Vote count: 0 I have this line of configuration in my csf: PORTFLOOD = "80;tcp;20;100" I want to block users who make more than 20 co ections on port 80 in 100 seconds for 5000 seconds not 100 seconds. How can I do that? asked 9 mins agoIman Mohamadi Let's block ads! (Why?)
Streamming Azure Media Services on Sharepoint 2013
◷
تاریخ انتشار: 1395/3/5 | ساعت: 22:38
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
◷
تاریخ انتشار: 1395/3/5 | ساعت: 22:38
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 = { ...
For Site to be ADA compliant does it need to have H1 tag or the highest tag can be H3?
◷
تاریخ انتشار: 1395/3/5 | ساعت: 22:38
Vote count: 0 I have a project to make site Ada compliant however, i can't find details on this specific question. Do i need H1 tag to be compliant. asked 11 mins agoMuhammad Umer Let's block ads! (Why?)
Parse Json in Logic App from Stream Analytics -> Service Hub -> Logic Apps
◷
تاریخ انتشار: 1395/3/5 | ساعت: 18:11
Vote count: 0 I'm trying to build a logic app that inserts data into a Sql database. The data is coming from s Stream Analytics job, outputting it on a Service Bus topic, consumed in Logic Apps in Service Bus trigger. To populate the properties of the row inserted (lets say it only has one column 'N...
Tasks not executed by the Compute Nodes in Ubuntu CfnCluster image
◷
تاریخ انتشار: 1395/3/5 | ساعت: 18:11
Vote count: 0 I'm trying to use CfnCluster 1.2.1 for GPU computing and I'm using a custom AMI based on the Ubuntu 14.04 CfnCluster AMI. Everything is created correctly in the CloudFormation console, although when I submit a new test task to Oracle Grid Engine using qsub from the Master Server, it ne...
how to set an input with html code
◷
تاریخ انتشار: 1395/3/5 | ساعت: 18:11
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"...
Is there any difference between noexcept and empty throw specifiaction for an lambda expression?
◷
تاریخ انتشار: 1395/3/5 | ساعت: 17:00
Vote count: 1 Given an example: double values[] {2.5, -3.5, 4.5, -5.5, 6.5, -7.5}; std::vector<double> squares(std::end(values) - std::begin(values)); std::transform(std::begin(values), std::end(values), std::begin(values), std::begin(squares), [](double x1, double x2) throw() { retu x1 * x2; }); 1)...
com.google.firebase.database.DatabaseException: No properties to serialize found on class com.thegads.uliza.model.User
◷
تاریخ انتشار: 1395/3/5 | ساعت: 17:00
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...
Crash during deserialision json to protocol buffers in Objective C
◷
تاریخ انتشار: 1395/3/5 | ساعت: 17:00
Vote count: 0 This is the code I am using to get a json object NSString *requestString = @"http://url/jou al/"; NSData *data = [NSData dataWithContentsOfURL:[NSURL URLWithString:requestString]]; NSError* error; NSArray *jsonDataArray = [[NSArray alloc] initWithArray:[NSJSONSerialization JSONObjectWi...
UWP Win 10 Tinder swipe card inside Pivot?
◷
تاریخ انتشار: 1395/3/5 | ساعت: 15:25
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?
◷
تاریخ انتشار: 1395/3/5 | ساعت: 15:25
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...
Should I avoid hitting the database on tests as a shortcut to fill object with valid data?
◷
تاریخ انتشار: 1395/3/5 | ساعت: 15:25
Vote count: 0 I have a test suite which works against a dedicated copy of the real database. In genereal I try to avoid accessing the DB when doing unit testing especially because unit tests should run fast (I don't care so much if it tests more than one class/method because my tests are more of fun...
Share image and text message with Wechat not working in objective c
◷
تاریخ انتشار: 1395/3/5 | ساعت: 14:17
Vote count: 0 Hi I am trying to share image, URL and description with wechat user using UIActivityController but it fails to share image. I tried with following code: UIActivityViewController *activityView = [[UIActivityViewController alloc] initWithActivityItems:@[@"TestMessage", [UIImage imageName...
How does @withViewPort decorator work in React?
◷
تاریخ انتشار: 1395/3/5 | ساعت: 14:17
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}...
How to use stickytableheader for horizontal appending columns of table headers?
◷
تاریخ انتشار: 1395/3/5 | ساعت: 14:17
Vote count: 0 I have a table with dynamically adding columns. As an example i have made a fiddle.Please find below fiddle. https://jsfiddle.net/stFcx/3435/ I have an issue while scrolling horizontally.Please can any one solve the issue . asked 32 secs agoBhanu Let's block ads! (Why?)
Displaying a pattern of colors with setTimeout
◷
تاریخ انتشار: 1395/3/5 | ساعت: 11:59
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...
how to select multiple items in multiple section in uicollectionview ios swift?
◷
تاریخ انتشار: 1395/3/5 | ساعت: 11:59
Vote count: 0 can somebody help me to select and deselect multiple items in collectionview under different sections and selected cells get assigned mark image on it.. here is my code:- func collectionView(collectionView: UICollectionView, didSelectItemAtIndexPath indexPath: NSIndexPath) { var item =...