Data dodania Pytanie
2017-08-16 23:08 Rails ActiveRecord eager_load with INNER JOIN »
In a large Rails app, I've noticed that we have a piece of code that produces a big ActiveRecord::Relation. It uses custom SQL snippets in .joins() ca...
(1) odpowiedzi
2017-08-16 23:08 Rails 4.2.6 adding extra attributes to activerecord elements »
I want to add extra fields to the results of a query without first converting to JSON. I have 3 models team, tournament and match, with the following...
(1) odpowiedzi
2017-08-16 23:08 Change `uri` of unfiltered.request.HttpRequest? »
Given an unfiltered HttpRequest, how can I modify the uri? Example: val req: unfiltered.request.HttpRequest[javax.servlet.http.HttpServletRequest] =...
(0) odpowiedzi
2017-08-16 22:08 Can I safely use this weak self auto type shortcut ? »
Is this safe to do ? #define wvar __weak __auto_type and then usage wvar _self = self; _filterMenuItem = [self addMenuItem:@"Filter" :^{ [_sel...
(2) odpowiedzi
2017-08-16 22:08 What is the proper/idiomatic way to filter or map based on surrounding context in functional programming? »
In functional programming, filtering based on the characteristics of a single item is relatively straightforward -- e.g., filtering to find only odd n...
(3) odpowiedzi
2017-08-16 22:08 Intermittently unable to set cookies in Chrome »
My team and I are seeing a pretty weird issue that we can only reproduce in Chrome and even then only intermittently, though we have all gotten into t...
(0) odpowiedzi
2017-08-16 21:08 Saving the iterator on NSMutableDictionary »
In C++ one can declare iterator on map. Then iterator can be promoted and saved, thus iteration can be resumed later from the saved position. How to ...
(1) odpowiedzi
2017-08-16 21:08 Functional Breadth First Search in Scala with the State Monad »
I'm trying to implement a functional Breadth First Search in Scala to compute the distances between a given node and all the other nodes in an unweigh...
(1) odpowiedzi
2017-08-16 21:08 ColdFusion API using new http() and setMethod("POST") throwing 500 error »
I have two ColdFusion sites in different servers. I need to send a structure of an Agent (person) to be inserted in the other database server. in the ...
(0) odpowiedzi
2017-08-16 21:08 Are WordPress admin plugins loaded on the front end? »
My question basically is: are the "back-end" plugins, which in nothing affects the blog front-end, loaded when an anonymous user, for example, browse ...
(1) odpowiedzi
2017-08-16 21:08 Preventing decimals from entering into a column - Oracle »
I was wondering if there's a way to prevent data of number type from entering into a table if the value of the number is not a whole number. ie. If ...
(2) odpowiedzi
2017-08-16 21:08 How to resolve the dependencies of a WebAPI Controller with DryIoc »
I've been reading through the documentation and I'm a little confused as to how I would achieve this. I have a WebAPI Controller called NewsController...
(1) odpowiedzi
2017-08-16 20:08 Why is it not a security hole that PostgreSQL by default stores user passwords in an MD5 hash? »
Why is it not a security hole that PostgreSQL by default stores user passwords in an MD5 hash? I am studying the internals of PostgreSQL and have gott...
(1) odpowiedzi
2017-08-16 20:08 ActiveRecord (SQL) query multiple columns only if search string not empty »
Using a PG database filled with registered voters. Trying to set it up so I can search by first name, last name, zip or city. I want to be able to f...
(1) odpowiedzi
2017-08-16 20:08 MongoDB gets faster when processing repeated queries »
I am developing a web application with MongoDB. I have noticed a phenomenon that when executing the same query repeatedly, the processing speed boosts...
(1) odpowiedzi
2017-08-16 20:08 How to arrange elements of array in deascending order using While loop in java »
Can any one please help to print elements of array in descending order using While loop. Ex: int[] bandham = {1,25,35,48,25,38,98,35}; ...
(0) odpowiedzi
2017-08-16 20:08 "Users not defined" in node.js »
I'm using EJS as my template engine. My browser says "users" is not definded, but in my server.js file, i've defined it as var users = require("./rout...
(1) odpowiedzi
2017-08-16 20:08 Django REST Framework set related field by another field than PK (without NestedSerializer) »
I have the following serializer: class OrderSerializer(serializers.ModelSerializer): pair_name = serializers.ReadOnlyField(source='pair.name', re...
(1) odpowiedzi
2017-08-16 19:08 Ruby 2.4.1 Dir.children( dirname ) returns "undefined method `children' for Dir:Class" »
I'm new to Ruby and trying to learn it. I'm using the latest Ruby version (2.4.1) and the interactive Ruby Shell. I've come across the children metho...
(1) odpowiedzi
2017-08-16 19:08 How to create an index properly for DESC NULLS LAST sorting »
I created an index without specifying ordering or nulls first/last e.g.: CREATE INDEX index_name ON TABLE table_name (date) and now my ORDER BY DES...
(1) odpowiedzi
2017-08-16 19:08 Is it possible to have CSRF if developer mitigates by referrer header »
After pentration testing, developer mitigates the CSRF vulnerability by using only referrer header. The application have other vulnerability like XSS....
(2) odpowiedzi
2017-08-16 19:08 missing runtime store error on linux with .NET Core 2.0 runtime only »
I am updating some applications from .NET Core 1.1 to 2.0. The apps work fine locally but after updating the Runtime on my linux VM and deploying, I a...
(2) odpowiedzi
2017-08-16 19:08 Oracle SQL Query Help finding entries that a column has two possible values »
I apologize if this question isn't formatted correctly, I normally don't ask SQL questions. I have the following query created for my oracle database ...
(2) odpowiedzi
2017-08-16 19:08 Type object 'Post' has no attribute 'published' Django »
I am working on an application and I am trying to show related posts based on tags. I have everything working fine but when I load the detail view in ...
(1) odpowiedzi
2017-08-16 18:08 How Do I Teach ProGuard to Get Rid of Something It Is Keeping That I Am Not Using? »
I have an Android project with a proguard-rules.pro file for the app module that contains only the following: # ProGuard rules -dontobfuscate -dontwa...
(1) odpowiedzi
2017-08-16 18:08 Angular Post json to .net core web api is null (Updated) »
I am trying to post some JSON to a web api .net core but for some reason this is always null no matter what i have tried see code below. this is my ....
(1) odpowiedzi
2017-08-16 18:08 aspnetcore 2.0 with EF6 and dotConnect for oracle »
I am trying to use Oracle using dotConnect for Oracle(v 9.4). Since aspnet core 2.0 has full support to reference older .net framework, I am trying to...
(1) odpowiedzi
2017-08-16 18:08 Couldn't import Django when moving whole virtualenv from windows to mac »
It worked fine between windows OS but not in the mac. I didn't have requirements.txt file but was hoping the virtual environment with a lot of librari...
(1) odpowiedzi
2017-08-16 17:08 How to upload multiple images with Rails 3 + mongoid + carrierwave-mongoid? »
I`m newbie in Rails. I try to create form for saving and editing posts (text title, content and images). There are my model for post: class Post i...
(0) odpowiedzi
2017-08-16 17:08 How to make Web Api secure against CSRF attacks in ASP.NET? »
Consider a web application that consists of only HTML and JS for Front end and that communicates with a Web API. I am trying to protect my applicatio...
(1) odpowiedzi
2017-08-16 17:08 Implementing id generator angularjs »
I was working on a grocery store list using angular js. I was trying to add an item to the list using id generator I was able to add the first item wh...
(1) odpowiedzi
2017-08-16 17:08 Efficient linked list in C++? »
This document says std::list is inefficient: std::list is an extremely inefficient class that is rarely useful. It performs a heap allocation for ...
(10) odpowiedzi
2017-08-16 17:08 HttpContext.Current.Request.UrlReferrer is Null in WebApi Controller »
This doesn't work for me I need to set CookieHeaderValue.Domain property in web API controller for the client, for that I need to get the URL of the c...
(0) odpowiedzi
2017-08-16 17:08 DataTables automatically set export title »
I got the following .js file which is called on each page of my website and automatically transforms tables to DataTables: $.extend( $.fn.dataTable.d...
(1) odpowiedzi
2017-08-16 16:08 LIKE doesn't seem to work »
I´working on a C# desktop App and want to search in a MYSQL database all the records that match with a specific name in order to display this records...
(2) odpowiedzi