Data dodania Pytanie
2017-01-11 23:01 Delete data from database if user closed browser »
Hello how can i detect if user closed browser and delete something from db? I want to use it for online count because when user close browser he is st...
(3) odpowiedzi
2017-01-11 23:01 Test production specific code with rspec - Sinatra »
I have this code to configure logging for production and test/development environments: class ApplicationController < Sinatra::Base configure :d...
(1) odpowiedzi
2017-01-11 23:01 takeWhile, dropWhile laziness java9 »
In scala those methods works fine but in java9 dropWhile works differently I think. Here is example for takeWhile Stream.of("a", "b", "c", "de", "f"...
(4) odpowiedzi
2017-01-11 23:01 Unique id for each control in table »
I have a table which contains a single input control for each item in my model. For this example let's assume my model contains 3 items. I am able t...
(1) odpowiedzi
2017-01-11 23:01 How do I merge parent array and one child with different attribute? »
I have comments and likes (acts_as_votable gem). I want to create one activity list and sort by created_at for comments and updated_at for votes. @ac...
(1) odpowiedzi
2017-01-11 22:01 Add a total at the bottom »
I need to add a Total at the bottom of my table. Is this possible in my scenario? select country, count(*) from customer group by country Country ...
(4) odpowiedzi
2017-01-11 22:01 Why does Math.min([]) evaluate to 0? »
Why does Math.min([]) evaluate to 0? I would expect that it would evaluate to NaN since MDN's manpage for Math.min states "If at least one of the arg...
(2) odpowiedzi
2017-01-11 22:01 rails has_many through with 5 tables »
I would like to know if is a good practice create a has_many through with more than 2 tables. for exemple: I have class Color < ActiveRecord::Bas...
(0) odpowiedzi
2017-01-11 22:01 heroku config on rails app suppressing logs on development env »
I am working on porting a rails 4.2 app from linode to heroku. I have the changes in a separate branch. When I am testing the app locally, the herok...
(1) odpowiedzi
2017-01-11 22:01 Delete the first element of each sublist »
I am supposed to write a function which will delete the first element of each sublist. So if we are given (1 (2 (3 4) 5) 6), my function should retu...
(1) odpowiedzi
2017-01-11 22:01 Finding the last element of a multidimensional array that meets a condition through recursion »
I know there are not so many real-life examples of recursion. I think I found one today and I want to share it Q&A style because I think it's fasc...
(3) odpowiedzi
2017-01-11 21:01 Why does scalac need a transitive dependency on the classpath »
I'm running into an unexpected (only for me?) ScalaC behavior. The TL;DR is that the following is a recreation of an issue I saw while trying to migra...
(1) odpowiedzi
2017-01-11 21:01 POST from Typescript to Web API API, unable to pass a JSON Object »
I am trying to pass a JSON Object from a typescript POST call to a Web API method. Fiddler shows that the object has been converted into JSON and the...
(1) odpowiedzi
2017-01-11 21:01 Osx NSTask / Process, combine standardError and standardOutput in one string while also having both separated »
I'm trying to get a separated standardError output and standardOutput string but I also need the full string. Following code will explain my case com...
(0) odpowiedzi
2017-01-11 20:01 Why does MySQL treat Japanese alphabets hiragana and katakana the same, and how can you make it compatible with Django? »
This question was partially addressed here, but I wanted to ask more specifically: MySQL difficulties - Hiragana and Katakana are treated as the sam...
(0) odpowiedzi
2017-01-11 20:01 Highest unique prime factors in range »
I am trying to scale a solution I have to a Hackerrank practice question. The question, in summary is, find the max number of prime factors in a rang...
(2) odpowiedzi
2017-01-11 20:01 What is the new version of csrf in Django 1.10 »
I'm following a tutorial and getting a TypeError with this line: c.update(csrf(request)) This is the full view from django.shortcuts import render...
(1) odpowiedzi
2017-01-11 20:01 How to get a database entry with a specific language »
Using I18n for Ruby on Rails 4.0.0 I need a database entry for English, even though I'm currently in local => "de". The code is = link_to tag.name, :...
(1) odpowiedzi
2017-01-11 20:01 How do you create an inline edit button for ASP.NET MVC Core, not using the Entity Framework? »
I've tried various things, but I have this incomplete snippet, @foreach (var student in @Model) { <tr> <td...
(1) odpowiedzi
2017-01-11 20:01 woocommerce PayPal link error - comma instead of dot »
i am using WooCoomerce and Wordpress in their newest versions. On top i have German Market installed. I enter my prices like 24,99€. The decimal pos...
(2) odpowiedzi
2017-01-11 20:01 Lazy require of extension.binding did not set the binding field »
I have a photos.html that is running on a local php server with a bunch of javascript and html. Whenever I load the page, I get a (CONTENT_SCRIPT cont...
(0) odpowiedzi
2017-01-11 20:01 Angular datatables - add row in a dynamic column table »
I have a datatable table with a variable columns number and I need to add rows to it. That's how I set the columns: var columns = getColumnsName(); ...
(1) odpowiedzi
2017-01-11 19:01 Get Data from UUID in Swift 3 »
I have the following code written in Objective C that I am trying to get working in Swift 3. Some of the functions equivalents do not appear to be ava...
(2) odpowiedzi
2017-01-11 19:01 PLSQL Performance Issue »
This is more of a doubt than a problem. I have a requirement of just selecting some of the common fields from one table and insert it into a different...
(1) odpowiedzi
2017-01-11 19:01 EJS variable only being changed in current scope »
I recognise that the issue here is to do with scope, although I don't understand how, the counter variable defined in EJS outputs 0,1,1 when the site...
(0) odpowiedzi
2017-01-11 19:01 Sinatra: form data is missing from the params hash upon submission »
I’m writing a pretty basic CRUD app in Sinatra (it’s a CRUD app that makes CRUD apps, for what it’s worth). The create functionality works fine,...
(1) odpowiedzi
2017-01-11 19:01 Sinatra Github OAuth Problems »
I am using the sinatra_auth_github gem to try and put GitHub OAuth into my Sinatra app. I was testing using the sinatra-auth-github-test example app f...
(1) odpowiedzi
2017-01-11 19:01 How to stop bool change value once its true? »
i am working with realm data saving. i have create a local bool to see if the value has modify for several textfield . i made something like this. but...
(0) odpowiedzi
2017-01-11 18:01 Why doesn't this if statement execute? »
I am trying to make a word guessing game. Everything works except for the last if statement part. If the user guesses the name correctly, it doesn't p...
(1) odpowiedzi
2017-01-11 18:01 Add box shadow to upper 50% of a div »
I want to apply the box shadow to the upper half (upper 50%) of the div. I have tried everything but failed. div{ width: 100px; ...
(2) odpowiedzi
2017-01-11 18:01 What's the difference between a required initializer and a designated initializer? »
I was creating my own custom tableViewCell and then I got an error saying: 'required' initializer 'init(coder:)' must be provided by subclass of ...
(1) odpowiedzi
2017-01-11 18:01 SQL Server performance: 50 columns vs single binary/varbinary »
Is it possible to improve SQL Server 2008 R2 (and newer) insert performance by replacing (say) 50 float columns with a single binary(n) (n being 50 x ...
(2) odpowiedzi
2017-01-11 18:01 ColdFusion handling AJAX JSON data »
I am setting up a local API as an additional step in my external API call using AJAX. The sequence goes like this: Ajax call passes data to localAPI...
(1) odpowiedzi
2017-01-11 18:01 DataAnnotations range in View number helper »
I'm using Entity Framework with Data Annotations, in my Model (myModel.cs) i have this field: [DisplayName("My object")] [Required] [Rang...
(1) odpowiedzi
2017-01-11 18:01 Get viewers for Facebook Live Video without overrating »
I need to get a statistics about FB Live Video. For the beginning I want just live_views, but later need reactions and likes also. Facebook API Docum...
(0) odpowiedzi