title
stringlengths
13
150
body
stringlengths
749
64.2k
label
int64
0
3
token_count
int64
1.02k
28.5k
H264 encoder in android?
<p>I've been having some problems while trying to fix a simple video recording app*. I think I followed the sequence of steps correctly. The following is a simplification of the part of the code that is giving me problems. This code is executed only as a callback once a button is pressed:</p> <pre><code>if ( mRecorder...
0
1,262
How to apply some style to the table row in angular material table
<p>I have this table :</p> <pre><code> &lt;div class="table-container"&gt; &lt;table mat-table [dataSource]="dataSource"&gt; &lt;mat-divider&gt;&lt;/mat-divider&gt; &lt;!-- title column --&gt; &lt;ng-container matColumnDef="title"&gt; &lt;th mat-header-cell *matHeaderCellDef...
0
1,999
Pkill -f doesn't work for process killing
<p>I have this process running:</p> <pre><code>342 pts/2 T 0:00 sh -c sudo screen /usr/bin/python /usr/bin/btdownloadcurses "http://zoink.it/torrent/732A4A9B54B7E3A916C2835D936D985942F65A6D.torrent" --display_interval 20 --saveas "/srv/" 343 pts/2 T 0:00 sudo screen /usr/bin/python /usr/bin/btdownloadcurse...
0
1,031
What is the return type of resolve and reject function of a Promise?
<p>I am trying to find the return type of resolve and reject function of a Promise I am creating with typescript, so that tslint does not complain based on the typedef rules.</p> <p>Here is the code :</p> <p>promises.ts</p> <pre><code>const promise: Promise&lt;number&gt; = new Promise((resolve, reject): void =&gt; {...
0
3,038
Parse a text file into an array?
<p>I currently have 3 files; they are in the same directory on my computer:</p> <ul> <li>project.html</li> <li>javascript.js</li> <li>text.txt</li> </ul> <p><strong>Code in 'project.html'</strong></p> <pre><code>&lt;html&gt; &lt;head&gt; &lt;link href="style.css" rel="stylesheet" type="text/css"&gt; &lt;scri...
0
1,128
fatal error C1083: Cannot open include file: 'excpt.h' and 'ctype.h'
<p>I'm trying to build <em>TortoiseSVN</em> and when I run <em>nant</em> setup, I get these build errors and I'm not sure how to resolve them. There are similar posts on SO but they're outdated or do not apply to my situation. Eventually, I will need to use Visual Studio 2015 to build the project. </p> <p>Here's the b...
0
1,624
Modal Popup Extender animation in ASP.net
<p>I am currently developing an ASP.net c# application. I have a grid view which has bound link buttons inside. When the link button is pressed I want to display the modal popup using a fade in animation and a fade out animation when a button inside the modal popup is clicked. </p> <p>I have added the animation extend...
0
1,743
Program type already present: android.support.v4.app.ActionBarDrawerToggle$Delegate
<p>Please any one know how to solve this.</p> <p>when I tray to clean then rebuild my app and I got error:-</p> <pre><code>Program type already present: android.support.v4.app.ActionBarDrawerToggle$Delegate </code></pre> <p>I'm just newbie on Android developing and I need some help with my project</p> <p>build.gradle:<...
0
3,225
How do I direct the login button to another page?
<pre><code>&lt;!DOCTYPE html&gt; &lt;html&gt; &lt;head&gt; &lt;meta charset="UTF-8"&gt; &lt;title&gt;Welcome to Wave - Log In, Sign Up or Learn More&lt;/title&gt; &lt;style&gt; @import url(http://fonts.googleapis.com/css?family=Exo:100,200,400); @import url(http://fonts.googleapis.com/css?family=Source+Sans...
0
1,870
OpenXML library save excel file
<p>I have the following code and its not saving the values to cell and also in file. It shows value in <code>cell.cellvalue</code> field but its not writing it to excel. I have no idea how to save the file. I used <em>OpenXml-SDK</em> and I am writing <code>datatable</code> values to each <code>cell/row</code> of crea...
0
1,263
How make a http post using form data in flutter?
<p>I'm trying to do a http post request and I need to specify the body as <strong>form-data</strong>, because the server don't take the request as raw.</p> <p>This is what I'm doing:</p> <pre class="lang-dart prettyprint-override"><code>import 'dart:convert'; import 'package:flutter/material.dart'; import 'package:h...
0
1,177
JSF/Facelets : CSS file is not being recognized using <h:outputStylesheet> tag
<p>I'm working on a project using JSF/Facelets. I want to do some CSS changes on my View XHTML, but nothing happen when i deploy my web application in my Tomcat Server. I've tried many tricks but i've got the same result.</p> <p>Anyway, here's my "styles.css" : </p> <pre><code>body { width: 750px; } #header { width...
0
1,435
Caffe error Cannot copy param 0 weights from layer, shape mismatch
<p>I am getting following error while running test app. (when I am using trained model with my test application)</p> <pre><code>F0518 18:21:13.978204 13437 net.cpp:766] Cannot copy param 0 weights from layer 'fc6'; shape mismatch. Source param shape is 4096 2304 (9437184); target param shape is 4096 9216 (37748736). ...
0
4,487
I'm getting "found character that cannot start any token while scanning for the next token"
<p>I have been running Ruby on Rails on my laptop for about a month now, but when I wanted to run the server in this instance (and it was working fine a few hours ago) I now receive this message. How can I get the server to run again please? </p> <pre><code>C:\Sites\LaunchPage&gt;rails s C:/RailsInstaller/Ruby1.9...
0
1,272
Auto connecting to a BLE device
<p><br>I am working on an application to coommunicate against a BLE device, currently I am trying <br>to create a Service that starts with the application and auto connect to TI's CC2541 <br>keyfob. <br> <br>Problem is the gatt server seem to fail EVERY TIME.... <br>I have no clue whats wrong with my code since by goog...
0
6,808
ImportError: Failed to import any qt binding, Python - Tensorflow
<p>I'm starting my adventure with Tensorflow. I think I installed everything correctly, but when running this code, PyCharm returns an error:</p> <pre><code>Traceback (most recent call last): File "C:/Users/tymot/Desktop/myenv3/env/Tensorflow/all_good.py", line 15, in &lt;module&gt; import matplotlib.pyplot as p...
0
2,048
"RuntimeError: implement_array_function method already has a docstring" when import the chatbot library
<p>I'm trying to use the library <code>Chatterbot</code>, but I got this error <code>RuntimeError: implement_array_function method already has a docstring</code> I don't understand! Can you help me?</p> <pre><code>from chatterbot import ChatBot from chatterbot.trainers import ListTrainer # Create a new chat bot named ...
0
2,071
Setting primefaces selectOneMenu default value from primefaces tree selected item in jsf with ajax
<p>in a first form i ve a primefaces multiple selection tree(populated from LDAP) and in another form i ve a selectOneMenu primefaces component. i would like to make the default selectOneMenu value(the first displayed on this menu) to be the value of the tree selected node. i ve tryed to use f:ajax.. but it doesnt wo...
0
2,321
Searchable Bootstrap Dropdown
<p>So I'm trying to create a searchable list of links to divs that a user could use to quickly jump to that location on the page. This is using Flask and Bootstrap.</p> <p>I successfully built a dropdown to do this, but it isn't searchable. </p> <pre><code>&lt;li class="nav-item dropdown"&gt; &lt;a class="nav-lin...
0
1,909
How to set the default button for a TextBox in ASP.Net?
<p>I have a page that has two buttons, btnSearch and btnAddUser. The aspx page is as below. As you can see the default button is btnAddUser. But I would like to set the default button to btnSearch when I type something in the text box txtFilter. I added a JavaScript function clickButton, and in the page_load I added fo...
0
1,244
How to fix (the operation has timed out) error in sending emails using SMTP?
<p>I need to develop a mailing system in the intranet web-based application that I am working on it for my company. I am developing it with ASP.NET and C#. The purpose of this system is to let the admin to be able to send emails to the users. I developed this system and I tested for 25 users and it works fine. </p> <p...
0
2,603
switch statement in Jquery and List
<p>I would like to know if my approach is efficient and correct. my code is not working though, I don't know why.</p> <pre><code>&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt; &lt;html xmlns="http://www.w3.org/1999/xhtml"&gt; &lt;head&gt;...
0
1,113
Get text value from xml in soapui groovy script
<p>My task is get value from xml in soapui to create next test in a sequence.</p> <p>I use groovy script</p> <p>My target is get text inside tag. It's easy to recognize becouse it's base64 encoded string.</p> <pre><code>def project = testRunner.testCase.testSuite.project ; def tcase = project.testSuites["ChangeRete...
0
1,931
How to add decoration DropdownButton in Flutter
<p>I have a dropdown button as you can see below.</p> <pre><code> child: DropdownButton&lt;String&gt;( value: dropDownValue, icon: Icon(Icons.keyboard_arrow_down), iconSize: 15, elevation: 16, ...
0
1,262
How to break into WinDBG when ntdll.dll is mapped into the new process
<p>I want to use the following command to break into WinDBG when ntdll.dll is mapped into the new process, and before any of ntdll's process initialization runs.</p> <p><strong>sxe ld ntdll.dll ;g</strong></p> <p>However, the trick doesn't work at all,</p> <pre><code>ModLoad: 7c900000 7c9b0000 ntdll.dll eax=010043...
0
1,048
Simple UDP broadcast client and server on different machines
<p>The following client and server UDP broadcast code works on fine when both are on the same PC. However when I have them on separate PC's in the same WIFI LAN nothing happens at all. I have managed to get a multicast version working fine on the two separate PC's but not this :(. I have shut down firewalls on both...
0
1,123
The platform "win32" is incompatible with this module (fsevents)
<p>I'm trying to create React app using <code>npx create-react-app first-react-app</code>.</p> <p>When it start to create the app, I'm getting the warning below every time. At the end it's create an app. But what is the reason and how can I resolve this problem permanently?</p> <p>Here is the all logs:</p> <pre><code>y...
0
1,532
C# BinaryReader "stream does not support seek operations"
<p>I am trying to download files from an ftp server using C# and ftpwebrequest. I can get the bytes using BinaryReader, but when I try to read the stream using br.ReadBytes(int), I get an error that BinaryReader does not support seek operations. </p> <p>Does anyone know how best to read the bytes so I can write them t...
0
2,238
How to use sideNav of materialize css with react?
<p>I'm developing an app with React, I want to use the sidenav component <a href="http://materializecss.com/side-nav.html" rel="noreferrer">http://materializecss.com/side-nav.html</a></p> <p>The problem is that I'm getting this error:</p> <pre><code>Sidebar.js:8 Uncaught TypeError: __WEBPACK_IMPORTED_MODULE_2_jquery_...
0
2,189
org.springframework.web.reactive.function.UnsupportedMediaTypeException: Content type 'text/xml;charset=UTF-8' not supported for bodyType
<p>using Java 11, SpringBoot 2, WebFlux, WebClient and Jackson</p> <p>trying to use Spring WebClient to consume a Web service endpoint that returns XML, content type: 'text/xml;charset=UTF-8'</p> <p>Jackson XML dependency in the project's pom.xml:</p> <pre><code>&lt;dependency&gt; &lt;groupId&gt;com.fasterxml.ja...
0
1,130
How to solve "Could not find i18n-0.6.5 in any of the sources (Bundler::GemNotFound)" AWS deploy
<p>I am trying to deploy my application using AWS Elastic Beanstalk, but i get this error:</p> <pre><code>It looks like Bundler could not find a gem. This is probably because your application is being run under a different environment than it's supposed to. Please check the following: * Is this app supposed to be run...
0
1,324
WPF dataGrid super Header for multiple columns
<p>I want to do Header for multiple columns in WPF <code>DataGrid</code>. I tried with Header template but it will display Header for one column.</p> <p>Below XAML I have tried:</p> <pre><code> &lt;DataGrid&gt; &lt;DataGrid.Columns&gt; &lt;DataGridTextColumn&gt; &lt;DataGridTextCo...
0
8,161
TSLint - Preventing error: The key is not sorted alphabetically
<p>I'm doing a test app with Ionic2 / Cordova / Typescript / Angular. I'm using <strong>tslint 5.6.0</strong>.</p> <p>I'm using the following module: <a href="https://www.npmjs.com/package/tslint" rel="noreferrer">https://www.npmjs.com/package/tslint</a></p> <p>Focusing on just one file...</p> <p>when linting the fo...
0
1,146
Invoke slot method without connection?
<p>I have a live object implemented in the following way. It is used to execute long tasks in background. The main thread invoke the tasks by sending a signal to the public slots (i.e. doTask). Here is a stripped down example (not tested).</p> <pre><code>class MyTask : public QObject { Q_OBJECT public: MyTask...
0
1,074
Android - The API key can only be specified once <meta-data> duplicates
<p>I’m trying to add Google map in to may app, so I have taken the API key. Unfortunately when I inserted the API key in manifest.xml through a meta-data tag, it automatically inserted another meta-data tag at compile time as shown below. Now it generates below mentioned error. The worst case is, even I delete each of ...
0
3,203
Google Script: InputBox with drop down list spreadsheet (Not FORM)
<p>I have this simple script:</p> <pre><code>function myFunction() { var ssh = SpreadsheetApp.getActiveSpreadsheet(); var ss = ssh.getActiveSheet(); var s = ss.getActiveRange(); var rowIndex = s.getRowIndex(); var colIndex = s.getColumnIndex(); // Get the number of columns in the active sheet. var col...
0
1,481
SQLSTATE[HY000] [2002] Operation timed out
<p>I am creating a pdo data connection. The connections works fine on localhost. But when I connect to my remote db, and use exactly the same credentials which I have used before, I get a empty page, no error messages, just a empty page.</p> <p>The same credentials that are working on a previous project were done wit...
0
1,119
How to update state in map function in reactjs
<p>I am having 4 buttons each button have name id and selected boolean flag.</p> <p>What I am trying to achieve is, on click of button, boolean button flag should be changed of that particular button. For this, I need to setState in map function for that particular button Id.</p> <p>My issue is I am unable to setStat...
0
1,141
Nested Transaction and EJBContext's setRollbackOnly()
<p>I am reading the Transaction Management of Java EE 7 and I get confused by the concept of nested transaction and the functionality of <code>EJBContext#setRollbackOnly()</code>. </p> <p>Say I have two Session Beans, <code>Bean1Impl</code> and <code>Bean2Impl</code> and their signatures are:</p> <pre><code>@Stateles...
0
1,195
My eclipse luna won't start up
<p>So this basically this happens either when: -I install the e(fx)clipse plugin into eclipse and then restart eclipse -I copy the eclipse folder onto a network and put the folder on another computer to use the eclipse. </p> <p>Currently I am facing the second one. Can you guys teach me how to read an eclipse log file...
0
1,263
Reading the tag UID of Mifare classic card
<p>I am creating an app for NFC where my first objective is to get the tag uid from the mifare tag. When i press the tag button my activvity goes to second activity where i should be getting the tagID.</p> <p>I am getting error of resource lookup. I know i am doing some major mistakes but could not find it.</p> <p>Re...
0
1,751
Uncaught Error: Cannot use object of type WP_Post as array
<p>I was trying to place a WordPress menu inside my template file. I found using wp_nav_menu uncomfortable since it outputs markup that is not compatible with my static HTML template. I know I could just use custom menu walker class to modify the markup that wp_nav_menu. But instead, I wanted to just use only the menu ...
0
4,195
How to export a complete JTable component in pdf at a specific coordinate
<p>In my project I have to print JTable components in a pdf with all the customizations(like borders,colors etc). For this requirement I searched a little bit and found one code to print JTable in pdfs. But after printing I found that table's border for 1st row and 1st columns are missing plus I didn't find a way to pr...
0
1,183
JQuery Tablesorter not a function
<p>I am parsing an XML file into a table and want to use the jquery tablesorter. I've tried many things, of which none have worked. I was parsing the XML file first via AJAX and then calling tablesorter on my table. The way I have my code now, I'm calling tablesorter on my table, running AJAX, and then updating the t...
0
1,078
jdbc: " Invalid object name '[table name]'."
<p>So for the past few hours i've been trying to set up a database and to then use the database as DataSource in a Java Servlet (I'm using Netbeans). For some reason I keep getting the error "Invalid object name 'Accounts" when I try to execute the statement "insert into Accounts(Email, Hash, Salt) values(xyz, xyz, xyz...
0
4,987
java.lang.NoSuchMethodError: org.mockito.Mockito.framework()Lorg/mockito/MockitoFramework
<p>I've been facing a peculiar problem. Basically, when I run my Mockito test normally i.e. 'Run as Junit Test', it gives me the following error. Can someone help me please what is my mistake?</p> <h2>The error received:</h2> <pre><code> java.lang.NoSuchMethodError: org.mockito.Mockito.framework()Lorg/mockito/Mock...
0
1,228
Android Lollipop 5.1: Fatal signal 11 (SIGSEGV), code 2, fault addr 0x9e985ff8 in tid 4093 (RenderThread) / when using lot of nine patch graphics
<p>I'm using quite a large amount of NinePatchDrawables in the app views. The underlying Bitmaps are cached, so there is no memory issue. </p> <p>While preparing/drawing the screen, the app crashes with the following log entry:</p> <pre><code>04-03 19:37:42.651: A/libc(4064): Fatal signal 11 (SIGSEGV), code 2, fault ...
0
6,691
DCOM Config settings for Microsoft Interop Word Automation
<p>I am using <code>Microsoft Office Interop Word</code> to generate documents using C#. In order for the document generation to work, there should be an entry for the <code>"Microsoft Office Word 97 - 2003 Document"</code> under the <code>Dcom Config Settings</code> as shown below:</p> <p><img src="https://i.stack.im...
0
2,338
Flask app not executing javascript when it's in an external file
<p>I have HTML file that contained my CSS and JS. When creating my flask app I decided to separate out the CSS and JS to separate files in a static directory.</p> <p>When I have everything in one HTML file, everything works as expected, but when the CSS and JS are in separate files, parts of the JS don't execute.</p>...
0
1,168
TypeError: Cannot read property 'members' of undefined
<p>I started upgrading from Angular 4.4.4 to 5.1.1 today. I have had to upgrade a number of other packages that rely on angular as well. I get an error with so little context that I have no idea where to start. Has anyone else seen this and know what the issue is?</p> <pre><code>$ ng serve --aot=false ** NG Live Devel...
0
3,009
WIX - how to resolve error LGHT0094: Unresolved reference to symbol
<p>I'm using WIX 3.8 to create my setup file. This is my Product.wxs</p> <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt; &lt;Wix xmlns="http://schemas.microsoft.com/wix/2006/wi"&gt; &lt;Product Id="{D16E42B5-3C6F-4EE5-B2F4-727BF8B74A92}" Name="My setup" Language="1033" Version="1.0.0.0" Manufacturer="Me" U...
0
2,369
How to add more fields using jQuery?
<p>I have a 3 input fields with <strong>+Add More</strong> Button. I want to add more fields when <strong>+Add More</strong> button is pressed.</p> <p>When New field will create there should be a remove button to remove newly added row and new row can be create by using <strong>+Add More</strong> button. </p> <p>For ...
0
1,080
Importing and updating data in Elasticsearch
<p>We have an existing search function that involves data across multiple tables in SQL Server. This causes a heavy load on our DB, so I'm trying to find a better way to search through this data (it doesn't change very often). I have been working with Logstash and Elasticsearch for about a week using an import containi...
0
1,184
How do I sort a list of entities using ViewModel instead of ViewBag?
<p>I am using ViewBag to help me sort a list of students found within a list of classes. I have read that ViewBag is something that should be avoided at all costs attempting to build a proper MVC project. </p> <p>When viewing the page that the below code generates, one is able to sort through a list of students in a...
0
3,128
How to force DataFrame evaluation in Spark
<p>Sometimes (e.g. for testing and bechmarking) I want force the execution of the transformations defined on a DataFrame. AFAIK calling an action like <code>count</code> does not ensure that all <code>Columns</code> are actually computed, <code>show</code> may only compute a subset of all <code>Rows</code> (see example...
0
2,577
How do I change the font size in a UIPickerView in Swift?
<p>How do I change the font size in a picker view? I have read a lot of questions about this, but none are in Swift 3. I have three picker views; the first two have two columns and have the same data source and delegate. The last one has one column and has a different data source and delegate. I can't fit the text ...
0
1,378
How to return value from function running by QThread and Queue
<p>Please explain how do we send/receive data from Thread managed by Queue....</p> <p>First I subclass 'QThread' defining its <code>run()</code> method which is started when <code>QThread</code>'s<code>.start()</code> is called:</p> <pre><code>class SimpleThread(QtCore.QThread): def __init__(self, queue, parent=N...
0
1,088
Using IN clause in a native sql query with Hibernate 3.2.2
<p>In a fashion similar to the question found here: <a href="https://stackoverflow.com/questions/831990/using-in-clause-in-a-native-sql-query">Using IN clause in a native sql query</a>; I am attempting to make use of an <code>IN()</code> clause by way of a native SQL query in Hibernate. While the author in the other qu...
0
1,072
Python: Typehints for argparse.Namespace objects
<p>Is there a way to have Python static analyzers (e.g. in PyCharm, other IDEs) pick up on Typehints on <code>argparse.Namespace</code> objects? Example:</p> <pre><code>parser = argparse.ArgumentParser() parser.add_argument('--somearg') parsed = parser.parse_args(['--somearg','someval']) # type: argparse.Namespace t...
0
1,050
jQuery - How to mask credit card number during input?
<p>My goal is to have a form similar to <a href="http://jquerycreditcardvalidator.com/" rel="noreferrer">http://jquerycreditcardvalidator.com/</a>. Ive tried viewing the source code of that page, but it is beyond my expertise, so I tried to rewrite the code using jquery. I also want to mask the input after the first 2 ...
0
1,030
how to resolve "Prop `id` did not match. Server: "react-tabs-30" Client: "react-tabs-0" console issue?
<p>i am trying tab in next in next.js, but every time i use it it show a console warning link this <code>Prop `id` did not match. Server: &quot;react-tabs-30&quot; Client: &quot;react-tabs-0&quot;</code>, i know it isn't effect my app but it is so annoying. how to solve this waring</p> <pre><code>&lt;Tabs&gt; &lt;div...
0
1,213
.Net Core 3 Blazor Server - How to do basic login with claims?
<p>I already have tables with usernames, passwords, and role IDs, so I do not want to use the ASP.NET Membership tables. And I only need a simple login page that asks for username and password, not their pre-built Identity.UI package.</p> <p>But I do not know how to get Blazor Server to do a basic login for me. I ha...
0
1,149
How close BackgroundWorker thread when application is deactivated?
<p>I create thread with <code>BackgroundWorker</code>, and in the loop I check every time if <code>CancellationPending</code> is true or not, like this:</p> <pre><code> public MainPage() { InitializeComponent(); bw = new BackgroundWorker(); bw.WorkerReportsProgress = true; bw.Wor...
0
1,043
Permission denied for window type 2002 in Android Studio
<p>Today I installed latest version of Android Studio</p> <p>I am learning Floating Widgets in Android</p> <p>I started with applying this example</p> <p><a href="https://www.spaceotechnologies.com/android-floating-widget-tutorial/" rel="noreferrer">https://www.spaceotechnologies.com/android-floating-widget-tutorial...
0
1,183
Change colour scheme for ggplot geom_polygon in R
<p>I'm creating a map using the maps library and ggplot's geom_polygon. I'd simply like to change the default blue, red, purple colour scheme to something else. I'm extremely new to ggplot so please forgive if I'm just not using the right data types. Here's what the data I'm using looks like:</p> <pre><code>&gt; head...
0
1,094
An operation was attempted on a nonexistent network connection, error code 1229
<p>Just working on a nice and simple HttpListener and all of the sudden this exception pops-up.</p> <blockquote> <p>An operation was attempted on a nonexistent network connection.</p> </blockquote> <p>Look hours for a solution and could not find one. The code crashed as soon as i submit data from the webpage to the <co...
0
3,844
Android stop recording fail
<p>I am going to start a service to start audio recording. When I am trying to stop , it shows the following message </p> <pre><code>06-27 17:21:30.138: E/MediaRecorder(6122): stop called in an invalid state: 0 </code></pre> <p>I am not sure whether other functions such Uploading data to server can affect the result ...
0
2,529
Print a postscript document with CUPS and a thermal printer
<p>I installed an epson TM-T20 in Ubuntu 12.04, using the official <a href="https://download.epson-biz.com/modules/pos/index.php?page=prod&amp;pcat=3&amp;pid=37&amp;scat=32" rel="nofollow">driver</a>. This is a thermal printer, I'm using 80mm paper.</p> <p>My problem: When I print an image (using a postscript document...
0
1,109
"Handle is invalid" error when opening SqlConnection
<p>This error has started occurring sporadically and inexplicably, particularly when connecting to our session state database. Here's the error:</p> <pre><code> Exception type: COMException Exception message: The handle is invalid. (Exception from HRESULT: 0x80070006 (E_HANDLE)) at System.Runtime.InteropServ...
0
1,498
How to transform log4net config like web.config?
<p><strong>From my .csproj file:</strong></p> <pre><code>&lt;Content Include="log4net.config"&gt; &lt;SubType&gt;Designer&lt;/SubType&gt; &lt;/Content&gt; &lt;Content Include="log4net.Release.config"&gt; &lt;DependentUpon&gt;log4net.config&lt;/DependentUpon&gt; &lt;/Content&gt; &lt;Content Include="log4net.Debug.c...
0
1,318
How to format Base64 encoded string while sending in JSON
<p>I want to format base64 encoded string, when I send the below string in JSON request - I am getting JSON validation error because this string is not formatted properly. I couldn't find any good utility which converts from base64 encoded string to the proper one.</p> <p>Is there any utility in Java/Groovy or Javascr...
0
7,637
TemplateBinding to DependencyProperty on a custom control not working
<p>Currently, I'm working on a simple custom button that uses user supplied images as a background for the pressed and normal states. I've a lot of buttons so I decided to write a custom button and implement two properties for the pressed and normal states' pictures.</p> <p>Here is the code I'm using</p> <pre><code>p...
0
2,402
Is there a way to clean docker build cache?
<p>I am running a lot of builds using Docker in MacOS. Eventually, a lot of build cache is accumulating, e.g. this is what I see in <code>docker system df</code>:</p> <pre><code>YPE TOTAL ACTIVE SIZE RECLAIMABLE Images 22 0 9.67GB 9.67GB (100%) Containers 0 ...
0
1,111
DrawerLayout must be measured with MeasureSpec.EXACTLY error
<p>I am trying to implement a Navigation drawer, but I keep getting this error. I saw the similar questions but did not work for me. I have the following layout activity_main2.xml:</p> <pre><code>&lt;android.support.v4.widget.DrawerLayout android:layout_width=&quot;match_parent&quot; android:id=&quot;@+id/drawe...
0
1,212
How to remove SOAP envelope and namespaces with XSLT
<p>I have a message</p> <pre><code>&lt;soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns="http://xmlns.oracle.com/policyautomation/hub/12.0/metadata/types"&gt; &lt;soapenv:Header/&gt; &lt;soapenv:Body&gt; &lt;load-request root="Vehicles" region="en-...
0
3,421
GraphQL loop through array and get all results
<p>I'm new to GraphQL. I'm using API's from Amazon and Itunes to get the title (and other information) of a book. I'm returning an object like this:</p> <pre><code>var data = []; data.title = results[0].title; data.author = results[0].author; return data; </code></pre> <p>I can make calls to the Amazon and Itunes API...
0
1,736
Fatal Error :1:1: Content is not allowed in prolog. org.xml.sax.SAXParseException
<p>I am trying to read an XML file in Java and then compare it against its XML Schema but I can't get past this error :</p> <blockquote> <p>[Fatal Error] :1:1: Content is not allowed in prolog. org.xml.sax.SAXParseException; lineNumber: 1; columnNumber: 1; Content is not allowed in prolog.</p> </blockquote> <...
0
1,412
Go gRPC simple service Asynchronous and Synchronous explanation
<p>I am trying to understand GoLang "Go" together with gRPC and to make a simple service scalable.</p> <p>Lets say I have a client1 that calls a service1(adds numbers) that calls service2(determines if the result is prime), and service2 returns the result to service1 that returns the result to client1 all via gRPC.</p...
0
1,128
RepositoryNotFoundError: No repository for "User" was found. Looks like this entity is not registered in current "default" connection? Typeorm
<p>I am having a fun issue trying to get TypeOrm to work in my nestjs project.</p> <p>I have the below code to configure my project, yes everything loads, and yes I am able to connect to my database.</p> <pre><code>import { CacheModule, Module } from '@nestjs/common'; import { JwtModule } from '@nestjs/jwt'; import { P...
0
1,185
Display Good-looking Math Formula in Android
<p>It is sad to see that science and math is never given enough attention in Android platform. Maybe this is an easy problem, but I'm a total <em>dude</em> in javascript so I'm struggling to understand how to solve this problem.</p> <p>What I want to do is simple: <strong>I just need to use render mathematic equation. ...
0
4,078
Android Contacts provider get only phone contacts with all emails
<p>I need to get all phone contacts and their email address and photo uri:</p> <p>This is what am doing:</p> <pre><code>private void getContacts() { ContentResolver cr = getContentResolver(); Cursor cur = cr.query(Contacts.CONTENT_URI, null, null, null, Contacts.DISPLAY_NAME); if (cur.getCou...
0
2,432
The term 'else' is not recognized as the name of a cmdlet
<p>We have an issue with the If / Else structure in PowerShell. Our scripts that work on former Windows versions (up to Windows Server 2012 R2), do not work on the newer versions.</p> <p>To simplify things, let's take an example from the PowerShell help (<code>Get-Help about_If</code>):</p> <pre><code>if ($a -gt 2) {...
0
1,593
How to solve error :" !!! FAILED BINDER TRANSACTION !!! " in android 4.4
<p>I used custom camera application then i open this app working fine but i open the camera view and take the picture get error Failed binder transaction in android 4.4 version but when i check in all version below than 4.4 was working fine. why there is problem in android 4.4 version?</p> <p>My camera activity in bel...
0
12,314
How to pass selected item id from dropdown list to controller's action?
<p><strong>General problem overview:</strong> I have a create\edit view for a compound item, where I select lots of options for components from drop down lists. I want to be able to add or edit a specific component, selected in a dropdown list. </p> <p><strong>Here is a short, but complete example</strong>:</p> <p>Su...
0
1,140
new to CRUD in Laravel 5
<p>I'm very new to Laravel 5. I'm currently doing a task project with CRUD functions. I did the delete function, but update and add are still messy. Please help me.</p> <p>My database has only 1 table, 'tasks' with 3 columns: id, name and day. </p> <pre><code>My TaskModel: &lt;?php namespace App; use Illuminate\Dat...
0
1,823
What does Proxy mean in the console in Vue 3?
<p>I'm shuffling an array and getting a weird message in the console.</p> <p>My JSON file looks like this:</p> <pre><code>[ { &quot;id&quot;: 1, &quot;name&quot;: &quot;Sushi&quot;, &quot;image&quot;: &quot;https://images.pexels.com/photos/1640777/pexels-photo-1640777.jpeg?auto=compress&amp;cs=tinysrgb&am...
0
1,080
ListView inside ScrollView is not scrolling on Android
<p>I am having trouble with a scrolling <code>ListView</code> inside a <code>ScrollView</code>. I have an Activity which has some EditTexts in the top part and then a tab host with two tabs which have one ListView each. When the EditText views are focused, the soft keyboard comes up and as I have a ScrollView, the con...
0
8,774
SummarySE (Rmisc package) to produce a barplot with error bars (ggplot2)
<p>I am attempting to build a barplot with error bars using the <code>ggplot2</code> package showing 13 predictor variables on the x axis (the data frame <code>behaviours</code> can be found below). The predictors will ideally be grouped by the response variable (<code>family</code>) containing two levels (G8 and V4), ...
0
12,083
Spring boot java.lang.NoClassDefFoundError: org/springframework/orm/jpa/support/PersistenceAnnotationBeanPostProcessor
<p>Is there any reason why would adding dependencies cause error? Before adding them application is running normally.</p> <p>After adding these dependencies:</p> <pre><code>&lt;dependency&gt; &lt;groupId&gt;com.h2database&lt;/groupId&gt; &lt;artifactId&gt;h2&lt;/artifactId&gt; &lt;version&gt;1.3.176&lt;/v...
0
3,182
Rails3 Devise undefined method `confirmation_url'
<p>I've seemingly set up Devise for my User authentication, with the :confirmable option set. </p> <p>Everything seems to run fine when I run it in the browser, I sign up, go to the confirmation url shown in the server log in my <code>rails s</code> console.</p> <p>However, when I try to add the following to my db/se...
0
4,967
OpenCV won't compile due to unresolved externals -- LNK2019
<p>I am brand new to OpenCV and have been trying to set it up in Visual Studios 2010 Ultimate. I have followed the documentation exactly, and linked the files as it said. Here are the additional libraries that I am using:</p> <pre><code>opencv_core231d.lib opencv_imgproc231d.lib opencv_highgui231d.lib opencv_ml231d.li...
0
3,554
Android ListView with OnItemClickListener AND GestureDetector
<p>I have a the following ListActivity:</p> <pre><code>public class ShowDayActivity extends ListActivity implements OnItemClickListener { private GestureDetector gestureDetector; private View.OnTouchListener gestureListener; @Override public void onCreate(Bundle savedInstanceState) { super.onC...
0
1,163
Extract duplicate objects from a List in Java 8
<p>This code removes duplicates from the original list, but I want to extract the duplicates from the original list -> not removing them (this package name is just part of another project):</p> <p>Given:</p> <p>a Person pojo:</p> <pre><code>package at.mavila.learn.kafka.kafkaexercises; import org.apache.commons.lan...
0
2,654
iDangero.us Swiper update function does not work after show/hide of slides
<p>I need some help with Swiper. According to its documentation here: <a href="http://idangero.us/swiper/api/" rel="nofollow noreferrer">http://idangero.us/swiper/api/</a>, I need to call mySwiper.update() after I hide/show slides manually. But it does not always work in my case.</p> <p>I've searched this issue, but o...
0
1,863
How to call javascript function from asp.net button click event
<p>How do I call the showDialog from a asp.net button click event. My page is a contentpage that has a masterpage associated with it. </p> <p>I have tried the following</p> <pre><code>&lt;asp:Button ID="ButtonAdd" runat="server" Text="Add" OnClientClick="showDialog('#addPerson');" /&gt; ...
0
1,377
Failed to install expo package with error: yarnpkg exited with non-zero code: 1 yarnpkg exited with non-zero code: 1
<p>Im currently trying to update my Expo SDK from 36.0.0 to atleast 37.0.0 with the command <code>expo update</code> however im getting the error:</p> <pre><code> × Failed to install expo package with error: yarnpkg exited with non-zero code: 1 yarnpkg exited with non-zero code: 1 Error: yarnpkg exited with non-zero c...
0
1,042
Sending Email with C# - Doesn't work, but no error thrown
<p>as the topic title suggests, I am trying to send email from my C# application and i'm running into a little bit of trouble.</p> <p>I wrote the function below in order to make it easier to send mail from my app, but i believe there must be a problem somewhere and I just can't see it. Perhaps it's the "Can't see the ...
0
2,190
SweetAlert confirmation dialog with asp.net listview delete?
<p>Please help me fathom this.</p> <p>I have created a ListView, displaying data from a SQL database. I have enabled inserting, editing and deleting and it all works.</p> <p><strong>What do I want?</strong></p> <p>I want to use <a href="http://t4t5.github.io/sweetalert/" rel="nofollow"><code>SweetAlert</code></a> to...
0
10,985
Sending a file using TCPClient and NetworkStream in C#
<p>I've been trying to send a file from a client to a server application using the TCPClient class in C#. Before I send the actual data, I send some additional information like the exact file size and the file name, so the server application knows how much there is to read. The funny thing is everything was fine when I...
0
1,366
No artifacts found that match the file pattern "**/target/*.apk"
<p>I got this output from Jenkins console while trying to compile an android project: just notice that I didn't make any change on the main Class this is the jenkins console:</p> <pre><code>[INFO] BUILD SUCCESS [INFO] ------------------------------------------------------------------------ [INFO] Total time: 10.701s ...
0
3,292