title stringlengths 13 150 | body stringlengths 749 64.2k | label int64 0 3 | token_count int64 1.02k 28.5k |
|---|---|---|---|
WPF and ADO.NET EF - error part II | <p>I have added the connection string to the App.config of a main executable in my wpr, prism application and I get the following error:</p>
<pre><code>System.TypeInitializationException was unhandled
Message=The type initializer for 'Microsoft.Practices.EnterpriseLibrary.Logging.Logger' threw an exception.
Source... | 2 | 2,345 |
insert initial data to sql lite android | <p>I'm developing an expense tracker where I want to populate the DB with a few records when the application first start. I tried to call the method in my splash activity and add the data.! But when I clear my application data and start the application for the first time an error occurs saying that there is no such col... | 2 | 2,496 |
Undefined variable: categories (View: resources\views\product\create.blade.php) | <p>hi m trying to get categories in products/create page but it says: (View: \resources\views\product\create.blade.php) how to resolve it?</p>
<p>controller:</p>
<pre><code>public function create(Request $request)
{
$categories = Category::with('category')->distinct()->get();
return view('product.crea... | 2 | 1,327 |
How to make a TemplateField read-only until the edit button is pressed? | <p>I have a <code>GridView</code> with various fields, one of which I have used <code>TemplateFields</code> for in order to have a datepicker in it. I've set the <code>GridView</code> to be editable and for all the other fields, this works great and they stay locked until the <code>edit</code> button is pressed.</p>
<... | 2 | 1,042 |
How to get the current value of a form input updated at each change without using jquery only using javaScript | <p>here I'm trying to make an inscription form an as a form validation i've chosen that the name must contain at least 2 charecters, So i've added an event listner to the input with the <code>id="nom"</code> but the problem that occurs here is that the code gets only the initial value which is empty so it doesn't reall... | 2 | 2,798 |
How to create my own RouteBuilder with Apache Camel? | <p>I'm trying to create my own RouteBuilder but I'm getting the following error:</p>
<pre><code>java.lang.IllegalArgumentException: onException must be defined before any routes in the RouteBuilder
at org.apache.camel.builder.RouteBuilder.onException(RouteBuilder.java:214)
at com.mdw360.ttt.mongo.fab.route.Exc... | 2 | 1,573 |
react-router ignoring nested routes when providing url with path | <p>I'm playing around with the <code>react</code> and <code>redux</code> trying to put together a basic app with <code>react-routes</code>. At the moment I have managed to put the following together which works for the <code>Wrapper</code> and the <code>Home</code> page, however the 'apps' page doesn't seem to load if ... | 2 | 1,089 |
Write the correct value of a float to a csv file | <p>In the csv file, I have lines with this structure : </p>
<pre><code>Name;timestamp;floatValue
Name;timestamp;floatValue
Name;timestamp;floatValue
...
</code></pre>
<p>In my code, I check each value in the line, I filter them,then I want to correct the float value by calling the function <code>floatval</code>, beca... | 2 | 1,465 |
after installing jupyter locally, I can't run jupyter notebook | <p>On linux redhat:
I tried to install jupyter locally:</p>
<pre><code>$ pip install jupyter --user
</code></pre>
<p>and it seems as everything was installed properly...</p>
<p>But - I cannot runt <strong>jupyter notebook</strong>, nor <strong>~/.local/bin/jupyter notebook</strong>
Why?</p>
<p>The installation...<... | 2 | 2,087 |
How to insert and fetch data from sqlite database in android? | <p>I have written this code to insert data in database through using "for" loop and I also want to see the data of database but the app is crashing.I can't find out its problem please help me... </p>
<pre><code>package com.smshah.database;
import android.app.Activity;
import android.os.Bundle;
import android.widget.... | 2 | 1,669 |
get id of a cell in a table inside a div (JS and HTML) | <p>Hi I have a php script that draws a table subject to certain conditions. When the table is drawn it is inside a div called ‘window’ and the table is called ‘visi’ I then want to use the code below to get the id’s of each cell in the table. I can get the class name no problem but get absolutely nothing from the id. ... | 2 | 2,210 |
Jquery Treeview toggle issue | <p>I am testing <a href="https://github.com/jzaefferer/jquery-treeview" rel="nofollow">Jquery Treeview</a> and finding a bug which I cannot figure out.</p>
<p><a href="http://jsfiddle.net/darrensw/jSwxE/" rel="nofollow">Fiddle here</a></p>
<p>What seems to be happening is that the toggle is getting messed up on the f... | 2 | 1,110 |
Load .properties file from IDE and also from outside of JAR | <p>I have a <code>app.properties</code> file in my maven project under <code>resources</code> folder as shown here (simplified):</p>
<pre>
myApp
|----src
| |
| |--main
| |--java
| | |--ApplicationInitializer.java
| |
| |--resources
| |--app.proper... | 2 | 2,211 |
Kendo UI JSONP grid does not work | <p>I have this page below, in which the data: piece looks just like the JSONP from the server, but it does not show any data with this proof of concept.</p>
<p>Later on I hope to replace the data: section with </p>
<pre><code>transport : {
read : "dwr/jsonp/DemoProxy/read/arg0",
dataType : "jsonp"
},
</code></pre>
<... | 2 | 1,393 |
Application abnormal behavior does not start activity mentioned in intent | <p>I have 3 major class in the application</p>
<p>1) Intent service: where I receive push notification and open activity according to notification message and other two classes behavior. below is the code which does that</p>
<pre><code> if(Global.isMainScreenRunning){
Intent intent = new Intent(this, MainScreen.cl... | 2 | 2,646 |
upload file on HTTP server using POST gives 0 for HttpFileCollection? | <p>I am trying to upload file on HTTP server using POST but when I call it gives </p>
<p><strong>uploadFile.Count = 0</strong> amd does not go into if statement. File path is correct.</p>
<p><strong>client code</strong> </p>
<pre><code> public partial class _Default : System.Web.UI.Page
{
protected vo... | 2 | 1,793 |
How does one Set the "Pick" Expression for Apache Camel's FlexibleAggregationStrategy in Spring XML? | <p>I am attempting to configure an Apache Camel route in Spring XML using Apache Camel 2.14. The route will involve either an <code><aggregator></code> or an <code><enrich></code>/<code><pollEnrich></code>; I'm not yet experienced enough with Camel to know which EIP will be most useful. Either way, I'... | 2 | 2,017 |
Grails Rest API with OAuth for Mobile App | <p><strong>TL;DR : Read from EDIT 1</strong>.</p>
<p>I'm trying to find a solution to how to implement authentication, especially OAuth for my rest api that will be used by a mobile app.</p>
<p>I have found this popular <strong>plugin</strong> (<strong>Spring Security Rest</strong>):</p>
<p><a href="http://alvarosan... | 2 | 1,111 |
Clicking a button with Node + PhantomJS | <p>I'm using Node + PhantomJS-Node to do some dynamic website crawling. The first page is opened, a link is obtained and then a second page is opened. On the second page there is a button that initiates a search which I'm having trouble clicking. </p>
<p>Initially I tried using jQuery.click() on the button element but... | 2 | 1,363 |
Having issue regarding validator in spring boot | <p>I am developing project in spring boot and i am using validator to validate user.</p>
<pre><code> import java.io.IOException;
import java.util.Map;
import java.util.Properties;
import javax.annotation.PostConstruct;
import javax.servlet.http.HttpServletResponse;
import javax.validation.Valid;
import org.slf4j.... | 2 | 2,187 |
StringIndexOutOfBoundsException from SpannableStringInternal | <p>I keep recieving the following bug reports from the market:</p>
<pre><code>java.lang.StringIndexOutOfBoundsException: length=51; regionStart=37; regionLength=-15 at
java.lang.String.startEndAndLength(String.java:593) at
java.lang.String.getChars(String.java:902) at
android.text.SpannableStringInternal.getChars(Span... | 2 | 1,506 |
Register C# COM Object without having a real file for RegAsm | <p>I have a wierd application loading mechanism. I have a boostrapping exe file with all the other DLLs and the application itself inside it's resources. These files (assemblies) are extracted from resources and loaded ond emand because i'm attaching to the Assemblyresolve event of the current AppDomain.</p>
<pre><cod... | 2 | 2,946 |
NSPredicate Filtered childs in array | <p>Good day, I'm using new language Apple Swift and using the NSArray:</p>
<pre><code>[
{
"Section" : "Title1",
"Items" :
[
{"Nr" : "101"},
{"Nr" : "201"},
{"Nr" : "301"},
{"Nr" : "401"}
]
},
{
"Section" : "Title2",
... | 2 | 1,207 |
How to set a same card Height in bootstrap 4 | <p>I cant make my cards have the same size </p>
<p>ive been working in this problem but i dont find a solucion at all... ive try it to use h-xxx, align-items-stretch and Height:100% but i cant make my cards have the same size, or the same height in this case</p>
<p>this is my actual code of what im doing</p>
<pre><c... | 2 | 6,645 |
Error in using stanford core nlp | <p>I need to perform coreference resolution using Stanford core nlp. i downloaded version 3.3.0.the code i used is shown below.there is an error at getCorefMentions() as it is not found. i dont know wat jar files nee to include to remove this error.</p>
<pre><code>package unlpro;
import edu.stanford.nlp.ling.CoreAnnot... | 2 | 2,036 |
REST API, Swift, Automatic Update | <p>I'm currently struggling to find an easy-to-use programming approach/design pattern, which solves the following problem:</p>
<p>I've got an REST API where the iOS app can request the required data. The data is needed in different ViewControllers. But the problem is, that the data should "always" be up to date. So I... | 2 | 1,567 |
Error connecting Celery to Redis when using Docker | <p>I have used <code>docker-compose</code> to create a docker instance that contains redis and celery. This will build successfully, however, in my python script when I try add something to my queue i get the following error:</p>
<pre><code>Error 8 connecting to redis:6379. nodename nor servname provided, or not known... | 2 | 1,147 |
ionic cordova : how to display an image in img tag from android gallery when i get content:// url from filechooser plugin | <p>i wasted 6 days (and counting) struggling to display an image from gallery on android using ionic3-cordova</p>
<pre><code>this.fileChooser.open()
.then((uri) => {
console.log('image uri is', uri);
})
</code></pre>
<p>i cannot use <code>uri</code> directly to bind to my tag's src</p>
<p>i tried to use ... | 2 | 2,661 |
How to call a value from function set_value in Code Igniter? | <p>I have a simple task , and i'm using a MVC methods and CI framework for this task.
I have made a view to input data to database, and it's work, and i make a 2 anchors, those are an [Update] and [Delete], the function delete is working, but the update isn't working.
After user click anchor [Update], it will linked to... | 2 | 1,863 |
Ember CLI: Push a custom record in store | <p>So I have this requirement where when I go to a <code>whitelist</code> route, I fetch a list of whitelisted users from an API. My models and serializers are like this:</p>
<p>models/whitelist.js</p>
<pre><code>import BaseUser from './base-user';
var Whitelist = BaseUser.extend({});
export default Whitelist;
</code... | 2 | 1,208 |
How to validate request parameter key in springs | <p>I am new to spring. Just want to know can we validate request parameters key.
I have used <code>RequestParam</code> as u can see, for eg <code>@RequestParam(value= "sourceType")</code> here <code>value = "sourceType"</code> is my key, so if user enters <code>sourcety</code> which does not match the given key it giv... | 2 | 1,710 |
How to Save Menu item Checked state in SharedPreferences? | <p>In my app's Menu i have 2 items, one of them is Checkable and i want to save his state using SharedPreferences.
Here is my code:
<strong>MainActivity</strong><BR></p>
<pre><code> MenuItem bubu1;
boolean isChecked;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceSta... | 2 | 1,582 |
java.lang.NullPointerException in org.apache.cxf.attachment.LazyDataSource.getInputStream | <p>I am using cxf 2.7.7 and using MTOM with https ... and it is working ok with cxf java client.
However when I send a message though SOAP UI client, and at the server side (in my endpoint implementation class) I try to access any of the methods of the Datahandler object (please see abridged code below) then I get j... | 2 | 1,501 |
javascript - return parent with only child that matches given search string in array of objects with nested object | <p>This is a follow up question from <a href="https://stackoverflow.com/questions/44550439/javascript-search-array-of-nested-objects-and-return-parent-if-value-is-found">my previous question</a>. From the answer I've received, I am able to search within nested object in an array of objects.</p>
<p>Please find this <a h... | 2 | 1,151 |
Scanf skips second line of input, always | <p>I'm trying to read lines of text data, and store them in a linked list.
Input data looks something like this:</p>
<pre><code>David Copperfield
Charles Dickens
4250
24.95
32.95
10
6
END_DATA
</code></pre>
<p>The way I read the data is to first read the first line to see if it is END_DATA. If it's not, then I pass ... | 2 | 1,239 |
PHP: how to make a nested array into one dimensional array? | <p>This is a nested array I got from my db,</p>
<pre><code>Array
(
[0] => Array
(
[Field] => blc_id
[Type] => int(10) unsigned
[Null] => NO
[Key] => PRI
[Default] =>
[Extra] => auto_increment
)
[1] =&... | 2 | 1,086 |
displaying images and text from server database using json in android | <p>I can able to fetch the images from mysql db to android using json to the list view . i want display Image and text as listview</p>
<pre><code>enter code here
Main.java
JSONArray json = jArray.getJSONArray("names");
list=(ListView)findViewById(R.id.list);
adapter=new ImageAdapter(this, json);
... | 2 | 1,081 |
require gem in a Redmine plugin 'init.rb' fails | <p>I am building a plugin for Redmine 2.0 and for the following line in plugin's 'init.rb' </p>
<pre><code>require 'ice_cube'
</code></pre>
<p>I get the load error even though the 'ice_cube' is installed and show up when I do 'gem list'
I am using rvm with ruby 1.9.3p0 (2011-10-30 revision 33570) [x86_64-darwin11.2.0... | 2 | 2,693 |
symfony2 FOSUserBundle login returns 'bad credentials' | <p>I'm new to FOSUserBundle and it's some hours that i'm struggling with this error...and can't find appropriate answer in the site.</p>
<p>can anyone help me plz?:-*</p>
<p>this is my child user entity</p>
<pre><code><?php
// src/Blogger/BlogBundle/Entity/CommonUser.php
namespace Blogger\BlogBundle\Entity;
use... | 2 | 1,549 |
Is sparse matrix-vector multiplication faster in Matlab than in Python? | <p>Edit: See <a href="https://stackoverflow.com/questions/46924092/how-to-parallelize-this-python-for-loop-when-using-numba">this question</a> where I learned how to parallelize sparse matrix-vector multiplication in Python using Numba, and was able to tie with Matlab.</p>
<hr>
<p>Original question:</p>
<p>I'm obser... | 2 | 2,236 |
Sorting 2d array (matrix) in C | <p>I have a task to sort a 2d array but it is really hard for me. I can't figure out where I'm making a mistake.</p>
<p><strong>It will be good to use while loop instead of for loop</strong></p>
<p>Here is the task: </p>
<ol>
<li>Enter a square matrix of dimensions n.</li>
<li>Elements below main diagonal sort in as... | 2 | 4,265 |
How to Fully customize GrapesJs UI | <p>I am using Grapesjs in my web Application for creating web pages. As I am new to GrapesJS I am not sure how to customize the UI from GrapesJs .
I just use this code.</p>
<pre class="lang-js prettyprint-override"><code> const editor = grapes.init({
container: '#gjs',
fromElement: true,
pl... | 2 | 1,901 |
FS10N, how to choose layout by name with script in excel VBA? | <p>I'm writing a code in Excel VBA to automatically download data from SAP FS10N report.
The only problem I have right now is that I can't find any solution to select the layout I wan't to use by the name of the layout. This is the code line I found to be the solution but it doesn't work for me:</p>
<pre><code>Session.... | 2 | 1,594 |
How can I do Cross-Origin in the google app script? | <p>I tried several tutorials and nothing worked.</p>
<p>My problem is as follows, if I click on an html link it opens the other page, but if I try to open via form it always shows a cross-origin error.</p>
<p>I provide a public link with a copy of the main pages of my project. Could someone show me in practice how to... | 2 | 2,479 |
Spring ResponseBodyEmitter and SseEmitter stuck initialising and accumulating earlySendAttempts | <p>I have a Spring Boot (v2.0.3) web application serving SSE and encountered an issue where sometimes the SseEmitter instance is stuck "initialising" and never gets a <code>ResponseBodyEmitter.Handler</code> configured through <code>ResponseBodyEmitter.initialize(..)</code>. With the SseEmitter in this state, I end up ... | 2 | 7,570 |
Fragment java.lang.ClassCastException Error | <p>How to cast Fragment activity?</p>
<p>Actually I am trying to Open through button on <strong>Activity</strong> to <strong>Fragment Activity</strong></p>
<p><strong>Android MainFest :</strong></p>
<pre><code><activity android:name="parth.any.ttb.Fragment_1"/>
</code></pre>
<p><strong>LogCat:</strong></p>
<... | 2 | 1,917 |
Change color in middle of circle | <p>I'm new to WebGL and I'm trying to create a black ring in the middle of this green circle without making additional circles. I believe I can do this by making the normal of those triangles go the other way but I'm not sure exactly how to do this. My friend suggested changing the texture coordinates but I don't reall... | 2 | 1,145 |
.Net Core AWS Lambda function not flushing logs | <p>I have set up a .NET Core AWS Lambda function using the AWS Toolkit Extensions's template project structure. The function works as expected. The only issue I have is that my logs are not always flushed before the application shuts down. I usually lose about one or two lines of logs. I am using AWS Cloudwatch to stor... | 2 | 1,386 |
python cassandra driver setting keyspace error | <p>I am getting an error using the python driver for datastax's Cassandra when setting the keyspace. here is my code up to the error:</p>
<pre><code>from cassandra.cluster import Cluster
from cassandra.query import SimpleStatement
cluster = Cluster(['some.IP.addr'])
session = cluster.connect()
session.set_keyspace('d... | 2 | 1,491 |
Create a executable java maven project | <p>I have created a project using Maven. The main idea is to get the dependencies easily. The problem is that now I can't create an executable .exe or even a .jar file. My application is a Java archetype and I'm doing it with Netbeans. Also I'm using an Postgree db. My pom file shown bellow:</p>
<pre><code><project... | 2 | 5,733 |
Why am I getting this message in Spring? "Neither BindingResult nor plain target object for bean name 'removedTeam' available as request attribute" | <p>This is a simple program I am writing to understand the @RequestMapping annotations and such. I have two controllers. The home controller is the home page and renders the home.jsp. The team controller handles the team.jsp. The home page has a remove team form on it that removes a team object from the database. That ... | 2 | 6,816 |
Conditional RedirectToAction in Controller? | <p>I'm just wondering where, in MVC, the responsibility for determining where to redirect belongs. I <em>think</em> it's the controller, but I'm not sure.</p>
<p>In the Create action of a <code>WorkshopItem</code> I'm creating a new WorkshopItem from the ViewModel passed in, then saving it to the database. Part of the... | 2 | 1,230 |
Cannot enable AppCenter.Crashes on Xamarin.iOS app | <p>Trying to use the new AppCenter on an existing Xamarin.iOS application, i have some trouble with the AppCenter.Crashes API.</p>
<p>I follow the Get started section and add following code in my AppDelegate.cs : </p>
<pre><code>using Microsoft.AppCenter;
using Microsoft.AppCenter.Analytics;
using Microsoft.AppCenter... | 2 | 3,915 |
Synchronize app version & build number in app settings | <p>I have added <code>Settings.bundle</code> to my app to add version and build numbers in app settings, and it is added properly. The issue I have is, that it is always getting default value only and after that it is not updating it based on the value from actual app version and build number (even after running the ap... | 2 | 1,029 |
How to use inet_pton and struct ifreq for setting up ip address from C program | <p>I am trying to set ip address of a network interface from a C program. I looked around and found out that I can do it using <code>ioctl()</code> and <code>inet_pton()</code>. My problem is, I am not able to figure out where in <code>struct ifreq</code> am I supposed to store the converted address. I keep on getting ... | 2 | 1,062 |
Javascript - Remove Modal Error/Success messages if modal is closed | <p>I have created a Twitter Bootstrap Modal, that includes a form submission. The form includes Javascript validations.</p>
<p>When I close the modal, or click anywhere else, and then open again the modal, the JS error/success styling remains still there.</p>
<p><strong>How can I make the CSS error/success styling no... | 2 | 3,397 |
using declarations in main (C++) | <p>Although you wouldn't want to do this, if you have a namespace COMPANY, and a class in that namespace SOMECLASS. Why is it that in the .cpp file, you might define the functions as</p>
<pre><code>COMPANY::SOMECLASS::someFunction()
{}
</code></pre>
<p>But in main, I get errors for doing:</p>
<pre><code>int main() ... | 2 | 1,249 |
Client certificate authentication in swift2 | <p>I want to authenticate client certificate in my app. I am getting the following errors in <code>didReceiveChallenge</code> function. I found this solution in this <a href="https://stackoverflow.com/questions/30174052/swift-ios-client-certificate-authentication">link</a>.</p>
<p><a href="https://i.stack.imgur.com/Aa... | 2 | 1,441 |
How to prevent saving of duplicate data? | <p>I am developing MVC app.</p>
<p>I am using Jquery in Creat-Veiw for validate the data.</p>
<p>I am adding the Role and checking whether that Role(or you can say UserName) already exists in DB or not.
If Role already exists then validation message should display and should not be allow to add in db (should not allo... | 2 | 1,358 |
How to write htaccess rewrite for subdirectories recursively? | <p>I have an Apache server, hosting a number of websites for my company. I plan to use htaccess, and rewrite the URLs from the "root" directory to a subfolder.</p>
<p>Here is my real folder structure:</p>
<ul>
<li>/www (root)</li>
<li>/www/beamstyle (beamstyle.com.hk, CodeIgniter framework)</li>
<li>/www/beamcard (b... | 2 | 1,541 |
Configuration of a pie chart and a legend in the dojo | <p>Sorry for my english.</p>
<p>I want to program a web application where a user fills out a form and sends it to the server. The server sends the requested data as a JSON object. With these data, a diagram and a legend with Dojo to create.
The graph and legend look like this:</p>
<p><a href="http://www.gm.fh-koeln.d... | 2 | 2,132 |
Web Deploy cannot modify the file 'xxx.exe' on the destination because it is locked by an external process | <p>I have created a new ASP.NET Core Web Application (.Net Framework) in Visual Studio. I'm using .NET Framework 4.5.2. I right click on the project and select publish, to publish the project to Azure with Web Deploy. First attempt fails "Missing root element" or something like that. Second attempt succeeds. But every ... | 2 | 1,324 |
java.lang.OutOfMemoryError: Java heap space during bytea download | <p>I'm using this code to download bytea object from PostgreSQL:</p>
<pre><code>public void initFileDBData() throws SQLException, IOException
{
if (ds == null)
{
throw new SQLException("Can't get data source");
}
Connection conn = ds.getConnection();
if (conn == null)
{
throw n... | 2 | 2,229 |
how to solve the following error while creating new laravel project | <p>i am new to homestead and laravel , i am trying to install homestead and start new laravel proeject , i follow the steps in the following link , <a href="https://www.youtube.com/watch?v=Il08--droNI" rel="nofollow noreferrer">https://www.youtube.com/watch?v=Il08--droNI</a>, it seems that i succeed to install homestea... | 2 | 1,269 |
How to get NuGet package dependency report in Visual Studio 2015? | <p>I added just two NuGet packages to my Console application in VS2015 and due to a chain of dependencies, I ended up having 44 packages added to my project. I can see them in the <code>packages.config</code> file listed below.</p>
<p>The list of packages added to my project seems going out of control!</p>
<p>Is the... | 2 | 1,700 |
Android Proximity Alert - Not Triggering | <p>I am going crazy not getting what I am doing wrong and I am now turning to StackOverflow for help.</p>
<p>I am trying to add locations with proximity alerts and when the proximity alert triggers I get a notification. I am getting location updates when moving around and I have application continiously printing my di... | 2 | 1,435 |
How to make Camel pattern="InOut" work with IBM MQ | <p>As described here:
<a href="https://stackoverflow.com/questions/48660536">setting ReplyToQ attribute of MQMD of IBM MQ request message with Camel</a>
I managed to set ReplyToQ in MQMD of request properly in Camel Route, but I can't get the response in the same Route, with the IBM MQ Endpoint ("to") that I would like... | 2 | 1,694 |
Logs from containerized WebApp are not send to Elasticsearch via Serilog.Sinks.Elasticsearch | <p>I'm testing combination of Serilog.Sinks.Elasticsearch library and ELK stack (Elasticsearch & Kibana) for collecting logs from my ASP.NET Core 2.2 application. Web application and ELK services are containerized via Docker. </p>
<p>When spinning all containers via docker-compose everything is fine except from so... | 2 | 3,203 |
Unable to import BeautifulSoup and Requests | <p>I am using anaconda. I have installed Beautifulsoup and requests module. It also shows up in my list of packages installed.</p>
<p>But when I try to run my python file from conda prompt , I get the error "No Module named 'bs4'" / "No module named 'requests'"</p>
<p>Installed packages:</p>
<pre><code>(dash) C:\Pro... | 2 | 3,287 |
How do I ensure the vuex store gets included in my build? | <p>I have a Vue application that is using vue cli 3. I'm following the guide <a href="https://cli.vuejs.org/guide/build-targets.html#web-component" rel="nofollow noreferrer">here</a> to try building my app with <code>vue-cli-service build --target wc --name my-element [entry]</code></p>
<p>To test the output, I have a... | 2 | 1,189 |
How to make an efficient expression calculator? | <p>How to make the code read multiple operands in the expression entered by the user.</p>
<p>If i have to read them how to find the different operators and operands here is the code for basic expression calculator made by me which is able to read the expression and evaluate only one operand and two operators </p>
<p>... | 2 | 1,421 |
Recursively remove all adjacent duplicate numbers in an array | <p>I want to recursively remove all adjacent duplicate numbers in an array</p>
<p>I have gone through similar links where they did this on strings </p>
<p><a href="https://www.geeksforgeeks.org/recursively-remove-adjacent-duplicates-given-string/" rel="nofollow noreferrer">https://www.geeksforgeeks.org/recursively-re... | 2 | 1,487 |
Scheduling Concurrent Jobs in Java | <p>I have implemented Schedulers in java in my code using 2 different ways. However, both seem to work in sequential rather than parallel thread. mine is a spring 4 application on java 8.</p>
<p>first way</p>
<pre><code>@Scheduled(cron = "0/59 * * * * *")
public void test2 (){
</code></pre>
<p>second way</p>
<pre><... | 2 | 1,130 |
Crack linux executable | <p>I have a linux executable and its disassembly (in particular, the program checks if I'm superuser, and if so, output some message by executing function "start_reactor" and exit; if I'm not a superuser the program call another function "check_password"), what I need is to find a way to crack it (execute function "sta... | 2 | 2,587 |
Are there limitations to the number of rows in bootstrap or html tables? | <p>I have an html table that is cutting off all rows beyond the 200th. The rows are in fact there, because the list.js javascript search feature will find data in them if I search for it, but they don't display when the table loads. </p>
<p>Is this a limitation or setting in bootstrap or some other html thing? </p>
<... | 2 | 1,891 |
Trouble saving event in fullcalendar | <p>I can save the event in my database but it saves a different date. </p>
<p>When I click on a date it asks for the event name and saves it. The event is saved on the current date of the day not on the day that I choose/click. </p>
<p>Also the time it saves on the database depends on the current time of the computer... | 2 | 1,307 |
add_callback with thread pool, but Exception about "Cannot write() after finish()." | <p>I'm using thread pool while using Tornado to do some work. This is the code:</p>
<p><strong>common/thread_pool.py</strong></p>
<pre><code>import tornado.ioloop
class Worker(threading.Thread):
def __init__(self, queue):
threading.Thread.__init__(self)
self._queue = queue
def run(self):
... | 2 | 1,727 |
Run Multiple Solr instances in SolrCloud with three ZooKeeper server | <p>Using this fantastic GIST of Kalharbi at <a href="https://gist.github.com/kalharbi/fd29661b9926eb087c45" rel="nofollow">https://gist.github.com/kalharbi/fd29661b9926eb087c45</a> , I have configured <strong>SolrCloud</strong> on my localhost with three <strong>ZooKeeper</strong> server on port <strong>2181</strong>, ... | 2 | 1,124 |
Handle physical back button in Navigation Component with Toolbar | <p>I have a simple proof of concept app that contains only 2 fragments: <code>MainFragment</code> and <code>RepositoryFragment</code> and 1 activity: <code>MainActivity</code></p>
<p>Here's my <code>nav_graph</code></p>
<pre><code><?xml version="1.0" encoding="utf-8"?>
<navigation xmlns:and... | 2 | 2,404 |
ASP.NET C# - Refresh 2nd DropdownList based on select of 1st dropdownlist | <p>I am new to ASP.NET</p>
<p>I have this code Page1.aspx for the DetailsView:</p>
<pre><code> <InsertItemTemplate>
<asp:DropDownList id="VendorName" datasourceid="VendorSqlDataSource"
datatextfield="VendorName" DataValueField="VendorID"
... | 2 | 1,669 |
Why can't my .NET 6 Minimal API deserialize POST body? | <p>I've build a very simple, vanilla minimal API with .NET 6. All I'm trying to do for now is prove that I can receive HTTP POST requests and log them. Hopefully if I can get this working I'll start doing something more interesting, but even this vanilla out of the box functionality isn't working.</p>
<p>Some things I'... | 2 | 2,502 |
Unity3D how to add permissions to AndroidManifest.xml for android plugin | <p>So I'm working on a Unity plugin for android and I've found a problem that seems poorly documented. I need to add the INTERNET, CHANGE_WIFI_STATE, ACCESS_WIFI_STATE, CHANGE_NETWORK_STATE, and ACCESS_NETWORK_STATE permissions to my project.</p>
<p>I added them to the AndroidManifest.xml file in my android plugin pack... | 2 | 1,113 |
In react, reset password with email functionality | <p>I used the react app and however I did not realize until recently that, I also need a reset-password email functionality.</p>
<p>So I am stuck in react forget password page.</p>
<p>Here is my code:
Index.js</p>
<pre><code>import React, {useEffect, useRef, useState} from 'react';
import Layout from "../MyLayout&... | 2 | 7,174 |
Create .cat file with C# | <p>I'm trying to import and use CryptCATCDFEnumMembersByCDFTagEx in order to create .cat files using C#. The function is returning null and the parameters do not seem to be initialized. I wrote the corresponding code in C++ and that works fine. I'm guessing my structures are off.</p>
<p>Any help would be appreciated. ... | 2 | 3,052 |
Conditionally mapping values from one data frame to another one R | <p>I have two dataframes: </p>
<pre><code>> SubObj
sNumber runningTrialNo wordTar SubObj_ind
1 34 nerd 3
1 32 hooligan 1
1 7 villager 3
2 32 oak 2
2 8 deer 2
3 8 ... | 2 | 1,126 |
Axis2 wsdl2java - parse error | <p>I'm trying to generate java classes from wsdl file. Originally this file was used with Axis 1.1 with no problems. Then Axis1 was replaced with Axis2 and now generation isn't working with the following error:</p>
<blockquote>
<pre><code> [java] Exception in thread "main" org.apache.axis2.wsdl.codegen.CodeGenerat
</c... | 2 | 1,135 |
Dropbox - uploading files from url doesn't work consistently | <p>I have a PHP script that uploads files into Dropbox. When I run it from command-line as a standalone script, it works perfectly.</p>
<p>However, when I incorporate my code into the larger project, the file fails to upload, cURL returns "errno" 0 (meaning, no cURL errors), and there's no output from Dropbox's API.</... | 2 | 1,220 |
PHP Decode Base64, Refresh and Keep data | <p>I have an image that I upload with a HTTP Post method to my webserver written in PHP.
My code compresses a bitmap to a jpeg coded byte array and sends that Base64 encoded to the server which decodes, writes it to a file and opens it as a jpg image.</p>
<p>Index.php:</p>
<pre><code><?php
$base=$_REQUEST['image']... | 2 | 1,124 |
Started Hue Server, CLI says 8000, config says 8888, in reality: Nothing | <p>I have started a Hue Server running on an EC2 instance with a pseudo distributed setup of HDFS. When I start the server, the CLI states that the server is running on <code>localhost:8000</code>:</p>
<pre><code>0 errors found ... | 2 | 1,165 |
jqGrid's inline-editing with REST Api (POST,PUT,DELETE http request) | <p><strong>jqGrid Version:</strong> Guriddo jqGrid JS - v5.0.2</p>
<p><strong>What is my Target ?</strong>
I want to create a inline jqGrid. Here the Add will be done using a POST request, Edit will be done using a PUT request and delete will be done using a DELETE request.</p>
<p><strong>What I have done so far ?</s... | 2 | 6,103 |
Getting Service: AmazonIdentityManagement; Status Code: 400; Error Code: MalformedPolicyDocument for while creating Cloudformation stack | <p>I am trying to create cloud formation template for ECR and ELB, I pushed my image to ECR separately. In Dockerrun.json, I referred to my image like this "image": ".dkr.ecr.ap-south-1.amazonaws.com/*:latest". So I need to provide IAM permission for both ELB and ECR. But there is some issue with IA... | 2 | 1,658 |
Errors converting pdf to jpg using wand, Imagemagick, and Django | <p>I am using ImageMagick 6.7.7-10 2017-07-31 Q16 on Ubuntu 14.04, through Wand 0.4.4, Python 3.4.3 and Django 1.11. I am trying to create a jpg thumbnail of a pdf file. </p>
<p>On the command line, I can do this with no errors:</p>
<pre><code>convert -thumbnail x300 -background white -alpha remove Lucy.pdf[0] output... | 2 | 3,974 |
refresh table in page when hitting the save button without refreshing the whole page | <p>i have the following code where the user enters the data and once he clicks on the save button, the table shown is reloaded where the new record if inserted into database is displayed.the table reads the data from the database. and im using ajax to load the data and save the record. here is my html code:</p>
<pre><... | 2 | 2,901 |
using lm in list column to predict new values using purrr | <p>I am trying to add a column of predictions to a dataframe that has a list column that contains an lm model. I adopted some of the code from <a href="https://stackoverflow.com/a/42799097/4734091">this post</a>.</p>
<p>I have made a toy example here:</p>
<pre><code>library(dplyr)
library(purrr)
library(tidyr)
libra... | 2 | 1,516 |
Vue - infinite scroll doesn't fetch new data when bottom of the page is reached | <p>So, I made a method <code>fetchStories</code> that fetches stories from my API in batches of 10, and the new stories can be fetched once you've scrolled to the bottom of the screen. This is what part of my Vue instance looks like:</p>
<pre><code>var discoveryFeed = new Vue({ // eslint-disable-line no-unused-vars
... | 2 | 1,499 |
Sequelize JS node updating multiple entities with new data from previous promise | <p>I am new to sequelize and NodeJS promises in general. My app basically saves tweets from the Twitter API, but also needs to update some of the saved tweets' data in realtime, like the Retweet count or the Liked count.</p>
<p>But it seems like after fetching the new data, when trying to run all the <strong>update</s... | 2 | 1,595 |
How to apply CIFilter to video in Swift without waiting to process | <p>I am currently developing a feature in one of my apps where users can add photos and videos to a post. They have the ability to record video or taking a picture, but afterwards I want to give them full control over the output by applying filters or changing brightness, contrast, exposure, ...</p>
<p>This is relativ... | 2 | 1,474 |
How to Make Minecraft Player's looking position be recorded in java | <p>I know this title is confusing. I am making a minecraft mod in java. I made an Item that explodes and spawns lightning when you right click. Currently, it explodes and makes lightning at the position of the player. How would I make it explode at the position the player looks? My item class currently looks like this:... | 2 | 2,124 |
Starting container process caused: exec: "powershell": executable file not found in $PATH: unknown | <p>I'm trying to containerize my .net core 3.1 service into linux Docker container. This service works with a SQL Server database, so I have a <code>docker-compose</code> as follows:</p>
<pre><code>version: "3.5"
services:
back:
build:
context: ../../
dockerfile: local_de... | 2 | 1,403 |
Webservice to convert XLS to PDF | <p>I'm working on a Java applet that produces an XLS file as output. I need to convert it to PDF (or even better PDF/A) before I let the user view, download and print the document, since I need it unmodifyable.</p>
<p>I tried coding a solution, and it works. I downloaded and bundled JODConverter 2 in my applet so that... | 2 | 2,037 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.