title
stringlengths
13
150
body
stringlengths
749
64.2k
label
int64
0
3
token_count
int64
1.02k
28.5k
axios in React with API throw "network error" exception
<p>I developed an API using C# (visual studio) and when i send request to get the data using browser or Postman it's return data successfully, in another hand i developed a react application that do CRUD processes by send the requests to my local API service, (the visual studio and visual studio code in debug mode) Wh...
2
1,345
Binding child object on submit spring mvc
<p>I'm newbie in Java so this question looks so simple. I have a model like:</p> <pre><code>@Entity(name="website") public class Website { @Id @GeneratedValue(strategy=GenerationType.IDENTITY) @Column(name="websiteId", nullable=false, unique=true) private long websiteId; @ManyToOne @JoinColumn(name = "publisherId") pr...
2
1,689
Matlab fit function error : Function value and YDATA sizes are not equal
<p>I'm trying to use the fit function to estimate a 4 parameters model(P B A R) and meet the error following message and I dont know what does it mean.</p> <pre><code>Error using fit&gt;iFit (line 367) Function value and YDATA sizes are not equal. Error in fit (line 108) [fitobj, goodness, output, convmsg] = iFit( xd...
2
1,133
iOS Converting MKMapView to UIImage. Never enters the block
<p>Based on this answer:</p> <p><a href="https://stackoverflow.com/questions/18776288/snapshot-of-mkmapview-in-ios7">Snapshot of MKMapView</a></p> <p>I tried to convert my map to picture, but the App never enters the snapshotter block.</p> <p>Why?</p> <pre><code>//Get location an then get a Picture of the Map. CLLo...
2
1,231
Health Checks Fail - Terraform - ECS Cluster - Dynamic Port Mapping Health Checks fail on 1 of 2 Ports?
<p>I have an environment setup with Terraform. One of our SecOps team needs SonarQube CE installed for automatic scans, smells, vuln checks. So I have it running in AWS, over our VPN, DNS resolves to an internal facing ALB that points traffic to a target group of instances that make up the ECS Cluster. There is a launc...
2
4,322
JAVA disable button while the user has not selected a file
<p>I want to disable my mergeButton when the user has not selected both PDF'S. How would I go about doing this? I tried to do a while loop to check if <code>file1</code> and <code>file2</code> are null but the loop does not terminate. </p> <pre><code>package pdfMerge; import java.awt.BorderLayout; import java.awt.Gri...
2
2,225
How can I select from a dropdown list in protractor?
<p>I am struggling with attempting to select a product called "some product" from the following drop down menu. 'id="s2id_autogen81"' is the new ID element, I was using that id to grab the item but it was changed to this auto gen value and I'm not sure what to have protractor grab. </p> <p><strong>From the drop-down ...
2
1,241
@npm runnig in Vue.js error througs node scripts and node bins
<p>When I was trying to serve my Vue Project by using command</p> <blockquote> <p>npm run serve</p> </blockquote> <p>It gives me error mentioned as below</p> <blockquote> <blockquote> <p>vue-heroes@0.1.0 serve /home/numan/Desktop/vue-getting-started/07-accessing-data/begin/vue-heroes vue-cli-service serve</p> </blockqu...
2
2,287
How to display the graph after it is stabilized (vis.js)?
<p>I am rendering a graph using implementation of vis network as shown <a href="https://github.com/crubier/react-graph-vis" rel="nofollow noreferrer">here</a>. Right now the graph is taking some time to stabilize after being rendered. But I want the network to be stabilized before being displayed. I tried using the sta...
2
1,631
Why im getting provider error in project?
<p>Im getting this error when im trying to use provider in my code . IN new in flutter and a beginner so maybe anyone can explain how to fix I search already but still cannot find something.</p> <pre><code>The following ProviderNotFoundException was thrown building MeinAccount(dirty, state: _MeinAccountState#e2cbb): Er...
2
1,324
How do you let a user add a pin to a map and get the coordinates in SwiftUI?
<p>I have a map in a view that is centered on Chicago. I want the user to be able to place a pin/annotation on the map and then retrieve those coordinates. The map loads Chicago fine but I can't get the annotation code to work.</p> <p>I can't seem to find an answer for SwiftUI, specifically. Only Swift and Storyboards...
2
1,045
Load Data from db, Post it with AJAX to update db, Return back to Load new data! Completely Confused
<p><em>I want to get my data from mysql db with php and assign them to my javascript array. I have 200 records in my db and i will get 10 records randomly.</em></p> <pre><code>$myQuery = mysql_query("select * from tblx where xyz=1 order by rand() limit 10"); </code></pre> <p>*What i want to do is take these records t...
2
1,874
Asp.net MVC2 - Form Post Binding
<p>I can't for the life of me figure out what I'm doing wrong.</p> <p>I have a <code>SearchModel</code> class that my view inherits from</p> <pre><code> public class SearchModel { public String Something { get; set; } public List&lt;SearchField&gt; SearchFields { get; set; } } public class Se...
2
1,188
Extract tables from multiple files to Excel using VBA
<p>I have no experience with VBA as I usually use Matlab or sometimes Python, but it seems like it is the most useful tool for a project I have. Basically from a large number of Word files, I have to extract a table and put it into a single Excel file. From a YT tutorial, I already have the following basic code:</p> ...
2
1,262
Css Sub menu needed to show on the left not on the right of the menu
<p>Hi i am currently building an asp.net Menu</p> <pre><code> &lt;asp:Menu ID="NavigationMenu" runat="server" EnableViewState="False" IncludeStyleBlock="False"&gt; &lt;Items&gt; &lt;asp:MenuItem NavigateUrl="~/ViewHeaders.aspx" Text="View Submissions"/&gt; &...
2
1,249
Preserve null strings when assigning to .Value with VBA
<p>(edit: added 2 more restrictions to solutions)</p> <p>I have a table (listobject wise) in which I need to duplicate certain rows. I'm using SourceListRow.Range.Value2 = DestListRow.Range.Value2 for efficiency reasons (copying whole ranges in one go). All formula columns after the copied cell ranges auto-expand pe...
2
1,172
how to upload file with ng-file-upload in asp.mvc
<p>how to upload file with ng-file-upload in asp.mvc ?</p> <p>I'm using this code to upload file with ng-file-upload in asp.mvc :</p> <pre><code>public class HomeController : Controller, IHttpHandler { public void ProcessRequest(HttpContext context) { bool result; try ...
2
2,196
Connecting to neo4j on ec2
<p>I'm trying to connect to my newly setup neo4j </p> <p>This is how I have configured my neo4j.conf file:</p> <pre><code># With default configuration Neo4j only accepts local connections. # To accept non-local connections, uncomment this line: dbms.connectors.default_listen_address=0.0.0.0 # You can also choose a s...
2
1,047
Full precision numbers in python and JSON library
<p>Having a small issue with the code below with a recursive error:</p> <p>100s errors printed ending in this:</p> <pre><code>RuntimeError: maximum recursion depth exceeded while calling a Python object </code></pre> <p>As you can see below my code is not recursive so something is happening with the DecimalEncoder.<...
2
1,341
login with facebook popup window does not close and my after-login page opens in the popup window itself
<p>When the facebook popup window opens, after entering the email and password; the popup window does not close. The page that is supposed to load after successful login loads in the popup window itself. If i manually close this popup window and refresh the parent page then everything works well. </p> <p>I have used w...
2
1,377
jnius.find_javaclass , jnius.JavaException: Class not found 'android/webkit/WebView'
<p>I am getting this error while trying to use jnius's autoclass to get the android webview inside Kivy app. What could be the fix? </p> <p>Thanks</p> <p>My code looks like this:</p> <pre><code>import kivy from kivy.app import App ...
2
2,051
Carousel - add different pages to Carousel
<p>I am receiving an error - "Carousel has no children".</p> <p>I utilized the carousel sample from Xamarin. Carousel works if the pages are the same. My requirement is that my pages are different but I want it to work in a carousel. </p> <ol> <li>Page 1 - Image</li> <li>Page 2 - Buttons</li> <li>Page 3 - Check Bo...
2
1,285
Creating empty entity on a OneToOne-relation in Symfony
<p>I'm running a Symfony 2.4 project with Doctrine 2.4 and having some issues with form creation/validation.</p> <p>I have an entity "Person" with a <strong>OneToOne-Relation</strong> to an "Address" entity (unidirectional) - so the person can have one or none addresses.</p> <pre><code>/** * @var Address * @ORM\One...
2
1,104
kendo ui grid sort partial view
<p>I have a main view with 3 partial views in. One of the partial views contain a kendo grid which should be sortable.</p> <pre><code>@(Html.Kendo().Grid(Model) .Name("tasksgrid") .Sortable() .Filterable() .HtmlAttributes(new { style = "height:100%; font-size:14px;" }) .Columns(columns =&gt; { ...
2
1,027
Tomcat user auth-How to limit tomcat-user login attemps before getting HTTP/401?
<p>How to control on user auth' in tomcat7 for the following:</p> <ul> <li><p>Limit user login attemps, as example 5 times for a user?</p> <p>It looks that using the code below in server.xml it's done-at least according to the logs, but, the problem/question is that after exactly 3 failures anyway got HTTP error 401....
2
1,182
Insert, Update, Delete are not applied on SQL Server CE database file for Windows Mobile
<p>I am developing a Windows Mobile 6.5 application with C# using Visual Studio 2008, it's connected to a SQL Server CE database. </p> <p>I used this code to insert rows, the value of each column is related to a textBox string :</p> <pre><code>namespace GesTPL { public partial class Form4 : Form { pub...
2
1,289
Clicking a .swf button on a webpage in C# windows forms application webbrowser
<p>I am trying to click on a shockwave flash button in my C# windows forms webbrowser. Currently in my windows forms application, I sign into the website and go the webpage where the button is. I want to then click on my windows form button, and have it click the flash button 5 times with about 15 seconds pause in betw...
2
1,347
STRIPE + TypeScript : TypeError: stripe_1.default is not a constructor
<p>I'm running some testings of Stripe code in my TypeScript MicroService :</p> <pre><code>process.env.STRIPE_KEY = 'sk_test_...............'; import Stripe from 'stripe'; export const stripe = new Stripe(process.env.STRIPE_KEY!, { apiVersion: '2020-03-02', }); </code></pre> <p>However I keep getting that the constru...
2
4,876
RSA Encryption in JavaCard
<p>I hope anyone can help me with my problem. I'm developing a javacard applet and my task is to encrypt a secret (stored in the applet) with the public key of a server. The returning cipher will be send to a server afterwrds - php script on the server - where the cipher should be decrypted with the servers private ke...
2
1,056
Playing videos one by one issue : Android SDK
<p>I have an requirement in which I want to play the second video immediately once first video gets completed finishing. I have implemented this functionality, but the issue I am seeing is appearance of black screen between video transition. I am trying this on Galaxy S device (1 GHZ processor, 512 MB RAM).</p> <p>I ...
2
1,217
Do I need something particular to use UI Fabric PeoplePicker with React?
<p>I'm trying to use Microsoft control PeoplePicker from UI Fabric to get an Office-feel in my app. I'm able to use control like Dropdown and button, but when I want to use PeoplePicker, I get error in code even if I change nothing.</p> <p>To start my component code, I've copy-paste Normal People Picker from <a href="...
2
2,863
How to use AJAX in an MVC - php Blog? - adding comments dynamically
<p>I wrote a <code>posts.php</code> page which shows a certain post and its comments, giving the user the ability to <em>add a new comment</em> to this post dynamically.</p> <p>I want to implement the *"submit_comment"* using Ajax, but I don't really know how to do it in MVC.</p> <p>This is my Posts.php:</p> <pre><c...
2
2,546
How can I insert int3 with ptrace in Ubuntu x64?
<p>I'm trying to follow <a href="http://eli.thegreenplace.net/2011/01/27/how-debuggers-work-part-2-breakpoints/" rel="nofollow">this guide</a> to achieve the same results with setting breakpoints, the only difference is I'm on x64 system. So, I have this code for "Hello, World!":</p> <pre><code>; The _start symbol mus...
2
2,734
Debuging Multiple Python Azure-Functions locally in VS Code
<p>I followed <a href="https://docs.microsoft.com/en-us/azure/azure-functions/functions-create-first-azure-function-azure-cli" rel="nofollow noreferrer">this Microsoft</a> tutorial using CLI to create Azure-Function in python.</p> <p>I then created a second function, both HttpTriggered.</p> <pre><code>C:\Users\rnwol\...
2
3,190
How to get private key from p12 in X509 certificate
<p>I need to integrate my iOS app to consume a Web service requires a client certificate. I am using the below code to extract the private key from p12 in X509 certificate. I found this code but not working, I translated it to swift 3.</p> <pre><code>func privateKeyFromCertificate() -&gt; SecKeyRef { let certName...
2
1,184
missing right parenthesis in create table
<p>I searched the forum but didn't find the right answer sorry if I double post I want to create this Table</p> <pre><code>create table HUB_SHIFT_REPORT ( Da_te timestamp(8) not null , Week_Day varchar2(10) not null constraint cnstrnt_day check (Week_Day in('Su','Mo','Tu','We','Th','Fr','Sa')) , Shift varchar2(10) n...
2
1,146
PyMongo - UserNotFound: Could not find user authenticated@admin
<p>I checked the permission on the <code>/etc/mongod.conf</code>:</p> <pre><code>vagrant@trusty64:/vagrant/test$ sudo docker exec -it mongodb ls -l /etc/mongod.conf -rw-r--r-- 1 root root 472 Jun 22 00:09 /etc/mongod.conf </code></pre> <p>Then, I checked it's corresponding content:</p> <pre><code>vagrant@trusty64:/v...
2
7,472
Django- passing object in context for view works, but how to pass to include?
<p>UPDATED THANKS TO FEEDBACK: I'm including a template where I have access to the logged in user, but I'd like to be able to access that user's corresponding Person record (linked by a Profile model I made for supplemental fields), so I can show a little link to their page in the top nav. I can get that Person record ...
2
1,709
Understanding rkhunter warnings
<p>I got paranoid and ran both chkrootkit and rkhunter to scan for rootkits. Doesn't look like chkrootkit found anything, but rkhunter returned some warnings. I think many might be false positives, but I'm mostly worried about the 'possible rootkit strings' and the three suspect files. Any explanations would be grea...
2
1,129
Tensorflow import error after re-installing anaconda
<p>I am getting the following Tensorflow import error after re-installing anaconda.</p> <pre class="lang-none prettyprint-override"><code>Import tensorflow as tf Traceback (most recent call last): File "C:\ProgramData\Anaconda3\lib\site-packages\tensorflow_core\python\pywrap_tensorflow.py", line 58, in &lt;module&gt...
2
1,201
WARNING:oauth2client.util:build() takes at most 2 positional arguments (3 given)
<p>I am doing the "Label Detection" tutorial for the Google Cloud Vision API.<br> When I pass an image to the command like so I expect to get back some json telling me what is in the image.</p> <p>However, I am getting this error instead.</p> <pre><code> &gt;python label_request.py faulkner.jpg No handlers could ...
2
2,217
MS Access 2010 throwing "Query Too Complex" error with larger record set
<p>I've having repeated but sporadic issues with Access 2010 throwing up "Query Too Complex" errors on queries that actually aren't hugely complex, but involve a decent number of records (say more than 5000). This always involves working with a linked SharePoint list. </p> <p>Here's an example (the table I'm inserting...
2
1,755
Validation not working on jquery.steps with more than one select2 select input
<p>I have the following HTML code to create a jquery.step-like wizard which includes 3 select2 input controls:</p> <pre><code>&lt;form id="form" action="#" &gt; &lt;h1&gt;Data Package source information&lt;/h1&gt; &lt;fieldset&gt; &lt;h2&gt;Specify the details of the new Data Package&lt;/h2&g...
2
4,189
Adding headers to navigation drawer
<p>I've been trying to add headers/sections to my navigation drawer, but unfortunately unsuccessfully. I looked in those questions here in StackOverFlow :</p> <p><a href="https://stackoverflow.com/questions/19341033/android-navigation-drawer-listview-headers">Android Navigation Drawer ListView Headers</a></p> <p><a h...
2
3,799
I need to fetch the data from mysql database using the employee id from the table
<p>I need to fetch the data from the table using the employee id,</p> <p>there are two tables</p> <p>1."user_info" which contains id, name,password,email,ScheduleDate,etc!</p> <p>2."fetch" which contains id,ScheduleDate,starttime,endtime,hours,employeeid.</p> <p>if i give the name and the password it takes the i...
2
1,142
Why does cherry-pick not take all changes?
<p>I have the following situation in my commit history:</p> <pre><code>A1-...-A2 \ B1-B2-...-B3----------B4-B5 \ / C1-C2-C3 </code></pre> <p>I then did (after <code>git checkout A2</code> and a clean <code>git status</code>) <code>git cherry-pick...
2
1,063
How do you separate two nav elements from one another in css and html?
<p>I have two nav elements that I'm using one just below the header and another one where I have the nav element nested inside an aside element. I added the code for the HTML for the nav elements and added the code for the CSS for the nav elements at the bottom of the page. I also have a picture of the website that you...
2
1,725
change select list after bootstrap modal confirmation
<p>I have a select list.</p> <p>When the user changes the select list option, I want the bootstrap modal to be displayed and only if the modal's confirm button is checked, change the select list.</p> <p>I just cannot seem to get the code right and couldn't find a google answer.</p> <p>Here is my select list code:</p...
2
1,055
How to create a 'glow' effect on a Textbox in Typescript?
<p>I have recently installed DevExtreme (from the Dev Express website) as I was looking for a way to create a single solution for multiple mobile devices (this software allows that). Having created a 'Basic' Typescript project, I feel quite the idiot for not being able to get it to work!</p> <p><strong>Below shows som...
2
1,236
Fail to get data from ssl site
<p>Alright, so I have this server running with a wildcard cert at <a href="https://www.octgn.net" rel="nofollow noreferrer">https://www.octgn.net</a> . In every browser I try everything works fine, except I am having users who have issues connecting.</p> <p>The main concern here is that I have api calls in my software ...
2
1,409
Angular app bundled successfully by webpack but not loading
<p>I have an angular5 app which I am trying to bundle with webpack 4. I do not get any errors in webpack process nor in the browser, and at the networking tab I can see all relevant bundles loaded successfully. But the app is stuck at showing the spinner that I use to wait while angular loads (), and it seems that noth...
2
2,494
this->getUser() returns null after validating Form
<p>I'm building a form with customized option based on who is logged in. The goal is to send an Invitation.</p> <p>The kind of invitation you can send is determined by the getIsRefFrom() method (which is a method available for "User" objects.)</p> <p>Here is my Controller</p> <pre><code>&lt;?php namespace AppBundle...
2
2,124
Angular 4 - intercept http request and resend after login
<p>I have an <code>HttpInterceptor</code> which listens to specific JWT token events (<code>token_expired</code>, <code>token_not_provided</code> and <code>token_invalid</code>) that can happen at different times of the workflow. </p> <p>These events can happen when a user navigates to a different route OR when an AJA...
2
1,523
Watir PhantomJS driver optional argument for ignoring SSL errors?
<p>Good day all,</p> <p>I'm working on automating some Ruby scripts to make them headless. My initial approach was to try Watir and its PhantomJS module. Our local test environment uses a self-signed certificate that I know some browser will error out on. I know that PhantomJS has a ignoreSSLerrors option but don't...
2
1,148
Undefined variable: query_params
<p>can someone help me what i suppose to do to fix this error? because, the result of the code is success for json format. but there's still have error "Undefined variable: query_params".</p> <p>i want to make listview in my android program from this json format. and in my android it can't show the success json format...
2
2,025
How to connect to FTPS server with reuse sessions?
<p>I am using the Apache Commons FTP library in my android application.</p> <p>I am trying to connect to my FTPS server from my application (using Android Studio) and then upload some files.</p> <p>However when I want to reuse sessions by overiding the method <code>_prepareDataSocket_</code> from <code>FTPSClient</code...
2
3,853
Select option not working for Modal
<p>Can someone help clarify here? I am trying to do the same thing as this <a href="https://stackoverflow.com/questions/36596594/set-select-option-selected-in-a-modal-bootstrap/42446394#42446394">post</a> but set the value dynamically. However when I do this, even though I'm setting the values before opening the modal,...
2
1,382
Strange performance drops with glDrawArrays()/glDrawElements()
<p>I'm currently trying to do some GPGPU image processing on a mobile device (Nokia N9 with OMAP 3630/PowerVR SGX 530) with OpenGL ES 2.0. Basically my application's pipeline uploads a color image to video memory, converts it to grayscale, computes an integral image and extracts some features with the help of several f...
2
1,536
Cannot load JDBC driver class 'oracle.jdbc.driver.OracleDriver' in JBoss Fuse
<p>I develop a bundle under JBoss Fuse which persists some data into DB. My DAO failes to initialize connection pool to the Oracle DB due to exception:</p> <blockquote> <p>Caused by: org.apache.commons.dbcp.SQLNestedException: Cannot load JDBC driver class 'oracle.jdbc.driver.OracleDriver'</p> <p>at org.apa...
2
9,236
Not able to build go package for debugging in vscode
<p>Recently I have updated go debugger to dlv-dap and now I have problems debugging go packages. This is my file structure:</p> <p><a href="https://i.stack.imgur.com/8zrkb.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/8zrkb.png" alt="my file structure" /></a></p> <p>File contents:</p> <p>main.go</p...
2
1,467
How to extract child nodes with the same child name but different values in PowerShell?
<p>Within the XML file, there are child nodes that have the same node name, but with different values as can be seen from the example.</p> <p>I have already tried what I could find on the internet, but alas, nothing worked. Moreover, I am new to PowerShell, and I've seen that it's really powerful, but this is just dif...
2
1,218
attachments are not being saved on backend from website odoo 12
<p>I want to add attachment while edit a form named my information on website and i want to save the attachment on the backend. I have added input field in the form for attachment but while saving the form i am not getting the attachment in the backend. Here is my code:-</p> <p>template file:-</p> <pre><code>&lt;div cl...
2
1,132
Partial view does not render on dropdown postback
<p>I am using Ajax form to post back my form to render partial view in MVC. Following is a code for your reference:</p> <p><strong>Java Script to raise dorpdown event:</strong></p> <pre><code>jQuery(document).ready(function () { $("#ReviewPeriodID").change(function () { var f = $("#Form1"); var ...
2
1,224
Unable to create groups using ldap through java. Creating user works
<p>I am trying to create an AD group through my java application. I have succesfully created a user, and now I am trying to create a group. I have the following code:</p> <pre><code> public class ProjectActiveDirectoryUserGroupHandling extends ActiveDirectoryUserGroupHandling { private static final String DOMAIN...
2
1,026
Upload file using ajax calls
<p>I looked through multiple tutorials, but none of it helps. I have page with 4 controls and with tab-panel bootstrap theme. In code-behind of the page I want to save file that I uploaded:</p> <pre><code> [WebMethod] public static string UploadFile() { try { var file = HttpCont...
2
1,468
Logout with Facebook PHP SDK v5
<p>I'm using Facebook SDK v5 and I can login with this script, while logging in I created a cookie and if I try to logout by clearing that cookie is not possible!</p> <p>this is my Login Script</p> <pre><code>&lt;?php require_once __DIR__ . '/src/Facebook/autoload.php'; require_once $_SERVER['DOCUMENT_ROOT'].'/fblogi...
2
1,450
jQuery quickSearch plugin to fire on click of a submit button rather than event bound on input
<p>Am using jQuery quickSearch plugin to filter a list:</p> <p><a href="http://lomalogue.com/jquery/quicksearch/" rel="nofollow noreferrer">http://lomalogue.com/jquery/quicksearch/</a></p> <p>However i want to filter on click of a submit button rather than the default bindings that are supplied with the plugin itself...
2
5,975
How to control Ngb bootstrap carousel slide by button in Angular
<p>I have a scenario like this:</p> <ul> <li>Display Ngb Bootstrap carousel and control the slide images by two buttons: Previous and Next.</li> <li>When Previous button was clicked then show previous slide image and Next button was clicked then show next slide image.</li> <li>Unfortunately, my code doesn't work. Someo...
2
1,400
NoSuchModuleError: Can't load plugin: sqlalchemy.dialects:hive
<pre><code> from pandas import Series, DataFrame import pandas as pd import numpy as np import datetime from pyhive import hive from dateutil.rrule import rrule,MONTHLY #from sqlalchemy import create_engine,* from sqlalchemy import * spark_url = "hive://hdfs@10.2.1.45:100015/x1111_ods"...
2
1,047
How to pass down checkbox values from an iterating table row to an Array in Vue?
<p>I am getting some data from Database and pass it to the <code>&lt;tbody&gt;</code> by looping through it's rows. The rows are within a child component while the <code>&lt;tbody&gt;</code> imports them:</p> <pre><code>&lt;template&gt; &lt;tr&gt; &lt;td&gt;{{id}}&lt;/td&gt; &lt;td&gt;{...
2
1,353
WCF Service Accepting GZip Messages
<p>I am probably missing the obvious, but how can I make it so that one method, PutMessage, on my WCF service can accept both GZip'd and normal requests? Right now I'm seeing this error from my service:</p> <pre><code>Cannot process the message because the content type 'application/gzip' was not the expected type 'tex...
2
1,127
How to send data from HTTP input to ElasticSearch using Logstash ans jdbc_streaming filter?
<p>I want to send data from <strong>Http</strong> to <b>elasticsearch</b> using <b>logstash</b> and I want to enrich my data using <strong>jdbc_streaming</strong> filter plugin. This is my logstash config: <br></p> <pre><code>input { http { id =&gt; "sensor_data_http_input" user =&gt; "sensor_data" passw...
2
1,945
AsyncTask not passing progress (what does super.onprogressupdate do?)
<p>I am using AsyncTask to download different mp3's from webview. When I track my download progress and pass to onprogress update, it receives a 0 no matter what I do. I have tried using Doubles, Floats, and Integers.. here is an example of my code:</p> <pre><code>public class DownloadFile extends AsyncTask&lt;Void, F...
2
1,897
Can't get an implementation of Grails ObjectMarshaller<JSON> to work
<p>I'm trying to implement a custom marshaller in Grails. Here's the marshaller:</p> <pre><code>class AdultPlanningMarshaller implements ObjectMarshaller&lt;JSON&gt; { boolean supports(Object theObject) { return theObject instanceof AdultPlanning } void marshalObject(Object theObject, JSON the...
2
1,960
Nokogiri not installing in RoR with RVM freeBSD
<p>Please, help me! I have a system freeBSD 10 i have installed rvm and ruby on rails over RVM.</p> <pre><code>[glafir@ ~/RoR/fips]$ whereis rvm rvm: /home/glafir/.rvm/bin/rvm /home/glafir/.rvm/man/man1/rvm.1 /usr/ports/archivers/rvm [glafir@ ~/RoR/fips]$ whereis ruby ruby: /home/glafir/.rvm/rubies/ruby-2.1.1/bin/ruby...
2
13,066
Hibernate: More than one row with the given identifier was found
<p>I'm getting an exception: More than one row with the given identifier was found, when I try to get a single record from the database with the findById() method or when I try to update an article with Spring Data Rest.</p> <p>The delete and findAll methods are working properly.</p> <p>I checked the database already...
2
7,242
ps aux hangs with call_rwsem_down_write_failed when running docker container with resource limit
<p>All, I run a java application container with resource limit, as lots of oom kill events happen every 2 or 3 minutes, then execute ps aux, the command hangs. this problem is easy to reproduced when run docker instance with kubernete, and khugepage was already set disabled. Would anyone can help? thx.</p> <pre><c...
2
14,051
Why is the height of content loaded through AJAX infinity scroll not measured correctly after loading?
<p>I am loading posts composed of pictures or videos into the main div of my website with <em>infinity scroll</em> (implemented through AJAX). The system works pretty much like on any popular meme website.</p> <p><strong>The Problem:</strong> Each post has a body section on the left and a social button container on th...
2
1,921
How do you toggle multiple data targets and toggles using bootstrap html data toggle
<p>I am writing code for a animated hamburger icon for the bootstrap navbar, but need to toggle both the hamburger icon and the bootstrap repsonsive navbar. So is there some code or some way to toggle both pieces of data at different ids. Also, I can't use javascript because the bootstrap navbar doesn't have the slidin...
2
2,483
How to select an item in ScrollView with SwiftUI?
<p>what I am trying to accomplish is have a loop of items where I am able to tap one and it gets bigger programmatically once tapped</p> <p>here is my code and my results so far:</p> <pre><code>struct ContentView: View { @State var emojisArray = [&quot;&quot;, &quot;&quot;, &quot;&quot;, &quot;&quot;] @Sta...
2
1,182
Converting SVG that uses Google Fonts to Canvas using Blob
<p>I have an SVG displayed on a page that uses Google Fonts.</p> <p><code>&lt;text&gt;</code> node on the SVG inherits Google Font nicely.</p> <p>Now, I'm trying to convert the SVG using <a href="https://developer.mozilla.org/en-US/docs/Web/API/Blob" rel="nofollow noreferrer"><code>Blob</code></a>.</p> <p>This works...
2
1,356
Google chart for each row of MySqL table
<p>New PHP user here. I have a database that looks like this:</p> <pre> <b>id name day1 day2 day3 day4 day5 </b></pre> <pre><code> 1 nam1 5 9 15 50 45 2 nam2 51 12 54 78 56 3 nam3 12 145 78 49 ...
2
1,771
Converting image data string (str) back into bytes
<p><code>inputFile</code> gets the image data from a image file input <code>&lt;input type="file"&gt;</code> and converts the data into a string (str) to be used in sessions. <code>createView</code> converts the image data string back into image data (bytes) so it can be saved.</p> <p>However when trying to convert th...
2
6,671
NotifyDatasetChanged not working on a custom Adapter
<p>I'm trying to fill a ListView with a custom Adapter.<br> I want to use the NotifyDatasetChanged to refresh the layout, but it doesn't work.<br> I retrieve some JSON data from an HTTP request, and I manipulate the result string then I fill the ListView</p> <p>What's wrong in my code? <strong>UPDATE THE CODE</strong>...
2
2,202
WinInet how to use sock proxy
<p>I'd like to use WinInet to access a web page but with a sock4/sock5 proxy.</p> <p>Here is what I've tried:</p> <pre class="lang-cpp prettyprint-override"><code>HINTERNET hOpen = InternetOpenA(helper.USER_AGENT, INTERNET_OPEN_TYPE_PROXY, (&quot;SOCKS5=200.100.5.1:702&quot;, NULL, 0); </code></pre> <p>This doesn't see...
2
1,169
angularjs ng-repeat on a element with ng-if
<p>I am using angularjs for my app, where I have </p> <pre><code>$scope.columns = [ { "displayName": "Column A", "selected": true, "sortable": true ...
2
1,516
How can i hide and show drop down list on input click in angular7?
<p>I have an <code>angular7</code> app in which i have a <code>dropdown</code> in which when i select any item from dropdown so <code>dropdown</code> closed. But i also close and open dropdown on <code>input</code> click like toggle. Like if i click on input then <code>dropdown</code> should open and when i again click...
2
1,274
Avoiding deadlock using ReentrantLock
<p>I was doing some practice assignments and dabbling around with some dummy code for trying to develop a better understanding of the concepts of threads and locks. Following is a piece of code that (sometimes) goes into deadlock.</p> <p><em>A.java</em></p> <pre><code>public class A { private B b; public vo...
2
1,878
Can't get data from xml file in C# (Windows phone 8)
<p>I Have the following code. How can i get the value of clouds from the XML file? Just tried someting. The list is filled with the right number of elements, but they are al empty.</p> <pre><code> XDocument xdoc = XDocument.Parse(e.Result, LoadOptions.None); List&lt;string&gt; list = new List&lt;string&gt;(); fore...
2
1,238
Java Slick2D: Camera is scrolling, character moves too fast
<p>I've been playing around with Slick2D for Java and I managed to get it to display maps and have my character sprite move around.</p> <p>I've tried to implement a camera that follows the player so that the map scrolls. While the map is scrolling, that characters move speed is faster than it should be (possibly due t...
2
3,795
ViewPager with Fragments holding GridView
<p>I have a ViewPager with two Fragments , each Fragment has a GridView</p> <p>Frag1.java</p> <pre><code>public class Frag1 extends Fragment{ GridView grid; @Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { return inflater.inflate(R.layout.frag1,...
2
1,321
Java Monkey Engine (jME) - Physics Control
<p>I am new in jME (java Monkey Engine). I am doing my master project about a smart home simulator. I decided to do this project with jME.</p> <p>Right now, I have a 3D model into my simulator, the next step I want to do It's control the main door of my virtual house, so, I followed this tutorial and I could implement...
2
3,756
Attempting to call an Oracle Stored Function that returns a ref cursor to C#
<p>I have been pulling my hair trying to get a resultset back from an oracle stored function that returns a ref cursor.</p> <p>Here is the declaration for by Oracle Stored Function:</p> <pre><code>TYPE GetInspectorCursor IS REF CURSOR; FUNCTION GetInspectorInformation (inUserID IN inspectortable.userid%type, i...
2
1,399
Error 'NoneType' object is not callable from FuncAnimation inside a new class in Python?
<p>I am trying to create a new class to create plots with some pre-defined parameters of matplolib, so the process of creating a plot will be a little easier for what I am trying to create. So, basically I've got the following code:</p> <pre><code>import tkinter as tk import matplotlib import matplotlib.animation as an...
2
1,037
Is it possible to construct an Either in Java that allows flatMap to return a different Left value?
<p>I'm trying to understand how Either is implemented. I've gotten stuck at chaining together multiple functions in a way that allows returning a different <code>Left</code> value during <code>flatMap</code>. I can't work out how it is possible within the type system. </p> <p>Minimal Either example code: </p> <pre><c...
2
1,035
Can't click on UIButton (that appears programmatically) after animation gets done
<p>Just had a small question. I'm trying to make a UIButton appear programmatically, which I have to animate. But once the animation gets done, I can't click the button for some reason.</p> <p>I have a CALayer "animationLayer" as a sublayer of the UIView, and within that animationLayer, I have three CAShapeLayers "pat...
2
2,678
org.hibernate.exception.GenericJDBCException: ERROR: cross-database references are not implemented
<p>1) Dispatcher-Servlet</p> <pre><code>&lt;bean id="dataSource" class="org.springframework.jdbc.datasource.DriverManagerDataSource"&gt; &lt;property name="driverClassName" value="${driverClassName}"/&gt; &lt;property name="url" value="${url}"/&gt; &lt;property name="username" value="${username}"/&gt; ...
2
1,222
Hide sidebar for particular page in Mobile Angular Ui.(Angular Js)
<p>I am using mobile angular ui. I want to hide side for particular page.</p> <blockquote> <p><a href="http://mobileangularui.com/" rel="nofollow noreferrer">http://mobileangularui.com/</a></p> </blockquote> <p>This side bar by default put in every page. But i don't want this side bar in home page. Mobile angular u...
2
2,062
javascript dynamic input fields
<p>I have a problem with JavaScript dynamic input fields. I have three fields, one with a number and two with <code>a</code> &amp; <code>b</code>. My problem is displaying the <code>b</code> input field under the <code>a</code> input field.</p> <p>My code:</p> <pre class="lang-html prettyprint-override"><code>&lt;scr...
2
1,275
Azure B2C - Custom Policy - Error connecting identity provider
<p>I've been trying to add a custom policy for Azure AD B2C to connect with <a href="https://forge.autodesk.com/en/docs/oauth/v2/developers_guide/overview/" rel="nofollow noreferrer">Autodesk Forge</a>, following steps on <a href="https://docs.microsoft.com/en-us/azure/active-directory-b2c/active-directory-b2c-get-star...
2
5,015