title
stringlengths
13
150
body
stringlengths
749
64.2k
label
int64
0
3
token_count
int64
1.02k
28.5k
"The specified child already has a parent" adding new TableLayout
<p>I get this error when I try to add a programmatical created TableLayout to my LinearLayout shown below: </p> <pre><code>08-09 10:20:26.288: E/AndroidRuntime(1878): Process: de.bc.cologne, PID: 1878 08-09 10:20:26.288: E/AndroidRuntime(1878): java.lang.RuntimeException: Unable to start activity ComponentInfo{de.bc.c...
2
2,358
Recyclerview call contacts Android studio
<p>I have an android app where I have used RecyclerView that shows a list of contacts. Now what I want is that when selecting the contacts, call the indicated number.</p> <p>For now all it do is show the contacts, but when i click on it it calls, it does not do any action. I do not know how to get it to mark</p> <p>I...
2
2,759
Nested Marshmallow and Sqlalchemy include children
<p>I have a pivot (postgres)table that relates to 2 table. Using flask-marshmallow and sqlalchemy I want to fetch data from both tables from any of their marshmallow's schema. eg: Table1Schema().dump(table1_object).first: and get the Table1 records inner joined with Table2's data(Many=True): Below is my current code:</...
2
1,242
Automatically creating and/or extending JPA tables with Wildfly, EclipseLink and Postgres
<p>I have experienced a strange matter with a Java EE application running on Wildfly 8.1.0 as the server and Postgres as our database system in combination with EclipseLink as the persistence provider <em>(the reasons why I want to study the costs of migrating from built-in Hibernate to EclipseLink don't matter here)</...
2
1,068
Jquery validate submits invalid forms
<p>i´m trying to create a basic validation of my HTML form, i´m using Jquery Valate to achieve this. My main problem is that the form is submitted even when some of the fields are still invalid. My second problem is that the custom message that i want to show aren´t appearing. Here is my HTML: </p> <pre><code>&lt;head...
2
1,907
Save selected items when using caliburn.micro /Telerik RadGridView /Silverlight
<p>I am using Caliburn micro(1.3)/MVVM and Silverlight. When I update the itemsource RadGridView, I lose the selected items. I found a blog about implementing a behavior to save the selected items when you are implementing MVVM. I can get the selected items, but I cannot set them back once the itemsource is refreshed. ...
2
1,144
Validation errors in dialog not updating after failed submit in JSF
<p>So I click a button which opens a dialog. Inside this dialog I want to fill out information in a form and submit and save it. Some of the inputTexts need to be required in order to submit. So I use the required="true" attribute. It stops the submission, but it does not update the field with a red outline of everythi...
2
1,361
How to realese Dispose() on RabbitMQ without using. C#
<p>I have my sender class.</p> <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false"> <div class="snippet-code"> <pre class="snippet-code-html lang-html prettyprint-override"><code>public class RabbitSender { private ConnectionFactory _factory; private ICon...
2
1,195
python multiprocessing,pathos slow
<p>Today I ran some code and i wanted to run it on my multicore cpu so where even I wrote map I changed it to pool.map. surprisingly my code ran slower even though it was using so much processing power or memory(to my knowledge). so i wrote this test, it uses pathos and multiprocessing.</p> <pre><code>from pathos.pool...
2
1,987
JavaScript "Toaster Popup" class works awesome in FireFox fails in IE
<p><strong>SOLVED:</strong> SEE "CORRECTED SOLUTION" Area (below)</p> <p><strong>--------------------------------- ORIGINAL TEXT ---------------------------</strong></p> <p>I've created a JavaScript toaster popup to show info about an individual row. It works great in FireFox...but it goes down in flames in IE.</p> ...
2
9,583
Error Expected BEGIN_OBJECT but was STRING - deserialization of an object inside of the string
<p>I have a <code>json</code> string:</p> <pre><code>{ "Id": 1, "Title": "A night with king of France", "Description": "King's of France awesome audition", "Day": "Monday", "Time": "00:00:00", "FinnishTime": "02:00:00", "Picture": "http://cp91279.biography.com/1000509261001/1000509261001_1134394072001_Bio-Biography-Lo...
2
1,127
Get my twitter timeline instead of public twitter timeline using Node JS
<p>This code works fine but it seems that it retrieve any tweet not only the people I follow, I want to get my timeline tweets what should I do ?</p> <pre><code>var open = require('open'); var sys = require('sys'); var spawn = require('child_process').spawn var OAuth= require('oauth').OAuth; var express = require("exp...
2
1,225
RXJS draw line on html5 canvas
<p>I'm trying to achieve the same effect I'm posting here using Reactive Extensions for Javascript (RX-JS). I'm a bit puzzled on how to do it. Here is the page:</p> <pre><code> &lt;!DOCTYPE html&gt; &lt;html&gt; &lt;head&gt; &lt;title&gt;drag and drop&lt;/title&gt; &lt;/head&gt; &l...
2
3,113
ASP.NET Button Inside Repeater Inside UpdatePanel Won't Fire!
<p>ASP.NET 3.5 SP 1 / Visual Studio 2008 V 9.x RTM</p> <p>I am trying to get a button inside a repeater inside an updatepanel to fire. I't won't. I have tried adding a trigger outside the ContentTemplate and inside the UpdatePanel to no avail: </p> <pre><code> &lt;Triggers&gt; &lt;asp:AsyncPostBackTrigger ...
2
2,094
"Class does not support automation" error when using own class from JScript
<p>I have a project which exposes object model to use by different types of clients. Written in .Net 3.5 it exposes classes to COM. Problem is while all seems to work from test VB6 client, I faced strange errors while trying to automate it with JScript and Windows Script Host.</p> <p>Here's code snippet:</p> <pre><co...
2
1,272
Problems with displaying XML-based layout and adding text dynamically
<p>I have a LinearLayout defined in XML that I want to use repeatedly to display elements of a list. The XML-layout looks like this:</p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android:layout_widt...
2
1,774
Android 12 Merged Manifest errors fail to be resolve
<p>I have added <code>android:exported=&quot;true&quot;</code> to activity with intent in my manifest file as suggested by most solution here. However <strong>manifest merger</strong> returns the error below:</p> <p><em>Error: android:exported needs to be explicitly specified for . Apps targeting Android 12 and higher ...
2
2,791
How to merge identically structured, nested json files using jq
<p>I need to merge an array in a series of identically structured, nested JSON files that share the same higher level keys. </p> <p>The goal is to create a merged file while retaining all of the existing, higher level keys and values. </p> <p><strong>File 1:</strong> </p> <pre><code>{ "account": "123456789012", ...
2
1,505
PHP MySQL image hit counter
<p>I'm new to PHP and have been working on a hit counter. The hit counter works great but now I want to convert the numbers into images.</p> <p>I have created 12 images 0-9, a spacer, and a comma image.</p> <p>I have searched high and low for a hint of what I need to do to convert the number format into images and ha...
2
1,321
ResponsiveSlides is not working properly
<p>I am using responsiveSlides Slider but it is not working till auto mode is true. I have a code as follow...</p> <p>Js Code :</p> <pre><code>&lt;script src="Scripts/responsiveslides.min.js" type="text/javascript"&gt;&lt;/script&gt; &lt;script src="Scripts/responsiveslides.js" type="text/javascript"&gt;&lt;/script&g...
2
1,067
reading ajax request body values by name with asp.net mvc 5 action controller
<p>i want to access jquery ajax post request body to get the value on my asp.net mvc 5 controller action. knowing that i m passing __RequestVerificationToken with success.</p> <pre><code>&lt;script&gt; $(document).ready( function () { $("#renamedashboard").click(function () { swal({ ...
2
1,695
Major performance loss in UIWebView on iOS 9
<p>I have boiled down my issue to a very simple scenario and it appears to be with iOS 9+ and UIWebView with a website that has lots of page loads (like you would get from navigating).</p> <p>I followed this tutorial (<a href="http://conecode.com/news/2011/05/ios-tutorial-creating-a-web-view-uiwebview/">http://conecod...
2
1,936
Adding one item of a single product, changing the quantity of all products in ReactJS
<p>Tried to add two buttons, one to add item(increment the quantity count) and other to delete item(decrements quantity count) to update the quantity parameter. When i click on the add item button of one product, the quantity of all the products is getting updated. How to make these buttons work independently for each...
2
2,776
Difference in absolute positioning of Text in iText5 and iText7
<p>I am trying to migrate from <code>iText5</code> to <code>iText7</code>, but there has been an issue with absolute positioning of texts. It seems that there's a quite a bit of offset in the relative positions of same texts even after giving exact same measurements to iText5 and iText7.</p> <p>Here is the code that s...
2
1,825
JSON and JavaScript integration when formatting a SPARQL query in HTML
<p>I have an HTML + SPARQL + JSON + JavaScript program that works correctly, shown here: <a href="http://ontomatica.com/public/test/clavius.html" rel="nofollow">http://ontomatica.com/public/test/clavius.html</a></p> <p>Here is the SPARQL + JSON + JavaScript code:</p> <pre><code>function retrieveData() { var query =...
2
3,052
Bootstrap grid not working properly in google chrome
<p>So I have this website that uses a bootstrap grid system and which works 100% perfectly on firefox but not properly on google chrome or safari. </p> <p>How is this so? </p> <p>HTML</p> <pre><code> &lt;!DOCTYPE html&gt; &lt;html lang="en"&gt; &lt;head&gt; &lt;title&gt;Index&lt;/title&gt; &lt;meta c...
2
2,573
How to avoid bidirectional insertion on ManyToMany relationship
<p>I have two tables with a m:n relationship. This relationship should be bidirectional when I am extracting the data from the database, so, I need the <code>@ManyToMany</code> in both entity classes. But, at the same time, I need that the non owner class does not insert the owner class when I perform a persist or merg...
2
1,159
Error : Invalid block tag: 'else', expected 'empty' or 'endfor'
<p>I'm currently doing some starting stuff on Django 1.3.1 and following error struck me for 2 hours. Help me in figuring out the error. I have included my code on <a href="https://bitbucket.org/nnpkandgmailcom/startthedark/src" rel="nofollow">bitbucket</a>. </p> <p>Error:-</p> <pre><code>TemplateSyntaxError at /even...
2
1,176
how to inserting and update image Summernote in laravel 5
<p>I use summernote as a WYSIWYG on my web, but I get a problem that I can't find in google(not solve my problem), which is how to input images in my text-area using summernote and display them in view I have used various methods as below but still produce errors, I hope I can get the answer in this amazing StackOverfl...
2
2,314
An error was thrown in afterAll ReferenceError: module is not defined, Karma/Jasmine test error in nodejs
<p>I'm trying to write tests for m nodejs simple application with karma and jasmine as a framework. I'm using karma-coverage for preprocessor. Here is the structure of the project: <a href="https://i.stack.imgur.com/wCd80.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/wCd80.png" alt="enter image des...
2
2,004
RVM and OSX Lion - RVM 'forgets' gemsets on system restart
<p>I never seemed to have this problem while doing Rails work in Linux, but since changing to OSX everytime I reboot my machine, RVM loses its list of gemsets, but they aren't actually gone.</p> <p>For example, I have several gemsets already made, and I restart my computer.</p> <p>I run the following command:</p> <p...
2
1,118
How to add local spring boot project as a dependency in another spring boot project
<p>I have spring boot project Core which has some basic core functionality. Another project UserManager in which I want to add dependency of core.</p> <p>Below are the build.gradle and settings.gradle of both projects</p> <p>settings.gradle of Core</p> <pre><code> pluginManagement { repositories { gra...
2
1,628
Import Bootstrap 3 CSS into Angular 2+ with SASS as CSS
<p>I need to override some things in Bootstrap (3.3.7) CSS, so I need to load Bootstrap before all my other styles in order to do that. I understand the way to do that is to import it in my application's main <code>styles.sass</code> at the top of the document. But when I do this via:</p> <pre><code>@import ./bootstr...
2
1,723
Android app - Inputting integers from buttons depending on number of presses
<p>I'm writing a calculator app for android using android studio. I want to used 4 buttons for inputting values and functions. However the way I am currently doing it takes the input from the text written on the button. So for my button 1/2/3 when this is pressed 1/2/3 is passed to the textView. </p> <p>Below is my Ma...
2
3,034
Relationship between training accuracy and validation accuracy
<p>During a CNN model training, I noticed various behaviour in between training and validation accuracy. I understand that <a href="https://stackoverflow.com/a/51345413/11901732">'The training set is used to train the model, while the validation set is only used to evaluate the model's performance...'</a>, but I'd like...
2
9,559
How to catch requests.get() exceptions
<p>I'm working on a web scraper for yellowpages.com, which seems to be working well overall. However, while iterating through the pagination of a long query, requests.get(url) will randomly return <code>&lt;Response [503]&gt;</code> or <code>&lt;Response [404]&gt;</code>. Occassionally, I will receive worse exceptions...
2
1,631
NullPointerException while using GridViewPager class on Android Wear
<p>I have a problem with using GridViewPager for Android Wear. When adding it to my layout Android Studio says that there is no such class (Null Pointer Exception). What am I doing wrong? I'm using Android Studio 0.8.2 and I have choosen Wear application via wizard. Here is my code:</p> <p>Layout:</p> <pre><code>&l...
2
1,809
Flexslider 2.2 Carousel slides don't stay synced after animationLoop
<p>Anybody have any suggestions for me?</p> <p>I have a Flexslider 2.2 Slider and Carousel on my page that scrolls through 8 images. After the eighth, I have the animationLoop set to True to force it to keep repeating the eight. The problem is that after the Slider and Carousel has navigated all eight, the Slider go...
2
3,459
Error #2025: The supplied DisplayObject must be a child of the caller - Not sure how to fix
<p>So I get an error saying that the supplied DisplayObject must be a child of the caller. What happens is my game works first time around in that clicking the <code>'Play'</code> button calls the <code>startGame</code> function and removes the menu so that the game is shown, but then at the end of the game when the <c...
2
3,979
incremental select using id from SQLite in Twisted
<p>I am trying to select data from a table in SQLite one row ONLY at a time for each call to the function, and I want the row to increment on each call (self.count is initialized elsewhere and 'line' is irrelevant here) I am using an adbapi connection pool in Twisted to connect to the DB. Here is the code I have tried:...
2
2,545
Is there an acceptable cross-platform method for displaying a numeric keypad in standard web forms on a touch-based device?
<p><strong>The goal</strong>: To find a cross-platform solution for displaying numeric keyboards on mobile touch-based devices, with a minimum of hacks.</p> <p><strong>The problem</strong>: </p> <p>I have a regular web application using data input forms, containing primarily numeric data. When a user interacts with m...
2
1,095
ASP.NET MVC One to Many Database Table Values with List Attribute
<p>My First Table is:</p> <p>First Table Name: Contacts<br /> ContactID (PK)<br /> FirstName<br /> LastName<br /> Company<br /></p> <p>Second Table Name: Phones<br /> ContactID (FK)<br /> PhoneType<br /> PhoneNumber<br /></p> <p>My view Model is<br /></p> <pre><code>public class ContactVM2 { public int ContactI...
2
2,700
React Redux interval action doesn't refresh component
<p>I have a problem with React Redux interval action. It uses Axios to call Twitch api in 20sec interval and updates redux state. Redux state is updating successfully every time but component doesn't refresh. I have to make some other action to refresh component. What is wrong?</p> <p><strong>Store</strong></p> <pre>...
2
1,928
Using a custom ID for mongoose schema
<p>I'm wondering if there is a good approach for assigning custom (user friendly) ID's to a schema. I want my own ID to be something like '1234' not the ObjectID automatically assigned by mongoose. The app I'm creating is a task management app so I want each task created to have an easy to read id which can be entered ...
2
1,233
How to setup Gitlab hook to validate a git push to remote
<p>We have a DevOps process where people checkout or update from the remote master branch, create a new local working branch from the master and begin work in the local branch.</p> <p>1) I need to put in restrictions that will keep people from pushing straight to the remote master branch directly. Instead, people need...
2
1,547
Play Framework Templates - Iterating over a list issue
<p>I'm having an issue with iterating over a List that is passed to a Play Framework Template. I essentially have a query that fetches from a many-to-many association, and I want to render the parent key once and the associated keys several times.</p> <p>Below is the actual code I'm using:</p> <p>Using Slick, Scala a...
2
1,055
GetUserPreferredUILanguages() never returns more than two languages
<p>I'm trying to retrieve the complete list of the user's preferred languages from a C++/Qt application, as configured in the "Region &amp; language" page in the user's preferences:</p> <p><a href="https://i.stack.imgur.com/HTftr.png" rel="noreferrer"><img src="https://i.stack.imgur.com/HTftr.png" alt="Preferred langu...
2
1,110
How do I pass the whole div to XEPOnline.js library and not just the first svg element?
<p>I am using css2pdf@cloudformatter to export my plotly.js svg to pdf. It works nicely, but it does not export the colorbar of the heatmap. I am using the "srctype:'svg'" option to save the svg in exactly the format as it is on my website. Please have a look at the fiddle <a href="http://jsfiddle.net/rk9540x5/4/" rel=...
2
1,056
Celery Deadlock when saving data in Django, why?
<p>I have a <strong>Deadlock</strong> when using a <strong>Celery</strong> task to save new customers from a CSV. This is what I have working so far.</p> <pre><code> for line in csv.reader(instance.data_file.read().splitlines()): for index, item in enumerate(line): number = int(item) #...
2
1,173
gtag / google_tag_manager confusion
<p>I am using Google Analytics to track custom events in my react application. When I first rolled out the code, I read <a href="https://developers.google.com/analytics/devguides/collection/gtagjs/migration" rel="nofollow noreferrer">this document</a>, suggesting use of <code>gtag</code> method instead of <code>ga</cod...
2
1,127
Custom navbar theme in Wordpress
<p>So I am in the process of building a custom theme in wordpress. Using trial and error I have managed to figure out most of it however I am struggling when creating a custom navbar. </p> <p>Essentially I am copying an existing website from a general PHP site to wordpress so the owner can modify it more freely and ha...
2
1,991
AWS Elastic Beanstalk 500 error (Django) - Python-urllib/2.7 & static files error
<p>I'm currently deploying the Django &amp; React Web on the Elastic Beanstalk, but I still get the 500 error. Is there any method to get rid of this error? I use PostgreSQL, and I grepped only 500 errors down below.</p> <p>Here's my git repository: <a href="https://github.com/ujin43255252/davidgram" rel="nofollow nor...
2
4,173
Python 3: Name 'Class instance' not defined
<p>I've been working on a text-based adventure game and currently I'm working on splitting up one large game script I have into separate modules. </p> <p>This is the main game module containing the game's logic. Within the <code>main()</code> function I have defined instances of classes </p> <pre><code>from gameworld...
2
1,349
PHPWord LineBreak in TextRun not working
<p>I found advice from an older <a href="https://stackoverflow.com/questions/17689188/phpword-how-to-add-text-break-new-line-while-in-a-text-run">Stack Over Flow Question</a> and I am having problems getting it to work. I added the methods where they described but the generated word file does not have the linebreaks (...
2
1,168
Downloading files from public Google Drive in python: scoping issues?
<p>Using my answer to <a href="https://stackoverflow.com/questions/68270332/automatically-download-large-files-in-public-gdrive-folder">my question</a> on how to download files from a public Google drive I managed in the past to download images using their IDs from a python script and Google API v3 from a public drive ...
2
1,508
IncompatibleClassChangeError in Scala Spring-Boot application
<p>I am currently experiencing a weird exception when testing my Scala - Spring Boot application with JUnit Vintage.</p> <pre><code>java.lang.IncompatibleClassChangeError: org.myapp.SampleWebApplication and org.myapp.SampleWebApplication$delayedInit$body disagree on InnerClasses attribute at java.lang.Class.getDe...
2
1,418
In kartik/gridview of yii2 export link is not display its shows the #?
<p>I have written following code for export data as csv or other format using kartik/gridview plugin in yii2. When i click on export button its display # sign on each type of export so hot fix this issue.</p> <p>index.php</p> <pre><code> &lt;?php use yii\helpers\Html; use yii\grid\GridView; use yii\wid...
2
1,055
Log Buffering Through MSMQ to WCF Web Service
<p>I have an interesting situation on my hands. For a few years now we've had a WCF service that runs on an IIS box on our network that we use for logging. Applications use basicHttpBinding to send log messages and it logs them to a database. Most of the logging from all other applications is limited to a few dozen log...
2
1,270
React Native and Laravel API
<p>I'm very new to API, and recently I started learning React Native and found some quick tutorial about RN frontend and Laravel backend just App just to show how is API working between. So I done everything step by step but my data from laravel, server is not fetching... Here is my whole code</p> <p>Starting from Lar...
2
2,162
BuildConfig has already been added to output. Please remove duplicate copies. Android
<p>I have an Android project that uses gradle with library project as dependency.Dependency project has same package name as project.When I try to build the project but failed.</p> <p>Here is the folder structure with files in question:</p> <p>Library AndroidMainifest.xml</p> <pre><code>&lt;manifest xmlns:android="h...
2
1,428
javax.jms.InvalidSelectorException when calling javax.jms.QueueSession.createBrowser() in weblogic12c
<p>after upgrading Weblogic version from 10.3.6 to 12.1.2 i get <strong>javax.jms.InvalidSelectorException</strong></p> <p>when calling JMS API </p> <p><strong>javax.jms.QueueSession.createBrowser(Queue queue, String messageSelector)</strong></p> <p>the selector i'm using is </p> <pre><code>String...
2
1,835
Retrieving icons from assets via MdIconRegistry and DomSanitizer
<p>Hi I have a <code>components/home-component/home.component.html</code> and <code>components/home-component/home.component.ts</code> in my project. I also have a <code>svg</code> file <code>assets/homenav/home_icon.svg</code>. I am loading the icons in the constructor of the <code>home.component.ts</code>:</p> <pre>...
2
1,186
Load more button push element up not down in angular app
<p>I have a angular application. Till today it works fine in google chrome but today when i click the load more button load more button is still there and push every time 10 product on the top. It mean when we click a more button some data load and more button goes down by scrolling we can load again but in my case loa...
2
6,685
OleDbConnection locks Excel xls file if the file is corrupted
<p>I have a legacy code that imports Excel (*.xls) to our db, then move the file to specific directory after processing.</p> <p>The code works fine except in one case, when the file is corrupted (even MS Excel cannot open it)! What happens in this case is that an <code>System.AccessViolationException</code> thrown at ...
2
1,085
How to ignore OncePerRequestFilter for specific apis
<p>I created a custom filter for token authentication <code>AuthenticationTokenFilter</code> and it is extended by <code>OncePerRequestFilter</code>. I configure some APIs as whitelist APIs in my <code>SecurityConfig</code>, for these whitelist Apis, I tried to bypass my <code>AuthenticationTokenFilter</code>.</p> <pr...
2
1,129
Checkbox on web page using Excel VBA
<p>I am trying to check a checkbox on a web page using Excel VBA. My code did not work. (There was no error but the tick was ticked) </p> <p>How can I make the tick show when I do it on the web page?</p> <p>Am I doing something wrong with the web scraping?</p> <hr> <p><strong>HTML:</strong></p> <p><div class="snip...
2
2,341
How to debug a 404 error when using Spring Boot and Thymeleaf?
<p>Here is the Controller class:</p> <pre><code> package me.ankit.zooplus; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.RequestMapping; @Controller public class HomeController { @RequestMapping("/home") public String home() { ...
2
2,134
How to combine two yolov3 models for object detection?
<p>We have two yolov3-tiny models for license plate detection.The first yolov3-tiny model detecting licence plate on cars and cropping it for the second yolov3-tiny model, then should send these output cropped images to the second yolov3-tiny model as input images. The second yolov3-tiny model should have receive these...
2
4,535
Decrypt H2 Database using ChangeFileEncryption() fails
<p>I want to decrypt an encrypted H2 database in order to be able to use the recover tool in a following step. The decryption via "ChangeFileEncryption" does not seem to work properly. A little sample programm:</p> <pre><code>public class H2DecryptionTest{ public static void main(String[] args){ try { ...
2
1,429
Generating a random number in a loop
<p>I'd like to know how would you generate a random numbers in the loop. I know I should use <code>java.util.random</code>, but i'd like to know how should I do it,because the thing is, that I need to generate as many item random numbers the program needs, because its sorting algorithm. </p> <p>For example, first of a...
2
1,172
Calculate the difference between two dates in PHP?
<p>I want calculate the difference between two dates in Javascript. Result should be X years, Y months, Z days</p> <p>I run below code in PHP but result is different. Which is problem in here?</p> <p>PHP CODE 1</p> <pre><code> // Declare and define two dates $date1 = strtotime("2010-04-01"); $date2 = strtotime("2...
2
1,328
fetch the week number bootstrap datepicker
<p>please help me, i have searched on how to get the week number and range. I have found the following sources..<a href="https://stackoverflow.com/questions/30230615/fetch-week-number-and-week-start-end-date-using-bootstrap-datepicker">stackoverflow.com/questions/30230615/fetch-week-number-and-week-start-end-date-using...
2
1,306
Type "LocationComponent" is part of the declarations of 2 modules:Angular 6?
<p>I am completely new to angular, so I cant able to resolve my error using other stack flow answers. Kindly help.</p> <p>I am using an angular 6. I already have a basic format,so I am trying to add child page. But I got this error <strong>'Type LocationComponent is part of the declarations of 2 modules'</strong> and ...
2
1,622
How to properly manage a vector of void pointers
<p><strong>First, some background:</strong></p> <p>I'm working on a project which requires me to simulate interactions between objects that can be thought of as polygons (usually triangles or quadrilaterals, almost certainly fewer than seven sides), each side of which is composed of the radius of two circles with a va...
2
1,856
Exiting: Error in initing prospector: No paths were defined for prospector accessing config
<p>I am trying to visualize sample data on Kibana using Windows. I followed the link to Security Analytics section to setup Elasticsearch, Kibana and Filebeats. <a href="https://www.elastic.co/solutions/security-analytics" rel="nofollow noreferrer">Link to installation</a></p> <p>I have installed Elastic search and Ki...
2
2,459
Problem in POST and PUT request, with axios, vuetify datatable, vuejs
<p>I'm trying to adapt a sample datatable from the vuetify website itself according to my needs by implementing axios to consume my api. The <strong>GET AND DELETE</strong> method is working perfectly, however I am very confused about the <strong>POST AND PUT</strong> method, I am using 2 models as a client and the rel...
2
8,871
How to parse a DTD file in Ruby
<p>I was trying to convert a DTD file to a YAML file, and I've tried loading it both in libXML and Nokogiri, but it seems that a DTD file is not a valid XML file. I'm fine with using any third-party gems as long as I can parse the DTD file.</p> <p>My attempt at conversion:</p> <pre><code>wget "http://xml.evernote.com...
2
1,134
If values from two columns in two different data frames match then copy values from another column in df2 to column in df1
<p>I have two data frames, and I want to copy values from the column "Result2" in df2 to column "Result1" in df1 and to add the column "Description" from df2 to df1 for values that are in the same row as values from the column "Result2" (that are already copied), if the values from columns "ID" in both data frames matc...
2
1,697
Date Criteria in PS Query
<p>I have this criteria for my PS Query:</p> <p><em>Admission Data Creation (Date) This is a FROM date. All records starting from the selected date to the current date will be included in the report. Leaving this blank will default this to the current date.</em> </p> <p>And I made the query below:</p> <pre><code> W...
2
1,480
Including images on axis label in an animated ggplot2
<p>I created an animated bar plot displaying goals scored by players (fictional). </p> <p>Please see the reproduced data for the example: </p> <pre><code>df &lt;- data.frame(Player = rep(c("Aguero", "Salah", "Aubameyang", "Kane"), 6), Team = rep(c("ManCity", "Liverpool", "Arsenal", "Tottenham"), 6), ...
2
2,590
How to configure Akka to expose metrics to Prometheus using Kamon?
<p>I am trying to configure my project which is based on Akka 2.6.10 to expose metric values to Prometheus. I saw this <a href="https://stackoverflow.com/a/54081547/2096986">question</a> which uses <a href="https://kamon.io/docs/latest/guides/migration/from-1.x-to-2.0/" rel="nofollow noreferrer">Kamon</a> but I couldn'...
2
1,374
Script does not function when dynamically including jQuery
<p>I've got a script that I'm trying to modify so that I don't load the jQuery library if its already present. However, the only way I can get things to work is example 1 below (explictly loading the jQuery library). When I try to conditionally load it, the slider does not work...</p> <p>Example #1 - the slider works ...
2
1,120
How do I determine what this code does and if it might be malicious?
<p>Recently my website went offline due to over-usage of server resources.</p> <p>After getting it online again, I checked some files, and to my surprise each PHP file got a header like this (varying a little from file to file):</p> <pre><code>/*versio:2.12*/ $Q000=0; $GLOBALS['Q000'] = '_cY3VybAq~pX2luaXQLIQYWxsb3d...
2
10,822
Android NDK make. Hundreds of "undefined reference error"s
<p>When trying to build this sample project <a href="https://github.com/caffe2/AICamera/tree/master/app/src/main/cpp" rel="nofollow noreferrer">https://github.com/caffe2/AICamera/tree/master/app/src/main/cpp</a> I get hundres of <code>error: undefined reference</code>s. Here are the first few lines of output:</p> <pre...
2
2,991
d3 stacked bar mouse over whole bar
<p>I have created a stacked bar graph using a tutorial. The stack is created with the following:</p> <pre><code>var layers = d3.layout.stack()(["passed", "failed", "skipped"].map(function(cause){ return data.map(function(d){ return {x: d.UP, y: +d[cause]}; }); })); </code></pre>...
2
1,470
Multiple sets of radio button with ng-model and ng-repeat
<p>I'm very new to Angular and I have some issues with setting the default option on my radio buttons. I have already checked the other answers and using <code>$parent</code> does not solve my issue or I'm using it wrong.</p> <p>I have a group of radio button which contains 2 input:</p> <pre><code>input type="radio" ...
2
1,440
ElasticSearch how to search comma separated string inside comma separated fields?
<p>In a case I should search a comma separated string against a comma separated fields, because of this I do the following in mapping but show <code>MapperParsingException[Analyzer [comma] not found for field [conduct_days]]</code> error.</p> <pre><code> $course = new Course(); $course-&gt;no = ...
2
3,109
Twisted Klein: Synchronous behavior
<p>I am using Twisted Klein because one of the promise of the framework is it is Asynchronous, but i tested that app i develop and a little code for testing and the framework behavior seems to be synchronous.</p> <p>The test server code is:</p> <pre><code># -*- encoding: utf-8 -*- import json import time from datetim...
2
2,167
Azure Cosmos DB Stored Procedure - 413 Request Too Large
<p>I've run into an issue regarding a Stored Procedure that I've written to perform bulk updates/deletes as a single transaction. The SP is:</p> <pre><code>function UpdatePages(pageList) { // If no pages were given, end right now. if (!pageList) throw new Error("Input page list cannot be null"); //gettin...
2
1,636
Entity Framework - Eager loading, all properties to list
<p>I have a simple project in which i have the following model.</p> <pre><code>Customer 1---&gt;N Addresses N&lt;----1 City N&lt;----1 Country ^ N| | AddressTypes 1-------+ </code></pre> <p>Here is my code:</p> <pre><code>public partial class Customer { ...
2
1,312
Joomla, Sp Page Builder and ReCaptcha
<p>It's the First time that I use <strong>SP Page Builder</strong> component with Joomla. I want to use their contact form, but it doesn't support Google ReCaptcha. I'm good enough with coding to thought that I could manually add it into : /com_sppagebuilder/addons/ajax_contact/site.php and get it to work. I did add : ...
2
1,381
send audio using html5 websockets
<p>My requirement is to send audio chunks captured from microphone to the server using html5 web socket connection. Establish a web socket connection with the server.When user is speaking capture small chunks of audio and send to the server. This should happen till the user stops speaking for 10 seconds, then close the...
2
1,071
How do I set an echarts boxplot x-axis label?
<p>How can I change the x-axis labels on an echart boxplot? In the example, there are 5 datasets being plotted, and I need to be able to give them their own x-axis value/label. I'm more used to using chartjs, but they don't have box charts. For the purposes of this example, I'd need the labels to be ['PTM 07', 'PTM 08'...
2
1,411
Filter google places API search results iOS swift
<p>I'm looking to filter my near by location searches to restaurants only in the google places API in swift I found tags on googles website <a href="https://developers.google.com/places/supported_types" rel="nofollow noreferrer">https://developers.google.com/places/supported_types</a> but I don't know how to implement ...
2
2,473
Python openSLL Server Crash on connection - odd error on SSL
<p>I am trying to get a SSL server running, so it can accept JSON object and reply with other JSON objects. However, before doing JSON objects, I decided to do a simplified version and I came across this weird error with SSL that I cannot find anything about. Solutions on the generation of the certificate did not seem ...
2
2,244
How to compare user'r current location to other locations and display them in UITable View?
<p>I am developing an app in swift and I have to compare user's current location to the other locations taken from a JSON file. Then I have to display all of the locations which are in a certain range from the user's location. This range I take from a UISlider. I mean when the user selects 25km in the slider, the app h...
2
1,172
how to download a large binary file with RCurl *after* server authentication
<p>i originally asked <a href="https://stackoverflow.com/questions/17306695/httr-get-function-running-out-of-space-when-downloading-a-large-file">this question</a> about performing this task with the <code>httr</code> package, but i don't think it's possible using <code>httr</code>. so i've re-written my code to use <...
2
1,291
java.lang.ClassCastException on Proxy creation
<p>My goal is to create an instance from a <code>class</code> that implements an <code>interface</code> and extends another <code>class</code>.</p> <p>...Entity annotation:</p> <pre><code>@Retention(RetentionPolicy.RUNTIME) @Target({ElementType.METHOD, ElementType.FIELD}) public @interface Entity { String visibi...
2
2,096
retrieving data from database using jsp
<p>I want to retrieve data from database using jsp and display it on jsp. I tried with jsp and servlet and it is working but when I want to do with only jsp its giving this error.</p> <p>retrieve.jsp:</p> <pre><code>&lt;%@page contentType="text/html" pageEncoding="UTF-8"%&gt; &lt;!DOCTYPE html&gt; &lt;html&gt; &lt;he...
2
3,458
Nest grpc client is not communicating with the grpc server
<p>I was trying to implement a simple grpc service in my nest js project but unfortunately my client is not communicating with the server. I am sharing some codes below. It will be really helpful if anyone can give me some insights of whats going wrong.</p> <p>--------- GRPC Server -------</p> <p>Main.ts file looks lik...
2
1,663