Data dodania Pytanie
2016-08-18 23:08 cannot load such file -- bundler/setup (LoadError) (bad ruby version) »
I'm trying to deploy a rails app on a VPS. I've already done that but this is the first time I get this error, and I can't find a way to solve it, eve...
(0) odpowiedzi
2016-08-18 23:08 Rails not loading fixtures in test with similar names with STI »
I have 3 classes with STI and I want to load fixtures for each: Employee Admin < Employee OtherEmployee < Employee My test_helper files has ...
(1) odpowiedzi
2016-08-18 23:08 Swift - how to declare variable/functon of/with enums of different type? »
I need to declare variable which will store array of enums of different type, eg.: var enums = [EnumTypeA.Option1, EnumTypeB.Option2] Compiler sta...
(2) odpowiedzi
2016-08-18 23:08 Create Coldfusion JSON Structure with Nested Arrays of Structures »
In ColdFusion (REST/C, I am trying to fill a Structure called "stores". Nested inside is an array of Reports and nested inside the Reports is an arra...
(2) odpowiedzi
2016-08-18 22:08 What does this strange format string "{[[[]}" do? »
I come across the below in some code from an ex employee. the code is not called, from anywhere, but my question is can it actually do something use...
(2) odpowiedzi
2016-08-18 22:08 Query Postgres JSONB where key doesn't exist »
Given a set of data. 1 | { 'completed': true } 2 | { 'office_completed': false } Is there a way to query office_completed != 'true' and have it ret...
(2) odpowiedzi
2016-08-18 22:08 linker command failed with exit code 1 (use -v to see invocation) with cocoapods swift »
I'm trying to compile my project in swift with cocoapods and I'm getting this error: ld: warning: directory not found for option '-F/Users/platis/Lib...
(2) odpowiedzi
2016-08-18 21:08 Change Window.print() paper orientation »
I want to change paper mode (orientation) on the window print. I want to change it programatically but i could not find anything. window.print() ...
(1) odpowiedzi
2016-08-18 21:08 Datatables deferRender not deferring »
I don't understand what is wrong with this implementation. Do note that my data is "empty-ish" as I plan on created cells based on their row/col coor...
(1) odpowiedzi
2016-08-18 21:08 How to restrict user access to a particular page - Wordpress »
I've got this brilliant piece of code that restricts access to the wp-admin login page unless the user logged in is an admin to the site: add_action(...
(2) odpowiedzi
2016-08-18 20:08 Lifetime of temporary objects during list-initialization »
I always assumed, that temporary objects live until the end of a full-expression. Here is however a curious difference between initializations of a s...
(1) odpowiedzi
2016-08-18 19:08 What does pip install . (dot) mean? »
I have a shell script which last line is following: pip install . What does it do? When we run pip install package-name, it will install specified ...
(1) odpowiedzi
2016-08-18 19:08 How to setup caching DB based on update schedule »
I use an external datasource for one of my applications. That database gets updated nightly, but after the update, it is static. (AWS, Redshift, Postg...
(0) odpowiedzi
2016-08-18 19:08 How to include view helper in RSpec »
I have a module with a custom view helper. Actually it uses the modified code of link_to helper. Just append a query string to the generated link. I h...
(0) odpowiedzi
2016-08-18 19:08 ASP.NET Core API only returning first result of list »
I have created a teams web api controller and trying to call the GET method to get the json result of all the teams in the database. But when I make t...
(1) odpowiedzi
2016-08-18 19:08 VS 2015 crashing when editing razor views »
I got this problem: while debugging ASP.NET MVC projects I should be able to update razor views with ease and refresh the browser to see the imediate ...
(1) odpowiedzi
2016-08-18 19:08 Python: Order of execution of 2**3**4 »
In Python 2**3**4 = 2417851639229258349412352. So the expression is executed from right to left, while the documentation says left to right. What is t...
(2) odpowiedzi
2016-08-18 18:08 Duplicate key value violates unique constraint during rspec »
How to avoid Duplicate key value violates unique constraint i assume that id:1 already in use, but i need to strongly setup id, because i have metho...
(1) odpowiedzi
2016-08-18 18:08 Postgresql jsonb (Rails) - query multiple values, via an array, in a single json attribute »
In Rails I can do .where(:attr => [val1, val2, val3]) and I'll get back all the rows matching any of those val1-3. I'm using Postgres/Postgresql a...
(1) odpowiedzi
2016-08-18 18:08 Null Replacement in Oracle Pivot Table »
I am currently using the following code to pivot a table and it works perfectly. Now I want to replace any null values with 'No Data' after it is su...
(2) odpowiedzi
2016-08-18 18:08 How can I tell when an ActiveRecord::Base.transaction block commits? »
A common problem with background jobs and ActiveRecord is when jobs get enqueued and executed before a needed model is committed to the database. Ac...
(1) odpowiedzi
2016-08-18 18:08 Rails ActiveJob Background Job Keeps Pinging Mailchimp Repeatedly »
I have a rails app (v4.2) I'm developing and when a user registers for the site, I'd like to sign them up to my Mailchimp mailing list. I've implemen...
(1) odpowiedzi
2016-08-18 18:08 SQL query to make a list and more »
Below is a table with data inserted. CREATE TABLE police(event_id VARCHAR(100), search_type VARCHAR(1000), reported_by VARCHAR(10...
(2) odpowiedzi
2016-08-18 17:08 How to split List into segments »
Suppose I need to split a given list into segments of 3 like this: val l = (0 until 5).toList val segments = l.tails.map(_.take(3)).filter(_.size == ...
(1) odpowiedzi
2016-08-18 17:08 How to load related entities with the Entity Framework Core »
I am exploring with Entity Framework Core and started off by using the code first approach while reading through this guide https://docs.efproject.net...
(1) odpowiedzi
2016-08-18 17:08 Recuperate Non inserted rows Oracle »
I have 10.000 rows to insert into a table. For an Insert With FORALL in oracle... FORALL x IN TABLE_NAME.First .. TABLE_NAME.Last INSERT INTO TA...
(1) odpowiedzi
2016-08-18 17:08 Create a collection from collections? »
I get two collections: $user = User::all(); $access = Access::all(); I wish to pass these to a view in one data collection. I've tried this: $dat...
(1) odpowiedzi
2016-08-18 17:08 Django query, average count distinct »
I have a Donation model defined as: Donation project = models.ForeignKey(Project) user = models.CharField() Each user can donate multiple t...
(1) odpowiedzi
2016-08-18 16:08 Qt emit taking 30ms, is that possible? »
I'm trying to improve the performance of my project so I'm trying to figure out which operation is taking time. I've noticed that my emit function i...
(1) odpowiedzi
2016-08-18 15:08 AWS authentication to Amazon Cognito »
I'm a newbie on mobile dev. Im trying to authenticate to Amazon Cognito. I first login to Credentials Provider using a username, pin, platform and dev...
(0) odpowiedzi
2016-08-18 15:08 Coldfusion Builder Plugin doesn't load »
I have to say that while I love ColdFusion Builder, I hate setting it up. Every time I have to take 4 or 5 installs before I get it right. At the mo...
(0) odpowiedzi
2016-08-18 15:08 shell command psql vs php pg_query performance »
I have doubts about the speed of a query in postgres. I run this query in psql (shell): "EXPLAIN ANALYZE select * from historial where empresa = 2";...
(1) odpowiedzi
2016-08-18 15:08 Bypass ORA-01489 on LISTAGG function use »
Within PLSQL Developer v8.0.4 I'm running into an error when attempting to use the LISTAGG function with multiple SELECT t.order_id, t.DT, t.compone...
(0) odpowiedzi
2016-08-18 15:08 DataTable Multi-sorting not working »
Bumped into strange situation. All i want to do is that default ordering for this kind of table would be header4(asc) + header6(desc) You can notice...
(0) odpowiedzi
2016-08-18 15:08 double free or corruption error when copying object with memcpy »
I have the following code: #include <iostream> #include <string> #include <cstring> struct test { std::string name; size_t...
(3) odpowiedzi