Data dodania Pytanie
2017-02-18 23:02 Why can't a generic lambda call itself, but wrapping it in a class allows it? »
Here is the full example: auto callSelf = [](auto& func) {func(func);}; class wrapper : public decltype(callSelf) { using base = decltype(ca...
(2) odpowiedzi
2017-02-18 23:02 c# WebApi.SelfHost post is null »
I am using the WebApi.SelfHost but my Post is always null. I tried all the solutions I could find on SO, but none of them worked. I'm stuck with this...
(1) odpowiedzi
2017-02-18 23:02 Text Fields in Chrome Extension? »
Regbutton.js window.onload = timeout(); //document.getElementById('regButton').onClick = textfield(); function textfield () { var x = document.c...
(1) odpowiedzi
2017-02-18 22:02 Slow mysql query (using IN) »
I have a simple query: SELECT Description, Temp1, Temp2, SensorData.DateAndTime FROM SensorData INNER Join Sensors on Sensors.ChipId=SensorData...
(2) odpowiedzi
2017-02-18 22:02 Generalizing DivisibleBy in type-level programming with Scala »
I'm trying to generalize a divisible-by relation in Scala using type level programming. This is my Nat number definitions: trait Nat { type plus[N&...
(1) odpowiedzi
2017-02-18 22:02 Asp.net MVC 5 cannot use Html Helpers in a Razor view inside a class library project »
Am making a Plugin architecture application using Asp.Net MVC 5 so I created a class library project that will contains some controllers and some embe...
(2) odpowiedzi
2017-02-18 22:02 Get multiple images in wordpress media selector »
I have the following jQuery which will open the wordpress media selector and give me back the url of the media file selected. I have set multiple to...
(0) odpowiedzi
2017-02-18 22:02 Sudoku Solver Program »
solveSudoku function is called from main() function. I have written the following function for solving sudoku : #include <iostream> #include &...
(3) odpowiedzi
2017-02-18 22:02 User dependent field as many to many relationship in Django Rest Framework »
In my application I have some products, and a logged in user should be able to mark these products as favorites. I modeled them as a many to many rel...
(1) odpowiedzi
2017-02-18 22:02 Django - the effect on page load speed of using include tag inside for loop »
The odds are that this question will be banned, because this forum seems to me a site for "why it doesn't work"-type of questions, rather than "is it ...
(0) odpowiedzi
2017-02-18 21:02 Marking a symbol as undefined in iOS framework »
I'm building an iOS framework using Swift and Objective-C (have to use both of them due to other constraints). In my objective-c code, I need to use ...
(1) odpowiedzi
2017-02-18 21:02 How Firebase Analytics handle session duration for background activity (mp3 player) »
I understand how Firebase Analytics counts session duration if application in foreground, but what if my application gives some services to user (play...
(1) odpowiedzi
2017-02-18 21:02 Scala String toInt - Int does not take parameters »
So I'm learning Scala and I came across this finicky issue... If we have a String and want to convert it to an Int, all examples that I've found onli...
(1) odpowiedzi
2017-02-18 21:02 How do I get the value of multiple IDs in a Laravel API request »
I have Laravel acting as an API serving a request from an Emberjs app. The app requests multiple ID's vipExperiences?ids=6&ids=4 In my Larave...
(1) odpowiedzi
2017-02-18 20:02 How do I tell composer to install minimum files »
I've got a composer.json to require twig: "require": { "twig/twig": "~1.0", ... } This twig package installs a folder called doc. ...
(1) odpowiedzi
2017-02-18 20:02 What is `HtmlString` used for in Laravel? »
This class: HtmlString <?php namespace Illuminate\Support; use Illuminate\Contracts\Support\Htmlable; class HtmlString implements Htmlable { ...
(2) odpowiedzi
2017-02-18 20:02 Read data from csv file with foreach function »
I have been reading data from csv, if there is a large csv file, for avoid this time-out(rack 12 sec timeout) i have read only 25 rows from csv after ...
(2) odpowiedzi
2017-02-18 20:02 Strong consistency within transactions in Google Cloud Datastore »
Google Cloud Datastore is a non-relational database, and is built on the concept of eventual consistency. It also supplies a means to get strong consi...
(1) odpowiedzi
2017-02-18 20:02 Is it safe to rely on Postgres' deadlock detection for concurrency control? »
I've been running into occasional deadlocks in my application because two transactions which need to update the same rows but in different orders (ex,...
(1) odpowiedzi
2017-02-18 20:02 Can SQL CASE return a different number of columns in WHEN clauses? »
Is there a way to SELECT a different number of columns in different WHEN clauses of the same CASE statement? For example SELECT CASE x WHEN is...
(2) odpowiedzi
2017-02-18 20:02 In JQuery, why does $(this) == $(this) return false? »
I have run the following lines in my console (once a jquery script has been loaded), and received the following results: $(this) > [Window] $(this...
(1) odpowiedzi
2017-02-18 20:02 Null Context.User »
When I try to access Context.User in my Hub I keep getting Context.User is null errors. I have tried moving app.MapSignalR() under the ConfigureAuth()...
(1) odpowiedzi
2017-02-18 20:02 404 Not Found in AngularJS »
I just started AngularJS. When I try to implemt following example, I am getting 404 Not Found This is my main.html <!DOCTYPE html> <h...
(1) odpowiedzi
2017-02-18 20:02 DocumentDB - Quantify bounded execution in stored procedure »
I have a DocumentDB stored procedure that does insert or update (not replace but rather reads and update existing document). The stored procedure does...
(1) odpowiedzi
2017-02-18 20:02 Evaluation of setf forms »
This question is about the Common Lisp setf macro, and how it evaluates its argument forms (and subforms)--namely, only once if they happen to appear ...
(1) odpowiedzi
2017-02-18 20:02 Uncaught TypeError: Cannot set property 'selector' of undefined »
­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­...
(0) odpowiedzi
2017-02-18 20:02 Passing conditions to ActiveRecord_Relation .order - Rails 4 / Postgres »
I am using STI on a table called Clients. Clients has a boolean attribute called is_additional. How can I call .order on an AR Relation for primary a...
(0) odpowiedzi
2017-02-18 20:02 better design for sub-branching if statement sub conditions »
I am trying to refactor an if statement with multiple sub-conditions. From my current tries, I either have to write the conditions twice, or the inten...
(2) odpowiedzi
2017-02-18 20:02 Sorting with special format to numbers in datatables »
So while using datatables https://datatables.net/ i want to format currency so it shows like $1B (one billion), $1M (one million) and $1K (one thousan...
(2) odpowiedzi
2017-02-18 19:02 Dynamic length Django model field »
I have one Django model field definition like this: landMark = models.CharField(max_length=50, blank=True) Can I define the landMark field dynamical...
(2) odpowiedzi
2017-02-18 19:02 Hosted WebApi application always prompt login »
I have hosted a ASP.NET WebApi application w/ Angular2 in the front end on godaddy. On the server I have enabled: My web.config in the web.api proj...
(0) odpowiedzi
2017-02-18 18:02 Ruby: access values through tap »
I've got a Calculator class that reads like so: class Calculator DEFAULTS = { price: 4.25, size: 10000 }.freeze def initialize(lead) @...
(1) odpowiedzi
2017-02-18 18:02 F# tree-building function causes stack overflow in Xamarin Studio »
I'm trying to build up some rules in a tree structure, with logic gates i.e. and, not, or as well as conditions, e.g. property x equals value y. I wro...
(1) odpowiedzi
2017-02-18 18:02 Why is .array necessary after .group to use .sort? »
Having the following piece of code: import std.algorithm : filter, canFind, map, splitter, group, sort; import std.stdio : File, writefln; import std...
(1) odpowiedzi
2017-02-18 18:02 XCode: How to change layout of views between landscape and portrait mode »
In portrait mode I have four views on top of one another from the top to the bottom of the view controller (see image). I then want to change the p...
(2) odpowiedzi