Newest Questions

Q&A for professional and enthusiast programmers

How to cancel a realm transaction in process

I'm trying to cancel a transaction in Realm, inside of my RealmRecylerView when an item is deleted, a Snackbar is presented, making it possible to undo the request. When I make multiple delete ...

I cannot create a new object using javassist if I try to override a method

I'm injecting a new method in a class using CtNewMethod.make and everything seems to be working fine, if the object I use in the method is not modified: I made a custom method to get the object: ...

Using jq to find and replace elements from Json sub collection

I am trying to parse convert Json Task definition with new image. I want to change the "image": "docker.org/alpha/alpha-app-newgen:12.2.3" value in Json to "image": "docker.org/alpha/alpha-app-newgen:...

How to replace a existing columns of one dataset with new column of other dataset of same type in asp.net

Actually I've binded a GridView with a DataSet after I've edited in the GridView column now i want to replace the existing column of DataSet and want to save to database can anyone tell me the easy ...

Assert a function result of boolean/string in PHPUnit

I'm using PHPUnit to auto-test my app. I want to assert the result of a function call which can return a boolean or a string. My code looks like this: $myExample = new MyExample(); $value = $...

How to dump output into a file rather than on terminal

I am using an expect script to login into a machine via serial console and reboot the machine. I can see all the logs on terminal. Is there a way these logs are moved into log file and only display ...

Laravel: How to change default login error message: 'these credentials do not match our records'

I want to change the default login validation error message like: Username & Password doesn't match instead of these credentials do not match our records How to do this ?

Gmail API php listUserMesages() null

I am doing a very basic test of THE gmail api using php. I am using the code supplied by google (after a successful autogrization via OAuth followed by a successful -- code 200 -- test run on the api ...

bootstrap columns - page or containers?

I have a sidebar and main content, however, inside my main content i want to have 3 rows. The top row, will span the whole main content. The middle row has 3 columns equally spaced spanning the main ...

JPA Entity with or without EntityManager logic

What is best practice when working with jpa entities? I thought that I should only write named queries and leave the entity dumb but sometimes its nice to have a static method in entity accepting ...

Support vector machine with GPU implementation

I'm currently using torch in my work, however all SVM packages available are without GPU.Are there any cuda svm available ? it can be in any cpp/python/lua... I found cuda libsvm http://mklab.iti.gr/...

HTTPS for Shiny apps?

Any ideas how I can add HTTPS to Shiny apps? I came across a few guides below but not sure whether they are reliable or not. Adding Authentication to Shiny Server in 4 Simple Steps ADD ...

How to test a single custom 404 error page in rails test environment in ci?

We have a custom 404 error page. We wanted to test it so we tried changing config/environments/test.rb to have config.consider_all_requests_local = true which worked - but did it for all ...

Using car::Anova package for a doubly-multivariate MANOVA in R

I'm trying to run a repeated-measures MANOVA in R, which also contains a number of dependent variables (key outcome variables of behavioural tasks). The repeated-measures are due to a cross-over ...

How to complete the file download in Internet Explorer by VBA

I'm trying to replace a document that I do the download everyday. But I don't know what I need to do after I click the download button. follow the code: Dim IE As Object Dim n, Period1, Period2 ...

How to determine when to update deviceToken for push notifications / how to get it?

I've had various struggles with push notifications over the course of my app that seem to be fixed by uninstalling. I believe I've narrowed it down to expired deviceTokens. Reading Apple's Push ...

Cannot bind function from abstract class in c++

I'm try to use std::bind with a virtual pure function in a abstract class but I use a design pattern call strategy, because I want make a program that can handle dynamic switch between the game. I ...

connection issues between apacheds and tomcat docker containers

Our java web application running in tomcat container needs connection with apacheds container on port 10389 which has error as depicted in below screenshots. Tomcat container is running on 8080 and ...

fputcsv putting quotes around line breaks

I used fputcsv to make CSV files for import by an outside service provider, I ran into issues where PHP does not use the correct line break characters if you leave it to default, it uses /n only ...

Android: How to implement fingerprint recognition screen like Level Money?

I started using Level Money today and when I set it up to accept my fingerprint for login, instead of showing a custom screen/dialog with the standard fingerprint icon (as recommended by Google) it ...

How to save/load files from File Manager in background thread?

I am using File manger to save a simple JSON file. The issue is I want to do this asynchronously and on the background thread. So far I am having issues getting this accomplished. I am adding a code ...

How to use react-virtualized with dynamic list height

I am trying to implement react-virtualized into my project. I have a side panel with a list of subdivisions. I would like to have an accordion-like functionality when the user selects an item. When ...

basic goose commands not working

I've built a Go app and pushed to heroku. I set up Goose and can create migration files with 'goose create [table_name] sql'. Locally I'm able to simply say 'goose up' or 'goose down' and the tables ...

In Coded UI, how to identify and click only the part of HTML link

The application that I have been testing allows reviewing the images for the items that customer selected earlier. To do this, there is a list of HTML links provided at the bottom of the web page. ...

Material2 Icons and Title Text CSS Not Aligning Properly

I am running into a styling issue while using material2 icons in my Angular app. Specifically, I have a button displaying both a material2 icon and some text - next to each other, running left to ...

MVC how do I display a webgrid in a excel format given the below code

How can I display my webgrid in excel format given the code below? View @{ FuelRecorderLog.Domain.Entities.RecorderLog recorderLog = new FuelRecorderLog.Domain.Entities.RecorderLog(); ...

react d3 library transitions

I'm attempting to use the react-d3-library module to make a graph component for my react project. The chart is just the Bilevel Partition chart from the d3 website. I've succeeded in rendering the ...

php return from ajax call is empty

i call the php function with ajax but my return from my php function is empty ? this is my ajax call : showEvent : function(eventId){ $.ajax({ type: "POST", url: ...

Docker swarm with NGINX proxy and websockets

I am not sure if this is achievable. I am running docker in swarm mode with the following version: Client: Version: 17.03.0-ce API version: 1.26 Go version: go1.7.5 Git commit: 3a232c8 ...

Which DLL should I reference that contains the Microsoft.Open.AzureAD.Model namespace types used in the Azure Active Directory V2 PowerShell module?

I am coding in c#. I am trying to call the cmdlets of the Azure Active Directory V2 PowerShell module from C# but can't create a PasswordProfile parameter for an invocation of New-AzureADUser because ...

database design consideration when using LUIS

What should be the database design consideration when i'm using LUIS .How should the entities and intents be directed to a SQL Server database?

binding to array element [0] gives argumentoutofrangeexception

Is there any way to get rid of the ArgumentOutOfRangeException messages in the output window when binding to an array element that might not be set? For a MenuItem, here is my binding: &...

Mysql Analyze table vs innodb_stats_auto_recalc

Both innodb_stats_auto_recalc and innodb_stats_persistent are enabled by default in my database. Is it recommended to run Analyze table on maintenance windows (every few weeks) on the tables with ...

inf's in outputs for selection ratios in adehabitaths package

My Manly Selection Ratio results using the adehabitaths package includes several Inf outputs. I understand that I can censor the indivudals causing the Inf's from the analyses, however, in some cases ...

how to create radial progress bar in angular js?

I am trying to create radial progress bar, I am using c3.min.js and d3.min.js libraries for creating a raial progress bar(circle inside persentage). here last one is working fine but first and second ...

Python tkinter - failing to repetitively create text on canvas on loop

The method bellow was meant to show the evolution of a backtracking solution of a sudoku on a canvas. The findAnswer() function will return a 9x9 list with the original layout of the sudoku to self....

the data on my database are not updatd when i change the value of p:selectBooleanCheckbox , but it works with the inputText

when i want to update the value of the <p:selectBooleanCheckbox> and click on update button, its value doesn't change on the database, but when i replace it with . this is my code : <ui:...

CharField choice show human-readable value

I have little problem. I have models like Project and Member. Every project has members. In template I want to show user and his role in a specific project. It works but it shows me the number of role....

Elasticsearch client with AWS Elasticsearch 5.1.1

I am having a problem with AWS Elasticsearch 5.1.1. Firstly, I setup manual cluster with 2 nodes with Elasticsearch 5.1.1 on local machines and I used Elasticseach client 5.1.1 and Spark connector ...

Apache httpd high CPU usage

Recent I am facing a big issue in my server, I am using tomcat as controller & apache as web-server, but suddenly apache consuming 98% of CPU , hence my site is hanging out , I killed this process ...

Extracting Advanced Custom Fields' data all at once in a separate PHP file

Sometimes a single page uses dozens of ACF fields - for instance in the case of repeater fields. Dozens of ACF fields means dozens of if (get_field('blabla') { the_field('blabla'); } clogging up the ...

How do I get a form to match the style with “+” to show additional sub-items?

I used the "item.Subitem.Add(.....) method, but this just added a column. Revit has a dialog for "Purge Unused" that shows categories (Views, Families, etc.) with "+", which exposes Family Names ("...

authentification not working in laravel 5.4

In RegisterController I wrote $user=User::create([ ... ]); Auth::login($user); $myid = Auth::id(); return redirect()->route('profile',['id'=>$myid]), And I redirect to page with new id. In web.php I ...

Change how posts show in main page of Wordpress

I'm modifying a wordpress theme to make a website and I need to change how posts are displayed in the main page. I currently have this: And want it to look like this: Note that what I want to change ...

Crystal recursive function resulting in a signal 11 (invalid memory access)?

I wanted to test recursive functions in Crystal, so I wrote something like... def repeat(n) return if n < 0 # Useless line just to do something n + 1 repeat(n - 1) end repeat(...

Can I not show an UILocalNotification?

I have an objective c application. I show UILocalNotifications in a time interval. But then added this, I want not show determined notifications. For example, I add a key and value to notifications, ...

Servicestack - enabling CORS for error response when not using plugin?

I'm running into CORS headers not being set properly (all CORS headers are missing) for failed validation (400 returns). I'm using the validation feature plug in but I'm not using the CORS plugin. ...

Why it cannot show the text?

I want to print the text on the screen but it can't. So, how to solve this problem? and Do I need to download the font(TIMES_ROMAN) for use with this or not? void drawBitmapText(char *string, int x, ...

Why don't I get number 0 from a float range function that I wrote in Python

So I wrote a float range function in python. When I tried to generate numbers, instead of 0 I get 2.77555756156e-17. Why is that? Here is my code: def float_range(x, y, jump): while x < y: ...

Pandoc HTML to DOCX images load locally but not on server

I am currently using Rails 4.2 and pandoc-ruby to convert my HTML documents to DOCX for user download. Unfortunately, the docx created by the server doesn't display images. Locally it does. I'm ...
15 30 50 per page
Translating... 0%