title stringlengths 13 150 | body stringlengths 749 64.2k | label int64 0 3 | token_count int64 1.02k 28.5k |
|---|---|---|---|
Unable to use $.parseJSON on string variable constructed with array variable | <p>I'm able to successfully parse a variable manually initialized with JSON using jQuery's '$.parseJSON();' but I cannot parse a variable with identical JSON format that was constructed using an array.</p>
<p>Javascript</p>
<pre><code>var questionstype = [];
var questionshtml = [];
var questionsquestion = [];
//Store... | 3 | 1,098 |
Passing PHP parameter to WCF - loosing string values - loosing all values | <p>I am having trouble getting my PHP application to correctly pass parameters to my .NET 4.0 WCF Service.
Here is the service code:</p>
<pre><code>[OperationBehavior(ReleaseInstanceMode = ReleaseInstanceMode.AfterCall)]
int ICatalogService.CalculatePercentComplete(CoursePercentParam cpp)
{
string courseID = cpp.... | 3 | 1,273 |
Blazor server Javascript Websocket callback to c# injected service does not work | <p>I have a blazor server app, that calls an injected service to call a web socket in javascript to get some data. I want the web socket to return the data to a c# instance callback on the service. The c# callback works fine from the javascript method, but not from the any of the websocket callbacks (e.g. onmessge, on... | 3 | 1,514 |
How Can I Compare Detected Objects with Each Other | <p>I want to take my .json file with all of the objects that my object detection model detected and then see if any of them are within x pixels of each other, and then group them together to make decisions. I have tried just looping over the detected objects but I can't seem to compare them with each other individually... | 3 | 2,670 |
Add different values of tooltips with more than one series | <p>I have a problem with adding different values in tooltips in my chart using React-Native.<br>
We have 3 series of my graph. The first shows the bars and the others are lines.<br>
When I click on the bar I load a tooltip with the value "this.y" which is what I need and it works.<br>
But when I click the in lines I ne... | 3 | 1,809 |
Pass Member Function to Variadic Template Function | <p>I have a class with a function called enqueue:</p>
<pre><code>template<class T, class... Args>
inline auto ThreadPool::enqueue(T && t, Args&&... args) ->std::future<typename std::result_of<T(Args ...)>::type>
{
using return_type = typename std::result_of<T(Args...)>::t... | 3 | 1,033 |
resampling dataframe with pandas | <p>I have a dataframe called df1</p>
<pre><code>import numpy as np
import matplotlib.pylab as plt
import matplotlib.dates as mdates
from matplotlib import style
import pandas as pd
%pylab inline
import seaborn as sns
sns.set_style('darkgrid')
import io
style.use('ggplot')
from datetime import datetime
import time
... | 3 | 1,361 |
I Have To Restart A Firestore SnapshotListener And I Don't Think That's Right | <p><em><strong>UPDATED:</strong></em> I have a project that is using Firebase Firestore. I have snapshot listeners set up to my model objects. I start the snapshot listeners when the app starts. My understanding is that if you start a snapshot listener once that's all you need.</p>
<p>My issue is that when I create a n... | 3 | 2,380 |
How to get attributes of html to jquery | <p>I was trying to implement like and dislike button to comments by the guidance from a tutorial, but i cannot get attributes from my code.</p>
<p>this is my html code including php</p>
<pre><code><a id="' . $quote->quote_id . '" data-toggle="tooltip" title="'. $language->list->tooltip->like .'" class=... | 3 | 1,276 |
Python (kivy) - Continuous key press causes a loop? | <p>My code works fine when I press the spacebar once at a time. However, when continuously pressed it creates a loop of some sort and crashes.
What might be the reason and how can I fix this? Thanks!!</p>
<pre><code>import kivy
import csv
import time
# import xlsxwriter
import sys
kivy.require('1.0.8')
from kivy.core... | 3 | 3,946 |
Orbeon processors, processing in parallel or sequential | <p>I am trying to find out if Orbeon processes in parallel or in sequence.</p>
<p>We have a pipeline that fetches from 2 data sources and amalgamates in a single response. Does the processing below happen in parallel and combine when both sources have retrieved or is it sequential? If sequential, can it be made to be ... | 3 | 2,190 |
Aggregate and Sort Documents based on array element date time and field | <p>Currently I have the following schema:</p>
<pre><code>User:{
verified:boolean,
history:[{
type:string,
dateTime:datetime
}]
}
</code></pre>
<p>I need to aggregate and sort the data based on the history.type and history.datetime. For example, I have 100 documents. Half of it have ... | 3 | 1,040 |
This method in nodejs is returning an undefined object | <p>I asked this question earlier and it got associated with this question ( <a href="https://stackoverflow.com/questions/14220321/how-do-i-return-the-response-from-an-asynchronous-call">How do I return the response from an asynchronous call?</a> ) But It doesn't resolve my problem</p>
<p>i am very new to node.js and i... | 3 | 1,204 |
Full table scan issue with LEFT OUTER JOIN in Hive | <p>I'm trying to a LEFT OUTER JOIN operation on 2 of my tables in hive. Could understand that we have include filter conditions along with the join conditions in case of joins, imitting them from where conditions to avoid full table scans. Reference: <a href="https://gist.github.com/randyzwitch/9abeb66d8637d1a0007c" re... | 3 | 2,002 |
I can't display image in a MVC view using Orchard CMS | <p>I am using a webGrid to display data. Two columns are checkboxes. Instead of displaying the checkboxes, I want to display two .png images.</p>
<p>As you can see in the code, I've tried three different ways to do it.</p>
<p>I created a variable to hold the path, I used the string.Format, and I also put the path as ... | 3 | 1,055 |
Manipulating arrays in php | <p>I have an file uploading site, it has an option of uploading through urls, what I am trying to do is whenever a user uploads through url, I check my database if a file exists that was uploaded through same url it displays the download url directly instead of uploading it again.</p>
<p>The data sent to uploading scr... | 3 | 1,602 |
resizing an image before saving in state in React | <p>I am trying to resize an image before saving it in state so that I can pass it into my payload for upload. The method below handles the resize</p>
<pre><code>export const handleResize = (fileObject) => {
const reader = new FileReader();
const maxUploadFileSize = 1048576;
const imageTypes = ['image/jpe... | 3 | 1,152 |
How to use same Provider Package Class in same kind of two widgets which are used for different purpose | <p><a href="https://i.stack.imgur.com/6fZbP.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/6fZbP.png" alt="enter image description here" /></a></p>
<p>I have used two DropDownWidget in my app.
First drop down widget stores city value, second drop down stores area. To find area we need user's selecte... | 3 | 2,094 |
Extracting Information from a List of Documents | <p>I have extracted a large number of .txt documents from folders (using glob). I have then appended each document into a list called MaxDoc by doing this:</p>
<pre><code>Documents1 = glob.glob('path*.txt')
MaxDoc = []
for file in Documents1:
f = open(file,'r')
MaxDoc.append(f.readlines())
f.close()
<... | 3 | 1,212 |
How to find PropertyInfo about a DependencyProperty (on a DependencyObject) in WinUI 3 | <p>Sometimes it's useful to have more information about a <code>DependencyProperty</code> than metadata supplies. For example, in generalized tracing methods and event handlers, it's helpful to be able to find the name (and other characteristics) of a <code>DependencyProperty</code> on a <code>DependencyObject</code>.<... | 3 | 1,028 |
find the sum on json list based on condition in pyspark | <p>Nested Json sample:</p>
<pre><code>{
"accounts": {
"1": [{
"userId": "XXXXXXX",
"accountId": "1",
"externalId": "XXXXXXXXXX",
"status": "x",
&quo... | 3 | 1,584 |
Python - machine learning | <p>currently I am trying to understand the way machine learning algorithms work and one thing I don't really get is the obvious difference between calculated accuracy of predicted labels and the visual confusion matrix. I will try to explain as clear as it is possible. </p>
<p>Here is the snippet of the dataset (here ... | 3 | 1,213 |
Two different Bootstrap modal windows...both opening at once | <p>I've found several similar questions, but none seem to quite give the answer I need. I have a page that required two different modal windows. One opens by clicking any one of 8 buttons (the modal content is the samen no matter which you click), while the other is a simple "contact info" modal that opens when clickin... | 3 | 1,457 |
Iteration limit when implementing a multicycled processor | <p>I'm trying to implement a simple multicycle processor and I ran into some problems that I don't seem to be getting through. The code is below. I'm just experimenting right now to get this flowing. When I'm done, I'll begin implementing instructions and ALU. However, I'm stuck at this point. In the code below, I'm aw... | 3 | 2,421 |
A strategy to alter redux state with action in useEffect()? | <p>I'm trying to implement a component that takes a phone number from the redux store, parses the number up on component load with <code>useEffect()</code>, puts the parsed elements (country code and ten digit number) into their own state with <code>useState()</code> and then on <code>onChange</code> of the phone form,... | 3 | 2,000 |
VBA, Time Difference, 24 hour clock | <p>I would like to get time differences.</p>
<p>Say I have 4 columns: Start day, start time, end day, end time. I would like to get the difference of the start day and time with the end day and time.</p>
<p>Problem is, times may be 20:00 on T, and 02:00 on T+1 , giving me a difference of 18 hours. When it should be 6... | 3 | 3,368 |
Deactivate scrolling in parentwidget while mouse is in childwidget in python and PyQt5 | <p>I create a widget which is to big to show complete on the screen, so i put it in a scrollbox.
In this widget is a listwidget which is scrollable as well.
What can i do to disable scrollfunction in the outer widget, if the mouse is in the listwidget, and enable the scrollingfunction if i move the mouse out of the lis... | 3 | 2,654 |
LibGDX: Kotlin vs. Java | <p>I'm currently working through the examples in the <a href="https://www.apress.com/gp/book/9781484233238" rel="nofollow noreferrer">book</a> "Java Game Development with LibGDX" by Lee Stemkoski. I wanted to try Kotlin and converted the code in chapter 2 into Kotlin.</p>
<p>I'm asking if the following code is best pr... | 3 | 1,558 |
How to find column in value list easily in Management Studio? | <p>I've been trying to find some way to simplify editing/adding a value to the corresponding column inside Insert-clauses when coding inside SQL inside Managagement Studio 2008 R2.</p>
<p>Assume the following code:</p>
<pre><code>INSERT INTO [Schema].[Table]
( [Col1],
[Col2],
... | 3 | 1,106 |
Simplest path for custom media type in Spring HATEOAS? | <p>I currently have a HAL output that looks like this:</p>
<pre class="lang-json prettyprint-override"><code>{
"id": "00023687-7a6d-429f-a9d5-a900b1af4d27",
"property1": "value",
"property2": "value",
"_links" : {
"self&quo... | 3 | 1,066 |
Nested copy loop ARM template | <p>Trying to create an ARM template with a double copy loop:</p>
<pre><code> {
"$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"privateDnsZones": ... | 3 | 2,406 |
How to correctly configure Gmail to send E-mail with Django. The official configuration does not work for me | <p>I am preparing an online portfolio made with Django and one of the features is a form with which you can contact me via E-mail. To verify that this functionality worked correctly, I have been testing it with MailTrap and it works perfectly, now for the production version I want the E-mails to reach my Gmail mail, bu... | 3 | 1,749 |
Problem using AJAX to import image from MySQL blob into HTML file input type | <p>The title sounds confusing so first I'll elaborate. I have a website that among other things allows the users to upload pictures from their phones which go to a MySQL database and are stored in a blob format which works fine. I also have a button that runs an AJAX function which allows the user to import information... | 3 | 1,385 |
Strcmp gives segmentation Fault | <pre><code>#include <stdio.h>
#include <stdlib.h>
#include <string.h>
typedef struct station
{
char * name;
struct station * destinations;
struct station * next;
} station;
struct station * findStation(station * stations, char * name)
{
if(stations = NULL)
{
printf("ERROR... | 3 | 1,056 |
jQuery scrollTo() not working in angular 4 | <p>I'm using a library called <a href="https://github.com/VadimDez/ng2-pdf-viewer" rel="nofollow noreferrer">ng2-pdf-viewer</a> for some reason the default way to stick to a page isn't working, so what I've done is I've used jQuerys <code>scrollTo()</code> method to scroll to the the <code>.page</code> class in the PDF... | 3 | 1,123 |
How to fix the ArrayIndexOutOfBoundsException in Adapter android | <p>I'm using CardView, Json to load data and display in list item. But I build the first time, it happened an exception is: <code>ArrayIndexOutOfBoundsException</code> </p>
<p>My Adapter class:</p>
<pre><code>public class RecyclerViewAdapter extends RecyclerView.Adapter<RecyclerViewAdapter.ViewHolder> {
privat... | 3 | 1,536 |
JTree refresh without collapsing | <p>I have a problem when refreshing a JTree instance. See the following code:</p>
<pre><code>import java.awt.EventQueue;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.GroupLayout;
import javax.swing.GroupLayout.Alignment;
import javax.swing.JButton;
import javax.swing.JFr... | 3 | 1,619 |
How Improve Run-time when sorting arrays | <p>I have managed to create a working solution for "Mixing Milk" for USACO, but the judge says my program takes too long. </p>
<p>I think this has to do with the way I sort the list of Farmers by asking price in lines 29 - 44. Is there any way I can improve the run time?</p>
<pre><code>/*
ID:
LANG: JAVA
TASK: milk... | 3 | 2,744 |
Turn doxygen xml into valid and semantic rich HTML | <p>Consider this code generated by Doxygen:</p>
<pre class="lang-xml prettyprint-override"><code><detaileddescription>
<para>This function fills buffer with the content of $param_inline(template_string) by applying to the following rules:</para>
<para>
<itemizedlist>
<lis... | 3 | 1,117 |
jQuery Datatables Returning Null values | <p>I've modified the example datatables server side PHP code to include inner joins. </p>
<p>I'm a little bit confused as it returns the rows (correct amount of results) but all of the fields are blank/null. But if I use the search to filter values that I KNOW are in the database e.g. theres only one row containing "d... | 3 | 2,827 |
Magento Module Permissions | <p>I have a modules for Magento, when I try to assign permissions for other users apart from Admin role to the module (check the checkbox) when I click save it unchecks the box. I have looked through other solutions but still wasn't able to solve it. Please kindly help.</p>
<p><div class="snippet" data-lang="js" data-... | 3 | 2,877 |
How to save data from multiple views of an iPhone app? | <p>I'm making an app where I need to save the text in multiple views in the app when the app quits. I also need to be able to remove all of the data from just one of those views and when the app quits, it's possible not all of those views will have been created yet.</p>
<p>After reading <a href="https://stackoverflow.... | 3 | 1,337 |
ASP.NET HttpContext Cache removes right after insertion | <p>I have an ASP.NET 4 web-service.<br>
It has an <code>ImportModule</code> action in a <code>ModuleController</code> controller. </p>
<p>That's how it works: </p>
<ol>
<li>The user uploads a module as a CSV-file. </li>
<li>This file is being read using <code>HttpPostedFileBase.InputStream</code> and custom CSV-rea... | 3 | 1,630 |
"Mutable" Java String is acting unpredictable | <p>I was playing a bit with changing String value (i know that it's extremely unsafe and dangerous) with function:</p>
<pre><code>public static void reverse(String s) {
try {
Field val = String.class.getDeclaredField("value");
val.setAccessible(true);
char[] value = (char[]) val.get(s);
... | 3 | 1,893 |
How do I pivot_wider() so that duplicates are maintained in their own columns? | <p>I have a long data frame that I want to widen. The long data frame includes duplicates and I want to keep them as unique columns in the wide format--but the wide format output combines the duplicates in a single column-list. I've tried a few things with pivot_wider() and thought unnest() might be what I need. Below ... | 3 | 1,522 |
InvalidPipeArgument when using Material Autocomplete | <p>I'm using the angular material autocomplete to show the list of zip codes from a service.</p>
<p>The error that I'm getting when I type a number is: </p>
<pre><code>InvalidPipeArgument: '18224,45429,63341,18976,71730,76008,66058,81505-1432,70360,23301,30081,28622,46815,01754,18405,91722,04553,33584,35078,64747,787... | 3 | 1,121 |
RecyclerView Not Showing Data Passed From List Through Bundle | <p>I have a recyclerview in a dialog fragment, which hosts a tab layout, containing a list of checkable items and a button each. When an item is selected, it is passed on click through the bundle to this parent dialog fragment like this:</p>
<pre><code>doneBtn.setOnClickListener(new View.OnClickListener() {
@O... | 3 | 1,538 |
JavaFx: Using existing branch as newly added branch | <p>Hi i am working on an application related to treeView in javafx, i asked this question before [1]: <a href="https://stackoverflow.com/questions/44500216/javafx-how-to-use-existing-branch-with-leafs-as-a-newly-add-branch">JavaFx: How to Use existing branch with leafs as a newly add branch</a> , but didn't get any an... | 3 | 1,750 |
dropdown issue with jquery | <p>iam working on html select dropdown, if i select "not in list" then it should open new text box . I have two select dropdowns, it is working for one dropdown and it is not woeking for another. please help . Here is my fiddle</p>
<p><a href="http://jsfiddle.net/Raghu123/yhovt8pm/" rel="nofollow">http://jsfiddle.net/... | 3 | 1,109 |
Flutter Firebase Collection Sorting... Think I'm Only A Step Away | <p>Update
So line 'final CollectionReference golfCartCollection = FirebaseFirestore.instance.collection('golf_cart');' works and delivers the data HOWEVER if I change 'CollectionReference' to 'Query' it breaks further down in code '// Persist a new product to Firestore // await golfCartCollection.add({' with .add error... | 3 | 5,723 |
Unix - Sort from child blocking | <p>I was trying to complete an exercise when I found some problems that I cannot understand.
First one:
I'm trying to sort a file using system(string), where the string contains: <strong>/usr/bin/sort -n -o %s %s</strong>. %s is the path which I read from the parent through a pipe, and printing the string I see that i... | 3 | 3,505 |
showing data in individual tabs, passing dropdown list value to the tab selected | <p>I am working on angular and bootstrap application.
Please find the demo <a href="http://plnkr.co/edit/CfTrnfCAt09eDtLGDW6P?p=preview" rel="nofollow noreferrer">here</a></p>
<p>I have the below two requirements:</p>
<ul>
<li>I have a dropdown list, by default option1 is selected, i want to
pass the id of the option... | 3 | 1,844 |
Adding multiple ITextSharp binary images using byte array causes IndexOutOfRangeException | <p>I am using <strong>ITextSharp</strong> and <strong>html2canvas</strong> for <strong>adding binary images</strong> and <strong>PDF generation</strong>.</p>
<p>Below is a snippet of my <code>Codebehind</code> code.</p>
<pre><code>var overallResultsBase64string = hdnOverallResults.Value.Replace("data:image/png;base64... | 3 | 1,534 |
AutoMapper tries to map DbModel to dateTime | <p>so here is mapping definition:</p>
<pre><code> Mapper.CreateMap<EditMovieModel, Video>()
.ForAllMembers(options => options.ResolveUsing<CustomMovieMapper>());
</code></pre>
<p>I have defined my custom resolver:</p>
<pre><code>public class CustomMovieMapper : ValueResolver<EditMovieMo... | 3 | 1,372 |
Rails Amazon production error | <p>I am running my ruby on rails app (rails 3.0.6 , ruby 1.9.3) on amazon server , on user sign up it shows the error - Something went wrong</p>
<p>Updated log</p>
<blockquote>
<p>Started POST "/job_seeker/sign_up" for 122.169.118.210 at 2014-02-19
15:12:30 +0000 Processing by RegistrationsController#create as ... | 3 | 2,647 |
How to implement a zip function for the SwiftTask framework? | <p>I'm trying to implement a generic <code>Task.zip</code> class function for the <a href="https://github.com/ReactKit/SwiftTask" rel="nofollow">SwiftTask</a> framework. The function takes a tuple of tasks and returns a task of tuples much like the standard library function <a href="https://developer.apple.com/library/... | 3 | 1,694 |
Grunt build tasks doesn't go deeper than root | <p>New to setting my own grunt tasks and used one from a yeoman tool. Been working good until I run "grunt build" and run into a couple of errors. On first, when running just "grunt build" I get a "cssmin" failed. I then use "--force" and all goes until it hits "concat" failed". Commented that out and runs, but only do... | 3 | 6,174 |
Not getting correct output in xquery | <p>I am using 2 xml files-"Department.xml" and "Employee.xml".</p>
<p><strong>Department.xml</strong></p>
<pre><code> <DeptList xsi:noNamespaceSchemaLocation="officeSchema.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<Department>
<deptName>mech</deptName>
<deptNo&g... | 3 | 1,340 |
JavaFX Draw a Single Axis | <p>How can I draw a single Axis to a pane?</p>
<p>It gives me a runtime exception if I naively try <code>addAll(axis)</code></p>
<p>I am browsing through the XYChart source for answers on how it draws axis.</p>
<p>EDIT:</p>
<p>Source</p>
<pre><code>import javafx.application.Application;
import javafx.scene.Scene;
... | 3 | 1,115 |
Why does the heap size limit readjust to larger size in nodejs during a memory leak instead of crashing? | <p>I was trying to recreate a <code>FATAL ERROR: Reached heap limit Allocation failed - JavaScript heap out of memory</code> that I get in production on heroku.</p>
<p>But my local machine will readjust the heap limit.</p>
<p>If I set the heap size limit <code>node --max-old-space-size=200 ./bin/www.js</code> the limit... | 3 | 1,397 |
Traefik V2 (armv6) - Reverse Proxy with SSL termination - without Docker | <p>I have a raspberry pi that I want to use for SSL termination and as a reverse proxy for other pis running services.</p>
<p>Why? I was able to get HTTPS using my Synology NAS but ACME recently got upgraded in Let's Encrypt and my NAS version is too old. I also want to use Traefik as a learning experience.</p>
<p>I ... | 3 | 2,291 |
Save outlook sent mail folder in sql | <p>I'm trying to save out sent mail folder data in sql however I'm getting cast com object of type error/ I tried to online repair the Microsoft app and nothing happens.</p>
<pre><code>using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Reflec... | 3 | 1,206 |
Selected dropdown always changed after submit | <p>i have a dropdown for month and year , but after submit this dropdown alwas back to default (january) . i used Codeigniter </p>
<pre><code><label>Bulan</label><br>
<select name="bulan">
<!-- <option value="">Pilih</option> -->
... | 3 | 1,536 |
.htaccess in subfolder work partially | <p>The website's structure is the next:</p>
<p>www.mydomain.com -> Here is installed wordpress. <br>
www.mydomain.com/subfolder1 -> Here is installed a custom php Application.
www.mydomain.com/subfolder1/subfolder2 -> Here is installed Control panel of php Application.
</p>
<p>I have an .htaccess in subfolder1 and a... | 3 | 1,310 |
Unable to serve static files correctly in Django app again | <p>A couple of weeks ago I tried to install a django application in google cloud VM (Ubuntu 16.04). As I described in <a href="https://stackoverflow.com/questions/50773819/unable-to-serve-static-files-correctly-in-django-app">this post</a>, I had issues serving the static files correctly in Django app.
For some reason... | 3 | 13,409 |
Improving design by extracting multiple TableModels into a single TableModelManager | <p>I've been stuck on this particular part of my design and I'd like some input as to how I should approach it. My program consists of courses <code>LeerTrajecten</code> and elements <code>Elementen</code>. Both of these objects can exist independently, but elements can also be added to a course.
<code>Element</code> i... | 3 | 1,347 |
order of checkboxes in planner | <p>How do I get the <strong>sort order</strong> of checkboxes in planner?</p>
<p>What it looks like in planner:
<a href="https://i.stack.imgur.com/1WBL2.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/1WBL2.png" alt="enter image description here" /></a></p>
<p>I get task details, and then try to figu... | 3 | 3,313 |
What can cause the Model Binding to fail in ASP.NET MVC 1.0? | <p>Here is my class...any pointers?</p>
<pre><code>public class Cart
{
private List<CartLine> lines = new List<CartLine>();
public IList<CartLine> Lines { get { return lines.AsReadOnly(); } }
public void AddItem(Product product, int quantity)
{
var line = lines.FirstOrDefault... | 3 | 1,105 |
Java Maven javacv error : org.apache.commons.exec.ExecuteException | <p>I set javacv on maven but I get error like this :</p>
<blockquote>
<p>org.apache.commons.exec.ExecuteException: Process exited with an
error: 1 (Exit value: 1) at
org.apache.commons.exec.DefaultExecutor.executeInternal(DefaultExecutor.java:404)
at
org.apache.commons.exec.DefaultExecutor.execute(Default... | 3 | 1,368 |
Angularjs in rails: angularjs javascripts don't load | <p>I want use angularjs in rails. for this, I want deactive rails view and just use angularjs html file. I use <code>angular-resource.min.js</code> for routing the url and then I create <code>index</code> action in my <code>application_controller</code> for deactiving the rails views. Rails view are deactive now, but n... | 3 | 1,081 |
GCM - Can't Receive Messages when Application is destroyed | <p>I am working on GCM I deployed GCM in my Application and it worked fine as it should, but that was a previous build now that I have some understanding of GCM I tried to integrate GCM on my new build. But I have encountered a strange issue perhaps it is something obvious that I am missing. But now I don't receive mes... | 3 | 1,133 |
Calling modal on a list of products opens the modal for all of them instead of just the one being clciked | <p>I am making a react native app that loads data from google firebase and then display it on a page, when a user clicks on any of the products aa modal will open to show more datails.</p>
<p>I am using useEffect to load the data on page load then display then results:</p>
<pre><code> const fetchData = async () => {... | 3 | 1,256 |
Unable to bind custom adapter to layouts with include tag | <p>I am trying to use Kotlin's Sealed class for handling states in my app. I have seperated different states in different layout files for reusing them. But the problem is that even though I am able to using it in a fragment successfully it is not working in another fragment. Log is very confusing for this error. Maybe... | 3 | 5,128 |
persistence jsonb field to h2 using hibernate | <p><a href="https://github.com/sakitA/h2jsonb" rel="nofollow noreferrer">source code</a></p>
<p>I want to use <code>jsonb</code> column type. When I used <code>postgresql</code> there is no problem. But when I use <code>H2</code> I can not persist my entity. Native sql works but when saving <code>EntityManager.persist<... | 3 | 8,743 |
Android serializable reads only one object | <p>serializable list reads only one object.</p>
<p>Class department</p>
<pre><code>public class Department implements Serializable {
int Id;
String DepartmentName;
int Status;
public Department(){
}
public Department(String Name, int faculty){
this.DepartmentName = Name;
this.Status = faculty;
}
public De... | 3 | 1,542 |
symbol lookup error: ./libobjdata.so: undefined symbol: bfd_map_over_sections | <p>When I compiled the getsections_dl.c file, it always output this error, does that mean I have not linked the library?</p>
<p>My compile command is:</p>
<pre><code>gcc getsections_dl.c -L. -ldl -lbfd -o getsections_dl
</code></pre>
<p>My getsections_dl.c:</p>
<pre><code>#include <stdlib.h>
#include <stri... | 3 | 1,517 |
Reorder Log Files Custom Sort | <p>I am trying to solve a sorting algorithm .</p>
<p>The problem is this .
<em>You are given an array of logs. Each log is a space-delimited string of words, where the first word is the identifier.
There are two types of logs:
Letter-logs: All words (except the identifier) consist of lowercase English letters.
Digit-lo... | 3 | 1,677 |
argparse: required argument conditioned by boolean | <p>What I'm trying to do is to call a python script with 2 arguments, let's say <code>--higher_level_optional_arg</code> and <code>--prepare_data</code>.</p>
<p><code>--prepare_data</code> is a boolean defaulting to <code>False</code>.</p>
<p>Now the thing I'd like to accomplish but that I cannot figure out is:</p>
<p>... | 3 | 1,219 |
How to pass futures around to different endpoints in dask | <p>I have a dask cluster (not asynchronous) setup in FastAPI, and I have created two endpoints. One submits the function to the dask cluster and the other gets polled by vuejs every so often and once the status is "finished" it stops polling. However dask has the issue that it forgets about futures if it thin... | 3 | 2,594 |
Reading pipe-delimited file with html tags using Pandas into data-frame | <p>I've been reading a pipe-delimited data file in Mac with Pandas/Python. The data file contains chat transcripts without a header. The header info that we can give is <code>ID | Name | transcripts_text</code></p>
<p>The sample text file is:</p>
<p>P37001 | John | Thanks for reaching out. Our customer support agents <... | 3 | 1,291 |
Why can i not get the Data from my laravel database with vue.js? | <p>I have the following Problem:
I have a table with the names of some companies on a full set up laravel and i want them to be displayed via vue.js
i got the following done with a tutorial but it wont work out as it's intended to. I just get the Table Header.
It has to be solved via the API.</p>
<p>Please help :)</p>
... | 3 | 1,878 |
How to show block below fixed container with jQuery? | <p>Please someone help me out on this I got stuck in my code. I'm putting my code complete below please have a look and please try to provide better solution.</p>
<pre><code><!DOCTYPE html>
<!--[if lte IE 7]><html id="ie" class="no-js lt-ie10 lt-ie9 lt-ie8" lang="en" xmlns="http://www.w3.org/1999/xhtml"... | 3 | 7,390 |
Error while verifying Firebase ID token: TypeError: Cannot read property 'apply' of undefined | <p>I'm trying to deploy a HTTP request triggered function in Firebase Could Functions. I'm getting this error and I don't know why. The decoding of the idToken is successful</p>
<pre><code>Error while verifying Firebase ID token: TypeError: Cannot read property 'apply' of undefined
at /user_code/node_modules/expre... | 3 | 1,098 |
Android - SQLite delete and update data not working well | <p>I created database with few tables, got 1 table called friend. A friend has few expenses, some expenses might share with another friend. Now i am trying to delete a friend, what i am trying to do is when the friend share expenses with another friend, the expense of the friend that shared with another friend will the... | 3 | 1,911 |
DMS replication to Kinesis omit certain fields | <p>We have a use case where we have enabled a AWS DMS replication task which streams changes to our Aurora Postgres cluster to a Kinesis Data stream. The replication task is working as expected but the data that its sending to Kinesis Data Stream as json contains fields like <code>metadata</code> that we don't care abo... | 3 | 1,329 |
Adding/removing char between outputs | <p>I am on my homework and stucked. My output is like this 2, 4, 8,
I just wanted to separate the numbers by comma and I used very simple code: </p>
<pre><code>if (veri%4==0) System.out.print("4, ");
</code></pre>
<p>I dind't want to share hole code because I want to it myself but as I saw you can't help me.
Howeve... | 3 | 2,467 |
R: scraping additional data after POST only works for first page | <p>I would like to scrape drug informations offered by the Swiss government for an University research project from:</p>
<p><a href="http://www.spezialitaetenliste.ch/ShowPreparations.aspx?searchType=Substance&searchValue=" rel="nofollow noreferrer">http://www.spezialitaetenliste.ch/ShowPreparations.aspx?searchTyp... | 3 | 2,148 |
How to send big data to API in laravel? | <pre><code>public static function send()
{
$products = Product::where('active', 1)->get(['id_product', 'price', 'reference'])->load(['images', 'lang']);
// loop for all products and sending to API
$number_of_products = count($products);
$start = 0;
$end = 70;
fo... | 3 | 1,589 |
I got an error when i try to run an Example of React Native Scan QR Code | <p>I just want to do an example of React Native Scan QR Code, so I run this command first : "npm install react-native-camera-kit --save".</p>
<p>But i got an error:
'requireNativeComponent: "CameraView" was not found in the UIManager'</p>
<p>I use Expo to execute the app on a device Android version 5.1</p>
<p>That's... | 3 | 1,578 |
How to get selected values from custom drop-down using angularJS | <p>actually I have been implemented one custom drop-down using <code><ul></code> & <code><li></code> elements in my application. And right now I am able to select dropdown values by using mouse click but as part of functionality requirement, user able to select the drop-down values by using enter key al... | 3 | 3,704 |
How to change the smoke color on a threejs canvas | <p><a href="https://jsfiddle.net/j7myybnn/1/" rel="nofollow">https://jsfiddle.net/j7myybnn/1/</a></p>
<p>I am new to threejs and html canvases. In the fiddle you can see black smoke how can i change that to white or gray...</p>
<p>I tried using a <code>png</code> with blue smoke but it still renders black... I cant u... | 3 | 1,457 |
Javascript to reveal hidden DIV | <p>I have been working on a code to display more details when an item is clicked. So far I have come up with this.</p>
<p>HTML:</p>
<pre><code><script>
$(document).ready(function(){
$('.toggleTarget').hide();
$(".products-item")
.click(function() {
var id = $(this).at... | 3 | 1,786 |
MySQL join with Direct table or subfields of table | <p>First query:</p>
<pre><code>SELECT
u.id,
u.first_name,
u.last_name,
u.tazkera_id,
cu.relation_type,
CASE csp.`shift`
WHEN '1' THEN 'Morning'
WHEN '2' THEN 'Afternoon'
else 'Neither'
END AS shift
FROM `course_user` as cu
LEFT JOIN `courses` as c ON c.id = cu.`cou... | 3 | 3,585 |
SQL return multiple of same record when using INNER JOIN | <p>I have the following SQL query I am trying to run: </p>
<pre><code>"SELECT Main.id, Main.created_min, Main.local_photo_name, Main.description, Main.creator, Main.title, Main.museum, technique.technique
FROM Main
INNER JOIN technique ON technique.kleding_id=Main.id
LIMIT 5"
</c... | 3 | 1,437 |
Multiple login in PHP form not working | <p>The else part of my code is working when the password is wrong. However, when password is correct it does not go to the admin.php page. It just stays on the same page.</p>
<p>Does anyone know why this is happening?</p>
<pre><code><?php
session_start();
error_reporting(E_ALL); // to see if there is error in cod... | 3 | 1,322 |
Terrain/Mountain algorithm not working as intended | <p>I want to create a terrain with a mountain on it, using a very basic principle, shown by this height mapping:</p>
<pre><code>0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 1 0 0 0 0 0
0 0 0 0 1 2 1 0 0 0 0
0 0 0 1 2 3 2 1 0 0 0
0 0 1 2 3 4 3 2 1 0 0
0 0 0 1 2 3 2 1 0 0 0
0 0 0 0 1 2 1 0 0 0 0
0 0 0 0 0 1 0 0... | 3 | 1,951 |
Bulk mail recipient issue in PHP Mailer | <p>I am trying to send bulk mail. And It worked but the problem is when I am checking on Gmail this shows. I can use Bcc and solve this issue but I want to for learning purposes.</p>
<pre><code>------------------------------------------
from: example <example@gmail.com>
to: example1@gmail.com,
example2@gmail.co... | 3 | 1,471 |
DropDownTextView Android change color | <p>I using <a href="https://github.com/hakobast/DropdownTextView" rel="nofollow noreferrer">https://github.com/hakobast/DropdownTextView</a> in version 0.1.1
version 0.3.1 is not suitable for me.
I'm wondering if it any chance to change the frame colour when I click DropdownTextView.
The second thing is how can I move ... | 3 | 2,755 |
How to change parent's custom toolbar Title when refresh its child Fragment | <p>I have a <code>viewPager</code> inside a fragment and the <code>vievPager</code> contains 2 child fragments.</p>
<p>I setup a custom toolbar in parent fragment with custom layout. when I swipe any child fragment I refresh child fragment. when I refresh each time, I want to change parent fragments title with differe... | 3 | 1,921 |
R doParallel: couldn't find function | <p>I have set up the following function:</p>
<pre><code>cv_model <- function(dat, targets, predictors_name){
library(randomForest)
library(caret)
library(MLmetrics)
library(Metrics)
# set up error measures
sumfct <- function(data, lev = NULL, model = NULL){
mape <- MAPE(y_pred = data$pred, y... | 3 | 1,301 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.