title
stringlengths
13
150
body
stringlengths
749
64.2k
label
int64
0
3
token_count
int64
1.02k
28.5k
mvc4 actionlink passing variable
<p>So I got this webproject i'm working on, and in 4/5 views Im using </p> <pre><code> @Html.ActionLink("Back to List", "Index", new { id=Model.ClientID}) </code></pre> <p>All of the views return me to my list exept my "Create New View" This will also be the only view not to load, giving me the exeption of "System.Nu...
2
1,195
Dispaly image through servlet on jsp
<p>From the Servlet I am generating JPEG image and writing in the outputstream of that servlet.By jsp i am calling this Servlet URL and displaying the image as similar to user profile with photo. Here the problem is,When first time login it will generate the image dynamically and display but next time if I login with o...
2
2,575
Why did I get this exception when running JPA?
<p>This is just a normal JPA console built by Maven. I got a very annoying exception </p> <pre><code>java.lang.ClassNotFoundException: javax.persistence.Persistence </code></pre> <p>I found some solutions about that such problem and they suggest adding <strong><em>javaee-api</em></strong> lib to pom.xml. But the erro...
2
1,219
Generating Keypair using bouncy castle in j2me
<p>I have Java code for generating keypair as follows:</p> <pre><code>KeyPairGenerator keyGen = KeyPairGenerator.getInstance("RSA"); keyGen.initialize(1024); KeyPair key = keyGen.generateKeyPair(); PrivateKey priv = key.getPrivate(); PublicKey pub = key.getPublic(); </code></pre> <p>Now I want to do same in j2me usin...
2
2,241
Transfer data from a S3 bucket to a GCP bucket using temporary credentials
<p>I would like to download a public dataset from the <a href="https://nda.nih.gov/" rel="nofollow noreferrer">NIMH Data Archive</a>. After creating an account on their website and accepting their Data Usage Agreement, I can download a CSV file which contains the path to all the files in the dataset I am interested in....
2
2,693
Create a conditional HTML container in JSP tag
<p>I'm creating a JSP tag file for responsive images and need to conditionally wrap the element in a parent container if the attribute is specified as true.</p> <p>To do so I've just written a <code>c:choose &gt; c:when</code> statement above and below the image block but am wondering, is there a better way of doing t...
2
2,859
Stopping a Canvas Animation setInterval
<p>I have the following set up working very nicely... it's just that I can't stop it!</p> <p>POST ANSWER EDIT: The issue was related to my organization of the draw functions, not related to the webWorker or the ajax call</p> <p>The process:</p> <ol> <li>1 User clicks on button which calls a web worker </li> <li>Web...
2
2,385
Bandwidth throttling using Twisted
<p>I'm trying to set speed limits on downloading/uploading files and found that twisted provides <a href="http://twistedmatrix.com/documents/current/api/twisted.protocols.policies.ThrottlingFactory.html">twisted.protocols.policies.ThrottlingFactory</a> to handle this job, but I can't get it right. I set <code>readLimit...
2
1,480
Update (PUT) a JSON object with ajax - PrestaShop
<p>I am trying to update a JSON object (e.g: customer). But, I have the following error:</p> <blockquote> <p>"NetworkError: 405 Method Not Allowed - <a href="http://prestashop/api/" rel="nofollow">http://prestashop/api/</a>..."</p> </blockquote> <p>This is my code (<em>index.js</em>):</p> <pre><code>var testWebSer...
2
1,129
debugger (Intellij IDEA) failing when hits breakpoint (cucumber, ruby, rspec, capybara)
<p>While trying to debug a cucumber scenario in IntelliJ(11.1.5), it is failing with the following error when it hits the first breakpoint. It runs successfully, if I remove all the breakpoints.</p> <pre><code>gem list capybara (2.0.2, 1.1.4) cucumber (1.2.3, 1.2.1) rspec (2.13.0) ruby-debug-base (0.10.3.4 java) ruby-...
2
1,035
java.lang.IndexOutOfBoundsException: Invalid index 2, size is 2 while remove footerview at the end of listview in Android?
<p>I'm implementing pagination with listview. I trying to add footer view while loading my some data and remove footer view at the end of listview when reaches on the last page on setOnScrollListener at the end of listview.But getting crash reached on the last page getting issue of IndexOutOfBoundsException: Invalid in...
2
5,053
How to fetch the value from the Json based on Named key in kusto query(KQL) language
<p>I have a json field in log analytics workspace and structure looks something like below</p> <pre><code>{ &quot;AdditionalDetails&quot;: [ { &quot;value&quot;: &quot;SomeValue&quot;, &quot;key&quot;: &quot;SomeKey&quot; }, { &quot;value&quot;: &quot;SomeValue&quot;, &quot;k...
2
1,316
Logout Alert Dialog (confirmation message) in Flutter with Firebase
<p>How can I show the confirmation message to ask the user if they want to logout in to the flutter? When the user clicks &quot;Yes&quot;, the page will navigate to the login page and the user status will be not logged in. When the user clicks &quot;No&quot;, they will stay on the home page. The button should be a rou...
2
2,726
VS 2008, ASP.NET: Generate Local Resources
<p>I've build an simple control called Menu:</p> <pre><code>namespace MyControls { public class MenuItem { public MenuItem() { Visible = true; } [Localizable(true)] public string Text { get; set; } [Localizable(false)] public string Link { ge...
2
1,530
How to request JSON with body and header in Alamofire?
<p>I had tried with the following code for the request but result with 400 error. API consists of header and body. Header had two fields that are "Authorization" and "Content-Type". Body format is added to params below.</p> <p><a href="https://i.stack.imgur.com/WFTBv.png" rel="nofollow noreferrer"><img src="https://i....
2
1,522
How to get original favorite count, and each user's follower count, from Twitter streaming API in Python
<p>I'm attempting to extract individual pieces of data from the public stream of tweets for two tracked keywords, using the Python package <a href="https://github.com/geduldig/TwitterAPI/blob/master/README.rst" rel="nofollow">TwitterAPI</a>. </p> <p>I would ideally like to get the original favorite count for the <code...
2
1,894
JBoss 5.1.0 EAP. Randomly Occuring a java.lang.NoClassDefFoundError
<p>In our EJB 3.0 - application, we have an randomly occuring java.lang.NoClassDefFoundError happening.</p> <p>It just happens localy in the IDE.</p> <h2>Setup:</h2> <pre><code>OS: Windows 7 32 Bit Java JDK: 1.6.0_24 (32 Bit)β€Ž IDE: IntelliJ 11.1β€Ž App-Server: JBoss 5.1.0 EAP EAR-Building with β€žmaven-ear-pluginβ€œβ€Ž WAR-...
2
2,012
Python Pandas DataFrame: filter by a Timestamp column with a list of string timestamps
<p>Example setup:</p> <pre><code>import pandas as pd df = pd.DataFrame( data={'ts': [ '2008-11-05 07:45:23.100', '2008-11-17 06:53:25.150', '2008-12-02 07:36:18.643', '2008-12-15 07:36:24.837', '2009-01-06 07:03:47.387', ...
2
1,604
Typescript with react-hot-loader errors with cannot find name __REACT_HOT_LOADER__
<p>I'm new to typescript and I'm attempting to configure a small app with webpack 3, react-hot-loader, and awesome-typescript-loader. So far I'm receiving two errors that I can't seem to figure out.</p> <p>The first error is: <code>TS2304: Cannot find name '__REACT_HOT_LOADER__'</code></p> <p>The second error is <cod...
2
1,318
Tiny Pe file format program error when running on Windows 7 64-bit
<p>I'm trying to run the following assembly code (assembled with Nasm) in Windows 7 Ultimate 64-bit.</p> <pre><code>; tiny.asm BITS 32 ; ; MZ header ; ; The only two fields that matter are e_magic and e_lfanew mzhdr: dw "MZ" ; e_magic dw 0 ; e_cblp UNUSED d...
2
2,783
Instagram Basic Display API - This authorization code has been used
<p>I need to allow users of my platform to link their Instagram account through the Instagram Basic Display API. When I make the call to get the code to exchange for the Access Token, it is always the same and results in an error in the next step.</p> <p>These are the steps I'm performing, following <a href="https://de...
2
1,054
Spring boot zuul wrong redirection of request
<p>I am developing an API Gateway to redirect a request to some microservice. This is part of the application.properties file:</p> <pre><code># _____ _____.__ # / _ \ ______ ______ ____ ____ _____/ ____\__| ____ # / /_\ \\____ \\____ \ _/ ___\/ _ \ / \ _...
2
1,086
Extending XHTML
<p>I'm playing around with writing a jQuery plugin that uses an attribute to define form validation behavior (yes, I'm aware there's already a validation plugin; this is as much a learning exercise as something I'll be using). Ideally, I'd like to have something like this:</p> <p>Example 1 - input:</p> <pre><code>&lt...
2
1,696
TypeScript Angular function on service is not defined or undefined
<p>Here is my service.</p> <pre><code>export module cropyear_services { //export interface ICropYearService { // getFieldYearData(): any; //} export class CropYearService { static $inject: string[] = ["$q", "$filter", "$httpBackend", "$http"]; constructor(private _q: ng.IQService, private _http: ng.IH...
2
1,046
nth-of-type not working as needed
<p>I am doing responsive website. My HTML code is as given below:</p> <pre><code>&lt;h2&gt;Title&lt;/h2&gt; &lt;div class="column-5"&gt;...&lt;/div&gt; &lt;div class="column-5"&gt;...&lt;/div&gt; &lt;div class="column-5"&gt;...&lt;/div&gt; &lt;div class="column-5"&gt;...&lt;/div&gt; &lt;div class="column-5"&gt;...&lt;...
2
1,641
Pandas HDFStore weird behaviour
<p>I'm very confused by this, I have two scripts running from the same Notebook server. I have a HDFStore in the same folder, however for one script it looks empty and for the other it doesn't. Here is the same code run in both notebooks:</p> <pre><code>import os os.getcwd() </code></pre> <p>Return NB 1: 'E:\DoingDa...
2
1,029
Simple inserts and updates to MongoDB run very slowly under load
<p>I'm using Mongo 2.6.9 with a cluster of 2 shards, each shard has 3 replicas, one of which is hidden. It's a 5 machines deployment running on RedHat where 4 machines contain a single replica of 1 shard and the 5th machine contains the hidden replicas of both shards. There is a load running of around 250 inserts per s...
2
1,711
pytest with workers ( -n 1 for example ) using xdist when test contains also multiprocessing
<p>I'm using</p> <ul> <li>Python 3.6</li> <li>Pytest 6.1.1</li> <li>Pytest xdist 2.1.0</li> <li>Pycharm 2018.3.7</li> </ul> <p>Using HTML plugin for report as well with customization for the report</p> <p>I'm running automation test via pycharm &gt;pytest with arguments as below: <code>--html=../../reports/report.html ...
2
3,480
JavaFX exception loading FXML file
<p>I have been working on a desktop application, where I need to use JavaFX. I have created various FXML files in a JavaFX project on eclipse built with Scene Builder. I have no issues loading any FXML file except for this one pesky file (FXMLImgList.fxml).</p> <p>The main idea is that when a button is pressed, a new ...
2
7,547
Manipulating big array in a more memory-efficient way
<p>I'm currently writing an API for an app that interfaces with a large database and need to retrieve large amounts of data from it, then spit it out as JSON.</p> <p>I'm using CodeIgniter (CI) as a database interface but I don't think it's relevant here. I'm running into memory limits and I have unfortunately no way o...
2
1,137
Cannot maintain persistent XMPP connection from sticky service android
<p><strong>Environment</strong>: For uninterrupted delivery of messages from one-to-one/one-to-many devices, I have XMPPService running in the background as STICKY service. To receive messages, I have PacketListener which fires whenever a packet arrives at the device. I am using asmack library for client side implement...
2
2,394
ReactJS not displaying the HTML in when clicked on View Page Sorce
<p>I am new to ReactJS, and I want to build a ReactJS website and futher implement SEO to it. While practicing whenever I click to "View Page Source" option, it does not the display whole html of page, instead it only displays content of <code>index.html</code>. </p> <p>I tried implementing it with server-side renderi...
2
1,209
NullPointerException at this.getReadableDatabase();
<p>Heyhey :)</p> <p>I looked at several Questions to the same topic, but I found no solution to my problem.</p> <p>A NullPointerException at <code>this.getReadableDatabase();</code> appears...</p> <p>Here's my Code:</p> <pre><code>public class DatabaseHandler extends SQLiteOpenHelper { public static final int DATA...
2
1,657
Call multiple AsyncTask at a time not working in Android
<p>I want to call multiple <code>AsynTask</code>. It was not working so I google for some help. I found that If I use <code>AsyncTask.THREAD_POOL_EXECUTOR</code> then it will work.</p> <p>But It is not working.</p> <p>I am calling it as below:</p> <pre><code>new GetCategory().execute(); new GetArea().executeOnExecut...
2
1,190
How to display wrong username password on login form ?
<p>I am developing the MVC application. I have designed the login form. </p> <p>when user enters the proper username and password then, it redirect to next page, but when user put wrong username or password I want to display the message on the login form, how to do it. </p> <p>This is the code of method in controller...
2
1,869
How can we make dependent select boxes in select2 with angular?
<p>I am using select2 with angularjs for select boxes in my application. There is one parent select box where user can select multiple groups and there are many other child select boxes with the same group selection feature.</p> <blockquote> <p>My problem is how to restrict child group search options according to ...
2
1,272
smack 4.2 incoming messages
<p>I can send masseges now and my next step is to receive the incoming messages. i was searching for much methods . Most of them are depracted or not available in my version of smack. im using smack 4.2.0. maybe someone could tell me how and where i could implement a listener who catches all incoming messages ? here m...
2
1,791
How to use python to check for the latest git branch?
<p>My goal: My project should periodically check in with my GitHub repo to see if it is currently up to date with the master branch.</p> <p>What I've tried to do is to use this bash code (<a href="https://stackoverflow.com/a/3278427/10653826">https://stackoverflow.com/a/3278427/10653826</a>) and implement into Python,...
2
1,512
Configuring PHPMailer on Siteground shared hosting plan
<p>I am stuck trying to make PHPMailer to work with my website hosted on Siteground.</p> <p>I installed it by composer via PuTTY, everything looking fine so far:</p> <p><a href="https://i.stack.imgur.com/EDHKd.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/EDHKd.png" alt="PuTTY console screenshot" /...
2
1,104
Error with plot function object not found
<p>When I try and generate a plot with the below I receive an Object not found for the fertility rate. I've used str and names to make sure I've got the name correct. there is a file (<a href="https://sds-platform-private.s3-us-east-2.amazonaws.com/uploads/P2-Section5-Homework-Data.csv" rel="nofollow noreferrer">"https...
2
4,495
Bootstrap modal alignment of table
<p>I have a modal window which has 3 tabs. One one tab i tried to align the button and table on line with other controls, but it dint work. </p> <p><strong>HTML:</strong></p> <pre><code>&lt;tab ng-controller="elasticController" heading="Data Source"&gt; &lt;div class="row"&gt; &lt;div...
2
3,221
Mschart - How to change width between bars
<p>I know how to change the width of the bars using PointWidth which will relatively increase the space between the bars, but I want to keep the same width of the bar while increasing the space between the bars.</p> <pre><code>&lt;asp:Chart ID="chart" runat="server" Height="300px" Width="850px" BorderDashS...
2
1,125
gulp-babel plugin doesn't work
<p>I try to use babel with gulp. But I faced error that can't resolve.</p> <p>My gulp task looks like `</p> <pre><code>var gulp = require('gulp'), concat = require('gulp-concat'), babel = require("gulp-babel"); gulp.task('default', function() { gulp.src(cssSrc) .pipe(concat('main.css')) ...
2
1,057
Angular - two dropdowns with same datasource
<p>i am having two dropdowns with same issue. my Challenge is , whenever i select 1 , the other one also gets selected. Also, if there is a validation error, it throws only on one dropdown. What am i missing? </p> <pre><code> &lt;div class="form-group"&gt; &lt;label for="ctctype_id"&gt; ...
2
1,310
VB Reading data from SQL Server to Array, writing into .CSV
<p>I'm trying to read out data from a SQL Server into an array. After that, I'd like to write each line into separate .csv files.</p> <p>This is my code so far:</p> <pre class="lang-vb prettyprint-override"><code>Imports System.Data.SqlClient Public Class Form1 Public SQLcn As New SqlConnection Public Funct...
2
3,725
Selecting node values from a SOAP message using XSLT
<p>I'm trying to get values from a SOAP message. I need to to retrieve the username and password.</p> <p>The SOAP message looks like this:</p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xm...
2
1,066
Pass vuex state to component via props and change state value using v-model or event
<p>I have a module how renders a component and pass the state of vuex via <strong>props</strong> to the component, so far so good, but I'm binding the props in a checkbox list and I'm trying to change its value, however Vuex returns me an error telling me not to mutate the store data without a mutation, with code I thi...
2
2,928
TypeError: unhashable type: 'dict' for python
<p>I'm trying to setup a cron auto delete file on Deluge torrent client, code is as following:</p> <pre><code>import sys import os import subprocess import logging from datetime import datetime, date, time, timedelta from deluge.ui.client import client import deluge.component as component from deluge.log import LOG as...
2
1,042
Listview with ViewHolder(s) and sections fails when scrolling
<p>Im building an listview with sections. i was using <a href="https://stackoverflow.com/questions/3832254/how-can-i-make-my-arrayadapter-follow-the-viewholder-pattern">this</a> answer of a post and asked a question before, but am stuck again. I think it is a pretty weird error.</p> <p>When i start my activity, i can s...
2
2,143
Webview rendering website incorrectly
<p>the situation follows: i created a webview app what loads <a href="https://cstudios.sk/pemobil/" rel="nofollow">https://cstudios.sk/pemobil/</a>. The site works fine on both the native android browser and on chrome. Also it is okay on most of the phones, but on galaxy S4 the system does not rendering some parts. Lat...
2
3,492
Is there a way to programatically bind to InputBinding Command property?
<p>I know it's a generic title, but my question is specific. I think it will boil down to a question of practice. So, I have the following code:</p> <pre><code>public partial class MainWindow : Window { InitializeComponent(); MyViewModel viewModel = new MyViewModel(); this.myGrid.DataContext = viewModel;...
2
1,453
Randomly can't connect to guest vm in libvirt
<p>I cannot reliably trigger this, although if I spin up many vms at a time and then attempt to connect to some of them, I run into this condition:</p> <pre><code>$ ping 192.168.122.135 PING 192.168.122.135 (192.168.122.135) 56(84) bytes of data. From 192.168.122.1 icmp_seq=1 Destination Host Unreachable From 192.168....
2
1,634
Prevent circular references when getting result from database
<p>If I have the following simple model:</p> <pre><code> public class Company { public Guid CompanyId { get; set; } public ICollection&lt;CompanyUser&gt; Users { get; set; } } public class CompanyUser { public Guid CompanyId { get; set; } public Guid UserId { get; ...
2
1,323
Wireshark: display filters vs nested dissectors
<p>I have an application that sends JSON objects over AMQP, and I want to inspect the network traffic with Wireshark. The AMQP dissector gives the payload as a series of bytes in the field <code>amqp.payload</code>, but I'd like to extract and filter on specific fields in the JSON object, so I'm trying to write a plug...
2
1,665
What causes the extreme slowness when changing from rails 3.2.12 to 3.2.13
<p>This morning, I updated rails from 3.2.12 to 3.2.13, which resulted in a major delay in loading my views. This is from loading my home page:</p> <pre><code>Rails 3.2.12: Completed 200 OK in 387ms (Views: 339.0ms | ActiveRecord: 27.1ms) Rails 3.2.13: Completed 200 OK in 4416ms (Views: 4361.2ms | ActiveRecord: 28.7m...
2
2,758
MinGW-w64 can't find Makefile that exists
<p>I'm encountering an error in building one of my ExternalProjects:</p> <blockquote> <pre><code>mingw32-make.exe[3]: *** No targets specified and no makefile found. Stop. </code></pre> </blockquote> <p>Here is the <a href="https://github.com/syb0rg/Khronos/blob/master/cmake/Win32-ExternalProjects.txt" rel="nofollow...
2
1,958
__isr_vectors variable not found when placed inside a static library
<p>As a spin-off of a previous question (<a href="https://stackoverflow.com/questions/28895703/sbrk-function-not-found-when-placed-in-a-static-library">sbrk function not found when placed in a static library</a>): I'm creating a bare-metal application for the stm32f407 microcontroller, which has an ARM Cortex M4 core. ...
2
1,561
SEVERE: Servlet.service() for servlet [jsp] threw exception java.lang.NumberFormatException
<p>I am trying to display Candidates information on JSP from two items lists viz. Personal Info - "${candidatesPI}" and Fitness Info - "${candidatesFI}". </p> <p>Below is the JSP code to display the information from two lists. Here I am storing the Candidate ID information from these two lists using two variables var1...
2
4,143
How do I use JQuery with MVC 5 to load a View instead of a partial View
<p>I have a process that loops through the same view several times with different data and then eventually goes to a different view at the end of the process. The data is a list that is being sorted so I use jQuery to access the ordering of the list</p> <p>I use jQuery to update the view by using an embedded partialVi...
2
1,256
why chrome driver is not working in @Before?
<p>I have a simple code</p> <pre><code> public class PageAvailable { @Test public void test() { System.setProperty("webdriver.chrome.driver", "C:/Users/JARs/chromedriver_win32/chromedriver.exe"); WebDriver driver = new ChromeDriver(); driver.get(...
2
1,545
WCF Service exporting 1 Interface with 2 Implementation classes
<p>I'm new to WCF and C#.</p> <p>I'm trying to create a WCF Service with 1 Interface (IA) with 1 method (Do) which has 2 implementations (A1 &amp; A2).</p> <p>A silly example:</p> <p><strong>IA.cs:</strong></p> <pre><code>namespace IA_NS { [ServiceContract] public interface IA { [OperationContra...
2
1,072
How to set style with renderer on div:after and div:before?
<p>So when I click first arrow ideally I want to color it all in red and disable other divs. But because it is an arrow I am able to color only the part before the :before and :after part of arrow. </p> <p>Here is the HTML, CSS and TS code example. I am using Renderer2 to set style to div on action. </p> <p><a href="...
2
1,304
Getting error javax.sip.PeerUnavailableException: The Peer SIP Stack: gov.nist.javax.sip.SipStackImpl could not be instantiated
<p>I am getting error with the following code. </p> <p>I have included all the jars that are necessary for Sip; but, I am still not getting why this error is occurring. Can you explain this to me?</p> <p>My code class is:</p> <pre><code>import java.net.InetAddress; import java.util.ArrayList; import java.util.Pro...
2
6,371
How to interrupt a thread with infinite loop and sleep in Java
<p>i've been fighting with this over few hours now. Here's the code:</p> <pre><code>@Override public void run() { try { wscript.setBid(0.30); wscript.setServiceMode(WebScript.ServiceMode.ON); for(;!Thread.currentThread().isInterrupted();) { Positioni...
2
1,080
ExpandableListAdapter onClickListener, call notifyDataSetChanged()
<p>I have a custom adapter that uses an onclickListener to change the parent text, I can't figure out how to get the notifyDataSetChanged method to work within the adapter.</p> <p>what should happen is I have an expandable view, and when you click on the button that is within the child it updates the parent with the ...
2
1,752
Django query with annotation and conditional count too slow
<p>I have this query with annotations, count and conditional expressions, that runs very slow, it takes forever.</p> <p>I have two models one that stores instagram publications and another one that stores twitter publications. Each publication has also an FK to another model that represents a hexagonal geographical ar...
2
7,935
How do I retrieve a CimInstance property of a certain type?
<p>So, I have been searching for a while now, and I can't seem to find the answer to what seems to be (at least, to me) a simple, foundational C# question.</p> <p>To set it up, I am putting together a C# GUI program that leverages CIM classes from remote machines to retrieve data about said machine, which will be used...
2
1,207
Java heap space error/ Out of memory error
<p>I'm getting heap space error/ out of memory exception. I'm trying to generate a PDF using iText and converting the PDF to jpg image using <code>aspose api</code>. The PDF which is being generated is of 3 pages, I'm converting that PDF to image page by page and stitching them together into one jpg image. This code is...
2
1,318
Call to undefined method CI_Form_validation::set_fields()
<p>when i try to add my the query in CodeIgniter i get this undefined method CI_Form_validation::set_fields(). Here is my Controller THIS gives me error and I am not able to update or add an entry into my database</p> <pre><code>function __construct() { parent::__construct(); #load libr...
2
1,433
Only get the attribute from element, where Event was fired in AngularJS
<p>iam new to AngularJS. I try to move from Backbone.js to Angular and first think i want to do its quite simple: fadeIn and fadeOut.</p> <p>So my HTML look like these:</p> <pre><code>&lt;div id="calendar" style="padding-left: 50px" ng-controller="CalendarButtonController"&gt; &lt;!-- prev button --&gt; &lt;d...
2
1,182
multi-threaded avahi resolving causes segfault
<p>I'm attempting to port my zeronconf-enabled C/C++ app to Linux, however I'm getting D-BUS related segfaults. I'm not sure if this is a bug in Avahi, my misuse of Avahi, or a bug in my code.</p> <p>I am using a ZeroconfResolver object that encapsulates an AvahiClient, AvahiSimplePoll, and AvahiServiceResolver. The Z...
2
1,682
Uncaught TypeError: Cannot read properties of undefined (reading 'bind')
<p>I am trying to work on functionality that will be able to drag multiple divs and combine it is as one (the contents in it) and drop it into the other column. In trying to do so I put a functionality check which is identifying basically which div should be changed and whether it gets merged or not. I am getting this ...
2
2,408
Interceptor's getEntityName is not used. Bug in Hibernate?
<p>I implemented getEntityName method in my interceptor. I was expecting that the method will be called by Hibernate to resolve entity name of a (transient) object when I save the object. However, the method getEntityName from the interceptor was not used in the following scenarios: </p> <p>1) session.saveOrUpdate was...
2
3,135
'Set-AzureRmDataFactoryV2' is not recognized as the name of a cmdlet
<p>I have installed Powershell 6.0.0 on Ubuntu 16.04. I am getting following error when trying to create Azure Data Factory using Powershell</p> <pre><code>Set-AzureRmDataFactoryV2 : The term 'Set-AzureRmDataFactoryV2' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spe...
2
1,370
Oracle Error: ORA-12541: TNS:no listener
<p>I am using VS2013 and oracle 11g for database. Oracle developer suite 10g is also installed in my machine. I am trying to connect my database using</p> <pre><code>public void connect() { try { conString = "Data Source=(DESCRIPTION=(ADDRESS_LIST=" + "(ADDRESS=(PROTOCOL=" + txtBoxProc...
2
1,427
stuck at Running Gradle task 'assembleDebug'
<p>i'm runing Pop_OS! 20.10</p> <pre><code>flutter doctor -v </code></pre> <blockquote> <p>[βœ“] Flutter (Channel stable, 1.22.3, on Linux, locale en_US.UTF-8) β€’ Flutter version 1.22.3 at /home/samdc/DevTools/flutter β€’ Framework revision 8874f21 (3 months ago), 2020-10-29 14:14:35 -0700 β€’ Engine revision a1440ca392 β€’ Dar...
2
2,086
Pipes angular 2 filter multiple columns considering null value
<p>I am using pipe to filter data on three different columns in a data table. The names of the column are <code>category</code>, <code>name</code>,<code>department</code>.</p> <p>I am passing the arguments as follows:</p> <pre><code>&lt;table class="table table-striped" [mfData]="listdata | dataFilter : filtername :...
2
1,135
Checksum incorrect while doing ssh
<p>Suddenly I was not able to ssh to any machine. I thought it to be my router/network issue &amp; I tried it with different network but the result was same. I took tcp dump on both server &amp; client and found that the checksum is incorrect. Client is on MacOS 10.12.6 &amp; server is running Ubuntu.</p> <p>Below is ...
2
2,583
React Native socket.io keeps saying
<p>My react native keeps saying [Error: websocket error]. I have follow some tutorial on the web but still can not get it working. Anyone know if there is a syntax error or somethig to change from this code?</p> <p>This is my full react code that i follow from this topic <a href="https://stackoverflow.com/questions/43...
2
1,148
How to check if Twilio.Device handlers already exist
<p>I'm using Twilio in an Angular app. I'm initializing the Twilio device whenever the user visits a certain page (let's call it the customer page) so that the user can call a specific customer. This initialize function is called in the customer controller:</p> <pre><code>function _initializeDevice(token, connectHandl...
2
1,145
Make an API call with react-csv
<p>I am trying to add an option to download data as a CSV file inside my component. However, the below code sometimes prints a garbage character <code></code> and works other times. I don't understand what I am doing wrong here. I tried to follow the example provided here: <a href="https://github.com/react-csv/react...
2
1,173
How to hide the tab bar item?
<p>I am new to this iphone development.I have created a tab bar application which consist of 6 tabs this is the code for the tab bar controller creation in appdelegaate file didfinishlaunching</p> <pre><code>UIViewController *viewController1 = [[[cardsAvailable1 alloc] initWith...
2
1,135
How to resolve Hibernate Table or view does not exist?
<p>I am able to view a list of results from R_States table using createSQLQuery.</p> <pre><code> public List&lt;String&gt; getStates() throws Exception { try { Session session = sessionFactory.openSession(); return session.createSQLQuery("select * from R_States").list(); } catch(Exception...
2
1,024
How to update an item in Firestore RecyclerView?
<p>I am trying to update an item in my <code>RecyclerView</code> with a save button in the toolbar which calls <code>updateQuestion()</code>. </p> <p>I have this structure in my Firebase:</p> <p><code>Questions</code></p> <p>--><code>list_of_documents wUniqueIDs</code> </p> <p>--->fields in documents:</p> <p>+<cod...
2
2,092
Attendance Sheet of Student in "jquery" dynamic
<p>I am creating an attendance sheet in which a student add a pin code for attendance but there is the problem, when I try to add pin code of first and last person, etc then only these students are marked by 'present'(P) but others not shown "Absent".</p> <p>I am using HTML, CSS bootstrap and also for dynamic creating...
2
4,940
Identifying unf, 1nf, 2nf, 3nf in Database Normalization
<blockquote> <p>... instructor. The UNF relation has been provided.</p> </blockquote> <pre class="lang-none prettyprint-override"><code> Premiere Corporation Order Detail Report +-------+----------------+-----+---------+------+--------------+-----+--------+ | ...
2
1,217
How to resolve JMeter ERROR c.g.j.p.w.s.WebDriverSampler: null?
<p>I'm using JMeter in NON-GUI mode to execute tests from a Docker container. My test uses Selenium web driver with Chrome. I'm having an error that shows in <code>jmeter.log</code> but I don't know how to resolve it. </p> <p>The error is:</p> <blockquote> <p>ERROR c.g.j.p.w.s.WebDriverSampler: null</p> </blockquot...
2
5,624
IE9 responsive image resize issue with pure CSS3 media query
<p>I try to set responsive layout design.</p> <p>My issue is: while in 1024*768 screen resolution, checked viewport without scrollbar width is 1007. I set my media query in CSS3 for 1007px viewport to <code>@media screen and (max-width: 1007px)</code></p> <p>It works fine in Chrome.</p> <p>However it doesn't work in...
2
1,882
Memory Leak in practical example
<p>I am constantly struggling with identifying memory leaks. I guess I have several memory leaks in my project <a href="https://github.com/momentummodules/CircularProgressView" rel="nofollow noreferrer">circular progress view</a>.</p> <p>One of my guesses is I have a memory leak in the internal class <code>FadeRunnabl...
2
1,377
SSH using terminal, cloud shell, or window browser in to Google Cloud VM instance not working
<p>I am new to google cloud computing. Recently have not been able to SSH into my VM instance, previously it worked by clicking the SSH button and opened a new browser window. I have tried several fixes based on internet searches, mostly summarized below:</p> <p>When I click the SSH button, it says &quot;Transferring K...
2
3,607
change class name on click and remove class on other click - Angular 4
<p>Can some one help me to resolve this. I have table with different columns (TD). I want to select one cell and change its classname. when i click on other cell, i want to restore the classname in previously cell and change the classname on newly selected cell.. Please note: each cell have different classname. So i ha...
2
1,151
java.lang.IllegalArgumentException: No view found for id 0x7f0700ca
<p>I have a login fragment and want to replace the fragment after successful login. I tried to replace the fragment inside the login fragment.</p> <p><strong>First</strong> I tried to call the following code inside the fragment (onActivityCreated,onCreateView,onStart)</p> <pre><code>getSupportFragmentManager().beginT...
2
1,899
Update ViewModel if Model changed
<p>How can i update view model when model change. First solution that i found was subscribe in ViewModel for PropertyChangedEvent of Model. But is it good way? Maybe it exist better way to Notify ViewModel?</p> <p>Xaml:</p> <pre><code>&lt;Grid&gt; &lt;Grid&gt; &lt;Grid.RowDefinitions&gt; &lt;R...
2
1,291
GIF do not animate when share on twitter
<p>I am creating animated GIF file with <code>NSArray</code> of <code>UIImage</code>. And saving it in <code>NSDocumentDirectory</code> as well as in Photo Album of iPhone.</p> <p>The problem I am facing is, when I open the saved GIF in Email Composer or in iMessage, it animates fine. But when i share it through twitt...
2
1,299
How to set NavigationView's headerView with Anko DSL?
<p>In general XML layout, the default main layout is like this:</p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;android.support.v4.widget.DrawerLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="http://schemas.andro...
2
1,534
What exactly is the SIGABRT error?- Codechef
<p>//The problem is not on my computer, the problem is "SIGABRT Run time error" When I post it //on the codechef page. Please help.<br> //No details are actually required as the required output is coming on my laptop. Its only //on codechef that the problem exists.</p> <pre><code>#include &lt;cstdlib&gt; #include &lt...
2
1,355
Oracle loadjava error during loading of .jar
<p>I'm trying to load and publish a .jar into my Oracle database with this command:</p> <pre><code>loadjava -schema PIN75 -u username/password -v -resolve -debug BIPExtension.jar </code></pre> <p>but I'm getting this error:</p> <pre><code>arguments: '-u' 'username/***' '-schema' 'PIN75' '-v' '-resolve' '-debug' 'BIP...
2
4,077
request signature we calculated does not match the signature you provided. Check your AWS Secret Access Key and signing method error in bots
<p>We are creating the bots using Amazon.Lex API which is part of aws-sdk-net, this bots interacts with Amazon lex model. On executing this bot we are getting below mentioned error.</p> <p><strong>There are other questions exists in SO with the same issue, but those are not related to aws lex sdk.</strong> </p> <pre>...
2
4,562
distance calculation in python for google earth coordinates
<p>Hi I have a kml file called Placemark and 4 nodes (placemarks) that are located in an area on Google Earth. Each placemark-node has a longitude and a latitude. </p> <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt; &lt;kml xmlns="http://www.opengis.net/kml/2.2" xmlns:gx="http://www.google.com/kml/ext/2.2" xml...
2
3,910
Making "glowing" vector image in Android Studio
<p>I'm trying to make vector image with "glowing" effect for my app (something more like this:</p> <p><img src="https://i.stack.imgur.com/tAHtR.jpg" alt="this">)</p> <p>I made my vector:</p> <p><img src="https://i.stack.imgur.com/LVej6.png" alt="vector"></p> <p>in Inkscape by duplicating, moving the selection to th...
2
1,809