Data dodania Pytanie
2017-01-11 06:01 How to generate Asp.net User identity when testing WebApi controllers »
I am using Web API 2. In web api controller I have used GetUserId method to generate user id using Asp.net Identity. I have to write MS unit test for...
(1) odpowiedzi
2017-01-11 05:01 How to test before_update callback in rails model with Rspec and FactoryGirl? »
I am trying to test the before_update callback of the model bellow. models/option.rb: class Option < ApplicationRecord belongs_to :activity ...
(3) odpowiedzi
2017-01-11 05:01 Wicked pdf not rendering header/footer »
I am using wicked_pdf for generating pdf from html on my rails project. It is rendering template but I could not manage to print header/footer section...
(1) odpowiedzi
2017-01-11 05:01 DateTime To Be NULL when the value is DateTime.MinValue or it is Null »
In my console app I am attempting to format to HHmmss -> I am sure it is due to my data types but how can I have this be NULL when NULL and not displa...
(4) odpowiedzi
2017-01-11 05:01 Contact Form 7 - Datepicker »
How do I add an image on date field if I am using Contact Form 7 Datepicker Plugin? The example that I want is on this website, Jquery Datepicker. Thi...
(1) odpowiedzi
2017-01-11 05:01 Jquery DataTable pagination Not working when postaback »
Jquery DataTable Pagination is not working I have 13 paginations i am selecting 5th pagingwhen i click edit button in my gridview the page will postba...
(1) odpowiedzi
2017-01-11 04:01 Slowly fill SVG image with color (like progress bar) in android »
If I have a simple stroke path, like below: I know how to animate it. What if I have a path which is constituted by a closed path, just like the belo...
(0) odpowiedzi
2017-01-11 04:01 ParagraphFormat() with numbers »
Apparently not all numbers have the same member functions in ColdFusion 2016 <cfset NumberString = 1> <!--- This works ---> <cfou...
(0) odpowiedzi
2017-01-11 04:01 Same results as "member" without using it (lisp) »
To complete an exercise, I need to check if an element is in a list or not. I know that there is the function member in lisp, but our instructor is ve...
(1) odpowiedzi
2017-01-11 04:01 State not updating when receiving new props (ReactJS) »
I'm new to React. I'm stuck on this, would really appreciate some help! A parent component will pass an array into this child component. When I cons...
(3) odpowiedzi
2017-01-11 04:01 Postgresql - distinct values from jsonb array »
I have the following jsonb array column (tags) |name | tags (jsonb) | -------------------------------- |john | [ "foo", "bar" ] |smith| [ "bar", "b...
(1) odpowiedzi
2017-01-11 03:01 Memory leak after algorithm in Rails? »
I wrote an algorithm inspired by the merge part of the merge sort. def self.merge(arr) if arr.length == 1 return arr end groups =...
(1) odpowiedzi
2017-01-11 03:01 What is the difference between Join and Natural Join? »
I'm learning Oracle SQL and now I'm stuck on Joins chapter. I can't understand the difference between Join and Natural Join SELECT employee_i...
(1) odpowiedzi
2017-01-11 02:01 Rails: too many methods in model »
TL;DR: I don't know how organise my logic domain classes. I have the model "Application", this model is in the "core" of the App and is the way I "e...
(3) odpowiedzi
2017-01-11 02:01 Displaying current username in _Layout view »
I am wanting to display the current ApplicationUsers Firstname+Lastname on my navigation bar on my _Layout view. I've found that you can pass your vie...
(1) odpowiedzi
2017-01-11 02:01 React js syntax for if else with map function in branch »
I'm new to React and struggling with the syntax. I have this block as a div inside my render function. Every change I make goes from one syntax error ...
(3) odpowiedzi
2017-01-11 01:01 How To Test Sending Thousands Of Emails »
I'm developing an application that will send thousands of emails per day based on a CSV file using Amazon SES. My client would like to send around 5...
(3) odpowiedzi
2017-01-11 01:01 JavaScript variable color in JetBrains WebStorm »
Why JS variables have different colors in JetBrains WebStorm 2016 ? There are no significant differences between express, path, favicon... variables: ...
(2) odpowiedzi
2017-01-11 00:01 Do I need to free View.OnClickListener from views during onDestroy? »
I have a large project with 100s of fragments. They all pretty much follow the pattern I am going to describe and my question will follow. public cla...
(1) odpowiedzi
2017-01-11 00:01 How to set 80 columns in LispWorks? »
I'm very new with Common Lisp and LispWorks so please describe all the steps. I want to set 80 columns, how can I do? I'm using LispWorks Personal. ...
(1) odpowiedzi
2017-01-10 23:01 Chain an array of tasks in Concurrent Ruby »
I have a set of tasks that I want to execute sequentially in some background thread, with the result of each task being passed to the next, and with t...
(1) odpowiedzi
2017-01-10 23:01 Reading data from Firebase takes long even with small dataset »
I am currently using Firebase as a backend storage and want to retrieve a set of data. Using FirebaseUI-Android I am getting the data and adapting it...
(0) odpowiedzi
2017-01-10 23:01 Merged two dataframe columns with lists in order of lists »
I'm trying to merge/concatenate two columns where both have related, but separate text data delimited by "|" in addition to replacing certain names wi...
(3) odpowiedzi
2017-01-10 23:01 Multiple matrix multiplication »
In numpy, I have an array of N 3x3 matrices. This would be an example of how I'm storing them (I'm abstracting away the contents): N = 10 matrices = ...
(1) odpowiedzi
2017-01-10 23:01 number formatting with truncate »
I need to format some numbers without rounding them and also add two 0s if they are integers as follows. given : 10.20 , result : 10.20 given : 10.5...
(1) odpowiedzi
2017-01-10 23:01 WooCommerce: Move Coupon Field on Cart Page »
I am trying to change the position of the coupon field on the cart page. I am vaguely familiar with actions and hooks, so I know I need to remove the ...
(1) odpowiedzi
2017-01-10 22:01 How can I pad each multibyte character / emoji with spaces around it in a string? »
I'd like to pad each multibyte character with spaces on either side. I can strip them out just fine, but I'd like to leave them in and just pad them. ...
(3) odpowiedzi
2017-01-10 22:01 How to convert Objective-C line to Swift? »
I have code in Objective C: NSMutableArray* paths = [textView.textContainer.exclusionPaths mutableCopy]; and now when I try to convert it to Swift:...
(3) odpowiedzi
2017-01-10 22:01 Insert geometry LINE value using PostgreSQL 9.5 »
I want to insert line value into table. I already inserted point by using the folowing command: INSERT INTO public."Sample"(point) VALUES ( point...
(1) odpowiedzi
2017-01-10 22:01 Insert within function fails with "query has no destination for result data" »
Here is the complete example code: CREATE TABLE testtbl ( id integer NOT NULL, intval integer, strval varchar(64) ); CREATE SEQUENCE test...
(1) odpowiedzi
2017-01-10 22:01 ActiveRecord Rollback when trying to save to database »
I am building a fairly simple album review application. I am attempting to set up a simple_form for new reviews. The change will not stick. This is wh...
(1) odpowiedzi
2017-01-10 21:01 chrome.tabs.executeScript(): How to get result of content script? »
According to the documentation for chrome.tabs.executeScript (MDN), the callback function accepts an "array of any result" result set from the executi...
(1) odpowiedzi
2017-01-10 21:01 Why would this function fail? »
I am trying to understand why this function wouldn't work. Will someone educate me what is going on? function API() { $seed = str_split(md5(r...
(3) odpowiedzi
2017-01-10 21:01 Carrier Wave mini_magick_processing error »
I am trying to upload an image in my signup form using carrierwave gem but getting this error: Avatar translation missing: en.errors.messages.mini...
(0) odpowiedzi
2017-01-10 21:01 PredicateBuilder.New vs PredicateBuilder.True »
I am using PredicateBuilder to create a search/filter section in my action. Here it is: [HttpPost] public ActionResult Test(int? cty, string...
(1) odpowiedzi