title stringlengths 13 150 | body stringlengths 749 64.2k | label int64 0 3 | token_count int64 1.02k 28.5k |
|---|---|---|---|
How do I install the OCaml Core library on (Arch) Linux x86_64? | <pre><code>$ ocaml -version
The OCaml toplevel, version 4.02.1
$ opam --version
1.2.0
$ opam init
$ opam install core
#=== ERROR while installing camlp4.4.02.1+system ==============================#
# opam-version 1.2.0
# os linux
# command sh ./check-camlp4.sh
# path /home/john/.opam/system/bu... | 1 | 1,819 |
SOAP Service as Service reference in .net | <p>I have 2 SOAP Service References in my project, and it have been working nicely for a while, but today i did an "Update Service Refrence" on both my services as i had done an update to them.
But now the datastructure of the methods have change alot, and i can not figure out how to change it back.</p>
<p>On of my me... | 1 | 5,812 |
Laravel sort array by created_at | <p>I need to sort my json array in chronological order by it's created_at timestamps. </p>
<pre><code> [{
"id": 1,
"message": "hello",
"company_id": 7,
"investor_id": 35,
"match_id": 2,
"created_at": "2015-07-01 12:56:34",
"updated_at": "2015-07-01 12:56:34"
}, {
"id": 2,
"messag... | 1 | 1,188 |
Keep same selected Item in a ListView when the collection it is bound to is refreshed | <p>I have a ListView that is bound to an ObservableCollection which is itself derived from an IQueryable. When I refresh the collection, after items are added, edited or a button is clicked (to see if the database has new items from other users). The listbox refreshes and selects the first item in the collection. </p>
... | 1 | 1,774 |
SQL Server 2008 CASE Logic in SELECT statement | <p>Hello again SQL Server 2008 gurus.</p>
<p>I need to apply the following rules to the setting of a worker's start and end times for their work day (hourly employees) in a <code>SELECT</code> statement. I apologize in advance for my SQL ignorance.</p>
<ol>
<li><p>The rule is to set their start time to a value stored i... | 1 | 1,049 |
Oracle SQL Calculated Column - How do I reference a calculated column in another calculation in the same query? | <p>I want to use a calculated column in another calculation, within the same query. But Oracle SQL does not seem to let me do this, to my knowledge. These seems like a simple data maneuver, that i can easily do in Python, but Oracle SQL it seems challenging.</p>
<p>For example:</p>
<p><strong>table</strong></p>
<p... | 1 | 1,654 |
Fastest method for reading file data in Arrays (Java) | <p>Take a look at the following link:</p>
<p><a href="http://snippetsofjosh.wordpress.com/tag/advantages-and-disadvantages-of-arraylist/" rel="nofollow noreferrer">http://snippetsofjosh.wordpress.com/tag/advantages-and-disadvantages-of-arraylist/</a></p>
<p>This one of the reasons why I always prefer to use Arrays in... | 1 | 1,107 |
Insert multiple objects as instance variable in hibernate | <p>Please help me to understand why multiple Objects as instance variable insertion is not woking.</p>
<p><strong>Professor.java</strong></p>
<pre><code>@Entity
public class Professor {
@Id
private long id;
private String name;
@Embedded
private Courses daycourse;
@Embedded
@AttributeOverrides({
@AttributeOve... | 1 | 1,044 |
how to adjust bootstrap tabs according to our contents in existing page? | <p>i have created a "registration and login" modal to give the functionality like flipcart.com . I am using bootstrap 'nav nav-tabs' to show the 2 tabs .</p>
<p>When i create that modal in a separate file it works fine, like image shown bellow:</p>
<p><img src="https://i.stack.imgur.com/VLDCm.png" alt="enter image de... | 1 | 14,621 |
AspNetCore UseOpenIdConnectAuthentication | <p>I am using Azure AD B2C to authenticate in an AspNetCore RC2 MVC application, this partially works in that when I navigate to an action that requires authentication I am redirected to the B2C login page accordingly. When I successfully login I am correctly redirected to my application page (and I can see the id_toke... | 1 | 1,457 |
How to configure Tomcat 7 for SQL Server 2008 for use in java servlet programs? | <p>I searched whole internet and on this site but I was unable to get the answer. I am developing an servlet and jsp application. In which I created a form in jsp which will redirect its entered data to a servlet and that servlet will transfer that data to a database class that will insert it in a database. My project ... | 1 | 1,062 |
different types of cells in one collectionView | <p>I have 4 different collectionViews in one controller, and in the first collectionView I want to have 3 different cells display. In the below code the app does not crash, but in the first indexPath.item of 0 only case 0: ("cellId") loads. It does not load the other 2 cases. Thanks in advance for any help!</p>
<pre><... | 1 | 1,348 |
Rosalind consensus and profile python | <p>I'm working on the problem "Consensus nd Profile" on the Rosalind Bioinformatics website (<a href="http://rosalind.info/problems/cons/" rel="nofollow">http://rosalind.info/problems/cons/</a>). I tried my code using the sample input on the website and my output matches the sample output. But when I tried the larger d... | 1 | 1,313 |
Android implementing Google plus login error on mConnectionResult.hasResolution() | <p>I have studied google plus login from
<a href="https://developers.google.com/+/mobile/android/getting-started" rel="noreferrer">https://developers.google.com/+/mobile/android/getting-started</a></p>
<p>When I launch my app there is a toast message "User is connected!"
and then I press G+ Sign in button my app forc... | 1 | 3,171 |
Validation not working in Java Spring Application | <p>I added the correct validation annotations to my DTO and API class, but when I input bad data thru postman, it doesn't error.</p>
<p>API Class</p>
<pre><code>@RestController
@RequestMapping("/laptops")
@Validated
public class LaptopApi
{
@Autowired
private LaptopService laptopService;
@Autowir... | 1 | 2,950 |
Error inflating class android.webkit.WebView on android 5 | <p>I got the following error testing on Android 5.0 (API 21). Tested on other OS versions works well.</p>
<blockquote>
<p>java.lang.RuntimeException: Unable to start activity
ComponentInfo{...ui.activities.navigationActivity.fragments.legalFragment.LegalDetailActivity}:
android.view.InflateException: Binary XML ... | 1 | 2,759 |
What does this error mean and how can I fix it? | <p>I'm using this DAO class which was generated by Hibernate Tools:</p>
<pre><code>/**
* Home object for domain model class Empleados.
* @see com.hibernate.Empleados
* @author Hibernate Tools
*/
public class EmpleadosHome {
private static final Log log = LogFactory.getLog(EmpleadosHome.class);
private fi... | 1 | 3,254 |
Batch with Spring Boot & JPA - use in-memory datasource for batch-related tables | <p><strong>Context</strong></p>
<p>I'm trying to develop a batch service with Spring Boot, using JPA Repository. Using two different datasources, I want the batch-related tables created in a in-memory database, so that it does not pollute my business database.</p>
<p>Following multiple topics on the web, I came up wi... | 1 | 2,064 |
How do I expand image to full view when being tapped in a UICollectionView? | <p>In my project I'm using a <code>UICollectionView</code> for displaying images and I'm also using <code>UIImageView</code> in <code>UICollectionViewCell</code>.
All I want is when I tap on a image it should expand and show on fullscreen.
For this I've created a new view takes a <code>UIImageView</code> on it and appl... | 1 | 1,068 |
django and jQuery - inline delete and record update | <p>I am new to django and I have some difficulties. I have a table with multiple (100s of) records.</p>
<p>I want to use jQuery to enable inline updating and deletion of a record. </p>
<h3>HTML:</h3>
<pre><code><p>The current candidate list is:</p>
<div id="display1">
<span>
... | 1 | 2,813 |
PHP OOP - Missing argument 1 | <p>I'm trying to make the switch to OOP. I found a pdf on the internet written by killerphp that seems useful. Followed his examples up 'till now because I got an error. The output is this:</p>
<blockquote>
<p>Warning: Missing argument 1 for person::__construct(), called in
C:\xampp\htdocs\oop\index.php on line 15... | 1 | 1,049 |
Passing data from model to print into tcpdf in codeigniter | <p>I'm trying to create a pdf file with some data in that I get from a query, the pdf creator is in the controller (TCPDF). </p>
<p>My storyboard :
I am using codeigniter to develop my php application. In my view, there is a table that every row have a button to create a pdf from information its row. I can preview it ... | 1 | 4,309 |
XAML grouped GridView/Semantic Zoom not displaying all children? | <p>I'm attempting to use the <a href="http://code.msdn.microsoft.com/windowsapps/GroupedGridView-77c59e8e" rel="nofollow noreferrer">XAML C# Grouped GridView sample</a> to make my SemanticZoom work in a XAML C# Windows 8 app. The problem is, for some reason it's displaying the correct header (the category, in this case... | 1 | 3,092 |
how to place a space between to tables in php | <p>How do I place a space between two tables which are vertical. The tables are within the php script: </p>
<pre><code> $result = mysql_query("SELECT * FROM t2 WHERE FIRSTNAME='{$_POST["fname"]}' AND HOSPNUM='{$_POST["hnum"]}'");
echo "<table border='1'>
<tr>
<th>HospNum</th>
... | 1 | 1,617 |
WPF- How to update the changes in list item of a list | <p>i have updated a list item of a list.The item is successfully updated at source i.e database ,but the list is not getting updated with updated item.I have used INotifyPropertyChanged interface for the list items and the list is binded to an observable collection.</p>
<pre><code> private tbl_Model _modelItem;
... | 1 | 3,212 |
How can I query a value in SQL Server TEXT column that contains XML (not xml column type) | <p>I have table DOCUMENTS with:</p>
<pre><code>DOCUMENTS
____________________
DOCUMENTID int
USERID int
CONTENT text
</code></pre>
<p>I have following XML stored in TEXT column with name CONTENT in a SQL Server database</p>
<pre><code><?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<IDM... | 1 | 1,414 |
Why the vertical scroll bar moves automatically? | <p>I don't understand why the vertical scroll bar moves automatically to the most top position when "Line 9" clicked, for example. Further clicks does not move the scroll bar. Could anyone explain why, and how to fix this ?
I work with Firefox 3.6.3.</p>
<p>HTML:
</p>
<pre><code><html>
<head>
... | 1 | 1,238 |
NSUserDefaults setObject:forKey: attempt to insert non-property list object | <p>I think I'm doing something really obviously wrong here, but I can't figure it out! I'm attempting to save an NSMutableDictionary containing NSStrings and NSNumbers and NSBooleans into NSUserDefaults on iOS 7.1.</p>
<p>Here's the dictionary definition:</p>
<pre><code>- (NSMutableDictionary *)hotLevelsDict
{
if... | 1 | 1,618 |
Unable to resume activity - Runtime exception | <pre><code> @Override
public void onResume()
{
super.onResume();
OpenCVLoader.initAsync(OpenCVLoader.OPENCV_VERSION_2_4_7, this, mLoaderCallback);
}
public void onDestroy() {
super.onDestroy();
}
p... | 1 | 1,376 |
Ajax Search with select dropdown filters CakePhp | <p>I want to build an ajax searc filters with dropdown select boxes.
I will try to be as much clear as i can. </p>
<p>I have a Typology Model and controller. A typology has</p>
<p><strong>id | title | description | item_id | condition_id | category_id | condition_id | price</strong></p>
<p>where <strong>id</strong>... | 1 | 7,638 |
Flatten JSON with array using AWS Glue crawler / classifier / ETL job | <p>I'm crawling following JSON file (it's a valid JSON) from s3 data lake.
Inside there are 2 fields (device, timestamp) and an array of objects called "data". Each object in the data array differs from one another.</p>
<pre><code>{
"device": "0013374838793C8",
"timestamp": &... | 1 | 1,216 |
Clipping mp4s with mp4parser. Can't get past timeCorrected with SyncSample | <p>I am writing an Android app and I have a bunch of 5-15 second .mp4 files that I want to clip. I have been trying to use Sebastian Annies' <a href="https://code.google.com/p/mp4parser/" rel="noreferrer">mp4parser</a> to do so, following the example code given here: <a href="https://mp4parser.googlecode.com/svn/trunk... | 1 | 2,521 |
node_modules/rxjs/Subject"' has no exported member 'Subject' | <p>I installed material UI in angular application now i am getting error no exported member Observable error,</p>
<p>I deleted node modules and re-installed, the problem persists</p>
<pre><code>ERROR in node_modules/@angular/material/autocomplete/typings/autocomplete-trigger.d.ts(14,10): error TS2305: Module '"D:/ang... | 1 | 2,421 |
Add options to dropdown via JQuery AJAX request (as json Object) | <p>I currently try to get into JQuery and, to be more specific, into AJAX requests. </p>
<p><strong>Code:</strong><br>
Javascript:</p>
<pre><code>success: function(json) {
console.log(json);
var $el = $("#system");
$el.empty(); // remove old options
$el.append($("<option></opt... | 1 | 1,463 |
Cookies using Python and Google App Engine | <p>I'm developing an app on the Google App Engine and have run into a problem. I want to add a cookie to each user session so that I will be able to differentiate amongst the current users. I want them all to be anonymous, thus I do not want a login. Therefor I've implemented following code for cookies.</p>
<pre><code... | 1 | 1,029 |
Using multiple contentPlaceHolders in ASP.NET masterpage | <p>I am creating a website that has different menus in different pages. So i am creating a Master page with 3 content place holders for Page Heading, Menu and Content Respectively. I am not able to create content pages for this master page. Any help would be appreciated. Please forgive me if I have not followed the pro... | 1 | 1,481 |
Run OHS for Weblogic cluster | <p>I am using weblogic12.1.3</p>
<p>I was install the WebLogic cluster in the above format :</p>
<p>cluster name : cs1, cluster address 172.30.35.23:7003,172.30.35.23:7004</p>
<p>I have 2 manageserver : 172.30.35.23:7003,172.30.35.23:7004</p>
<p>and a Machine MCH1(added 2 manage server to this machine)</p>
<p>my c... | 1 | 1,262 |
Android Listview onListItemClick get Sqlite Id | <p>I am simply displaying a list from sqlite table. I have not used any BDHelper class. With this code only how can i get id.</p>
<p><img src="https://i.stack.imgur.com/SrE4B.png" alt="enter image description here">
<br/>When i click on 1st Item, it shows 0 where as in table it's id is 1. Below is my code. </p>
<pre>... | 1 | 1,121 |
Jquery toggle div hide/show from dynamic id's | <p>I have, essentially, an unlimited number of containers with dynamic ids and a dynamic menu to load each containers content. I have done this with static id's (but still seems such a heavy use) but do not know where to go to use dynamic.</p>
<p>When a nav link (from .img_select) is clicked it shows the corresponding... | 1 | 1,530 |
How to make Next.js links dynamic based on current dynamic page? | <p>I am building an LMS using Next.js. So far my project structure is <code>localhost/courses/1</code>. Every course will have 7 pages. Dashboard, Assignment, TestAndQuizzes, Gradebook, Resources, Announcements, and Roster. I have all the components and pages ready. So if I manually go to <code>localhost/courses/1/assi... | 1 | 2,050 |
Bind drawer state in Vuetify when nav-drawer and app-bar is different components | <p>now i have two components in my Dashboard:</p>
<p><strong>Dashboard</strong></p>
<pre><code><template>
<v-app>
<Toolbar :drawer="app.drawer"></Toolbar>
<Sidebar :drawer="app.drawer"></Sidebar>
</v-app>
</template>
<script>
import Si... | 1 | 1,335 |
Powershell Getting Error Cannot convert value "System.Xml.XPathNodeList" to type "System.Xml.XmlDocument | <p>I have following powershell code, which is selecting a xml node which has namespace.</p>
<pre><code>$ns = new-Object System.Xml.XmlNamespaceManager $doc.NameTable
$ns.AddNamespace("dns", "http://www.nlog-project.org/schemas/NLog.xsd")
$obj3 = $doc.SelectNodes('//dns:nlog',$ns)
</code></pre>
<p>But I am getting fol... | 1 | 4,376 |
Nuxt Error: Request failed with status code 403 | <p>I am attempting to deploy my Nuxt app to Netlify, but am receiving errors when <code>yarn run generate</code> is being run.</p>
<pre><code>9:32:52 AM: $ yarn run generate
9:32:52 AM: yarn run v1.22.4
9:32:52 AM: $ nuxt generate
9:34:06 AM: [error] Could not resolve routes
9:34:06 AM: [fatal] Request failed with stat... | 1 | 1,803 |
WPF - MVVM : Datagrid validation, Tooltip wrih error message don't work | <p>I'm implementing validation on datagrid cells through validation rules.</p>
<p>I get the validation working on the cell editing, but no way to display a tooltip with the error message. I get the error Icon when the cell value is out of range, but not the error message tooltip.</p>
<p>This is the XAML code:</p>
<p... | 1 | 2,014 |
Retrieve bearer token from header and/or query string in ASP.NET WebAPI 2 | <h3>Background:</h3>
<p>I have an ASP.NET WebAPI project. I'm using Bearer Tokens to authenticate my users. Some of my controller actions are marked with <code>[Authorized]</code> filter. In the client side, the client gets his token by invoking <code>http://foo.bar/Token</code> and then adding that token as an <code>A... | 1 | 1,541 |
Mono.AndroidTools.InstallFailedException: Failure | <p>I have run into this issue and my app wont compile. I was trying to use play services in my app but it was giving me resource not found error I got frustrated and removed all the xamarin files and reinstalled everything. that issue went away now this error has popped up. Any help will be appreciated. P.S I am a begi... | 1 | 1,634 |
Adding values to a select box using ajax and organising javascript files | <p>I want to create a page where everything is loaded via ajax calls, so the URL always stays the same. At first the user will be presented with one box with some choices. According to the choice he makes another one will appear and again according to the choice he makes on the second a third will appear. I have succe... | 1 | 1,382 |
Get selected dropdown value in inside kendo grid | <p><strong>Requirement:</strong> How to get selected drop down value in kendo grid while updating records</p>
<p>By using kendo editor i have implemented dropdown in grid column and i want to save datavaluefiled value </p>
<blockquote>
<p>Datasource
ID:1,Interestname:cricket
Id:2,Interestname:football
while ... | 1 | 3,698 |
Why My android App doesn't Create folder at /data/data/my.package.com | <p>I have installed an Android app on my phone which I have created myself on java. The App got successfully installed on the device but I am not able to locate the package where it has installed.It is not located on the /data/data/my.package.com directory as well, There is no any directory created for my package name ... | 1 | 1,152 |
jqGrid - checkbox not getting correct input value? | <p>The following is the sample code to test my problem. A local array, mydata, adding into the grid with a checkbox at the last column. You can simple copy and paste to run it immediately to see my problem.</p>
<pre><code><!doctype html>
<html>
<head>
<link rel="stylesheet" type="text/css" hre... | 1 | 1,316 |
Does anyone know how to add a row to PrimeNg DataTable | <p>I'm trying to add a new row to the current table so that I can have a row under the list of data that can have a save button and an insert to be done e.g. save phone number. I have added html comments of where the new row will go but not sure how to do it in PrimeNg.</p>
<p>See the code below:</p>
<pre><code><d... | 1 | 1,203 |
How to close existing handle on file in C# | <p>How can I close an existing handle on a file in C#? Is it possible? </p>
<p>Suppose I run code with administrator account? Can I just force the file to be closed?</p>
<p>In another post, one of the answer was to use interop:</p>
<pre><code>[Flags]
enum MoveFileFlags {
MOVEFILE_REPLACE_EXISTING = 0x00000001,
... | 1 | 1,449 |
React useEffect and Axios: Making chained API calls within 'then' | <p>I'm working with the NHL API and retrieving hockey stats for my app. The API has multiple endpoints that I'm using to access player stats. </p>
<p><code>Roster endpoint</code></p>
<p><a href="https://statsapi.web.nhl.com/api/v1/teams/3/roster" rel="nofollow noreferrer">https://statsapi.web.nhl.com/api/v1/teams/3/r... | 1 | 1,152 |
Magento 1.9.2.1 SUPEE-6788 patch - Hunk fail on .htaccess | <p>I have just applied the supree 6788 patch to our magento 1.9.2.1 installation however when executing </p>
<p>sh PATCH_SUPEE-6788_CE_1.9.2.1_v1-2015-10-26-11-38-41.sh</p>
<p>I get the following : - </p>
<pre><code> 15-10-26-11-38-41.sh
Checking if patch can be applied/reverted successfully...
ERROR: Patch ... | 1 | 1,760 |
Submit modal form with ajax and symfony2 | <p>i have a modal that contains a form </p>
<pre><code> <div class="modal-header">
<a href="#" class="float-right" data-placement="left" title="close" data-dismiss="modal">
<i class="glyph-icon icon-remove"></i>
</a>
</div>
<div ... | 1 | 2,210 |
JFrame setVisible not working | <p>I am building a log in form once the login button is pressed, it closes login frame and should show main menu.</p>
<p>the problem is no matter what I do, it gives me an error cannot find symbol setVisible</p>
<p>Please help me out</p>
<pre><code>import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
im... | 1 | 1,220 |
NodeJs : Reference Error : (my own var) not defined | <p><strong>Trying to require and use a module in my router file. I have managed to require it (I think) but now it says the following error:</strong></p>
<blockquote>
<p>ReferenceError: USERS is not defined at
c:\work\nodejs\router\main.js:32:19 at Layer.handle [as
handle_request]
(c:\work\nodejs\node_mo... | 1 | 1,126 |
how to get first element from a Tupled List | <p>I have a list i.e.</p>
<pre><code>var d = new List<Tuple<string, double>>();
</code></pre>
<p>used in following code as under:</p>
<pre><code>var d = new List<Tuple<string, double>>();
while ((line = file.ReadLine()) != null)
{
d.Add(Tuple.Create(lin... | 1 | 1,421 |
SocketException: socket closed | <p>I am creating a Chat application with Java Sockets, and am getting the <code>SocketException: socket closed</code> when closing the server. I receive the error <strong>even if I never attempt to connect clients</strong>- <strong>just stopping the server</strong> will have this socket closed exception.</p>
<p>I know... | 1 | 1,210 |
Trouble with the "File API: Directories and System" in Google Chrome | <p>Having read <a href="http://www.thecssninja.com/javascript/filesystem" rel="nofollow">this article</a> on using the HTML5 File System API in Google Chrome, I decided to have a go at incorporating it into a packaged web application.</p>
<p>Using the notes and supplied code as a guide, I've put together a rather leng... | 1 | 1,105 |
Getting the list of objects from 'db' - Error - Management Studio error while generating Scripts | <p>I tried to generate Scripts from our companies Azure SQL-Database. As I did two weeks before I connected to the DB with my Management Studio Client and ran the "Generate Scripts"-Wizard in the Context of the concerned DB. The wizard failed at <strong><em>"Getting the list of objects from 'db'."</em></strong> and poi... | 1 | 1,259 |
EF Core 2.1 Making multiple DB calls | <p>Is there a way to prevent EF Core from doing multiple DB round trips on single enumeration function call?</p>
<p>Take into consideration this relatively simple LINQ expression:</p>
<pre><code>var query2 = context.CheckinTablets.Select(ct => new
{
Id = ct.Id,
DeviceNam... | 1 | 2,035 |
Dark theme not applied correctly, statusbar color unchanged | <p>I am trying to create a <strong>light</strong> and <strong>dark</strong> theme for my application.
When applying the light theme the statusbar is orange as it should be but as soon as I <em>switch to the dark theme</em> the <strong>statusbar</strong> stays orange although <strong>I want it to be black.</strong></p>
... | 1 | 2,667 |
beginner to sql plus - what am i doing wrong in this query? why am I getting the result as "0 records updated"? | <p>I am trying some question in sql plus in oracle but it is not working and not returning the desired result. can someone please tell me what I am doing wrong?</p>
<p>the question is:-</p>
<p>Develop a query that will identify and mark inactive those customers that have bills overdue by more than 30 days (this can u... | 1 | 3,252 |
I am almost there...PhoneGap Android connect to WCF Service | <p>Firstly I would like to thank all the experts here on stackoverflow, by reading questions asked and looking at example code and reading the answers i have been able to get to this point. Thank you once again!</p>
<p>I have been spending hours and hours searching for a solution, I’ve read through many posts on this ... | 1 | 1,096 |
how Update column data type in Django | <p>I have new to python and django I am creating poll application and in that application after creating models poll and choice using "South". I want to changer the length of question field from 200 to 300 but I am not able to achieve it even using south as well.</p>
<p>I have run python manage.py schemamigration poll... | 1 | 1,846 |
RecyclerView: Inconsistency detected. Invalid item position. Cause -Removing item using timer | <p>Before moving ahead i search about this bug on google and i found the so many answer which are available but my scenario is different than their situation.</p>
<pre><code>java.lang.IndexOutOfBoundsException: Inconsistency detected. Invalid item position 2(offset:2).state:3
</code></pre>
<p>I am using recyclerview ... | 1 | 2,363 |
Trying to use curl in a bat file, getting curl errors 3 and 6. Think it has something to do with '^' but not sure how to fix? | <p>I'm using a bat file that I didn't write, and supposedly all you have to do is put in a few pieces of info (api key, domain, & responder ID) and it should work, the beginning of the file looks like this (I've obfuscated some stuff):</p>
<blockquote>
<pre><code>@echo off
setlocal enabledelayedexpansion
goto :ma... | 1 | 1,235 |
When selecting sub-menu item it highlights all items under parent menu | <p>I am working on a single page application and I have nested menu there, when I select any item on sub-menu it does highlight all sibling items under parent menu and parent menu itself, but what I need is just to highlight selected sub-menu and parent menu, please advise:</p>
<p>HTML</p>
<pre><code> <n... | 1 | 2,564 |
Changing Blazor folder gives me "Cannot find the fallback endpoint" | <p>I created a default Blazor project and wanted to have a Web API part in the same project for prototyping purposes.</p>
<p>So I put all the controllers and related in an <code>Api</code> subfolder and the Blazor stuff in a <code>Blazor</code> subfolder.</p>
<p>The structure of the project:</p>
<pre><code>- Api
-... | 1 | 1,194 |
ClassNotFoundException when trying to deploy war | <p>I am getting the following error when I deploy to jboss. </p>
<p>I appreciate that the error should tell me everything I need to know - The class can not be found therefore I am missing a jar. </p>
<pre><code> 16:29:48,377 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-3) MSC000001: Failed to start se... | 1 | 5,203 |
Test if nodes are empty or contain NULL using template match | <p>Edit to the XML</p>
<p>I am trying to figure out how test if nodes do not exist or contain the word NULL using template matching. Currently I am using a <xsl:choose> test in my matched template. Is there a more efficient way to do this test?</p>
<p>In the XML if the or nodes do not eixt, or contain the word... | 1 | 2,115 |
Getting "Already managing a GoogleApiClient with id 0" exception when using TabLayout Viewpager | <p>I want to integrate Google Signup using TabLayout ViewPager Fragments. ViewPager contains two fragments LoginFragment and RegistrationFragment and both contains "Google Signup" button.</p>
<p>Problem is that I'm getting following error when launch activity.</p>
<blockquote>
<p>java.lang.IllegalStateException: Al... | 1 | 1,347 |
How to add multiple lines of text to a text area using javafx? | <p>I am using javafx to create a pane that asks for Loan Amount and Number of Years to calculate how much the monthly and total payment will be based on an annual interest rate increasing by .125 from 5% to 8%.</p>
<p>I want to print this out in the form of a table below the initial pane. However, I am stuck trying to... | 1 | 2,359 |
export a php file to excel | <p>How can we set style to the table while export a php file to excel </p>
<p>using the following code we can export a php file to excel</p>
<pre><code>header("Content-Disposition: attachment; filename=".$fname."Application.xls");
print "<html xmlns:x=\"urn:schemas-microsoft-com:office:excel\">
<style>
... | 1 | 2,006 |
How to use dependency injection in quartz.net scheduler | <p>I'm trying to run up quartz.net service in asp.net mvc 4 application where we are using dependency injection & services. In this application I need quartz for sending emails with daily period. But whats the strange I can't use DI in quartz.net code because it's broke if I'm add constructor to it. Is anybody have... | 1 | 1,635 |
Celery - workers not picking up new tasks | <p>I'm building a web catalog archiver, using <a href="http://docs.celeryproject.org/en/latest/index.html" rel="nofollow noreferrer">celery</a> and <a href="https://www.httrack.com/" rel="nofollow noreferrer">httrack</a> asynchronous mirroring. I currently have a cluster of three servers, each with five workers per se... | 1 | 1,421 |
How to calculate total price when add/delete item in Android Studio | <p>I'm new in <strong>Android</strong>. I'm trying to create an e-commerce app. Currently, I'm creating add-to-cart <code>activity</code>. So, I've managed to add the item to cart and display in <code>CartActivity</code>. But the problem is, I don't know how to get the price and calculate the total price of all item. W... | 1 | 2,827 |
Number of ways to recreate a given string using a given list of words | <p>Given is a String <code>word</code> and a String array <code>book</code> that contains some strings. The program should give out the number of possibilities to create <code>word</code> only using elements in <code>book</code>. An element can be used as many times as we want <strong><em>and the program must terminate... | 1 | 1,398 |
Starting Appium programmatically - Connection Refused | <p>I want to automate the testing of a mobile app using the android emulator.
I am trying to start Appium programmatically and then pass its IP and Port into Webdriver, to be used. </p>
<p>Before I pass it to the Webdriver, I print out the Appium Service's IP/Port it is running on, and it is 0.0.0.0:4723, but I am get... | 1 | 5,564 |
Problems with SOAP request | <p>I am trying to integrate Siebel CRM with SAP system via...
The problem is : the SOAP request that siebel is generating is giving me an error while if I use SOAP UI to generate the SOAP request, it is working fine. Following are the error mesages and SOAP requests generated</p>
<p>Error from siebel SOAP request : </... | 1 | 2,375 |
CentOS got hacked in, crontab has been modified | <p>I believe someone/virus hacked in my CentOS which I recently opened SSH for one day. The box is in LAN. I just need to use it for a while when I am outside. </p>
<p>That night, the linux becomes slow to access via SSH in the LAN and slow to open any local webpages. It is acting very strange. I check the CPU which i... | 1 | 1,465 |
Kendo Grid Grouping on column - TypeError: Cannot read property 'length' of undefined | <p>i have problem with grouping data in the Kendo Grid.</p>
<p>I i drag the column which i want to use for group i always got following error. </p>
<pre><code> TypeError: Cannot read property 'length' of undefined
</code></pre>
<p>I tried to find where error is triggered but without luck.</p>
<p>Grouped data from s... | 1 | 17,942 |
Print Receipt in Java with some Font Size | <p>I tried to print POS receipt with code that I got from <a href="https://stackoverflow.com/questions/12336607/thermal-printer-java">here</a>. It's works fine but I want to have some different font sizes in the receipt. After searching in the forum, I just found out that a JTextArea just only can have 1 font. So, How ... | 1 | 1,777 |
arc.centroid returning (NaN, NaN) in D3 | <p>Fair warning: I'm a D3 rookie here. I'm building a donut chart using D3 and all is well so far, except that the labels on the slices aren't aligning with the slices. Using the code below, the labels for each slice are rendered in the middle of the chart, stacked on top of each other so they're unreadable. I've dropp... | 1 | 1,214 |
Composer curl error 60: SSL certificate problem: self signed certificate in certificate chain | <p>I'm working with Symfony 5 and I need to install 'knplabs/knp-snappy-bundle' with composer but I have this message:</p>
<pre class="lang-txt prettyprint-override"><code>[Composer\Downloader\TransportException]
curl error 60 while downloading https://repo.packagist.org/packages.json: SSL certificate problem: self s... | 1 | 1,124 |
How to setup Serilog with Azure Functions v4 correctly? | <p>I want to use Serilog in an Azure Function v4 (.net 6) (the logs should be sent to Datadog). For this I have installed the following nuget packages:</p>
<pre><code><PackageReference Include="Serilog" Version="2.10.0" />
<PackageReference Include="Serilog.Extensions.Logging" Ver... | 1 | 1,302 |
How to display confirmation message with GridView ShowDeleteButton CommandField | <p>I'm trying to attach a Javascript function to confirm a delete of a record in a GridView. I know this can be done more easily using an asp:LinkButton in an ItemTemplate but I am trying to attach it to a CommandField - ShowDeleteButton button. </p>
<p>I've tried to follow this tutorial: <a href="http://geekswithblog... | 1 | 1,871 |
Convert RGB Image to Grayscale and Grayscale to RGB Image? | <p>I have successfully converted an Image to Grayscale, I want to revert the Grayscale Image back to RGB Image. Please help. Thanks in advance.</p>
<pre><code>-(UIImage *) toGrayscale
{
const int RED = 1;
const int GREEN = 2;
const int BLUE = 3;
Create image rectangle with current image width... | 1 | 1,143 |
Stripe payment error : Invalid string id | <p>I am getting below error when I create a Stripe Charge</p>
<blockquote>
<p>Invalid string id: {"number"=>"401288******1881", "exp_month"=>"02",
"exp_year"=>"2015", "cvc"=>"***", "name"=>"Tahir Yasin",
"address_line1"=>"lorem ipsum dolar", "address_line2"=>"lorem ipsum
dolar", "address_zip"=>"5400", "address... | 1 | 1,117 |
Logback - get method name | <p>We are currently migrating from log4j to Logback, but we are having problems obtaining the "original" method name that triggered the log.</p>
<p>I'm calling it "original" because we have a centralized logger class (to hide and manipulate certain logs) and what's showing up in the logs is the method name from that c... | 1 | 1,499 |
How to handle SerializationException after deserialization | <p>I am using Avro and Schema registry with my Spring Kafka setup.</p>
<p>I would like to somehow handle the <code>SerializationException</code>, which might be thrown during deserialization.</p>
<p>I found the following two resource:</p>
<p><a href="https://github.com/spring-projects/spring-kafka/issues/164" rel="n... | 1 | 1,272 |
Methods subscribed via FB.Event.subscribe to comment.create or comment.remove are not triggered | <p>I have a partial view in my MVC application where I want to display a Facebook comment box. I also want to save information in my database for each comment that a user posts - yes, I know they're visible on Facebook as well, but I need to save them in the database.</p>
<p>To that end, I wrote this code (NOTES: this... | 1 | 1,389 |
I want to store in an array messages from a ROS topic for further elaboration | <p>I'm sorry if this question is too simple for you, but i don't have good programming skills and ROS knowledge. I have a ROS topic in which are published some numbers that are heart beat intervals in seconds. I need to subscribe to that topic and do this kind of elaboration: The idea is to have a little array of ten n... | 1 | 1,071 |
React - Error while updating from 17.0.1 to 17.0.2 | <p>I am getting the following error while updating from React 17.0.1 to 17.0.2.
It's not entirely clear to me why the dependencies are causing problems.
I'm using npm v 7.4.</p>
<p>It seems that some dependencies are incompatible with react 17. Do I understand correctly?
But npm shows e. g.</p>
<pre><code>npm ERR! pe... | 1 | 1,342 |
Set a fixed width to each LI element | <p>I have a navigation bar that I want to get the width of each <code><li></code> element, then place a fixed width to it.</p>
<p>Reason: IE 7 needs the parent (in this case the <code><li></code> element) to be fixed width for the child <code><div></code> element to use <code>margin: 0 auto</code> to... | 1 | 1,111 |
CollapsingToolbarLayout and floating action button position inside CollapsingToolbarLayout | <p>I am referring to <a href="https://github.com/chrisbanes/cheesesquare" rel="nofollow noreferrer">Cheesesquare app.</a> I have slightly different design requirement at the moment..</p>
<p>Something like this (ignore the part below image and name)</p>
<p><a href="https://i.stack.imgur.com/7McYB.png" rel="nofollow no... | 1 | 3,930 |
in c# getting Error cannot access a disposed object object name='System.Net.Socket.Socket' | <p><strong>I want a chat application in C# Client and in Java Server</strong> </p>
<p>I go through C# Client but I got some Error when I response to Java Server I get the error@</p>
<blockquote>
<p>cannot access a disposed object object name='System.Net.Socket.Socket'</p>
</blockquote>
<pre><code>class Program
{
... | 1 | 1,099 |
Symfony2 production; Apache VirtualHost not working | <p>I'm a novice to Symfony2 and MVC frameworks but have some experience with PHP and Apache.</p>
<p>I developed a project on an Apache server on my workstation. I'm trying to deploy my first Symfony2 project on our production Ubuntu server, also running Apache. For some reason I cannot get the behavior I want. The ser... | 1 | 1,821 |
arduino serial erratic behaviour missing characters and occasionally the whole transmission | <p>I have a problem with the hardware serial on the UNO, in many occasions it seems to drop a character (usually the first character being received) and in some cases it misses a whole transmission. this only occurs when the Arduino is receiving data from the computer typed by me in the serial monitor. I can see the RX... | 1 | 1,375 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.