Data dodania Pytanie
2017-05-18 07:05 my edit button doesnt work on the next page (only work on the first page) »
my edit and delete query only work on the first page of datatables, but not on the second page. i'm using ajax and jquery. i'm new and this is for my ...
(1) odpowiedzi
2017-05-18 06:05 Include git commit hash and/or branch name in C/C++ source »
I would like to include Git information, such as commit hash and branch, in my compiled C and/or C++ code. It should be automatic, so that I do not ne...
(3) odpowiedzi
2017-05-18 04:05 Is there a way to escape pound character (#) in ColdFusion? »
I have a function in a CFC file that takes a JSON string as an argument. The function then uses the deserialized data to execute an UPDATE query. In t...
(2) odpowiedzi
2017-05-18 03:05 CSRF With Google Client PHP Authentication Flow »
I am integrating Google Sign in with Open ID. The documentation says that I need to create an anti-forgery state token. I have read several references...
(0) odpowiedzi
2017-05-18 03:05 Laravel dynamic controller route »
I use Laravel 5.4 and now I want to make dynamic route to controller which mean I can access UserController and Profile function throw route directly,...
(1) odpowiedzi
2017-05-18 02:05 I'm told to convert a lambda with a parameterized constructor to a method reference »
Lets say I have a class Gizmo with a constructor that takes a String. Lets say I want to convert a List<String> to a List<Gizmo>. I might...
(4) odpowiedzi
2017-05-18 02:05 Rails Integration tests don't start fresh »
I'm having difficulty running multiple integration tests on Rails 4 (now called system tests in Rails 5). Environment: Rails 4 / Minitest / Capybara ...
(1) odpowiedzi
2017-05-18 01:05 How to make my SQL query search several words in the sentence even if they do not follow each other »
I have a SQL query for my search form. $term = $request->get('term'); $queries = Article::where('title', 'LIKE', '%' . $term . '%')->publishe...
(3) odpowiedzi
2017-05-18 00:05 How to use Data Binding and Kotlin in Android Studio 3.0.0 »
I just started to use Android Studio 3.0.0, but every time I try to build my project I get this error: Error:Circular dependency between the followin...
(1) odpowiedzi
2017-05-18 00:05 How to use the method DeserializeJSON in a ColdFusion file »
I have this code: I got an error on page when execute this code. I am trying to figure out how does it look an object that is being deserialized from ...
(1) odpowiedzi
2017-05-17 23:05 Why isn't rack-cors filtering incoming requests, according to Rspec »
I'd like my Rails 5 API-only app, for now running on http://localhost:3000, to only accept requests from my NodeJS front-end app, for now running on h...
(1) odpowiedzi
2017-05-17 23:05 Eloquent Bulk insert in MySQL using firstOrCreate function? »
How could I bulk insert in MySQL using firstOrCreate function on Laravel? I am sending data through RESTfull API My Model: { "hashtags": [{ ...
(1) odpowiedzi
2017-05-17 22:05 Bootstrap carousel indicators cycle but don't link »
I have a carousel_helper.rb file that should allow me to drop a carousel into a View with a single call to a <%= carousel_for(images) %> functi...
(0) odpowiedzi
2017-05-17 22:05 Find Models with PaperTrail included on Rails app »
I'm implementing a form in Rails to search previous versions of a record - versioning implemented with PaperTrail gem. The form will contain a dropdo...
(1) odpowiedzi
2017-05-17 22:05 Permutations of strings takes too long to solve »
I'm creating an array of permutated and unique letters in a string, only to sort them alphabetically and find the middle element in the set. def mid...
(5) odpowiedzi
2017-05-17 22:05 Augment a database query with data from a service »
I have a query from models in my database, and some further optional information that comes from an external service, that will filter my existing que...
(1) odpowiedzi
2017-05-17 22:05 Removing common values from two lists in python »
Hi let's say that I have two lists in python and I want to remove common values from both lists. A potential solution is: x = [1, 2, 3, 4, 5, 6, 7, 8...
(5) odpowiedzi
2017-05-17 22:05 Undocumented Java regex character class: \p{C} »
I found an interesting regex in a Java project: "[\\p{C}&&\\S]" I understand that the && means "set intersection", and \S is "non-whi...
(4) odpowiedzi
2017-05-17 21:05 Connection to postgres server on Azure fails when I use "sslmode=verify-full" »
When I select "sslmode=verify-full" when connecting to my postgres server in Azure, the connection fails with the following error: server certificat...
(1) odpowiedzi
2017-05-17 21:05 .NET Core: Finally block not called on unhandled exception on Linux »
I have created the following C# program: namespace dispose_test { class Program { static void Main(string[] args) { ...
(1) odpowiedzi
2017-05-17 21:05 Produce a NestedHstore hash with Rails fixtures »
I have a field called custom that is defined as a NestedHstore: # project.rb serialize :custom, ActiveRecord::Coders::NestedHstore I create fixture...
(0) odpowiedzi
2017-05-17 21:05 How to use Ramda/JS correctly for composing functions »
I am trying to use a functional approach to solve a particular issue as part of an exercise in learning Ramda.js. So I have this test: it.only("map ...
(1) odpowiedzi
2017-05-17 21:05 Swift Decimal isWholeNumber? »
Using Swift 3. I am finding a lot of strange solutions online for checking if a Decimal object is a whole number. Everything feels far more complicat...
(1) odpowiedzi
2017-05-17 21:05 Sort data in React native from Firebase database »
I just found in https://firebase.google.com/docs/database/web/lists-of-data this You can only use one order-by method at a time. Calling an order...
(0) odpowiedzi
2017-05-17 21:05 Python Django Rest Framework UnorderedObjectListWarning »
I upgraded from Django 1.10.4 to 1.11.1 and all of a sudden I'm getting a ton of these messages when I run my tests: lib/python3.5/site-packages/rest...
(1) odpowiedzi
2017-05-17 21:05 500 Internal Server Error Trying to Send an SMS using Twilio »
Using Heroku to host a Sinatra app. I have a route that's supposed to send an SMS. It returns a 500 internal server error instead. Everything works p...
(1) odpowiedzi
2017-05-17 20:05 ASP.NET Core WebAPI Security Considerations »
My WebAPI is, just that, an API backend for my UI to consume. In fact, I will have perhaps 10's of WebAPI services that my UI will use. I'm having di...
(1) odpowiedzi
2017-05-17 20:05 How to to handle token mismatch exception in laravel post ajax? »
In my Laravel 5.4, I use the following code in my ajax using jQuery: $.ajax({ url : 'http://example.com/addmember', ...
(2) odpowiedzi
2017-05-17 20:05 Tuple with `let` or `var` »
Let's say I have something like this: func myFunc() -> (Any, Any)? {...} func anotherFunc() { if var (a, b) = myFunc() { // a is muta...
(1) odpowiedzi
2017-05-17 20:05 Aggregation in JAVA with Streams, is this a good approach? »
I'm playing a little bit with Java streams and i came up with a solution for a problem that i would like to share with you and see if my approach is c...
(2) odpowiedzi
2017-05-17 20:05 Coldfusion exception not caught by containing try/catch »
You can run this cftry gist with either the first or second indicated block of code uncommented to see the problem. <cffunction name="alpha" retur...
(0) odpowiedzi
2017-05-17 20:05 Scala method override in Java »
I have a method in Scala with below syntax . I want to override this method in a java sub class. I am not sure what will be the equivalent syntax in J...
(2) odpowiedzi
2017-05-17 20:05 Monkey Patching a Class Method in Ruby Mail Module »
I am currently working on a monkey patch in the JRuby Mail-2.6.0 module. Specifically, I want to patch the ssl_context class method. If it helps, this...
(0) odpowiedzi
2017-05-17 20:05 Make Laravel / PHPUnit remember all requests done »
I use Laravel and PHPUnit. In my tests, I have a lot of requests which tend to test my REST-like API, and it's doing the job quite nicely. Now I wonde...
(1) odpowiedzi
2017-05-17 20:05 Fail to push to Heroku: /app/.heroku/python/bin/pip:No such file or directory »
I am trying to push a Django project to Heroku, but it keeps telling me that the following: /app/.heroku/python/bin/pip: No such file or directory ...
(3) odpowiedzi