Data dodania Pytanie
2017-08-09 04:08 Using jQuery and Math.random() to select nested objects properties »
I'm creating a random quote machine that will present a random quote from various philosophers. I have an object literal with nested objects contain...
(2) odpowiedzi
2017-08-09 02:08 Functional code in assembly? (pure functions) »
I'm currently working on chess in TASM 16bit. I recently learned about pure functions and how they are the coolest thing in the universe, so my quest...
(1) odpowiedzi
2017-08-09 02:08 Mongo db with Monk: error catching and handling if db is down »
I'm new to Mongo. I needed a database for a simple project and ended up following a tutorial using Mongo with Monk but I have problems understanding ...
(1) odpowiedzi
2017-08-09 01:08 How to overwrite eager loaded property in Laravel? »
If I have something like this: $book = App\Book::with('authorInfo')->first(); How can I set $book->authorInfo to a new value? I'vet tried to set...
(2) odpowiedzi
2017-08-09 01:08 How to compare images and determine which has more content? »
Goal: I want to grab the best frame from an animated GIF and use it as a static preview image. I believe the best frame is one that shows the most con...
(2) odpowiedzi
2017-08-09 00:08 Headless chrome launcher --window-size causing error »
I need to be able to take screenshot given a certain window size. I read this blog http://phptest.club/t/how-to-run-headless-chrome-in-codeception/154...
(1) odpowiedzi
2017-08-09 00:08 Issue when having Symfony form/entity field name 'from' »
I have a entity with following fields: /** * @ORM\Column(name="from", type="string", length=255, nullable=true) */ protected $from; /** * @ORM\Co...
(2) odpowiedzi
2017-08-08 23:08 Swift Hashing algorithm using bit shifting to avoid collisions »
Given a Person struct that has a name and surname string properties I would like to write an hashing algorithm that is efficient and avoids collisions...
(1) odpowiedzi
2017-08-08 23:08 laravel resource controllers / routes and models »
So if you do something like $ artisan make:model TurboClown $ artisan make:controller TurboClownController -r --model=TurboClown So at this point i...
(1) odpowiedzi
2017-08-08 23:08 Google Chrome 60.0.3112.90 VueJS response.data bug »
I am using VueJS and the $http package to do API calls to my website. However, it seems that on Google Chrome 60.0.3112.90, the data property of the R...
(1) odpowiedzi
2017-08-08 22:08 Use Ramda indexBy with variable index »
I need to transform some JSON data, and Ramda's indexBy does just about exactly what I want. The code below works for a single object: const operati...
(1) odpowiedzi
2017-08-08 22:08 Add custom content to WooCommerce product description »
I'm trying to inject some text in my description ending. Is it possible with filter? Or do i need to do this via child theme? Been trying to find th...
(1) odpowiedzi
2017-08-08 22:08 Using dynamic schema with postgres »
I have to decide how I want to implement dynamic schema. I will try to put some more description where my problem is. I use the postgres DB in lates...
(0) odpowiedzi
2017-08-08 22:08 YourName Code (Traceback Error) »
I'm trying to find out why I'm getting a Traceback Error on this very simple code. I'm using 2.7.13. # YourName.py name = input("What is your name...
(0) odpowiedzi
2017-08-08 21:08 Why does SQL query with GROUP BY produce more rows? »
I have the following table: +------+-------+--------------------------------------+ | id | rev | content | +------+-...
(3) odpowiedzi
2017-08-08 21:08 How to get date: one month away from a specific date? »
I know that I can get the date from today such as select CURRENT_DATE - INTERVAL '1 months'; But what if I need the first date specified. Somet...
(2) odpowiedzi
2017-08-08 21:08 How to increase width of underline for the multiline text when on hover »
Fellow brothers in code, I am trying to achieve custom text-decoration: underline; effect for the multiline text between <p> tags. Similar to o...
(6) odpowiedzi
2017-08-08 21:08 CSS rating stars issue with arrow keys »
I am having an issue with my rating stars system which is using pure CSS. My issue is that when I use arrow keys to select the stars... it is backward...
(1) odpowiedzi
2017-08-08 21:08 Trying to claim website URL for Facebook Instant Articles, but receive fb:pages error »
The fb:pages tag on the url doesn't contain this page's id. The url has fb:pages tag but they don't have this page's id. Please work with your develop...
(0) odpowiedzi
2017-08-08 20:08 Most Pythonic way to print a newline »
If I need to print a single newline, what is the most Pythonic way to write the print statement? I am teaching someone Python and I want to do it righ...
(3) odpowiedzi
2017-08-08 20:08 ActiveRecord before-transaction callback »
Problem: I'm looking for an ActiveRecord (Rails 3.2) callback hook that will execute BEFORE a DB transaction has begun. If it doesn't exist (and I d...
(1) odpowiedzi
2017-08-08 20:08 RegEx to remove hyphens between two strings »
I have a string where I need to replace all hyphens, but only between two delimiters, "clients_field_" and ":" For example: "clients_field_4741a6c5...
(2) odpowiedzi
2017-08-08 20:08 How create a middleware with api endpoints in .NET Core »
I have created the web application with the web api. The application contains some Controllers for example TodoController: namespace TodoApi.Controll...
(2) odpowiedzi
2017-08-08 20:08 Wrong character encoding for Facebook Product Feed XML »
While trying to create a Facebook Product Feed according to this documentation, it seems there is no reference to character encoding. This is a Peruv...
(1) odpowiedzi
2017-08-08 20:08 d3.js force layout with ordering of sibling nodes »
my question is about how can I use d3 force layout to display spatial ordering of child nodes of a tree structure? The description of question is as...
(0) odpowiedzi
2017-08-08 20:08 How does Django understand the difference between slug and id in view functions? »
I'm new to Django framework and have some troubles with its view functions and the arguments it accepts. For example, consider the following view func...
(1) odpowiedzi
2017-08-08 20:08 MVC Api Controller Method HttpPost not working »
I am using Visual Studio 2013... I am having some problems with Api Controller Method. I understand the differences between HTTPGET, HTTPPUT, [FromU...
(1) odpowiedzi
2017-08-08 20:08 I need Python 2.6 for a course but when I try to install it says there is nothing to install »
When I try to install python 2.6 it says " The installer could not install the software because there was no software found to install". I need this P...
(1) odpowiedzi
2017-08-08 19:08 Does using print() too much cause it to fail? »
TL;DR: The print() result is not updating in a Windows Console. Executes fine in IDLE. Program is executing even though Windows Console is not upd...
(3) odpowiedzi
2017-08-08 19:08 Business Validation Error: Amount must be zero for bundle line items.Error in quickbooks accounting api using coldfusion »
I am trying from 2 days to solve this issue but no success till now.I am working on intuit quickbooks api using coldfusion and java at the backend. I ...
(0) odpowiedzi
2017-08-08 18:08 How to draw card objects side by side vs stacked on top of each other in terminal »
I am making an OO twenty one game. I have a Card class and a Deck class, the deck is made up of card objects. When a player shows their hand I call th...
(1) odpowiedzi
2017-08-08 18:08 Rails 4 ActiveAdmin CSV export yields "You are not authorized to perform this action." in browser »
I am using "out of the box" installations of Devise gem and ActiveAdmin gem in my Rails 4 project. I have an ActiveAdmin model that works fine as an i...
(1) odpowiedzi
2017-08-08 18:08 CoreData - fetch objects by relationship in a batch for better performance »
Introduction Whenever possible, I'm trying to use find-or-create pattern in core data. When I'm doing this for a set of items that are identifiable b...
(1) odpowiedzi
2017-08-08 18:08 Why is numpy ma.average 24 times slower than arr.mean? »
I've found something interesting in Python's numpy. ma.average is a lot slower than arr.mean (arr is an array) >>> arr = np.full((3, 3), -9...
(2) odpowiedzi
2017-08-08 18:08 CFQUERY update inner join two tables from separate servers »
I have this update statement - <cfquery name="updateqry" datasource="thisone"> update dbOne.tableA a inner join dbTwo.tableB b on a.do...
(0) odpowiedzi