title stringlengths 13 150 | body stringlengths 749 64.2k | label int64 0 3 | token_count int64 1.02k 28.5k |
|---|---|---|---|
Refresh my list with Handlebars.js | <p>I am using iscroll and handlebars.js creating an infinite scroll list.</p>
<p>My template:</p>
<pre><code> <div id='iscrollwrapper'>
<div id="scroller">
<ul class="media-list">
{{#each items}}
<li class="media well well-sm">
<a class="... | 2 | 1,732 |
Late binding to avoid "User defined type not defined" error | <p>In Word 2010 macro VBA, i set </p>
<pre><code>Set objXML = New MSXML2.DOMDocument30
</code></pre>
<p>to get xml type Word.officeUI file.</p>
<p>But when i call the sub that handling Word.officeUI file </p>
<pre><code>user defined type not defined
</code></pre>
<p>error rised.</p>
<p>I don't want to add any nec... | 2 | 2,180 |
Removing stop words is not tokenizing correctly | <p>I using java program to remove stop words in a word file. But my stop word removal not removing special characters. And I want to remove all the stop words and other unnecessary words,special characters and numbers from the file.</p>
<p>How to improve this code</p>
<pre><code> { ... | 2 | 2,384 |
Use UWP UI in WPF Application | <p>I have an application which runs in the background, but i wanted to add a Window with the UWP API.</p>
<p>After adding the References to:</p>
<pre><code>Windows.UI
Windows.UI.Xaml
</code></pre>
<p>I tried to start the UWP application with:</p>
<pre><code>Windows.UI.Xaml.Application.Start(p => new UWPApp(); );... | 2 | 1,526 |
System.NullReferenceException: Object reference not set to an instance of an object. in vb.net | <p>this code on vb.net is giving me this error :</p>
<blockquote>
<p>Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.</p>
<p>Exception Details: System.NullReferenceExcepti... | 2 | 1,138 |
Force YARN to deploy Spark tasks across all slaves | <p>I've been deploying the SparkPi example on an 8-node cluster. It would appear that the tasks associated with the example are not being deployed to all nodes in the cluster, even though the cluster is under-utilized (no other jobs running).</p>
<p>Here's how I am starting the SparkPi example:</p>
<pre><code>spark-s... | 2 | 1,604 |
Scala Play: object index is not a member of package views.html | <p>I'm getting </p>
<pre><code>object index is not a member of package views.html
</code></pre>
<p>but unlike all the other threads opened on this subject, my issue seems totally unrelated to the IDE. I get this issue from the command line (no IDE) no matter how much I try to clean and rebuild by running</p>
<pre><c... | 2 | 2,086 |
Strange behavior of toolbox compilation when referencing an inner static java class | <p>Supposed I have the following java class:</p>
<pre><code>package com.test;
public class Outer {
public static class Inner { public static final String VAL = "Inner"; }
}
</code></pre>
<p>I can reference the <code>VAL</code> constant from scala code just as you would expect but when I try compiling code that re... | 2 | 5,353 |
how to disable automatic sign-in after sign-up in Devise | <p>I have struggling with this for hours now. I have looked at many solutions online but none seem to be working for me. </p>
<p>I have a class, Admin, that registers Users. Users can not sign up themselves. However, after an Admin creates a User, Devise automatically creates a session for that user, effectively havin... | 2 | 1,324 |
onKeyDown not working in my code for fragment | <p>I try to make a alert dialog box when anyone press back button, incase of fragment. I try it several way but I am not able to do it. Is there any way to do it inside fragment. </p>
<p><a href="https://i.stack.imgur.com/m9StC.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/m9StC.png" alt="enter im... | 2 | 1,201 |
Can't resolve "onRequestPermissionsResult" | <p>I am a Game developer and not good at android. I want to make a library class that "extends Service" which sends the GPS location.</p>
<p>While I keep <code>onRequestPermissionsResult</code> in my exported google project in <code>"MainActivity"</code>, I don't get an issue. However, when I try to put it in my libra... | 2 | 2,885 |
Subsetting a reactive object in Shiny | <p>I am in the process of learning Shiny and developing a simple app. The start of the program will allow a user to import a CSV file and then apply a filter variable(s) if needed. They will only be able to use factors as filter variables at this stage. I apply the filters on an iterative basis. So, one can apply a... | 2 | 1,710 |
IndexError: The shape of the mask [...] at index 0 does not match the shape of the indexed tensor [...] at index 0 | <p>I am trying to use Torch for Label Propagation.
I have a dataframe that looks like</p>
<pre><code>ID Target Weight Label
1 12 0.4 1
2 24 0.1 0
4 13 0.5 1
4 12 0.3 1
12 1 0.1 1
12 4 0.4 1
13 4 0.2 1
1... | 2 | 2,629 |
Search Dialogue not activated when onSearchRequested is called (Android) | <p>Beginner working on an android app and I'm trying to start a searchable activity when the onSearchRequested method is called after a button push in the main activity. Currently, when the button is pressed, nothing happens. </p>
<p>Here's MainActivity.Java: </p>
<pre><code>package com.example.activity2;
import andr... | 2 | 2,806 |
SCALA: executing complete .sql file | <p>I have a .sql script files and need to execute complete .sql file at once, I have found many related answers, where programmer reads file and execute query one by one. </p>
<p>I require to run .sql file all at-once, like picking up the file and executing in within SCALA.</p>
<p>Currently I am doing it with followi... | 2 | 5,087 |
Is there a way to bypass PHPSESSID and __cfduid cookies while using proxies and fake_useragent in scrapy? | <pre><code>
import scrapy
from scrapy import Request
from NPM.items import NPMItem
from scrapy.loader import ItemLoader
from scrapy.loader.processors import TakeFirst, Identity, MapCompose, Join, Compose
import re
import cfscrape
from scrapy_splash import SplashRequest
# import requests
# session=requests.Session()
# ... | 2 | 2,034 |
Get data from to field in new activity in CRM 2011 | <p>I create a new plugin for dynamic CRM 2011 for a costume Activity Entity.</p>
<p>this new activity have "to" field like Email and some other activities. </p>
<p>plugin are working on Create and Update steps for activity.</p>
<p>my problem is when i want to get <code>"to"</code> field value the below line of code ... | 2 | 1,379 |
Transform HQL into Criteria | <p>I have a query in HQL which fully works. However, I'd like to have it expressed in the Criteria form, which is easier to read and maintain.</p>
<p>This is the scenario: I have Workers, People and Payments. A worker is a Person plus a Job Type (one person, in this app, can be two workers with distinct Job Types at t... | 2 | 1,416 |
How to validate XML file against DTD and XML schema in ASP.NET MVC4? | <p>I am creating XML file from SQL SERVER database. This saves XML file into computer:</p>
<pre><code>List<Product> prList = db.Product.ToList();
if (prList.Count > 0)
{
var xEle = new XElement("Products",
from product in prList
select new XElement("... | 2 | 2,315 |
Sort checkboxes based on their values (in specific order) | <p>I have checkboxes that are placed in a particular order by a wordpress plugin.</p>
<p>The generated HTML code looks like this:</p>
<pre><code><div class="wpgmza_filter_container" id="wpgmza_filter_container_5">
<div class="wpgmza_cat_checkbox_holder wpgmza_cat_checkbox_5">
<div c... | 2 | 1,466 |
XMLHTTPRequest ReadyState issue in IE | <p>From my UI thread, I am trying to start a worker thread to do XMLHTTPRequest. It works perfectly in Chrome, but in IE 10 its not working.
In IE its always giving me ReadyState =1, Status=0 and stopping. In chrome the code works perfectly and as expected. Can anybody advise me please what might be wrong here related ... | 2 | 1,113 |
Gradle GWT multiproject, compileGwt not finding subproject classpath | <p>I have a multiproject GWt Gradle where the compileGwt from gradle does not find a subproject but if I use the standard Eclipse GWT plugin it compiles fine</p>
<p>When building through gradle I get the following error</p>
<pre><code>:main:compileGwt
Loading inherited module 'com.stratebo.gwt.client.main.MainPage'
L... | 2 | 1,974 |
How to understand `MonadUnliftIO`'s requirement of "no stateful monads"? | <p>I've looked over <a href="https://www.fpcomplete.com/blog/2017/06/tale-of-two-brackets" rel="noreferrer">https://www.fpcomplete.com/blog/2017/06/tale-of-two-brackets</a>, though skimming some parts, and I still don't quite understand the core issue "<code>StateT</code> is bad, <code>IO</code> is OK", other than vagu... | 2 | 1,598 |
Problems to extract text from PDF for certain pdfs only C# | <p>I need to extract some data from a PDF file.
I'm using the <strong><code>iTextSharp</code></strong> to do that. </p>
<p>I'm using this code which I founded on the net:</p>
<pre><code>using System;
using System.IO;
using iTextSharp.text.pdf;
namespace PdfToText
{
/// <summary>
/// Parses a PDF file and extr... | 2 | 6,213 |
Scrapy is not entering the parse function | <p>I am running the spider below, but it is not entering the parse method, I don't know why, Someone please help.</p>
<p>My code is below</p>
<pre><code> from scrapy.item import Item, Field
from scrapy.selector import Selector
from scrapy.spider import BaseSpider
from scrapy.selector import HtmlXPathSe... | 2 | 1,511 |
Rails how to attach object creation to a user session for user_id | <p>I'm new to rails. I'm working on a simple app for creating and sharing collection with friends. i have Users, who have items. These items belong to categories, which it turn have subcategories. Users can place comments on items</p>
<p>User has_many items, Item belongs_to user</p>
<p>Category has_many items, Items ... | 2 | 1,511 |
Jetpack Compose Coil Preload | <p>I want to load the image on the spash screen so that I can set the request result to the background on other screens using the coil, but I have not been able to fully realize this in the coil. How can I save the result of my coil request to Cahce and use this result on other screens?</p>
<p>Splash Screen</p>
<pre><c... | 2 | 1,082 |
Why does JVM randomly crashes on Windows Server 2012 due to NTDLL.DLL? | <p>My production server occasionaly crashes the java.exe sevice and therefore myApplication Server Glassfish 4.1. It happens randomly and so far I couldn't find a reason to explain such behavior.</p>
<p>Checking Win Server 2012 Event Viewer, it is stated that the Application Error is due to conflict with NTDLL.DLL.</p... | 2 | 2,334 |
codeigniter rewrite rule leads to infinite loop | <p>I'm using CodeIgniter, and I'm getting a 500 server error when I try to visit my page.
(<a href="https://test_page.com" rel="nofollow">https://test_page.com</a>) which redirects to
(<a href="https://test_page.com/auth/login" rel="nofollow">https://test_page.com/auth/login</a>).
Notice how
(<a href="https://test_pag... | 2 | 1,030 |
Connecting Azure to Android Studios | <p>I am trying to connect Azure to Android Studios. I have followed the tutorial on Azure and created a mobile service. It then gave me some code to add to my app so that they are connected. However, the code is throwing an exception which I cannot figure out. I have searched the internet from head to toe and cannot fi... | 2 | 1,195 |
terminating with uncaught exception of type NSException | <p>i am new to IOS and Objective C.</p>
<p>I have an issue that i am not able to solve.
I'am working on a branch that should be working since i discarded all changes to a stable version.</p>
<p>Can someone help me ?</p>
<p><strong>UPDATED LOG</strong></p>
<pre><code>2015-01-20 15:17:26.152 Fizzer[20954:765835] *** ... | 2 | 2,805 |
Python lambda function to check If my S3 Buckets are Public & Make Them Private | <p>I wrote a <code>Python lambda</code> function to check If my <code>S3</code> Buckets are Public & Make them Private in my account. But i keep on getting an error:</p>
<blockquote>
<p>({
"errorMessage": "'S3' object has no attribute 'put_bucket_access_block'",
"errorType": "AttributeError",
"stackT... | 2 | 1,538 |
Indexed list for table view shows dot iOS 5+ | <p>In my application I am displaying contacts in table view with indexed list. I am displaying indexed list as follow:</p>
<pre><code> static NSString *letters = @"abcdefghijklmnopqrstuvwxyz#";
-(void)getAllUserInfoUsingBlock:(lclResultsArray) block
{
dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORI... | 2 | 1,308 |
Java Binary Trees/Visitor Pattern | <p>So I can really get this I was wondering if anyone could help me out, the object of this program is to use the visitor pattern to generate a list of strings from the name of people in a given binary tree, if not really sure how to go about using an append function to do so. How would I append the person with its par... | 2 | 1,055 |
TypeScript / Webpack (Tutorial fail) typings errors on node_modules | <p>I am trying to get compiled TypeScript code (.tsx -> .js) to package up with Webpack so I can do some front-end work and run the code in the browser. (I actually have some more requirements, like needing to share some front-end (browser) TypeScript code with the Node.js server and running all of this stuff inside of... | 2 | 7,602 |
Docker build fail: sharp Use with musl 1.2.2 requires manual installation of libvips | <p>I am running this command
<code>docker build -t project</code>
and on step 13 the installation fails
here is docker file contents</p>
<pre><code>### Base
FROM node:12-alpine as base
ENV NODE_ENV=production
RUN apk update --no-cache
RUN mkdir /app && chown -R node:node /app
USER node
WORKDIR /app
# Copy ba... | 2 | 1,198 |
Axios/vue pass headers to allow cross origin for certain domain | <p>I am using vue and axios and I am trying to make a global form request. Here's the problem so far everything is good however I do not know exactly where to setup cross-origin in that code. My back end has it definetely enabled and I just need to set it axios now.</p>
<p>Here's form:</p>
<pre><code> data() {
r... | 2 | 1,350 |
NullPointerException : Initialization of bean failed | <p>I am getting following error when I execute grails run-app, I am trying to run my grails application locally but unable to do so</p>
<p>Following is the error from Stacktrace</p>
<h2>Stacktrace</h2>
<pre><code>2017-01-25T06:01:32.640+05:00 uptime="38155", level="ERROR", class="org.codehaus.groovy.grails.web.conte... | 2 | 5,751 |
why I can't get result back in @Async method ? ("IllegalStateException: EntityManagerFactory is closed" is thrown) | <p>I am trying to write a simple Spring Boot Program and practice @Async. I want to fetch all records of <code>teacher</code> entity asynchronously.</p>
<p>my database access objects:</p>
<pre><code>public interface TeacherService {
List<Teacher> findAll(Pageable pageable);
}
</code></pre>
<p>how it is implem... | 2 | 6,059 |
Sitecore 404 page from item | <p>Getting Sitecore to respond with a 404 error code, <a href="http://www.partechit.nl/en/blog/2012/11/return-404-status-code-when-itemnotfound-page-is-loaded" rel="nofollow">this blog</a> seems to be the most referenced, where a processor is added to the <code>httpRequestBegin</code> pipeline and the <code>StatusCode<... | 2 | 1,211 |
python code to start ntp service on multiple ESXi hosts and VMs | <p>I have been writing python script to start ntp service on multiple ESXi hosts and VMs and need to know if this approach is right.</p>
<ol>
<li><p>Script reads the ESXi hosts/Virtual machines ipaddress, username and password from config file.</p></li>
<li><p>It then pings them and checks the current status of ntp af... | 2 | 2,047 |
Windows Media Foundation - Capture Camera video as raw RBG32 | <p>I am stacking with this code for more that a week :)</p>
<p>I've changed the sample code included with Windows SDK (<code>CWavSink</code>) which is a custom wave sink to record a PCM data to wav file.</p>
<p>I've made some changes to use that sample as a video sink to record the video stream from a web cam on Wind... | 2 | 3,730 |
Jest error with css files | <p>I am trying to get my first Jest Test to pass with React and Typescript.</p>
<p>I am getting the following error:</p>
<pre><code>({"Object.<anonymous>":function(module,exports,require,__dirname,__filename,global,jest){.App {
... | 2 | 1,567 |
Subsetting a data set inside for loop | <p>I'm trying to loop through a string vector called iter in order to subset a data frame in R. I would like to filter that data frame using i iter value in the loop and assign it to a variable using iter value i.</p>
<pre><code>iter<- c(COD1,COD2,COD3)
for ( i in iter) {
assign(i, subset(out,TestId==pas... | 2 | 2,221 |
Change the Border.BorderBrush value with C# Windows Phone 7.1 | <p>I want to change the color of borders in a windows phone app depending on the currently selected theme. I have wrote the following but its not working. It is always white color border irrespective of the theme selected.</p>
<p>Here is the xaml code used for the app(contacts.xaml).</p>
<p>[XAML CODE]</p>
<pre><cod... | 2 | 1,359 |
Custom RequestMappingHandlerMapping causes an error with Swagger | <p>I have created a custom <code>RequestMappingHandlerMapping</code> with the latest version of Spring as follows so I can define a custom version annotation.</p>
<p>WebConfiguration,</p>
<pre><code>@Configuration
@ConditionalOnClass({ ApiVersionedResource.class })
public class WebConfiguration {
@Bean
@Pri... | 2 | 2,921 |
C++ basic program segmentation fault | <p>here is my CPP program </p>
<pre><code>#include <iostream>
int main(int argc, char *argv[]){
return 0;
}
</code></pre>
<p>compiling and executing this, causes a seg fault:</p>
<pre><code>[18:08 ~] > g++ test.cpp
[18:09 ~] > ./a.out
Segmentation fault
</code></pre>
<p>Does anybody have an idea a... | 2 | 1,320 |
DHL ship label creation through PHP cUrl is not working | <p>I want to create shipping label (in pdf) via DHL. So, I have created the required xml format and post the same through PHP cUrl.</p>
<pre><code>$message_ref = '';
for ($i=0; $i< 30; $i++)
{
$message_ref .= rand(0, 9);
}
$message_time = date("Y-m-d") . "T" . date("H:i:sP");
</code></pre>
<p>Below is the ... | 2 | 2,394 |
make voiceXML to read the result returned by the server | <p>I am new in voiceXML and I am wondering how to read a value return by the server after post. I want voiceXML to read the server's response. <a href="http://help.voxeo.com/go/help/xml.vxml.elements.submit" rel="noreferrer">According to voiceXML documentation</a>, I understand that the result should be in XML. </p>
... | 2 | 1,731 |
gdk_screen_get_default() returns null | <p>Please help with this beginner's program for fetching gdk screen attributes. I have a small C++ program to find out the connected display units. I am using c++ on Linux Debian. <code>gdk_screen_get_default()</code> doesn't return <code>Screen</code> object. If I don't check for screen object then the following error... | 2 | 1,650 |
C MySQL Connector - Error 2014 - Commands out of sync when using CALL | <p>We are working on an assignment.
We are currently trying to call a remote procedure in a MySQL database, but we're getting a 2014 Error and we can't figure out why. We should note that the call is successful and we get the results we expect to get, the problem is in the call to <code>mysql_stmt_close(stmt)</code>.
... | 2 | 1,186 |
MySQL SELECT queries without LIMIT | <p>I am doing a course on Relational Databases, MySQL to be more especific. We need to create some SELECT queries for a project. The project is related to music. It has tables to represent musicians (musician), bands (band) and the musician ability to do a certain task, like singing or playing the guitar (act). </p>
<... | 2 | 1,169 |
Unity Key Press to Start and Stop | <p>I'm not sure what I'm missing in my code here, could someone help? I'm wanting to press Space to start the Blink function repeating (plus some other things, obviously), then press Space again to Stop and continue on to a different State. With the code below, pressing Space will start the Blink function repeating, bu... | 2 | 2,472 |
When mule-soap exception occurred, how do I send my own fault code and fault string rather than generic soap fault message? | <p>I am making SOAP call from Mule. I am using default-exception-strategy for catching exception.
When exception occurred, how do I send my own fault code and fault string rather than generic soap fault message? Thanks</p>
<p>Here is the snippet of mule xml, java code, actual output and expected output</p>
<h1>Mule ... | 2 | 1,548 |
phpseclib with ssh2 and telnet command on the router | <p>I'm trying to access a Cisco router within a network but I'm not getting it using phpseclib library</p>
<pre><code>$login = "guest";
$pw = "123456";
$ssh = new Net_SSH2("11.222.333.44");
if(!$ssh->login($login, $pw)){ exit("FAILED !!!!")}
//That I am connected to the network
$ssh->exec("telnet 555.66.77.8");... | 2 | 2,168 |
Jquery multilevel accordion using UL | <p>I am trying to create a multilevel accordion using nested unordered list.</p>
<p>What I am trying to accomplish:</p>
<ul>
<li><p>Show only the "active" ul (other
remain hidden)</p></li>
<li><p>When there is a nested ul - toggle
only the nested ul (2222 -> 2.1)</p></li>
</ul>
<p>Full code here: <a href="http://pas... | 2 | 1,222 |
PNGException "crc corruption" when attempting to create ImageIcon objects from ZIP archive | <p>I've got a ZIP file containing a number of PNG images that I am trying to load into my Java application as ImageIcon resources directly from the archive. Here's my code:</p>
<pre><code>import java.io.*;
import java.util.Enumeration;
import java.util.zip.*;
import javax.swing.ImageIcon;
public class Test {
public... | 2 | 1,113 |
How to pass a value from android to php web service and retrieve it? | <p>I'm trying to pass a value to my php webservice. I already use this code for pass the "name" value :</p>
<pre><code> private class MyAsyncTask extends AsyncTask<String, Void, Void> {
protected Void doInBackground (String... params)
{
Intent intent = getIntent();
String name = ... | 2 | 1,593 |
how to get image id of current flipper View and to set that image to user background? | <p>This code is working fine but when i try to set current image to user phone background i geting error. Can't figure out how to set a resources from the current image on the screen. how to set this line here </p>
<pre><code>myWallpaperManager.setResource(vf.indexOfChild(vf.getCurrentView()));
</code></pre>... | 2 | 1,556 |
node-sass does not compile scss file using npm run css command | <p>I am using <code>npm</code> as build tool. I have following line in my <code>package.json</code> file.</p>
<pre><code>"scripts": {
"css": "node-sass --include ./node_module --include-scss --compress ./src/css/main.scss ./dist/css/style.css",
}
</code></pre>
<p>When I run <code>npm run css</code> then it shows ... | 2 | 1,358 |
Google Maps API V3 not showing map | <p>Okay so I have a PHP script which handles file uploads, KML files specifically, extracts the center point and the location of the uploaded file, saves these details in text files, and then loads another page via "header". This other page then uses AJAX calls to set variable names as gathered from the text files, for... | 2 | 2,672 |
Java - NotSerializableException (saving an object) | <p>So today I am working on a plugin for a Minecraft Server. For this, i created a "Track" class which represents a racing track. In order to storage all existing tracks with their data I want save the whole track object which makes everything easier for me. In conclusion, I implemented Serializable to my Track class t... | 2 | 1,500 |
recv() failed (104: Connection reset by peer) while waiting for request, client: 100.109.209.0, server: 0.0.0.0:80 | <p>I have one confusion about the nginx logs as below, it occurs very frequently, I am not sure if this has some potential issue or not. </p>
<p>nginx and php-fpm versions:</p>
<pre><code>nginx version: nginx/1.6.3
PHP 7.0.11 (fpm-fcgi) (built: Sep 17 2016 12:55:16)
Copyright (c) 1997-2016 The PHP Group
Zend Engine ... | 2 | 3,922 |
How do i add server side paging for jqGrid if data comes from a separate ajax call?[Trirand JQgrid 4.6] | <p>I need to generate a <strong>jqGrid</strong> structure that similar to <strong>Grouped Header Row Config</strong> example in trirand JqGrid 4.6 demo website. </p>
<p><a href="https://i.stack.imgur.com/gnsTV.jpg" rel="nofollow"><img src="https://i.stack.imgur.com/gnsTV.jpg" alt="enter image description here"></a></p... | 2 | 2,316 |
Spark HBase Connection Timeout / Hang | <p>I'm trying to test reads and writes to hbase on my local machine. </p>
<p>I'm using the cloudera quick start docker image to host hbase / hadoop / zookeeper etc. </p>
<p>I have the following code: </p>
<pre><code> val conf = new SparkConf().setAppName("Database Benchmark")
val sparkContext = new S... | 2 | 3,515 |
Font-awesome not show in Google App Engine | <p>I have a problem in using font-awesome entire app engine.</p>
<p>by Google Chrome Developer Console I found the following errors:</p>
<p>Resource interpreted as Font but Transferred with MIME type text / html: "<a href="http://localhost:8080/wp-content/plugins/js_composer/assets/lib/font-awesome/fonts/fontawesome-... | 2 | 1,067 |
expand dropdown menu with uikit | <p>This code is written for navbar using Uikit Css Framework.In navbar there is one dropdown list. when i clicked dropdown list it only show the content of middle section.but i want to show that dropdown list content with full container.
What would be the best possible method to show the dropdown list with full conta... | 2 | 3,292 |
How can i set data in state in reactjs | <p>Since i am new in react,i used filter and map to select array from array list.I got my output as expected.Now i want to set this.state.search by rendered value.How can i do it?
Here are the pictures of my code below:</p>
<pre><code>import React, { Component } from 'react';
import { NativeSelect } from '@material-ui... | 2 | 3,298 |
NSJSONSerialization bug? | <p>Been trying to debug a crash for the past 10 hours and finally, I simplified it to this code:</p>
<pre><code>NSError *error = nil;
NSData *data = [NSData dataWithContentsOfFile:[[NSBundle mainBundle] pathForResource:@"payload" ofType:@"txt"]];
id obj = [NSJSONSerialization JSONObjectWithData:data options:NSJSONRead... | 2 | 1,092 |
irc chat in C programming | <p>I wrote two programs for a simple IRC chat program in C. This is my first attempt at socket programming. The read program works just fine. The write program technically works but with one minor hitch. It will ping timeout if waiting on fgets to long without input. How do I send PONG if the server sends ping and wait... | 2 | 1,394 |
Environment Munging in Anaconda, PyCharm, and Jupyter Notebooks? No such file or directory: 'conda' | <p>Regular PyCharm, Anaconda and Jupyter user, but for the first time I'm starting a project that would benefit with having them all play together:</p>
<p>I have a correctly configured Anaconda environment running within PyCharm, however when I try to launch <code>ipynb</code> notebooks (that work perfectly well in <c... | 2 | 1,287 |
Laravel 8 - Facade Class Not Found | <p>I have been struggling with this after trying to replicate simple tutorials to get started a new project.</p>
<p>Folllowing the tutorials here: <a href="https://medium.com/@cmanish049/creating-custom-facades-in-laravel-b9b72d573752" rel="nofollow noreferrer">https://medium.com/@cmanish049/creating-custom-facades-in-... | 2 | 1,026 |
turn a firebase database value into an Int | <p>In my app people can make bets on which team they think will win. When they go to make a bet a couple of things should be uploaded to the database. First the username of the person making the bet. Which bet this is( is it bet one bet two bet three) and it should show what team the bet is for.</p>
<p>The problem I h... | 2 | 2,630 |
jsf 1.2 getting wrong viewID during restored view phase | <p>In my project that I am using the following framework: sun jsf 1.2, spring 2.5, RichFaces ajax4faces, apache orchestra and Facelets.</p>
<p>I developed my own PhaseListener Implementation to trap incoming pages and handling init preproces and prerender events through a Java interface.</p>
<p>When I call a page fro... | 2 | 2,592 |
How can I convert a json string to a bean list? | <p>I get a JsonString:</p>
<pre><code>{
"student[0].firstName":"asdf",
"student[0].lastName":"sfd",
"student[0].gender":"1",
"student[0].foods":[
"Steak",
"Pizza"
],
"student[0].quote":"Enter your favorite quote!",
"student[0].education":"Jr.High",
"student[0].tOfD":"Day",
"stude... | 2 | 1,727 |
Is this an MVC anti-pattern? | <p>I’m very new to any kind of .NET web development (thus far I’ve worked primarily with Winforms and services.) I’ve started to work on an existing MVC3 project with two other developers. I’m conceptually familiar with MVC, and am trying to catch up on how it’s used in this project.</p>
<p>We have an AccountDto class... | 2 | 1,198 |
No response from intent to prompt user to set default handler for SMS | <p>I'm currently having trouble getting the app to send the user a dialogue to set the default handler for SMS on API 29. </p>
<p>I initially followed <a href="https://developer.android.com/guide/topics/permissions/default-handlers" rel="nofollow noreferrer">https://developer.android.com/guide/topics/permissions/defau... | 2 | 2,524 |
Expanding specific sections of a pivot table in Excel via VBA and/or jumping to original spot | <blockquote>
<p>I have a pivot table segmented by years, quarters and months. If I try
to expand a quarter for 2015, however, the corresponding quarter in
all other years are shown as well. How can I expand only one quarter
for one year?
<br />- <a href="https://superuser.com/questions/1049881/expanding-specific-sectio... | 2 | 1,492 |
function gives me TypeError: Cannot read property 'resize' of undefined | <p>I'm using a javascript function inside reactjs.</p>
<p>I import like this:</p>
<pre><code>import { ImageTools } from './resize_javascript';
</code></pre>
<p>and I use like this:</p>
<pre><code>upload = (image) => {
ImageTools.resize(image, {
width: 320, // maximum width
height: 240 // maxi... | 2 | 3,605 |
Decoder init failed playing a list of videos on Flutter with Chewie | <p>I'm developing a Flutter app to show sequentially videos downloaded from internet. I'm using the Chewie component to show the videos.</p>
<p>This is the UI logic to load the Chewie Widget:</p>
<pre><code>class SliderScreen extends StatefulWidget {
static String id = 'SliderScreen';
@override
_SliderScreenSt... | 2 | 4,203 |
How To: Display Data from AlaSQL Excel File Import within HTML/ASP Page | <p>I am in the process of working on an internal website that will need to pull data exclusively from static XLSX spreadsheets (updated through automation daily). On this site, I the data will need to be posted in a table and sortable/searchable. I can work on the special features on my own (search/sort options) after ... | 2 | 1,219 |
android edittext request focus at specific position | <p>I have an edittext view and button , Edit text has some default value.
when i click on button i give focus to the edit text. but problem is cursor is at the start of edit text. how to place cursor after the default text.</p>
<p>what i did.</p>
<pre><code> mobile_text =(EditText)findViewById(R.id.mobile_text);
mob... | 2 | 1,057 |
PHP Loop through results and output html table tr and td issue | <p>Trying to generate html table columns and rows by looping through mysql results. Rows and cols defined within the variables $row_count and $col_count:</p>
<pre><code>$id = $_GET['id'];
$sql = "SELECT * FROM $table WHERE id = {$id}";
$result = $db->query($sql);
if($result->num_rows) {
while($row = $result->... | 2 | 1,062 |
cucumber features --guess | <p>I'm setting up my Authlogic user session features.
And I'm in some kind of confusion.
When I run:</p>
<pre><code>cucumber features
</code></pre>
<p>I get some red errors </p>
<pre><code> Scenario: User signs in successfully # features/user_sessions.feature:21
Given a user ex... | 2 | 1,124 |
Scrolling lag on mobile devices after applying modified scroll direction | <p>I've created a simple function which is responsible for reversing scroll direction but it seems like the feature is cpu heavy which is causing the lag on mobile devices - my assumption.</p>
<p>At first, I thought that it's gotta be that way and there is nothing I can do to optimize it, until I discovered website wi... | 2 | 2,030 |
How to refresh a GridView after a onItemClickListener modifies data in an int [] from the ImageAdapter class | <p>My <code>GridView</code> is created in my <code>onCreate</code> here:</p>
<pre><code>@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
GridView gridview = (GridView) findViewById(R.id.gridview);
... | 2 | 1,398 |
Angular Factory Async Calls- Updating Controller? | <p>I have a Controller and Factory to handle lists. The controller needs to get the lists loaded by the factory and display it in the view. I can't have a getLists() method in the factory because this needs to load asynchronously from FireBase. Here is my controller code-</p>
<pre><code>angular.module('myApp.controlle... | 2 | 1,060 |
Cannot find bean: “studentList” in any scope | <p>I'm using Struts 1 framework to upload a CSV to the server and save it in database (Mysql). But when I get the data from the database and show it in my JSP, it throws an error:</p>
<blockquote>
<p>Cannot find bean: “studentList” in any scope </p>
</blockquote>
<p>What can be the issue?</p>
<p><strong>File strut... | 2 | 3,338 |
AppDelegate methods not called when using Firebase Cloud Messaging (FCM) | <p>Since I installed Firebase with FCM for notifications, most of my appDelegate methods aren't called anymore (except <code>didFinishLaunchingWithOptions</code>: <code>applicationDidEnterBackground</code> or <code>applicationDidBecomeActive</code> for example.
Is there something else to do to retrieve the AppDelegate... | 2 | 1,149 |
Getting "org.jasypt.exceptions.EncryptionOperationNotPossibleException" when trying to login | <p>I'm using Jasypt 1.9.0, Spring 3.1.1.RELEASE, and Maven 3.0.3. When I enter a username and password on my login page and submit, I get the following error …</p>
<pre><code>org.jasypt.exceptions.EncryptionOperationNotPossibleException
org.jasypt.digest.StandardByteDigester.matches(StandardByteDigester.java:1107... | 2 | 1,244 |
Core Data, caching NSManagedObjects in NSMutableDictionary, Problems | <p>I am writing a dictionary application, and i am trying to import raw data from strings, one string per word. Amongst other things, the raw input strings contain the names of the parts of speech the corresponding word belongs to. In my datamodel I have a separate entity for <code>Word</code>s and <code>PartOfSpeech</... | 2 | 1,585 |
int' object has no attribute '__getitem__' | <p>I am a beginner in python and am trying to find similarity between images by testing against a test_pic and a database containing images. I have passed images from a directory and compared it using SIFT features</p>
<pre><code>from PIL import Image
from PIL import ImageStat
from PIL import ImageFilter
import os
d... | 2 | 1,207 |
Reset Vue Bootstrap Table | <p>i am using <strong>vue-bootstrap4-table</strong> in my application i have a custom input though which i search and populate the data,now i need to build a feature in which their is a cross button inside the search field and on clicking on it it should reset the table to empty state here is my code</p>
<pre><code>&... | 2 | 3,894 |
Problem with return statement | <p>I have problem with return statment >.< I want to store all magazine names into</p>
<pre><code>ArrayList<String> ListNameMagazine = new ArrayList<String>();
</code></pre>
<p>I have a DB; in the DB there is a table <code>name_magazine</code> and the data in <code>name_magazine</code> is</p>
<blockqu... | 2 | 1,281 |
Angular NgRx - is it bad practice to use store.dispatch in an effect? | <p>This question is an extension from <a href="https://stackoverflow.com/questions/58426291/angular-ngrx-effect-to-continue-polling-a-service-only-called-the-first-time">this ongoing post</a>, but I feel it is narrower in scope and I may be able to get an answer independently to the linked post.</p>
<p><strong>Backgro... | 2 | 1,762 |
Java networking - how to permanently ban ip address? | <p>I'm making a program where the user logs into the server with a username and password only the server knows. They have 4 tries to get the correct username and password. If they do not enter the correct login information in 4 tries, the server will close connection to the client. </p>
<p>The next part of the program... | 2 | 1,869 |
uploading large file using ftpwebrequest upload wont complete | <p>My software i designed uploads files using ftp to my sever I'm using the ftpwebrequest to do all uploading. When uploading a file 700mb it uploads about 500mbs then stops, it works fine when uploading smaller files the smaller files upload successfully but it just want work properly on large files. I have the upload... | 2 | 1,178 |
angularjs window is not defined | <p>Everytime I try to run my Node Express Project in eclipse IDE I get following error, I've installed angular using npm in Eclipse yet it is giving me this error</p>
<p>Here is what I have so far:</p>
<p>Angularapp.html</p>
<pre><code><!doctype html>
<html ng-app = "AngularApp">
<head>
<script ... | 2 | 1,660 |
Multiplication between two text fields - Android Java | <p>I am new to Android and programming and having a bit of difficulties with my code. I tried to research this but couldn't find out what was wrong, would appreciate the help. I am basically trying to multiply two values but every time I run my emulator and click on the button (calculate) it crashes:</p>
<p><strong>Ja... | 2 | 1,839 |
DynamicLinks.API is not available on this device | <p>I have implemented Dynamics Links in my instant app, when click in link open the instant app but in to method getDynamicLink(intent) it shows me the following error:</p>
<pre><code>com.google.android.gms.common.api.ApiException: 17: API: DynamicLinks.API is not available on this device.
... | 2 | 1,564 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.