title
stringlengths
13
150
body
stringlengths
749
64.2k
label
int64
0
3
token_count
int64
1.02k
28.5k
Angular add FormGroup to FormGroup
<p>I have a parent component which is the main <code>FormGroup</code>. Inside this <code>&lt;my-parent&gt;&lt;/my-parent&gt;</code> component I have a child component, <code>&lt;my-child&gt;&lt;/my-child&gt;</code>. </p> <p>The child component has a <code>*ngIf="some-conditional"</code>, and inside the child component...
0
1,687
Cannot Open Connection Exception: Generic JDBC Exception
<p>I thought I was getting this error because I didn't have the <code>ojdbc14.jar</code> deployed inside <code>&lt;jbossas.home&gt;/common/lib</code>. The issue still remains even after I did it.</p> <p><strong>Stacktrace</strong></p> <pre><code> HTTP Status 500 - type Exception report message description The s...
0
3,226
'dict' object has no attribute 'id'
<p>This is my code. I'm trying to translate xml string into python list to be shown in html template.</p> <pre><code>self.task_xml = &quot;&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt; &lt;django-objects version=&quot;1.0&quot;&gt; &lt;object model=&quot;task.task&quot; pk=&quot;31&quot;&gt; &lt;...
0
1,197
Creating BackgroundWorker with Queue
<p>I need to create queue and use it with BackgroundWorker. So I can add operations and when one is done next is starting in background. I found this code by google:</p> <pre><code>public class QueuedBackgroundWorker&lt;T&gt; { public void QueueWorkItem( Queue queue, T inputArgument, Func&l...
0
1,133
java.util.NoSuchElementException creating Spring Data JPA repository bean
<p>My dependencies are:</p> <p>springVersion = '3.2.4.RELEASE'</p> <pre><code>compile "org.springframework:spring-***:$springVersion" *** = all of them are included just in case! compile "org.springframework.data:spring-data-jpa:1.4.1.RELEASE" compile "org.hibernate.javax.persistence:hibernate-jpa-2.0-api:1.0.1.Final...
0
2,385
Deprecated: Function session_register() is deprecated and Cannot modify header information
<p>I created a simple login system using sql</p> <p>It has 4 main components index -asks for username and pass checklogin - checks for the credentials logsuccess homepage - landing page after successful login</p> <p>The error generate are given at the end of the post</p> <pre><code>Index.php asks for username and pa...
0
1,795
Kafka QuickStart, advertised.host.name gives kafka.common.LeaderNotAvailableException
<p>I am able to get a simple one-node Kafka (kafka_2.11-0.8.2.1) working locally on one linux machine, but when I try to run a producer remotely I'm getting some confusing errors.</p> <p>I'm following the quickstart guide at <a href="http://kafka.apache.org/documentation.html#quickstart">http://kafka.apache.org/docume...
0
1,797
How to use WindowChrome without Windows Aero glass effects in wpf, black border
<p>I'm trying to customize a window border by using the WindowChrome class. Without Windows Aero glass effects. As expected I end up with a black boarder. But i also end up without caption buttons</p> <p>From Microsoft i learn that i can use the standard window by setting the window style to null to overcome these pro...
0
1,395
Getting NoSuchMethodError: javax.persistence.Table.indexes() while performing JPA query
<p>I have IntelliJ project with libraries: Hibernate-entitymanager 4.3.4 and JPA 2.0-2.0. Which is connected to database using postgresql-9.3.1100.jdbc4. How to fix it? </p> <p>jpa-ql> select ItemEntity.name from ItemEntity;</p> <pre><code>java.lang.NoSuchMethodError: javax.persistence.Table.indexes()[Ljavax/persiste...
0
1,058
Turn String to 128-bit key for AES
<p>I want to enter my own String variable to then turn it into a key for encryption/decryption for AES algorithm. I have tried many known ways such as UTF-8, base64, some methods doing conversion byte-string and vice versa and some other. Although it's true that all of them work even with some of them not working accur...
0
1,122
POST form data using WinInet c++
<p>I'm trying to make this program connect to a website and submit form data in order to login, but I don't know what I'm doing wrong. I have heard of others like curl and Winsock but I chose the WinINet library. So just for the testing of this program I've been using the website Pastebin to post to. So far, I haven't ...
0
1,411
java.lang.RuntimeException: Method called after release()
<ol> <li><p>If i am <em>not using</em> <strong>mCamera.release();</strong> in <strong><em>surfaceDestroyed(....)</em></strong> then <strong><em>not able to launch CameraActivity again from another Activity</em></strong> [in short getting <strong>Unfortunately app has stopped</strong>] error, <strong><em>even not releas...
0
3,345
unable to set push notification sound in android
<p>I have created the push notification application, I'm getting the message from GCM services but push notification sound is not working. I need to play sound when I'm getting notification.I have posted my code below anyone help me with this...</p> <pre><code>//receiver class// import android.app.Activity; import a...
0
2,270
CSS Class Links
<p>I'm working on a site where I want to make different styles for different sets of links. I've read tutorials and I still can't get my code to work. So here's the code. </p> <pre><code>&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt; ...
0
1,197
How to get values of reactive form inputs in Angular?
<p>I need to grab reactive form inputs <code>email</code> and <code>password</code> and pass them to my function which calls register service method to register new user in firebase using email. Unfortunately, in chrome console after form submission I get <code>RegisterComponent.html:2 ERROR ReferenceError: email is no...
0
1,174
When to use Semaphore instead of Dispatch Group?
<p>I would assume that I am aware of how to work with <a href="https://developer.apple.com/documentation/dispatch/dispatchgroup" rel="noreferrer">DispatchGroup</a>, for understanding the issue, I've tried:</p> <pre><code>class ViewController: UIViewController { override func viewDidLoad() { super.viewDidLo...
0
1,083
Is Socket.getInputStream().read(byte[]) guaranteed to not block after at least some data is read?
<p>The JavaDoc for the class InputStream says the following:</p> <blockquote> <p>Reads up to len bytes of data from the input stream into an array of bytes. An attempt is made to read as many as len bytes, but a smaller number may be read. The number of bytes actually read is returned as an integer. This metho...
0
1,436
Redirect route with two parameters in WITH [Laravel]
<p>I have problem to pass two varialbles with "with" in Redirect::route... Here is my code...</p> <p>How to do this</p> <pre><code>return Redirect::route('cart-success')-&gt;with( array( 'cartSuccess' =&gt; 'You successfuly ordered. To track your order processing check your email', ...
0
1,049
How to merge column in Excel using PHPExcel
<p>I already checked this <a href="https://stackoverflow.com/questions/10909598/merging-cells-in-excel-by-rows-and-columns-together-using-phpexcel">Merging cells in Excel by rows and columns together using PHPExcel</a> but its showing only for row addition however I applied some tests for column as well but none is wor...
0
1,754
How to use IF in Switch statement
<p>How to apply if condition in Switch statement, I want to calculate Average: however I have tried for best to solve the issue but still getting no output from Switch statement. I am beginner to the C++, </p> <pre><code>#include &lt;iostream&gt; using namespace std; int main() { //declaration of variables. ...
0
1,559
textFieldShouldBeginEditing not being called
<p>I am trying to use <code>textFieldShouldBeginEditing</code> to disable the keyboard from showing up for a custom <code>UITextField</code>. I'm implementing all the <code>UITextFieldDelegate</code> methods. However, for some reason, <code>textFieldShouldBeginEditing</code> actually never gets called. </p> <p>The fo...
0
1,162
Dynamically setting DataGridViewComboBoxCell's DataSource to filtered DataView based off of other cell selection
<p>I have been looking high and low for a way to do the following, but to no avail. I came up with a solution that works, but am wondering if there is a better way of handling it.</p> <p><strong>The Problem:</strong></p> <p>I am using a DataGridView that has two DataGridViewComboBoxColumn, col1 and col2.</p> <p>col1 ha...
0
2,226
Editing a rich data structure in React.js
<p>I'm trying to create a simple grid-based editor for a data structure and I'm having a couple conceptual problems with React.js. Their documentation is not very helpful on this, so I'm hoping someone here can help. </p> <p>First, what is the correct way to transfer state from an outer component to an inner component...
0
1,159
Python's MySQLdb can’t find libmysqlclient.dylib with Homebrewed MySQL
<h1>MySQL and Python installed with Homebrew</h1> <p>I installed MySQL and Python with Homebrew on OS X 10.10.5 Yosemite. My Python 2.7 is at <code> python -&gt; ../Cellar/python/2.7.9/bin/python</code> with a symlink to it at <code>/usr/local/bin/python</code>.</p> <p>In <code>/usr/local/bin</code> there is a symlink:...
0
1,176
Django Admin Media prefix URL issue
<p>i 've the following folder structure</p> <pre><code>src\BAT\templates\admin\base.html src\BAT\media\base.css src\BAT\media\admin-media\base.css </code></pre> <p>settings.py</p> <pre><code>MEDIA_ROOT = os.path.join( APP_DIR, 'media' ) MEDIA_URL = '/media/' ADMIN_MEDIA_PREFIX = '/admin-media/' TEMPLATE_DIRS = ( ...
0
1,418
React-Native: Change opacity colour of ImageBackground
<p>I have been trying to develop screen mentioned below: </p> <p>For that I have created below component:</p> <pre><code>import React, {Component} from 'react'; import {View, Text, StyleSheet, ImageBackground, Image} from 'react-native'; import Balance from './Balance.js' class AccountHeader extends React.Component{...
0
1,073
How do I fetch JSON data with Vue and Axios
<p>I'm trying to fetch product data from a JSON file, but can't get it to work. I've tried several things and searched the internet for a solution but none of the examples on the internet equals my situation. I'm new to both vue and axios, so please excuse my ignorance.</p> <p>This is what I have so far:</p> <pre><co...
0
1,779
Bootstrap 3 row breaks on medium devices
<p>I have a problem with differently sized divs. I'd like to have and row that displays 3 column wide divs on medium &amp; large displays and 6 column wide divs on small devices.</p> <pre><code>&lt;div class="container"&gt; &lt;div class="row"&gt; &lt;div class="service col-sm-6 col-md-3"&gt;Lots of stuff&lt;/div&...
0
1,126
Spring loading PropertySourcesPlaceholderConfigurer from JBoss context
<p>I have a spring 3.1 application loading settings using PropertySourcesPlaceholderConfigurer and I want to manage test and production environments simply loading settings from server context overriding settings specified in local file properties.</p> <p>Next example works fine with Tomcat, how can I do the same in J...
0
1,503
window.resize() in Highcharts
<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>$("#menu-toggle").click(function(e) { e.preventDefault(); $("#wrapper").toggleClass("toggled"); }); //High Chart JS $(function ...
0
3,858
Error: argument "x" is missing, with no default
<p>I am getting an error: argument "x" is missing, with no default Upon debugging, I found this out to be in the line : <strong><code>MyData1&lt;- MyData()[,c(col(),col()+1)]</code></strong> I have tried to pass the argument as a single vector like <strong><code>MyData1&lt;- MyData()[,p=c(col(),col()+1)]</code></stron...
0
1,427
NameError: name 'pd' is not defined when calling a function in custom package
<p><strong>Context</strong></p> <p>I'm learning python for Data Science and I'm using Foursquare API to explore venues near a coordinate. It returns a JSON file, so I created a function to return a Pandas DataFrame from Foursquare results using 'foursquare' package (github.com/mLewisLogic/foursquare) and then extract ...
0
1,345
Laravel Update / install composer package
<p>Can you answer me? I use the latest version of Laravel and I want to add to my project the PayPal service. I want to install some package to Laravel and added this 2 rows to composer.json</p> <pre><code>"guzzlehttp/guzzle": "~5.2", "paypal/rest-api-sdk-php": "*" </code></pre> <p>My composer.json file</p> <pre><c...
0
1,163
DataTables Bootstrap pagination not rendering
<p>I have the sample DataTable working on my test server. However, for some reason the Bootstrap pagination is not rendering properly.</p> <p><img src="https://i.imgur.com/CUrdDr3.png" alt="Rendering issue"></p> <p>This is not the Bootstrap styling. Here is the code:</p> <pre><code> &lt;!DOCTYPE html&gt; &lt;ht...
0
13,166
Android "Add a vertical line" on "RelativeLayout" / "Linear Layout"
<p>I have read other questions about adding a vertical line in Android, here's my questions</p> <ol> <li>I was able to add a vertical line as a "View" under my main RelativeLayout, but fails to do it within sub RelativeLayout.</li> </ol> <p>code for a vertical line</p> <pre><code>&lt;View android:id="@+id/verticalSe...
0
2,144
"mount error(126): Required key not available" with CIFS & Kerberos
<p>My application needs to securely mount an Isilon share using CIFS and Kerberos. My <code>mount</code> attempt returns: <code>Required key not available</code>:</p> <blockquote> <p>mount -t cifs //fileserver.example.com/client123/files /mnt/client123/files -o username=acoder,password=XXXXXX,sec=krb5</p> </bloc...
0
1,851
"Templates can be used only with field access, property access, single-dimension array index, or single-parameter custom indexer expressions" error
<p>Why am I receiving the error:</p> <blockquote> <p><em>Templates can be used only with field access, property access, single-dimension array index, or single-parameter custom indexer expressions</em></p> </blockquote> <p>at this code:</p> <pre><code>@model IEnumerable&lt;ArtSchoolProject.Models.Trainer&gt; @{ V...
0
1,069
Can i use fgetc() or fputc() in a binary file?
<p>I am creating an archive program in C, and i want it to save files i provide, list and extract them. <br> I had many issues because i used a text file for saving, and it is not the best choice if i want to process binary files like music or photos, because when i extract them, they are not executed correctly (they a...
0
1,064
The as.numeric function changes the values in my dataframe
<p>I have a column containing speed measurements which I need to change to numeric so that I can use both the mean and sum functions. However, when I do convert them the values change substantially.</p> <p>Why is this?</p> <p>This is what my data look like at first:</p> <p><img src="https://i.stack.imgur.com/BBit4.png"...
0
1,441
Reason: No AuthenticationProvider found for org.springframework.security.authentication.UsernamePasswordAuthenticationToken
<p>I've configured spring security namespace to authenticate with my custom authentication manager:</p> <p><strong>web.xml</strong></p> <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt; &lt;web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xsi:schemaLocation...
0
5,063
Why does register_tm_clones and deregister_tm_clones reference an address past the .bss section? Where is this memory allocated?
<p><code>register_tm_clones</code> and <code>deregister_tm_clones</code> are referencing memory addresses past the end of my RW sections. How is this memory tracked?</p> <p><strong>Example:</strong> In the example below <code>deregister_tm_clones</code> references memory address <code>0x601077</code>, but the last RW ...
0
1,910
PHP sessions (user/admin) user levels
<p>I am only new to php, a few weeks self teaching myself and making various projects to learn how to do things...</p> <p>I am currently making a basic project consisting of... index (login page) register home (user level) admin (admin level) logout dbconnect</p> <p>I have a column in my db called userlevel with 0 as...
0
3,056
tomcat error while deploying WAR file
<p>Please help me with the below exceptions that I obtain while trying to deploy a WAR file on Tomcat server.</p> <pre><code>07:46:50,076 WARN HostConfig:606 - Exception while expanding web application archive chapal.war 07:47:00,123 INFO StandardHostDeployer:435 - Processing Context configuration file URL file:/hom...
0
1,609
org.hibernate.exception.SQLGrammarException:Could not execute JDBC batch update
<p>I am geting a @OneToOne reletionship record from database and insert into another database using hibernate but having this error</p> <pre><code>Hibernate: select appointmen0_.appointmentId as appointm1_13_2_, appointmen0_.appointmentDay as appointm2_13_2_, appointmen0_.appointmentTime as appointm3_13_2_, appointmen...
0
5,280
Calculating Speed for a navigation app without getSpeed() method
<p>I am developing an app which is more of a time-shift racing between your friends.</p> <p>I need to calculate speed of a moving vehicle, and I don't want to use <code>Location.getSpeed()</code> method. (Explained in detail in the bottom why I don't want to use it)</p> <p>I am trying to calculate speed with the help...
0
1,047
Positioning of Swing Components Java - JPanel, JButton, JFrame
<p>I'm currently studying Java GUI implementations and for my next assignment we are to create a program to simulate the control of a house. We have been given pretty much free reign to build it however we like (as long as its in Java). I've drawn up this mockup: <a href="https://i.imgur.com/9RtWL7b.jpg" rel="nofollow ...
0
1,333
Logback RollingFileAppender FileNotFoundException
<p>I am using <code>logback</code> in my <code>spring-boot</code> project. When we deploy the app in <code>PROD</code> environment, deployment is failed with below exceptions. Before PROD, we deployed the app in lower environments, we did not see any issues. Can someone please throw some light?</p> <p>In <code>logback....
0
3,160
How to exclude field from class serialization in runtime?
<p>How to exclude class field from serialization process in runtime ? There is <strong>transient</strong> modifier for compilation time but what about runtime ? I mean common java serialization with ObjectOutputStream, not gson or something.</p> <p>Sorry I think I didn't explain right. This is not exactly about serial...
0
1,053
react-router-dom: Invalid hook call, Hooks can only be called inside of the body of a function component
<p>I try to nest a route: I have a catalog of products in a <strong>Catalog</strong> component, which matches with url <em>&quot;backoffice/catalog&quot;</em>.</p> <p>I want to route to <strong>Edition</strong> component if the url matches with <em>&quot;backoffice/catalog/edit&quot;</em>, but I need the <strong>Editio...
0
2,359
Making A Console For A Java Text Based Game
<p>So, Iv'e been trying to make a simple Text Based RPG with Java, and it is going quite well, and my friends want to play it too but they aren't very tech savvy, so it's hard to tell them to get an IDE or use the CMD, so I wanted to know if there was a way to make my text-based game into a window, like using JFrame or...
0
10,368
Error inflating class com.google.android.exoplayer2.ui.SimpleExoPlayerView
<p>One Strange thing: the code is working fine while using emulator, but crashes while running building an unsigned apk.</p> <p>when connected to android studio, it gives the following error:</p> <pre><code>java.lang.RuntimeException: Unable to start activity ComponentInfo{com.tv2z.demo/com.tv2z.demo.DemoActivity}: a...
0
6,560
Improving Subquery performance in Postgres
<p>I have these two tables in my database</p> <pre><code> Student Table Student Semester Table | Column : Type | | Column : Type | |------------|----------| |------------|----------| | student_id : integer | | student_id : integer | | satquan : smallint |...
0
2,358
Signalr Close Connection
<p>I am trying to create a stop button in my webapp. The webapp creates bulk shortcuts to different files. I have tried using <code>$.connection.shortcutHub.stop()</code> however this comes up with an error saying <code>Cannot read property 'shortcutHub' of undefined(anonymous function)</code></p> <p>The code is below...
0
1,893
jQuery UI Tabs go to specific div in tab
<p>I have basic tabs setup using JqueryUI (simplified to only the two tabs relevant)</p> <pre><code> &lt;div id="tabs"&gt; &lt;ul&gt; &lt;li&gt;&lt;a href="#tabs-1"&gt;Home&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="#tabs-5"&gt;Benefits&lt;/a&gt;&lt;/li&gt; &lt;/ul&gt; ...
0
1,096
How to use waitForKeyElements to display information after select images?
<p>I wrote a script that adds the number, contained in the image source URL, to the page. It works great!</p> <p>But, I also want it to run on a page that has AJAX-driven tabs.<br> I've tried playing around with <code>waitForKeyElements</code> but I can't figure out how to make it work, and I don't understand jQuery. ...
0
1,071
Closing Browser After Failed Test
<p>I am running tests with WebDriver, when a test fails, the browser does not close. On a Windows machine this is a huge problem because I then have several instances of the IEDriver still running in the background. </p> <p>I have tried a try/catch statement which doesn't seem to work either. If the test fails the bro...
0
1,070
Fast plotting data in python
<p>I'm trying to plot data from mpu6050 imu with arduino. MPU6050 sends data faster than plot. Arduino code gives 6 data which are yaw, pitch, roll, ax,ay and az from serial port. I need suggestions for fast plot .</p> <p>Python Code:</p> <pre><code>import serial import matplotlib.pyplot as plt #import matplotlib lib...
0
1,618
Cannot read property of undefined when uploading empty file
<p>I'm using Node.js (v0.10.25) and Express (4.13.1) and using jade instead of HTML. I have a registration form where a user can registrate and upload a profileimage.</p> <p>All works fine except when I upload an empty image then the I get the following error:</p> <p><strong>Cannot read property 'profileimage' of und...
0
3,013
Forcing user to change expired password in spring security
<p>I am building spring mvc and spring security based web based application.</p> <p>I have implemented Reset Password functionality.System Administrator will reset password of any user .Random generated password will be emailed to user and same will be updated in database.</p> <p>Now I want whenever user login with r...
0
1,024
How to get all the links of a list inside a div?
<p>I have a code with the following DOM Tree:</p> <pre><code>&lt;div id=&quot;blogPagination&quot;&gt; &lt;div class=&quot;pagination&quot;&gt; &lt;ul&gt; &lt;li&gt; &lt;a href=&quot;/2&quot; &gt;1&lt;/a&gt; &lt;/li&gt; &lt;li&gt; &lt;a hre...
0
2,393
How to wait for MSSQL in Docker Compose?
<p>I have a <em>service</em> (an ASP.NET Core Web application) that depends on MSSQL. The services are orchestrated using Docker compose, and I want docker compose to first start the database and wait for it to be <strong>ready</strong> before running my service. For that, I am defining the <code>docker-compose.yml</co...
0
1,527
TypeError: __init__() got an unexpected keyword argument 'many'
<p>While trying to return a query-set using generic views, I get an error </p> <blockquote> <p>TypeError: <strong>init</strong>() got an unexpected keyword argument 'many'</p> </blockquote> <p>I am unable to understand the source of this error as it seems to be originating from internal libraries. I have no clue as...
0
1,587
EXCEPTION: Uncaught (in promise): Error: Cannot find module 'app/home/home.module'
<p>I'm trying to lazy load Angular 2 modules with the router, and I'm having this error:</p> <blockquote> <p>error_handler.js:50 EXCEPTION: Uncaught (in promise): Error: Cannot find module 'app/home/home.module'</p> </blockquote> <p>I tried all the answers that seems to be working for the others, like this one whic...
0
1,741
Telerik RadGrid + RadAjaxManager
<p>Let's go straight to the problem.</p> <p>I have two gridviews from which one generates the data source to another one. Both gridviews have ability to edit the item (row), but editing only works in first gridview (the one that generates data for the other one), when I click on edit in the second gridview nothing hap...
0
4,644
Image GridView Inside Fragment
<p>I have just started to develop on the android platform after developing on iOS. I have looked around and I can't seem to figure it out. I am trying to have a grid view appear after a tab in the action bar is selected. The fragment is brought into view by a main activity that controls the tab bar. I think the proble...
0
2,467
Unrecognized configuration section applicationSettings
<p>My app runs fine on development PC, but when I start it on a client PC, I get an exception: "Configuration System failed to initialize", with innerException msg = "Unrecognized configuration section applicationSettings" I have checked my config file against all solutions I could find on the Internet, but it seems OK...
0
1,255
c# - error using FindControl on div id
<p>I have an ASP.NET site that I am trying to access div elements by their ID from the C# code behind file. Essentially I want to see if a div element exists, and if so, alter its properties.</p> <p>I've found many resources out there that point to a dozen different solutions and none of them seem to work.</p> <p><st...
0
1,385
Completion in IPython (jupyter) does now work (unexpected keyword argument 'column')
<p>I'm using jupyter notebook, and it works fine, but when I press TAB, the auto-completion doesn't work. I already checked all the similar cases in StackOverflow, but none of the solutions worked for me. I have also tried to do &quot;pip upgrade&quot; to: IPython, IPYKernel, Jedi, and Tornado, the upgrade works fine ...
0
1,104
Android RecyclerView smooth scroll to view that's animating their height
<p>I have a RecyclerView with Expandable Child Views, when the child ViewGroup is clicked it inflates an amount of views animating the ViewGroup height from 0 to the measured viewgroup height, like the following gif:</p> <p><img src="https://i.stack.imgur.com/HQH93.gif" alt="example"></p> <p>The problem is: I'm calli...
0
1,144
Could not find method android() in root of multimodule project
<p>When trying to add parallel build for set of Android projects</p> <p>For root <code>build.gradle</code> I added <a href="https://github.com/Nodeclipse/nodeclipse-1/blob/master/org.nodeclipse.enide.editors.gradle/docs/android/build.gradle" rel="nofollow noreferrer">from template</a></p> <pre><code>subprojects { ...
0
1,320
Error: The type or namespace name 'ExcelPackage' could not be found
<p>I like to make excel file when I press the the button with below code, but I have 2 errors.</p> <pre><code>Error 1: The type or namespace name 'ExcelPackage' could not be found Error 2: var ds = query.CopyToDataTable(); </code></pre> <p>the code for button click event is like below:</p> <pre><code>using System; ...
0
1,326
Error with install angular-cli with node-sass
<p>My system configuration:<br> debian 4.4 , nvm 0.33.8 , node v8.9.4 , npm 5.6.0 .</p> <p>I want to install Angular-cli <code>npm install -g @angular/cli</code>. But I get an error message:</p> <pre><code>root@contracts:/home/kalugin# npm install -g @angular/cli /root/.nvm/versions/node/v8.9.4/bin/ng -&gt; /root/.nv...
0
1,158
System.Data.SqlClient.SqlException: Invalid object name 'dbo.Projects'
<p>My MVC app is returning SqlExceptions when trying to access any table in my database.</p> <p>Exception Details: System.Data.SqlClient.SqlException: Invalid object name 'dbo.Projects'.</p> <p>My app us linq for the data layer.</p> <p>If I use an old dll it works fine, (so doesn't seem to be a problem with the DB) ...
0
1,774
jQuery mobile tap event triggered for twice
<p>I tested with jquery mobile 'tap' event and found it fired <strong>two times</strong>, everytime it is triggered. Code as below for a html page:</p> <pre><code>&lt;!DOCTYPE html&gt; &lt;html&gt; &lt;head&gt; &lt;title&gt;Demo&lt;/title&gt; &lt;meta name="viewport" content="width=device-width, initial-scale=...
0
1,188
Use S3DistCp to copy file from S3 to EMR
<p>I am struggling to find a way to use S3DistCp in my AWS EMR Cluster.</p> <p>Some old examples which show how to add s3distcp as an EMR step use <code>elastic-mapreduce</code> command which is not used anymore.</p> <p>Some other sources suggest to use <code>s3-dist-cp</code> command, which is not found in current E...
0
1,441
java.lang.SecurityException: MODE_WORLD_READABLE no longer supported
<p>The exception only occurs in Android 7.0 Nougat (emulator) devices.</p> <blockquote> <p>java.lang.SecurityException: MODE_WORLD_READABLE no longer supported</p> </blockquote> <p>My code:</p> <pre><code>public void SessionMaintainence(Context context) { this.context = context; preferences = context.getSh...
0
1,711
"Aquisition Attempt Failed" exception in logs with no effect on the application (Setup: Hibernate + c3p0)
<p>Ok, I got a weird one here. I have a application set up that is using hibernate configured for multi tenancy and C3P0 for connection pooling.</p> <p>Everthing works fine except that in my logs an exception is thrown and i cannct get to the cause of it... The weird thing is that this exception is in no way bothering...
0
2,395
Resolving javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed Error?
<p><strong>Edit :</strong> I tried to format the question and accepted answer in more presentable way at my <a href="https://tech-geek-passion.blogspot.com/2017/09/how-to-resolve-javaxnetsslsslhandshakee.html" rel="noreferrer">blog</a>.</p> <p>Here is the original issue.</p> <p>I am getting this error:</p> <blockquote>...
0
1,229
how to use tqdm with multithreading?
<p>I am trying to use tqdm to report the progress of each file downloads from three links, I wanted to use multithreading to download simultaneously from each link at the same time update the progress bar. But when I execute my script, there are multiple lines of progress bar it seems the thread are updating the tqdm p...
0
2,195
Linker errors-Undefined Reference to
<p>I have project which has a dependency of a logging project when i build this other project i get the following linker errors:</p> <p>The logging project build well however when i use the logging project inside this project as a library in linker options it generates the following errors , in my logging project i do...
0
1,528
sequelize Nested include with where clause
<p>I'm using sequelize for some filtering.</p> <p>My current table structure:</p> <ul> <li>Table1 holds Items (which has images) and Users (irrelevant)</li> <li>Table1 has a direct relationship to Table2 through Table2id on Table1 (not to Table3)</li> <li>Table2 has a direct relationship to Table3 through Table3id on...
0
1,987
I want Java code to convert word file (doc file having text, images, tables etc. ) into pdf file.
<p>I have added all the necessary jar files including <code>itextpdf-5.1.0.jar</code> but still it gives errors.. please refer below code. I searched it on net but it's not working.</p> <p>It gives error while importing </p> <pre>com.lowagie.text.Document; com.lowagie.text.Paragraph; com.lowagie.text.pdf.PdfWriter...
0
1,155
Get all files and directories in specific path fast
<p>I am creating a backup application where c# scans a directory. Before I use to have something like this in order to get all the files and subfiles in a directory:</p> <pre><code>DirectoryInfo di = new DirectoryInfo("A:\\"); var directories= di.GetFiles("*", SearchOption.AllDirectories); foreach (FileInfo d in dire...
0
1,676
Flask Value error view function did not return a response
<p>Error message:</p> <pre><code>Traceback (most recent call last): File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1836, in __call__ return self.wsgi_app(environ, start_response) File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1820, in wsgi_app response = self.make_respon...
0
1,432
How to check for nulls in a deep lambda expression?
<p>How can I check for nulls in a deep lamda expression?</p> <p>Say for example I have a class structure that was nested several layers deep, and I wanted to execute the following lambda:</p> <pre><code>x =&gt; x.Two.Three.Four.Foo </code></pre> <p>I want it to return null if Two, Three, or Four were null, rather th...
0
1,233
how to read multipart/form-data in flask
<p>I'm having trouble reading data in flask that is posted via XMLHttpRequest. I'm using this jquery plugin to crop the image and upload to server</p> <p><a href="https://codecanyon.net/item/slim-image-cropper-responsive-uploading-and-ratio-cropping-plugin/16364167" rel="noreferrer">https://codecanyon.net/item/slim-im...
0
1,401
layout_weight does not work when the layout inside a ScrollView is larger than the ScrollView
<p>I'm trying to use a linear layout's layout_weight for the height inside of a scrollview. However I find that layout_weight would only work with fillViewPort=true and if there is enough remaining space for the linear_weight to expand.</p> <p>I have listed three examples below and I want to make textView the same size...
0
3,365
Java: No suitable driver found for jdbc:h2
<p>I'm having an issue with some of my code, I've searched and tried everything I know of, without any luck.</p> <hr> <p><strong>Scenario:</strong></p> <ul> <li>Application checks if JDBC driver exists, in this case, the H2 driver (org.h2.Driver).</li> <li><p>If it doesn't exist, the application downloads the JDBC d...
0
1,596
how to save a select option dropdown in a wordpress plugin
<p>i have the following code that is taken from the WordPress codex on how to save a simple text input field. it works fine. but i am trying to now save a select option dropdown and can't figure out what i am missing here. it seems it saves the first time i hit save from the dropdown, but when i try to edit the value t...
0
1,416
Adding a Resource View/Gannt chart to jQuery Fullcalendar
<p>I am using <a href="http://arshaw.com/fullcalendar/" rel="noreferrer">jQuery Fullcalendar</a> and if you're not using it I suggest you do too because it is absolutely fantastic at what it does!</p> <p>However to be <strong>really</strong> useful to me and my project (<a href="http://code.google.com/p/fullcalendar/i...
0
1,124
typeError: Cannot assign to read only property 'tView' of object '[object Object]' in angular 9.0.4
<p>I've been using Angular 8, and recently updated to Angular 9. But when I run the project, it showd me this error in console:</p> <blockquote> <p>Error: Uncaught (in promise): TypeError: Cannot assign to read only property 'tView' of object '[object Object]' TypeError: Cannot assign to read only property 'tView' of o...
0
2,815
Loading a jsp page using JQuery
<p>I have a specific div in my page where I want to load all the subpages (I'm using JQuery for this). Before loading them I need to do some operations in the server, so I call my servlet and after all operations are done I want to load the .jsp page... but I have no idea how. </p> <p>With responseText being: </p> <p...
0
1,295
minifyEnabled causing app to crash on release mode
<p>My application was working fine on Debug mode. Unfortunately after uploading to Google Play Store I found that the app is crashing. I searched several similar questions all of which suggested to disable <strong>Proguard</strong> or check the Log outputs. However I have come across the following cases when using the ...
0
1,586
JPA/Hibernate remove entity not working
<p>I'm using a JPA interface to Hibernate, and I've written some simple code to load an entity from the database and then remove (delete) it. All of my merge calls to insert and update entities are working perfectly, but when I try to remove an entity, Hibernate doesn't delete it from the database, and no exception is...
0
2,004
com.android.builder.packaging.DuplicateFileException: Duplicate files copied in APK META-INF/maven/com.fasterxml.jackson.core/jackson-databind/pom.xml
<p>I am creating one app that uses a RestAPI to fetch data, and for that operation I am using retrofit 2, okhttp3 and jackson for parsing json to object, my app also use Firebase Cloud Messaging </p> <p>when I compile my code it gives me following error &amp; I can't able to run it</p> <p>Error:Execution failed for t...
0
1,494
Run Visual Studio 2013 solution with Crystal Reports
<p>I have an MVC application originally developed in VS2010. We have Crystal Reports (CR) integrated into it and all works smoothly.</p> <p>Now, I need to setup some new workstations which will have only VS2013. I can run the site in VS2013, but only because I have VS2010 and previously installed the CR runtime file...
0
1,275
tomcat8 IllegalArgumentException: The main resource set specified [/var/lib/tomcat8/app1/ROOT] is not valid
<p>I have problem deploying two application on one tomcat 8 instance. I have app1 and app2. App2 gets up as intended but app1 isn't. Here is my <code>server.xml</code>:</p> <pre class="lang-xml prettyprint-override"><code>&lt;?xml version='1.0' encoding='utf-8'?&gt; &lt;!-- Licensed to the Apache Software Foundation...
0
7,258
Clear form in p:dialog on close after failed action/method call
<p>I've got a form within a <code>p:dialog</code> component being submitted via AJAX. The form in the dialog is via a <code>ui:include</code> of another <code>.xhtml</code> containing just the form and its components (no, I am not nesting forms; the dialog itself is not within any form). The included page's backing bea...
0
5,325
require_tree argument must be a directory in a Rails 5 upgraded app
<p>I just upgraded my app from <code>Rails 4.2.7</code> to <code>Rails 5.0.0.1</code>. I used <a href="http://railsdiff.org/4.2.7/5.0.0.1" rel="noreferrer">RailsDiff</a> to make sure I had everything covered and I believe I did. So far everything has worked well up until the loading of my app. </p> <p>Now I am seeing ...
0
1,180
Fragment gets initialized twice when reloading activity with tabs when orientation changes
<p>I have a problem reloading an activity with tabs and fragments when I change the orientation of my device.</p> <p>Here's the situation:</p> <p>I have an activity which has 3 tabs in the action bar. Each tab loads a different fragment in a <code>FrameLayout</code> in main view. Everything works fine if I don't chan...
0
2,183