title stringlengths 13 150 | body stringlengths 749 64.2k | label int64 0 3 | token_count int64 1.02k 28.5k |
|---|---|---|---|
Matrix Multiplication in MIPS, Array Looping | <p>First time on stackoverflow, so please forgive me if I'm doing something wrong. I am trying to create the C code below in MIPS:</p>
<pre class="lang-c prettyprint-override"><code>void mm (int c[][], int a[][], int b[][])
{
int i, j ,k;
for (i = 0; i != 4; i = i + 1)
for (j = 0; j != 4; j = j + 1)... | 1 | 1,501 |
Android Facebook login not calling callback function | <p>I am trying to add a Facebook login button in the main activity of a simple application. When I press the "login with Facebook" button, I have the FB application open for login, but after the successful login, the app comes back to the main screen of my application and nothing happens (the callback function register... | 1 | 1,474 |
Java applet buttons are not displayed until i hover the mouse over them | <p>So My problem is that the applet lunches with nothing in it as soon as i hover the mouse
on top of the buttons it displays them and works perfectly afterwards. I think there might be something wrong with paint but i am not sure. I tried several changes but noting seems to work.
Any help will be much appreciated.</... | 1 | 10,256 |
SSL error from Java client but works form POSTER in Firefox | <p>I just setup SSL certs on my server. I am pretty sure they are setup right. When go to <code>https://mydomain.com/myapp</code> in the browser the page loads correctly and the Green Lock shows in the address bar.</p>
<p>Doing a POST from Firefox>POSTER to this <code>HTTPS</code> url I get a valid response.</p>
<p>I... | 1 | 1,427 |
Read Contents Tarfile into Python - "seeking backwards is not allowed" | <p>I am new to python. I am having trouble reading the contents of a tarfile into python. </p>
<p>The data are the contents of a journal article (hosted at pubmed central). See info below. And link to tarfile which I want to read into Python.</p>
<p><a href="http://www.pubmedcentral.nih.gov/utils/oa/oa.fcgi?id=PMC139... | 1 | 1,410 |
How to update progress bar while working in the UI thread | <p>I have a <code>ProgressBar</code> and a <code>TreeView</code>.</p>
<p>I populated the <code>TreeView</code> with a bunch of data, once it is applied I run through the <code>visual tree</code> of the <code>TreeView</code> basically forcing it to generate each of the <code>TreeViewItems</code>. I would like the <code... | 1 | 3,274 |
JSON Format - convert Dataset to JSON | <p>I have C# WCF service.There I want to convert to JSON String.DataSet contain more table Currntly coming result some wrong json format.</p>
<pre><code> {
"Target1": [
{
"BusinessUnit": "MASS",
"RetailerCode": "TEST0002"
},
{
"BusinessUnit": "MASS",
"RetailerCode": "TEST0... | 1 | 1,686 |
C# can't deserialize XML containing xsi:type | <p>I am trying to deserialize the following XML</p>
<pre><code><?xml version="1.0" encoding="UTF-8"?>
<GovTalkMessage xmlns="http://www.govtalk.gov.uk/CM/envelope">
<EnvelopeVersion>2.0</EnvelopeVersion>
<Header>
<MessageDetails>
<Class>DRUG_DATA</Class>
... | 1 | 8,063 |
How to update datatable in tab of accordion (primefaces) | <p>I have <em>Accordionpanel>Tab>DataTable</em>.If u click/select row in datatable,Showing a <em>dialog</em>.And if u close the dialog,I reset the selected row from managedbean(thats work). But I can't update the above datatable in <em>acc>tab</em>.
<br><strong>code looks like this:</strong></p>
<pre><code> <h:f... | 1 | 1,315 |
Hide WPF validation error when window is first loaded | <p>When i first load the window, the button is visible and there isn't an error in the validation (no red line round textbox). </p>
<p><img src="https://i.imgur.com/pga6Hjv.png" alt="what window looks like when first loaded"></p>
<p>When typing values into the textbox, the validation rules work as they should.</p>
<... | 1 | 1,741 |
Reactjs FormControl Date | <p>I’m pretty new to front end development and am working with React currently. I’m trying to use a date input field which I currently have working. I want to format the box, the width etc of the input field. </p>
<p>I’m using React bootstrap formcontol with a type date. How would I go about formatting the input of th... | 1 | 1,063 |
How can I call WinRar in Python on Windows? STILL Problematic | <p>Using the zipfile module I have created a script to extract my archived files, but the method is corrupting everything other than txt files. </p>
<pre><code>def unzip(zip):
filelist = []
dumpfold = r'M:\SVN_EReportingZones\eReportingZones\data\input\26012012'
storage = r'M:\SVN_EReporting... | 1 | 1,133 |
jquery/javascript alert if all fields are not completed | <p>I have a form which I'd like to alert people if ALL of the fields aren't completed. I am currently using a jquery validation script for the required fields, but I need it to also let people know that not all of the fields are filled out before saving (they're not required fields, but just to let them know that the f... | 1 | 8,766 |
Error in electron-rebuild serialport on Windows | <p>I am developing a project with <a href="http://electron.atom.io/" rel="nofollow noreferrer" title="Electron">Electron</a> and <a href="https://github.com/EmergingTechnologyAdvisors/node-serialport" rel="nofollow noreferrer" title="serialport">serialport</a>. </p>
<p>The serialport library doesn't work automatically... | 1 | 2,014 |
Track a button onclick event | <p>I have a script that tracks outgoing links when the link is inside an <code><a></code> tag.</p>
<p>The script is from <a href="http://www.php-development.ru/php-scripts/click-tracker.php" rel="nofollow">here</a></p>
<p>The script will track html inside the tag or an image.</p>
<p>What I need is for it to tr... | 1 | 1,805 |
AngularJS - on ng-click display another div | <p>I am new to AngularJS. What I have done till now is, I have one controller and it's displaying some data. What I would like to do it, on-click on that data, display different div. What is the best way to do this ? Would like to follow MVC pattern. Also want to pass some data to another div.</p>
<p>Thanks</p>
<pre>... | 1 | 1,380 |
Error: "Expected a method, getter, setter or operator declaration" | <p>I am getting the error: "Expected a method, getter, setter or operator declaration" when I am implementing the below code.</p>
<p>It includes a provider, consumer and StreamBuilder. Is there something I am doing wrong with the below implementation? I have checked and I believe I am including all of the above which ... | 1 | 2,736 |
Unicorn Worker Killer is not reducing memory usage | <p>I've been struggling with memory issues with my Rails app for the past few days.</p>
<p>I setup a Unicorn server with the sidekiq gem to run background jobs. The jobs were constantly failing in production, so I installed NewRelic to view the memory use, and it showed that the Sidekiq worker was exceeding Heroku's m... | 1 | 1,169 |
PL/SQL: Center query RESULTS | <p>I've googled all I know how to Google. I need some new eyes to look at this.</p>
<p>I am trying to center the RESULTS of a query. Here is what I have so far ...</p>
<pre><code> set lines 2000 pages 2000
COLUMN total HEADING "Total" FORMAT A20 JUSTIFY CENTER
COLUMN sending_fi HEADING "Sending M" FORMAT ... | 1 | 1,297 |
Why are all labels_ are -1? Generated by DBSCAN in Python | <p>![enter image description here][1]</p>
<pre><code>from sklearn.cluster import DBSCAN
dbscan = DBSCAN(eps=0.001, min_samples=10)
clustering = dbscan.fit(X)
</code></pre>
<p>Example vectors:</p>
<pre><code>array([[ 0.05811029, -1.089355 , -1.9143777 , ..., 1.235167 ,
-0.6473859 , 1.5684978 ],
[-0.711732... | 1 | 1,763 |
How to use two autosuggest (ajax, PHP, Mysql) in a single page | <p>I used an autosuggest script (using jquery, ajax, php and mysql) in one of my pages and that worked perfectly.</p>
<p>but when i tried to add the autosuggest for another Form (Text Input) on the same page i got a lot of errors, it displays the correct information but when i click them that fills the first input, i ... | 1 | 1,964 |
I want to inject an object in servlet using Spring | <p>I have a two servlets in my application and I want an object of class A to be injected to both the servlets, and I would also like the same ApplicationContext throughout the application i.e. both servlets as mentioned in the first answer of this question on SO:
<a href="https://stackoverflow.com/questions/18745770/s... | 1 | 1,427 |
create a unlimited multilevel nested list from a recursive array | <p>Can anyone please assist me with the logic of looping through a recursive array and creating a multi level nested list using php. I have not been very successful in getting beyond the top level list nodes.</p>
<p>please see array below:</p>
<pre><code>Dump => array(6) {
[0] => array(5) {
["id"] => s... | 1 | 1,452 |
reset all inputs on angular 2 parent and child component | <p>I'm a Angular 2 newbie. After learning Angular 2, I made a demo app use parent and child component. The view of parent component has form element and a few inputs and view of child component has other inputs.
This is my view of parent component</p>
<pre><code><form #f="ngForm" (ngSubmit)="onSubmit(f)"><div... | 1 | 1,573 |
o.apache.kafka.common.network.Selector : Error in I/O with localhost/127.0.0.1 | <p>My application consumes messages from a Kafka server running on one machine and then forwards them to another remote Kafka running on some other instance. After I deploy my app to Cloud Foundry and send a message to the first Kafka server, the application works as expected. The message gets consumed and forwards ... | 1 | 2,555 |
Unique JSONObjects in JSONArray | <p>I have a JSONArray which consist of set of JSONObjects in it. What is the best algorithm to get unique JSONObjects from </p>
<pre><code>"lessaon_plan_data": [
{
"lessonplan_marks": 100,
"lessonplan_name": "wdwd",
"lessonplan_subject": "Maths"
},
{
"lessonplan_marks"... | 1 | 2,282 |
FATAL EXCEPTION: AsyncTask | <p>Today i am facing a problem in android app while executing AsyncTask.exception log is -</p>
<pre><code> FATAL EXCEPTION: AsyncTask #1
java.lang.RuntimeException: An error occured while executing doInBackground()
at android.os.AsyncTask$3.done(AsyncTask.java:299)
at java.util.concurrent.FutureTask.finishC... | 1 | 1,276 |
Kali Linux: Broken Java | <p>Java stopped working in kali linux. When I run the jar file I get the exception. For example, exception from CobaltStrike. I have it on 2.5, 3.6 and 3.8 versions.</p>
<pre><code>Exception in thread "main" java.lang.NoClassDefFoundError: sun/swing/plaf/synth/SynthIcon
at java.base/java.lang.ClassLoader.defineClass1(... | 1 | 1,805 |
How to execute a query with IF and ELSE in Android sqlite? | <p>I'm programming a method insertOrUpdate in my android application and I can't do this:</p>
<pre><code>database.execSQL('IF (select count(*) from RegNascimento where codigoAnimal = ?) > 0 then begin update RegNascimento set cgnRegNascimento = ? where codigoAnimal = ?; end else begin insert into RegNascimento(cgnR... | 1 | 1,434 |
How to fix javax.servlet.ServletException: BeanUtils.populate | <p>My app is on a digital ocean server with ubuntu Ubuntu 14.04.1 LTS (GNU/Linux 3.13.0-43-generic x86_64)</p>
<p>when I run java -version i get this output:</p>
<pre><code>java version "1.8.0_31"
Java(TM) SE Runtime Environment (build 1.8.0_31-b13)
Java HotSpot(TM) 64-Bit Server VM (build 25.31-b07, mixed mode)
</co... | 1 | 1,046 |
gradle publish jars with different classifiers, dependency missing | <p>Gradle new maven-publish plugin:</p>
<p>For multiple jars with different classifiers, e.g.,</p>
<p>source sets</p>
<pre><code>src/foo/java
src/bar/java
dependencies {
fooCompile group: 'org.slf4j', name: 'slf4j-api', version: '1.7.25'
barCompile sourceSets.foo.output
}
</code></pre>
<p>Jars to build:</p... | 1 | 1,186 |
RecyclerView and Adapter data updates | <p>This is a question about RecyclerView internal behavior for someone that knows its mechanics or is willing to dig into the source code. I’d like an answer backed up by references to the source.</p>
<h1>Original question</h1>
<p><em>(scroll down to ‘In other words’ for a more focused question)</em></p>
<p>I need to u... | 1 | 1,325 |
Redirecting to log server for container when view logs of a completed spark jobs run on yarn | <p>I'm running spark on yarn.</p>
<p>My spark versoin is 2.1.1, and hadoop version is apache hadoop 2.7.3.</p>
<p>when a spark job running on yarn in cluster mode, I can view the Executor's log via the stdout/stderr links like </p>
<pre><code>http://hadoop-slave1:8042/node/containerlogs/container_1500432603585_0148_... | 1 | 1,428 |
Drawing a selection box using Swing | <p>I have written an application with a panel and three buttons. I want to add selection this buttons using the mouse. I mean like we have in Windows on the Desktop. I press the left mouse button and with the movement of the mouse the area selection is growing. </p>
<p>Is there a specific interface in this or do I hav... | 1 | 1,475 |
platformnotsupportedexception : XSLCompiledTransform.Load(xslt) not loading the xslt file with </msxsl:script> in .net Core 2.1 target framework | <p>I have a xml file which i need to convert to txt, for which i used xslt transformation.
My xslt transform file contains some supporting javascript functions in </p>
<p>I could successfully transform the file if i run my code in .net framework 4.5 and above but same code fails with .net core 2.1.</p>
<p>Documentati... | 1 | 12,168 |
Combining flex with position:fixed | <p>I want to show a modal dialog but I am struggling with the combination of a flex layout and the dialog with a fixed positioning. The header and footer need to be fixed in height; the content section has an overflow with scrollbars. Reason why I chose the flex layout here is that the header could be hidden or vary in... | 1 | 1,768 |
Moodle Quickform adding elements in foreach loop not submitting | <p>I am making a form from database fields, so I pull all the records and loop through and add the form elements in a foreach loop in php. The problem is when I submit the form the elements are not posted, the only return I get is the submit button: - </p>
<pre><code>stdClass Object
(
[submitbutton] => Submit
)... | 1 | 1,884 |
ActiveModel::ForbiddenAttributesError using update_attributes having created params hash myself | <p>I’m trying to edit/update a model record using simple_form, but the form is not going to directly change a model field. Instead, I offer a couple of check_box_tag fields that tell update what fields need changed. As a result, update is not receiving a params[:device] hash that I can use to update the attributes. ... | 1 | 2,091 |
HOw to pair the bluetooth in two devices using NFC | <p>I am trying to pair two devices </p>
<p>One is Google Nexus S which has the applicaion running which reads the mac address written over the tag which is stuck on the other phone which is not Android one .</p>
<p>Now i am trying to pair the devices as i tap on the other phone , my application reads the MAC addre... | 1 | 1,396 |
How to use getConfig() to edit config.yml in a method outside of the Main class | <p>I've had a persistent issue for the path couple days that no amount of searching has helped me overcome. I only recently began dabbling into Bukkit plugin development, and all this simple plugin current does is set join/quit messages and AFK status. However, the latter part is giving me issues.</p>
<p>My Spigot ser... | 1 | 2,532 |
Android : app loading library at runtime on Lollipop but not IceCreamSandwich | <p>I'm currently developping an Android app using Android Studio. Currently, the app is launching perfectly on Lollipop devices, but crashes at launch due to a <code>ClassNotFoundException</code> on pre-lollipop devices (i've tested on ICS and it fail).</p>
<p>The missing class is always from an external librairies at... | 1 | 3,371 |
How to fix 'Dependency failing' when building Flutter application on Android | <p>I am trying to use Google Sign in with my Flutter application. However, I am unable to build the application due to some issues with dependencies. I have updated all of my dependencies to the latest version but to no avail. How do I resolve these dependencies so I can build the application? </p>
<p>This is for a si... | 1 | 2,075 |
(Attempting to) migrate from WSE 3.0 to WCF for client code | <p>I have been all over the net for this. I've just been having a devil of a time doing it, and the vendor whose web service I'm trying to consume refuses to officially support WCF as a method of consumption.</p>
<p>I'm no web services expert, so I'll do my best to document and explain with this initial post, but by a... | 1 | 3,004 |
How do I change GET method to POST method using php and ajax | <p>I changed the GET methods into POST in php and ajax files but the logical error here is that every time I add a student into the database it doesn't work. I can't really figure out the problem because I'm new to AJAX.</p>
<p>Here's my code:</p>
<p>php file for adding</p>
<pre><code><?php
//I changed to POST
$q... | 1 | 1,625 |
how to make a ul same size as parent li? | <p>I'm working a dropdown menu, but I'm having a problem with the size of inner <code>ul</code> I trying to make it the same size as the parent <code>li</code>.</p>
<p>Can somebody tell me what am i doing wrong?</p>
<p><a href="https://jsfiddle.net/o9kkb1er/1/" rel="nofollow">Here</a> is a demo of my code.</p>
<p><d... | 1 | 1,024 |
Speeding up XML schema validations of a batch of XML files against the same XML schema (XSD) | <p>I would like to speed up the process of validating a batch of XML files against the same single XML schema (XSD). Only restrictions are that I am in a PHP environment.</p>
<p>My current problem is that the schema I would like to validate against includes the fairly complex xhtml schema of 2755 lines (http://www.w3.... | 1 | 1,795 |
NullPointerException and "Depth limit reached" sending SOAP after first try | <p>I'm getting an error on sending SOAP message to a Web Service server, the funny thing is the first sending (once the server gets started) always works.
From the second message on I start receiving a NullPointerException at client end and "depth limit reached" messages at server.
That made me believe I was facing a s... | 1 | 10,215 |
Need to load some class by bootstrap Classloader | <p>I've the following scenario:</p>
<p>I've a <code>byte[]</code> that contains the <code>.class</code> data of a class (loaded from the file system)</p>
<p>And I have another <code>byte[]</code> of this some object of this class that was previously Serialized to some other stream.</p>
<p>First do load the <code>byt... | 1 | 1,564 |
PowerShell script fails first time but works second time | <p>I've found a <a href="http://poshcode.org/2603" rel="noreferrer">PowerShell script</a> that can change the desktop wallpaper of my Windows 7 PC of an image file whose path is supplied as a parameter. The end result of what I want is to have this script called by a batch file on startup.</p>
<pre><code>[CmdletBindin... | 1 | 1,242 |
DSP - Group Delay of an IIR filter | <p>I need to write a program in order to filter a signal for 0.8-3 Hz. Even though I have a working FIR filter this one takes too long and I've decided to change to an IIR filter. I've designed one myself using fdatool in Matlab and I've got the NUM and DEN. The improvement in time would be quite good (the FIR was 125 ... | 1 | 1,510 |
Could not resolve matching constructor but constructor seem fine | <p>We currently have an application that uses a class called JmsComponentMessageDispatcher to look after putting messages on to queues here is the constructor.</p>
<pre><code>public JmsComponentMessageDispatcher(ConnectionFactory cf, FileDataAccess access,
List<Destination> destinations)
{
if (cf ==... | 1 | 5,821 |
ASP.Net Membership provider in WCF (WebHttpBinding) | <p>I'm developping a <strong>WPF</strong> application that needs authentification. I want to use the <strong>client application services</strong> to use the <strong>ASP.Net Membership Provider</strong> (see this <a href="http://aspalliance.com/1596_Client_Application_Services__Part_2.7" rel="nofollow noreferrer">link</... | 1 | 2,122 |
Python how to resolve the Error: java.lang.RuntimeException: PipeMapRed.waitOutputThreads(): subprocess failed with code 2 | <p>I am having an issue running a simple python code inside hadoop streaming.
I have tried all the suggestions in the previous posts with a similar error and still having the issue. </p>
<ol>
<li>added the usr/bin/env python</li>
<li>chmod a+x the mapper and reducer python code</li>
<li>put "" for the -mapper "python... | 1 | 1,433 |
XmlAttributeOverrides attaching an attribute to an element | <p>I have the following code which is throwing an error...</p>
<p>The error...</p>
<blockquote>
<p>For non-array types, you may use the following attributes: XmlAttribute, XmlText, XmlElement, or XmlAnyElement.</p>
</blockquote>
<p>The code (last line in Go method is throwing the exception)...</p>
<pre><code> ... | 1 | 1,033 |
How can I view the string sent from httppost? | <p>Below is a snippet of code that is trying to post to a PHP script on a local server. I'm transmitting data back to the server's MySQL table and as the amount of data is very small, I thought I'd use HttpClient to embed the data in the URL arguments.</p>
<p>However, even though the response I'm getting from the serv... | 1 | 1,308 |
Spark not taking log4j2.xml | <p>I am trying to use log4j2.xml instead of the default log4j logging of spark.</p>
<p>My Log4j2.xml is as below</p>
<pre><code><?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE log4j:configuration PUBLIC
"-//APACHE//DTD LOG4J 1.2//EN" "http://logging.apache.org/log4j/1.2/apidocs/org/apache/log4j/xml/doc-f... | 1 | 1,395 |
Unable to produce to Kafka topic that is running on WSL 2 from Windows | <p>I am running the latest Kafka on Ubuntu WSL2 successfully. I can start zookeeper, kafka server, create topics, console produce and console consume just fine from within the Ubuntu that I have running on the WSL. However, when I go into my Intellij on Windows and create a simple Java Producer it does not seem to be a... | 1 | 1,264 |
Why is JSON_TABLE() joining inconsistent? | <p>In MySQL 8, we can now use a JSON typed column and also use built-in functions like JSON_TABLE() but as I'm using in different scenarios sometimes I see results I did not expect.</p>
<blockquote>
<p>Docs for JSON_TABLE() : <a href="https://dev.mysql.com/doc/refman/8.0/en/json-table-functions.html" rel="nofollow n... | 1 | 1,826 |
javax.validation.ValidationException: HV000063: Unable to instantiate class | <p>I am running junit written in Custom JSR 303 Validation using ConstraintValidator. Something like this <a href="http://goldenpackagebyanuj.blogspot.in/2013/05/custom-jsr-303-validation-using-constraintValidator.html" rel="nofollow">example</a></p>
<p>My Validation test class:</p>
<pre><code>public class ProductV2V... | 1 | 3,194 |
"The specified type was not recognized" exception when trying to invoke a webservice call | <p>I'm trying to call a third party webservice using WSE 3.0 as a client in Visual Studio 2005.</p>
<p>The call works fine and I can see that I get a good response (I have tracing enabled), but apparently the xml parser chokes over it. I always get an <code>InvalidOperationException</code>:</p>
<blockquote>
<p>Ther... | 1 | 1,332 |
How to navigate to page based on condition in Flutter | <p>I want to navigate to a page based on a condition. When I select 'license' and press the <em>next</em> button it should redirect to license page. When I select 'unlicensed' and press <em>next</em> button it should redirect me to unlicensed page.</p>
<p>After selecting the 'licence'/'unlicensed' value from drop-down... | 1 | 2,516 |
AS3 Getting an Error #1009 on a Timer variable | <p>I'm having Error #1009: Cannot access a property or method of a null object reference. I'm not exactly sure how to solve this problem myself, I've traced to see if the object var enemySpawnTimer:Timer is actually null and it isn't. So I don't understand why I'm getting this error.</p>
<p>Anyway here is my code, i... | 1 | 1,208 |
How to add an hard disk to hadoop | <p>I installed Hadoop 2.4 on Ubuntu 14.04 and now I am trying to add an internal sata HD to the existing cluster.</p>
<p>I have mounted the new hd in /mnt/hadoop and assigned its ownership to the hadoop user </p>
<p>Then I tried to add it to the configuration file as follow:</p>
<pre><code><configuration>
&... | 1 | 1,052 |
How to solve this SQL query (header and detail)? | <p>I am working with SQL Server 2008 R2.</p>
<p>I have a SQL query question related to header and detail tables. I have a header table where I am storing location & department & week_start_date. I have a detail table where I am storing employee_id & job_code & work_date & hours. </p>
<p>I want to ... | 1 | 1,439 |
How to Keep row values in gridview after adding new row? | <p>I have a gridview with textboxes for item no, desc qty, cost, extncost. When itemno entered in the textbox desc and cost of the item will comes automatically by on textbox event change.
Here when i add a new row in the grid view, values of last entered value got disappears.
when i am checking using break point i can... | 1 | 5,420 |
NVD3 chart fails to calculate legend text length in Chrome, since Window.getComputedStyle does not return font-size correctly | <h2>Background Information</h2>
<p>I created an integration of NVD3 charts into Eclipse-RAP using its custom widget framework. The chart is generated into a div. The CSS is loaded dynamically by creating a link entry in javascript. I check if the CSS is already loaded by creating an SVG/text element, and I check if it... | 1 | 4,654 |
jasmine.clock().tick() does not work with $timeout and debounce, but works fine with setTimeout | <p>Below I have 3 functions that do exactly the same thing. Each one uses a different way of calling <code>setTimeout</code>, <code>delay1()</code> uses <code>setTimeout</code> directly, <code>delay2()</code> uses angularjs <code>$timeout</code> and <code>delay3()</code> uses lodash <code>debounce</code>. They all work... | 1 | 1,026 |
How to do Cascading Include in LiteDB | <p>here is example on how to store cross-referenced entities in LiteDB. LiteDB stores the cross-referenced entities perfectly fine, but problem comes when I am trying to find/load entities back. My goal is NOT ONLY the requested entity but also referenced ones. There is quick tutorial section "DbRef for cross reference... | 1 | 1,456 |
how to submit a formik form through mutation with ApolloClient? | <p>i have create a sample Formik form using antd. Now iam adding mutation with POST_MUTATION.How to submit form values through formik. Here i called handleSubmit with in the form.But it is not called?</p>
<pre><code> import React from 'react'
import { Formik, Field, Form } from 'formik';
import * as AntD from "antd";
... | 1 | 2,532 |
How to connect a Java client to Azure Cosmos db emulator on Windows 10, can't find cert | <p><strong>Problem</strong>: My demo code client unable to connect to the Azure Cosmos emulator on Windows 10.</p>
<p><strong>Steps</strong>:</p>
<ol>
<li><p>I installed the Cosmosdb emulator on Windows - looks fine</p>
</li>
<li><p>As per documentation, I started the Windows cert manage.msc. I selected private cert wi... | 1 | 1,992 |
Greasemonkey, Chrome and unsafeWindow.foo() | <p>I have the following anchor tag, which contains dynamically-generated arguments <code>arg1,...,arg5</code> to the JavaScript function <code>foo()</code>, which runs on the web site-side. There are several of these anchor tags throughout the page in question, with unique <code>id</code> values and <code>argN</code> v... | 1 | 1,860 |
sending HTTP request to PHP web server by using JSON, in ANDROID | <p>I hope all are doing well.
I am trying to add web services to am Android application, for this I have created PHP server. request and response is in JSON formate. and request type is "post"
this is my request formate:</p>
<pre><code>{"method_name":"checkLogin","body": {"username":"someone@some.com","password":"pa... | 1 | 2,005 |
Load Graph using Chart.js with Dynamic Data ASP.net MVC-Core | <p>I am new to ASP.net MVC using Bootstrap to load a graph with dynamic data coming from the database. I use this link as guide and tutorial in starting. <a href="https://canvasjs.com/docs/charts/integration/asp-net-mvc-charts/" rel="nofollow noreferrer">https://canvasjs.com/docs/charts/integration/asp-net-mvc-charts/<... | 1 | 1,834 |
Adding bootstrap to angular 12.1.4 - unable to resolve dependency tree | <p>I am trying to install bootstrap in a new angular app but it doesn't work</p>
<pre><code>ng add @ng-bootstrap/ng-bootstrap
</code></pre>
<p>I get this error below, what do I need to do to fix this?</p>
<pre><code>The package @ng-bootstrap/ng-bootstrap@10.0.0 will be installed and executed.
Would you like to procee... | 1 | 1,962 |
Federation requires either a User Pool or Identity Pool in config error - Amplify + Angular | <p>I'm having trouble finding information on how to associate my existing user pool with amplify using Angular. Currently when I click on my <strong>Login</strong> with Google button, I get this error:</p>
<p><a href="https://i.stack.imgur.com/LdGCt.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/LdG... | 1 | 2,245 |
How to fix "Duplicate class com.google.android.gms.common.api.internal.zza" error? | <p>I have updated Android Studio to 3.4 and <code>Admob</code> library from
<code>complie 'com.google.android.gms:play-services-ads:12.0.1'</code>
to
<code>implementation 'com.google.android.gms:play-services-ads:17.2.0'</code></p>
<p>After that I got duplicate class error when I tried to run app.</p>
<p>Error i got... | 1 | 2,478 |
Recursive backtracking in Java for solving a crossword | <p>I need to solve a crossword given the initial grid and the words <em>(words can be used more than once or not at all)</em>.</p>
<p>The initial grid looks like that:</p>
<pre><code>++_+++
+____+
___+__
+_++_+
+____+
++_+++
</code></pre>
<p>Here is an example word list:</p>
<pre><code>pain
nice
pal
id
</code></pre... | 1 | 1,438 |
Is there ANY way to save a graph object containing nodes and edges? | <p>I've tried using the standard serializing type things, stuff like:</p>
<pre><code> FileOutputStream f_out;
try {
f_out = new FileOutputStream("MAOS.data");
ObjectOutputStream obj_out = new ObjectOutputStream (f_out);
obj_out.writeObject(s);
obj_out.flush();
obj_out.close();
} catch ... | 1 | 1,551 |
accessing android jar in unity3d | <p>I have an android project for camera flashlight, which when deployed from eclipse works fine. I am trying to access the flashlight function from my C# code in unity3d but it doesn't work. To verify if I am calling the android method correctly, I created a string function in the same activity and it is returning the ... | 1 | 1,756 |
Spring boot adding and removing singleton at runtime | <p>With reference with below links, i want my spring boot app to replace bean at runtime in applicationcontext.</p>
<p><a href="https://stackoverflow.com/a/23671942/3349753">Add Bean</a>
<a href="https://stackoverflow.com/a/6856036/3349753">Remove Bean</a></p>
<p>Below is my try,</p>
<p><strong>MainClass.java</stron... | 1 | 2,442 |
Build a WS with Spring | <p>I need to create a WS with Spring 3.0.4.RELEASE to run in a Tomcat with Axis2. I'm following this doc: <a href="http://static.springsource.org/spring/docs/3.0.x/spring-framework-reference/html/remoting.html#remoting-web-services-jaxws-export-ri" rel="nofollow">http://static.springsource.org/spring/docs/3.0.x/spring-... | 1 | 1,324 |
Attempt to invoke virtual method [Null object reference] | <p>I'm spending the last 5 days trying solve this problem. I really do not have any idea about how to solve it. I'm getting <code>Attempt to invoke virtual method 'android.view.Window$Callback android.view.Window.getCallback()' on a null object reference</code>. Check my code:</p>
<p><strong>RecyclerView.java</strong>... | 1 | 6,352 |
ORIGINAL EXCEPTION: No provider for FormGroup | <p>I have a simple form that is suppose to display error messages</p>
<h3>errorm-messages.component</h3>
<pre><code>import { Component, OnInit, Input } from '@angular/core'
import { NgIf } from '@angular/common'
import {REACTIVE_FORM_DIRECTIVES, FormGroup } from '@angular/forms'
@Component(
{
moduleId: mod... | 1 | 3,415 |
Reading file with istream | <p>I am working on a project which involves polymorphism and inheritance.</p>
<p>lets assume that the hierarchy of the classes used in the project are:</p>
<pre><code>Media ----> Book ----> MediaRegistry
</code></pre>
<p>and the declaration of each class are as follows: (the classes have been narrowed down to... | 1 | 1,039 |
webview.URL?.absoluteString returning nil | <p>my <code>webview.URL?.absoluteURL.absoluteString</code> is returning nil. This is a <code>WKWebview</code>, not a <code>UIWebVIew</code>, so <code>webview.request?.URL?.absoluteString</code> will not work for this. I have also tried <code>webview.URL?.absoluteString</code>.</p>
<p>The URL is set in another UIViewCo... | 1 | 1,800 |
Why I am getting Class "SoapClient' not found in..etc" | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="https://stackoverflow.com/questions/6760716/wamp-stack-php-fatal-error-class-soapclient-not-found">WAMP Stack PHP “Fatal error: Class ‘SoapClient’ not found”</a> </p>
</blockquote>
<p>I downloaded a library from this site <a href="https://github.... | 1 | 5,607 |
How to get the Altbeacon Example working | <p>This is my first try to make an app with beacons. Im using the AltBeacon Library. All i want now is to be able to receive the UUID from a beacon.
For this purpose i wanted to follow the Altbeacon example. </p>
<p><a href="https://altbeacon.github.io/android-beacon-library/samples.html" rel="nofollow">https://altbea... | 1 | 1,328 |
How to create a user defined function that returns a table in a DB2 module? | <p>I am trying to create a user-defined function that returns a table in DB2. Here is what I have so far.</p>
<p>This is a table that I use:</p>
<pre><code>CREATE TABLE "CORPDATA"."EMPLOYEE" (
"EMPNO" CHAR(6) NOT NULL,
"FIRSTNME" VARCHAR(12) NOT NULL,
"MIDINIT" CHAR(1) NOT NULL,
"LASTNAME" VARCHAR(... | 1 | 1,518 |
ContextLoader: Context initialization failed | <p>I'm trying to track down the reason why a portion of my application stopped working all of a sudden. I'm running Spring 1 with Weblogic 8.1.4.0 and Hibernate. The report generator is the part that has failed, first on our production server, then on the dev and qa servers on Friday while I was experimenting. I made n... | 1 | 1,880 |
TypeError: dispatch is not a function. In React stateless component | <p>i'm just getting into React-Redux. I successfully connected a few components to the store with <code>mapDispatchToProps</code> and <code>mapStateToProps</code>, so my setup seems to be correct. Now i have a stateless component with a button that should dispatch an action:</p>
<pre><code>import React from 'react';
i... | 1 | 1,651 |
The server cannot or will not process the request due to something that is perceived to be a client error | <blockquote>
<p>I am trying to upload a file using multipart</p>
</blockquote>
<p><strong>Controller</strong></p>
<pre><code>// update user details
@RequestMapping(value = "/profile/update", method = RequestMethod.POST)
public ModelAndView updateProfile(@ModelAttribute User user, HttpServletRequest request)... | 1 | 2,249 |
Select back a comma delimited list grouped by an ID | <p>I've got the following tables:</p>
<pre><code>EntryTag
---------
EntryID
TagID
</code></pre>
<p>Example putput (EntryID, TagID):</p>
<pre><code>1 2
1 4
1 5
2 3
2 4
2 5
etc...
</code></pre>
<p>and</p>
<pre><code>Tags
----
TagID
Name
</code></pre>
<p>example output:</p>
<pre><code>1 peas
2 corn
3 carrots
...etc... | 1 | 1,651 |
Tomcat 7 server is not able to start, when i am trying to run spring security hello world example | <pre><code>Feb 21, 2013 6:39:08 AM org.apache.catalina.core.AprLifecycleListener init
INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: D:\JDK6.0\bin;.;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;D:/JDK6.0/bin/... | 1 | 3,515 |
how to process json data through an .each loop into html table | <p>I am making an ajax get request that displays json data in a html table. I know how to do this with javascript, so I thought I'd try it with jquery. There is a problem in my <code>.each</code> loop. I am vague on how the arguments <code>(key, object)</code> process more than one key value pair in each position and... | 1 | 1,101 |
Cordova, navigator.camera.getPicture | <p>I'm following the full example present on this location <a href="https://github.com/apache/cordova-docs/blob/master/docs/en/edge/cordova/camera/camera.getPicture.md" rel="nofollow">Full example</a>, the quick example too... But the problem is that I can take the picture, although when I click on button to confirm my... | 1 | 2,112 |
How to run existing ruby on rails project in linux | <p>I have an existing ruby on rails project on my desktop (Moovit). now i want to run this existing project on my linux. but i can't seem to run it. i dont know if im doing it right. i transferred it to my root folder then i run this code <code>rails new Moovit -s</code> i dont know if this is correct? It's not working... | 1 | 2,968 |
Delete a value from a Laravel 5.4 database | <p>I'm trying to delete values from my database in Laravel 5.4. Here is my code:</p>
<p><strong>UserController.php:</strong></p>
<pre><code>public function destroy($id)
{
$user = User::find($id);
$user->delete();
return redirect()->route('user.index');
}
</code></pre>
<p><strong>View.blade.php</strong></p>... | 1 | 1,026 |
Exe file created using pyinstaller shuts immediately when executing | <p>I've tried to create an executable file using pyinstaller (python 3.6) I've tried to to do this on windows 10 using(also python 3.5) py2exe, and freeze(something), but only pyinstaller was "brave" enough to create an exe file.</p>
<p>When I was opening the file.py through command prompt - no problem occured. But wh... | 1 | 1,048 |
Android - Wrong activity sometimes starts | <p>I have an Android App with a number of activities. The wrong activity is being started sometimes.</p>
<p>Normally, an Application subclass starts, then start activity (<strong>StartAct</strong>... android:name="android.intent.action.MAIN", android:name="android.intent.category.LAUNCHER")
does some work and then lau... | 1 | 1,519 |
Json response is very slow android | <p>I'm writing an Android application which will occasionally need to download a json string of around 1MB and containing around 1000 elements, and parse each of these into an SQLite database, which I use to populate a ListActivity.</p>
<p>Even though the downloading and parsing isn't something that needs to be done o... | 1 | 4,935 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.