Data dodania Pytanie
2017-10-12 07:10 Find last inserted record - Postgresql »
The database structure is not optimally constructed, so this is about getting the best out of the current condition. I just want to find the last in...
(1) odpowiedzi
2017-10-12 07:10 Why we use assert() and assert_options() in php? »
I am new to using PHP and learning it by reading the documentation on php.net- currently the page for assert() to know about those assert() and assert...
(2) odpowiedzi
2017-10-12 06:10 Rails Model scope chaining based on dynamic scope name list »
Let's say I have some model class MyModel < ApplicationRecord scope :opened, -> { where(status: 'open') } scope :closed, -> { where(stat...
(1) odpowiedzi
2017-10-12 06:10 How to do database migration using python script? »
is it possible to do migration from python script? I am trying to use django on Heliohost where there is no shell but I can use python script. somet...
(2) odpowiedzi
2017-10-12 05:10 Trying to prevent duplicate values to be added to an array. »
Having an issue with my project when it comes to adding a duplicate value to an array on a click event. when I push the clicked item's value to the a...
(3) odpowiedzi
2017-10-12 05:10 replacing the fonts with rereplace or replace »
i need some help here with regards to replace or maybe rereplace i am trying to replace the font-family:anything to font-family:swiss7 but if there ...
(2) odpowiedzi
2017-10-12 05:10 Using Clisp on Git Bash »
This is just a quick question, but how do you run a "clisp" command in Git Bash. It works in Windows Powershell, but not in Git Bash. (The "clisp" co...
(1) odpowiedzi
2017-10-12 04:10 Get very first element of a multi bracket list in Lisp »
If I have a list as follows: (((X))) I want to get just X and not get the brackets In LISP, if I do CAR, I'll still get the brackets. Is there a...
(2) odpowiedzi
2017-10-12 04:10 Deleting PrecompiledViews.dll from ASP.Net Core 2 API »
In .NET Core 2 Web API app, Publish to folder feature in MS VS 2017 produce: <ProjectAssembly>.PrecompiledViews.dll <ProjectAssembly>.Pre...
(1) odpowiedzi
2017-10-12 04:10 How can I read a signed integer from a buffer of uint8_t without invoking un- or implementation-defined behaviour? »
Here's a simple function that tries to do read a generic twos-complement integer from a big-endian buffer, where we'll assume std::is_signed_v<INT_...
(1) odpowiedzi
2017-10-12 03:10 Scala - Double every 2nd element in list »
I wanted to write a function that, given a list of Ints, returns a list in which every 2nd element has been doubled. In Haskell the solution seems ea...
(7) odpowiedzi
2017-10-12 03:10 swift 4: pattern match an object against a tuple (Tuple pattern cannot match values of the non-tuple type) »
I have a custom struct with a few fields, and I'd like to pattern match against it in a swift switch statement so I can customise the matching, by com...
(2) odpowiedzi
2017-10-12 01:10 Query mongodb based on form parameter »
I am trying to query mongodb based on form parameter. <form action="/word/" method="GET"> Get quote:<input type="text" name="word" ...
(2) odpowiedzi
2017-10-11 23:10 utf16 vs utf-16 »
Which line from below is correct? I do know all these available encodings? with open(filename, 'w', encoding='utf16') as fp: with open(filename, 'w'...
(1) odpowiedzi
2017-10-11 23:10 Binary Search comparison »
So I have some code which performs a binary search. Why is it essential for L and U to be compared with <=. Would I not get the same result with &l...
(2) odpowiedzi
2017-10-11 23:10 How do you create a query which returns dynamic column names in Postgresql? »
I have two tables in a reporting database, one for orders, and one for order items. Each order can have multiple order items, along with a quantity fo...
(1) odpowiedzi
2017-10-11 23:10 Ruby: How to include outside module in Rspec test »
I have 2 projects, a "common code" project that i have made into a big module that pulls in other modules like so: Here is the folder structure of "m...
(1) odpowiedzi
2017-10-11 22:10 Append formatted string to already formatted string from UITextView? »
How can a NSAttributedString formatted string be appended to an existing textView.attributedText formatted string from UITextView? From this answer...
(1) odpowiedzi
2017-10-11 22:10 Optimizing loop on large data file in R, perhaps using Rcpp »
I have a loop in R that that's quite slow (but works). Currently, this calculation takes about ~3 minutes on my laptop, and I think it can be improved...
(1) odpowiedzi
2017-10-11 22:10 Hide Specific DIV Class if Other Class is Present »
I am working with wordpress. I am trying to hide the add to cart button on the product page until the customer answers all the questions. The plugin I...
(1) odpowiedzi
2017-10-11 22:10 Odata with Asp.net and angularjs »
I am following up in the course AngularJS Front to Back with Web API using ASP.net, we are trying to do queries using ODATA so i added this code in th...
(1) odpowiedzi
2017-10-11 22:10 How to convert \303\255 to "í" in Python? »
I'm using Google Speech API and since i'm using LongRunning functions for wav files, and they're all in pt-BR language, they're returning with content...
(0) odpowiedzi
2017-10-11 21:10 Using JUnit 5 with Java 9 without Maven or Gradle »
The Description: I would like to create a JUnit test using JUnit 5 in Eclipse (Oxygen 4.7.1a). This JUnit test should be inside a seperate src folder...
(1) odpowiedzi
2017-10-11 21:10 Get hash of id => property in Rails »
I have an ActiveRecord model like this: class Person < ActiveRecord::Base attr_accessible :name end and need to get a hash mapping Person's id...
(3) odpowiedzi
2017-10-11 21:10 Cloud Firestore in Cloud Functions »
I want to integrate the new Cloud Firestore to my Cloud Functions. I updated node.js and installed the latest firebase version on my mac. The Docume...
(3) odpowiedzi
2017-10-11 21:10 How to get the View to return the ID via a ViewModel to the controller? »
I currently have a view which returns an IEnumerable collection of Technicians via the TechnicianViewModel. The view model populates fine and displays...
(1) odpowiedzi
2017-10-11 21:10 Implicitly virtual constexpr function »
Virtual functions cannot be constexpr however, when a function is implicitly virtual through inheritance, the compilers I have tried don't complain ab...
(1) odpowiedzi
2017-10-11 20:10 Proper use of the * operator in a oneline if statement python »
I'd like to know if its possible to use the * operator in a oneline if to achieve the following functionality: if node['args'] != None: return_va...
(4) odpowiedzi
2017-10-11 20:10 Is there a way to remove the loop using numpy? »
I have a 3D numpy array input_data (q x m x n), that I am using to build histogram data to eventually plot, which is stored in plot_data (m x n x 2). ...
(2) odpowiedzi
2017-10-11 20:10 ASP.NET Core 2.0 Dependency Injection default instance »
I'm using ASP.NET Core 2.0 and Microsoft.Extensions.DependencyInjection. I have a few class where I don't want to specified its implementation or I do...
(2) odpowiedzi
2017-10-11 20:10 SQL Query Inner Join and OR »
How do i select using INNER JOIN and OR, i tried using below query but it doesn't return anything also no error SELECT * FROM chatroom_message cm INN...
(4) odpowiedzi
2017-10-11 20:10 Custom sortable dropdown for JQuery datatable column »
I have added dropdown selection in jQuery datatable. table.columns().every(function() { var column = this; var select = $('<select><...
(1) odpowiedzi
2017-10-11 19:10 Simple Form - Custom Input Not Being Recognized »
So I'm wanting to have a custom input component defined for a simple form and have the following: # app/inputs/gds_input.rb class GdsInput < Simpl...
(1) odpowiedzi
2017-10-11 19:10 How can add separate default routes for GET and POST requests in ASP.NET Core 2.0 MVC? »
Currently I have the following in my Startup.cs class: app.UseMvc(routes => { routes.MapRoute("default", "api/{controller}/{action=Get...
(1) odpowiedzi
2017-10-11 19:10 Gulp production build terminated »
I am using angular 1.4.14, bower 1.8.0 and npm 3.6.0. I have used the following yeoman generator,https://github.com/dustinspecker/generator-ng-poly, t...
(0) odpowiedzi