title
stringlengths
13
150
body
stringlengths
749
64.2k
label
int64
0
3
token_count
int64
1.02k
28.5k
Simple Xml - Element Declared Twice Error
<p>I have been trying to wrap a set of classes based on Simple XML (Java Serializer) around a RSS Feed. The sample feed is </p> <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt; &lt;rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"&gt; &lt;channel&gt; &lt...
1
1,362
XML schema to java classes using XJC
<p>I am using an oficial XSD schema downloaded from here:</p> <p><a href="http://docs.oasis-open.org/ubl/os-UBL-2.0.zip" rel="nofollow">http://docs.oasis-open.org/ubl/os-UBL-2.0.zip</a></p> <p><em>(Path: xsd/maindoc/UBL-Order-2.0.xsd)</em></p> <p>And when I use the following command for generating java classes with ...
1
5,870
Databinding the color of a RadialGradient brush in silverlight 3
<p>I am trying to databind the color of a RadialGradientBrush in silverlight 3 to a property, but just can't seem to get it to work.</p> <p>For example, in a sample test app all I have is </p> <pre><code>&lt;navigation:Page x:Class="SilverlightNavigator.HomePage" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/p...
1
1,182
RecyclerView notifyItemInserted duplicates previous entry's data
<p>So for some reason whenever I add a new item to my ArrayList and notify the recyclerview that it's been added, it duplicates the previous entry's data. So the view gets created but with data from the last entry not the current data.</p> <p>What's strange is that I save the items using ORM Sugar, and so when I retri...
1
1,193
Objective C Dynamic NSDictionary for UI Table View divided by Section Headers
<p>So this is based off of my question here</p> <p><a href="https://stackoverflow.com/questions/14493725/objective-c-when-to-use-nsdictionary-instead-of-nsarray#comment20201177_14493725">objective c when to use NSDictionary instead of NSArray</a></p> <p>Apologies for the noob questions. I just started learning object...
1
1,136
How to solve "Cannot access androidx.activity.contextaware.ContextAware'"?
<p>I'm building a simple application using LiveData and viewmodels but iam getting the following warning messages in my activity surrodning my activity some of the warning</p> <p><strong>Cannot access 'androidx.activity.contextaware.ContextAware' which is a supertype of 'com.example.movies.presentation.home.MoviesActiv...
1
1,944
how to use multithreading with pika and rabbitmq to perform Requests and Responses RPC Messages
<p>I'm working on a Project with Rabbitmq, I'm using the RPC Pattern, basically I'm receiving or consuming Messages from a Queue, make some Processing and then send a Response back. Im using Pika, my goal is to use a Thread per Task so for every Task i ll make a Thread perticularly for that Task. I also read that the b...
1
1,032
EditText field in AlertDialog not working
<p>I'm new to android, trying to build a simple app involving some simple data input and management. When I follow the guide <a href="http://www.mkyong.com/android/android-prompt-user-input-dialog-example/" rel="nofollow">here</a>, which ask for user input through an alert dialog. Everything works fine except that, aft...
1
1,861
Qemu fails to load when my initrd (cpio) is large ~80 mb
<p>I am new to qemu and am trying to learn kernel programming, I create an initrd which has busy box, but when I add a big tarbal ~80Mb in the cpio qemu fails to load.</p> <p>I wanted to include golang in intrd, so that i could test the new kernel.</p> <p>This is what is happening:</p> <pre><code>mfrw@kp ~/os/busybo...
1
1,175
How to use AES Encryption and Decryption from Scala to Python
<p>I have a code in scala where I have my encryption and decryption code, It works fine and the code is:</p> <pre><code>import java.util.Base64 import javax.crypto.Cipher import javax.crypto.spec.{IvParameterSpec, SecretKeySpec} class Encryption { val key = &quot;enIntVecTest2020&quot; val initVector = &quot;encryption...
1
1,152
Fetch Date from mysql db into dropdown box in PHP
<p>I am developing user edit form where users can edit their info. I wants only that date come in combo box which was user add in table as Date of Birth. In following code I successfully pull Month into Combo box which user added in table. </p> <p>IN FOLLOWING LINE I RUN SELECT QUERY TO FETCH DATA FROM DB INCLUDING Y...
1
1,830
barnyard2 not talking to mysql
<p>I have snort installed with following config</p> <pre><code>#/etc/snort/snort.conf ipvar HOME_NET 172.16.0.0/22 ipvar EXTERNAL_NET !$HOME_NET var RULE_PATH /etc/snort/rules var SO_RULE_PATH /etc/snort/so_rules var PREPROC_RULE_PATH /etc/snort/preproc_rules # If you are using reputation preprocessor set these var W...
1
3,542
float un-ordered list items(ul) next to one another
<p>I wanna place two child un-ordered lists side by side. They are having Class Names L and R</p> <p>Heres the relevant part of the HTML markup.</p> <pre><code>&lt;ul class="SearchResult"&gt; &lt;li class="Pagination"&gt; &lt;a id="lnkPageNumber_top_1" class="ACTIVE" onclick="ShowPage(this.id);" style="cursor: pointe...
1
1,300
Issue with LibPng (incomplete type, forward references) on Snow Leopard
<p>I am using MAC OS Snow Leopard and have tried to compile my program, a1.cpp, but I seem to have trouble with the linking libpng. Is this my issue? If not, what is? And, how can I resolve it? Thanks in advance </p> <pre><code>ew-host-2:a1 gifford$ make g++ -O3 -o a1 a1.cpp -I . -L/opt/local/lib -lpng In file incl...
1
1,038
Uncaught TypeError: Cannot read property 'stopPropagation' of null? - ReactJS
<p>React Component</p> <pre><code>export default class CommentBox extends React.Component { constructor() { super() this.state ={ showComments: false, comments: [ { id: uuid.v4(), author: 'Clu', body: 'Just say no to love!', avatarUrl: 'images/default-avatar.png' }, { id: uuid.v4...
1
1,590
Is there any documentation for xmlseclibs?
<p>I have signed the XML but I don't know how to include KeyValue element in the signature. Having some documentation would save a lot of time.</p> <p>The code below (if you are interested) is what I managed to do with xmlseclibs so far:</p> <pre><code>&lt;?php require('xmlseclibs.php'); </code></pre> <p>XML string...
1
1,032
CheckBoxList AJAX async postback issue
<p>I have 2 CheckBoxList controls - chk1 and chk2. I need to use an async postback to clear the selections of a CheckBoxList if the other one is selected. The following will not clear chk1 if it had selections, and an item chk2 was checked: </p> <pre><code>&lt;asp:ScriptManager ID="sm1" runat="server" &gt;&lt;/asp:Scr...
1
1,047
how to display information in jsp page from controller Spring MVC
<p>I need display data in jsp with controller, i have <code>List</code> with information for print in jsp.</p> <p>When run this code i get error:</p> <blockquote> <p>HTTP Status 500 - Request processing failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [enti...
1
1,218
Firebase Cloud Functions async function
<p>I need some help with async function with firebase and node.js</p> <p>I have this function in my index.js</p> <pre><code>const funcBiglietti = require('./biglietti'); //Region biglietti exports.getBiglietti = functions.https.onRequest((req, res) =&gt; { let userid = req.url.replace('/',''); let uten...
1
1,613
How to convert this PHP array of objects to json?
<p>I have an array of 10 objects that I am trying to convert to JSON. The array is being stored in a variable called <code>$invoices</code>. Below is the ouput of <code>var_dump($invoices)</code> shorted to only the first object.</p> <p>I've tried the following:</p> <pre><code>$invoices = json_encode($invoices, FAL...
1
5,300
"A case label may only be used within a switch"
<p>I am new to coding, and need some help with something. I am sorting out cases from a GTA Mod Menu, and trying to add a new one from an SDK. When I try to add it, and add a case for it so it knows what to do, I get the error in the title. I am coding in C++. </p> <pre><code> int activeLineIndexVeh = 0; void proc...
1
3,127
jQuery Draggable, Droppable, ASP.NET MVC
<p>I've been looking through a lot of tutorials on jQuery draggable/droppable, and trying to apply it to ASP.NET MVC, but I am really confused. </p> <p>Most of the samples I keep finding seem pretty difficult to understand at least where it pertains to where things are wired. I'm basically trying to have a targetable ...
1
4,318
How to use api_gateway_base_path_mapping with terraform?
<p>I'm trying to setup a custom domain name for an api in api gateway on aws. I have setup the api fine using terraform. However when I try to setup the custom domain it fails with the following error.</p> <p>Error applying plan:</p> <p>1 error(s) occurred:</p> <ul> <li><p>module.BillingMetrics.aws_api_gateway_base_...
1
1,666
Sequelize Transactions : ER_LOCK_WAIT_TIMEOUT
<p>i've problem with sequelize transactions with mysql(5.6.17),i've one insert statement and two updates which should all done or none,howerver in the end <code>transactions.create</code> seems rolling back but <code>driver.update</code> executes and doesn't rollback and third update which is <code>trip.update</code> s...
1
1,084
How to use mutually exclusive flags in your shell and add an optional argument flag ( stuck with getopts)
<p>I am using a standard getopts logic. But I want to how I can make the options I offer- mutually exclusive. e.g. </p> <pre><code>shell.sh -a SID &lt;accepted&gt; shell.sh -b SID &lt;accepted&gt; shell.sh -ab SID Message- using ab to...
1
1,959
Spring application build failure
<p>I am not able to figure out what is wrong while running <strong>mvn spring-boot:run</strong> command. <strong>mvn clean install</strong> gives a build success but for <strong>mvn spring-boot:run</strong> i get a build failure. This is my error log in my console when i run <strong>mvn spring-boot:run -X</strong>.</p>...
1
4,405
Having trouble installing OpenSSL Cocoapod
<p>I'm trying to install the OpenSSL Cocoapod in Xcode 9.4 and I get the following:</p> <blockquote> <p>[!] /bin/bash -c set -e VERSION="1.0.2h" SDKVERSION=<code>xcrun --sdk iphoneos --show-sdk-version 2&gt; /dev/null</code> MIN_SDK_VERSION_FLAG="-miphoneos-version-min=7.0"</p> <p>BASEPATH="${PWD}" CURRENT...
1
1,387
Azure Key Vault: Secret not found error
<p>I've created the Key Vault and entered a secret. When I run my services locally using .NET, I am able to retrieve the secret via the key vault. Here's what I did: 1) Created an SSL certificate 2) Used that SSL certificate to create an AD application 3) Created a Service Principle for the above application 4) Gave fu...
1
1,111
How can I run command line FFMPEG and accept multiple pipes (video and audio) without blocking on the first input?
<p>I'm trying to mux h264 and aac created with MediaCodec using FFMPEG, and also use FFMPEG's RTMP support to send to youtube. I've created two pipes, and am writing from java (android) through WriteableByteChannels. I can send to one pipe just fine (accepting null audio) like this:</p> <pre><code>./ffmpeg -f lavfi ...
1
2,027
XML to XSD from the foll. ER diagram
<p>Generate XML for this<a href="https://i.stack.imgur.com/AYOGL.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/AYOGL.png" alt="enter image description here"></a></p> <p>My Xml:</p> <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt; &lt;company&gt; &lt;companyname&gt;ABC company&lt;/comp...
1
1,712
How to solve java.util.concurrent.RejectedExecutionException
<p>I have <code>java.util.concurrent.RejectedExecutionException</code> in this file. As I can see there is no more processes running after <code>onStop</code> called. Not sure where the error comes from. And I'm sure the executor isn't getting more tasks it can handle too.</p> <p>Please help me to figure out where the...
1
2,998
jQuery validation submitHandler not work in $.ajax post form data
<p>I have Send data using <code>$.ajax</code> and validation with jQuery validation plugin like this :</p> <pre><code>&lt;div class="" id="ajax-form-msg1"&gt;&lt;/div&gt; &lt;form id="myform" action="load.php"&gt; &lt;input type="input" name="name" id="name" value="" /&gt; &lt;input type="hidden" name="csrf_to...
1
1,241
Bootstrap fluid grid overlap issues
<p>I have been playing with fluid grids for a while now using Twitter Bootstrap, but even in the latest version I am finding it impossible to create a fluid grid without getting overlapping elements. The correct bootstrap css file is included and all the mark up is correct, so I can only assume that this is to do with ...
1
2,477
jQuery tree traversal - Nested Unordered list elements to JSON
<p>Okay, Now I have an unordered list here:</p> <pre><code>&lt;ul id=&quot;mycustomid&quot;&gt; &lt;li&gt;&lt;a href=&quot;url of Item A&quot; title=&quot;sometitle&quot;&gt;Item A&lt;/a&gt; &lt;ul class=&quot;children&quot;&gt; &lt;li&gt;&lt;a href=&quot;url of Child1 of A&quot; title=&quot;some...
1
2,201
What does java.awt.FontFormatException: bad table, tag=1196445523 indicating?
<p>I have followed <a href="http://www.dynamicreports.org/documentation/fonts" rel="nofollow">this link</a> to add fonts to my jasper report project, but i get this exception when trying to build the report, what does this exception mean any way? i can't find any solution on how to solve it. note that i am trying to a...
1
1,553
How to add rows to a RadGridView in WinForms using c#
<p>I am trying to add a rows to a RadGridView when a use click a button on the form (ie. "Add".)</p> <p>When the form load I add columns to the <code>RadGridView</code> and make all of them all ReadOnly except one .</p> <p>When a user click the "Add" button, I want to add a row to this RadGridView. Basically, a user ...
1
2,223
Swiper pagination not working properly in desktop and mobile
<p>The pagination appears mixed up in the text and i would wish that it appears below the text as a stand alone item to be visibly seen. </p> <p>Another thing is that when in mobile view the hamburger when open displays behind the slider and i want it to display in-front of the slider. </p> <p>Html</p> <pre><code>&l...
1
5,595
html5 - how to do the brightness, contrast, saturation, hue up and down?
<p>How can i apply the brightness up and down instead of grey? I have been trying but i was only able to get it into grey.</p> <p>My goal was to make it brightness up and down.</p> <p>Current code:</p> <p><strong>HTML</strong></p> <pre><code>&lt;h1&gt;Effects Brightness&lt;/h1&gt; &lt;table&gt; &lt;tr&gt; &l...
1
1,430
How to build an array from a jSon object
<p>I am trying to build 2 arrays from JSON arrays.</p> <pre><code>{ &quot;2015-03-24&quot;: { &quot;bind&quot;: 0, &quot;info&quot;: &quot;&quot;, &quot;notes&quot;: &quot;&quot;, &quot;price&quot;: &quot;150&quot;, &quot;promo&quot;: &quot;&quot;, &quot;status&quot;...
1
2,305
NullPointerException in AsyncTask OnPostExecute
<p>I am new to android.I am getting <code>data=null</code> when executing the onPostExecute which is correct.Now I just want to show a dialog that there is no data available.But I am getting the <code>NullPointerException</code>.</p> <pre><code>public class GetPreviousChatNewThread extends AsyncTask&lt;Void,Void,Void&...
1
3,333
Dynamically load a <ul> and sort into columns of 5 rows
<p>Ok so I thought i would put this one out there. I have a list of 25 entries in my db which I would like to display on my page, in list form, in 5 columns with 5 rows. </p> <p>I prepared a solution, albeit not such an elegant one.</p> <pre><code>&lt;?php $query = "SELECT * FROM city ORD...
1
3,113
Pandas: If statement with multiple conditions on pandas dataframe
<p>I am trying to compare rows within a group and if a condition is met within the rows, I want to either keep the complete group, keep the most recent row, or keep the first row. </p> <p>The dataframe will only have 2 items per group. If the first row of the group has the LastFour digits of '2290' OR if it start with...
1
1,350
Do i need to install Nvidia's SDK(CUDA) for OpenCL to detect Nvidia GPU?
<p>I have a code written in C (using opencl specs) to list all the available devices. My PC has an AMD FirePro as well as Nvidia's Tesla graphics card installed. I first installed <a href="http://developer.amd.com/tools-and-sdks/opencl-zone/amd-accelerated-parallel-processing-app-sdk/#" rel="nofollow" title="MD-APP-SDK...
1
1,535
How can I get this code for a GUI Countdown Timer to work properly?
<p>I'm trying to custom write a program for a GUI Countdown Timer (for a personal project), based on some other codes that I've found on this site. </p> <p>The idea is that a user will be able to select the total time (variable <code>"remaining"</code>) in mins from a combo box, press <code>"Start"</code>, and the cou...
1
1,835
Output relational data in Yii2
<p>I trying to output related data in Yii2. My output code looks like this(like i do that in Yii 1):</p> <pre><code>foreach ($model-&gt;comments as $key =&gt; $comment) { echo $comment-&gt;title; } </code></pre> <p>But i get the error <code>tying to get property on a non-object</code>, var_dump of <code>$model-&g...
1
1,649
React-Bootstrap - Pagination not showing
<p>I'm using the react-bootstrap to paginate the result. It is rendering the div #content, but it is not showing nothing more. It is showing only a empty div with width, height and background color as I configured on the CSS file. I would like to display the pagination showing one house per page. The result of data fro...
1
1,126
Applying AutoNumeric.js to an entire class
<p>I would love if someone could help me with what i thought would be a simple application of AutoNumeric.js. I have the below code:</p> <p>Fiddle link: <a href="https://jsfiddle.net/yu1s9nrv/8/" rel="nofollow noreferrer">https://jsfiddle.net/yu1s9nrv/8/</a> </p> <pre><code>&lt;table id="shareInput" class="table_st...
1
1,152
Convert Microsoft Word equations to Latex
<p>I have a docx file containing a few equations in different pages. With Python and lxml, I was successful in extracting the content. I now need to convert the equations in Word to Latex. Some of the equations are shown as:</p> <pre><code>- eq \\f (sinx,\\r(1 - sin 2 x)) </code></pre> <p>Is there any Python library ...
1
1,626
Need a fixed navbar and landing page VH that incorporates navbar height
<p>I am working on my first portfolio and running into some trouble doing two things. </p> <ol> <li><p>Creating a fixed navbar. When I use position: fixed; it clears my float on the right "Contact Me", and everything collapses. I need this to stay spaced how it is in my example. Searched for quite some hours and I can...
1
1,252
PyQT5 and Filtering a Table using multiple columns
<p>I am trying to make a <code>PyQt5</code> GUI to show a Pandas dataframe in the form of a table and provide column filtering options, similar to the Microsoft Excel filters. So far I managed to adopt a similar <a href="https://stackoverflow.com/questions/14068823/how-to-create-filters-for-qtableview-in-pyqt">SO answe...
1
3,641
http.client.RemoteDisconnected: Remote end closed connection without response error using driver.quit() of Selenium Python
<p>I'm using:</p> <ul> <li>Python 3.8</li> <li>Selenium 3.141.0</li> <li>Windows 10 (behind a proxy)</li> <li>Chrome:84.0.4147.105</li> <li>Chromedriver:84.0.4147.30</li> <li>Mac 10.15.6 (does not has a proxy)</li> </ul> <p>Here is my code:</p> <pre><code>from selenium import webdriver driver = webdriver.Chrome(&quot;...
1
1,290
Unity Container Registration with Names are not working while without name works fine
<p>I know this sounds stupid. I'll provide some pieces of code and will try to explain as much.</p> <h3>Implementation #1 - Without name</h3> <pre><code> Container = new UnityContainer(); Container.RegisterType&lt;IFirstInterface, FirstImplementation&gt;(); Container.RegisterType&lt;IDifferentAssemblyInte...
1
2,314
PayPal REST Api error: response 401 PPConnectionException
<p>I'm using the PHP PayPal REST API sandbox and getting errors when I do my <code>$payment-&gt;create( $apiContext );</code></p> <p>My Error log reads as:</p> <pre><code> PHP Fatal error: Uncaught exception 'PayPal\\Exception\\PPConnectionException' with message 'Got Http response code 401 when accessing https...
1
1,070
How to upload file using Cakephp 3.0?
<p>I am trying to create a file upload on cakephp, I haven't been able to find any decent tutorials for cakephp 3.0 that go in detail, and I don't understand how to install plugins. </p> <p>I have this in my add section</p> <pre><code>echo $this-&gt;Form-&gt;create('filename', array('action' =&gt; 'upload', 'type' =&...
1
1,461
Authentication fails silently in Symfony2
<p>I'm having trouble getting authentication to work but it only appears to happen in very specific circumstances. Authentication is done via a third party API so I've written my own user provider class and inside that class is some code that syncs data between the API and Symfony, as part of that syncing process it de...
1
1,262
Accepting certificates in Java
<p>I'm having problems interacting with an HTTPS site via Java. My program uses one URL with an untrusted certificate each time the program runs. This program has to run on more than one system. Currently, I have the following:</p> <pre><code>public class A{ HostnameVerifier hv = new HostnameVerifier(){ pu...
1
1,064
External HTTP endpoint in Azure worker role possible?
<p>I am trying to host an external facing WCF service on Azure within a worker role. </p> <p>I have a solution working very nice locally, but when I try to publish it to Azure it goes into an initializing/busy/stopped loop. </p> <p>The information I've found around the internet says different things:</p> <p><a href=...
1
1,365
Installation of npm fails with npm WARN deprecated
<p>Developing .Net 5 and Angular Primang 11 application on Windows 10 and facing difficulties with npm install. Tried many ways but not worked. Like npm cache clean --force, uninstall and install cli and packages</p> <p>Following is the CLI versions</p> <pre><code> Package Version --------------...
1
2,044
Dispatch multiple async actions with Redux Toolkit
<p>I'm building an app with Expo/React Native and using Redux via Redux Toolkit to handle the store/state of the app using slices.</p> <p>I've been using this setup for a while without complications because my functions are simple (like user/auth, cart, category and products reducers).</p> <p>But for this app I need to...
1
1,068
RSA key pairs generating using bouncy castle. Making code runnable from java program
<p>I am using a Java code that I found that generates a public and a private key via the bouncy castle library. My problem is implementing it into code runnable by my android device. My code does not display the RSA keys like I programmed it to and through most of my troubleshooting I am still unable to make my code ...
1
1,999
Using Stanford CoreNLP - Java heap space
<p>I am trying to use the coreference module of the Stanford CoreNLP pipeline, but I end up getting an OutOfMemory error in Java. I already increased the heap size (via Run->Run Configurations->VM Arguments in Eclipse) and set them to -Xmx3g -Xms1g. I even tried -Xmx12g -Xms4g, but that didn't help either. I'm using Ec...
1
1,306
Find peak (regions) in 2D data
<p>I am looking to find <strong>peak regions</strong> in 2D data (if you will, grayscale images or 2D landscapes, created through a Hough transform). By <em>peak region</em> I mean a <strong>locally maximal peak</strong>, yet <strong><em>NOT a single point</em></strong> but a part of the surrounding <strong><em>contrib...
1
2,060
CSS3 animate only on hover on and off
<p>I have an animation of a box, where it's width increases on hover:</p> <p>JSFiddle: <a href="https://jsfiddle.net/hbpncv34/" rel="nofollow noreferrer">https://jsfiddle.net/hbpncv34/</a></p> <p>HTML:</p> <pre><code>&lt;div&gt;&lt;/div&gt; </code></pre> <p>CSS:</p> <pre><code>div { background-color: red; heigh...
1
1,080
sqlite foreach in select statement?
<p>I have got a problem with an SQLite select.</p> <p>There are the tables "kategorie","lv","majetok","parcela".</p> <p>Each person has information about what he owns in the table "majetok". The sample record:</p> <pre><code>id idpodfk idlvfk podiel podield cislozlv datum1 datum2 1 31 1 ...
1
1,187
dynamically create object tags in javascript
<p>I am wondering why the following code does not create two of my activex object. When the object tag is directly in the HTML it works fine, but for the life of me I can't dynamically create the object item. Is this a security issue or something? I am finding a difficult time finding documentation on this problem. </...
1
1,269
Rendering HTML table inside <div> using javascript function
<p>I'm trying to get my javascript function that creates a html table in my content div on my website. The problem is, that it is not displayed inside the div but under it. How can I put it inside?</p> <pre><code>&lt;div id="tab-container" class='tab-container'&gt; &lt;ul class='etabs'&gt; &lt;li class='ta...
1
1,060
Upgrading React-Router and replacing hashHistory with browserHistory
<p>I have a bootstrap+react theme that was using react-router 1.x and hashHistory and I wanted to remove the hash so followed this <a href="https://stackoverflow.com/questions/25086832/how-to-stop-in-browser-with-react-router">advice</a>. Initially I tried to do this while having the 1.x version and I was unable to do...
1
1,055
want to show print preview
<p>I want to show a print preview, so I chose to use <a href="https://github.com/etimbo/jquery-print-preview-plugin" rel="nofollow noreferrer">this plugin</a>.</p> <p>I have added it to my code:</p> <pre><code>&lt;%@ Page language="c#" AutoEventWireup="false" Inherits="System.Web.UI.Page" %&gt; &lt;%@ Register TagPre...
1
5,549
Reduce the size of main.js Angular 11
<p>I encouter a problem with my app that has a main.js with a size of 8.34 MB by defalt (ng build). I tested a lot ! of things to reduce it but i just don't arrive to..</p> <p>I really need that the size be less than 2 mb.. ( and i think it's huge too..) Thanks for help ! <a href="https://i.stack.imgur.com/Ja1c7.png" r...
1
3,384
BroadcastReceiver for Incoming calls in android doesn't work
<p>I'm trying to develop android app for that can record phone calls. So, in the initial step, I've to see if BroadcastReceiver is getting fired or not. I've added permissions, receiver tag in AndroidManifest file. I'm testing on OnePlus X. Activity is gets started but BroadcastReceiver doesn't get fired when I get cal...
1
1,165
How do I json_decode string with special chars (" \\ " )
<p>I have a problem with encoding and decoding json data. In js I send query with data type 'json', it looks like this:</p> <pre><code>{\"front\":{\"0\":{\"type\":\"text\",\"width\":\"55px\",\"height\":\"27px\",\"top\":\"151px\",\"left\":\"86px\",\"zIndex\":\"1\",\"svg\":\"&lt;svg width=\\\"54.9375\\\" height=\\\"27.0...
1
3,089
undefined method `alias_method_chain' in active record 3.2.18 without rails migration
<p>This is my Rakefile</p> <pre><code>require 'bundler' Bundler.setup require 'active_record' require 'sqlite3' require 'yaml' require 'logger' task :migrate =&gt; :environment do ActiveRecord::Migrator.migrate('db/migrate', ENV["VERSION"] ? ENV["VERSION"].to_i : nil ) end task :environment do ActiveRecord::Bas...
1
1,130
Heroku on Rails - Invalid DATABASE_URL
<p>EDIT: The general advice is to use <strong>CEDAR</strong> stack.</p> <p>Pretty new to RoR, Gems, Heroku and Git. Following tutorial: <a href="http://ruby.railstutorial.org/book/ruby-on-rails-tutorial" rel="nofollow noreferrer">http://ruby.railstutorial.org/book/ruby-on-rails-tutorial</a></p> <p>Works smoothly on l...
1
6,533
pathlib: cannot import name 'Sequence' from 'collections'
<p>It has been a few days since I rebuilt my project but when I was testing some things this morning I wanted to update my Werkzeug package due to an issue I was having with its Multidict class, I rebuilt and started getting this error:</p> <pre><code>#17 73.14 ERROR: Command errored out with exit status 1: #17 73....
1
2,473
Angular Material 6 - mat-table Data from service
<p>I want integrate Data from a service in an angular material table. </p> <hr> <p>All the examples I could see refer to hard data in the ts file but do not refer to a service.</p> <p>My service allows to recover all of my patients, functional with bootstrap but when I want to integrate it with the angular material,...
1
1,872
How to compare one value in an arraylist of objects to output largest value?
<p>I need to create a method getLargestObject() that finds the object in the array list with the largest area that returns its position and outputs the contents of the object. The current loop I am using doesn't work and I'm not sure how to compare the values of the areas in an arraylist so I can get the largest one.</...
1
2,048
Vuetify - bottom align text field
<p>I'm trying to align the bottom of my <code>search</code> text field with the bottom of my floating action button. <a href="https://codepen.io/Trimakas/pen/rRqOdj?editors=1010" rel="nofollow noreferrer">I've created a code pen which you can see here:</a></p> <p>I've tried everything I know including: setting a negat...
1
2,693
Can not open session for facebook
<p>I had make FBLogin demo using <a href="https://developers.facebook.com/docs/getting-started/facebook-sdk-for-android/3.0/" rel="nofollow">this tutotial</a></p> <p>Code is here //MainActivity.java</p> <pre><code>public class MainActivity extends Activity { @Override protected void onCreate(Bundle savedInstanceStat...
1
1,612
Gradle: Call ant from a custom task
<p>I am new to gradle and trying to migrate our currently Maven based automated JAX-WS client building project, as gradle seems to provide an easier way for us to configure the builds for new projects.</p> <p>I followed this tutorial <a href="http://jaxenter.com/tutorial-gradle-soap-features-revealed-42757-2.html" rel...
1
1,796
sendto: Network unreachable
<p>I have two machines I'm testing my code on, one works fine, the other I'm having some problems and I don't know why it is.</p> <p>I'm using an object (C++) for the networking part of my project. On the server side, I do this: (error checking removed for clarity)</p> <pre><code> res = getaddrinfo(NULL, port, &...
1
1,643
is there difference between dependencies and dependencies in plugin tags?
<p>I have a question.</p> <p>In pom.xml, dependency is included in two places. one place can be in <code>&lt;project&gt;</code> tag and the other place can be in <code>&lt;plugin&gt;</code> tag.</p> <p>I think the dependencies in tags is just related with the plugin? is it correct?</p> <p>thanks in advance :)</p> ...
1
1,900
Javascript function from external file not working
<p>I'm new to programming and currently learning javascript. I'm trying to test what I've learned so far using a payroll calculator, but my code is not working. I created a function that will be called when the user clicks a button; if I add the function inside the same HTML file, it works fine. When the function is i...
1
2,183
ASP.NET MVC Form - What is the proper way to return to a view with the previous form values?
<p>I had an assignment to implement a WCF Service and call it from a client of any type. I already have some experience with console, winform, WPF apps, so I wanted to use this as a chance to learn ASP.NET MVC. </p> <p>I know that I'm not properly implementing the "M" part of it yet, but I'm wondering what the correct...
1
1,679
e2e testing in angularjs for page navigation
<p>I am writing e2e tests for my web app and stuck at the very beginning. I would appreciate any help to kick start my testing experience.</p> <p>I am completely new to angularjs. So please bear with me.</p> <p>I want to write a test that will check if we are on the landing page of the app. I am using jasmine and kar...
1
1,187
Why can't python find my file?
<p>So someone wrote a joke trapifier script (as in, 'Trap music') and I can't get it to work.</p> <pre><code>usage: trapifier.py [-h] [--samples [SAMPLES]] inputfile outputfile </code></pre> <p>Yet, despite the folder looking like this</p> <pre><code>ls -l total 14288 -rwxrwxrwx 1 ________ ________ 7295612 Mar ...
1
1,053
Error when trying to run Polymer Starter Kit
<p>I'm trying to run the <a href="https://github.com/PolymerElements/polymer-starter-kit#getting-started" rel="nofollow">Polymer starter kit</a> but when I try to run 'gulp serve' (without the quotation) it opens the page on the browser, but it's not showing anything. </p> <p>When I inspect the JS console, I'm getting...
1
1,500
Detecting and Removing Vertical and Horizontal Lines in OpenCV
<p>I'm trying to remove the square boxes(vertical and horizontal lines) from a filled out form using opencv (Python). I am trying to detect the vertical and horizontal lines through morphological operations of OpenCV. <a href="https://i.stack.imgur.com/SkY8h.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgu...
1
1,361
Using Hazelcast on Android gives random errors
<p>I'm trying to use Hazelcast on Android. I can include the dependency and the predefined "Hello World" will show up nicely without error. As soon as I put this code into my Activity (i.e. starting to use Hazelcast) it gives me an error:</p> <p>Code:</p> <pre><code>protected void onCreate(Bundle savedInstanceState) ...
1
3,841
Adding a module in WildFly 8.2.0 Final release
<p>I am new in JBoss and I try to add a jdbc driver for derby as a module in WidlFly 8.2.0.</p> <p>What I did: </p> <ul> <li>I added the org/apache/derby/main folder in the JBOSS_HOME/modules/system/layers/base directory</li> <li>In this new folder, I added derbyclient.jar (from jdk 1.8.0_40, it contains the driver)...
1
1,845
Page accessible only if logged in
<p>Hello Stackoverflowers</p> <p>Im new to PHP and im trying to make a members area for my testpage. I have made a successful register and login page, but now when I changed the code so if I log in correctly it redirects my to a page, and if I log in with wrong information it send me to a different page. However the m...
1
2,155
Execution failed for task ':app:artifactoryPublish'
<p>I followed this guide on how to set up a private maven repo: (<a href="https://inthecheesefactory.com/blog/how-to-setup-private-maven-repository/en" rel="nofollow noreferrer">https://inthecheesefactory.com/blog/how-to-setup-private-maven-repository/en</a>).</p> <p>But when I run the following command:</p> <pre><c...
1
4,994
Why not getting Android Firebase FCM registration token?
<p>I'm trying to send a push notification to my app from my app server but i'm not getting the FCM registration token through <code>FirebaseInstanceIdService</code>. Here i'm using Genymotion personal edition emulator.is that problem with my emulators API?</p> <p>here is FirebaseInstanceIdService</p> <pre><code>publi...
1
1,081
Refresh v-model
<p>I'm developing question paper application. <img src="https://i.stack.imgur.com/wPpKx.png" alt="enter image description here"></p> <p>Once I type a question and hit the "+" button, the question goes to the question paper array and counter increased by one. The problem is after I hit the "+" button, then also the que...
1
1,349
Pandas - Add mean, max, min as columns in dataframe
<p>I have a <code>df =</code></p> <pre><code> statistics s_values year 1999 cigarette use 100 1999 cellphone use 310 1999 internet use 101 1999 alcohol use 100 1999 soda use 215 2000 cigarette use 315 2000 cellphone use 317 2000 internet use 325 ...
1
1,046
How to fix in Unity "A failure occurred while executing com.android.build.gradle.internal.tasks.workers$actionfacade"
<p>I am working with adMob mediation in Unity. I have integrated inMobi and Unity ads network. After integrating them I am getting the following error &quot;A failure occurred while executing com.android.build.gradle.internal.tasks.workers$actionfacade&quot;. Without integrating inMobi and Unity ads the build is succes...
1
8,032
How to convert an XML elements value to an int using linq- c#
<p>I'm trying to get the value out of my XML element and convert it to an integer using linq commands so I can do some mathematical equations using it.</p> <p>This is how I've tried it so far:</p> <pre><code>private void buttonTab4Mod1Calculate_Click(object sender, EventArgs e) { var document = XD...
1
2,403
How to stop R from leaving zombie processes behind
<p>Here is a little reproducible example:</p> <pre><code>library(doMC) library(doParallel) registerDoMC(4) timing &lt;- system.time( fitall &lt;- foreach(i=1:1000, .combine = "c") %dopar% { print(i) }) </code></pre> <p>I start up <code>R</code> and look at the process table:</p> <pre>...
1
1,686
ValueError: Invalid \escape while running query
<p>I am trying to query DBpedia using SPARQLWrapper in Python (v3.3). This is my query:</p> <pre class="lang-none prettyprint-override"><code>PREFIX rdfs: &lt;http://www.w3.org/2000/01/rdf-schema#&gt; SELECT ?slot WHERE { &lt;http://dbpedia.org/resource/Week&gt; &lt;http://www.w3.org/2002/07/owl#sameAs&gt; ?slot } <...
1
1,129
Storing user input into linked list - C
<p>I have an assignment for C beginner class: I'm supposed to create a structure that has one variable (named value) and one pointer to the list. I'm supposed to prompt the user for 5 values as input and store them in the linked list. Then print out the list. I can't figure out how to store input into the list. I did m...
1
1,037
Jenkins Pipeline does not run with docker-compose because it cant connect to docker daemon
<p>I am trying to build an docker image and start the container with docker-compose inside a Jenkins pipeline. </p> <p>I have a custom docker image for my Jenkins where I use the Jenkins out of the box image and install Docker CE and docker compose.</p> <p>The Dockerfile:</p> <pre><code>FROM jenkins/jenkins:2.159 U...
1
1,588