Data dodania Pytanie
2017-08-16 12:08 Laravel paginate() not working when passed a big number »
I want to implement paginate() function with 100k records. For that I'm using below code: $user_obj = new User(); $users = $user_obj->paginate(100...
(2) odpowiedzi
2017-08-16 12:08 Appending a C-array to a vector in reverse order in C++98/03 without a for-loop »
Its pretty straightforward to append a C-array to a vector (in C++ 98/03) like so: std::vector<int> vec; const int array[5] = { 1 , 2 , 3 , 4 ,...
(3) odpowiedzi
2017-08-16 11:08 Array of multiple types C# (including other arrays) »
Is there a way to have an array of multiple types in c#, including other arrays? Apparently I can do this: object[] x = {1,"G",2.3, 2,'H'}; but not...
(2) odpowiedzi
2017-08-16 11:08 Why is runnable callbacks destroying activity automatically? »
I wanted to know if there is a possibility that we could handle/detect runnable callbacks with delay (postDelayed method) on android? For example, I ...
(3) odpowiedzi
2017-08-16 11:08 Can't get ejs file »
I need to call an ejs file in another ejs file and exactly in function but i have always "can not get file" If i do an include file outside the functi...
(1) odpowiedzi
2017-08-16 11:08 Output of Laravel datatable »
I am using Laravel 5.4 and Datatable 7.x. I am using AdminLTE also. I need a column named 'Status'. I wrote below code in controller. return Datatab...
(1) odpowiedzi
2017-08-16 10:08 What does double splat (**) argument mean in this code example and why use it? »
So I've been over Traiblazer and Reform documentation and I often see this kind of code class AlbumForm < Reform::Form collection :songs, popula...
(1) odpowiedzi
2017-08-16 10:08 yield from a list of generators created from an array »
I've got this recursive generator var obj = [1,2,3,[4,5,[6,7,8],9],10] function *flat(x) { if (Array.isArray(x)) for (let y of x...
(5) odpowiedzi
2017-08-16 10:08 Angular UI-Router ui-view in ui-view »
I have ui-view in index.html and I have a page for info and there I want to put second ui-view with 4 links. In my index.html <body ng-app="myAp...
(1) odpowiedzi
2017-08-16 10:08 Ruby on Rails: has_many self join »
Rails 5. I have been trying to create a self referencing has_many relationship based on this tutorial: https://medium.com/@jbmilgrom/active-record-m...
(1) odpowiedzi
2017-08-16 10:08 Routing for HTTP Get without arguments doesn't work (web.api) »
Peculiar situation, I have this method [HttpGet] [Route("api/models/getallmachines")] public IHttpActionResult GetAllMachines() { ...
(2) odpowiedzi
2017-08-16 10:08 No module named soundfile »
Whenever I try to import soundfile I get the error ImportError: No module named soundfile I installed pysoundfile seemingly without trouble: $ sud...
(2) odpowiedzi
2017-08-16 09:08 Getting the field of form angular »
I have a form with some fields. I'm validating the fields with css classes:(if the field is invalid and the user touched it, then input's border-color...
(3) odpowiedzi
2017-08-16 09:08 C++: Performance of Switch Statement vs Lookup tables »
I tried to compare the performance of switch statement and lookup tables as below. This is the code using switch statement #include <stdio.h> ...
(2) odpowiedzi
2017-08-16 09:08 How to hide ghost image in reactjs drag event? »
I'm using onDrag method in react js. I want to happen drag while i'm dragging the image, but I don't want to show the ghost image. I used css "-webkit...
(1) odpowiedzi
2017-08-16 09:08 How can the User ID in Firebase Authentication be the same across all Authentication Providers (Google, Facebook, Github)? »
Google says in this Video: https://www.youtube.com/watch?v=8sGY55yxicA&t=1m3s The user information contains a unique id which is guaranteed to...
(1) odpowiedzi
2017-08-16 09:08 How to make a safer C++ variant visitor, similar to switch statements? »
The pattern that a lot of people use with C++17 / boost variants looks very similar to switch statements. For example: (snippet from cppreference.com)...
(2) odpowiedzi
2017-08-16 08:08 How to retrieve data between two dates with the format yyyy/m/d from database »
I want to retrieve the data from database but based on date, eg: I want to display data from 2015/01/01 until now.... <?php //Importing Da...
(3) odpowiedzi
2017-08-16 08:08 Performance Differences Capturing External Variables in Blocks via __block vs Not »
When bringing externally declared variables into a block... Using the __block directive captures a variable by reference... Variables local to th...
(2) odpowiedzi
2017-08-16 08:08 How to use a method reference on a static import? »
When using map functions in java I can do the following: import com.example.MyClass; someStream.map(MyClass::myStaticMethod) but in my project we ...
(4) odpowiedzi
2017-08-16 08:08 Using LINQ to get all property with the exact same value? »
I have a list of data like this: Prod1: Id=1, Name="Book", Active=true Prod2: Id=2, Name="Book", Active=false Prod3: Id=3, Name="Book", A...
(2) odpowiedzi
2017-08-16 08:08 How to build a query in Laravel »
I'm new to laravel and have some problems with the understanding how the query builder is working. I created a laravel project and connect it success...
(3) odpowiedzi
2017-08-16 08:08 Querying an array within an array with Postgres JSONB query »
I have some JSON in a field in my Postgres 9.4 db and I want to find rows where the given name is a certain value, where the field is named model and ...
(1) odpowiedzi
2017-08-16 07:08 AngularJS Directive for checking if email already used »
I follow a solution for checking if a username is already present in the DB: defined in this topic angularjs: custom directive to check if a username ...
(1) odpowiedzi
2017-08-16 07:08 React Components - Extending, Customizing and reusing »
We are developing React Components as part of product development. Now we want that other teams can reuse these components and develop something for ...
(0) odpowiedzi
2017-08-16 07:08 The WC_Order_Item_Product object in Woocommerce 3 »
Ok, reading up on the changes in Woocommerce 3.0+, it seems that you can not access this class directly anymore, so I would assume that this code need...
(2) odpowiedzi
2017-08-16 07:08 Using Facebook and Google Authentication »
In my Angular2 app I am using Google, Facebook, Twitter and Github authentication. Twitter works fine. The problem is with Facebook and Google. Fac...
(1) odpowiedzi
2017-08-16 07:08 Algorithm to create ordered sequences from sets with common subset »
I am looking for an algorithm to solve this problem in the optimal way: Given: n sets of elements (where usually some elements appear in more than on...
(0) odpowiedzi
2017-08-16 06:08 Codeigniter CSRF error: “action requested not allowed.” »
My site was working just fine, no issues, then all of a sudden I receive error "An Error Was Encountered - The action you have requested is not allowe...
(0) odpowiedzi
2017-08-16 06:08 Using Spark Structured Streaming with Trigger.Once »
There is a data lake of CSV files that's updated throughout the day. I'm trying to create a Spark Structured Streaming job with the Trigger.Once feat...
(0) odpowiedzi
2017-08-16 05:08 Sequelize: Modify output of date timestamp using Getters »
I need to convert my signup_at timestamp to a certain format each time it's selected from the database. I want to use a getter for this, but it doesn...
(1) odpowiedzi
2017-08-16 04:08 Hacking RJS behaviour in Rails 5 »
I have a old rails 2.x project that I have converted mostly over to rails 5. One issue is some of my actions used RJS, so it looked like: if request...
(2) odpowiedzi
2017-08-16 04:08 Propagate a custom event from a UICollectionViewCell »
I have a custom UICollectionViewCell with a button inside it. When I tap the button, an event is fired inside that subclass. I want to then trigger an...
(2) odpowiedzi
2017-08-16 04:08 Pyspark unable to insert to a DB table from data frame »
PySpark throws the error ": org.postgresql.util.PSQLException: ERROR: must be owner of relation " However using the same creds I am able to perform In...
(0) odpowiedzi
2017-08-16 04:08 Laravel 5.4 how can I get the sum of the total new applications per month »
I have in my application that I will get all the reports of total new application per month. Here is my applications table structure: public functio...
(1) odpowiedzi