title
stringlengths
13
150
body
stringlengths
749
64.2k
label
int64
0
3
token_count
int64
1.02k
28.5k
How to create the model class for the following JSON data and parse it?
<p>My JSON data</p> <pre><code>{ "addon_items" : [ { "aname" : "", "id" : "2588", "name" : "Plain Nan", "order" : "1", "aid" : "259", "Sub_Add_Items" : "", ...
0
2,023
Export data from Excel to Access using VBA
<p>I have a table in an Excel file with some data, and I want to export these data to my database on Access (in a concrete table on my database called Water Quality) with a VBA code to avoid to open my Database every time that I want to introduce more data on it.</p> <p>At the moment I have this code but it's not work...
0
1,672
Android Chromium WebView Crash
<p>I have an app which is running on an Android 5.1.1 Device. The app has one webview (48.0.2564.106) which stays 24/7. Sometimes the app crashes because the chromium webview has an uncaught exception. The newest version of the webview has the same crash. The Chrome Browser app has the same issue but the app dont crash...
0
10,816
Google Map shows only partially
<p>The Google Map I have is only beeing rendered partially and is centered to the wrong point (it should center to the marker). See below:</p> <p><img src="https://i.stack.imgur.com/i3ksk.jpg" alt="alt text"></p> <p>Now to add a little more detail:</p> <ul> <li>It works fine in IE</li> <li>It looks like in the scree...
0
1,151
com.mongodb.MongoSocketOpenException: Exception opening socket with spring boot and mongodb cloud
<p>Please suggest any solution for the below exception which is occuring while running my rest api while executing springboot application with mongodb cloud db. I have created collection in mongodb as well and configured below properties.</p> <pre><code>com.mongodb.MongoSocketOpenException: Exception opening socket ...
0
4,239
Adding url and alt attributes dynamically with radio buttons in Angularjs
<p>So I have a group of radio buttons that are built dynamically using a JSON file. The JSON file contains things like url (of an image), alt text, etc...</p> <p>I have it working pretty well, and can change the value of the img src based on the value of the radio button selected. However, what if I need to access o...
0
1,144
Angular 7 Local Storage
<p>I have looked around the web and found the best way to use local Storage is to have it in a service I have a login controller that sends an API token and user details in its response I am setting those details in local Storage and then I am using angular router to navigate to my dashboard in the header I am getting ...
0
1,695
Constraint animation with SnapKit
<p>I am trying to implement the animation of 2 views using SnapKit.</p> <p>Here is my Animation view:</p> <pre><code>class MatchAnimation: UIView { let viewBackground: UIView = { let view = UIView() view.backgroundColor = UIColor(red: 0/255, green: 0/255, blue: 0/255, alpha: 0.75) view.al...
0
1,924
Getting "Authentication failed because the remote party has closed the transport stream." while making API call to UPS tracking Rest service
<p>I am implementing UPS tracking API in my asp.net mvc 5 application. I created below method.</p> <pre><code>public virtual Core.UPSTrackingResponse.UPSTrackingResponse TrackUPS(string trackingNumber) { Core.UPSTrackingRequest.UPSTrackingRequest requestModal = new Core.UPSTrackingRequest.UPSTrackingRequest(); ...
0
2,422
Convert XML Data to Json Format AngularJS
<p>I am trying to use Treeview directive from AngularJS. The stored procedure is returning xml.The tree view directive takes json format. The Controller will get the data from service.I am stuck trying to convert xml to json in service.</p> <p>Following is the xml structure:</p> <pre><code>&lt;Company Data="New ...
0
1,345
navigation.navigate does not work in react native
<p>I am creating filter page screen.. On this screen once i fill all the data on which i wanted to filter the data i will click on save button and that will redirect me to the home page where my new filtered data will be displayed.My home page already showing the general data but if i wanted to see filter data then i w...
0
1,696
Screen capture WITH audio in ffmpeg
<p>I am using ffmpeg built from source at <a href="https://github.com/FFmpeg/FFmpeg/commit/a66dcfeedc68c080965cf78e1e0694967acef5af" rel="noreferrer">this revision</a> in Fedora 20.</p> <p>I am able to record audio <strong>perfectly fine</strong> with the command:</p> <pre><code>FFmpeg/ffmpeg -f alsa -ac 2 -i pulse -...
0
1,316
how to convert the Certificate String into X509 structure.?
<p>can any one tell me how to convert the string content into X509 structure . i am using openssl to read the X509 Structure.</p> <p>example : certificate string</p> <pre><code>-----BEGIN CERTIFICATE----- MIIExDCCA6ygAwIBAgIJAK0JmDc/YXWsMA0GCSqGSIb3DQEBBQUAMIGcMQswCQYD VQQGEwJJTjELMAkGA1UECBMCQVAxDDAKBgNVBAcTA0hZRDEZ...
0
1,350
Twitter Bootstrap Datepicker within modal window
<p>I am currently using the Twitter Bootstrap framework, and when using the modal windows I cannot get over js elements to work like datepicker or validation, though chosen and uniform render correctly. please see my modal window below:</p> <pre><code> &lt;div class="modal hide in" id="newMember" style="display: bloc...
0
5,688
User Warning: Your stop_words may be inconsistent with your preprocessing
<p>I am following <a href="http://brandonrose.org/clustering" rel="nofollow noreferrer">this</a> document clustering tutorial. As an input I give a txt file which can be downloaded <a href="https://gofile.io/?c=LutAVj" rel="nofollow noreferrer">here</a>. It's a combined file of 3 other txt files divided with a use of \...
0
1,516
Problem sending Apple Push Notification using Java and REST
<p>This is a follow up to my previous <a href="https://stackoverflow.com/questions/1355837/help-trying-to-use-apple-push-notification-service-through-java">posting</a> on StackOverflow.</p> <p>Figured its better to start a new post (since I made more progress than before) rather than appending a new question on a prev...
0
2,175
How to use getopts option without argument at the end in bash
<p>I want to use getopts in bash. The user should select his own options. most of the options gets arguments but there are 2 options that does not gets an argument. It works good when the option without the argument is at the middle of the command, but when it is at the end it does not work.</p> <p>Note - the first t...
0
1,263
Kerberos authorization doesn't work on Chrome and FireFox, but works on IE
<p>I follow this <a href="https://wiki.jasig.org/display/CASUM/SPNEGO" rel="nofollow noreferrer">guide</a> to integrate cas with Windows AD.</p> <p>It works fine on every browser few days ago. But not it only works on IE, when I use firefox browser only send "Negotiate TlRMTVNTUAABAAAAl4II4gAAAAAAAAAAAAAAAAAAAAAGAbEdA...
0
1,627
react-datepicker with custom input for user input not working
<p>there is a <code>CustomCalendarComponent</code> which uses <code>react-datepicker</code> shown below:</p> <pre><code>constructor(props) { super(props) this.state = { start :new Date() } this.handleStartChange = this.handleStartChange.bind(this); } handleStartChange (start) { start = star...
0
1,220
Why is this jQuery ajax click event firing multiple times?
<p>I have tried unbinding the click event, but it fires sometimes twice sometimes 5 times!! Getting a bit fed up now!</p> <p>Code from <code>modal.asp</code></p> <pre><code>$("input[name=add_associate]").live("click",function(){ var addassociateID = $(this).attr("id") $.ajax({ type: 'POST', url...
0
1,046
Specifying onClick event type with Typescript and React.Konva
<p>I'm trying to get rid of my tslint error <code>Type declaration of 'any' loses type-safety.</code> but I'm struggling to figure out what the correct type would be for the Event. </p> <p>I'm working through the Lynda "<a href="https://www.lynda.com/React-js-tutorials/Profile-page-records/558648/597685-4.html?autopla...
0
1,434
How to bypass ssl certificate checking in java
<p>I want access a SOAP webservice url having https hosted in a remote vm. I am getting an exception while accessing it using HttpURLConnection.</p> <p>Here's my code:</p> <pre><code>import javax.net.ssl.*; import java.io.OutputStream; import java.net.HttpURLConnection; import java.net.URL; import java.security.cert....
0
2,234
Building/including Boost.Python in VS2013
<p>Can someone tell me if I'm doing anything wrong. </p> <p>I'm on Windows 7 using Visual Studio 2013 and I would like to be able to be able to setup a simple Boost.Python project. I don't know if I've made something wrong <strong>building</strong> boost or when <strong>including</strong> boost in my project. </p> <p...
0
1,279
Handle NULL values when reading through OracleDataReader?
<p>I'm working on my first ASP.Net application, and seem to be hitting a lot of hurdles (background primarily in WinForms with a recent MVC5 project under my belt).</p> <p>I am successfully making my DB connection using <code>OracleCommand</code> and executing my query, but when I try reading through the rows I am get...
0
1,102
"mpirun was unable to launch the specified application as it could not find an executable" error
<p>I came across a strage problem, which worked but now it doesn't.</p> <p>I run an OpenMPI program with tau profiling among 2 computers. It seems that mpirun can't run tau_exec program on a remote host, maybe it's a permission issue?</p> <pre><code> cluster@master:~/software/mpi_in_30_source/test2$ mpirun -np 2 --ho...
0
1,102
Imports in __init__.py and 'import as' statement
<p>I've run into a problem with having imports in <code>__init__.py</code> and using <code>import as</code> with absolute imports in modules of the package.</p> <p>My project has a subpackage and in its <code>__init__.py</code> I &quot;lift&quot; one of the classes from a module to the subpackage level with <code>from ...
0
1,982
Hibernate Unknown integral data type for ids
<p>I'm starting with Hibernate and I have an error that I just can't figure out.</p> <p>I have the following Classes:</p> <pre><code>@Entity @Inheritance(strategy = InheritanceType.TABLE_PER_CLASS) public abstract class AbstractColumn { @Id @GeneratedValue(strategy = GenerationType.AUTO) private String id...
0
1,856
RecyclerView and ItemTouchHelper swipe to remove issue
<p>I'm trying to implement "swipe to remove" feature via RecyclerView and ItemTouchHelper. I have a strange problem and I can't locate the issue for the life of me. I swipe an item away from the top (not the very first one), it goes away, so far so good. When I scroll away and come back, there is an artefact in the row...
0
1,785
Fatal Error sun.security.validator PKIX path building failed
<p>I have faced this issue earlier and got the work around by updating my JDK. Earlier when I faced this issue I was using default installation which I did using Yum and later I downloaded the JDK from oracle and installed it and changed the default $JAVA_HOME path as per the new installation dir. Now the same issue ha...
0
1,072
Phonegap android unable to upload image using fileTransfer
<p>I'm trying to capture an image using the camera and upload it to my AJAX endpoint. I've confirmed that this endpoint can accept the file (I created a test HTML file on my desktop that sends a form with an image in it). I'm using Cordova (phonegap) 1.7.0, and am trying to get the fileTransfer() to work. Here is the l...
0
1,085
Viewbag.Title error: One or more types required to compile a dynamic expression cannot be found. Are you missing a reference?
<p>I have an ASP.NET MVC 5 web application. In every .cshtml view file i get the following error for <em>Viewbag</em>: <strong>One or more types required to compile a dynamic expression cannot be found. Are you missing a reference?</strong></p> <p>I have references to Microsoft.CSharp.dll and System.Core.dll.</p> <p>...
0
3,696
Error [ERR_STREAM_DESTROYED]: Cannot call write after a stream was destroyed with Winston
<p>I am getting an error with winston logging if I am using <strong>winston-daily-rotate-file</strong>. When I am building my application with <strong>webpack</strong> there are no errors but when I execute my build below error is coming(stack Trace):</p> <pre><code>/app/web-app/server/node_modules/winston/lib/winston/...
0
1,157
Custom Rest Api in Magento
<p>I need rest api to create customer in magneto for that I followed this tutorial <a href="http://www.authenticdesign.co.uk/extending-magento-rest-api-v2/" rel="noreferrer">http://www.authenticdesign.co.uk/extending-magento-rest-api-v2/</a></p> <p>I followed it step by step, But When I test the api on rest client it ...
0
2,285
TextField missing in django.forms
<pre class="lang-py prettyprint-override"><code>from django import forms class UserForm(forms.ModelForm): first_name = forms.TextField(label=_(u'First name'), required=False) last_name = forms.TextField(label=_(u'Last name')) </code></pre> <p>The code above gives me an &quot;<strong>AttributeError: 'module' ob...
0
1,467
double[,] vs. List<List<double>>
<p>I have code for a matrix multiplication lab using double[,] and I wanted to compare it with an implementation using a List&lt; List&lt; double>></p> <pre><code>public static Matrix operator *(Matrix a, Matrix b) { if (a.Width != b.Height) { throw new InvalidOperationException(); ...
0
1,304
How to find second highest salary in below array list using Java8 streams
<pre><code>class Employee { int id; String name; int age; String gender; String department; int yearOfJoining; double salary; public Employee(int id, String name, int age, String gender, String department, int yearOfJoining, double salary) {...
0
1,155
Adding new fonts to TinyMCE font options
<p>I have checked out this thread: <a href="https://stackoverflow.com/questions/4201296/google-fonts-and-tinymce">Google Fonts and TinyMCE</a> and have in fact previously even successfully added new fonts to the TinyMCE font options for users.</p> <p>But I'm not sure what's gone wrong here and why I'm not able to do i...
0
2,108
Very basic running of drools 5, basic setup and quickstart
<p>Is there a more comprehensive quick start for drools 5. I was attempting to run the simple Hello World .drl rule but I wanted to do it through an ant script, possibly with just javac/java:</p> <p>I get the following error: Note: I don't am running completely without Eclipse or any other IDE: </p> <p>Is there a ...
0
1,937
Difference between pointer to pointer and pointer to array?
<p>Given that the name of an array is actually a pointer to the first element of an array, the following code:</p> <pre><code>#include &lt;stdio.h&gt; int main(void) { int a[3] = {0, 1, 2}; int *p; p = a; printf("%d\n", p[1]); return 0; } </code></pre> <p>prints <code>1</code>, as expected.</p...
0
1,385
Using PhoneNumberFormattingTextWatcher without typing country calling code
<p>In the login panel of my app, I divided the country calling code and the remaining numbers in two editable TextView as below:</p> <p><a href="https://i.stack.imgur.com/Ds6oj.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Ds6oj.jpg" alt="enter image description here"></a></p> <p>I want to use in...
0
2,580
unable to get certificate crl
<p>I want to configure SSL in apache server with Client and Server authentication and CRL.</p> <p>Client and server certificates are working perfectly without CRL (<code>SSLCARevocationCheck none</code>) but if I unable CRL, I keep getting the following error in ssl_error_log : </p> <p><code>AH02039: Certificate Veri...
0
1,882
How can I convert QByteArray to string in Qt 5.3?
<p>I am using some functions to convert <code>QVector's</code> to <code>QByteArray's</code>, for example:</p> <pre><code>QByteArray Serialize::serialize(QVector&lt;double&gt; data) { QByteArray byteArray; QDataStream out(&amp;byteArray, QIODevice::WriteOnly); out &lt;&lt; data; return byteArray; } voi...
0
1,065
Nested ng-repeat
<p>I have some dummy XML file:</p> <pre><code>&lt;Week number="2013-W45"&gt; &lt;Day dow="1" templateDay="Monday"&gt; &lt;Job name="wake up" &gt; &lt;Job name="get dressed" &gt; &lt;Job name="prepare breakfast" &gt; &lt;Job name="eat breakfast" &gt; &lt;/Job&...
0
4,270
Pytorch getting RuntimeError: Found dtype Double but expected Float
<p>I am trying to implement a neural net in PyTorch but it doesn't seem to work. The problem seems to be in the training loop. I've spend several hours into this but can't get it right. Please help, thanks.</p> <p>I haven't added the data preprocessing parts.</p> <pre><code># importing libraries import pandas as pd imp...
0
1,786
curl POST into C#
<p>I am trying to find a way how to transfer curl command to C#. </p> <p>What i need is to obtain token from api and save it into file C:\...\x.json\</p> <p>Then i want to declare token into variable, and use it into another curl POST request to take data to work with them. </p> <p>Curl:</p> <pre><code>curl -X POST...
0
1,478
table borders disappearing in tcpdf
<p>I'm setting up tcpdf to generate invoices on the fly for customers, but when I add an image, the borders are disappearing from my table. Here's the code:</p> <pre><code>/* if ($status == "Paid") { $pdf-&gt;Image("/wp-content/themes/Feather/images/Paid.jpg", 10, 60, 190, '', '', '', 'T', false, "300", '', false,...
0
1,029
How can I add compoent to another component in React?
<p>How can I add component Country.js to component Countries.js</p> <p>I want to display in browser:</p> <p>Name: France</p> <p>Capital: Paris</p> <p>Name: Russia</p> <p>Capital: Moscow</p> <p><strong>//First component Country.js</strong></p> <pre><code>import React, { Component } from 'react' class Country ext...
0
1,547
Turn AutoCompleteTextView into a SearchView in ActionBar instead
<p>I have a <strong>AutoCompleteTextView</strong> which gives user auto-completion search result from <strong>Google Places API</strong>. Once I was done I discovered <strong>SearchView</strong> and how it can be placed in the <strong>ActionBar</strong>. I checked out the SearchView example provided by google and added...
0
8,114
Is there a way to change the Bootstrap Navbar Height?
<p>I'm designing a website using Twitter's Bootstrap, and I'm having difficulty with the responsive navbar. In bootstrap, the navbar allows a mobile user to click an icon to extend the navbar and display navigation links. I'm unable to find how to adjust the maximum height... when I try and use one of the drop down bar...
0
2,511
Adopting UIKeyInput protocol to get input from a Bluetooth keyboard
<p>I have a Bluetooth foot switch that's basically a wireless keyboard. One pedal sends the up arrow key, the other sends the down arrow key. I want to be able to execute my own code in my iPad app when one of the pedals is pressed. The maker of the pedal tells me I should create a <code>UITextField</code>, and adop...
0
1,658
Gradle Copy task says no source
<p>I have this Gradle script as deploy.gradle(Gradle 4.3.1):</p> <pre><code>defaultTasks 'echoProp' import org.apache.tools.ant.filters.ReplaceTokens task copyWar(type: Copy) { from "${source}" into "${target}" include '*.war' } task echoProp(dependsOn: copyWar) &lt;&lt; { println "source dir: ${sour...
0
1,838
XML Serialization of HTML
<p><strong>Okay this one DID it! Thanks to all of you!</strong></p> <pre><code>public class Result { public String htmlEscaped { set; get; } [XmlIgnore] public String htmlValue { set; get; } [XmlElement("htmlValue")] public XmlCDataSection htmlValueCData { ...
0
1,657
Primeng data table loading not working
<p>I have data table with list of data. I want to display loading icon indicates that data is loading. I can able to display data, But not showing loading icon.</p> <h2>my html</h2> <pre><code> &lt;p-dataTable [value]="stuList" [rows]="10" [paginator]="true" [loading]="loading" [totalRecords]="totalRecords" [rowsPerP...
0
1,180
TransactionTemplate and TransactionManager connection objects
<p>The following code in my DAO works perfectly fine.</p> <pre><code>public void insert(final Person person) { transactionTemplate.execute(new TransactionCallback&lt;Void&gt;() { public Void doInTransaction(TransactionStatus txStatus) { try { getJdbcTemplate().execute("insert in...
0
1,118
Close navigation drawer programmatically from another class
<p>I currently am using Fragments in my app. In my MainActivity I have a navigation drawer which is then subsequently populated by a Fragment, as well as the main area in the activity which is populated by another Fragment.</p> <p>The clicking of an item in the navigation drawer is dealt with by my first fragment, onl...
0
4,210
How do I resolve this <unresolved overloaded function type> error when using std::function?
<p>In the following (working) code example, the templated register_enum() function is used to iterate over an enumeration and call a user provided callback to convert an enum value to a c-string. All enumerations are defined within a class, and enum to string conversion is done with a static to_cstring( enum ) functio...
0
2,479
Apache Commons FTPClient Hanging
<p>We are using the following Apache Commons Net FTP code to connect to an FTP server, poll some directories for files, and if files are found, to retrieve them to the local machine:</p> <pre><code>try { logger.trace("Attempting to connect to server..."); // Connect to server FTPClient ftpClient = new FTPClient(); ft...
0
1,228
Making all images appear with the same height in bootstrap
<p>I am trying to make all a row of 4 images all have the same Height size, I already tried to play around with the width and height using css but nothing seems to work, the portrait images always end up taller than the landscape ones, here's the code:</p> <pre><code>&lt;div class="container" &gt; &lt;div class="j...
0
1,250
"ResolveAssemblyReference" task fails and System.BadImageFormatException, but assembly isn't used anywhere!
<p>I am getting an error about the assembly "C:\Ora10g\bin\Zip.exe". The trouble is this solution does NOT use anything in Oracle at all. I could not find a single reference to 10g anywhere in the project. I inherited this from another person who left our group. He never had this issue. Another member of my team said h...
0
1,151
FB Api - Unable post a photo to page's album by IOS App
<p>I try to post a photo to an album from an iOS app. I want users upload their photos to a fan page's specific album by their names, not page owner. The problem is like the problem mentioned below:<br> <a href="https://stackoverflow.com/questions/19228423/post-a-photo-to-an-album-on-a-facebook-fan-page-without-being-t...
0
1,847
Why does the Rust compiler not optimize code assuming that two mutable references cannot alias?
<p>As far as I know, reference/pointer aliasing can hinder the compiler's ability to generate optimized code, since they must ensure the generated binary behaves correctly in the case where the two references/pointers indeed alias. For instance, in the following C code,</p> <pre class="lang-c prettyprint-override"><cod...
0
1,478
apache hive cannot connect to derby:metastore_db although ij from derby can
<p>I am setting up a hive on hadoop cluster on three machines. The hadoop (2.7.1) and derby (10.11) runs fine:</p> <pre><code>hduser@master:~$ ij ij version 10.11 ij&gt; connect 'jdbc:derby://localhost:1527/metastore_db;create=true'; ij&gt; select * from a; ID ----------- 0 rows selected ij&gt; </code></pre> <p>but ...
0
1,675
Pagination doesn't work with POST action laravel 5
<p>I have an issue when using pagination in Laravel 5. This is the case I want to paginate results that I get from a search, my code works and displays the content that matches my search, but when I want to see the others results (page = 2) it doesn't display anything and I get a route exception.</p> <pre><code>MethodN...
0
2,265
Text To Clipboard in VBA Windows 10 Issue
<p>I have a function that I use to send a string to the windows clipboard:</p> <pre><code>Sub TextToClipboard(ByVal Text As String) With CreateObject("new:{1C3B4210-F441-11CE-B9EA-00AA006B1A69}") 'FM20.dll (Microsoft Forms 2.0 Object Library) .SetText Text .PutInClipboard End With End Sub </code></pre> ...
0
1,563
Android project build successfully but ran failed with error: java.util.zip.ZipException: duplicate entry
<p>I have update my android studio and SDK and some package dependencies on grade of the project and since then I have faced with a lot of problem that I think the reason is incompatibility between dependencies. </p> <p>As I researched I found that many people have same problems and it is not rare. I have solved some ...
0
1,968
Set Default template for category page in Magento
<p>New to Magento.</p> <p>Can any one guide me how to define a default layout for category pages.</p> <p>Tried local.xml in my theme folder but not working.</p> <p>Here is my xml file :- </p> <p></p> <pre><code>&lt;!-- Default handle, loaded on most pages --&gt; &lt;default&gt; &lt;reference name="head"&gt;...
0
2,608
Font looks different in IE than it does in Firefox and Chrome...why?
<p>I am creating a website and the font looks different in IE (it's larger) than it is in Firefox and Chrome. Does anyone know why? And how do I fix it in IE?</p> <p>Here's my code:</p> <pre><code> &lt;?xml version="1.0" encoding="UTF-8" standalone="no" ?&gt; &lt;!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitio...
0
7,588
How to get Dropzone.js to upload files only when a submit button is clicked?
<p>for the past few days I've been trying to implement Dropzone into my form, but so far I had no luck figuring out how to make it upload and process the images only when the submit button gets clicked. Therefore, I decided to come here and ask you guys for help. <br> I've made a example code structure so you can only...
0
1,895
JAXBException: "package" doesnt contain ObjectFactory.class or jaxb.index
<p>I have been playing with JAXB / MOXy a lot lately, <strong>and it works great on all my tests and example codes</strong>. I exclusively using binding files, that's why I'm using MOXy.</p> <p>Please note that in all my examples, I'm NEVER using an ObjectFactory nor a jaxb.index, <strong>and it works GREAT</strong>.<...
0
5,780
8086 assembly language program to find number of odd and even numbers in an array of 16-bit hexadecimal numbers
<p>In order to determine if the hexadecimal no is even, the program would divide the number by 2 and the remainder should be equal to zero. If not, then it is an odd number. Initially, my plan was to I have a variable or register that will increment when a hexadecimal is proven to be even. Then afterwards I would just ...
0
1,299
An unhandled exception was thrown by the application. System.InvalidOperationException: Unable to > resolve service for type
<p>I have a simple asp.net core web api and I am trying to consume just the api/values that comes by default with the visual studio template. however I get this error:</p> <blockquote> <p>Hosting environment: Production Content root path: C:\api.E-commerce Now listening on: <a href="http://localhost:18401" rel="no...
0
3,964
How to pass parameters to JSP using response.sendRedirect?
<p>I really need to use <code>response.sendRedirect()</code> method because my JSP(search.jsp) page is actually calling for a servlet <code>&lt;jsp:include page="/searchServlet" /&gt;</code> and in my <code>searchServlet</code> if I use the forward method (to the same page) I get a weird error (maybe because I'm calli...
0
1,556
Git error: Unable to append to .git/logs/refs/remotes/origin/master: Permission denied
<p>I am having a strange issue that I can't seem to resolve. Here is what happend:</p> <p>I had some log files in a github repository that I didn't want there. I found this script that removes files completely from git history like so:</p> <pre><code> #!/bin/bash set -o errexit # Author: David Underhill # Script ...
0
1,330
Entity Framework The context cannot be used while the model is being created
<p>My unit of work class is mentioned below and I am using Ninject and I have tried injecting <code>IUnitOfWork</code> per request per thread scope, transient etc. but I am still getting error which is:</p> <blockquote> <p>"Message":"An error has occurred.","ExceptionMessage":"The context cannot be used while the mo...
0
2,920
ORA-19202: Error occurred in XML processing LPX-00210: expected '<' instead of 'M' Error at line 1
<p>I had this query working properly for years until recently where i changed another query in the collector and saved. I didnt change this xml query at all, but now its failing on the xml part. Im and definitely not versed well in xml so im looking for some help to see where the issue is. Here is the error message ...
0
4,284
java.lang.LinkageError: loader constraint violation:previously initiated loading for a different type with name "javax/mail/Session"
<p>I am getting the following error when I try to send email using <code>javax.mail-api</code>:</p> <pre><code>Caused by: java.lang.LinkageError: loader constraint violation: loader (instance of org/apache/felix/framework/BundleWiringImpl$BundleClassLoaderJava5) previously initiated loading for a different type with n...
0
1,312
java.security.SignatureException: Signature does not match
<ol> <li><p>I created a java keystore with name <strong>cloudsslkeystore.jks</strong></p> <pre><code> keytool -genkeypair -validity 730 -alias cloudsslkey -keystore cloudsslkeystore.jks -dname "cn=localhost" -keypass password -storepass password </code></pre></li> <li><p>I exported it as certificate with name <strong>...
0
3,014
Gradle Android Build System NDK issues
<p>I'll be the first to admit that I'm not terribly expert with Gradle and the new Android build system but, unfortunately, I had to move over to it (from ant) because of issue 21479 (<a href="https://code.google.com/p/android/issues/detail?id=21479" rel="noreferrer">https://code.google.com/p/android/issues/detail?id=2...
0
5,745
Command PhaseScriptExecution failed with a nonzero exit code while trying to add Flutter to iOS app
<p>I am trying to add flutter to the existing app. So before doing on the production app I tried with brand new Xcode 10 Single View Application. I followed the tutorial here on <a href="https://github.com/flutter/flutter/wiki/Add-Flutter-to-existing-apps" rel="noreferrer">https://github.com/flutter/flutter/wiki/Add-Fl...
0
1,300
How to read from hbase using spark
<p>The below code will read from the hbase, then convert it to json structure and the convert to schemaRDD , But the problem is that I am <code>using List</code> to store the json string then pass to javaRDD, for data of about 100 GB the master will be loaded with data in memory. What is the right way to load the data ...
0
1,726
Duplicate JSON Field with Jackson
<p>I am using Jackson for JSON (de)serialization in conjunction with Spring. However I am having an issue with a field being twice in some cases.</p> <p>I have an abstract class: </p> <pre><code>@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "mimeType") @JsonSubTypes({ @J...
0
1,176
warning: unknown escape sequence: '\040' [enabled by default]
<p>I'm writing a simple application in C, which I would like to publish under BSD license. One part of the application is responsible for printing out information about the program to its users. However, I have a problem with printing out the license text. Here's the example:</p> <pre><code>#include &lt;stdio.h&gt; #i...
0
1,563
java.lang.NullPointerException: Attempt to invoke virtual method 'java.util.Iterator java.util.ArrayList
<p>I'm currently working on an android app to fetch data from the server. It crashes and I get a <code>NullPointerException</code>. Can anyone help me edit my code/ list out my error? </p> <p>Here is my code (I have read a through few of the forums but did not really understand how to solve my problem)</p> <pre><code...
0
1,089
MVC 5 BeginCollectionItem with Partial CRUD
<p>I have made changes below to the question, which is still the same but hopefully a lot clearer through the models and in regards to what I want to achieve and where I've come up against issues.</p> <p>Below are shown two classes, Company and Employee, Company has a list of Employees.</p> <p>This will be an input f...
0
1,828
Populating a Google From DropDown with Values from a Google Sheet
<p>I looked through all of the questions, and I can't quite figure out what I am doing wrong. Here is the background:</p> <p>I created a spreadsheet that has multiple tabs. Each tab corresponds to types of events (e.g parades, festivals, sports). Each of these tabs is used to assign specific job numbers to a specific ...
0
1,554
Creating a Photo Gallery using Python
<p>I'm a novice programmer and thought it would be a fun learning experience to create a photo gallery using python. I've gotten pretty far in the project, but recently got stuck.</p> <p>I have a folder filled with photos. I was able to generate an index page with thumbnails. When I click on a thumbnail, a larger v...
0
1,232
'std::out_of_range' what(): basic_string::substr: __pos
<p>I'm writing a program for my class that'll sort a list of albums by the albums name and then the albums songs in alphabetical order. I'm getting the error 'std::out_of_range' what(): basic_string::substr: __pos (which is 4) > this->size() (which is 0). My teacher kind of just threw this at us without explaining muc...
0
1,082
Django manage.py syncdb throwing No module named MySQLdb
<p>I am a newbie learning Python/Django...</p> <p>Am using the following tutorial located <a href="http://docs.djangoproject.com/en/dev/intro/tutorial01/#intro-tutorial01" rel="noreferrer">here</a>.</p> <p>Created a mysite database in MySQL 5 running on Snow Leopard.</p> <p>Edited the settings.py file to look like t...
0
1,104
Enable CORS is not working after publishing into IIS
<p>I hosted dotnet core 2.2 web api application to local IIS. When i run hosted site, site is working. I am trying to do login from angular, it is not working.</p> <p>It says <strong>Access to XMLHttpRequest at 'http://192.168.43.143:100/Auth/Login' from origin 'http://localhost:4200' has been blocked by CORS policy: N...
0
3,112
How to filter an array of object?
<p>I've got an array of objects (show below) and I would like to write a function that returns the same array but with the "object(s)" that meet the criterion removed.</p> <p>The function would :</p> <p>1- check if the index exists 2- if it exists, checks for the required value and if the object's index is equal to t...
0
5,009
How do I write a simple Servlet for Jetty using Eclipse?
<p>I downloaded Eclipse for Java EE and Jetty 8.1 and would like to implement a very simple Servlet.</p> <p>Jetty works fine when I start it using <code>java -jar start.jar</code>.</p> <p>To develop the Servlet I did this:</p> <ol> <li><p>In Eclipse, I choosed "New Dynamic Web Project".</p></li> <li><p>I added <code...
0
4,792
Error: Property 'split' does not exist on type 'string | ArrayBuffer'. Property 'split' does not exist on type 'ArrayBuffer'
<p>I'm trying to convert image into Base64 by following a tutorial, when I'm uploading image from angular 6 project. when I press submit button I could able to get the output as value:"base64 code" and also I could able to get the same image by converting the code into image by using a "Convert Your Base64 to Image". ...
0
1,304
How to download a file with Retrofit2?
<p>How can I <em>download</em> a <strong>file(image/video)</strong> from my <strong>PHP</strong> server using <strong>Retrofit2</strong> ?</p> <p>I wasn't able to find any resources or tutorials online on how to proceed; I found <a href="https://stackoverflow.com/questions/32856850/retrofit-2-file-down-upload">this po...
0
1,622
Insert a WHERE clause in a CAML query - using SharePoint, SPServices, JavaScript, and jQuery
<p>I am trying to insert a WHERE clause into my CAML query to filter a date column for NULL (I want to return all rows for which there is no date in Assign Date the column).</p> <p>This is for a SharePoint List. The code is using the SPServices, jQuery, and JavaScript</p> <p>I am having quite a time pulling this off...
0
2,920
Unhandled Exception: NoSuchMethodError: The method 'toRawHandle' was called on null
<p>i am using <b>firebase_messaging</b> library in My Flutter Application for Firebase Push Notifications.</p> <p>Currently my firebase_messaging version is <b>firebase_messaging: ^5.1.5</b> which was recently updated an the latest one.</p> <p>i am trying to receive notification in background as well as when applicat...
0
2,325
The matching wildcard is strict, but no declaration can be found for element
<p>I'm using Springsource Tools Suite 3 and trying to implement interceptions. That's the code and errors are commented:</p> <p><strong>servlet-context.xml</strong></p> <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt; &lt;beans:beans xmlns="http://www.springframework.org/schema/mvc" xmlns:xsi="http://www.w...
0
1,112
Eclipse validation error deploying EAR to WebLogic: cvc-complex-type.2.4c: Expected element 'module@http://java.sun.com/xml/ns/javaee'
<p>Out of the box, it is not possible to deploy an EAR to Oracle WebLogic using Eclipse.</p> <p>Environment details:</p> <ul> <li>Eclipse version: Indigo (includes Oracle Enterprise Pack for Eclipse 12.1.1.0.0)</li> <li>Weblogic version: 10.3.5 (11gR1) </li> </ul> <p>Oracle guide: <a href="http://www.oracle.com/tech...
0
2,134
The listener supports no services
<p>I installed Oracle Database 11gR2 as well as Oracle Grid Infrastructure on a Linux box, then I created the <code>orcl</code> database.</p> <p>I have always been able to connect to my database using SQL*Plus or OEM. But lately, I'm facing an issue when typing the command <code>lsnrctl status</code>, and so I'm not a...
0
1,385
Eclipse Unhandled event loop exception, no more handles Windows 7
<p>My Eclipse is used to develop Android Apps. It worked fine until one day, an Unhandled event loop exception is prompt. The log is shown below.</p> <p>To trigger the error prompt, just unfocus the text editor in eclipse and focus it again, then the prompt is triggered, For example, click on the Package Explorer (Red ...
0
4,842
Fullcalendar font-size of events
<p>When I change the <code>font-size</code> in the css like this:</p> <pre><code>.fc-event { font-size: .85em;} </code></pre> <p>The <code>font-size</code> looks perfect.</p> <p>But when I change the <code>font-size</code> with jquery it does not work.</p> <pre><code>if( /Android|webOS|iPhone|iPad|iPod|BlackBer...
0
11,437