title stringlengths 13 150 | body stringlengths 749 64.2k | label int64 0 3 | token_count int64 1.02k 28.5k |
|---|---|---|---|
org.hibernate.HibernateException: No Session found for current thread | <p>I'm getting the above exception with Spring3 and Hibernte4</p>
<p>The following is my bean xml file</p>
<pre><code><?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:context="http://www.springframework.org/schema/context"
xmlns:tx="http://www.spri... | 0 | 1,088 |
Some part of your SQL statement is nested too deeply. Rewrite the query or break it up into smaller queries | <p>I have action in my controller which calls the following method :</p>
<pre><code>public IQueryable<AaaUserContactInfo> getcontactinfo(long[] id)
{
var organizationsiteids = from accountsitemapping in entities.AccountSiteMappings
where id.Any(accountid => accountsitemapping.A... | 0 | 2,083 |
Angular scrollable div | <p>I want to create an Angular App which displays a JSON data structure in a design which is very similar to a chatbox. I've created a component for the "chatbox" </p>
<p>Example structure (also the only content in my chatbox.component.ts):</p>
<pre><code> test = [
{ "date":"1","sender":"x","answer":"hello"},
... | 0 | 1,333 |
Parsing Json File using Jackson | <pre><code>{
"TestSuite":{
"TestSuiteInfo":{
"-description":"parse"
},
"TestCase":[
{
"TestCaseData":{
"-sequence":"sequential",
"-testNumber":"2",
"-testCaseFile":"testcase\\Web\\Ab.xml"
}
},
{... | 0 | 1,058 |
Can I remove this permission? (It cause INSTALL_FAILED_DUPLICATE_PERMISSION in Android 5.0 device) | <p>My tester said that he couldn't install the app from Play Store to his Nexus 5 (Lollipop). He said he got this error</p>
<pre><code>Unknown error code during application install “-505”
</code></pre>
<p>I took his phone and try to install the app via adb, I got this error</p>
<pre><code>Failure [INSTALL_FAILED_DUP... | 0 | 1,103 |
Unexpected token 'END OF FILE' at position 0 (JSON) | <p>I'm trying to retreive a name from a UUID via a website, using the API Mojang provided. </p>
<p>This is the code I use (I verified that it works):</p>
<pre><code>@Override
public Map<UUID, String> call() throws Exception {
Map<UUID, String> uuidStringMap = new HashMap<UUID, String>();
for... | 0 | 2,160 |
Most common way of writing a HTML table with vertical headers? | <p>Hi all it's been a while since I've asked something, this is something that has been bothering me for a while, the question itself is in the title:</p>
<blockquote>
<p>What's your preferred way of writing HTML tables that have vertical headers?</p>
</blockquote>
<p>By vertical header I mean that the table has th... | 0 | 2,139 |
Flutter and Firebase: Execution failed for task ':firebase_auth:compileDebugJavaWithJavac' | <p>I am trying to build my flutter application to interact with firebase. I have placed my google-services.json in the right place. However whenever i try to build the Android application i get the following run log:</p>
<pre><code>Running "flutter packages get" in smart_diet_flutter... 2.6s
Launching lib\mai... | 0 | 2,677 |
NoClassDefFoundError and Netty | <p>First to say I'm n00b in Java. I can understand most concepts but in my situation I want somebody to help me. I'm using JBoss Netty to handle simple http request and using MemCachedClient check existence of client ip in memcached.</p>
<pre><code>import org.jboss.netty.channel.ChannelHandler;
import static org.jboss... | 0 | 2,846 |
How to install the Springframework CrudRepository? | <p>I'm following <a href="http://www.thejavageek.com/2017/06/16/crud-application-using-angular-4-spring-rest-web-services-spring-data-jpa/" rel="nofollow noreferrer">this tutorial</a> to create a CRUD application with Spring. I want to create a repository and I want it to extend the Spring CrudRepository:</p>
<pre><co... | 0 | 1,802 |
Android Listview show only one item | <p>I have a ListView, where i changed appearence of row, but listview have size of one row, instead of fullscreen.</p>
<p>list_item.xml:</p>
<pre><code><LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="fill_parent"
android:... | 0 | 1,220 |
How to pre-load all deployed assemblies for an AppDomain | <p><strong>UPDATE:</strong> I now have a solution I'm much happier with that, whilst not solving all the problems I ask about, it does leave the way clear to do so. I've updated my own answer to reflect this.</p>
<p><em>Original Question</em></p>
<p>Given an App Domain, there are many different locations that Fusion... | 0 | 1,205 |
Pass multiple JSON objects to MVC3 action method | <p>JQuery code:</p>
<pre>
//This passes NULL for "CategoryID", "CategoryName", "ProductID", "ProductName"
$("#btnPost").click(function () {
var CategoryModel = {
CategoryID: 1,
CategoryName: "Beverage"
};
var ProductModel = {
... | 0 | 1,649 |
Spring Security/Spring Boot - How to set ROLES for users | <p>When I logged in using security, I cannot use the <code>request.isUserInRole()</code> method. I think the roles of the users was not set.</p>
<p>This is my Security Configuration:</p>
<pre><code>@Configuration
@EnableGlobalMethodSecurity(prePostEnabled = true, securedEnabled=true)
@Order(SecurityProperties.ACCESS_... | 0 | 2,082 |
How do I retrieve Google Finance Historical data in Google Sheets using the API? | <p>To reproduce this problem, create a new sheet.
In cell A1, insert this formula:</p>
<pre><code>=GoogleFinance("AMZN", "all", "1/1/2018", "2/1/2018")
</code></pre>
<p>The output (Formatting doesn't matter for this problem):</p>
<pre><code>Date Open High Low Close Volume
1/2/2018 16:00:00 1172 1190 ... | 0 | 1,266 |
select2, ng-model and angular | <p>Using <a href="https://select2.github.io/" rel="nofollow">jquery-select2</a> (<strong>not</strong> ui-select) and angular, I'm trying to set the value to the ng-model.</p>
<p>I've tried using <code>$watch</code> and <code>ng-change</code>, but none seem to fire after selecting an item with select2.</p>
<p>Unfortun... | 0 | 2,580 |
Save data to CSV file in ruby on rails | <p>I want to add some data which I get from user using html form to CSV file in ruby on rails. How can I do this? Here is my code for this</p>
<pre><code><p>
<h2>Register using form below</h2>
<p class="error"></p>
<form action="" method="post" class="scrum-form">
<p><h3>... | 0 | 1,179 |
HTTP error 400 Bad Request when POSTing JSON data over HttpURLConnection | <p>I have this code below that trying to post JSON data after successfully authenticate through Oauth2.0, the code is like this:</p>
<pre><code>try {
URL url = new URL ("https://test.api.neteller.com/v1/oauth2/token?grant_type=client_credentials");
String test = "QUFBQlNhVlFoUjhlTVhPQjowLm9aV3g2Rkh... | 0 | 1,354 |
Change title when drilldown in Highcharts | <p>I'm looking for a way to show a info text in Highcharts when using drilldowns. I want a text that tells my visitors that another chart has been showed up. A title for example:
"New chart - more about Animals"</p>
<p><a href="http://jsfiddle.net/6zYmJ/">http://jsfiddle.net/6zYmJ/</a></p>
<p>Do you have any ideas ho... | 0 | 1,653 |
Conversion from nested json to csv with pandas | <p>I am trying to convert a nested json into a csv file, but I am struggling with the logic needed for the structure of my file: it's a json with 2 objects and I would like to convert into csv only one of them, which is a list with nesting.</p>
<p>I've found very helpful "flattening" json info in <a href="https://towa... | 0 | 1,210 |
Arithmetic calculation for BODMAS in Java | <p>I have written this code for Bodmas, but getting some error in this. If I do 3-5+9, it will result in 3.04.0.</p>
<p>It just start concatenating, though it works for all other operations like *, / and -, please help.</p>
<pre><code>public static String calculation(BODMASCalculation bodmas, String result) {
whi... | 0 | 1,050 |
Add button in android action bar | <p>I trying to add a button beside HealthyApp, but no luck .</p>
<p>This is my initial code and image</p>
<pre><code> final ActionBar actionBar = getSupportActionBar();
actionBar.setDisplayHomeAsUpEnabled(true);
</code></pre>
<p><a href="https://i.stack.imgur.com/mMcgL.png" rel="nofollow noreferrer"><img src="h... | 0 | 1,602 |
Keypress To Simulate A Button Click in C# | <p>Ok, so I'm in the process of making a Tic-Tac-Toe game to help me learn C#.
I'm attempting to add a bit of functionality to it, so I want people to be able to use the NumPad on a computer to simulate clicking the buttons.</p>
<p>Here is what I have but when I use the NumPad the buttons don't click.
Can any of you ... | 0 | 1,070 |
Angular 5: Returning an Observable from a function | <p>In the old days, I would define a new <code>Promise</code>, defer it, then resolve it when my function completed.
Now I find myself in a situation where I need to return an <code>Observable</code> from a function, and I want to be sure I'm setting it up properly in an <code>Angular 5</code> context.</p>
<p>Test fun... | 0 | 1,876 |
scikit-learn TfidfVectorizer meaning? | <p>I was reading about TfidfVectorizer <a href="http://stanford.edu/~rjweiss/public_html/IRiSS2013/text2/notebooks/tfidf.html" rel="noreferrer">implementation</a> of scikit-learn, i don´t understand what´s the output of the method, for example:</p>
<pre><code>new_docs = ['He watches basketball and baseball', 'Julie li... | 0 | 1,105 |
How do you add additional files to a wheel? | <p>How do control what files are included in a wheel? It appears <code>MANIFEST.in</code> isn't used by <code>python setup.py bdist_wheel</code>.</p>
<p><strong>UPDATE</strong>:</p>
<p>I was wrong about the difference between installing from a source tarball vs a wheel. The source distribution includes files specif... | 0 | 1,400 |
AES string encryption in Objective-C | <p>My Objective-C App requires text / string encryption (specifically <a href="/questions/tagged/nsstring" class="post-tag" title="show questions tagged 'nsstring'" rel="tag">nsstring</a>). </p>
<p>I know AES is the most secure encryption method available for consumer use. I also understand how to convert strings to d... | 0 | 1,070 |
Use retrofit to download image file | <p>I use Retrofit 1.6.0 on my Android project,</p>
<p>the request url:</p>
<p><a href="https://example.com/image/thumbs/filename/sample.png" rel="noreferrer">https://example.com/image/thumbs/filename/sample.png</a></p>
<p>My interface like this:</p>
<pre><code>public interface ImageService {
@GET("/image/thumbs... | 0 | 1,234 |
Hibernate - ClassNotFoundException: com.mysql.jdbc.Driver | <p>I'm trying to retrieve data from a MySQL database through Hibernate, but I'm stuck with this error:</p>
<pre><code>Failed to create sessionFactory object.org.hibernate.service.classloading.spi.ClassLoadingException: Specified JDBC Driver com.mysql.jdbc.Driver could not be loaded
java.lang.ClassNotFoundException: C... | 0 | 1,370 |
C# Input string was not in a correct format. Conversion issue on server not in local machine | <p>I am croppping the image and save. On btnsave_click I am converting the hiddenfield value to decimal. There is no error on local machine but when published to server it gives below error.</p>
<p><strong>Detailed exception on server</strong>:</p>
<h2><em>Input string was not in a correct format.</em></h2>
<p>Descr... | 0 | 1,201 |
The format of the URI could not be determined | <p>I'm working on application that take attendance records from attendance system and put it inside access file and upload to my web site.
it's working successfully but but when i focus on other screen in my desktop and go back to the application give this error !
"Invalid URI: The format of the URI could not be deter... | 0 | 5,822 |
Reading JSON Tiled map editor file and displaying to canvas | <p>Im following this <a href="http://blog.hashrocket.com/posts/using-tiled-and-canvas-to-render-game-screens" rel="noreferrer">this</a> tutorial to be able to load json map files created by tiled map editor in my javascript/canvas game.</p>
<p>ive got to the point where i have implemented my own kind of version, and a... | 0 | 1,537 |
Identifier expected? visual basic | <p>im almost done with this and then that... hopefully someone will be able to help me (Really hope so atleast, cus i need to be done with this:P) (need more text cus there is to much code):</p>
<pre><code>|error is there|>
Private Sub FlatButton1_Click(ByVal sender As System.Object, ByVal e As System.E... | 0 | 1,336 |
MySQLi export table to CSV | <p>I've been trying for many days to export from a query some values in <code>.csv</code> with MySQLi, but I have a problem when the export is made, everything is exporting to a single column, instead I need that the export should make like SQL code (I have 3 selected columns and I need 3 exported columns in <code>.cvs... | 0 | 1,315 |
SQL Error 1406 Data too long for column | <p>I am trying to execute the query below in MySQL but get the SQL error 1406 Data too long for column error every time. The column data type is longtext. Any ideas?</p>
<pre><code>UPDATE `my_db`.`my_table` SET `content` = '<div id="primaryContent"><div id="offices_map"></div><!-- #offices_map --&... | 0 | 2,021 |
getApplicationContext() error Android | <p>I have a fragment that allows a user to enter in a message and a phone number to which the message will be delivered. I am getting an error "cannot resolve method getApplicationContext()" I have looked at the answer here <a href="https://stackoverflow.com/questions/16678763/the-method-getapplicationcontext-is-undefi... | 0 | 1,038 |
How do I get a reference to an IHostedService via Dependency Injection in ASP.NET Core? | <h1>Details</h1>
<p>I have attempted to create a background processing structure using the recommended <code>IHostedService</code> interface in ASP.NET 2.1. I register the services as follows:</p>
<pre><code>services.AddSingleton<AbstractProcessQueue<AbstractImportProcess>>();
services.AddHostedService<... | 0 | 1,540 |
Fails to load Spring application context in tests with SpringJUnit4ClassRunner | <p>I can't figure out why Spring can't load the application context in a test class defined as follows:</p>
<pre><code> @RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration(locations={"/springMVC-config/mainController-servlet.xml"})
public class DiagnosticsControllerTest {
@Mock
Diagnostic... | 0 | 1,489 |
How to implement the classic "sticky footer" with angular-material? | <p>I recognize that the <a href="https://github.com/angular/material">Angular Material</a> implementation is a work in progress, but I've spent some time this morning trying to get familiar with it. However, I'm really struggling to get the concepts shown in the demos to work in a stand alone site.</p>
<p>It seems tha... | 0 | 1,311 |
The model item passed into the dictionary is of type ‘mvc.Models.ModelA’ but this dictionary requires a model item of type ‘mvc.Models.ModelB‘ | <p>I have this annoying mistake in some of my builds.</p>
<p>There is no error in the project, because if I build again, then the problem disappears. The message only appears, when the site is deployed to a Windows 2008 Server.</p>
<p>I first thought that it might be an issue with temporary files, but thats not the ca... | 0 | 1,994 |
Spring could not autowire field error | <p>I am getting below error for my spring based dynamic web project.I am new to spring and I am no sure why the below error is there -</p>
<pre><code>org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.persistent.eap.dao.UserRegistrationDetailsDao com.persistent.eap.service.i... | 0 | 6,869 |
Swagger declaration schema = @Schema(implementation = Map.class) represents Schema as String in swagger-ui | <p>I am trying to create <code>springdoc</code> swagger documentation, and I would like to represent a request body having data type <code>Map<String, Object></code> in a better readable way for clients. But when I declare <code>@io.swagger.v3.oas.annotations.parameters.RequestBody(content = @Content(schema = @Sc... | 0 | 1,277 |
Bootstrap columns not aligning correctly | <p>I've built a layout using Bootstrap 3, and I have the following problem: I have a news section that is set to display a total of 9 news items, 3 on each row, summing 3 rows. However, they don't seem to align properly. Please see the picture below.</p>
<p><img src="https://i.stack.imgur.com/stwx4.png" alt="Columns n... | 0 | 6,463 |
Angular mat-paginator page size not working correctly | <p>I have created a mat-paginator element for a mat-table. My issue is that the paginator is not correctly displaying the page size. It will display all the results on one page, despite the page size being 5.Here I am making a request to an API to get a list of transactions, then adding them to a list to be displayed i... | 0 | 2,427 |
Javascript Sockets (failed: Error during WebSocket handshake: net::ERR_CONNECTION_RESET) | <p>I am trying to create a simple program to send a message to a socket in plain text. The sender is a webpage in javascript using websocket and the server is a C program. I don't have any control over the C code but I have been assured by the codes owners that I can use simple javascript to send the message. My code... | 0 | 1,158 |
Vagrant: PHP7.0-fpm.service failed because the control process exited with error code | <p>I have a new ubuntu/xenial64 box based Vagrant installation. Unfortunately the PHP7.0 service does not running</p>
<p>If I running the following <code>systemctl status php7.0-fpm.service</code> command this will be the result:</p>
<pre><code>ubuntu@Project-Yii-Shop:~$ systemctl status php7.0-fpm.service
* php7.0-f... | 0 | 1,184 |
java.lang.IndexOutOfBoundsException: Index: 5, Size: 5 | <p>I am having an issue with arrays. The full stack trace is: </p>
<pre><code>java.lang.IndexOutOfBoundsException: Index: 5, Size: 5
at java.util.ArrayList.rangeCheck(Unknown Source) ~[?:1.7.0_79]
at java.util.ArrayList.get(Unknown Source) ~[?:1.7.0_79]
at xyz.lexium.brocubes.drops.DropDB.getRandomDrop(Dro... | 0 | 1,162 |
JMeter distributed server not sending results back to master server | <p>Issue: Remote Jmeter server is not reporting back the results to the master server.</p>
<p>Description:
Using a VMware server I have added several Ubuntu servers hosting various JMeter client/servers. I have setup a very simple distributed Jmeter environment using one master and one remote slave. I have a very s... | 0 | 7,246 |
Why I received an Error 403 with MockMvc and JUnit? | <p>I have a spring mvc (3.2.5) application with spring security (3.2). </p>
<p>I configured my SecurityConfig.class with this method : </p>
<pre><code>@Override
protected void configure(HttpSecurity http) throws Exception {
http.authorizeRequests().antMatchers("/*").permitAll().and()
.formLogin().suc... | 0 | 3,982 |
BootStrap Table text ellipsis can not be with responsive web? | <p>I am trying to implement String ellipsis in the Table tag.</p>
<p>The source code is below.</p>
<pre><code><div>
<div class="widget-body no-padding" style="min-height:0px;">
<table class="table" style="table-layout: fixed;">
<tbody>
<c:forEach var="item" items="${resu... | 0 | 1,235 |
Concatenate two audio files and play resulting file | <p>I am really facing problem from last couple of days but I am not able to find the exact solution please help me.</p>
<p>I want to merge two .mp3 or any audio file and play final single one mp3 file. But when I am combine two file the final file size is ok but when I am trying to play it just play first file, I have... | 0 | 1,597 |
Unmarshalling unknown type code | <p>What I am basically trying to do is pass a Parcelable object as an Intent extra.</p>
<p>Here is where I pass it,</p>
<pre><code>final Intent intent = new Intent(_context,
AddReminderActivity.class);
final Bundle bundle = new Bundle();
bundle.putString(AddReminderActivit... | 0 | 2,913 |
Could not load file or assembly 'XXXX.dll' or one of its dependencies. The specified module could not be found | <p>I have an application that directly references a dll file: <code>POSLink.dll</code>. </p>
<p>In order to get this to run on my local machine, I have to manually copy the following dlls to the output directory: <code>libea32.dll</code> and <code>ssleay32.dll</code>.</p>
<p>When I run the application on my local ... | 0 | 1,283 |
Change spinner style in toolbar | <p>I am trying to put a spinner in my <code>Toolbar</code> like the old ActionBar style navigation and my theme is this</p>
<pre><code><style name="AppBaseTheme" parent="Theme.AppCompat.Light.NoActionBar">
<item name="colorPrimary">@color/color_primary</item>
<item name="colorPrimaryDark"&... | 0 | 1,172 |
How to open a jdialog from a jframe | <p>JFrame button to open the jdialog:</p>
<pre><code>private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {
// TODO add your handling code here:
</code></pre>
<p>JDialog method that opens the dialog:</p>
<pre><code> public void run() {
A... | 0 | 1,465 |
why android:layout_gravity="right" not working here in android xml | <p>my xml code for list view's row is</p>
<pre><code> <?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:baselineAligned="false"
android:orientat... | 0 | 1,067 |
Telnet to cisco switch using php | <p>I need to telnet to cisco switch using php and execute <code>show interface status</code> command and get results. I tried some php classes I found on internet but none of them could connect to device. So I tried to write the script myself, but I have the same problem, I cant connect to device.</p>
<p>The host send... | 0 | 1,728 |
I can't find populateViewHolder Method in FirebaseRecyclerAdapter class | <p>I want to use <code>FirebaseRecyclerAdapter</code> in my project and I used this code segment in a previous Project</p>
<pre><code>FirebaseRecyclerAdapter<ChatMessage, ChatMessageViewHolder> adapter = new FirebaseRecyclerAdapter<ChatMessage, ChatMessageViewHolder>(ChatMessage.class, android.R.layout.tw... | 0 | 1,440 |
Preventing a VB.Net form from closing | <p>We are using this coding to handle the clicking of the big red X as a means to bypass all textbox validation on the form.</p>
<p>The code will test if any changes are made to the data bound controls on the form. The code handle cancelling changes made prior to closing the form.</p>
<p>Would would also like to canc... | 0 | 1,375 |
Adding private key into iOS Keychain | <p>I am trying to add a private key into the iOS keychain. The certificate (public key) works fine but the private key refuses... I am totally confused why the following code does not work.</p>
<p>First I am checking if the current key (=key in case of that the Keychain is a key/value store) is 'free' in the Keychain.... | 0 | 1,121 |
How do I get a ListPopupWindow to work with a custom adapter? | <p>I want to display a simple array of strings in a ListPopupWindow that is shown on a button click. I'm running into problems however, as when I do some minimal setup of either an <code>ArrayAdapter<String></code> or a custom-built adapter, I run into a resources not found exception when I go to show the popup w... | 0 | 1,686 |
how get Result from onActivityResult in Fragment? | <p>I have used <code>Navigation drawer</code> in each item click i have called <code>Fragments</code> so in one item i have called one <code>Fragment</code> in this fragment i need to get picture from camera and set it to as <code>canvas background</code>.
In this I have captured camera picture but don't know how to ge... | 0 | 1,876 |
C# How to await a method that returns Task<dynamic>? | <p>I have a method that is parsing the results from a JSON object. The method returns a Task object but when I run the code, I am getting the following error:</p>
<pre><code>'System.Collections.Generic.Dictionary<string,object>' does not contain a definition for 'GetAwaiter'
</code></pre>
<p>The object returned... | 0 | 1,139 |
Angular 4 Dynamic form with nested groups | <p>I want to generate a reactive form from the tree structure.</p>
<p>Here is the code that creates the form items (form groups and controls). For the controls nested in form group it I use a recursive template.</p>
<p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
<div ... | 0 | 1,373 |
Java: no security manager: RMI class loader disabled | <p>Hi I have RMI application and now I try to invoke some methods at server from my client. I have following code:</p>
<pre><code>public static void main(final String[] args) {
try {
//Setting the security manager
System.setSecurityManager(new RMISecurityManager());
IndicatorsService serve... | 0 | 1,689 |
java.security.cert.CertificateExpiredException: NotAfter | <p>I am using EWSJavaAPI 1.1.5 to connect to Exchange Server 2010.</p>
<p>Everything was working fine until today while trying to connect to the server, I am getting the following exception:</p>
<pre><code>microsoft.exchange.webservices.data.ServiceRequestException: The request failed. java.security.cert.CertificateE... | 0 | 2,092 |
Failed to convert property value of type [java.lang.String] to required type [java.time.LocalDate] | <pre><code>{
"toDepartureDate": "2016-12-28",
"fromDepartureDate": "2016-12-28"
}
</code></pre>
<p>I want to post above String dates in json as <code>java.time.LocalDate</code>, but I am receiving 400 Bad Request as error. Could some one help here. I have used <code>@JsonFormat</code> but it did not help me either.</p... | 0 | 1,279 |
How to fix Next.js Vercel deployment module not found error | <p>My next.js app works on my machine and was working when deployed on Vercel but now it fails when building on Vercel with the following error: </p>
<p>I've tried deleting node_modules and running <code>npm install</code> a few times but with no joy. </p>
<p>Any help would be hugely appreciated. Thank you!</p>
<blo... | 0 | 1,725 |
Display data from SQLite database into ListView in Android | <p>Although this question has been asked many times on here, I just can't find the proper answer to fit my code. I realise it may be something small, but I just can't seem to find the problem as I'm only really new to this.</p>
<p>Here's my code <strong>getClientNames</strong> in <strong>DatabaseHelper</strong> class:... | 0 | 2,959 |
jboss-as-maven-plugin can't deploy to remote JBoss AS7? | <p>I've tried for days to use <code>jboss-as-maven-plugin</code> to deploy web projects to remote JBoss AS7, but it didn't work. </p>
<p>Here is my <code>pom.xml</code>: </p>
<pre><code><!-- JBoss Application Server -->
<plugin>
<groupId>org.jboss.as.plugins</groupId>
<artifactId>... | 0 | 1,287 |
android expandablelistview how to set space between groups items | <p>I have expandablelistview and I want to add padding (or margin) between the groups items, I used <code>margin-botton</code> on the group items, it works but now it is also applied to the group item and its childs, I want to keep a space between groups items, not between a group item and its child, i work like this:<... | 0 | 1,169 |
Bootstrap carousel with responsive HTML5 videos? | <p>I'm trying to make a carousel with videos. With the images it works fine the image are responsive even in mobile view. But with videos the width is responsive but not the height. Basically I would like to achieve the same comportement with a carousel image but with a video. I've tried many tricks online but none is ... | 0 | 1,259 |
Using Butter Knife library for view injection | <p><strong>What i am doing</strong>::</p>
<ol>
<li>I am trying to run <a href="http://jakewharton.github.io/butterknife/" rel="noreferrer">butter knife library</a> for my simple project</li>
<li>I have followed all the steps in documentation, but still i am
getting log errors</li>
<li>How can i resolve this, am i miss... | 0 | 1,236 |
std::unique_ptr deleted function, initializer_list - driven allocation | <p>All, </p>
<p>When I instantiate a widgets array using an initializer-list format, a naked pointer that points to a member-variable widget instance compiles but after change to std::unique_ptr<> gcc gives a compilation error regarding a deleted function. </p>
<p>$ uname -a </p>
<p>Linux .. 3.5.0-21-generic #32-... | 0 | 1,770 |
Tomcat error: The origin server did not find a current representation for the target resource or is not willing to disclose that one exists | <p>I have NOT worked on Java, SpringBoot and Maven a lot. I had gone through several posts for the issue mentioned above, but nothing was close to my scenario</p>
<p>I compile and package SpringBoot project using <code>Maven with JDK1.8.0_172</code> on Windows 10 </p>
<p>I then deploy this packaged war to Linux ser... | 0 | 4,117 |
Generate SSL Certificate using keytool provide in jdk | <p>Keystore files I have used in my web application expired last week. I generated it long time ago. So I started generating new certificate using keytool. I used this certificate to connect a transaction server and the web server. I wanted to use self signed certificate for this application. I generate it using follow... | 0 | 1,743 |
How do I fix MainActivity does not have a navcontroller? | <p>I just got my code to compile and when I try to start the app I receive the error. I'm currently trying to setup RecycleView for my class project. My goal is to make the RecycleView show content sorta like the reddit mobile app. I thought my RecycleView named "scrollview1" had a navcontroller setup. Not sure why I'm... | 0 | 1,543 |
Why is this giving me "Undefined references to constructors and destructors"? | <p>I have the following pieces of code:</p>
<p>Leomedia.h</p>
<pre><code>#include "MusicMetaDatter.h"
#ifndef LEOMEDIA_H
#define LEOMEDIA_H
namespace Leomedia
{
typedef enum
{
read,
write
} FileMode;
}
#endif // LEOMEDIA_H
</code></pre>
<p>MusicMetaDatter.h</p>
<pre><code>#ifndef MUSI... | 0 | 1,089 |
Flutter Firestore causing D8: Cannot fit requested classes in a single dex file (# methods: 71610 > 65536) in Android Studio | <p>I am attempting to use firestore with a Flutter app in latest version of Android Studio. I have followed these instructions exactly. <a href="https://www.youtube.com/watch?v=DqJ_KjFzL9I&list=PLjxrf2q8roU2HdJQDjJzOeO6J3FoFLWr2&index=9" rel="noreferrer">https://www.youtube.com/watch?v=DqJ_KjFzL9I&list=PLjx... | 0 | 4,764 |
Angular Material - Filter Table by multiple filters and multiple filter values at the same time | <p>I'm trying to be able to have two different filters for a table of objects. The first one is a normal text/input based filter and works as expected.</p>
<p>The second one I'm trying to get working is a row of checkboxes labeled "Level 1", "Level 2", etc. On checking a checkbox I want to filter b... | 0 | 3,340 |
Adding new rows to table on clicking button in JQuery | <p>I am pretty new to jquery. I have the following code. Here I want to get new rows in the table by clicking the add button, but I can't get it.,</p>
<p>can someone tell me what mistake I have done here?</p>
<pre><code><script type="text/javascript">
var $ = jQuery.noConflict();
$("#addrows").click(function ()... | 0 | 1,078 |
Java: package cucumber.api.junit does not exist | <p>I've been trying to get this to work. </p>
<p>I would like set up a test runner class <a href="https://cucumber.io/docs/reference/jvm" rel="nofollow noreferrer">like so</a></p>
<p>However I get this error:</p>
<blockquote>
<p>Error:(3, 26) java: package cucumber.api.junit does not exist<br>
Error:(10, 10) jav... | 0 | 2,140 |
Doctrine 2 - No Metadata Classes to process by orm:generate-repositories | <p>I'm trying to generate entity repositories and getting such message </p>
<p><strong>No Metadata Classes to process</strong></p>
<p>I'd tracked down that use of </p>
<p>use Doctrine\ORM\Mapping as ORM;
and
@ORM\Table
is not working properly. </p>
<p>If i change all @ORM\Table to just @Table(and other annotations... | 0 | 1,501 |
Gradle refuse to start process command 'cmd' | <p>I'm encountering issue with a custom gradle task. Seems like gradle refuse to start a command line process.</p>
<p>Here is the custom task:</p>
<pre><code>task generateAllure(type: Exec) {
workingDir "$projectDir/allure/bin"
if (System.getProperty('os.name').toLowerCase(Locale.ROOT).contains('windows')) {
... | 0 | 2,598 |
Autowiring not working in Spring 3.1.2, JUnit 4.10.0 | <p>Using Spring 3.1.2, JUnit 4.10.0, and pretty new to both versions. I'm having the problem that I can't get the annotation-based autowiring to work.</p>
<p>Below are two samples, the one not using annotations, which is working fine. And the second one using annotation, which doesn't work, and I don't find the reason... | 0 | 2,836 |
How to add title to the custom Dialog? | <p>How can i add title to this custom dialog??</p>
<p><img src="https://i.stack.imgur.com/luw1g.jpg" alt="enter image description here"></p>
<p>I have tried like this</p>
<pre><code>public void customDialog()
{
Dialog dialog=new Dialog(this);
dialog.requestWindowFeature(Window.FEATURE_CUSTOM_TITLE);
dialog.ge... | 0 | 1,226 |
CMake: create_symlink vs ln | <p>I have a macro to create links E.g.</p>
<pre><code>makeLink($BUILD_ROOT/lib somewhere/somelibrary.so makelinks)
</code></pre>
<p>The purpose of this is so that a completed build includes a directory structure analogous to a developers installation with <em>bin</em>, <em>include</em> & <em>lib</em> directories co... | 0 | 1,088 |
Cannot load configuration class error spring boot | <p>I am working on a spring boot project where I am integrating my api with google calendar api.While running the application I am getting this error:</p>
<pre><code>java.lang.IllegalStateException: Cannot load configuration class: com.api.GoogleCalApplication
at org.springframework.context.annotation.Configuration... | 0 | 8,159 |
Pass parameter to subquery | <p>I'm using SSRS/SSDT in Visual Studio 2015 and SQL Server 2014. There's a bug that's been present for > 8 years where <a href="https://stackoverflow.com/questions/14466874/in-ssrs-why-do-i-get-the-error-item-with-same-key-has-already-been-added-wh">you can't select multiple columns from different tables that have the... | 0 | 1,223 |
HTTP Error 500.19 - Error Code 0x80070021 | <p><strong>Background:</strong> Trying to debug WebForms application and get authenticated windows user from AD, </p>
<p>On F5 I get greeted with this amazing page.</p>
<p><strong>Module</strong>
WindowsAuthenticationModule </p>
<p><strong>Notification</strong>
AuthenticateRequest </p>
<p><strong>Handler</str... | 0 | 4,315 |
MessageContext in SOAPHandler JAX-WS WebService | <p>I have a JAX-WS 2.2 WebService and I must take the IP Address of each client that communicate with it. I write a SOAP protocol handler but I can't see the addresses because the handlers doesn't contain this information and using the mimeheaders I can't also see this information. The code of my handler is the follow... | 0 | 1,591 |
How Do I Catch by FullyQualifiedErrorId in PowerShell? | <p>I have a script that creates new AD Objects (via New-ADObject, as it happens). If the object already exists, I need to catch and handle that. However, the exception type isn't nearly as explicit as the FullyQualifiedErrorId. Observe the below:</p>
<pre><code>> $Error[-1] | Format-List -Property * -Force
writeEr... | 0 | 1,057 |
Why do we need to use import 'babel-polyfill'; in react components? | <p>I wonder if we user babel loader + all the presets, why do we need to include babel-polyfill anyway into our components? I just think that babel-loader should do all the job itself.</p>
<p>Examples were taken here <a href="https://github.com/reactjs/redux/tree/master/examples" rel="noreferrer">https://github.com/re... | 0 | 1,295 |
css cursor using data-uri | <p>I'm trying to use custom png cursor using data uri but the cursor doesn't change.
I've tested on FF 17 which support png as custom cursor.
The same data uri work as a background image.</p>
<p>Am I using wrong syntax or maybe data-uri can't be used as a cursor image?</p>
<p>example:
<a href="http://jsfiddle.net/u8t... | 0 | 11,386 |
How to add/remove rows using SlickGrid | <p>How to write such functions and bind them to two buttons like "add row" and "remove row":</p>
<p>The now working example code only support adding new row by editing on the blank bottom line.</p>
<pre><code><!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; char... | 0 | 1,877 |
JNDI Can't Create a JDBC Connection on Tomcat 6 | <p>I'm getting this error when I try to view the page:</p>
<pre><code>SQLException: Cannot create JDBC driver of class '' for connect URL 'null'
</code></pre>
<p>I have the following /WEB-INF/web.xml:</p>
<pre><code><?xml version="1.0" encoding="UTF-8"?>
<web-app>
<display-name>WSwartzendruber.... | 0 | 2,252 |
SQL Query to return 24 hour, hourly count even when no values exist? | <p>I've written a query that groups the number of rows per hour, based on a given date range.</p>
<pre><code>SELECT CONVERT(VARCHAR(8),TransactionTime,101) + ' ' + CONVERT(VARCHAR(2),TransactionTime,108) as TDate,
COUNT(TransactionID) AS TotalHourlyTransactions
FROM MyTransactions WITH (NOLOCK)
WHERE Tran... | 0 | 1,348 |
Swift: use of 'self' in method call before super.init initializes self compile error | <p>I made a custom class that handles audio recording/playback and put a <code>Protocol</code> in that class. I implemented the <code>Protocol</code> in a <code>UIViewController</code> class and called my <code>setDelegate</code> method for my AudioHelper class.</p>
<p>I am getting a compile error that has to do with ... | 0 | 3,072 |
How to update MS Access Database (vb.net) | <p>I am created a journal program for an internship project and I am using a MS-Access Database. I am programming in <strong>VB.net</strong>. Now, I am trying to make it so that they can "Update" their journals, meaning that they click on their calendar date and it brings them to that journal if they have one for that ... | 0 | 1,036 |
VS Code can't install the Go tools | <p>I try to start using Go in VSCode. I've installed Go as well as Git and created a project in Code, containing a single <code>.go</code> file.</p>
<p>When I type something, VSCode warns me that tools like <code>golint</code> are missing and prompts me to install them. I click on "Install all".</p>
<p>Then the conso... | 0 | 4,639 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.