title stringlengths 13 150 | body stringlengths 749 64.2k | label int64 0 3 | token_count int64 1.02k 28.5k |
|---|---|---|---|
Java window builder: runtime error | <p>I create very simple Gui using WindowBuilder plugin for Eclipse. I'm using Swing (maybe a problem?)
I've got plenty of runtime errors:</p>
<pre><code>Exception in thread "AWT-EventQueue-0" java.lang.NoClassDefFoundError: com/jgoodies/common/base/Preconditions
at com.jgoodies.forms.layout.FormSpec.<init>(F... | 0 | 1,752 |
Proxy configuration is not working in angular 6 | <p>I have metronic_v5.5.2 Angular Version and I am trying to integrate Its angular version with my backend API.</p>
<p>As I am pretty new to all this, Now the issue is with my proxy configuration that is not working according to my expectations. </p>
<p>The following is the code of proxyconfig.json file</p>
<pre><co... | 0 | 3,581 |
Why do we use drawable v24 in android? | <p>We have a drawable file already in drawable v21 also for ripple effect.
So why we use drawable v24 when we are getting vector file already.</p>
<p>Below is the xml File <strong>ic_launcher_foreground.xml</strong>. </p>
<pre><code> <vector xmlns:android="http://schemas.android.com/apk/res/android"
... | 0 | 1,399 |
Insert JSON into an existing MongoDB collection | <p>I understood my mistake :) Thanks guys.
I have one more Question, suppose i have multiple documents with the below structure in "Customer" collection.</p>
<pre><code>{
"customerId":100,
"FirstName":"xyz",
"lastname":"pqr",
"address":[
{
"house":44,
"city":"Delhi",
... | 0 | 1,042 |
Mail.php & Smtp Authentication Issue | <p>I've been trying to utilize a mail.php file from the jquery contactable plugin (found on google!) to use on my website. Although the script provided is fairly simple I'm running into issues with integrating it with my Host's SMTP requirement. Here is the original script without SMTP authentication: </p>
<pre><code>... | 0 | 1,574 |
How to send OpenCV video footage over ZeroMQ sockets? | <p>I've got a simple webcam which I read out using OpenCV and I'm now trying to send this video footage to a different (Python) program using <a href="http://zeromq.org/" rel="noreferrer">ZeroMQ</a>. So I've got the following simple script to read out the webcam and send it using a ZeroMQ socket:</p>
<pre><code>import... | 0 | 1,055 |
How to setup rollup for css modules in TypeScript | <p>I managed to import css modules in my Typescript React Class using <a href="https://www.npmjs.com/package/typescript-plugin-css-modules" rel="noreferrer">this plugin</a> from npm.</p>
<p><em>tsconfig.json</em></p>
<pre><code>{
"compilerOptions": {
"target": "ESNext",
"outDir": "build",
"jsx": "react"... | 0 | 1,538 |
Installing Git on a Debian Lenny server | <p><em>Sorry in advance if there's already an answer for this somewhere in the world, but I'm already 3h trying to install this in my PRODUCTION server, and I'm not getting anywhere.</em></p>
<p><strong>My needs:</strong></p>
<hr>
<p>I want to run git commands (eg.: push, commit, etc) on my server. In order to do t... | 0 | 1,646 |
Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.2.1:exec | <p>I needed to build Cloudstack from source and followed <a href="http://docs.cloudstack.apache.org/en/master/developer_guide.html#installing-from-source" rel="nofollow">this article</a> in the documentation. But everytime I built it with maven, I got stuck with following error. Guessing as a solution, I tried this bui... | 0 | 1,364 |
Memory not freed but still reachable, is it leaking? | <p>By checking with valgrind, I see that 5 blocks of memory were not freed after terminating my program, but they are still reachable. Do I need to be bothered by it?</p>
<p>And how it happens?</p>
<pre><code>zhanwu@gelata:~/sandbox$ valgrind ./a.out
==2430== Memcheck, a memory error detector
==2430== Copyright (C) 2... | 0 | 1,125 |
Pass id value from ahref to bootstrap modal php | <p>I have a php code that creates a list from the database. One of the items I retrieve from the database is the row id. I create the list in the following code:</p>
<pre><code> <th>Cover Name</th>
<th>Sum Insured</th>
<th>Info</th>
<th style="width: 3.5em;"... | 0 | 1,436 |
How do I get the InputStream of decompressed data from an InputStream of GZIPed data? | <p>I call a service which returns a gzipped file. I have the data as an InputStream (courtesy of <code>javax.activation.DataHandler.getInputStream();</code>) from the response. </p>
<p>What I would like to do is, without writing anything to disk, get an InputStream of the decompressed data in the file that is in the a... | 0 | 1,043 |
Entity Framework Core - Setting Value Converter generically | <p>I'm currently trialing Entity Framework Core 2.1 with a view to using it in the company I work for's business applications. I've got most of the way in implementing Value Converters in my test project but my existing knowledge base has let me down at the last hurdle!</p>
<h1>What I'm trying to do</h1>
<p>My understa... | 0 | 1,925 |
Build boost with VS2012 RC | <p>I've just downloaded Visual Studio 2012 RC for Windows 8 64 bit. I've tried to compile boost libraries (version 1.51), but when I make, inside the Visual Studio prompt command, I've an error. I post the bootstrap.log at the end of the post. I'd like to know what's the correct procedure to build boost on VS2012RC on ... | 0 | 1,542 |
Cannot remove fragment from ViewPager, why? | <p>I must be missing something but I cannot remove a fragment from my <code>ViewPager</code>. I store the page titles in an <code>ArrayList</code>:</p>
<p>Part of <code>ViewPagerActivity.java</code> (which is a <code>FragmentActivity</code>, the main activity):</p>
<pre><code>public static ArrayList<String> mEn... | 0 | 2,871 |
Android bottom navigation bar item background color change when fragment selected | <p>I want my bottom nav bar change background color when pressed ( only the selected area ) ,
Like the link bellow :</p>
<p><a href="http://uupload.ir/files/nq3k_tab_bar.jpg" rel="noreferrer">http://uupload.ir/files/nq3k_tab_bar.jpg</a></p>
<p>Here`s my xml for the selector :</p>
<pre><code> <?xml version="1.... | 0 | 1,155 |
Android - Key Dispatching Timed Out | <p>In my Android application I am getting a very strange crash, when I press a button (Image) on my UI the entire application freezes and after a couple of seconds I getthe dreaded force close dialog appearing.</p>
<p>Here is what gets printed in the log:</p>
<hr>
<pre><code>WARN/WindowManager(88): Key dispatching t... | 0 | 1,455 |
In ListView: Activity has leaked ServiceConnection <youtube.player.internal> that was originally bound here | <p><strong>Update:</strong></p>
<p>I just tested my app on another device and found out that I do get the error on a Nexus 4 running Android 4.4.2, but <em>NOT</em> on an Desire S running Android 4.0.4. Both of them have the current YouTube App installed (5.3.32), which is required for using the API.</p>
<p><strong>Q... | 0 | 2,563 |
How to list functions present in object file? | <p>I am trying to understand the compiling and linking process in C/C++. I know that the source files are first converted into object files by the compiler. The linker then generated libraries or executables from the object files.</p>
<p>I am trying to first read the information in object files. Here is the program I ... | 0 | 1,236 |
falied to install flask under virutalenv on windows -- [Error 2] The system cannot find the file specified | <p>I'm using python 2.7 on a windows box.I'm able to install flask using pip install, as you can see below:</p>
<p><img src="https://i.stack.imgur.com/2gEWO.png" alt="cool">
However, after I created a virtualenv, I got below error when trying to do the same thing. </p>
<p>scripts: </p>
<pre><code>$pip install virtua... | 0 | 1,754 |
Integrating ASP.NET Identity into Existing DbContext | <p>I'm working on an ASP.NET MVC 5 project in VS2013, .NET 4.5.1, that uses Entity Framework 6 Code-First. I have a decent size database built out and somewhat working (project is about two weeks old). I want to integrate user authentication now, but I'm not sure how to approach it. After spending most of the day resea... | 0 | 1,081 |
Cannot infer type for type parameter T, when the type is explicitly specified in a struct definition | <p>I have a struct definition which includes, among other things, this field:</p>
<pre class="lang-rust prettyprint-override"><code>pub struct Separated<'a, I, T>
{
..., // other fields,
separated: NonNull<dyn 'a + Iterator<Item = T>>,
}
</code></pre>
<p>Shortly after, in its constructor, I ... | 0 | 1,134 |
select2 and jquery validation not working properly | <p>Trying to use validation on select2 with a few issues :</p>
<ul>
<li><p>the error message will show, but it will not remove when a valid entry is entered.</p></li>
<li><p>I am loading an initial value which works fine... the validator, however, does not recognize the value and tells me it is invalid... I have to ma... | 0 | 1,103 |
Symfony2 form validation always returning ERROR: This value should not be blank | <p>I have a strange problem using a form in Symfony2. </p>
<p>First i've added the validation as <code>annotations</code> inside the entity class <code>Job</code> here:</p>
<pre><code>class Job
{
/**
* @ORM\Id
* @ORM\Column(type="integer")
* @ORM\GeneratedValue(strategy="AUTO")
*/
protecte... | 0 | 2,560 |
How to test that Redux's dispatch() has been called in React Component (Jest + Enzyme) | <p>I have a lot of functional React components that call <code>dispatch()</code> (Redux). The <code>dispatch()</code> function itself is passed in by react-redux's <code>useDispatch()</code> hook.</p>
<p>As a simplified example:</p>
<pre><code>const LogoutButton: FC = () => {
const dispatch: Dispatch = useDispatch... | 0 | 1,322 |
TypeError: object.__new__() takes no parameters | <p>I have been working on Python The Hard Way and am getting the above error and have no clue why. I took out most of the filler text that I thought I could. Sorry if it is a little long.</p>
<pre><code>from sys import exit
from random import randint
class Game(object):
def __int__(self, start):
self.qui... | 0 | 1,703 |
How to get multiple checkbox values in React JS? | <p>I'm trying to get values from all selected checkboxes and store them in useState. I was able to get value of the selected row in a table, but I can't store multiple selected values in state. My code is</p>
<pre><code>import React, { useState } from "react";
export default function App() {
const data = [
... | 0 | 1,502 |
Laravel 5.4 on PHP 7.0: PDO Exception - Could not find driver (MySQL) | <p>I have a Laravel 5.4 project on my Ubuntu 14.04 (VPS with Plesk 12.5.30). After creating the database and setted up the <strong>.env</strong> file with required information I ran <code>php artisan migrate</code> and exceptions were thrown:</p>
<blockquote>
<p><strong>[Illuminate\Database\QueryException]</strong><... | 0 | 1,708 |
Migrate Jersey project to use Java 10 results in java.lang.IllegalArgumentException at jersey.repackaged.org.objectweb.asm.ClassReader.<init> | <p>Previously, when the project was on Tomcat 8 and Java 8, it was working fine, but after I migrated my project to Tomcat 9 and Java 10, it is giving me error as follows:</p>
<pre class="lang-none prettyprint-override"><code>Oct 05, 2018 11:02:01 AM org.apache.catalina.core.ApplicationContext log
SEVERE: StandardWrapp... | 0 | 8,975 |
System.Drawing.Graphics.DrawString - "Parameter is not valid" exception | <p>Sometimes Microsoft's exception messages are infuriatingly unhelpful. I have created a nice little MVC method to render text. The method body is below. When it reaches the "DrawString" method, I get an exception thrown saying "Parameter is not valid".</p>
<p>Note that the font, as best I can tell is constructed pro... | 0 | 1,454 |
Parsing data from text file into multiple arrays in Java | <p>Let me start by saying I am fairly new to Java so forgive me if I am making obvious mistakes...</p>
<p>I have a text file that I must read data from and split the data into separate arrays.</p>
<p>The text file contains data in this format (although if necessary it can be slightly modified to have identifier tags ... | 0 | 1,051 |
Bluetooth Connection failed "java.io.IOException: read failed, socket might closed or timeout, read ret: -1" | <p>I am trying to connect devices through my app installed in Nexus 5.I want to make an app like <a href="https://play.google.com/store/apps/details?id=pip.UIofPIP&hl=en" rel="nofollow noreferrer">rainbow contacts</a> in android. In my app I aim to connect to another device through Bluetooth and transfer set of con... | 0 | 2,255 |
Generic Spring Data JPA Repository findAll | <p>Is there a way to make a generic Spring Data JPA repository handle correctly methods like <code>findAll()</code>? e.g. <code>AnimalRepository<Dog>.findAll</code> return only Dogs, instead of all animals? Or at least, how would be the best workaround at that?</p>
<p>Say I have this:</p>
<pre><code>@Entity
@In... | 0 | 1,646 |
request.FILES always empty on file upload | <p>I am totally stumped on this, and must be doing something incredibly stupid. I am trying to simply upload a file on a Django project. The problem seems to be that NO form data is getting passed through to the server--only the csrf token. I am running Django 1.5.1, python 2.7, virtualenv, on a Mac, and using the buil... | 0 | 1,378 |
Align a label to the right using ASP.Net | <p>I have a label on an ASP.NET page. Right now, it looks like this:</p>
<p><img src="https://i.stack.imgur.com/arE5O.jpg" alt="enter image description here"></p>
<p>What I want it to look like is like this:</p>
<p><img src="https://i.stack.imgur.com/Mr4HA.jpg" alt="enter image description here"></p>
<p>I've tried... | 0 | 1,639 |
Querydsl maven compilation error: QClass.class does not exist | <p>I am new to Querydsl and trying to use it in a simple test project.
I followed the official tutorial to configure my pom.xml, then mvn clean install was able to generated the Q Classes under target/generated-sources/java.
But I got the error below:</p>
<pre><code>[ERROR] Failed to execute goal org.apache.maven.plu... | 0 | 3,392 |
Streaming video with PHP Html5 | <p>I have videos on my website, and I would like to display them streming with Php and html5.</p>
<p>I tri to follow this tutorial
(<a href="http://codesamplez.com/programming/php-html5-video-streaming-tutorial" rel="nofollow">http://codesamplez.com/programming/php-html5-video-streaming-tutorial</a>) of streaming vid... | 0 | 2,392 |
How to use a cursor on a SQLite database | <p>I was following a tutorial to make a database cursor, but I have hit an issue; when I write the code below I get no option to add a query after the database's name:</p>
<pre><code>public String getData(){
db.open();
Cursor c = db. ;
return none;
}
</code></pre>
<p><code>db</code> is my database's nam... | 0 | 5,414 |
Compare Filehash in Powershell | <p>I'm a powershell. I've been staring at my screen for most of the afternoon trying to figure out how to compare the file hash of multiple files that are in two different directories. The script will download files from an FTP site into a directory ($cDlPath) and eventually copy them to another directory ($cDestPath).... | 0 | 1,187 |
U+FFFD is not available in this font's encoding: WinAnsiEncoding | <p>I'm using PDFBox 2.0.1.</p>
<p>I try to dynamically add some (user provided) UTF8 text to the form fields and show the result to the user. Unfortunately either the pdf library is not capable of properly encoding special characters such as "äöü"... or I was not able find any useful documentation that could ... | 0 | 1,284 |
Oracle instant client : ORA-28759: failure to open file | <p><em>What i have: red hat 6 server, remote Oracle Database with TCPS connection setup, installed oracle instant client (basic, odbc, sqlplus) from rpms.</em></p>
<p>I'm trying to set up oracle instant client to connect to a <strong>remote database</strong>.
While entering command :</p>
<pre><code>/usr/lib/oracle/11... | 0 | 12,551 |
Tensorflow : logits and labels must have the same first dimension | <p>I am new in tensoflow and I want to adapt the MNIST tutorial <a href="https://www.tensorflow.org/tutorials/layers" rel="noreferrer">https://www.tensorflow.org/tutorials/layers</a> with my own data (images of 40x40).
This is my model function : </p>
<pre><code>def cnn_model_fn(features, labels, mode):
# Inpu... | 0 | 2,901 |
Get entities from a unidirectional many to many relation with Doctrine2 and Symfony2 | <p>I'm currently working on a language assessment project which enables you to take an exam in the language you want and evaluate your level. I use Symfony2 framework and work with Doctrine2 as well. My issue is the following one:</p>
<p>I have two entities Exam and Question linked by a Many-To-Many relation (Exam bei... | 0 | 1,199 |
How to pack resources in a Maven Project? | <p>I am looking for suggestion in putting image file maven web project. One of classes under src/main/java need to use an image file. My problem is, if i put image file under src/main/webapp/images as well as under src/main/resources/Images then application server cannot find that path on runtime(where myeclipse can ) ... | 0 | 2,388 |
ERROR TypeError: Cannot read property 'filter' of undefined. How do I fix this? | <p>I am using custom filter to create the sort order from but least first followed by next but getting error <code>"ERROR TypeError: Cannot read property 'filter' of undefined"</code>.</p>
<p>Please help me to fix as it's not allowing to render anything on page.</p>
<p>What changes do I need to make to fix t... | 0 | 1,291 |
What's the reason of the error ValueError: Expected more than 1 value per channel? | <p><a href="http://forums.fast.ai/t/how-do-we-use-our-model-against-a-specific-image/7661/50" rel="noreferrer">reference fast.ai</a></p>
<p><a href="https://github.com/fastai/fastai/tree/master/fastai" rel="noreferrer">github repository of fast.ai</a>
(as the code elevates the library which is built on top of <strong>... | 0 | 1,493 |
Python's assert_has_calls throws AssertionError that calls were not found | <p>I am trying to write a unit test that tests my coordinator class' function for sending data to a producer that I have mocked. I went a little crazy adding print statements to see what is going on where, and I'm not sure if that is useful but I'm going to include those. The actual mocking seems to be working from loo... | 0 | 2,547 |
Android - Make a ScrollView with LinearLayout | <p>I want to make a ScrollView with a LinearLayout inside. The linear layout contains 6 View that have the background CYAN, BLUE, CYAN, BLUE etc... This is the code:</p>
<pre><code>public class TouchActivity extends Activity
{
TouchedView TouchView;
public void onCreate(Bundle icicle)
{
super.on... | 0 | 1,414 |
How to read nested JSON structure with a Sencha Touch Data Model? | <p>I've been trying to figure this out all evening but to no avail. I have a JSON structure as follows (coming from another system so I can't change its structure):</p>
<pre>
{
"parents":{
"parent":[
{
"parentId":1,
"children":{
... | 0 | 2,396 |
How can a WPF UserControl inherit a WPF UserControl? | <p>The following WPF UserControl called <strong>DataTypeWholeNumber</strong> which works.</p>
<p>Now I want to make a UserControl called <strong>DataTypeDateTime</strong> and <strong>DataTypeEmail</strong>, etc.</p>
<p>Many of the Dependency Properties will be shared by all these controls and therefore I want to put ... | 0 | 1,062 |
java.lang.NoClassDefFoundError: org/apache/commons/pool/impl/GenericObjectPool | <p>I'm trying to configure org.apache.commons.dbcp.BasicDataSource as bean in web.xml under a tomcat project using tomcat 6 and postgresql
9.1
</p>
<p>my servletdispacher.xml</p>
<p>`
</p>
<pre><code><bean id="viewResolver"
class="org.springframework.web.servlet.view.InternalResourc... | 0 | 1,024 |
Module build failed: ReferenceError: [BABEL] | <p>I have this configuration</p>
<p><strong>package.json</strong></p>
<pre><code>{
"name": "app02",
"version": "1.0.0",
"description": "",
"main": "webpack.config.js",
"dependencies": {
"react": "^0.14.3"
},
"devDependencies": {
"babel-core": "^6.2.1",
"babel-loader": "^6.2.0",
"babel-pr... | 0 | 1,268 |
Cannot resolve keyword u'slug' into field error in Django? | <p>I am getting the following error:</p>
<pre><code>FieldError at /blog/1/first-post/
Cannot resolve keyword u'slug' into field. Choices are: article, date, id, likes
Request Method: GET
Request URL: http://127.0.0.1:8000/blog/1/first-post/
Django Version: 1.6.2
Exception Type: FieldError
Exception Va... | 0 | 1,113 |
Dockerizing PostgreSQL - psql Connection refused | <p>I'm playing around with Docker and I would like to Dockerize a Postgres container.</p>
<p>I'm following the official <a href="http://docs.docker.com/examples/postgresql_service/" rel="noreferrer">example</a> but I can not connect to the image running using psql.</p>
<p>I created the Dockerfile with the content of ... | 0 | 1,154 |
How to add Core Data to existing Xcode 9 Swift 4 iOS 11 project? | <p>An update is requested, since this question has of course been answered for previous versions, the latest search result dated 12/16 generates irrelevant compatibility with previous iOS 9 and 10 projects.</p>
<p>The documentation of course says to select the Use Core Data checkbox when starting a new project, which ... | 0 | 1,331 |
How to replace already opened fragment with new fragment in android studio? | <p>I am trying to replace a MainFragment fragment with PickPowerFragement fragment but when I press the button in MainFragment to replace MainFragment with PickPowerFragment the app crashes.
I was able to successfully load the PickPowerFragment in java as given in tutorial but the app crashes when I tried to do so in K... | 0 | 2,780 |
VSIXInstaller.NoApplicableSKUsException: This extension is not installable on any currently installed products | <p>I tried to install enterprise library 6.0 recently in visual studio 2015 but the installer throws an error:</p>
<blockquote>
<p>VSIXInstaller.NoApplicableSKUsException: This extension is not installable on any currently installed products.</p>
</blockquote>
<p>I couldn't resolve it. </p>
<pre><code>19-Dec-16 9:... | 0 | 1,583 |
Ant and Flex-4 problem, MXMLC.jar not found ! | <p>I updated a flex application from flex 3.5 to flex 4.0.
We are using ant for compiling our project and we have a mxmlc task to handle the flex part.
After the upgrade, our mxmlc task broke.</p>
<p>Here is the task definition:</p>
<pre><code><taskdef resource="flexTasks.tasks">
<classpath>
... | 0 | 1,445 |
How to parse a String containing HTML to React Components | <p>I'm using this library: <a href="https://www.npmjs.com/package/html-to-react" rel="noreferrer"><code>html-to-react</code></a> as I found that it was possible to "compile" HTML as a String to React Components.</p>
<p>We're doing a system based on widgets and they might change over time (i.e. add / remove / ... | 0 | 4,289 |
How to resize navbar logo on scroll down | <p>So I have this navbar with a logo on it. I would like the logo to be big when the user is in the header section of the page, but then shrink when the user scrolls down. Any way to do this? </p>
<pre><code> <!-- NAVBAR -->
<nav class="navbar navbar-inverse navbar-toggleable-md fixed-top">
... | 0 | 1,218 |
Angular-UI Router: Nested Views Not Working | <p>Building a multi-step form (“wizard”). Was originally following <a href="https://scotch.io/tutorials/angularjs-multi-step-form-using-ui-router">this tutorial</a>, which worked great, but am now trying to adapt it so step one is embedded on the homepage rather than being a separate state. No matter what I try, I can ... | 0 | 2,300 |
Error: mysql57-community-release conflicts with mysql-community-release-el7-7.noarch | <p>When I try to install <code>mysql-community-release</code>, I get the following error:</p>
<pre><code># yum install mysql-community-release
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: mirror.uv.es
* extras: mirror.uv.es
* updates: mirror.uv.es
Resolving Dependencies
--> R... | 0 | 1,062 |
How to solve this error org.apache.spark.sql.catalyst.errors.package$TreeNodeException | <p>I have two procesess each process do
1) connect oracle db read a specific table
2) form dataframe and process it.
3) save the df to cassandra.</p>
<p>If I am running both process parallelly , both try to read from oracle
and I am getting below error while second process read the data</p>
<pre><code> ERROR ValsPr... | 0 | 1,731 |
Can't Add A View to EF Data Model | <p>I have a view that I am trying to add to my ADO.NET Entity Data Model. Every time I try to Update From Database, and check the view, it refreshes everything else, but does not add the view.<br/>I get no error message or output, so I have no idea what is wrong with the view. Other views are no problem. Am I missing s... | 0 | 5,101 |
Objective C Parsing XML | <p>I have an xml like this...</p>
<pre><code> <object>
<list name="subscriptions">
<object>
<string name="id">feed/http://feeds.feedburner.com/computerdefense</string>
<string name="title">.:Computer Defense:.</string>
<list name="categories">
<object>
<strin... | 0 | 1,313 |
DJANGO - Change text color based on value (HTML & JS) | <p>I'm creating a table displayed in HTML with Django. I want to change the number's color to red when the number is negative, and to green when the number is positive. I know I need to use JS for this but I could not make it work. Any help will be greatly appreciated !!</p>
<p>Here is my Django HTML template (linked ... | 0 | 1,857 |
Angular: Search bar in TypeScript table | <p>I have done a simple CRUD application, now I have to add a Search Bar that filters my table and show me the rows with the same letters that I digit.</p>
<p>I don't know what to do in my component, I saw different things with pipes and filter but I couldn't adapt them to my project.</p>
<p>I would like to know if t... | 0 | 3,158 |
android.database.sqlite.SQLiteDiskIOException: disk I/O error (code 1802) | <p>I have written some code which is used to delete database folder. It delete database but also throw error. Please suggest me how to solve this problem.</p>
<p><strong>Code for delete database</strong></p>
<pre><code>public void deleteDB() {
try {
File db_path = new File(
"/d... | 0 | 1,089 |
Basic and Form Authentication with Mechanize (Ruby) | <p>I'm trying to log into a site on the company intranet which has a basic authentication popup dialog box and form based authentication. This is the code I'm using (which results in a 401 => Net::HTTPUnauthorized error):</p>
<pre><code>require 'rubygems'
require 'mechanize'
require 'logger'
agent = WWW::Mechanize.ne... | 0 | 1,105 |
How to parse a text file with C# | <p>By text formatting I meant something more complicated.</p>
<p>At first I began manually adding the 5000 lines from the text file I'm asking this question for,into my project.</p>
<p>The text file has 5000 lines with different length.For example:</p>
<pre><code>1 1 ITEM_ETC_GOLD_01 골드(소) xxx xxx xxx_TT_DE... | 0 | 2,092 |
Why socket infinite return -1 (errno:104) | <p>My socket program is a server-client structure.</p>
<p>Something strange, there have a low probability that when the TCP socket just construct(client connect and server accept).</p>
<p>and I use select than read the socket, it will return -1 and errno is 104(Connection reset by peer).</p>
<p>But I do not send any... | 0 | 1,185 |
Elegant/Clean (special case) Straight-line Grid Traversal Algorithm? | <p>I'm dusting off an old project of mine. One of the things it had to do was -- given a Cartesian grid system, and two squares on the grid, find a list of all squares that a line joining the center of those two squares would pass through.</p>
<p>The special case here is that all start and end points are confined to ... | 0 | 1,216 |
Launching a windows batch script using Maven exec plugin blocks the build even though the script uses "start" | <p>I am trying to perform integration tasting of the deployment of my application on the top of a custom container. Since my container is custom, I cannot use Maven Cargo plugin to setup the container.</p>
<p>My container:</p>
<ul>
<li>Has to be started though a proper bat file, which is in the path of the machine wh... | 0 | 1,135 |
How do I get the value from an ngrx store into my template? | <p>A total Redux noob here, I am having a little difficulty getting my data out of the store for use within my view. Here are my Actions, Reducers etc. </p>
<p><strong>genre.model.ts</strong></p>
<pre><code>export interface Genre {
id: string;
title: string;
description: string;
slug: string;
erro... | 0 | 2,280 |
Toolbar overlaps status bar | <p>I've got a problem with my status bar which gets overlapped by the toolbar. </p>
<p>I wanted to have the function that when the user scrolles the <code>ListView</code> down, the toolbar disappears behind the status bar so that only the tabs are visible, just like in the WhatsApp and YouTube apps. </p>
<p>To achiev... | 0 | 1,798 |
Getting context in AndroidTestCase or InstrumentationTestCase in Android Studio's Unit Test feature | <p>I got some of my old tests running with Android Studio 1.1.0's new unit test support feature.
When running gradlew testDebug the tests are run, but all of the tests that require a Context fail because <code>getContext</code> (AndroidTestCase) / <code>getInstrumentation.getContext()</code> (InstrumentationTestCase) ... | 0 | 1,107 |
android listView row height | <p>I implemented a listview with 2 kinds of rows from here <a href="http://logc.at/2011/10/10/handling-listviews-with-multiple-row-types/" rel="nofollow">listViews with multiple rows tutorial</a></p>
<p>all is working properly,</p>
<p>the problem that I have now is setting the height for the rows,</p>
<p>if I leave ... | 0 | 1,160 |
IBDesignable View Rendering times out | <p>I've been working on an app on and off for a few months starting with the first XCode 6/iOS 8 beta release. One of my favorite features added is live rendering, made possible with the <code>@IBDesignable</code> tag in Swift.</p>
<p>I haven't been able to get a single thing to live render. I figured that must have b... | 0 | 1,192 |
How to save and extract session data in codeigniter | <p>I save some data in session on my verify controller then I extract this session data into user_activity model and insert session data into activity table. My problem is only username data saved in session and I can get and insert only username data after extracting session on model. I am new in Codeigniter. For this... | 0 | 1,863 |
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name '(inner bean)#7': Instantiation of bean failed | <p>I'm basically trying to implement openId in spring which will allow user to login through goggle and extract their emailId, name and save in data base</p>
<p>After adding openid4java jar, now I'm getting the following exception:</p>
<pre><code>SEVERE: Exception sending context initialized event to listener instanc... | 0 | 3,082 |
Laravel 4, ->withInput(); = Undefined offset: 0 | <p>I have had a lengthy search both here and the Laravel forums, but i can't find an answer to this problem. <code>->withInput()</code> coughs up an <code>Undefined offset: 0</code>.</p>
<p>For Context:</p>
<p>Controller</p>
<pre><code>public function getJobs()
{
$position_options = DB::table... | 0 | 1,428 |
Unable to update database to match the current model because there are pending changes | <p>I have a project built in visual studio 2013 environment with the Db built using EF 5 code first.
I have had my APIs working fine for a long time but all of a sudden I started to get this error that says:</p>
<blockquote>
<p>Unable to update database to match the current model because there are pending changes a... | 0 | 1,083 |
Handling CORS Preflight requests to ASP.NET MVC actions | <p>I'm trying to perform a cross-domain POST request to an ASP.NET MVC controller action. This controller action accepts & uses various parameters. The problem is that when the preflight request happens, the controller action actually attempts to execute & because the OPTIONS request doesn't pass any data, the ... | 0 | 1,172 |
How to make an external log using Excel VBA? | <p>The code has been updated to reference the changes below.</p>
<p>This log system create an external document for Excel called Log.txt, it will create a line in the log.txt file that looks like this: </p>
<blockquote>
<p>11:27:20 AM Matthew Ridge changed cell $N$55 from ss to</p>
</blockquote>
<p>This will not t... | 0 | 1,085 |
Symfony2 : allow Access-Control-Allow-Origin with google charts | <p>In my Symfony application, I am using google charts.</p>
<p>I get an error :</p>
<pre><code>XMLHttpRequest cannot load https://www.google.com/uds/api/visualization/1.0/dca88b1ff7033fac80178eb526cb263e/ui+en.css. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://foodmeup.d... | 0 | 1,374 |
Mapstruct 1.2.0 not generating mapper class in springboot 2.0.0.M3 + lombok | <p>I'm trying to put together a sample project combining the following technologies:</p>
<ul>
<li>Spring boot (2.0.0.M3) </li>
<li>Mapstruct (1.2.0.CR1) </li>
<li>Lombok (1.16.18)</li>
</ul>
<p>I have defined this mapper:</p>
<pre><code>@Mapper(componentModel = "spring")
public interface SourceToTargetMapper {
... | 0 | 3,372 |
Tomcat behind Apache using ajp for Spring Boot application | <p>I've been trying to configure Apache web server with a Spring Boot app that uses embedded Tomcat. Before Spring Boot I used to create an ajp.conf file like:</p>
<pre><code><VirtualHost *:80>
ServerName localhost
<Proxy *>
AddDefaultCharset Off
Order deny,allow
Allow from all
&... | 0 | 1,223 |
Android string-array from xml file to ListView | <p>First of all, thank you for your answers! I'm new for Android and this is my problem; </p>
<p>I want to take values of string array to listview. </p>
<p>Program works fine with these codes:</p>
<pre><code>private String [] fiilliste={"A","Ağlamak","Almak","B","Bulmak"};
ArrayAdapter<String> adapter;
adapter... | 0 | 1,564 |
java-POST method 415 Error | <p>I have java EE project.I used Spring Hibernate for server side and Backbone,RequireJS,Jquery for client side on this project.I'm trying to save with POST method but HTTP 415 Error return.</p>
<p>My Get method works fine. I tested it on Postman.</p>
<p>My url: localhost:8080/rest/travel</p>
<p><strong>EDITED</stro... | 0 | 3,494 |
Getting Service Tag from Dell Machine using .net? | <p>I've got a class that pulls model information (hardware info)
for a local machine code is like so:</p>
<pre><code> Imports System.Management
Public Class clsWMI
Private objOS As ManagementObjectSearcher
Private objCS As ManagementObjectSearcher
Private objMgmt As ManagementObject
Private m_strCo... | 0 | 1,544 |
How to print the IP address of a website in Android with InetAddress | <p>How to print the IP address of a website in android ? I can run inetaddress and print it by using system.out.println() in netbean. Below is my sample coding.</p>
<pre><code>public String getHostAddress () {
InetAddress addr=null;
try {
addr= InetAddress.getByName("www.google.com");
... | 0 | 1,763 |
Reload/Refresh JFrame window on button click | <p>I have tried a lot of thinks in last two days and I just can't refresh the Frame :/
I connect on my database and make a select query... In my console window I see 4 ID-s On my form too... After I make another data in my database, in my console window i see 5 ID-s but on my form 4... If I put <code>frame.setvisible</... | 0 | 1,529 |
How to set Collapsing ToolBar height | <p>I am using Collapse ToolBar to make the layout as follow.But the ToolBar is not set properly. Now I am setting ToolBar Height as 100dp. If I reduce it, the ViewPager where the Tabs are set is overlapped on the ToolBar.</p>
<p><a href="https://i.stack.imgur.com/AaVSX.png" rel="noreferrer"><img src="https://i.stack.i... | 0 | 5,329 |
how to change background in chartjs and remove background lines? | <p>How to change background color, and remove this lines, and how to cahnge some tex, </p>
<p>for example: text of point, when you hover on some point you get title and value of this.</p>
<p><a href="https://i.stack.imgur.com/SjdNF.png" rel="noreferrer"><img src="https://i.stack.imgur.com/SjdNF.png" alt="enter image ... | 0 | 1,166 |
Angular 4 - How to get data from ASP.Net web api | <p>Using the famous Visual Studio 2017 Angular 4 template, I tested the side navbar buttons and could fetch the in-memory data.</p>
<p>Then I added to the project, a new ASP.Net Core 2.0 API controller connected to a database using Entity Framework, and got it to run with the <code>200 HTTP GET</code> result.</p>
<p>... | 0 | 2,802 |
how to resolve ==> org.hibernate.exception.GenericJDBCException: Could not open connection | <p>when i execute my Main class i get this execution
cant figure out the issue point</p>
<p>the error comes in the line
Transaction tr = session.beginTransaction();</p>
<p>error stack says :</p>
<pre><code>ERROR: Access denied for user 'root'@'localhost' (using password: NO)
error===>org.hibernate.exception.Gener... | 0 | 1,753 |
Capturing 'shown' event from bootstrap tab | <p>I have some 'static' HTML on my page:</p>
<pre><code><div id="DIVISIONS">
<ul class="nav nav-tabs" id="DIVISIONTABS">
@* <li> nodes will be injected here by javascript *@
</ul>
<div class="tab-content" id="DIVISIONTABPANES">
@* <div class="tab-pane"> n... | 0 | 1,299 |
Send MMS from My application in android | <p>I want to send MMS from my application to a specific number. I've searched and found this code but I have no idea if this code what I need or not.
My Questions is : </p>
<p>-can anyone explain this code to me.i am beginner in MMS.</p>
<p>-also, i thought this code is let the user send MMS from my application witho... | 0 | 1,703 |
OffsetDateTime parsing | <p>Need to parse Date time from format <code>2016-06-24T13:39:44.687680</code>.</p>
<p>First step using, tried to parse time without microseconds with line.</p>
<pre><code>System.out.println(OffsetDateTime.parse("2011-12-03T10:15:30", DateTimeFormatter.ISO_LOCAL_DATE_TIME));
</code></pre>
<p><strong>Having exception... | 0 | 1,388 |
GenericJDBCException: Invalid column type: getCLOB not implemented | <p>I am trying to migrate from JBoss 5.1 to JBoss 7.1.1 and currently have this problem.
Whenever I try to get an object from the database that contains a CLOB field, this error is thrown:</p>
<pre><code>11:48:58,974 INFO [org.hibernate.event.internal.DefaultLoadEventListener] (http-localhost-127.0.0.1-8080-1) HHH000... | 0 | 7,398 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.