Data dodania Pytanie
2016-09-22 23:09 ImageIO reading slightly different RGB values than other methods »
I've found that I'm getting different RGB when using Java (& actually paint.NET) than I am using ImageMagick, Gimp, Python, and Octave. The last 4...
(3) odpowiedzi
2016-09-22 23:09 Rails is it good or bad practice to test small methods in models? »
I have model: class Answer < ActiveRecord::Base def pending_edits self.edits.where(:is_approved => nil) end def update_body (new_...
(1) odpowiedzi
2016-09-22 23:09 Rails app removes post images after pushing to heroku »
Each time I push the app the images in heroku stop showing up like the link don't exist anoymore here's my production.rb Rails.application.configure...
(1) odpowiedzi
2016-09-22 23:09 Is this property of a functor stronger than a monad? »
While thinking about how to generalize monads, I came up with the following property of a functor F: inject :: (a -> F b) -> F(a -> b) --...
(1) odpowiedzi
2016-09-22 23:09 Relation has_many/belongs_to PG::UndefinedColumn »
I get this error when I do this: user.owned_tipsters Error: ActiveRecord::StatementInvalid: PG::UndefinedColumn: ERREUR: column tipsters.user_id ...
(1) odpowiedzi
2016-09-22 22:09 How To Properly Handle Passwords In C# »
It's a well known fact that C# string is pretty insecure, it's not pinned in RAM, the Garbage Collector can move it, copy it, leave multiple traces of...
(0) odpowiedzi
2016-09-22 22:09 How to mix Razor with string literals in HTML helpers for asp.net MVC »
@Html.ActionLink( linkText: "Quote Number: "@item.QuoteNumber, actionName: "MyAction", controllerName: "Home", ) I'm trying to do someth...
(2) odpowiedzi
2016-09-22 21:09 Why does Python 3 exec() fail when specifying locals? »
The following executes without an error in Python 3: code = """ import math def func(x): return math.sin(x) func(10) """ _globals = {} exec(cod...
(1) odpowiedzi
2016-09-22 21:09 How to split string while ignoring portion in parentheses? »
I have a string that I want to split into an array by using the commas as delimiters. I do not want the portions of the string that is between parent...
(4) odpowiedzi
2016-09-22 21:09 Rails 4: Model Logic - Counting Items by a User »
One quick question: Lets assume I have an User (Devise) & Item Model. The current_user can create and mark his items. If he does, the value of is...
(2) odpowiedzi
2016-09-22 21:09 Hartl Ruby on Rails tutorial 4 ch 10, users edit test fails »
I am practicing Ruby on Rails by trying to create a custom website based off of Hartl's tutorial. Things have been going well so far but I am getting ...
(1) odpowiedzi
2016-09-22 21:09 How do I register a ColdFusion callback and call it from a Java class? »
I need to register a ColdFusion callback (using Lucee) that will be executed from within a Java class as follows: (I stubbed out how I envision invok...
(0) odpowiedzi
2016-09-22 21:09 COLDFUSION Delete and Edit Checkboxes »
Attempting to make a ColdFusion edit and delete section on an admin page. The checkboxes can be selected and then either edit or delete the selected ...
(2) odpowiedzi
2016-09-22 21:09 try catch for injected script tags via webpack? »
I want to handle all client side errors so can I notify the user that something went wrong. The majority of errors seem to be when my bundles are bein...
(0) odpowiedzi
2016-09-22 21:09 Generic incoming file upload http request object for all python frameworks »
I am working on a SDK that validates and saves incoming multipart/form-data files to disk on the server side. Something like: sdk.upload(httpRequest,...
(1) odpowiedzi
2016-09-22 21:09 Chrome can not find function firefox and eclipse does »
I hope my fumbling amateur code doesn't offend, but I'm writing a very simple Caesar cipher program and I'm running into an odd problem. When I run th...
(1) odpowiedzi
2016-09-22 20:09 JOOQ insert with type »
I'm using jOOQ 3.8.4 and PostgreSQL 9.5 in a Spring 4 application. I have the following table and type definition CREATE DOMAIN shop.money_amount AS...
(1) odpowiedzi
2016-09-22 20:09 How to achieve this awesome CSS animation »
I'm trying to do this animation using CSS | CSS3 and with JavaScript. which show in the image below, but it's really difficult to me to do this. Pleas...
(2) odpowiedzi
2016-09-22 20:09 How do I test what my Ruby code does when it catches a symbol? (RSpec) »
I'm working on a Sale flow that involves a few steps - discount, verification, payment, delivery, etc. If something goes wrong during the process, I w...
(1) odpowiedzi
2016-09-22 20:09 android studio 2.2 layout editor refresh button »
can someone help me find the refresh layout button which was there before studio 2.2 to refresh the layout changes? Have searched every where but can...
(3) odpowiedzi
2016-09-22 20:09 Constructor using std::forward »
To my knowledge, the two common ways of efficiently implementing a constructor in C++11 are using two of them Foo(const Bar& bar) : bar_{bar} {};...
(1) odpowiedzi
2016-09-22 19:09 What is an idiomatic way to measure time in Ruby? »
This is pretty ugly: t = Time.now result = do_something elapsed = Time.now - t I tried this: elapsed = time do result = do_something end def ti...
(3) odpowiedzi
2016-09-22 19:09 VB Web API - Property Name for a Form encoded values with period in name »
Question: What should I name a property that is going to be assigned via form-encoded input from an HTTP request, to ensure that the property will be...
(1) odpowiedzi
2016-09-22 18:09 RxJava Multithreading with Realm - Realm access from incorrect thread »
Background I am using Realm within my app. When data is loaded it then undergoes intense processing therefore the processing occurs on a background t...
(2) odpowiedzi
2016-09-22 18:09 Rails CRUD route and controller method best practices »
CRUD stands for Create, Read, Update, Delete. That's four methods (or five if you distinguish between viewing one record and viewing all records). In ...
(1) odpowiedzi
2016-09-22 18:09 Can my CPU execute multiple NOPs per CPU cycle? »
I wrote a simple program that executes a bunch of NOP instructions in a loop, and to my surprise it executes about 10600000000 of them per second, or ...
(2) odpowiedzi
2016-09-22 18:09 Allow checkout only when a product of a mandatory category is in cart »
I'd like to stop any customer advancing to the checkout if they do not have a particular product category in their basket. I would also like to tell t...
(1) odpowiedzi
2016-09-22 18:09 DISTINCT OR GROUP BY statements not removing duplicates? »
What I am trying to do is have all client bills into one, so instead of "Whale Mart" coming up three times with different values I wish for "Whale Mar...
(2) odpowiedzi
2016-09-22 18:09 Need to run 'composer update' on ssh on hostgator, but php -v to low »
Need Help 🛬 Framework - Laravel Hosting - Hostgator Problem Statement :- I need to run the 'composer update'. All dependencies required minimu...
(1) odpowiedzi
2016-09-22 18:09 Laravel ajax request not working for a foreach loop »
I have collected some data in my controller.Now In my view,I have showed them inside an unordered list (ul) as a link. <ul> <li><...
(3) odpowiedzi
2016-09-22 17:09 How to create a custom while block »
I know that in ruby we can use a while loop, but I want to know if I can create a custom one so I can make something like this: custom_while i < 5...
(2) odpowiedzi
2016-09-22 17:09 Retrieve a post with its ACF repeater fields in wordpress »
In a wordpress theme I am programming, I created a custom post type and its template. This custom post type displays a list thanks to advance custom f...
(0) odpowiedzi
2016-09-22 17:09 Getting PLS-00258 when creating PL/SQL wrapper function for Java method »
I've got the following Java method (which I've loaded into an Oracle 11g database from its JAR using loadjava) public int GatewayClientPoolHA( String...
(1) odpowiedzi
2016-09-22 17:09 python u'\u00b0' returns u'\xb0'. Why? »
I use python 2.7.10. On dealing with character encoding, and after reading a lot of stack-overflow etc. etc. on the subject, I encountered this behav...
(1) odpowiedzi
2016-09-22 16:09 Why can't PHP have a constant object? »
I have a key-value database table, where I store some settings. I would like to have these settings in a PHP constant object, since they shouldn't be...
(1) odpowiedzi