title stringlengths 13 150 | body stringlengths 749 64.2k | label int64 0 3 | token_count int64 1.02k 28.5k |
|---|---|---|---|
System.UnauthorizedAccess Exception: Access to the path c:\\ is denied | <p>I am uploading and retrieving documents to and from the DB.Uploading works great
But retrieving is what is causing the error
Here's the code for retrieving</p>
<pre><code>DataGridViewRow row = dataGridView1.CurrentRow;
int SelectedplantId = Convert.ToInt32(row.Cells["PId"].Value);
SQLiteConn... | 2 | 1,473 |
Webpacker::Manifest::MissingEntryError in App#index | <p>I've been trying to setup my dev environment using Rails v. 6.0.2.1 with webpacker creating a server on port 3035 while having a PostgreSQL database running on 5432. This is all done on windows, btw.</p>
<p>Essentially, I've been running into the issue that whenever I managed to get a steady connection to the datab... | 2 | 2,101 |
React-Bootstrap: TypeError: Unable to get property 'bool' of undefined or null reference | <p>I'm having a look at the componentes from <a href="https://react-bootstrap.github.io/components.html" rel="nofollow noreferrer">React-Bootstrap</a>, and I'm trying to test one of the forms:</p>
<pre><code>import React, { Component, PropTypes } from 'react';
import ReactDOM from 'react-dom';
import { Form, FormGroup... | 2 | 3,656 |
Get callback using IOKit using an Interrupt Input Endpoint | <p>I'm trying to get a grasp on IOKit and I feel I am close, but not there yet. So excuse my confusion.</p>
<p>I have managed to write code which detects my USB Device (a simple Button on the end of a USB cable which has a Windows Driver, but no Mac driver).</p>
<p>I'm trying to get some sort of callback when the but... | 2 | 3,830 |
Access a button from the form in other class in C# | <p>I want to know if a button is pressed in C# from another class. I have my standard class Form and another class Device. Now I want to access the button from InitializeComponent in Form in my class Device. Does anyone know a good way to do this?</p>
<p>EDIT: If I press on the btnInitialise I want to show a messagebo... | 2 | 1,904 |
active only One items in carsouel slider From the Dynamic COntent | <pre><code><section class="product_section">
<div class="container">
<div id="myCarousel" class="carousel slide" data-ride="carousel" data-interval="false">
<!-- Wrapper for slides -->
<div class="carousel-inner" role="listbox">
<?php $loop = new WP_Query( a... | 2 | 1,412 |
Javascript profiling mystery - closure variables | <p>I was testing performance (with chrome timeline) on cases if variable defined inside a closure. So it's values would not be exposed to user.</p>
<p>As expected <code>run_proto_fn</code> run few times faster and with minimal garbage collections, and low memory heap.</p>
<p>But <code>run_proto_obj</code> happened to... | 2 | 3,469 |
Can not install PHP-FFMpeg/PHP-FFMpeg library in laravel with composer | <p>I want to install php-ffmpeg/php-ffmpeg library in my app but it keeps giving me this error :</p>
<pre><code>composer require php-ffmpeg/php-ffmpeg
Using version ^0.11.1 for php-ffmpeg/php-ffmpeg
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including... | 2 | 14,329 |
android: layout background turns black after hiding another layout | <p>i have activity that display some info about school, and subscribe button
<img src="https://i.stack.imgur.com/rljgd.png" alt="enter image description here"></p>
<p>when the subscribe button is pressed, it shows another layout with edittext and button to enter subscription code
<img src="https://i.stack.imgur.com/l9... | 2 | 4,536 |
How to use camera in webview react native? | <p>I'm trying to capture image from a webview in react native and then display the same on my html page.</p>
<p>Problem: I cannot access camera and save images from webview.</p>
<p>Solution: I am capturing and saving the images using react-native-camera.</p>
<p>Next Problem: I want to display this above saved image ... | 2 | 1,118 |
Page redirect from modal popup | <p>I have a simple modal dialog box like below on a page, on click of Go button, the user should navigate to another page, based on selected option in the dropdown; which looks like <code>mysite.com/<cfoutput>#product_name#</cfoutput></code>; I get an error and it is taking me nowhere. I tried couple differ... | 2 | 1,232 |
Option Menu won't display | <p>i want to show my menu with action bar, but my menu won't display, this is my source code :</p>
<pre><code>public class EpolicyMainActivity extends TabActivity {
/** Called when the activity is first created. */
public void onCreate(Bundle savedInstanceState) {
//hide title bar
BasicDisplaySettings.toggleTa... | 2 | 2,567 |
How to programmatically load a Java card applet ( .cap file ) using java or java Applet | <p>How to programmatically load a Java card applet ( .cap file ) using java or java Applet.</p>
<pre><code>I'm trying to install an applet (.cap file) into a smart card. I read that can be done using APDU. I created my applet using Netbeans.
</code></pre>
<p>I have already created a .CAP file using Netbeans for my ap... | 2 | 3,222 |
Android - Class Html - fromHtml - How does it work? | <p>I'm using Html.fromHtml to get the contents of a description tag (in a feed XML) and it works fine</p>
<p>Description tag:</p>
<pre><code><description><![CDATA[<div class="K2FeedIntroText"><p><img style="margin: 10px; float: left;" alt="block curta" src="http://loc.grupolusofona.pt/images/s... | 2 | 1,120 |
Create controller logic for ASP.Net MVC for logged in user | <p>I have the following models:</p>
<pre><code>public class Expense
{
[Key]
[DatabaseGeneratedAttribute(DatabaseGeneratedOption.Identity)]
public int ID { get; set; }
[Required]
public string Name { get; set; }
[Required]
[Column(TypeName = "Money")]
public decimal Limit { get; set; }
... | 2 | 1,352 |
How to specify the prior for scikit-learn's Gaussian process regression? | <p>As mentioned <a href="https://scikit-learn.org/stable/modules/generated/sklearn.gaussian_process.GaussianProcessRegressor.html" rel="noreferrer">here</a>, scikit-learn's Gaussian process regression (GPR) permits "prediction without prior fitting (based on the GP prior)". But I have an idea for what my prior should b... | 2 | 1,154 |
Keep Child Gridview expanded on PostBack | <p>Having some issues with keeping Child Gridview expanded after postback. I have implemented answers from other questions, but the Gridivew still minimizes on postback. Any help or direction would be appreciated, thanks. </p>
<p><strong>JAVASCRIPT</strong></p>
<pre><code><script type="text/javascript" src="http:/... | 2 | 2,967 |
Reading and processing command output line by line in SSH.NET | <p>I am working on a home project that needs to execute some commands via SSH, read back the responses and display them on a web page. A lot of the time it does work, but now and then i get some inconsistent behavior, for example certain lines of output are missed that would instruct on what to do next, this results in... | 2 | 1,178 |
Dynamics CRM 2011 InvalidWorkflowException | <p>I have 2 custom entities and a list of Calendar rules which i'm trying to each parse to a separate list of a 3rd custom entity, 1 or 2 for each day. I then Union those lists together to make a final list which contains the right entities.</p>
<p>I'm now trying to debug the workflow before I finalize it by generatin... | 2 | 7,768 |
PHP Build calendar that loops through until current month | <p>I have a project im working on while learning PHP. I need to create a page that displays a link for a year and the months of that year on one line. Then it breaks and goes to the next year. Continuing this until the current year stopping at the current year and current month. Something like this:</p>
<p><code>2017 ... | 2 | 1,557 |
Parsing mathml document using JScience | <p>I was trying to parse mathml document using JScience but was not succeed. Following is my piece of code.</p>
<pre><code>import JSci.io.*;
import JSci.mathml.*;
.
.
public class ParsingMathML(){
try {
....
//inputFile is an xml file containing mathml code
InputSource file = new InputSource(new ... | 2 | 1,081 |
Refactoring big switch case to set property | <p>Hello, guys this is my first question I hope it is good \o/</p>
<p>So, first of all it is c# application that keeps receiving data over a socket, the first time a connect to the server and I make a request I receive this big string (with more than 100 fields), for the sake of the example I will make it smaller: </p... | 2 | 1,279 |
Search Functionality- How to display the Filtered data into listview | <p>I had parsed the data from website and made it to display in the listview this is my 2nd activity, in 1st activity there is a edittext and search button, after giving the keyword in editext based on that keyword able to get the related search results in toast, but i want it to be displayed in listview, this is the c... | 2 | 2,807 |
Launcher icon missing in Android | <p>When i execute the application it runs perfect, but the problem is I can not see the icon anywhere on the emulator, i am guessing it has to be something to do with the manifest.</p>
<p><strong>Manifest</strong></p>
<pre><code><manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="org.... | 2 | 2,487 |
bxslider only working on vertical scroll, not horizontal | <p>I'm trying to implement a bxslider on a website sidebar but for some reason it is only working when I set the mode to "vertical" when I set the mode to "horizontal," which should be the default, or put nothing at all for mode, the slider transitions do not work. I'm trying to accomplish a slider showing 1 slide at a... | 2 | 1,727 |
Export an HTML table to Excel | <p>I have made an application which populates a table based on a JSON-dataset and I would like to store the data I filter to a Excel file (or CSV even). I have two script files, app.js and mainController.js (separating to get cleaner code), one view and the index file (and bootstrap of course). Here's the app.js:</p>
... | 2 | 1,442 |
Spring Hibernate ManyToMany | <p>I have 2 tables, VIDEO, VIDEOCATEGORY and joining table VIDEO2VIDEOCATEGORY.
I am trying to make many to many annotation. There is no error or warning in compilation. </p>
<p>Database is empty in the begining. I try to persist Video entity(with list of VideoCategory)..at this time is all correect. New video is add... | 2 | 2,363 |
Building an web based image annotation tool - saving annotations to localStorage | <p>I am building a web application for annotating images. The work flow is as follows:</p>
<ol>
<li>Select a project - using : action = list all sub-projects</li>
<li>Click on a sub-project : action = fetch all the images within-sub project</li>
<li>Display the images as a horizontal scrollable thumbnail gallery</l... | 2 | 1,212 |
OpenCV egg count python | <p>I did an egg counting using openCV and python and I did get help from here <a href="https://stackoverflow.com/questions/26932891/detect-touching-overlapping-circles-ellipses-with-opencv-and-python">egg detection</a></p>
<pre><code>while True:
(grabbed, frame) = cap.read()
hsv = cv2.cvtColor(frame, cv2.COLOR_BG... | 2 | 1,446 |
Invalid JSON Response from datatable server side | <p>I'm using the jQuery Datatable plugin and started doing a server-side activation due to the large volume of data being registered.</p>
<p>I did everything with the same basics, just as it is in the documentation, but when loading it it informs an alert:</p>
<blockquote>
<p>Warning DataTables: table id = example ... | 2 | 1,594 |
Download eBay shipping charges through Excel 2010 VBA | <p>I am trying to download non-free shipping charges from eBay. I have the item numbers of the pages. The links should go to the right pages on eBay.</p>
<p>While trying to go to the page and download the data, Excel hangs.</p>
<p>I have similar working code that gets the eBay item numbers on many pages from eBay.<... | 2 | 1,092 |
Java RMI Eclipse ClassNotFound and .lookup(Unknown Source) in client/server/both | <p>the problem seems to be quite popular -> ClassNotFoundException when running RMI server using Eclipse IDE... Sure, I digged deep in every possible way of setting the codebase parameter in RMI Eclipse Plugin from <a href="http://www.genady.net" rel="nofollow">http://www.genady.net</a> nothing worked with that code in... | 2 | 1,938 |
listSelector for Group Header and Child Layout in ExpandableListview not working android | <p>I am using <code>ExpandableListview</code> that displays data dynamically from server.</p>
<p>I used selector for <code>Group Header</code> and <code>Child Layout</code>, but I can't notice any selector that reflects.</p>
<p>Pls help me how to get this done.</p>
<p>Thanks in advance.</p>
<p>row_highlighter.xml</... | 2 | 1,243 |
Hover/mouseover not firing in IE, image in the way | <p>I have a div and within that div is an image, and layed on top of those is 2 divs which have jquery hover attached to them (same issue with onmouseover though, so not jquery).</p>
<p>Problem is when the image is loaded, even though the divs are layed on top of the image they won't fire because the image is always o... | 2 | 1,271 |
Disable Multiple Form and enable one form Based on Condition in Javascript or jquery | <p>I have four form like <code>form-1</code> , <code>form-2</code> , <code>form-3</code> , <code>form-4</code> and three <code>Buttons</code> as <code>Button-1</code>, <code>Button-2</code> , <code>Button-3</code>.</p>
<p>When first jsp page load it has form elements which will display on the screen.</p>
<p>Now my qu... | 2 | 1,034 |
PHP Facebook SDK 4.0 post as a page server to server | <p>I'm trying to post as a page on a Facebook page since 6 days without success, which is really frustrating using new facebook SDK 4.0.4.</p>
<p>I'm under PHP 5.4 (as requested by Facebook 4.0 SDK version).
I already read some times all the facebook documentation (which isn't so clear) <a href="https://developers.fac... | 2 | 2,482 |
How to use onload function in rails view? | <p>I'm want to load a function when the form is completely loaded.
This is my controller with the function which receive the ajax:</p>
<pre><code>def get_component_from_work
@work = Work.find(params[:work_id])
@components=@work.components
@work = Work.find(params[:work_id])
@start = @work.start_date_of_work
... | 2 | 4,516 |
selenium webdriver trigger chrome but doesn't open the get url | <p>I am trying to run my tests against chrome, but chrome is triggered without navigating to the url that the get() method has here bellow is my code: </p>
<pre><code>public void startSelenium() throws MalformedURLException {
driver = getDriverInstance( "http://localhost:4444/wd/hub", "chrome");
}
p... | 2 | 2,523 |
Place part of form-group in different column using Bootstrap Grid | <p>I want to place the search button in the column next to the input form using the Bootstrap grid, but since both the "input" tag and "button" tag must be in the div with the "form-group" attribute, this makes things difficult.</p>
<p>This is my original code:</p>
<pre><code><div class="row">
<d... | 2 | 1,192 |
Flexbox and fixed side navbar | <p>I'm learning css and html basics and got into trouble. My side flexbox (aside1) does not contain my side navbar (content). The navbar is covering the main flexbox (main). I turned over the web but did not find a solution which would work. </p>
<p>Also my third flexbox (aside-2) takes automatic height but I want it ... | 2 | 7,278 |
Create chatroom with XMPP framework and Ejabberd in iOS | <p>Basically I'm trying to create a chatroom with all registered users on my domain using a ejabberd server. So a user can see all other online registered users on that domain when he enters the chatroom.</p>
<p>Until now I've only been able to make all the users 'friends / buddies' visible and deliver a notification ... | 2 | 1,227 |
Installing symfony2 cmf composer issues | <p>Pretty new to Symfony, I want to get the CMF to work but I'm having issues installing it using composer</p>
<p>When running the code in terminal I get this</p>
<blockquote>
<p>Warning: The lock file is not up to date with the latest changes in composer.json. You may be getting outdated dependencies. Run update t... | 2 | 1,566 |
Cant resolve scss loader in Vuejs element ui template | <p>Hi i was trying to use element ui template for vue js 2. I have followed this guide <a href="http://element.eleme.io/#/en-US/component/quickstart" rel="nofollow noreferrer">http://element.eleme.io/#/en-US/component/quickstart</a> but i am getting an error of Module not found : cant resolve scss loader in file App.v... | 2 | 1,448 |
dplyr / R cumulative sum with reset | <p>I'd like to generate cumulative sums with a reset if the "current" sum exceeds some threshold, using dplyr. In the below, I want to cumsum over 'a'.</p>
<pre><code>library(dplyr)
library(tibble)
tib <- tibble(
t = c(1,2,3,4,5,6),
a = c(2,3,1,2,2,3)
)
# what I want
## thresh = 5
# A tibble: 6 x 4
# ... | 2 | 1,190 |
GRPC client is not working | <p>when i'm running the grpc client i'm getting the following error.my grpc-server is working well ....................................................................................................................................................</p>
<pre><code> mvn exec:java -Dexec.mainClass="com.example.grpc.client... | 2 | 5,580 |
React radio button button checked attribute not working | <p>I have a react component that resembles a radio button input section. I have the checked attribute on each radio input set to a true or false expression, but it does not end up working when I run it.</p>
<p>Any idea on why the item isn't being lit up when a new item is selected? When I log the expression (console.lo... | 2 | 1,046 |
Classmethods in Generic Protocols with self-types, mypy type checking failure | <p>A little background, I essentially need to define an <code>int</code> wrapper type, say <code>MyInt</code> (among some other classes), and another generic <code>Interval</code> type which can accept <code>MyInt</code> objects as well as other types of objects. Since the types acceptable by the <code>Interval</code> ... | 2 | 2,761 |
How can I do a case insensitive sort of NSFetchedResultsController that also ignores words like "the"? | <p>I'm working on a Core Data driven app that has 2 entities requiring special sorting considerations in the <code>NSFetchedResultsController</code>.</p>
<p>The simpler case of the 2 just requires ignoring "The" so that (& I'm citing real data examples) The Planting Festival follows Peats Ridge Festival in the sor... | 2 | 1,807 |
ObservableList throwing NullPointerException | <p>I am adding some elements to an <code>ObservableList</code> in <code>JavaFX</code> and after adding some items I start getting <code>NullPointerException</code> for all the items I add. According to the <code>JavaDoc</code> the <code>add()</code> method throws <code>NullPointerException</code> when:</p>
<blockquote... | 2 | 2,765 |
How to Create Forground Service Never Stop when Application is Inactive | <p>I have created one application in which I want to start service First time open the application.when application is in foreground Every 5 or 10 minutes Local Notification received.but Notification received only When Application Active or Recent app.When Clear the Recent app Notification Does't receive.I wanted this ... | 2 | 1,932 |
Can't connect to oracle database from php | <p>I'm having problem connecting to mydatabase from php. I can connect with no problems from my C# code like that:</p>
<pre><code> private void test()
{
string connect = "Driver={Microsoft ODBC for Oracle};CONNECTSTRING=(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=localhost)(PORT=1521))(CONNECT_DATA=(SER... | 2 | 1,127 |
Getting "The compiler is unable to type-check this expression in reasonable time; try breaking up the expression into distinct sub-expressions" | <p>Currently I'm learning SwiftUI and there's a problem which I am facing. Compiler is unable to type check the expression.</p>
<p>It all started when I added Text(update.date). Also, Update is the structure which I have created where one of the data members is date of type String.</p>
<p>Is it related to the length of... | 2 | 1,246 |
Dev express Grid View – Column Visible Index property giving un expected output | <p>I have dev express grid view, and trying to set column visibility run time, Some columns are not appearing in correct order i.e. <code>RebateAmount</code> i want to set to appear at 4th position but its appearing always on second position, any idea what's wrong in below code? i want all columns should be appear at p... | 2 | 1,244 |
Python, iterating through a list to perform a search | <p>I hope someone can point out where I have gone wrong. I am looking to iterate through the 'mylist' list to grab the first entry and use that first entry as a search string, then perform a search and gather particular information once the string is found and post it to an Excel worksheet. Then I am hoping to iterat... | 2 | 1,386 |
Assign Common ID to multiple row insert from MySQL array | <p>I have a PHP script that inserts rows into a table based on selected rows from a MySQL array. </p>
<p>the code to insert the rows into the new table is:</p>
<pre><code>$sql="insert into loaddetails (CaseNo,GrossMass,CaseStatus,Customer)
select `case no`,`gross mass`,`case status`, customer from
availablestock wher... | 2 | 2,153 |
C# - Check file size while writing - Change file in middle | <p>I am looping through directories and getting the files within
While looping, I am writing the file's fullpath name to a file using a StreamWriter
My problem is that I have to control the size of the file - it cant exceed 60K</p>
<p>How can I accomplish this?</p>
<p>I tried changing the streamwriter in the middle o... | 2 | 1,045 |
Can't connect PhpStorm with xdebug with Docker | <p>I have the following Dockerfile:</p>
<pre><code> FROM php:7.0-fpm-alpine
RUN apk add --update --virtual build_deps gcc g++ autoconf make &&\
docker-php-source extract &&\
pecl install xdebug &&\
echo "zend_extension=$(find /usr/local/lib/php/extensions/ -name xdebug.so)" > /usr/lo... | 2 | 2,541 |
PHP $_SERVER['SCRIPT_NAME'] is wrong when loading PHP via mod_fcgid | <p>I'm using Apache 2.4.7 and PHP 5.5.7.</p>
<p>I have a <code>test.php</code> file in <code>C:\web\vhosts\Symfony\web</code>.</p>
<p>The value of <code>$_SERVER['SCRIPT_FILENAME']</code> is correct:</p>
<pre><code>C:/web/vhosts/Symfony/web/test.php
</code></pre>
<p>However the value of <code>$_SERVER['SCRIPT_NAME'... | 2 | 1,092 |
Sending Image (JPG) through Socket in C using raspberry pi and windows | <p>I'm writing a C program in order to be able to transfer an image file continously between raspberry pi and windows pc computer (from server raspberry pi to client pc) using TCP/IP sockets but there seems to be an error after sending for the 1017th time ,the server quits by stating segmentation fault , i mean in a ... | 2 | 3,490 |
xslt: create new node from mixed content within parent element | <p>I'm trying to write a template that will grab a mixture of text nodes and elements within a parent element and create a new node. I've done a lot of searching and couldn't find what I was looking for...so hopefully I'm not asking to basic a question. </p>
<p>Here is a sample of xml I want to transform:</p>
<pre><c... | 2 | 1,328 |
ImportError: cannot import name 'disk' from 'skimage.draw' | <p>**</p>
<pre><code>I am new to the python interface. I am importing the numpy, scipy , gradient descend libraries . And By using the skimage I am importing imread and rgb2gray .By using the scipy library I am using the signal function .With gradient descent I am converting the image into imgray .Then I am applying th... | 2 | 1,240 |
Magento Custom Module won't show in Admin - What am I overlooking? | <p>Hello All & thanks in advance! <strong><em>New to This</em></strong></p>
<p>I have been racking my head trying to discover why both my module and admin options won't show in Magento's backend. I have tried adding adminhtml.xml info, tweeking my config.xml & system.xml files, but no cigar. I had a look at... | 2 | 6,049 |
python asyncio.Event.wait() not responding to event.set() | <p>The plan is to have several IO routines running "concurrently" (specifically on a Raspberry Pi, manipulating IO pins and running an SPI interface at the same time). I try to use asyncio to make this happen. However, my simple try-out refuses to run.<br>
This is a reduced version of the code, leaving out the IO pin d... | 2 | 1,165 |
Praw AttributeError: can't set attribute | <p>I coded a reddit bot that will search through a subreddit's comments, and if a comment says feels it will reply to it. It then writes the comment id into a text file so that it never comments on the same comment twice.</p>
<p>Here is the code:</p>
<pre><code>import praw
import time
import sys
import random
r = pr... | 2 | 1,914 |
Firefox XUL toolbar problem with javascript getElementById | <p>I'm writing my first Firefox XUL toolbar, and am getting a strange behavior - in order to debug my code, I call the same js function from both the firefox toolbar and from a button on a very simple HTML file I created.</p>
<p>The javascript function displays an alert window, gets an element using 'document.getElemen... | 2 | 1,354 |
Why is 'box' instruction emitted for generic? | <p>Here is fairly simple generic class. Generic parameter is constrained to be reference type. <code>IRepository</code> and <code>DbSet</code> also contain the same constraint.</p>
<pre><code>public class Repository<TEntity> : IRepository<TEntity>
where TEntity : class, IEntity
{
protected readonly... | 2 | 1,746 |
Android Volley error while fetch JSON data | <p>I have a JSON file in my localhost and I'm trying to fetch all it's data on my android application using Volley Requests.
Now, while I try to fetch my Parsed data (using JSON) I got some unknown errors! I'm using my emulator to test my application.</p>
<p>here is my JSON File:</p>
<pre><code>{"dolaaye_posts":[{"id... | 2 | 2,830 |
gstreamer android ndk-build error undefined reference to 'xx' | <p>I use streamer at Click [here]<a href="http://docs.gstreamer.com/display/GstSDK/Installing+for+Android+development" rel="nofollow">http://docs.gstreamer.com/display/GstSDK/Installing+for+Android+development</a>.
But when i ndk-build , it error .who can help me ,thinks!</p>
<p>Platform:
ubuntu 12.10 x64</p>
<p>Log... | 2 | 6,908 |
SonarQube analysis failed | <p>I'm working with SonarQube 6.1 and I'm on a Symfony 2.8 project.</p>
<p>When I run an analyse with sonar-scanner, I get an ANALYSIS SUCCESSFUL but the result is failed with in my logs : </p>
<pre><code>Error Details
org.sonar.server.computation.task.projectanalysis.component.VisitException: Visit of Component {ke... | 2 | 1,481 |
Determine the empty grid placeholder in the gridview and place the touched grid in the empty grid placeholder | <p>I have a question regarding GridView implementation. The GridView which has been created in my project, is a 3 X 3 gridview. Each grid is consist of random numbers. This gridview is not a fully fledged 3 X 3 grid but rather there are only 8 grids in the gridview. The reason is that I am creating a <b>sliding game ... | 2 | 1,953 |
highlighting the word in java | <p>I am triying to highlight a word, but only .length()-2 at 1st time,delay and then last 2 words.The first words are highlighted but it is not highlighting the last two words after delay.please help.
here is the code:</p>
<pre><code>import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.event.ActionEven... | 2 | 2,182 |
argparse - how pass to a method with kwargs or argv | <p>I've been looking for a way to use <code>**kwargs</code> or <code>*argv</code> with <code>argparse</code>. I will from hard code to a dynamic way.</p>
<p>Here is my hard code and a example how I will use it.</p>
<pre><code>def get_parser():
parser = argparse.ArgumentParser()
parser.add_argument("-r",
... | 2 | 2,135 |
set base path in IISExpress and webapi in ASP.NET 5 | <p>I need to have WebAPI project working under different base path than usual. I created simple project under Visual Studio that uses WebAPI and ASP.NET 5.</p>
<p>Under base path set to <a href="http://localhost:38170/" rel="nofollow noreferrer">http://localhost:38170/</a> my project works fine and I'm able to get val... | 2 | 1,185 |
Put a view on top of AppBarLayout | <p>I am working on a UI that utilizes the <code>CoordinatorLayout/AppBarLayout</code> combo as normally seen in most examples but there is this requirement of mine: I want to overlay the <code>AppBarLayout</code> with a View at all times. So, whatever scrolling behavior that happens, should happen under this view. Curr... | 2 | 1,814 |
Bing search API limit and restricting to single page per domain | <p>I've used Bing Search API 7-day trial (Guest) to get search results based on a term.</p>
<p>I'm using the same code as specified in <a href="https://docs.microsoft.com/en-us/azure/cognitive-services/bing-web-search/quickstarts/php" rel="nofollow noreferrer">https://docs.microsoft.com/en-us/azure/cognitive-services/b... | 2 | 1,271 |
Reading data from MySQL and writing in GCP Bucket using Apache Beam Python API | <p>I'm trying to read data from MySQL database (located in GCP) and writing the same in GCP Bucket. I want to use Python SDK for the same. Below is the code I've written.</p>
<pre><code>from __future__ import generators
import apache_beam as beam
import time
import jaydebeapi
import os
import argparse
from google.clo... | 2 | 7,598 |
Showing built-in Error View for MVC 3 | <p>I followed this <a href="http://blogs.msdn.com/b/gduthie/archive/2011/03/17/get-to-know-action-filters-in-asp-net-mvc-3-using-handleerror.aspx" rel="nofollow">tutorial</a>, but I am still receiving the ASP.NET screen that says to turn on Errors do this, or to show custom error page do this.</p>
<p>I have registered... | 2 | 1,086 |
'There is an error in XML document (30, 10)' error while returning difference type from XML element type | <p>I have a XML file. I want map it to an object. one of xml elements is string and I want to convert this string to int value of an Enum in set section of property. then return this int value, but when file reader want to deserialize my XML file to object, I get runtime error which says "There is an error in XML docum... | 2 | 1,571 |
Calling HTML files and Javascript from QML | <p>I have one HTML file which I need to call from QML. My HTML file uses ajax programming. I get an error saying "undefined variable $ ajax". Is there a library I need to use to solve this issue?</p>
<p>main.qml--From My main.qml file, I am calling boot.htm file. On my boot.htm file, I will call my javascript file. </... | 2 | 1,209 |
Babel 6 - Async arrow function "this" points to function | <p>Babel 6 with these settings</p>
<pre><code>require("babel-register")({
extensions: [".es6", ".es", ".jsx", ".js"],
plugins: ['transform-runtime'],
presets: ["es2015", "stage-0"]
});
</code></pre>
<p>Acts unexpectedly, The this reference differs between a regular arrow function and a async arrow function. So ... | 2 | 2,245 |
executeQueryAsync synchronously in each loop for sharepoint javascript model | <p>I am performing looping in javascript for sharepoint. I want it to perform synchronously, means only after first data execution is done it should start with second. If first data execution is completed (whether it success or fail) then only it should start with second in each loop. </p>
<pre><code>$.each(selectedSi... | 2 | 1,834 |
Regular Expression (regex) to Parse HTML Segment | <p>I am currently trying to come up with a regular expression that will parse out something like the following:</p>
<p><strong>ORIGINAL HTML:</strong></p>
<pre><code><td align="center"><p>line 1</p><p>line 2</p><p>line 3</p></td>
</code></pre>
<p><strong>INTENDED HTML:... | 2 | 1,095 |
Dynamic tabs and load page in the tabs without using iframe in twitter bootstrap | <p>I am using twitter bootstrap. I have a menu and I want to add a dynamic tab when user click on the menu. New tab will load another page but I don't want to use iframe for loading the page.</p>
<p>Do you guys have any solution for that?</p>
<hr>
<pre><code><!DOCTYPE html>
<html lang="en">
<head>... | 2 | 7,267 |
onclick show and hide data in react.js | <p>i have component which is showing data in the webpage
I want to write another component and create buutton in it. which just hide other component on clicking the button and show basic input field form.</p>
<p>My code is something like this</p>
<p>component app</p>
<pre><code> class App extends React.Compone... | 2 | 1,090 |
BUILD FAILURE: No main.py(o) found in your app directory | <p>I am a beginner in kivy and trying to build an app using Ubunto microsoft app on windows 10
any kind of help will be appreciated.</p>
<p>Although I put it in same location of the buildozer.spec I keep getting this error :</p>
<p>BUILD FAILURE: No main.py(o) found in your app directory. This file must exist to act ... | 2 | 4,799 |
Use HDF5 from minGW on windows | <p>I'm trying to compile and link to HDF5 with a Fortran program, but I'm getting a run-time error. I've followed closely the procedure described in the answer to this question</p>
<p><a href="https://stackoverflow.com/questions/20048938/use-hdf5-from-intel-fortran-on-windows">Use HDF5 from intel fortran on windows</a... | 2 | 1,717 |
How can I embed VaniilaJS into React? | <p>I have open source library that I want to use. the library wrote in clean vanilla js:
follow their docs, if I want to use the library:</p>
<pre><code><html>
<head>
<script src="./jquery-2.0.3.min.js"></script>
<script src="./kinetic-v5.1.0.min.js">... | 2 | 1,146 |
Django: How to reduce stock quantity when an order is made? | <p>My goal is to reduce stock quantity when an order is created.
My stock item is a Tyre.
The tyre has a model field for quantity.</p>
<p>Here is my views.py</p>
<pre><code>from django.shortcuts import render, redirect
from .models import OrderItem
from .forms import OrderCreateForm
from cart.cart import Cart
from stoc... | 2 | 1,101 |
XSLT error "Cannot find a script or an extension object associated with namespace 'http://schemas.microsoft.com/WebParts/v2/DataView/runtime'" | <p>I'm getting an error in my SP2013 app that it's not finding a schema that is explicitly defined. Am I defining this incorrectly? Can someone shed some light on how it should be defined? I'm adapting Sharepoint's OOTB XSLT for an RSS view webpart. Here is the XSLT:</p>
<pre><code><xsl:stylesheet xmlns:x="http://w... | 2 | 3,464 |
AngularJS paging | <p>I made AngularJS pagination with spring mvc It works well ,but the application get a large amount of data from database so the application is very slow when I get first page because it get all records,Can anyone help me to solve this problem?I want to get subset of data from database depending on angularJS paginatio... | 2 | 2,049 |
Getting error 29285. 00000 - "file write error" *Cause: Failed to write to, flush, or close a file when trying to FFLUSH | <p>As part of a project, I'm working on data mapping of the peoplesoft records and fields in use at our company. There are more than 25K fields that I have to document but it gets tedious and will take a much more time than I have if I did it normal way. So, I wrote a stored procedure to reduce some of the work in docu... | 2 | 5,426 |
Kernel Module to identify whether the keypress was from a browser window | <p>I have a basic key-logger kernel module that logs all the key-presses on to the syslog. I need to log only those key-presses made in a browser. Is there any way to find the process id of the application that caused the interrupt? Also, is there any way to save the keypresses to a file? could anybody help pls.. :)</p... | 2 | 1,477 |
Message: mysql_real_escape_string() expects parameter 2 to be resource, boolean given Filename: mysql/mysql_driver.php Line Number: 346 | <p>I am using the following code to select from a MySQL database with a Code Igniter webapp:</p>
<p>My Model</p>
<pre><code><?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
class m_login extends CI_Model{
function __construct(){
parent::__construct();
}
public function validate(){
... | 2 | 1,301 |
jquery on click, on page load add class | <h1>Solved</h1>
<p>1st this was created for another problem, but i solve it because of some sloppy moves by me...anyway i got another problem and that is adding class <code>current</code> on <code>li</code>, with <code>data-tab="tab-1</code>, on page load.
<div class="snippet" data-lang="js" data-hide="false">
<div c... | 2 | 1,326 |
Trying to understand setf + aref "magic" | <p>I now have learnt about arrays and <code>aref</code> in Lisp. So far, it's quite easy to grasp, and it works like a charme:</p>
<pre><code>(defparameter *foo* (make-array 5))
(aref *foo* 0) ; => nil
(setf (aref *foo* 0) 23)
(aref *foo* 0) ; => 23
</code></pre>
<p>What puzzles me is the <code>aref</code> "mag... | 2 | 1,026 |
How can i recognize the callout which is been selected in MKMapView? | <p>I have a map view on which i am displaying a number of Pin annotation. I have also used the callout on these pins so now when somebody clicks on those pins a callout appears with the detail about that place and now i want to recognize the callout and push another view specific to that.
Here's the code:</p>
<pre><co... | 2 | 1,297 |
Bootstrap button goes outside of screen width on mobile | <p>My bootstrap button goes outside of the screen width on mobile. How do I fix it so it renders correctly on mobile? For some reason the mobile button is off the screen to the right and the background image shrinks it's width so it doesn't cover the full width of the screen.</p>
<p>Here's my HTML:</p>
<pre><code> &... | 2 | 1,107 |
Slider Hide/Show Google Map Markers | <p>I have a Google Map that renders markers and one of the arrays I build within the markers is <strong>arrTimeStamp</strong> This captures an integer 0 - 24 representing the hour a user logged in. The slider displays 0 - currentHour (which is the current time rounded to the hour). What I wish to do is hide/show the ... | 2 | 1,928 |
Camera crashes after taking photo in emulator | <p>I'm working on an app that brings the user to the camera via an <code>Intent</code>. I've been working inside the code of the Notepad demo. The problem occurs when I take a photo and confirm it. The app crashes and logcat gives me this:</p>
<pre><code>04-10 20:18:29.896: D/gralloc_goldfish(6154): Emulator without G... | 2 | 2,033 |
How to solve java.lang.NoSuchFieldError: No field Companion of type Landroidx/compose/runtime/SlotTable$Companion? | <p>I am getting this error multiple times in all my Jetpack compose projects. Is this error an issue related to the Gradle? Because I have not changed anything to the Theme.</p>
<pre class="lang-java prettyprint-override"><code>java.lang.NoSuchFieldError: No field Companion of type Landroidx/compose/runtime/SlotTable$C... | 2 | 1,267 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.