title
stringlengths
13
150
body
stringlengths
749
64.2k
label
int64
0
3
token_count
int64
1.02k
28.5k
Jackson Polymorphic Deserialization with Spring Boot | JSON parse error: Unexpected end-of-input within/between Object entries
<p>I am using @JsonTypeInfo and @JsonSubTypes to serialize/deserialize the entity.</p> <p>Below is code which I am doing</p> <ol> <li>OrganizationDTO.java</li> </ol> <pre><code>public class OrganizationDTO { private long id; private String name; List&lt;? extends EmployeeDTO&gt; employees; //getter a...
2
1,837
WPF menu - Dynamic show and hide content
<p>I need to create interactive menu. When option was choosen, I want to show appropriate content.<br /> For example when option "Schemat bazy Northwind" was clicked, to my grid should be added Image. When another option was choosen previous content is removed and etc. <br /></p> <p>The only thing that comes to my min...
2
1,334
Linked Lists Nodes in Assembly (Bomb Lab Phase 6)
<p>I'm struggling to figure out how the nodes are being compared to the inputs. So far I've been able to discern that it requires six integers, which correspond to nodes. Also, the numbers can't be repeated.</p> <p>I noticed that $rbx was continually getting incremented by 8 and after poking around I was able to find ...
2
2,906
Send and receive multiple files simultaneously using TcpClient and Tcplistner
<p>I'm trying to build a Server\Client program which allows me to transfer multiple files simultaneously between my laptop and home computer. My program works just fine when send a single file; however, when I try to send multiple files simultaneously on separate threads it doesn't work (i don't receive any file on th...
2
1,271
not sure why ng-repeat-start and ng-repeat-end throws exception
<p>First of all a background of what i want to achieve,</p> <pre><code>&lt;tr ng-repeat-start="eachParam in myArray"&gt; &lt;td rowspan=2&gt;On site&lt;/td&gt; &lt;td rowspan="2" class = "success"&gt;{{eachParam.support}}&lt;/td&gt; &lt;td class = "warning"&gt;FE&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;...
2
1,032
Converting image response, after post request, to file
<p>At the moment a try to render highcharts charts (JS) on a server, like described here <a href="http://www.highcharts.com/docs/export-module/render-charts-serverside" rel="nofollow noreferrer">http://www.highcharts.com/docs/export-module/render-charts-serverside</a>.</p> <p>This is my code:</p> <pre><code>Helper.ge...
2
1,326
Mock Android Application class for tests using Robolectric in App with Dagger 2
<p>I'm a complete beginner when it comes to testing and my current task is to fix an issue that stops already existing tests from running.</p> <p>Several tests using <code>Robolectric</code> are failing with the error message</p> <pre><code>java.util.ServiceConfigurationError: org.robolectric.internal.ShadowProvider:...
2
1,890
shiny server an error has occured load namespace no package rcpp but rcpp is installed and loading shiny in R works
<p>I was recently trying to open a shiny server app on my server and got this error which I have never seen before.</p> <pre><code> Error in loadNamespace(j &lt;- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]) : there is no package called ‘Rcpp’ Error: package or namespace load failed for ‘...
2
1,341
Comparing two dates using Comparable interface
<p>I am currently designing a GUI for a bank database application. In my GUI I have a "List accounts opened before" button that I am trying to code to list all of the accounts in the database in a text area that have dates before a date that the user inputs into a text field. I am very confused about the implementation...
2
2,723
Shiny creating a reactive legend
<p>I am following a solution given in <a href="https://stackoverflow.com/questions/53163119/r-shiny-aesthetics-must-be-either-length-1-or-the-same-as-the-data-8-y">R shiny Aesthetics must be either length 1 or the same as the data (8): y</a> for that annoying problem which I have happily fixed.</p> <p>The next issue I...
2
1,332
Unable to build poky recipes: /poky/meta/recipes-core/ncurses/ncurses_6.0+20171125.bb:do_install failed
<p>I am trying to build the meta-altera layer recipes from Altera FPGA, but it seems I am unable to bake the poky recipes-core/ncurses recipe.</p> <p>I am seeing the error message</p> <blockquote> <p>ERROR: Task (virtual:native:/home/jfrye/Developer/Altera/Playground/poky/meta/recipes-core/ncurses/ncurses_6.0+20171125....
2
1,580
KOPS: Kubernetes Cluster with private networking on AWS VPC: Error Listing Nodes
<p>I followed this tutorial: <a href="https://kubecloud.io/setting-up-a-highly-available-kubernetes-cluster-with-private-networking-on-aws-using-kops-65f7a94782ef" rel="nofollow noreferrer">Kubernetes Cluster with private networking on AWS using Kops</a></p> <p>However, after creating the kubernetes cluster, I am gett...
2
1,767
Null pointer exception in CriteriaQuery using spring boot and spring data JPA
<p>I am trying to implement the one example for Criteria API using CriteriaQuery with spring boot and spring data JPA. And when I am running the project , I am getting error Null pointer exception,</p> <p>Error,</p> <pre><code>java.lang.NullPointerException: null at com.spacestudy.controller.AuthenticationController....
2
1,674
Adding multiple Jtextareas into same JScrollPane
<p>I know there are many questions about it but i read all of them. Mostly people prefer adding textareas into a panel and adding this panel into JScrollPane. I tried this but it is not working.</p> <p>Here is my code.</p> <p>AppSed Class</p> <pre><code>package gui; import javax.swing.SwingUtilities; public class ...
2
1,531
Xamarin crashing on build with Compiler crashed code 1
<p>I have installed Xamarin and am trying to build my first solution.</p> <p>So far I have created the new solution, then tried to build and run it. It's blank so I would expect it to at least compile.</p> <p>Unfortunately I'm getting the error 'Compiler crashed code 1'.</p> <p>So far I have reinstalled the Mono Fra...
2
3,947
RoleEnvironmentException in Microsoft Azure Instance Deployment
<p>I'm having a game with a WCF service and Azure. </p> <p>I have several WCF Services running successfully on Azure, this particular service has been operating correctly until I decided to redeploy it under a different (existing) Cloud Service. </p> <p>I removed it from under the role of cloud service X in my VS sol...
2
3,073
Akka Design Principals
<p>Whilst working on a fairly large Akka application, I have come across a very simple structure when working with normal methods and non-Akka classes but which are actually quite difficult to nail when working with Akka which is why I have come here to ask what you recommend to be the best way to solve this issue. </p...
2
1,295
spring-boot:run throws error when add hadoop dependency
<p>My SSM project,i add hadoop and phoenix dependency in my web module pom file, when execute "mvn compile",it can success,but "cd web module and execute mvn spring-boot:run",it thows error as follows:</p> <pre><code>java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native...
2
2,513
How do I add a copy constructor and assignment operator to this class?
<p>I'm having trouble adding a copy constructor to this class: <a href="http://www.justsoftwaresolutions.co.uk/threading/implementing-a-thread-safe-queue-using-condition-variables.html" rel="nofollow">http://www.justsoftwaresolutions.co.uk/threading/implementing-a-thread-safe-queue-using-condition-variables.html</a></p...
2
1,329
Add an image to userForm with click event using vba
<p>I created a userForm to make possible to create a survey. It looks like that at the beginning:</p> <p><img src="https://i.stack.imgur.com/gz3us.jpg" alt="enter image description here"></p> <p>Clicking the cross that is next to "Add answer" you can add more rows as it can be seen in this other image:</p> <p><img s...
2
2,327
how to add Django media javascript on the fly to a widget in an ajaxed form?
<p>I can't get my widget media JS to render in my AJAXed form. Only my widget's CSS gets rendered. How can I get the JS to render per widget? Don't want to have to stick it in my base template head and just have it waiting on each page in case it needs to get called. I also want to make use of the widget.Media clas...
2
1,250
primefaces datatable composite primary key multiple selection not work
<p>i have a problem using primefaces datatable with multiple selection ( checkbox ) with composite primary key below is my xhtml</p> <pre><code> &lt;p:dataTable id="cars" var="car" value="#{setujutolakanpencairan.listmktksppencairan0}" rowKey="#{car.mktksppencairan0PK}" select...
2
1,713
Google Maps API Marker Clusterer and Ajax
<p>I am running multiple ajax calls to download a large number of google maps icons. When I try to increment the Marker Clusterer, however, the map clears all markers. I believe this is because I am calling <code>var markerCluster = new MarkerCluster(map);</code> in each AJAX call.</p> <p>Can anyone tell me how to cor...
2
1,125
XNA C# HUD SpriteFont
<p>I added a SpriteFont to my HUD and this is what I get:</p> <p><a href="http://i557.photobucket.com/albums/ss13/KookehMonsters/Dev/Untitled-1.png" rel="nofollow">http://i557.photobucket.com/albums/ss13/KookehMonsters/Dev/Untitled-1.png</a></p> <p>All those white spots are from my camera panning and the text followi...
2
1,843
Java program stops working without warning
<p>I created a method:</p> <pre><code>public double Calculouno(double x1,double x2,double y1,double y2) { double ecuacion1; ecuacion1= (x2-x1)+(y2-y1); ecuacion1= Math.sqrt(ecuacion1); return ecuacion1; } </code></pre> <p>When my program tries to calculate ecuacion1 using mathematical functions such a...
2
1,504
How should I serialize domain model snapshots for event sourcing
<p>We are building an application using the <a href="http://lmax-exchange.github.io/disruptor/" rel="noreferrer">LMAX Disruptor</a>. When using <a href="http://martinfowler.com/eaaDev/EventSourcing.html" rel="noreferrer">Event Sourcing</a>, you often want to persist periodic snapshots of your domain model (some people ...
2
1,146
Call to undefined function setSurroundCount() CodeIgniter 4
<p>I'm trying to implement a pagination in my view but when I call the setSurroundCount function it gives me an error "Call to undefined method CodeIgniter\Pager\Pager:ConfusedetSurroundCount() " Does someone knows why ?</p> <p>Here is my controller :</p> <pre><code>function index($limit=100) { $model = new \App...
2
1,643
Android Save Image to New Folder
<p>I'm trying to save pictures that I took awhile ago into a different folder (the folder already exists). My manifest is up to date on permissions that I need, and I know I need to use something along the lines of: </p> <pre><code>MediaStore.Images.Media.insertImage(getContentResolver(), yourBitmap, yourTitle , your...
2
1,076
Easy Rotator issue with .load jQuery method
<p>I am having some issues with Easy Rotator(loads images and display them inside a slide show). The script works perfectly if I don't use the jquery .load method to load a .html file that contains the code to be loaded.The code for the html file is as follows. Thanks for your time!</p> <pre><code>&lt;!-- Begin DWUser...
2
3,043
Monaco editor default json uri schema
<p>I'm using monaco editor to edit JSON and I would like to set a custom diagnostic option. I'm trying that <a href="https://microsoft.github.io/monaco-editor/playground.html#extending-language-services-configure-json-defaults" rel="noreferrer">https://microsoft.github.io/monaco-editor/playground.html#extending-languag...
2
1,035
Smooth gradient background animation java
<p>I'm trying to set an animated gradient background for a JPanel. The effect works, but I would like to get a smooth transition when it starts again. Below is my current implementation. When the xvalue2 reaches a limit set, I swap the colors and start again. </p> <pre><code>public class GradientAnimation { static cla...
2
1,128
How to chain message sinks in a context bound object (aspect oriented programming)
<p>I am trying to use <code>ContextBoundObject</code> and message sinks to inject some aspects into my code.</p> <p>My problem is that my aspect is being called only once - when I make the call: <code>myFacadee.GetValue("Tie")</code> I would expect to see my caching aspect be called twice</p> <ol> <li>Once f...
2
1,546
RestKit 0.20.2 Routing and mapping
<p>I have the following JSON and routing mapping for it also follows. Single Item JSON</p> <pre><code>{ "quantity" : 0, "id" : 1, "version" : 0, "sku" : "sku1", "title" : "title1", } </code></pre> <p>and all Items JSON is as follows:-</p> <pre><code>[ { "quantity" : 2, "id" : 1, "version" : 0, "...
2
1,105
laravel 5.4 can i use custom method inside a where clause
<p>I'm trying to call a method inside a custom model function during query building but getting error.This way is it possible.Actually i'm trying to break the query in two function because filterData may be long.</p> <p>In model, i wrote like this</p> <pre><code>public function get_filter_sql2($query, $filterData){ ...
2
1,027
Response / Request pattern ... How to shape the DTOs?
<p>I am using Request/Response pattern on a service layer. I have, for example:</p> <pre><code>public class FindPostsByTypeRequest : Request { public PostType Type { get; set; } } public class FindPostsByTypeResponse : Response { public IList&lt;PostDto&gt; Posts { get; set; } public class PostDto { public...
2
1,221
How do I create an ascii-armored signed OpenPGP message using ArmoredOutputStream of the BouncyCastle crypto library (C# version)
<p>When I use ArmoredOutputStream I get a "-----BEGIN PGP MESSAGE-----" instead of a "-----BEGIN PGP SIGNATURE-----" after the clear text. I cannot figure out how to use ArmoredOutputStream on my own. Sometimes I get the signature header, but have non-base64 characters in the message. The BC legionaries must be sadists...
2
1,159
Can't connect Ngxin reverse proxy to Gunicorn on Django container (Docker)
<p>I've being trying to make a stack with a Nginx container receiving requests as a reverse proxy to my Django container with Gunicorn (not worrying about static files or DB for now), but I keep getting a <strong>502 Bad Gateway</strong> error on Nginx.</p> <p>Nginx logs:</p> <pre><code>2017/04/28 12:10:10 [notice] 1...
2
1,732
Automatically generated WAF solution fails to load
<p>Cryengine as an SDK has recently switched from providing pre-made solutions to forcing developers to use a WAF based build system to automatically generate a visual studio solution. Right now, there's very little communication coming from Crytek about problems everyone is having with the new build system so I was h...
2
1,314
How to create SCOM management pack monitor with three states
<p>I develop integration with SCOM. But I am a green hand in it.</p> <p>I have created management pack XML and it works fine.</p> <p>Please review management pack below:</p> <pre><code>&lt;ManagementPack xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" ContentReadable="tr...
2
3,631
Convert ASCII to unicode string in C/C++ (APIless)
<p>I know I <a href="https://stackoverflow.com/questions/11576846/convert-ascii-string-to-unicode-windows-pure-c">can</a> convert ASCII to unicode strings using <code>MultiByteToWideChar</code> but I want an APIless solution. The only difference is that unicode is 2 bytes compared to ASCII, which is 1.</p> <p>Should b...
2
1,125
Spring boot routing datasource not work correctly
<p>I am configuring spring boot web app with Postgres, Hibernate, Atomikos, JPA and Thymeleaf. I use AbstractRoutingDataSource to route to new datasource as below:</p> <pre><code> @Override protected Object determineCurrentLookupKey() { String currentTenantId = TenantContextHolder.getCurrentTenantId...
2
1,699
Keep transition effect on 1 div from moving the div that follows?
<p><strong>1.</strong> I have a 4 column row of divs that move a little when hovered (with margin and padding). How can I keep this movement from moving the content that is below it <em>without adding a fixed height</em>. It is in a fluid layout so with a fixed height that allows enough room for the movement, the co...
2
2,773
ASP.NET Edit and Delete issues in GridView
<p>I have created GridView with Insert, Edit, and Delete function. The Insert work great but not Delete and Edit. When I click Delete, it suppose to be automatic delete row but it never happen because it still there. Second issue same for Edit, I click Edit, then I change something there then click update, nothing chan...
2
8,009
How can I save prestashop invoices automatically and manually?
<p><strong>I want to print out an invoice(pdf) automatically, what's recently saved on the server. And also making manual saving possible</strong></p> <p>I'm using prestashop 1.6.1 and the invoices are mostly downloaded from the prestashop admin page, but I needed more easier way to print out these invoices, so I made...
2
1,806
Update Checkbox Group Input Not Working for More than One Checkbox
<p>Why does this <code>updateCheckboxGroupInput()</code> code not work when more than 1 checkboxes are selected. When one checkbox from the above group is selected, the box below should update to show more specific entries. But if more than one checkbox is selected at the top, the code fails. Anyone knows what the issu...
2
1,173
Nested Pass by Reference
<p>I need to have a nested pass by reference.</p> <p><strong>EDITED TO INCLUDE ACTUAL CODE</strong></p> <p>Exact error is:</p> <blockquote> <p>no matching function for call to ‘CLItem::getValue(std::string*&amp;)’</p> </blockquote> <p>Complete error is:</p> <pre><code>App/CycCmdLine.cpp: In member function ‘std:...
2
1,381
Adding custom capability Wordpress - users can't create new custom post type
<p>My problem is that all capabilities work as expected except non admin cannot create new widgets. The Add New button is there but the 'You do not have sufficient permissions' message is shown when clicked. The client has unchecked all standard capabilities like edit_posts (for some other reason before I showed up). S...
2
1,541
Unable to create a composite index, stuck at INSTALLED
<p>I'm unable to create an index. My Gremlin code is as follows:</p> <pre><code>usernameProperty = mgmt.getPropertyKey('username') usernameIndex = mgmt.buildIndex('byUsernameUnique', Vertex.class).addKey(usernameProperty).unique().buildCompositeIndex() mgmt.setConsistency(usernameIndex, ConsistencyModifier.LOCK) mgmt....
2
2,042
Partial string search in boost::multi_index_container
<p>I have a struct to store info about persons and multi_index_contaider to store such objects. Mult-index uses for search by different criteria.</p> <p>I've added several persons into container and want to find person by lastname. It works great, if I use whole lastname. But it returns nothig if I try to find person ...
2
2,188
Regex XML parsing C#
<p>I am trying to build a regex parser for a single XML block. </p> <p>I know people will say that Regex is not a good plan for xml, but I am working with stream data and I just need to know if a complete xml block has been broadcast and is sitting in the buffer.</p> <p>I am trying to handle for anything between the ...
2
1,958
URL resolution issues in Django Tests
<p>I've written a django model that has a get_absolute_url method, with unit tests to make sure everything is kosher. The get_absolute_url tests pass no problem. The get_absolute_url method is written as so</p> <pre><code>def get_absolute_url(self): return reverse("scheduling:klass", args=[self.pk]) </code></pre> ...
2
1,662
Random disconnects from master node NoNodeAvailableException using Elastic Cloud/Found
<p>I'm using elastic cloud (former found) with shield and the transport java client. The app communicating with ES runs on heroku. I'm running a stress test on a staging environment with one node </p> <pre><code>{ "cluster_name": ..., "status": "yellow", "timed_out": false, "number_of_nodes": 1, "...
2
2,455
Cannot deploy windows kernel driver to virtual machine
<p>I'm trying to deploy a Kernel Mode Driver to a virtual machine.</p> <p>The targe machine is a virtual machine on Hyper-V (Windows 10 x64 Enterprise), with boot debugging enabled : <a href="https://i.stack.imgur.com/6mKTX.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/6mKTX.png" alt="enter image ...
2
1,158
PHP in_array() not working properly
<p>I have an <code>if</code> statment below that checks if a value is present in an array and adds it in there if it's not. Apparently even if the value is in the array, it triggers it again.</p> <p>As far as I understand, it should only display 1 of each value, because it will only trigger 3 times, like this:</p> <p...
2
1,268
Avoiding Keyboard in SwifUI with TextEditor
<p>I'm attempting to recreate a simple version of the iOS notes app. Mind you, I'm a complete Swift novice. My current issue is that I want my view to move up as the keyboard appears. I've implemented some code that <em>does</em> do this, but it has some nasty bugs. It first moves the view up WAY too high, then when yo...
2
1,481
Angularjs and Displaying Nested Json Arrays
<p>New to angularjs and looking for some advice. We have hooked our angular front-end to a REST API that is spitting json back such as:</p> <pre><code>[ { "category_id":"1", "category_name":"dog", "subcategories":[ { "category_id":"4", "parent_id":"1", ...
2
1,050
Changing a continuous scale from decimal to percents
<p>The scale for penetration is listed as a decimal (.5 and down), but I am having a problem changing it to a percent. </p> <p>I tried to format it in my data as a percentage using this code</p> <pre><code>penetration_levels$Penetration&lt;-sprintf("%.1f %%", 100*penetration_levels$Penetration) </code></pre> <p>whi...
2
1,523
Class 'App\users' not found in Laravel when i create users.blade.php
<p>I am getting the following error:</p> <blockquote> <p>FatalErrorException in usercontroller.php line 21: Class 'APP\User' not found</p> </blockquote> <p><strong>usercontroller.php:</strong></p> <pre><code>&lt;?php namespace App\Http\Controllers; use APP\User; use Illuminate\Http\Request; use App\Http\Requests;...
2
1,079
React JS : Yup & Formik Error Message showing multiple times on Submit
<p>I am using Yup and Formik for my Sign up Form.</p> <p>I want to show an appropriate error based on my validation using YUP.</p> <p>Below is my Code.</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-js lang-js pret...
2
1,077
Setting options for adaptive payment, receiver cannot be null
<p>Here is my request object for setting payment option.</p> <pre><code>SetPaymentOptionsRequest Object ( [requestEnvelope] =&gt; RequestEnvelope Object ( [detailLevel] =&gt; [errorLanguage] =&gt; en_US ) [payKey] =&gt; AP-0MG8529097707340X [initiatingEntity] =&gt;...
2
2,313
Span rows of a table with mousedown and drag in jquery?
<p>I'm trying to develop a schedule where I can click any "time" row and drag down to span that row as far as the row that I 'mouseup'. For example, if I click down at 7:30 am and drag down to 9:00, the table data element will rowspan the appropriate number of rows so that table data becomes one block from 7:30 to 9:00...
2
3,112
Cannot set property statusCode of undefined
<p>I'm trying to create a backend to my application and i'm actually writing the route login for the users but I encounter a error when I test the route with Postman, this error is : </p> <blockquote> <p>UnhandledPromiseRejectionWarning: TypeError: Cannot set property 'statusCode' of undefined</p> </blockquote> <...
2
1,078
GWT compilation problem The constructor StackTraceElement(String, String, String, int) is undefined
<p>I am compiling my GWT module in Eclipse that inherits my other module (that compiles without problems) and I get this output:</p> <pre><code>Compiling module mymodule.GWT_TESTS Validating newly compiled units [ERROR] Errors in 'jar:file:/C:/apath/gwt-2.0.4/gwt-user.jar!/com/google/gwt/core/client/impl/Stac...
2
1,838
Integrating a JSON file into html with Mustache
<p>I think im fairly close, I have looked at a fair few examples of integrating an external JSON file into html with mustache, but at the moment it isnt working. The JSON file is full of trivia questions, here is a sample question that I am trying to link:</p> <pre><code>{ "jsonquestions": [ { "id":1, ...
2
2,903
How can I keep the original format of a cell in an Excel macro?
<p>I'm new in Excel VBA and I have managed to create a simple macro to automate some e-mails that carry a customized report for people at my work. In this case I'm a using a worksheet that changes depending on the information added to the file in general. The macro uses some of this info and creates a customized e-mail...
2
1,344
Download PDF resource from PHP to Javascript via Ajax
<p>So I will explain the problem:</p> <p>Steps:</p> <p>1) client (browser javascript) sends an Ajax request to the server that hits a controller method called download.</p> <p>2) the controller's method creates a PDF resource(without saving on the filesystem), and returns a response with the PDF binary stream back t...
2
1,108
BrowserRouter Running Error - Invalid Hook Call
<p>Here is my code:</p> <pre><code>import React from &quot;react&quot;; import ReactDOM from &quot;react-dom&quot;; import Navbar from &quot;./components/Navbar/Navbar&quot;; import &quot;./App.css&quot;; import Home from &quot;./components/Home/Home&quot;; import { BrowserRouter as Router, Route } from &quot;react-rou...
2
2,425
getting java.lang.nosuchmethoderror no virtual method execute when use android studio
<p>I am getting java.lang.nosuchmethoderror no virtual method execute error now after change the compile version to 23 in android studio</p> <p>please check my gradle file </p> <p>apply plugin: 'com.android.application'</p> <pre><code>android { compileSdkVersion 23 buildToolsVersion "23.0.1" defaultConf...
2
1,209
WP_Query custom post type by multiple custom fields
<p>Alright guys, I'm in way over my head.</p> <p>I'm trying to build a filter for a custom post type, 'Villas'. These villas have multiple custom fields, these custom fields exist in a group named 'features'.</p> <p>I've build a search / filter form that POST's the data, which I'm then able to capture using a $_GET r...
2
2,374
EC2 AWS - You don't have permission to access /phpmyadmin on this server
<p>I am new to Amazon Web Services. I have followed all the steps to launch <code>EC2</code> and <code>RDS</code> instances. Have installed all the required packages also like <code>phpmyadmin</code>, <code>mysql</code> etc. Now am getting bellow error when trying <code>http://my_ip/phpmyadmin</code></p> <blockquote> ...
2
1,255
Forcing Google Cloud's Datastore datetimes to default to UTC
<p>According to the datastore <a href="https://cloud.google.com/appengine/docs/standard/python/datastore/typesandpropertyclasses#DateTimeProperty" rel="nofollow noreferrer">docs</a>, datetimes are always stored and returned in UTC.</p> <p>However, in the cloud dashboard, all my datetimes are displayed in <code>CEST</c...
2
1,203
Use heap storage instead of stack (K&R 5.7)
<p>I have a program that sorts input lines lexicographically, and I've come to this exercise in K&amp;R:</p> <blockquote> <p>Rewrite readlines to store lines in an array supplied by main, rather than calling alloc to maintain storage. How much faster is the program?</p> </blockquote> <p>Here is the original program...
2
3,598
Context.SaveChangesAsync() is blocking
<p>I am currently rapid prototyping a WPF application following the MVVM pattern and using the Entity Framework and SQL Servre CE.</p> <p>I am experimenting with the <a href="https://msdn.microsoft.com/en-us/magazine/dn630647.aspx" rel="nofollow noreferrer">AsyncCommand by Stephen Cleary from the MSDN blog</a>.</p> <...
2
1,084
Capturing an image with ngx-webcam and sending it to face recognition api
<p>I am currently trying to directly send an image via ngx-webcam without saving it to my backend server and send it to a <a href="https://rapidapi.com/lambda/api/face-recognition-and-face-detection?endpoint=53aa3243e4b07e1f4ebe9bb3" rel="nofollow noreferrer">Face Detection API</a> via my node.js. The problem is that I...
2
1,674
WPF class library, loading XAML with absolute URI or relative URI both not working
<p>I'm programming a WPF class library mainly based on C# code and I'm currently trying to load XAML file only for styling UI Elements.</p> <p>Here is the XAML "style" code with "BuildAction : Content" :</p> <pre><code>&lt;ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" ...
2
1,140
key capture using global hotkey in C#
<p>I have a application that runs in the background like i may keep my app in the system tray.If it remains on system tray my app will do it's job. Whenever a user press F10 or F9 some works will be done. i tried this:</p> <pre><code>public partial class Form1 : Form { public int a = 1; [DllImport("user32.dll...
2
1,160
Adding ng-model to directive
<p>I have the following directive to reverse geocode a lat &amp; long into a place:</p> <pre><code>/* global app*/ app.directive('reverseGeocode', function () { return { restrict: 'A', template: '&lt;div ng-model="autoLocation"&gt;&lt;/div&gt;', link: function (scope, eleme...
2
1,163
Posting XML data to a Web Service via Console App
<p>I have a web service in my QA box that accepts and process an XML string, send an email and then returns another XML string. To test it, I want to overload it by making a console app to call it by sending it an XML, making make a loop in the console app so it sends it 1,000 times in one shoot. I seen a lot of sample...
2
1,034
disable form submit button until user checks recaptcha checkbox
<p>I'm trying to disable my form's submit button until the user clicks the Google Recaptcha checkbox 'I am not a robot'</p> <p>Is there anyway to do this or do I need to download a React component specific to Google Recaptcha?</p> <p>Here is my simple component that contains the Google Recaptcha:</p> <pre><code>cons...
2
1,891
Why is my custom UITableViewCell width incorrect on initial load?
<p>There are 2 stipulations to this issue. It CANNOT be solved by either a) </p> <pre><code>- (void)viewDidAppear:(BOOL)animated { ... [self.tableView reloadData] } </code></pre> <p>or b)</p> <pre><code>- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { ...
2
2,642
GSAP stroke animation strokeDashoffset not working properly
<p>I'm working with gsap here I'm trying to do stroke animation I got it. but the problem is complete SVG is not coming half icon is coming I tried changing strokeDashoffset it might be an issue with the getTotalLength(); Can anyone help me out this problem.</p> <p><div class="snippet" data-lang="js" data-hide="false"...
2
4,263
Error after installing react-native-navigation
<blockquote> <p>I have installed react native navigation following this link:</p> <p><a href="https://wix.github.io/react-native-navigation/#/installation-android" rel="nofollow noreferrer">https://wix.github.io/react-native-navigation/#/installation-android</a></p> <p>But I am getting errors after running ...
2
2,714
How to delete related fields using Entity Framework
<p>I have an object like this : </p> <pre><code>public class MyObject { [Key] public int Id { get; set; } public string ExternalNumber { get; set; } public virtual InternalProperties InProperties { get; set; } public virtual ICollection&lt;AdditionalPrice&gt; PriceHistory{ get; set; } } </code>...
2
1,093
How to update google pie chart using jQuery ajax
<p>I am using <a href="https://developers.google.com/chart/interactive/docs/gallery/piechart" rel="nofollow noreferrer">Google Pie Chart</a> for data visualization and displaying data on page load and now I have to updated pie chart when user select any class and data will update with ajax but I don't know how to updat...
2
1,746
Action.Submit on Adaptive Cards not working with Input.Text Python SDK
<p>I am trying the adaptive cards with the Bot Builder v4 Python SDK. I am trying to gather feedback from the user using the Input.text field and then the Action.submit </p> <pre><code>{ "$schema": "http://adaptivecards.io/schemas/adaptive-card.json", "type": "AdaptiveCard", "version": "1.0", "body": [ ...
2
1,162
Is it possible to display a message or default row in a Silverlight 3 Datagrid
<p>I have a DataGrid which is bound to a PagedCollectionView and the underlying collection may contain no items. When this occurs the DataGrid does not render at all, no column headers or anything, and when the DataGrid is then re-bound to another PagedCollectionView that does contain some items it causes a system erro...
2
1,153
ASP.NET MVC with WEB.API and Castle Windsor container
<p>I have ASP.NET MVC application with integrated Castle Windsor container. When I added ApiController, and tried to do POST, I got an error message: "Make Sure That the controller has a parameterless public constructor." Thanks for any advice.</p> <p>Castle Windsor integration:</p> <pre><code>public class CastleCon...
2
1,302
Remove Woocommerce standard wrapper <div class="woocommerce columns-''>
<p>I use custom theme with woocommerce. My main page displays products by categories and they are wrapped in the standard woocommerce block <code>&lt;div class="woocommerce columns-4"&gt;</code>. I need to remove it. In woocommerce folder i found just a single reference about this block in woocommerce/includes/class-w...
2
1,375
Why would my API App swagger be unavailable to my Azure App Service Logic App?
<p>I have created a simple api with a test controller and published it as an Azure Api App. I have public (anonymous) access enabled, the swagger ui works well in the browser and the swagger validates correctly, and I have added to it the default response setting that Logic Apps require.</p> <p>When I try to add the A...
2
1,529
SSL with Haproxy dont shows CSS
<p>I have a Problem with my HaProxy</p> <pre><code>global log /dev/log local0 log /dev/log local1 notice chroot /var/lib/haproxy stats socket /run/haproxy/admin.sock mode 660 level admin stats timeout 30s user haproxy group haproxy daemon maxconn 2048 tune.ssl.default-dh-p...
2
1,080
PowerShell - Changing MP4 Metadata (Right Click Properties)
<p>I've been trying to find a way to edit the &quot;Tags&quot; section by swapping it with the &quot;Title&quot; section for MP4.</p> <p>The problem is that I can't do this with ExiftTool, MP3Tag, MediaMonkey, and it's a nightmare trying to manually right click and change the Tags for every single file.</p> <p><a href=...
2
1,286
How to stop execve from exiting original program
<p>I have written my own shell and wrote a function that handles triple piping but I have an issue with my shell exiting after execve. I believe the issue is that I need to fork an extra time? but I am not entirely sure where, since this executes the piped programs perfectly. Also there is no use of wait(2) in this imp...
2
1,425
Error 400 when submitting form but information is still received in google sheet
<p>I am receiving a error 400 when submitting a form, yet the data is transferred to my Google Sheet as intended.</p> <p>I've read up on what may cause a 400 error but my understanding is not advanced enough to spot the error in the code.</p> <p>code.gs</p> <pre><code>function doGet() { return HtmlService .c...
2
2,574
Programming to query 100000 users in AD
<p>I am currently working on a project to query AD, I have a script that do that, but the script is failing after 1000 users, while the users I am querying is around 150.000 users.</p> <p>Here is my code:</p> <p>below is my script , can you tell me on which line </p> <pre><code>Sub UserSynchQuery(ByRef res As APIRes...
2
4,015
input element disappears in IE(10) on backspace
<p>I have an <code>ASP.NET</code> page that loads a bunch of data from the db into a <code>ListView</code> with a <code>LayoutTemplate</code> and <code>ItemTemplate</code>. When the user hovers over a row, the last column switches its content for a textbox containing the same value, making it editable. This works in Ch...
2
3,912
Close Vuetify dialog with Vuex
<p>After hours of searching and trying to find the correct method my n00b brain exploded. I've tried so many things that I'm complete lost. Everything works like I want it to, can remove the customer I want, the front refreshes etc. Except the dialog.</p> <p>Can you please explain how to close this dialog?</p> <p>Her...
2
1,454
Running multiple parallel downloads in Android
<p>First, I extended <code>IntentService</code> to build my <code>DonwloadService</code> class. It was OK, but a download queue had been created and 2nd download had to wait for the 1st to finished etc.</p> <p>So I decided to extend <code>Service</code> class (following the <a href="http://developer.android.com/guide/...
2
2,317
Cython code 3-4 times slower than Python / Numpy code?
<p>I am trying to convert my Python / Numpy code to Cython code for speedup purposes. However, Cython is MUCH slower (3-4 times) than the Python / Numpy code. Am I using Cython correctly? Am I passing arguments correctly to myc_rb_etc() in my Cython code? What about when I call the integrate function? Thank you in adva...
2
3,640
Invariant Violation after migrating to react-native-navigation v2 from v1
<p>I get an Invariant Violation on Android after migrating to v2 from v1 after startup. How do I fix this?</p> <pre><code>Invariant Violation: Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: object. Check the render method of `ReduxWrapper`....
2
3,074
Vectorize operation in Pandas
<p>I have this operation on a large Pandas DataFrame, and of course, is extremely slow.</p> <pre><code>def get_last_status_in_range(df, created_dt, created_id, window_size=15, gap_size=5): since = created_dt - timedelta(days=(window_size + gap_size)) until = created_dt - timedelta(days=gap_size) try: ...
2
2,735