title stringlengths 13 150 | body stringlengths 749 64.2k | label int64 0 3 | token_count int64 1.02k 28.5k |
|---|---|---|---|
Robot framework, Open Browser with command line flag to save browser log | <p>I'm trying to save browser (chrome) log messages (React logs, js errors etc.) into a file in a <em>robot framework</em> test run. Apparently this is more difficult than it should be, as I couldn't find convenient API in robot framework to achieve this.</p>
<p>I figured out chrome could be started with <code>--enabl... | 2 | 2,254 |
Is it possible to convert HTML to JSON exactly as this website (toolslick) but using Python? | <p>I have this HTML and I went to toolslick.com to convert it to JSON. So, I got this JSON and I would like to know if is it possible to do exactly as it is, but in Python. What could I use? Regex? Some library? A loop? I tried some things but unsuccessfully. It doesn't need to be in JSON but I thought it was the best ... | 2 | 1,524 |
Android imageview touch listener not working | <p>Help me guys , My Imageview touch listener not working.</p>
<pre><code> imgShowNewAgain.setOnTouchListener(new View.OnTouchListener() {
@Override
public boolean onTouch(View v, MotionEvent event) {
switch (event.getAction()) {
case MotionEvent.ACTION_DOWN:
... | 2 | 1,487 |
TypeError: .default.auth.signout is not a function in REACT and Firebase | <p>I can see a lot of the same error questions on StackOverflow but Mostly are not answered and the answered one doesn't really help me. Please help to debug out this error.</p>
<p>I am implementing a Login/Signup in my REACT project using firebase. The code Compiles Successfully but shows an error in the browser.
The ... | 2 | 2,204 |
Table size, thead and tbody in Qweb odoo 10 | <p>i have 2 problemes with long tables in Qweb.</p>
<p>1/ if there is no place for all table on first page , Qweb print all the table on seconde page . but i want the first part of table on the first page and the seconde part on the seconde page (look to img1 and img2).</p>
<p>2/if the table is too long i have probl... | 2 | 8,377 |
ReplaySubject take is not a function | <p>I am trying to replicate <a href="https://github.com/gothinkster/angular-realworld-example-app" rel="nofollow noreferrer">angular-realworld-example-app</a>, but I am caught with an error I do not understand. (I am using RxJS 5.4.0 and Angular 4.2.5).</p>
<p>My route "login" has a guard "No Auth Guard" to check if t... | 2 | 1,683 |
Get multiple root directories on JTree to select the leaf - Swing | <p>I have been using JTree to get the <a href="http://i.imgur.com/p7iwhVl.png" rel="nofollow">multiple root directories</a> of the system, using the example FileTreeModel.java to achieve it. And also trying to get the selected leaf (path) but it throws <a href="http://pastebin.com/BemWu8fp" rel="nofollow">cast error</a... | 2 | 1,056 |
Magento jQuery Ajax search issue | <p><br />
I am trying to implement a customize Magento Advanced Search, using jQuery and Ajax.
<br />
The search works something like this:
<br />
1) There are 2/3 options to select size <br />
2) 6 options to narrow down search result <br />
3) A text box to enter keywords etc<br /></p>
<p>There is no submit button,... | 2 | 2,552 |
PHP check if element exists in XML | <p>I try to read a XML file, show the data in a table and write the needed data into a MySQL Database so that i can later extract the data as CSV.</p>
<p>In the XML are a set of data that all have the same name. </p>
<p>Each product has a different amount of <strong><em>< props></em></strong> (max 20) and I want t... | 2 | 8,095 |
Print out contents of a list human readable C# | <p>I am very new to C# and I would like to print out the contents of a list so that the information stored in seatsBooked will be displayed for the user if they pick the number 3 case of my switch statement. My code is as follows:</p>
<pre><code>using System;
using System.Collections.Generic;
using System.Linq;
using ... | 2 | 2,282 |
PJSIP compilation Error for iOS5 | <p>Please help to compile siphone for iOS 5.</p>
<p>I am trying to compile pjsip for siphone project.
PJSIP source - svn co <a href="http://svn.pjsip.org/repos/pjproject/trunk" rel="nofollow">http://svn.pjsip.org/repos/pjproject/trunk</a> pjproject
Siphone code - svn checkout <a href="http://siphon.googlecode... | 2 | 3,385 |
how to rejoin Mon and mgr Ceph to cluster | <p>i have this situation and cand access to ceph dashboard.i haad 5 mon but 2 of them went down and one of them is the bootstrap mon node so that have mgr and I got this from that node.</p>
<pre><code> 2020-10-14T18:59:46.904+0330 7f9d2e8e9700 -1 monclient(hunting): handle_auth_bad_method server allowed_methods [2] ... | 2 | 2,425 |
Foreign key creation in one-to-one table-per-concrete-class structure | <p><strong>TL;DR</strong> How can I enforce the Hibernate schema creation to create a foreign key constraint in a table-per-concrete-class setup from <code>AbstractProperty.ownerId</code> to <code>Owner.ownerId</code> for the structure displayed below, without adding a <code>Owner</code> property to the <code>AbstractP... | 2 | 1,845 |
Exif Information Rotation getting file not found exception | <p>I have been trying to figure out EXIF for awhile and I just have had issue after issue, after issue. I am hoping someone can shed some light on this for me.</p>
<p>I have a button that a user pressed and it does this intent</p>
<pre><code>Intent intent = new Intent();
// Show only images, no videos or anything els... | 2 | 1,619 |
UnsupportedDataTypeException: no object DCH for MIME type application/pkcs7-mime | <p>I am trying to create encrypted mail on Android, using:</p>
<ol>
<li>Javamail libs from <a href="http://code.google.com/p/javamail-android/downloads/list" rel="nofollow">here</a>,</li>
<li>SpongyCastel libs Core-1.51.0.0.jar, pg-1.51.0.0.jar, pkix-1.51.0.0.jar, prov-1.51.0.0.jar & scmail-jdk15on-1.47.0.3.jar.</... | 2 | 1,619 |
Failed to instantiate module demoApp due to: Error: [$injector:nomod] Module 'demoApp' is not available | <p>I am trying to build a simple SPA using angular and ngRoute/ngView. I simply cannot make it work.</p>
<p>I get the error: angular.js:68
Uncaught Error: [$injector:modulerr] Failed to instantiate module demoApp due to:
Error: [$injector:nomod] Module 'demoApp' is not available! You either misspelled the module name ... | 2 | 1,175 |
HTTP Error 404.0 - Not Found IIS 7.5 | <p>I have an WCF web service that I was able to call from an Android application in Visual Studio IIS server, but now after publishing the service in my local IIS server when I try to make a call from the application I receive the following error as response:
"HTTP Error 404.0 - The resource you are looking for has bee... | 2 | 1,179 |
Firebase not working on my android project | <p>I am trying to use Firebase crash reporting and notifications on an Android Project I inherited from my predecessor in my place of work.</p>
<p>For some unknown reason Firebase or OneSignal has refused to work on the project,it doesn't matter whether the app is in background or not. I implemented Firebase using th... | 2 | 2,802 |
Set Selected Value On Cascaded MVC Drop Down List | <p>I'm developing an MVC 5 application. Within a Razor View there are two drop down lists. When a value is selected from the first one (<strong>productID</strong>), a JQuery and Ajax call is made to return Json Data which populates the second drop down list (<strong>additionalID</strong>).</p>
<p><strong>Drop Downs</s... | 2 | 1,042 |
Why toolbar has no elevation? | <p>I've been trying to use the new design library and I have a toolbar instead of deprecated action bar. The problem is that the toolbar has no elevation. I added elevation everywhere in layouts, in code, I even added AppBarLayout. Nothing works. I'm testing both on Lollipop and Kitkat. </p>
<p>Any help is highly appr... | 2 | 1,575 |
Is it possible to have multiple listagg statements referencing more than one table in one query? | <p>I have three LISTAGG statements that look like this:</p>
<pre><code>LISTAGG (ga.FULL_APPL_NUM, ',') WITHIN GROUP (ORDER BY ga.FULL_APPL_NUM) AS "FullApplNums",
LISTAGG (ga.APPL_ID, ',') WITHIN GROUP (ORDER BY ga.FULL_APPL_NUM) AS "ApplIds",
LISTAGG (ga.PROJECT_TITLE, ',') WITHIN GROUP (ORDER BY ga.FULL_APPL_NUM) ... | 2 | 2,510 |
DataStore - subscriptionError, Connection failed: | <p>I'm working on a React Native, AWS, DynamoDB, Amplify project, and I'm struggleing to add extra tables (models) to the database.</p>
<p>The original schema was quite simple. (maybe too simple to be effective)</p>
<pre><code>type Capture @model {
id: ID!
captureID: String!
userID: String!
moodScore: S... | 2 | 8,378 |
Making This Javascript Countdown Timer Responsive | <p>I am currently using a modified version of a JS countdown element for a site coming up. I've been learning a ton of how to use flex grids but haven't done a lot with block/inline-block, etc. </p>
<p>Currently when the countdown hits around 945px, the 4 inline-block boxes stay as 4 columns and end up overflowing to ... | 2 | 1,512 |
java.lang.IllegalArgumentException: Event values must include an eventTimezone | <p>I m developing a app which need to add events to the native calendar in android.
I followed :
<a href="http://www.grokkingandroid.com/androids-calendarcontract-provider/#comment-341407" rel="nofollow">http://www.grokkingandroid.com/androids-calendarcontract-provider/#comment-341407</a>
<a href="http://developer.andr... | 2 | 1,027 |
JointJS create multiple links between elements | <p>I'm trying create a diagram <a href="https://i.stack.imgur.com/zAwq8.png" rel="nofollow noreferrer">like this</a> using JointJS.</p>
<p>However, when I'm adding multiple links between elements, I'm only seeing 1 link show up. How do I go about adding multiple links with automatically adjusted space between them?</p... | 2 | 1,052 |
As a root user can I execute commands in BASH as another user without requiring a password? | <p>I have a root user account on an RHeL server. On that server I have a simple script called <code>user.sh</code> that just returns the current user:</p>
<pre class="lang-sh prettyprint-override"><code>#!/bin/bash
echo $USER
</code></pre>
<p>when run from my root account the output is</p>
<pre><code>bash user.sh
&g... | 2 | 1,026 |
Dojo : ComboBox is not a constructor | <p>I am writing on a JavaScript application which uses the <code>dojo Toolkit</code>. I have made a folder in the dojo folder called "md" (My Dojo). There are 2 .js files in there <code>myownclass.js</code> and <code>myComboBox.js</code> . <code>myownclass.js</code> is for retrieving Informations from a <code>SQLite</c... | 2 | 1,047 |
JS resultset to JSON | <p>I have the following code cloned from XML output. I need the output to be a JSON object instead of an XML string but am missing something.</p>
<pre><code> public String evaluate() throws Exception
{
String itemTitle = "";
BoundStringBuilder data = new BoundStringBuilder();
TreeMap promptValues = Repo... | 2 | 1,094 |
Yup validation issue: Fields with their respective values present still says field is required | <p>I am using Yup validation along with formik. I have both initial values and validationSchema prepared and everything works fine during creating a form. But on updating the form, even when the values are pre-populated in their respective fields, still some of the fields say 'abc field is required'. (name and type fie... | 2 | 4,001 |
IntelliJ Android code style template with Android Studio removes spaces preceding plurals in strings | <p>I applied the <a href="https://android.googlesource.com/platform/development/+/master/ide/intellij/codestyles/AndroidStyle.xml" rel="nofollow">IntelliJ Android code style template</a> to an open-source project <a href="https://github.com/OneBusAway/onebusaway-android" rel="nofollow">OneBusAway Android</a> using Andr... | 2 | 1,398 |
Expand li element to fit content | <p>I am trying to get the parent li (menu item) to widen (horizontally) on hover to fit all of the ul li items (submenu items) without hardcoding a width so no text is floating or cut off.</p>
<p>I am making a menu using an unordered list. Each submenu item is within the li tags of the main menu. My menu is horizont... | 2 | 2,615 |
Can not get data table row selection in PrimeFaces, jsf? | <p>I'm working on a project. I need to get a list from MySql database and list it. I'm using JSF 2.1 Primeface 3.5 and Eclipse Juno. I run my code but it doesn't work. You can see my codes in below </p>
<pre><code> //LOGIN CLASS
import parts
@ManagedBean
@SessionScoped
public class Login {
privat... | 2 | 1,670 |
How to move element from one place to another? Does jQuery affect the HTML page structure | <p>If i have a list like this</p>
<pre><code><body>
<div id="carousel_container">
<ul id="carousel_ul" style="left: -130px;" >
<li><a href="#">Test 1</a></li>
<li>
<a href="#">Test 2</a>
... | 2 | 1,660 |
What's the difference between chef app and chef repo | <p>I found there are 2 ways to generate chef repo, and be confused by their similarity. I wonder which one is the recommended way, and why chef provide those commands. Maybe they are used in different context?</p>
<pre><code>$ chef generate app chef-app
$ chef generate repo chef-repo
$ diff chef-app chef-repo | colord... | 2 | 1,576 |
How to send post Object with retrofit 2 | <p>i have trouble sending a post request to my API. i need to send the data in a form like this</p>
<pre><code>userinfo:{
Name="sample",
Company="sample",
Contact="Contact"
},
Password="",
PasswordConfirm="",
TokenStr=""
}
</code></pre>
<hr>
<p>Do I need to use <code>@Body</code> annotation to send my Req... | 2 | 1,290 |
Entity Framework schema and connection change at runtime | <p>I need to do connection and schema changes at runtime using Entity Framework.</p>
<p>I tried the code from this: <a href="https://stackoverflow.com/questions/2663164/changing-schema-name-on-runtime-entity-framework">Post</a></p>
<p>I´m using that code:</p>
<pre><code> public EntityConnection SetCurrentEnti... | 2 | 1,143 |
How to write if condition inside where clause in linq | <p>I want to write if condition inside where clause. because if first name or last name is null I don't wani to add it in where clause . other wise I want to add it.</p>
<p>so I write </p>
<pre><code>var query1 = from opv in _opvRepository.Table
join o in _orderRepository.Table on opv.Order... | 2 | 1,164 |
JAX-WS Client won't accept blank namespace in SOAP Response | <p>I'm trying to pull data from a webservice using JAX-WS and code generated by <code>wsimport</code>. I'm able to send the request and get a response from the server, but JAX-WS is throwing an exception when it tries to read the response because no elements in the response body have a declared namespace.</p>
<pre><co... | 2 | 1,804 |
Cannot unpack array with string keys - passing multiple non-model data to mail view | <p>I am trying to pass non-model data to my email blade. I however keep getting this error.</p>
<p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
<div class="snippet-code">
<pre class="snippet-code-js lang-js prettyprint-override"><code>Cannot unpack array with string keys... | 2 | 1,089 |
Missing tools.jar for apt-maven-plugin on Ubuntu Java 8 | <p>I'm upgrading a maven project to compile with Java 8 from Java 7.</p>
<p>The installed java versions on my machine are</p>
<pre><code>pauloconnell@pauloconnell-HP-ZBook-15:~/$ update-java-alternatives -l
java-7-oracle 1076 /usr/lib/jvm/java-7-oracle
java-8-oracle 1077 /usr/lib/jvm/java-8-oracle
</code></pre>
<p>A... | 2 | 1,708 |
Why can't I run pdo_pgsql in my container? | <p>I am trying to use AWS RDS postgresql from my php app. I have modified the Dockerfile to contain
RUN apt-get update && apt-get install -y libpq-dev && docker-php-ext-install pdo pdo_pgsql
But it doesn't seem to run. I think this because when I (finally) ran phpinfo() from the container, I don't see i... | 2 | 1,753 |
Using Observable.interval() to advance time for "time blocks" stored in an array | <p>New to RxJava - looking for some feedback.</p>
<p>Scenario: I have a list of time blocks of various lengths (i.e one is 5 minutes long, another 30 seconds, etc). I use Observable.from to create an observable: <code>timeline = Observable.from(timeBlocks);</code> What I'd like to do is mix this with an interval obser... | 2 | 1,153 |
How to make border on section of tableview | <p>I have to make shadow on section of tableview in ios. I have tried to make this with this method of table cell but it's not working.</p>
<pre><code>(void)tableView:(UITableView *)tableView willDisplayCell:(UITableViewCell *)cell forRowAtIndexPath:(NSIndexPath *)indexPath
{
NSLog(@"Section:%ld row:%ld", indexPa... | 2 | 1,629 |
How to pass an array of vectors in pyOpenCL | <p>I'm moving a simulation into pyOpenCL and can't get my data access to work. I'm trying to supply a 1D array of vectors (well, actually several, but the example I've included just used one).</p>
<p>Currently, several vectors are copied over just fine, but then the data is simply not what I supplied.</p>
<p>I don't ... | 2 | 1,242 |
node kafka consumer group not receiving message when broker down | <p>I have a topic in kafka as <strong><code>internal</code></strong>. I have created the topic using the below command</p>
<pre><code>/opt/kafka/bin/kafka-topics.sh
--create --zookeeper zookeeper:2181
--replication-factor 3 -partitions 6
--topic internal
</code></pre>
<p>I need to consume all the me... | 2 | 1,384 |
Angular 2 Component with ngModel doesnt work | <p>Iam new in Angular 2,before posting I tried to search for a solution over the internet but I couldnt get solution.i will be thankful if some one will help me</p>
<p>my codes below works without ngModel </p>
<p>user.component</p>
<pre><code>import { Component } from '@angular/core';
@Component({
selector: 'user',... | 2 | 1,187 |
Android BottomNavigationView OnNavigationItemSelectedListener Code Not Running | <p>I am working on an app to provide students with schedules, etc. for a school. I am trying to implement the BottomNavigationView in place of independent buttons at the bottom of each tab. I have completed extensive research to find out how to use the BottomNavigationView, and successfully created several test apps. H... | 2 | 3,414 |
How to change Labels and Table View from another Class? | <p>I made an application, this application have a couple of functions. It has <code>Table View</code>, <code>Labels</code>, <code>Buttons</code> etc. I made a <code>Picker View</code> in a class called <code>SettingsViewController</code> that is useful for choosing language. I made it and it's working good but I don't ... | 2 | 1,283 |
Stacked Histogram in R ggplot with 100+ qualitative colors | <p>The data frame has many continuous numeric columns (e.g. <code>gr</code>) and a sample identifier - <code>wellseq</code>. There are many rows of data for each <code>wellseq</code>. In a data frame - there are 94 distinct levels of <code>wellseq</code> in 10227 rows. Header lines from data frame are:</p>
<pre><code>... | 2 | 1,164 |
Axis error in matplotlib.pyplot.streamplot | <p>I am trying to plot the streamlines of a flow. It is going to be a cylinder of diameter D = 1 inside an uniform flow.
The dominium goes x from 0 to 37.5 and y from 21.1 to 0 and the center of the cylinder is placed in P(10.5,12)</p>
<pre><code>matplotlib.pyplot.streamplot(x, y, uC, vC, \\
density=4, linewidth=0.5,... | 2 | 6,605 |
Breakpoints not being hit Mono For Android (Monodroid) | <p>My monodroid application builds and runs fine, but breakpoints are not being hit. This is both for physical devices and the emulator.</p>
<p>I created a new default monodroid application and it does hit break points.</p>
<p>I have tried rebuilding, restarting ADB, and rebooting. I am running VS2010, M4A version 4... | 2 | 1,140 |
c3p0 Connection Provider not set | <p>I am using spring an Hibernate and here is the Hibernate.properties
The problem is the Connection provider is not changing to c3p0ConnectionProvider even though there are c3p0 settings.THey are just loaded and nothing seems to be done with them.</p>
<pre><code> hibernate.show_sql=true
hibernate.hbm2ddl.auto=vali... | 2 | 3,530 |
C# multithreading with Monitor hangs | <p>I was reading for MSDN <a href="http://msdn.microsoft.com/en-us/library/system.threading.monitor.pulse%28v=vs.100%29.aspx" rel="nofollow">article</a>, which has some examples for managing threads with <code>Monitor</code> class. But occasionally running example on VS2012 in debug mode wasn't doing anything. I assume... | 2 | 1,473 |
JPA on google app engine Type ("XXX") is not that of an entity but needs to be for this operation | <p>Hi I have an entity class annotated with @Entity so it could be persisted with JPA on google app engine.</p>
<p>My class looks like this:</p>
<pre><code>@Entity
public class DataUrls {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Key key;
private String postalCode;
private List<String> ... | 2 | 1,810 |
D3 sunburst diagram: Setting arc.cornerRadius() causes invalid path with arcTween | <p>I try to create a dynamic sunburst chart, which zooms the selected arc and hides the other arcs. This works pretty well, as long as i avoid to use arc.cornerRadius() with a value greater than 0.</p>
<p>I logged the generated arc in the (attrTween) arcTween function and the output seems correct to me, but following ... | 2 | 1,522 |
C++ Linux Shell - Using Pipes, Fork, and Exec over a Command Vector | <p>I'm writing a shell for Linux in C++. My main concern is being able to pipe commands indefinitely. Example:</p>
<pre><code>ls | cat -A | cat -A | cat -A
</code></pre>
<p>To do this, I've parsed the input string and made several unix_command objects and push_backed them into a vector. The unix_command struct provid... | 2 | 1,183 |
Google Spreadsheet Script: Query(Importrange data not up dated when Cell Value is entered via script | <p>I am new to Scripting. </p>
<p>I have One Master Task List where in Status of all the Project assigned to other can be tracked. File Link: <a href="https://docs.google.com/spreadsheets/d/1WPi_YLm3XgfTRHYrLfK_8f2tgUQE-4SpHsjU0vR1bes/edit?usp=sharing" rel="nofollow">https://docs.google.com/spreadsheets/d/1WPi_YLm3X... | 2 | 1,432 |
Spreadsheet_Excel_Writer PEAR PHP - Generating with junk characters | <p>I am trying simple code for excel generation. but its coming with the below output. Any help.</p>
<pre><code> // Creating a workbook
$workbook = new Spreadsheet_Excel_Writer();
// sending HTTP headers
$workbook->send('test.xls');
//... | 2 | 3,680 |
Databricks Job API create job with single node cluster | <p>I am trying to figure out why I get the following error, when I use the Databricks Job API.</p>
<blockquote>
<p>{
"error_code": "INVALID_PARAMETER_VALUE",
"message": "Cluster validation error: Missing required field: settings.cluster_spec.new_cluster.size"
}</p>
</blockquote>
... | 2 | 1,093 |
Hibernate inserting null value? | <p>I am inserting a record into the database using Spring Data ReST Repository with Hibernate and Postgres database and for some reason a null value is being passed to a Boolean field (isActive field below) even though I do pass in the value from the ReST client. This is throwing a constraint violation exception as th... | 2 | 2,189 |
Spring MVC 3.2.4 @RequestMapping don't work | <p>Try to create restful service with spring mvc, but can't get access to it. After read tons of answers here all seems right, maybe you can see something.</p>
<pre><code>21.09.2013 10:50:33 org.springframework.web.servlet.DispatcherServlet noHandlerFound
WARNING: No mapping found for HTTP request with URI [/rest/book... | 2 | 1,308 |
Updating table fields with button click | <p>I'm trying to update cell in my table with the data from a drop down box in that row each time the button is clicked in that row. Each row has a drop down box and a button as you can see in this image:</p>
<p><a href="http://i.imgur.com/eVJumuk.png" rel="nofollow">http://i.imgur.com/eVJumuk.png</a></p>
<p>I'm try... | 2 | 1,043 |
PHP, Codeigniter, Dompdf: HTML generating fine but exectuion time out whlie rederning PDF | <p>I have large amount of data that needs to be process and add as tables in PDF using Codeigniter. PDF contain some HTML elements, images, icons, and need lots of alignment using CSS.</p>
<p>So, to achieve this goal I did some search and checked which PDF generation plugin will be suitable for me. So, rather than sel... | 2 | 1,064 |
How to increase RemoteWebDriver's HTTP request timeout | <p>I am using selenium "selenium-server-standalone-3.141.59.jar" and started hub and node as shown below. Hub is running on a Windows PC and the Safari node is on a MacMini.</p>
<pre><code>java -Xmx4000m -jar selenium-server-standalone-3.141.59.jar -host 192.168.160.116 -role hub -port 4444 -browserTimeout 300 -timeou... | 2 | 1,373 |
Kendo Grid Read Action Not Passing Data To Controller Via the .Data Method Call | <p>I have a Kendo Grid (MVC Razor) that I am trying to have pass extra data to the controller via the .Data call off of the Read method:</p>
<pre><code> @(Html.Kendo().Grid<AssignedSiteGridPoco>()
.Name("UnAssignedSiteGrid")
.Filterable()
.Sortable()
.Pageable(pageable => pag... | 2 | 1,230 |
SQLiteException:Could not open the database in read/write mode | <p>Try to load data from a local db file (preferably in SD Card).</p>
<p>I first check if sd-card is mounted before performing any operation.</p>
<pre><code> if (isExternalStorageWritable()) {
loadFile(SharedPref.getDBPath(this), new DataLoaderCallback() {
@Override
public void onDa... | 2 | 1,644 |
Exception parsing string to JSONObject (works at local server, but not at the online server) android | <p>the code:</p>
<pre><code>public JSONArray getJSONFromUrl(String url, List<NameValuePair> params) {
// Making HTTP request
try {
// defaultHttpClient
HttpClient httpClient = new DefaultHttpClient();
HttpPost httpPost = new HttpPost(url);
httpPost.setEntity(new UrlEncode... | 2 | 1,443 |
matplotlib error : loop of ufunc does not support argument 0 of type float which has no callable rint method | <p>This is my dataSeries :
df =</p>
<pre><code> count
17 83396.142857
18 35970.000000
19 54082.428571
20 21759.714286
21 16899.571429
22 19870.571429
23 32491.285714
24 40425.285714
25 30780.285714
26 11923.428571
27 13698.571429
28 28028.000000
29 52575.000000
</code></pre... | 2 | 2,176 |
The data property "bg" is already declared as a prop. Use prop default value instead. But, props doesnt include "bg" | <p>This code below makes an error.</p>
<blockquote>
<p>The data property "bg" is already declared as a prop. Use prop default
value instead.</p>
</blockquote>
<p>But as you can see, props don't include <code>bg</code>... Why this error happens?</p>
<pre class="lang-js prettyprint-override"><code><template>... | 2 | 1,191 |
Custom Build Files changes do not trigger project rebuild in VS 2017 | <p>In my C++ VS project I added a custom target to compile shader files and set it as a initial target. This is the project xml</p>
<p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
<div class="snippet-code">
<pre class="snippet-code-html lang-html prettyprint-override"><... | 2 | 1,154 |
The element type "tag" must be terminated by the matching end-tag "</tag>" | <p>The code below contains an error.</p>
<blockquote>
<p>The element type <code>"xs:sequence"</code> must be terminated by the matching
end-tag <code>""</code>, at 37:5, ie line 35 column 5.</p>
</blockquote>
<p>I think it's referring to this:</p>
<pre><code> </xs:element>
</code></pre>
<p>but... | 2 | 1,511 |
Ruby Watir to get specific html element of a page | <p>I have already try this one:</p>
<pre><code>puts browser.text
</code></pre>
<p>and it works. I would like to ask if it is possible to display or print only the specific element or html tags.
For example this one:</p>
<pre><code><button class="btn btn-add" data-role="add">Add New User</button>
</code><... | 2 | 1,127 |
UIActivityViewController UIActivityTypeMail ruining my mail urls | <p>I am trying to send an email from my app. I format the email in a custom ActivityProviderMessage along the lines of this:</p>
<pre><code>return [NSString stringWithFormat:@"<html><body>This is my html email body and
here is a very long url link: <a href=\"%@\">Long url link</a></body>&... | 2 | 5,140 |
Can't change text in JTextArea in Java | <p>I created a class that extends another class, so that I can get the JTextArea from the main class. I'm not getting any errors for some reason. When I get the text of the JTextArea it is the text that I changed it to, but it isn't showing up on the JTextArea. I am trying to open a txt file and get the text from the f... | 2 | 1,597 |
Servlet should accept POST and GET | <p>I try to implement a servlet which should be called either through POST or GET.</p>
<p>So I wrote something like this</p>
<pre><code> @Override
protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
this.doGet(req, resp);
}
@Override
protected void doG... | 2 | 1,348 |
System.NullReferenceException: Object reference not set to an instance of an object. bootstrap dropdownlist | <p>Model</p>
<pre><code>public class Employee
{
public int EmployeeID { get; set; }
public string Title { get; set; }
[Required(ErrorMessage = "Please enter first name.")]
[StringLength(500)]
public string FirstName { get; set; }
public string MI { get; set; }
... | 2 | 2,703 |
"gerrit: replicate: not found" even after installing replication plugin | <p>I am using gerrit for code review and I use, replication plugin to keep the repo in sync with github.com .</p>
<p>But, the replication is not working. It throws me error:</p>
<pre><code>[2014-01-16 11:23:04,694] ERROR com.googlesource.gerrit.plugins.replication.ReplicationQueue : Cannot replicate to git@github.com... | 2 | 1,293 |
Owin .AspNet.Correlation.*cookie not found issues | <p>I'm using .net. 4.5.2 and latest version on Identity in my application.
There are cases I get strange error from external login ".AspNet.Correlation.Google cookie not found." </p>
<p>In the logs I see the the I see the url "/signin-google?state=STATE FROM GOOGLE (I got it)" but "AuthenticationManager.GetExternalLo... | 2 | 1,157 |
Re-Draw google chart on button click / javascript | <p>I'm new to .js programming and I have a problem with google charts in javascript.
I'm using a simple HTML form where I enter some data, then on button click my script runs.</p>
<p>I would like the code to re-draw (or update) the chart on every button click.</p>
<p>The problem seems to be, that once the google libr... | 2 | 2,958 |
How to attach events to dynamically loaded subpages in jQueryMobile? | <p>I've the following code that uses jQueryMobile Sliders:</p>
<pre><code><!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8"/>
<meta name="viewport" content="width=device-width, initial-scale=... | 2 | 1,234 |
Codeigniter model not loading with no errors | <p>My Codeigniter model is not loading and i get no errors.
When i try to use $this->load->model('All_sensor_data'). Nothing Happens. I have no idea what is going on. I have tried changing names of files, Class Names, etc.. </p>
<p>BTW, that log message is never reached. I can remove the $this->load->model('all_senso... | 2 | 2,860 |
Split dictionary by keys in Python | <p>I would like to clarify this code, especially variables. I am a newbie in <code>python</code>. </p>
<p><strong>GOAL:</strong><br>
I would like split data dictionary <code>pairs</code> by <code>keys</code> of this dictionary. The output is list of lists of class <code>Ward</code>. I think, my solution is too compli... | 2 | 1,175 |
Do click/onclick not work for touchscreens | <p>I am using a website to display information in the form of a table. The user can click rows on the table to change their color, and I also have a button that allows the user to pause the refreshing of the page so that no new information is added. Both of these functions work on desktop, but not on touchscreen. My fi... | 2 | 1,334 |
Hibernate error in create entity manger [ java.lang.NoSuchMethodError: org.hibernate.cfg.Environment.verifyProperties(Ljava/util/Map;)V ] | <p>I'm using Hibernate as a provider for JPA in Java EE 6 and JBoss 7.1.1 Final. I searched for solutions but im new with hibernate and I don't fix the issue. Im getting this error:</p>
<pre><code>Exception in thread "main" java.lang.NoSuchMethodError: org.hibernate.cfg.Environment.verifyProperties(Ljava/util/Map;)V
a... | 2 | 2,805 |
Separator not showing in Adaptive Cards | <p>I've been trying to get the "separator" property of Adaptive cards to work, but it does not seem to be rendering in the BotFramework Emulator.</p>
<p>Here are images to the Emulator and the Visualizer for the same code: <a href="https://imgur.com/a/9XteYfD" rel="nofollow noreferrer">Emulator</a> <a href="https://im... | 2 | 2,786 |
Replace SNMP "Timeout: No Response from <IP_Address>" with Specific Text | <p>I have a script that queries OID details via SNMPWalk, the problem is when the certain IP (example is 172.20.36.8) is not reachable, it displays <code>Timeout: No Response from 172.20.36.8</code>. Is there a code that could replace that response from snmp query so that if it displays like that, I would like to appea... | 2 | 1,115 |
Two Views in one ViewModel (WPF/MVVM) | <p>PROBLEM: Use one single viewModel with two different views.</p>
<p>I have a <code>Window</code> with a control <code>ContentControl</code> which is binded to a property in the <code>DataContext</code>, called <code>Object MainContent {get;set;}</code>. Base on a navigationType <code>enum</code> property, I assign o... | 2 | 1,228 |
Yii2 search form without reload page | <p>I have a page with tab layout. I build a search form for the gridview. But everytime I used the search, it reload the page and take me back to the first tab. How can I solve that problem?</p>
<p>Here's my code:</p>
<pre><code><?php $form = ActiveForm::begin([
'options' => ['data-pjax' => true ],
... | 2 | 1,256 |
Android Web Services Using Rest - Error In SOAP Message | <p>I'm having a problem with getting a simple output from a web service using Android RESTful consumer. Below is my code and my output. However, I cannot seem to get a value returned from this web service. <a href="http://www.w3schools.com/webservices/tempconvert.asmx?op=CelsiusToFahrenheit" rel="nofollow">http://www.w... | 2 | 1,389 |
Sorting data into mulit-dimensional, hierarchical array with PHP | <p>I need to sort an array of objects hierarchically. The data looks like this:</p>
<pre><code>array (size=54)
0 =>
object(stdClass)[786]
public 'term_id' => string '1' (length=3)
public 'name' => string 'Boots' (length=25)
public 'parent' => string '0' (length=3)
1 =>
ob... | 2 | 1,361 |
How to create and include a zip file inside a tar using maven assembly plugin | <p>I have a project which is using a maven assembly plugin to include a bunch of files into a tar. Now I want to include a few more files in that tar, but first I want to zip them up and actually include that zip file.</p>
<p>I tried doing something like this: <a href="https://stackoverflow.com/questions/1522778/maven... | 2 | 2,031 |
heroku deployment of nodejs app - An error occurred in the application and your page could not be served. Please try again in a few moments | <p>I manually deployed an app on heroic (never done it before and just connected it to my github repository). It says deployed successfully but Im getting the error:</p>
<pre><code>An error occurred in the application and your page could not be served. Please
try again in a few moments.
If you are the application o... | 2 | 1,274 |
local storage-provisioner in rancher not creating the pvc | <p>We are trying to configure local-storage in Rancher and storage provisioner configured successfully.
But when I create pvc using local-storage sc its going in pending state with below error.</p>
<pre><code> Normal ExternalProvisioning 4m31s (x62 over 19m) persistentvolume-controller ... | 2 | 1,040 |
"Warning: Failed prop type" When using react-datepikcer with redux-form | <p>I'm using "react-datepicker" alongside "redux-form", and I keep getting this error in the console ...</p>
<pre><code>Warning: Failed prop type: Invalid prop `selected` of type `String` supplied to `DatePicker`, expected instance of `Date`.
</code></pre>
<p>The new version of "react-datepicker" is not using "moment... | 2 | 1,378 |
Double tap uitextview | <p>I just want to make my uitextview editable if the user makes a double tap on it.</p>
<p>But in my Code it only works once. After hiding the keyboard the double tap stops
working like I want to. It only shows the "copy and define" popup, if I try it a second time...</p>
<p>Maybe the "textViewDidEndEditing" is not ... | 2 | 1,283 |
Set enable/disable 3D mode with Highcharts | <p>I made a form to change values dinamically in my chart. I can change title, subtitle, etc, but... How can I change to set enabled or disabled 3D mode??</p>
<pre><code>$(document).ready(function () {
//Title inputText
$('#gra_title').blur(function(){
chart.setTitle({ text: $('#gra_title').attr("valu... | 2 | 1,320 |
upload a file using php script without leaving that page | <p>I am trying to upload a file in html using php script.</p>
<pre><code><html>
<body>
<form id='importPfForm' enctype="multipart/form-data" action="http://localhost/js/upload.php" method="post">
<input type="hidden" name="MAX_FILE_SIZE" value="1000000" />
Choose a file to upload: <... | 2 | 1,313 |
Spring Boot war file on tomcat: errorPageFilter cannot be cast to TomcatEmbeddedServletContainerFactory | <p>I'm trying to convert a simple Spring Boot app into a war file for deployment to my tomcat server but I keep on getting this error:</p>
<pre><code>Caused by: org.springframework.context.ApplicationContextException: Unable to start embedded container; nested exception is org.springframework.beans.factory.BeanCreatio... | 2 | 9,528 |
Facebook Messenger bot Generic Template Not Working | <p>I have created a Facebook Messenger bot which works fine. I have used the <a href="https://developers.facebook.com/docs/messenger-platform/send-api-reference/button-template" rel="nofollow noreferrer">Button Template</a> and Image template, and both work perfectly. But when I try the Generic Template, I get no respo... | 2 | 1,164 |
Hive will not write to aws s3 | <p>I have an external table in hive that is stored on my hadoop cluster and I want to move its contents into an external table that is stored on Amazon s3.</p>
<p>So I created an s3 backed table like so: </p>
<pre><code>CREATE EXTERNAL TABLE IF NOT EXISTS export.export_table
like table_to_be_exported
ROW FORMAT SER... | 2 | 1,694 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.