Data dodania Pytanie
2017-05-18 23:05 How to use 2 forms in 1 twig in Symfony? »
Im have 2 entities: Post and Article. In my TestController i have a function named: addAction() where im trying to get these 2 entities and add them s...
(1) odpowiedzi
2017-05-18 23:05 How can I detect unused imports in a Script (rather than a Document) with Roslyn? »
I'm writing a system to process snippets written as unit tests for Noda Time, so I can include the snippets in the documentation. I've got a first pas...
(1) odpowiedzi
2017-05-18 23:05 Is it possible to pass in an array of objects into DataTables? »
After PHP passes back the results of a SQL query in this format: [0]: Object name: "Bruce Wayne" occupation: "Billionaire Playboy" [1]: Ob...
(0) odpowiedzi
2017-05-18 22:05 expected #status to have initially been "ready_for_publish", but was "ready" »
I tried to test some Rails model repeatedly. But errors like this make me annoying. What should I do for the test? The Error is below. Failures: ...
(1) odpowiedzi
2017-05-18 22:05 Use circe to preprocess dot-notation style fields »
I have some json that includes some fields that are being flattened into a bson-ish format as in {"foo.bar" : "bash"}. I'd like to transform this to t...
(1) odpowiedzi
2017-05-18 22:05 asp.net MVC - Bizarre Index out of Range when iterating Dictionary in Razor View ONLY »
I am getting a strange 'Index was out Range' exception when iterating through my viewmodel's dictionary property which is simply int Key and List of o...
(1) odpowiedzi
2017-05-18 22:05 EJS templates and bash variables »
I have an ejs file that has something like this in it - "DIV TAG START" id="myid" class="version class"> Version 0.1.0-myver "DIV TAG END" I wa...
(0) odpowiedzi
2017-05-18 21:05 What's the difference between --add-exports and --add-opens in Java 9? »
Java 9 (jdk-9+170) does not allow by default an application to see all classes from the JDK, unlike all previous versions of Java, due to the new modu...
(1) odpowiedzi
2017-05-18 21:05 Stateful computations in Scala using monads »
I've been trying to learn functional programming in Scala, and I finally managed to understand how to use the for comprehension to work with state: #...
(1) odpowiedzi
2017-05-18 21:05 ASP .NET Core: View grid of multiple items to be edited »
I'm trying to construct a view where the records from a table (machines) get uploaded and that each one can be edited in a view. This is my Get metho...
(1) odpowiedzi
2017-05-18 20:05 Why do most Ruby/Rack apps bootstrap this way? »
I'm trying to find a written explanation as to why many Ruby apps follow this pattern w/r/t Rack: config.ru -> loads 'environment' 'environment' -...
(1) odpowiedzi
2017-05-18 20:05 Subtract aggregate from Pandas Series/Dataframe »
Given the following table vals 0 20 1 3 2 2 3 10 4 20 I'm trying to find a clean solution in pandas to subtract away a value, s...
(3) odpowiedzi
2017-05-18 20:05 Javascript focus element on class active »
I have lines text which able the user to push the next arrow (on keyboard) to change / move active word, so the user can focus on the 'red color word'...
(1) odpowiedzi
2017-05-18 20:05 How to output emoji to console in Node.js (on Windows)? »
On Windows, there's some basic emoji support in the console, so that I can get a monochrome glyph if I type, e.g. ☕ or 📜. I can output a string...
(1) odpowiedzi
2017-05-18 19:05 Collecting values from events »
I have an event. The event is fired from time to time and it calls an Event Handler that is an Action<int>. Now I want to "collect" these integ...
(2) odpowiedzi
2017-05-18 19:05 Get average from nested eloquent relationship »
I would like to calculate average from nested relationship between eloquent models. So, let's say, I have 3 tables called programs, activities and sta...
(1) odpowiedzi
2017-05-18 19:05 How to guide GCC optimizations based on assertions without runtime cost? »
I have a macro used all over my code that in debug mode does: #define contract(condition) \ if (!(condition)) \ throw exception("a contra...
(2) odpowiedzi
2017-05-18 18:05 Populate int[ ] array from console on 1 line with Lambda (java) »
try (BufferedReader br = new BufferedReader(new InputStreamReader(System.in))) { Object[] test = Arrays.stream(br.readLine().split(" ")).map(stri...
(1) odpowiedzi
2017-05-18 18:05 Pass large array to node child process »
I have complex CPU intensive work I want to do on a large array. Ideally, I'd like to pass this to the child process. var spawn = require('child_pro...
(6) odpowiedzi
2017-05-18 18:05 Handling XML complex object response with ColdFusion »
I am using cfhttp to call a service call where I am setting the cfhttpparam type = 'url' name $format value = 'xml' to get a response in xml. I have d...
(2) odpowiedzi
2017-05-18 18:05 Use HTTPs locally and in Server »
I am working on an ASP.NET Core project using HTTPS so I have on startup: // In Configure method RewriteOptions rewriteOptions = new RewriteOptions()...
(0) odpowiedzi
2017-05-18 18:05 ORA-00905: missing keyword Hibernate Query Oracle »
I have n columns in a table. I want to have selection criteria as if a value in column2 is null then select row based on column 1 and if column2 is no...
(1) odpowiedzi
2017-05-18 18:05 Path to Run WebAPI »
I have difficulty to Run the API with Browser or PostMan. The problem is the path so I get 404 error. This is the path: public static void Register...
(1) odpowiedzi
2017-05-18 17:05 What happens when I create a list such as c=[1] in python, in terms of name object bindings? »
After reading http://www.effbot.org/zone/python-objects.htm I am left with this question: In python, if a=1 creates an integer-object and binds it to...
(1) odpowiedzi
2017-05-18 17:05 Could not log "render_template.action_view" event after rails upgrade to 4.2.8 »
I am in the process of upgrading a rails app that mostly serves JSON. The last working version I was able to upgrade to is 4.1. Once I upgraded to 4.2...
(1) odpowiedzi
2017-05-18 17:05 Spring, XSRF tokens and performance »
I am trying to implement CSRF protection in an existing application. We have Spring MVC on backend and a mix of HTML, CSS and Apache Velocity Template...
(0) odpowiedzi
2017-05-18 17:05 make css grid item span from first to last row »
Is it possible to make a grid item span from the first to the last row when I don't know the number of the rows? Lets say I have the following html w...
(2) odpowiedzi
2017-05-18 17:05 Clojure, unquote slicing outside of syntax quote »
In clojure, we can use unquote slicing ~@ to spread the list. For example (macroexpand `(+ ~@'(1 2 3))) expands to (clojure.core/+ 1 2 3) This ...
(1) odpowiedzi
2017-05-18 17:05 Wordpress+Mysql+Apche: Error establishing a database connection »
PS: This is my first encounter with wordpress and before posting this question I've checked many related posts and none of the answers resolved my pro...
(1) odpowiedzi
2017-05-18 17:05 Laravel file download - php_fileinfo extension not enabled »
I'm using Laravel 5.4.13 with PHP 7.1 and I migrated to a shared hosting. I'm trying to make the website work, but I'm unable because of a missing ext...
(1) odpowiedzi
2017-05-18 17:05 405 error (Method Not Allowed) on Web API get »
I'm having a frustrating problem when I try to make a call to my Web API controller method with $.getJSON : it always ends up with the following messa...
(3) odpowiedzi
2017-05-18 17:05 Is there a standard what to write first: the @RequestBody or the @PathVariable? »
If you have a function with @RequestBody and @PathVariable in a function. Is there any standard, which to write first? I haven't found anything while ...
(0) odpowiedzi
2017-05-18 16:05 What's the name of PHP functions that change parameter values? »
I noticed that some php functions have the power to change a variables value by simply calling the function and others do not. For instance, consider ...
(2) odpowiedzi
2017-05-18 16:05 no route matches [GET] "/logout"? »
Rails.application.routes.draw do root to: 'users#index' get '/login', to: 'sessions#new' post '/login', to: 'sessions#create' delete ...
(3) odpowiedzi
2017-05-18 16:05 Handling Aggregate Exceptions in Service Fabric »
Let's say I have a Web API service that calls my user Service to return user profile information etc.. UserProfileService can throw UserNotFoundExcep...
(2) odpowiedzi