title
stringlengths
13
150
body
stringlengths
749
64.2k
label
int64
0
3
token_count
int64
1.02k
28.5k
How to center this <nav> element navigation bar of no width
<p>I am having some problem with centering this horizontal navigation bar. Here is my JSFiddle: <a href="http://jsfiddle.net/W796k/embedded/result/" rel="nofollow">http://jsfiddle.net/W796k/embedded/result/</a> I'm looking for two things: 1. How can I center the navigation bar horizontally without putting a specified w...
0
2,053
Multiple condition if-else using dplyr, custom function, or purrr
<p>I have a data frame that has similar structure to the following:</p> <pre><code>set.seed(123) df&lt;-data_frame(SectionName = rep(letters[1:2], 50), TimeSpentSeconds = sample(0:360, 100, replace = TRUE), Correct = sample(0:1, 100, replace = TRUE)) </code></pre> <p>I want summarise t...
0
1,369
Multiple commands through JSch shell
<p>I was trying to execute multiple commands through SSH protocol using the JSch library. But I seem to have stuck and cannot find any solution. The <code>setCommand()</code> method can only execute single commands per session. But I want to execute the commands sequentially just like the connectbot app on the Android ...
0
1,246
Can't add a ListView in Flutter
<p>I am trying to write an App using Flutter, but every time I add a ListView, the following exception is thrown at runtime: <code>Vertical viewport was given unbounded height</code>. The ListView isn't nested in another scrollable widget, I get the error even if I use the ListView.builder example code from the documen...
0
8,833
Caused by: org.hibernate.MappingException: Unknown entity: New Object. JTA
<p>Due the complexity of my dataBase, i decided create a new Object where I specifying just the parameters that I will to use. To do custom query I'm using createNativeQuery in JPA. Following my Object.</p> <p>POJO:</p> <pre><code>@Entity public class Unidade implements Serializable{ private static final long se...
0
3,419
Is this explanation about VSS/RSS/PSS/USS accurate?
<p>I read an explanation about VSS/RSS/PSS/USS:</p> <hr> <p>The aim of this post is to provide information that will assist in interpreting memory reports from various tools so the true memory usage for Linux processes and the system can be determined.</p> <p>Android has a tool called procrank (/system/xbin/procrank...
0
1,580
React bootstrap not styling my react components
<p>Just started out using React yesterday so setting up a demo app. Environment is:</p> <ol> <li>Typescript</li> <li>Webpack</li> <li>React &amp; React DOM</li> </ol> <p>I'm trying to setup Bootstrap styles.</p> <p>I followed this tutorial along but modified it to suit Typescript: </p> <p><a href="https://medium.co...
0
2,649
c# RawPrinterHelper sends data to printer, printer spools and states "printed" but doesnt actually print
<p>I am using the RawPrinterHelper class as described here: <a href="https://support.microsoft.com/en-us/help/322091/how-to-send-raw-data-to-a-printer-by-using-visual-c-.net" rel="noreferrer">https://support.microsoft.com/en-us/help/322091/how-to-send-raw-data-to-a-printer-by-using-visual-c-.net</a></p> <p>I am using...
0
3,351
How to set an Ansible variable for all plays/hosts?
<p><b> This question is NOT answered. Someone mentioned environment variables. Can you elaborate on this?</b></p> <p>This seems like a simple problem, but not in ansible. It keeps coming up. Especially in error conditions. I need a global variable. One that I can set when processing one host play, then check at a lat...
0
1,118
SQL Server 2008 select data only between month and year
<p>I would like select data between two date, without day</p> <p>An input example:</p> <p>start month: 9 , start year: 2011<br> end month: 3, end year: 2012</p> <p>I think that there are two way to do this.</p> <p>The first is convert start month and start year to date like <code>2011-09-01</code> and convert last ...
0
1,121
Android Firebase orderByChild query
<p>I am currently writing an Android application using Firebase. I have a product model which has a city attribute. I am running the following query:</p> <pre><code>mDatabaseReference = FirebaseDatabase.getInstance().getReference(); mDatabaseReference.keepSynced(true); productQuery = mDatabaseReference.child("product...
0
1,699
Problems occurred when invoking code from plug-in: "org.eclipse.jface"
<p>I'm new to all this and am following the HelloWorld tutorial. I got it run programmatically but when I try to do it using XML I get the message above in the log file when I try to run it. Basically every time I attempt to add a character to the strings.xml file in the res/layout directory I get an error window with ...
0
3,187
Spring security Cant autowire UserDetailsService
<p>I got stuck trying to add authentication from database.</p> <p>Here is error log:</p> <blockquote> <p>23-Dec-2015 08:24:32.819 SEVERE [localhost-startStop-1] org.springframework.web.context.ContextLoader.initWebApplicationContext Context initialization failed org.springframework.beans.factory.BeanCreationE...
0
4,526
Display phone numbers as left-to-right in right-to-left language
<p>I have a display of a users contact details where the user can alternate the display between left-to-right and right-to-left text.</p> <p><em>In the Arabic language, the text is displayed and read from right-to-left, but phone numbers, web addresses and email addresses are displayed and read left-to-right in Arabic...
0
1,784
Android how to set background color on a Button
<p>I am trying to change the background color of a Button. I'm in Kotlin on SDK 21 on emulator.</p> <p>A View and a Button are declared in the layout XML file</p> <pre><code>&lt;View android:id="@+id/myview" android:layout_width="64dp" android:layout_height="32dp" /&gt; &lt;Button android:id="@+id...
0
1,253
How can I get an oauth2 access_token using Python
<p>For a project someone gave me this data that I have used in Postman for testing purposes:</p> <p>In Postman this works perfectly.</p> <p>Auth URL: <a href="https://api.example.com/oauth/access_token" rel="noreferrer">https://api.example.com/oauth/access_token</a><br> Access Token URL: <a href="https://api.example....
0
1,026
How do you std::vector in XCode + C++?
<p>For various reasons (and I assure you they are valid, so no "use Cocoa" talk please), I must work with XCode, C++, OpenGL, OpenCL (with a little GLUT on the side) to rebuild a few graphics demos on Mac (coming from XP + Visual Studio 2005 development). The project was built as a Command Line Tool using "c++ stdc++"....
0
1,135
Android Volley makes 2 requests to the server when retry policy is set to 0
<p>I'm working on an Android project that uses Volley for async requests and imagecaching. Somehow a request is hitting the server twice even when I have the retry policy set to 0. I tried overriding the values from the DefaultRetryPolicy object with no success. Here's some sample code:</p> <p>The request:</p> <pre...
0
1,198
Why auto-fit or auto-fill not working properly with minmax?
<p>It doesn't work properly when I add auto-fit or auto-fill instead of a number.</p> <pre><code> grid-template-columns: repeat(auto-fit, minmax(max-content, max-content)); </code></pre> <p><a href="https://i.stack.imgur.com/UNgn6.jpg" rel="noreferrer"><img src="https://i.stack.imgur.com/UNgn6.jpg" alt="enter image d...
0
1,576
Google Map v3 - Center a infowindow when opened
<p>I have a Google Map that works fine but I just need to tweak it so that when a marker is clicked and opens up a info window, I'd like that marker (and the map) to center on the screen. This is so that the info window is the direct focus.</p> <p>If it helps, I'm using <a href="http://google-maps-utility-library-v3.g...
0
1,459
Calling celery task hangs for delay and apply_async
<p>I have created a celery app with following directory structure (as given in celery site):</p> <pre><code>proj |-- celery.py |-- celery.pyc |-- __init__.py |-- __init__.pyc |-- tasks.py `-- tasks.pyc </code></pre> <p>Following are contents of celery.py</p> <pre><code>from __future__ import absolute_import from ce...
0
4,208
Hibernate: Foreign key has the wrong number of columns
<p>I have defined a many-to-many relationship between my two entity classes User and Permission. User has a primary key composite of username and countyId, and my Permission table has a regular integer Id. The table UserPermission has the three foreign keys as its primary key: username, countyId and permissionId.</p> ...
0
1,682
Slick-carousel how to stop autoplay when video is on via youtube api
<p>Hi i'm having trouble to get slick carousel (<a href="http://kenwheeler.github.io/slick/" rel="nofollow">http://kenwheeler.github.io/slick/</a>) to stop the autoplay when I'm using a youtube clip inside the slider.. </p> <p>Someone said that I can use onAfterChange but still dont know how to turn off the autoplay w...
0
1,047
Android Studio static or non-static variables and methods
<p>I'm a little confused about when a variable or a method should be static. I've developed an app with several classes, variables and methods, and very rarely use the keyword static. Yet it works satisfactorily. Could you tell me if I make mistakes and why. Here is a sample of my code:</p> <pre><code>public class Gam...
0
3,831
ValueError: array must not contain infs or NaNs
<p>I have a csv file with data that is formatted for example, as follows(my data set is much much larger):</p> <pre><code>Image Id,URL,Latitude,Longitude,Address 10758202333,https://farm8.staticflickr.com/7408/10758202333_b6c29d93b1_q.jpg,51.482826,-0.167112,Cadogan Pier Chelsea Embankment Chelsea Royal Borough of Ken...
0
1,217
Android - Set ImageView to URL
<p>I am trying to set an Imageview to a URL.</p> <p>Below is my code</p> <pre><code>protected void onCreate(Bundle savedInstanceState) { // TODO Auto-generated method stub super.onCreate(savedInstanceState); setContentView(R.layout.getpic); ImageView i = (ImageView)findViewById(R.id.ivget); URL u...
0
1,373
Unable to resolve service for type 'MediatR.IMediator'
<p>I try to make .NET Core API with CQRS, but i cannot build it because of MediatR error:</p> <p>System.AggregateException: 'Some services are not able to be constructed (Error while validating the service descriptor 'ServiceType: Core.Infrastructure.Domain.Queries.IQueryBus Lifetime: Scoped ImplementationType: Core.I...
0
1,130
How to display all files under folders in treeview
<p>Iam trying to get all drives, folders, subfolders and files in treeview control using winforms. I have seen the following article.</p> <p><a href="http://codehill.com/2013/06/list-drives-and-folders-in-a-treeview-using-c/" rel="nofollow noreferrer">http://codehill.com/2013/06/list-drives-and-folders-in-a-treeview-u...
0
2,655
Google maps KML polygons
<p>I have successfully imported a kml file to a Google map so that it displays real estate boundaries. </p> <p>I have also used the tutorial at <a href="https://google-developers.appspot.com/maps/documentation/javascript/examples/polygon-arrays" rel="nofollow">https://google-developers.appspot.com/maps/documentation/j...
0
2,695
Why navigation.closeDrawer is not a function?
<p>Dependencies version:</p> <pre><code>"dependencies": { "react": "16.3.1", "react-native": "~0.55.2", "react-navigation": "^2.0.1", } </code></pre> <p>I use <code>react-navigation</code> to navigate my screen, i create two screen and a drawer</p> <p>Router.js:</p> <pre><code>import { createStackNavi...
0
1,224
How to resolve duplicate class error in gradle build?
<p>I have tried to use ibm tone analyzer api for my project, but if I include the dependency I get this error:</p> <blockquote> <p>Duplicate class javax.annotation.CheckForNull found in modules annotations-3.0.1.jar (com.google.code.findbugs:annotations:3.0.1) and jsr305-3.0.2.jar (com.google.code.findbugs:jsr30...
0
1,090
How to add JCheckBox in JTable?
<p>First of all i apologize for my english neglect that i will explain all my problem.</p> <p>First i want JCheckBox in the JTable i have.</p> <p>I am retrieving student id and student name from database in column index 0 and 1. I want third column should be Absent/Present which will initially take whether student is...
0
2,898
Angular 7 custom webpack.config.js
<p>since newest Angular has deprecated 'ng eject' command, I've started my project with adding custom file with webpack.config named: </p> <blockquote> <p>extra-webpack.config.js</p> </blockquote> <p>I've followed this tutorial: <a href="https://codeburst.io/customizing-angular-cli-6-build-an-alternative-to-ng-eje...
0
3,841
"Invalid provider type specified" CryptographicException when trying to load private key of certificate
<p>I'm trying to read the private key of a certificate which has been shared with me by a third-party service provider, so I can use it to encrypt some XML before sending it to them over the wire. I'm doing so programmatically in C#, but I think this is a permissions or misconfiguration issue, so I'll focus on the fact...
0
1,374
Angular2: How to subscribe to Http.post observable inside a service and a component properly?
<p>For a JWT authentification, I make a post request to get the token using the new <code>Http</code> module working with Observables now.</p> <p>I have a simple <code>Login</code> component showing the form:</p> <pre><code>@Component({ selector: 'my-login', template: `&lt;form (submit)="submitForm($event)"&gt; ...
0
1,034
Could not load file or assembly 'Microsoft.TeamFoundation.WorkItemTracking.Client.Cache' or one of its dependencies
<p>I am working on a web application which interacts with TFS. When I upload my application to windows azure cloud I am getting this error message .</p> <p>appreciate your inputs to resolve this issue.</p> <p>pasted below is the error message I am receiving</p> <pre><code>Server Error in '/' Application. -----------...
0
1,082
How to custom Spring Batch DelimitedLineTokenizer
<p>I have two file types to insert in database.</p> <p>Format are : aa;bb;cc and aa;bb;cc;dd;ee</p> <p>This is my FlatFileItemReader :</p> <pre><code> &lt;bean name="readerContractToAddIntoPRV" class="org.springframework.batch.item.file.FlatFileItemReader"&gt; &lt;property name="comments" value="#" /&gt; ...
0
1,552
Locating memory leak in Apache httpd process, PHP/Doctrine-based application
<p>I have a PHP application using these components:</p> <ul> <li>Apache 2.2.3-31 on Centos 5.4</li> <li>PHP 5.2.10</li> <li>Xdebug 2.0.5 with Remote Debugging enabled</li> <li>APC 3.0.19</li> <li>Doctrine ORM for PHP 1.2.1 using Query Caching and Results Caching via APC</li> <li>MySQL 5.0.77 using Query Caching</li> <...
0
2,228
Why is my iOS app not showing up in other apps' "Open in" dialog?
<p>I am trying to implement the registering process that allows my iOS app to show up in the "Open in" list of other applications (as described in <a href="https://developer.apple.com/library/ios/#documentation/FileManagement/Conceptual/DocumentInteraction_TopicsForIOS/Articles/RegisteringtheFileTypesYourAppSupports.ht...
0
1,203
ChromeProxyService: Failed to evaluate expression 'handlePrimaryPointer':InternalError: No frame with index 45
<p>Code that I have written for Admin LogIn :</p> <pre><code>import 'package:cloud_firestore/cloud_firestore.dart'; import 'package:flutter/material.dart'; class FirebaseServices { static Future&lt;DocumentSnapshot&gt; adminSignIn(id) async { var res = await FirebaseFirestore.instance.collection(&quot;ad...
0
1,621
Add HTTP Headers to JAX-WS service response
<p>I'm developing a Java Web Service. At this moment I can get Http header requests. But I want to add more header requests. </p> <p>I'm currently doing this in a servlet filter. </p> <pre><code>@WebFilter(urlPatterns = {"/*"}) public class AddHeader implements Filter { @Resource private WebServiceContext co...
0
1,058
Multiple Left Join on same table
<p>I have two table. 1st table => member {member_id, name, active} 2nd table => savings {savings_id, member_id, month, year, amount, type, paid}</p> <p>Member Table</p> <pre><code>+-----------+--------+--------+ | member_id | name | active | +-----------+--------+--------+ | 105 | Andri | 1 | | 1...
0
2,705
operator overloading for Array class
<p>i am trying to overload operators &lt;&lt; >> != == = and [] for Array class. The app crashes on run, though no compilation errors are shown. what could possibly be wrong? IDE used dev c++</p> <p>Here's array.h</p> <pre><code>#ifndef ARRAY_H #define ARRAY_H #include &lt;iostream&gt; using namespace std; class A...
0
1,761
Getting java.net.SocketTimeoutException: Connection timed out in android
<p>I'm relatively new to android development. I'm developing an android application where I'm sending requests to the web server and parsing JSON objects. Frequently I'm getting <code>java.net.SocketTimeoutException: Connection timed out</code> exception while communicating with the server. Some times it will work perf...
0
2,076
Training and Loss not changing in Keras CNN model
<p>I am running a CNN for left and right shoeprint classfication. I have 190,000 training images and I use 10% of it for validation. My model is setup as shown below. I get the paths of all the images, read them in and resize them. I normalize the image, and then fit it to the model. My issue is that I have stuck at a ...
0
1,564
Open and read text file in c++ with Android (ndk)
<p>I'm trying to make an app in Android that uses OpenCV in C++. The problem I face is that I want to open a text file from the native part to read it word by word, but it won't open. My code is the following:</p> <p><strong>JNI method:</strong></p> <pre><code>JNIEXPORT jboolean JNICALL Java_com_alejandro_nativeopenc...
0
2,319
How do I fix this "no persistent classes found for query class" message?
<p>I am creating a web application using zkoss 5.0.4, Spring 3.0.3, Hibernate 3, and JpA 1.0 with JBOSS 5.1 GA (with JDK support).</p> <p>The project compiles fine with JBOSS. But it seems that persitence is not applying for some reason.</p> <p>When I run an application in the console, it displays the following:</p> ...
0
7,738
Jupyter notebook error Windows 10
<h2>Problem:</h2> <p>Jupyter is not able to save, create (I imagene delete) any file type. But I can load them fine</p> <h2>An example of creating file</h2> <p>Creating File Failed An error occurred while creating anew file. </p> <blockquote> <p>''' Unexpected error while saving file: untitled.txt [Errno 2] No ...
0
1,176
SWIG Python undefined symbol error
<p>I'm trying to create a *.so file for further use in Python using SWIG, but something isn't working.</p> <p>I have two files: DataGatherer.h</p> <pre class="lang-cpp prettyprint-override"><code>#include &lt;iostream&gt; #include &lt;stdlib.h&gt; #include &lt;time.h&gt; #include "gnublin.h" #include &lt;pthread.h&gt...
0
1,162
*Nuxt JS Auth* Why after success login with loginWith in template sections auth.loggedIn is true, but in middleware file is false?
<p>I just started learning NuxtJS and I want to implement authentication by auth module for Nuxt. I don't know why, but login with loginWith seems working, on vue files I can get data about logged user and loggedIn variable has true value. But I noticed when I set middleware from auth module, even if I'm logged in, ser...
0
1,808
Error on Onclick , java.lang.IllegalStateException: Could not execute method of the activity
<p>I'm having an error every time i click the undo and also redo, i don't know why i'm having this error</p> <pre><code>java.lang.IllegalStateException: Could not execute method of the activity. </code></pre> <p>can anyone please help me with this. Thanks in advance. Below is my code and its Error log</p> <p>--Draw...
0
4,536
Hamburger Icon does not show in Navigation Drawer Fragment
<p>I am using a Fragement for navigation drawer and hence can't use <code>onPostCreated</code> to call syncState</p> <pre><code>public class NavigationDrawerFragment extends Fragment{ .... </code></pre> <p>Calling <code>syncState()</code> on <code>activityCreated</code></p> <pre><code>@Override public void onActivit...
0
1,165
Edit a table in JSP page which edits the database
<p>my question is simple,i have made a JSP page having a table which displays the content of the database,now what m trying is to edit the details in table,which simultaneously edits the values in the database. I have written the code,everything looks good but ,its not editing the database,what to do ?? Help is serious...
0
1,124
Global variables Ionic 2
<p>I'm having some difficulties with Ionic 2 and setting up global variables. The structure of my app is as follows:</p> <pre><code>Main app | |--- Page1 (Info) |--- Page2 (Map) |--- Page3 (List) | |--- ItemTabsPage | |---tab1 |---tab2 ...
0
1,288
docker Job for docker.service failed because the control process exited with error code
<p>i spend more time to learn many posts here and out, but i don't find the solution, so i came here to ask :</p> <p>i wanna run docker on manjaro linux OS (archlinux like) </p> <pre><code>uname -a Linux boblinux-pc 4.1.15-1-MANJARO #1 SMP PREEMPT Tue Dec 15 07:48:44 UTC 2015 x86_64 GNU/Linux </code></pre> <p>after ...
0
2,191
Gradle: Couldn't connect to Kotlin daemon on Windows
<p>When I try a task that involves a <code>compileKotlin</code> (or <code>compileTestKotlin</code>), then I receive this warning and the result is <em>unpleasant long duration of the build process</em>:</p> <blockquote> <p>Could not perform incremental compilation: Could not connect to Kotlin compile daemon</p> ...
0
12,945
Uploading files with VueJS, axios and Laravel
<p>Hello I am building one project. Where user can send up to 5 images and up to 10 songs with the text. But when I send request to the server, where I handle with Laravel, I can't get those files.</p> <p><div class="snippet" data-lang="js" data-hide="false" data-console="false" data-babel="false"> <div class="snippet...
0
1,932
Failed to install hashlib, python 3, debian
<p>The software fails to install. Any help in resolving this would be appreciated. </p> <p>I believe that the error is probably a dependency error. </p> <pre><code> Running setup.py (path:/tmp/pip-build-9rlb94_r/hashlib/setup.py) egg_info for package hashlib Traceback (most recent call last): ...
0
1,557
Spring boot + oauth2 : Full authentication is required to access this resource
<p>I am trying to implement a authentication-server using spring boot, spring cloud security and spring cloud oauth2.</p> <p>I am getting below error when I try to hit <a href="http://localhost:8080/auth/oauth/token" rel="noreferrer">http://localhost:8080/auth/oauth/token</a> from postman</p> <blockquote> <p>{ ...
0
3,200
Bad PKCS7 Padding error: Invalid length 106
<p>I'm trying to encrypt and decrypt with the following functions, however, it results in a bad padding error.</p> <p>If I set <code>PaddingMode</code> to <code>None</code> it returns some alpha characters and random symbols in Log.</p> <p>I'm possibly missing something from setting the correct structure which is as ...
0
1,994
What does "ValueError: No objects to concatenate" mean and how can I fix it?
<p>I try to get data from google trends in a g sheet. First time it runned smoothly, second time not so much. I got an error called:</p> <blockquote> <p>ValueError: No objects to concatenate</p> </blockquote> <p>I searched this error on Stack Overflow before but couldn't find any solutions. I use the code displayed bel...
0
1,106
PrimeFaces p:media not working with StreamedContent in a @ViewScoped bean
<p>I have an issue related to Primefaces4 meida type rendering pdf file in browser. I have successfully tried the example in showcase from primefaces website. Now I want to get a new feature, which offers an tree structure with document nodes in the left panel. User could select one document to display it in the center...
0
1,824
How to see docker build "RUN command" stdout? (docker for windows)
<p>In the past I could simply do something like this:</p> <p><code>Dockerfile</code>:</p> <pre><code>FROM ubuntu RUN echo &quot;test&quot; </code></pre> <p>which would output <code>test</code> to my shell. I used this as a way of debugging my builds.</p> <p>In the latest stable version of docker for windows the build o...
0
2,068
ValueError: index must be monotonic increasing or decreasing : Adding milliseconds
<p>So I had everything working with my data until I added milliseconds to the date/time field. </p> <p><strong>selected = selected['2017-02-20 16:10:05':'2017-02-20 16:20:06']</strong> is my statement to filter my data_frame**</p> <p>The below data works when milliseconds are 0000</p> <p><a href="https://i.stack.im...
0
2,317
validate nested objects using class-validator in nest.js controller
<p>I want to validate body payload using class-validator in a nest.js controller. My <code>currency.dto.ts</code> file is like this:</p> <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false"> <div class="snippet-code"> <pre class="snippet-code-js lang-js prettyprint-override">...
0
1,286
How is release handled for @synthesized retain properties?
<p>I have some questions about synthesized properties in Objective-C. The full list follows, but the basic question is this: <strong>How does the compiler ensure that the ivars for synthesized properties are properly released, even though my code may or may not include release methods in dealloc?</strong></p> <p>Note:...
0
1,111
redirect html page if not login
<p>I have simple Login Form on my webpage. It uses javascript to login user and works fine. problem is that is user types the landing page url directly into the adress bar he directly can acess the page without login. i want to redirect him to the login page if he didn't login. below are the links of loding and target ...
0
1,170
How to create a footer in html document
<p>Before I explain the problem, just let me say that I have searched quite a bit on Google and read several Stack Overflow replies in addition to trying stuff out, it doesn't quite work.</p> <p>Another HTML footer question, but I don't seem to find the answer to my question even though there seems to be many questions...
0
1,602
UITableViewHeaderFooterView subclass with auto layout and section reloading won't work well together
<p>I am trying to incorporate auto layout into my UITableViewHeaderFooterView subclass. The class is pretty basic, just two labels. This is the complete subclass: </p> <pre><code>@implementation MBTableDetailStyleFooterView static void MBTableDetailStyleFooterViewCommonSetup(MBTableDetailStyleFooterView *_self) { ...
0
2,495
Why does my android activity always start scrolled to the bottom?
<p>Whenever I start this activity, it always starts bottomed out--scrolled all the way to the bottom. I am not doing anything weird in the activity OnCreate (or anywhere for that matter) that I would expect to change the scroll position. I have tried setting focus to the topmost focusable control, and the scrollto meth...
0
2,717
Spark on Amazon EMR: "Timeout waiting for connection from pool"
<p>I'm running a Spark job on a small three server Amazon EMR 5 (Spark 2.0) cluster. My job runs for an hour or so, fails with the error below. I can manually restart and it works, processes more data, and eventually fails again.</p> <p>My Spark code is fairly simple and is not using any Amazon or S3 APIs directly. My...
0
2,745
Hover text and show a html table
<p>So basically I want some text to show a table when you hover your mouse over it, im using this basic jquery/CSS code: </p> <pre><code>&lt;meta charset="utf-8" /&gt; &lt;title&gt;&lt;/title&gt; &lt;link href="//code.jquery.com/ui/1.11.4/themes/smoothness/jquery-ui.css" rel="stylesheet" /&gt; &lt;script src="//code.j...
0
1,052
Error: Conversion to non-scalar type
<p>I am making a set of derived classes for an assignment. I am instructed to use char arrays (c-strings). When I compile I keep getting the error: </p> <pre><code>Homework11.cpp: In function Γ’int main()Γ’: Homework11.cpp:72: error: conversion from Γ’char [10]Γ’ to non-scalar type Γ’BusinessΓ’ requested Homework11.cpp:73: ...
0
1,778
Refused to load the script because it violates the following Content Security Policy directive: "script-src 'self'
<blockquote> <p>I am trying to develop a chrome appplication in which i want to display a custom Rss feeds but feeds are not get loaded and dispalying error like above.</p> <p>Error Details in which is displayed</p> </blockquote> <pre><code>Refused to load the script 'https://ajax.googleapis.com/ajax/libs/jqu...
0
1,663
ImportError: No module named pip
<p>OS: Mac OS X 10.7.5 Python Ver: 2.7.5</p> <p>I have installed setuptools 1.0 with ez_setup.py from <a href="https://pypi.python.org/pypi/setuptools" rel="noreferrer">https://pypi.python.org/pypi/setuptools</a> Then I download pip.1.4.1 pkg from <a href="https://pypi.python.org/pypi/pip/1.4.1" rel="noreferrer">http...
0
1,351
PHP on GoDaddy Linux Shared trying to send through GMAIL SMTP
<p>I have tried EVERY single script/code/method posted on StackOverflow and other sites for this, but with no luck. I am hosting on GoDaddy. I have setup a Google App account, set up everything needed for MX Records (using the GoDaddy tool for that), and even tried sending some emails from the GMAIL interface for my si...
0
1,260
Warning: This page calls for XML namespace declared with prefix [HTML element name] but no taglibrary exists for that namespace
<p>I have a problem with one JSF page. This is the source code:</p> <pre><code>&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"&gt; &lt;html xmlns:h="http://java.sun.com/jsf/html"&gt; &lt;head&gt; &lt;title&gt;Login&lt;/title&gt; &lt;li...
0
1,923
Getting a 404 after starting Artifactory/Tomcat running on centos
<p>I'm trying to get Artifactory running on a centos server. This is what I did:</p> <p>Created a new user called artifactory</p> <p>switched to that user</p> <p><code>wget https://bintray.com/artifact/download/jfrog/artifactory-rpms/jfrog-artifactory-oss-4.0.2.rpm</code></p> <p>then followed instructions from arti...
0
3,656
resizing columns width in sap.m.Table
<p>I have a lot of rows in sap.m.table and I want to show all rows' names properly. First I made table auto and gave the columns 100% width and made them demand popin. I tried a lot of combinations but I couldn't manage to show them properly. Here what I've got at the end. <a href="https://i.stack.imgur.com/TyM9x.png" ...
0
1,165
ClassNotFoundException: com.mysql.jdbc.Driver. JDBC MySQL driver for web application
<p>So I have a .jar file for the MySQL JDBC driver, it is under my libraries source folder and I have the following code:</p> <pre><code>public static Connection getConnection() throws SQLException { Connection conn = null; try{ Class.forName("com.mysql.jdbc.Driver").newInstance(); ...
0
1,638
how can get count of rows in hibernate when hql have group by?
<p>I have hql query that have group by .In pagination result i want to get count of all result to show in pagination . In query that donot have group by .I write a utility that create count of query from hql query like this </p> <pre><code>select u from Personel u where u.lastname='azizkhani' </code></pre> <p>i fin...
0
2,080
Icon gloss with iOS 6 & Xcode 5.0
<p>I am really stuck on how to remove the gloss from my icon when using iOS6 and XCode 5.</p> <p>I have read through these questions: </p> <p><a href="https://stackoverflow.com/questions/8740387/removing-gloss-effect-from-an-icon-in-ios-4-3">Removing gloss effect from an icon in iOS 4.3</a></p> <p><a href="https://s...
0
1,085
error: the details of the application error from being viewed remotely
<p>I have 2 login pages: Login.aspx-for customer login and xlogin.aspx for admin login i just uploaded my project to the server and all application pages works great but when i log in the admin xlogin.aspx i'm being forwarded to the admin.aspx page - but i get this error:</p> <pre><code>Server Error in '/' Application...
0
1,120
How to select distinct results in Spring Data
<p>I have a problem to build query in Spring Data using simple Spring Data query or @Query or QueryDSL.</p> <p>How to select rows that will be distinct for three columns (Study, Country, Login) and as a result of query will be the list of objects type of User?</p> <p>Table:</p> <p><code>-----------------------------...
0
1,942
Flutter How to check if Sliver AppBar is expanded or collapsed?
<p>I am using a <a href="https://docs.flutter.io/flutter/material/SliverAppBar-class.html" rel="noreferrer"><strong>SliverAppBar</strong></a> in Flutter, with a background widget.</p> <p>The thing is When it's <em>expanded</em>, the title and icons (leading and actions) should be <em>white</em> in order to be seen cor...
0
1,069
Update SQL in Access VBA -- Updating Table Values From Another Table
<p>I'm fairly new to Access VBA and SQL coding. So far, I've been able to find most of the answers to issues I've had by using the internet. I'm currently trying to write some code in MS Access (2013) VBA that updates the data in one table from another table in the same database when a particular form closes.</p> <p>I...
0
1,563
elevate zoom not working
<p>I am using elevate zoom with Apple-style Slideshow Gallery and all works fine. However the zoom feature is zooming in the hidden images which are hidden by the slider until they become visible when clicked on the thumbnail. The original code for initiating the zoom plugin was </p> <pre><code>$("#zoom_01").elevateZo...
0
1,136
Conflict between jQuery Validate and Masked Input
<p>I've got a form that's using both <a href="http://docs.jquery.com/Plugins/validation" rel="noreferrer">jQuery Validate</a> and <a href="http://digitalbush.com/projects/masked-input-plugin/" rel="noreferrer">Masked Input</a> for phone number and US zip code fields.</p> <p>For example, for a US zip code, Masked Input ...
0
1,086
Node JS + Mongo DB: ValidationError: User validation failed: username: Path `username` is required
<p>When I am trying to Save/Create a New Document (User) to Mongo DB using Mongoose, I am getting the following Validation Error in spite of providing all the Values with proper DataType:</p> <p><strong>ValidationError: User validation failed: username: Path <code>username</code> is required.</strong></p> <p>I am a B...
0
1,028
pyspark.sql.utils.IllegalArgumentException: u'Field "features" does not exist.'
<p>I am trying to execute Random Forest Classifier and evaluate the model using Cross Validation. I work with pySpark. The input CSV file is loaded as Spark DataFrame format. But I face a issue while constructing the model.</p> <p>Below is the code.</p> <pre class="lang-python prettyprint-override"><code>from pysp...
0
1,652
Error - Databinding methods such as Eval(), XPath(), and Bind()
<p>I have been getting this error after the submit button has been pressed on my detailsview which has two databound dropdownlists. I do not use Eval or XPath anywhere in my code, but use Bind often.</p> <pre><code>Databinding methods such as Eval(), XPath(), and Bind() can only be used in the context of a databound c...
0
15,885
initSelection is not getting called in select2 jquery plugin
<p>I am using select2 jquery plugin from <a href="http://ivaynberg.github.io/select2/">http://ivaynberg.github.io/select2/</a>.</p> <p>I am using following code.</p> <pre><code> $(document).ready(function () { $("#e6").select2({ placeholder: "Search for a movie", minimumInp...
0
1,668
Google Map:- InvalidValueError: setIcon: not a string; and no url property; and no path property
<p>I am getting this error in google maps.</p> <p><strong>Error: InvalidValueError: setIcon: not a string; and no url property; and no path property</strong></p> <p>Earlier it was working fine and i never changed my code.</p> <p>I have seen a post <strong><a href="https://stackoverflow.com/questions/25750692/google-...
0
7,954
Can't start JMXConnectorServer
<p>I would like to connect to my application via JMX remotely, so I've created following configuration in main method:</p> <pre><code>MBeanServer mbs = ManagementFactory.getPlatformMBeanServer(); JMXServiceURL url = new JMXServiceURL("service:jmx:rmi:///jndi/rmi://localhost:7890/jmxrmi"); Map&lt;String, Object&gt; env...
0
1,989
Struts2 INPUT result: how does it work? How are conversion / validation errors handled?
<p><strong>Main Question</strong> </p> <p>The work flow should be like this: if an String is entered other than a number, first it should pass through a exception interceptor, and when passing through param interceptor, while converting to int type, it wont be able to do it using <code>Integer.parseInt</code> and an e...
0
1,245
Could not connect to SMTP host: smtp.gmail.com, port: 587; nested exception is: java.net.ConnectException: Connection timed out: connect
<p>Here is the code of the application. I have been trying to run this using eclipse IDE. I also added all the required java mail jar files namely <code>dsn.jar,imap.jar,mailapi.jar,pop3.jar,smtp.jar,mail.jar</code>. But it gives the following error <code>Could not connect to SMTP host: smtp.gmail.com, port: 587</cod...
0
2,351
The server encountered an unexpected condition that prevented it from fulfilling the request. HTTP 500
<p>I want to use one servlet for many pages. when i try to run the project, an error occurs because the request is full. have tried many options for URL patterns, but nothing comes out</p> <p>right now, i see only one way. to use only post methods and have empty url-pattern but i'm not sure that it is right choice :D<...
0
2,121
Android Error: Unable to add window -- token null is not for an application
<p>Hy. I tried to create an alert dialog but when I run my application, is throw an exception</p> <pre><code>09-26 12:43:21.949: E/AndroidRuntime(14618): FATAL EXCEPTION: main 09-26 12:43:21.949: E/AndroidRuntime(14618): android.view.WindowManager$BadTokenException: Unable to add window -- token null is not for an app...
0
2,992
How can I get the params from the url with React?
<p>I am trying to setup verify account with react and have the following in my <code>App.js</code> file</p> <blockquote> <p>App.js</p> </blockquote> <pre><code>import SigninPage from './pages/signin'; import ResetPasswordPage from './pages/resetPassword' import VerifyAccountPage from './pages/verifyAccount' ... ... imp...
0
1,964
Close a bootstrap modal 5 after asynchronously submitting a form with vue js
<p>I am trying to hide a modal after submitting a form. I am using <code>bootstrap 5</code>, <code>vue 2</code> and <code>django 3.2</code>. I am a beginner in <code>javascript</code> and <code>vue</code>. I can asynchronously submit the form with <code>fetch</code> and clear the fields, but I can't close the modal.</p...
0
3,170