title stringlengths 13 150 | body stringlengths 749 64.2k | label int64 0 3 | token_count int64 1.02k 28.5k |
|---|---|---|---|
How can i uncheck all checkboxes after click button(check selected phones) in angularjs? | <p>Here i have added my code below.after Check selected phones button clicked how to uncheck all checked checkboxes pls some one help me out for this .
Expectation:
after button click all checkboxes should unchecked i have added fiddle also help me out</p>
<p><div class="snippet" data-lang="js" data-hide="false">
<div... | 2 | 2,024 |
com.google.android.gms.location.LocationListener not working in my activity | <p>I would like to retrieve the device position each time the user moves but the onLocationChanged callback does not work. could someone please help me? here is my code of my activity that manages the google map. Please note, I'm using the onLocationChanged from the Google Library com.google.android.gms.location.Locati... | 2 | 9,167 |
Cookie authentication issue ASP.NET CORE 2.1. AWS load balancing | <p><strong>UPDATE:</strong> It looks like following code is failing:</p>
<pre><code>services.AddDataProtection()
.SetApplicationName(appname)
.PersistKeysToRedis(redis, "DataProtectionKeys")
.ProtectKeysWithCertificate(LoadCert(Configuration));
</code></pre>
<p>It's unable to read ... | 2 | 1,535 |
Scaling with touchesMoved: | <p>I have a <a href="http://i.imgur.com/Hgmjn.png" rel="nofollow">pie chart</a> which is made using UIBezierPath's. I now need those individual paths (pie pieces) to be scalable. I believe you need a view to be able to use pinch scaling, so I think touchesMoved: is the way to go (unless there's a workaround).</p>
<p>A... | 2 | 1,134 |
Not all of a library's refrenced DLLs are copied local when refrencing from another project | <p>I am trying to work with the LEADTOOLS imaging library, they have a large set of dll's that need to be referenced. The way our design is set up we have a core library that all of our projects are based off of, all of the DLL's that LEADTOOLS needs are loaded to our base library, and they get copied local to it's bui... | 2 | 7,818 |
XSLT 1.0 - Sum column based on conditions from 2 nodes | <p>I have 2 data sources (Request and Actual). Below is a sample of my xml:</p>
<pre><code><dsQuery Response>
<Request>
<Rows>
<Row>
<TravelDate>2013-10-05T05:00:00Z</TravelDate>
<ID>1</ID>
<Cost>1000</Cost>
</Row>... | 2 | 1,099 |
How to remove element from DOM after class has been added | <p>This is using Sizzle/jQuery. I'm trying to remove an element (.offers-detail) from the DOM <em>after</em> adding a class to animate it's 'removal' from the GUI. In short, I have a series of divs listed vertically. Each .offers-detail div has a 'remove' button. When the remove button is clicked, I use jQuery to check... | 2 | 2,149 |
iTextSharp–Add header/footer to PDF | <p>This is my first question on <a href="https://stackoverflow.com/">stackoverflow</a>.</p>
<p>I hope to be welcome.</p>
<p>My question.</p>
<p>I trying to use <a href="https://www.nuget.org/packages/iTextSharp/" rel="nofollow noreferrer">iTextSharp</a> for create PDF file with header, footer, number of pages and lo... | 2 | 4,097 |
Vue testing with Vuetify. Cannot read property 'title' of undefined | <p>I am trying to test if the dialog created with vuetify will be active or not after I emit a function called closeNoteForm. However, when I try to test the dialog content being hidden or not, I get an error. It seems the problem is within the noteForm wrapper that I created. But it just points to the css and doesn't ... | 2 | 10,771 |
SWIG Linker: undefined symbol: _ZN2cv8fastFreeEPv (cv::fastFree(void*)) | <p>I'm having some trouble getting my SWIG wrapper to work in python after I changed some code. I suspect it has to do with the linker.</p>
<p>My question concerns <a href="https://github.com/jlowenz/pyviso2" rel="nofollow noreferrer">this github</a>:
This file compiles as described in the readme, and can be imported ... | 2 | 4,917 |
Trouble writing HTML in Razor view if/else condition | <p>I'm not quite sure what I am missing here, but I am having trouble adding a <code>class='success'</code> to a <code><tr></code> in a Partial View while iterating through a list in my Model.</p>
<p>My goal is to have the first row's <code>tr</code> to have the attribute <code>class='success'</code></p>
<p>Her... | 2 | 1,151 |
MVC gives Error Value cannot be null or empty. when i return model to view during updateing | <p>I am trying to return model to view to <strong>Preserve</strong> the data that the user entered if there is an exception. So when I return the model to view it tells me "Value cannot be null or empty" but the model still has the data</p>
<pre><code>@Html.EditorFor(model => model.NewsTitle, new { htmlAttributes =... | 2 | 3,970 |
How to call a python file using Tensorflow library in C++ environment? | <p><a href="https://i.stack.imgur.com/9GcIs.png" rel="nofollow noreferrer">When I tried to call a python file using Tensorflow library in C++ environment, I got a problem like this. I have no idea how to solve it.</a></p>
<p>This is my C++ code.</p>
<pre><code>#include <Python.h>
#include <iostream>
int... | 2 | 1,567 |
How to send a local image instead of URL to Microsoft Computer Vision API using JAVA | <p>The question is how to load image file and pass it as object to Microsoft Computer Vision API, all the sample code in Microsoft website is reading image from url.</p>
<pre><code>// This sample uses the Apache HTTP client library(org.apache.httpcomponents:httpclient:4.2.4)
// and the org.json library (org.json:json:... | 2 | 1,402 |
Add zeroDateTimeBehavior variable to the Datasource without URL in jetty.xml | <p>I'm trying to connect to multiple data sources by a grails application. What I tried worked in a development environment correctly. Initially there was a timestamp error which got resolved with '<code>zeroDateTimeBehavior=convertToNull</code>' adding to a url. But now in production environment, I don't understand ho... | 2 | 1,141 |
Karma - Uncaught SyntaxError: Unexpected token import in Angular 2 | <p>I am following this tutorial <a href="https://www.youtube.com/watch?v=yG4FH60fhUE" rel="nofollow noreferrer">https://www.youtube.com/watch?v=yG4FH60fhUE</a> and <a href="https://angular.io/docs/ts/latest/guide/testing.html" rel="nofollow noreferrer">https://angular.io/docs/ts/latest/guide/testing.html</a> to write s... | 2 | 1,425 |
Android Tablayout no tab titles after pairing with viewpager | <p>I am simply trying to pair up with TabLayout with a ViewPager. The pairing is almost working, however the Tabtexts are gone afterwards.</p>
<p>Layout:
</p>
<pre><code> <android.support.design.widget.TabItem
android:id="@+id/group_tab_orders"
android:layout_width="w... | 2 | 1,128 |
ipv6 static routing is not working | <p>wondering ipv6 static route default route nothing working, only can ping the directly connected interface, but sh run command gave the static routes which I created to other networks,
but on the sh run output I saw the autoconfig static route which I created to obtain global unicast addresses and on the next line I ... | 2 | 1,783 |
accessing threads continually in tkinter loop | <p>I am trying to make a GUI that continually plot a signal received from a micro processor. I have tried to make this happen by use of classes only, but that failed since only the GUI class was oppend. Now i have implemented threading (or at least I think I have!?) but each thread is only run once. which make me belie... | 2 | 1,465 |
Serial number of the usb on windows Ce 6.0 in c# | <p>I need to get the serial number of a usb stick connected to a windows ce 6.0 device. I tried with <code>KernelIoControl</code> and i get the serial number of the window ce 6.0 device but not the usb connected to it. </p>
<pre><code> private static string GetDeviceID()
{
// Initialize the output buffe... | 2 | 1,300 |
HTML5 Video API: Cannot Pause On Last Frame If Looping Enabled | <p>Trying to pause a video on the very last frame appears to not work if the video is on the very last frame.</p>
<p><div class="snippet" data-lang="js" data-hide="false">
<div class="snippet-code">
<pre class="snippet-code-js lang-js prettyprint-override"><code>var app = angular.module('myApp', []);
app.controller('... | 2 | 1,261 |
Hashing Passwords in Java | <p>What is the best way to hash passwords to SHA1 in a mobile java application using SQLite?</p>
<p>Below is how the data is inserted into the database. I want the password to be hashed, preferably in SHA1. It will be used to Login on another page aswell so do i need to do a similar process in that java class?</p>
<p... | 2 | 1,304 |
Activemq queue consumers being blocked | <p>I have the following architecture for integration in my system:</p>
<p>2 Mule instances (not in a Mule cluster, because of CE version) and 2 activemq instances configured in master-slave using shared database lock.</p>
<p>There is a flow in Mule which has as inbound a queue where another flow writes a message. Aft... | 2 | 2,282 |
How to disable specific cells in collection view in Swift | <p>I have created a collection view that acts as a nav bar, and I've made this the base view controller(TabBar.swift) and it will appear on all my other view controllers. it has 3 cells for now and clicking on each cell shall direct the user to its respective view controller. The 3 view Controllers are FirstScreen.swif... | 2 | 1,692 |
How can I update JavaFX BarChart in Swing application? | <p>I want to update a JavaFX BarChart. I initialize my BarChart with this method:</p>
<pre><code>private void initFxComponents(String questionName){
Platform.runLater(() -> {
final CategoryAxis xAxis = new CategoryAxis();
final NumberAxis yAxis = new NumberAxis();
final BarChart<Stri... | 2 | 1,063 |
V8: Fatal error: CHECK(V8::ArrayBufferAllocator() != NULL) failed | <p>I get this error when I try to run some JS code (<a href="http://pastebin.com/XesBSstJ" rel="nofollow">this</a> + <a href="http://pastebin.com/0VawRb16" rel="nofollow">this</a>) with V8 (tried master from two weaks ago, 3.23.17, 3.24.40, 3.25.5; 3.23.0 doesn't work anymore because of API changes):</p>
<pre><code>#
... | 2 | 1,650 |
NullPointerException in weblogic's DOMFactoryProperties when parsing an XML document under Tomcat | <p>I'm trying to parse an XML and getting a weirdest <code>NullPointerException</code> I've ever seen. Here's the stack trace:</p>
<pre><code>java.lang.NullPointerException
at java.util.Hashtable.put(Hashtable.java:399)
at weblogic.xml.jaxp.DOMFactoryProperties.<init>(DOMFactoryProperties.java:44)
at... | 2 | 2,361 |
Embedded Jetty with Java Security Policies | <p>I am using embedded jetty. My application loads an external war. I want to restrict what the loaded web application can do so I applied a Java security policy. Now my application starts but when I try to start the deployed web application it crashes. The war gets extracted to $JETTY_HOME/temp/${webapp}/webapp/</p>
... | 2 | 4,452 |
laravel faker duplicate data | <p>I have a Laravel table for <code>hits</code>. I want to generate a lot of test data to test some charts based on the hit location, so I created a factory like this:</p>
<pre><code><?php
use Carbon\Carbon;
use Faker\Generator as Faker;
$factory->define(App\Hit::class, function (Faker $faker) {
$date = Ca... | 2 | 1,317 |
How do I specify links in ASP.NET user controls when using IIS 7 URL Rewrite? | <p>I am having some difficulty getting URLs in user controls to work right in my ASP.NET 4 web site when using URL Rewrite rules. Specifically, it appears that the HyperLink element is changing my link urls. I am not sure if I am using the proper technique or missing something.</p>
<p>I have a physical directory struc... | 2 | 2,990 |
loader constraint violation while running testcases in grails using maven | <p>I am running testcases in grails using maven and got the following stacktrace. </p>
<p>I have the following conflicts.</p>
<pre><code>loader constraint violation: when resolving field "DATETIME" the class loader (instance of org/codehaus/groovy/grails/cli/support/GrailsRootLoader) of the referring class, javax/xml... | 2 | 1,487 |
Ordering Controls inside FlowLayoutpanel | <p>I have a <code>Windows.Forms.FlowLayoutPanel</code> that is being filled at runtime with controls of the type <code>MasterMeter</code> (and controls inheriting from MasterMeter). This is your standard <code>Usercontrol</code>. Each of those controls has a property <code>ErrorTime</code>. This value keeps the duratio... | 2 | 1,238 |
How to show the JSON data into dynamic input text fields? | <p>I have a JSON data coming through AJAX GET method is:The JsonData is stored in <code>var trDataSecondTable</code> and displayed when I did <code>console.log(trDataSecondTable)</code>.</p>
<pre><code>{
"assessCatAmount":[
{
"assessmentNo":1,
"assessmentType":"PRE",
"assessCa... | 2 | 5,173 |
NLog not logging (Windows Service) | <p>I have a windows service that I am converting from my own logging to NLog. I have used NLog in a previous windows service application and felt that I knew what I was doing. But it isn't logging :(</p>
<p>I have the following NLog Configuration:</p>
<pre class="lang-xml prettyprint-override"><code><?xml version... | 2 | 1,549 |
Why is my npm install failing on my ubuntu server? | <p>I've encountered an error on my production server when using <code>npm install</code> - the build process fails with the following error:</p>
<pre><code>npm WARN package.json app@0.0.0 No description
npm WARN package.json app@0.0.0 No repository field.
npm WARN package.json app@0.0.0 No README data
npm WARN package... | 2 | 3,212 |
Create table with dynamic columns | <p>I'm working on PostgreSQL 9.1, and I have the following tables:</p>
<pre><code>element(element_id int, name varchar, category_id int)
category(category_id int, name varchar)
characteristic(characteristic_id int, name varchar, unit varchar)
category_characteristic(characteristic_id, category_id)
element_characte... | 2 | 1,372 |
In iPhone, CSS not working in Email Template | <p>Here is my email template code. That is not working on the iPhone.In iPhone, the mail template is disturbing with the design. In android mobile looks fine. I had searched for lots of things about my problem. but, I could not find any solution. Your help will appreciate. can anyone help me? </p>
<p>Html</p>
<pre><c... | 2 | 1,476 |
Why I cannot send email via Log4j SMTPAppender? | <p>I use <code>Log4j 1.2.17</code> for loggining. I want to send error message to my email but I have some problems.
Here is my <code>properies</code> file: </p>
<pre><code>log4j.appender.email=org.apache.log4j.net.SMTPAppender
log4j.appender.email.Threshold=WARN
log4j.appender.email.SMTPHost=smtp.gmail.com
log4j... | 2 | 1,263 |
Why is "Object reference not set to an instance of an object." error being raised here? | <p>I am working on an asp.net mvc web application and i have the folloiwng view:-</p>
<pre><code>@model MvcApplication4.Models.SelectedCustomers
<h3>Select Customers Detials</h3>
@using (Html.BeginForm("Export", null))
{ <table>
<tr>
<th>
NAME @Html.... | 2 | 4,952 |
Ada: Adding an exception in a separate procedure when reading a file | <p>This is a follow-up of this question: <a href="https://stackoverflow.com/questions/9792230/ada-reading-from-a-file">Ada: reading from a file</a> .</p>
<p>I would like to add an <code>exception</code> that checks if the file that I'm opening actually exists or not. I have made a <code>separate</code> procedure to... | 2 | 1,134 |
How to handle percent input and display in WPF? | <p>I have been looking for a good way to handle percentages. In our application we need to display and edit percent values, with a different number of decimal digits, i.e. when the user is not currently focusing on the textbox it should display 12.50%, but when editing the value it should be displayed as 0.125010155123... | 2 | 1,691 |
Data Not Showing in Highcharts | <p>I'm attempting to combine a couple of different chart demos from Highcharts.</p>
<p>My examples are: <a href="http://jsfiddle.net/gh/get/jquery/1.9.1/highslide-software/highcharts.com/tree/master/samples/maps/demo/data-class-two-ranges/" rel="nofollow">Data classes and popup</a> and <a href="http://jsfiddle.net/gh/... | 2 | 3,652 |
How can I use scss files and fonts in Vue project | <p>I created new project with vue-cli and I want to use global scss files in my projects to apply global styles. Also I want to use font-families without importing scss file in every component where I want to use it</p>
<p>I found lots of solutions, but none of them help me. I'm new with webpack, so it is hard to unde... | 2 | 1,733 |
Python - WordNet NLTK KeyError | <p>I really don`t get it. I´m using WordNet and I get in trouble. I call the following method with strings like that:</p>
<p>F2F - Process started, Create planning data, Create a goods receipt, Goods receipt created</p>
<pre><code>def lemmatise(word, pos=NOUN):
return WordNetLemmatizer().lemmatize(word, pos)
... | 2 | 1,712 |
Laravel Eloquent - This page isn’t working 127.0.0.1 is currently unable to handle this request. HTTP ERROR 500 | <p>I was able to create groups by geography and country, it worked well (see image attachment)<a href="https://i.stack.imgur.com/7pT8V.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/7pT8V.png" alt="enter image description here"></a></p>
<p>Controller</p>
<pre><code>$table_companies = Clients::sele... | 2 | 1,448 |
Codeigniter - 4 how to access/load packages from vendor folder on a shared hosting server | <p>I have an application based on codeigniter 4, developed locally with vagrant and VirtualBox VM.
Then I moved it to a shared hosting environment, that is based on litespeed server and cpanel.</p>
<p>The application use certain external packages like phpmailer, sendgrid and google oauth that on local development envir... | 2 | 1,411 |
Trouble with running and hot reloading flutter in Android studio(Bad state: Future already completed) | <p><strong>This issue has been submitted to the Flutter github issues: <a href="https://github.com/flutter/flutter/issues/27450" rel="nofollow noreferrer">https://github.com/flutter/flutter/issues/27450</a></strong> </p>
<p>I am having some trouble with running and hot reloading flutter apps in Android studio. </p>
<... | 2 | 1,327 |
'Cannot add or update a child row: a foreign key constraint fails' when trying to add a primary composite key in Hibernate | <p>I'm working on the project of a school gradesbook implementation where there are following entities: students, subjects and grades. Each grade has one subject, one student, date and value. I'm trying to implement this relation and I decided for a grade to have a composite primary key that is composed of subject id, ... | 2 | 1,616 |
Passing ArreyList between Fragments with Parcelable | <p>After consuming a json with Retrofit and using unsynchronous callback I can't pass An ArrayList from The MainActivity to a fragment .</p>
<p>Code from MainActivity:</p>
<pre><code> lFragmentManager = getFragmentManager();
lFragment = lFragmentManager.findFragmentById(R.id.frame_container);
... | 2 | 1,341 |
RestKit loadObjectsAtResourcePath:delegate works once, but then never again | <p>I'm fairly new to Objective-C and XCode, but even newer to RestKit, though been programming in Java for 12 years.</p>
<p>I have an IOS app connected to RestKit and an action to load from a rest server works only the first time, if I go back in the navigation controller and try the same operation again, the <code>lo... | 2 | 5,922 |
Is there a better way to create a multi-column (Data table) List view in SwiftUI | <p><em>EDIT Below</em></p>
<p>I'm trying to present a JSON file as a data table, similar to what one would see in a database application. So far my best results have come from an HStack of Lists, however in doing so, each list is scrollable on its own (nor can I imagine any easy way to sort the list(s). Is there a way ... | 2 | 1,525 |
Javascript Error Uncaught TypeError: Cannot read property 'top' of undefined | <p>i was coding my page and i use a template. I don't understand javascript very well so im getting this error only when i go to portfolio.html page and switch to the mobile view. in the index.html is not showing any error. index page uses the nav links like: <code><li><a href="#portfolio-section" class="nav-... | 2 | 2,351 |
MeteorJS AutoForm.Hooks not updating doc | <p>I'm using the great aldeed:autoform package for MeteorJS. I've got a custom form that lets me create db entries. </p>
<p>One of the user-entered form fields is for Suburb and I'm using the sergeyt:typeahead package to make suggestions on this as the user types. </p>
<p>The suggestions are in a format that's famili... | 2 | 1,504 |
How do I use a path stored in table with OPENROWSET? | <p>I have just recently began using <code>OPENROWSET</code> to insert images into a table. Previously, I would specify the path to each image (1 image = 1 <code>INSERT</code> statement), and use PHP to generate the image's binary string:</p>
<pre class="lang-sql prettyprint-override"><code>INSERT INTO nopCommerce..Pic... | 2 | 1,569 |
How to get notifications on particular date and time? | <p>Hi i am searching how to get notifications when i select date and time where date and time are saving in provider when event occurs on that date notification want to come.</p>
<pre><code>package com.example.addeventsofcal;
import java.sql.Date;
import java.text.ParseException;
import java.text.SimpleDateFormat;
im... | 2 | 2,134 |
fullCalendar + Bootstrap tabs glitch: not rendering events until resizing browser | <p>I'm having a strange problem when using <strong>fullCalendar</strong> along with <strong>Bootstrap</strong>, having the <strong>calendar rendered within a non active tab pane</strong>. I'm using the <strong>AgendaView</strong>, and it's initially displayed with the column for hours with just 1 pixel of width assigne... | 2 | 2,610 |
How can I figure out where and why this segmentation fault occurs? | <p>I'm having trouble figuring out the problem with my code...I'm in the early stages of prototyping a game (my first serious project). It frequently, but not always, crashes with a segmentation fault. Here's the flow of the program...</p>
<ul>
<li>title screen - press z to start new game</li>
<li>player and enemy o... | 2 | 1,691 |
No CUDA GPUs are available | <p>i get this error from the method during the model training process. i am using the google colab to run the code. the google colab dont have any GPU. Is their any other way i can make the code run without requiring cuda cpu.</p>
<p>How can i fix this error ?</p>
<pre><code>def train_model(model, train_loader, val_loa... | 2 | 1,180 |
Android - Seekbar problem, unable to change value | <p>Any help with this? I have an error when I try to use the seekbar to change my paint brush width.
The error line is UNDER setStrokeWidth, saying "Is not applicable for the arguments (string)"</p>
<pre><code>public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView... | 2 | 1,375 |
vb.net "For Each" iterates only once over a list | <p>The following "for each" loop runs only once. Why?</p>
<p>The project contains 4 forms. Form1 contains 4 PictureBox's. I'm trying to iterate over a list of forms (in this example, to set each form's BG to the picturebox) :</p>
<pre><code>Sub Butt_Click(ByVal sender As System.Object, ByVal e As System.Even... | 2 | 1,274 |
C++ updating windows window from async thread | <p>So I just started with C++ and wanted to create a window with a button that starts an asynchronous thread for a counter that counts from 5 to 0, representing a long time consuming task. The number should've been shown on the Window and get updated every second while the counter is counting. For that the child thread... | 2 | 1,620 |
Failed to send url through intent put extra method | <p><a href="https://stackoverflow.com/questions/40224677/intent-put-extra-method-is-crashing-the-app">Got the solution thanks to thomaspsk</a></p>
<p>So I am parsing link urls from online database and displaying it in recycler view. I also want to send those urls through <code>Intent</code>'s <code>putExtra()</code> m... | 2 | 1,073 |
codeigniter post html textarea | <p>when i try to post html from my textarea the variable value is empty and form_validation show error message that the input is required......</p>
<p>i search for solution and i didn't found ....</p>
<p>this is my code</p>
<pre><code><form accept-charset="utf-8" method="post" action="<?php echo base_url('send... | 2 | 2,085 |
Compiler error when adapting struct with BOOST_FUSION_ADAPT_STRUCT | <pre><code>#include <iostream>
#include <vector>
#include <string>
#include <boost/spirit/include/qi.hpp>
#include <boost/fusion/include/adapt_struct.hpp>
#include <boost/fusion/include/io.hpp>
namespace qi = boost::spirit::qi;
struct VectorWrapper
{
std::vector<std::string... | 2 | 10,295 |
Schema exception on Kafka jdbc sink connect | <p>I am trying to insert rows into my Oracle table using Kafka jdbc sink connect. I have messages in my Kafka topic (JSON) like below; </p>
<pre><code>[{"f1":"qws","f2":"zcz","f3":"SDFF","f4":"f33bfed577bcd7c4625479bd3cd13323--1132061303","f5":null,"f6":null,"f7":"ghSDAgh/akdjytfd/jhsgd","f8":"hsfgd/sdfjghsfjd/jsg","f... | 2 | 2,370 |
Exception while retrieving OAuth access token using scribe | <p>I am trying to generate OAuth access token for my app to fetch notes from Evernote. Below is the Java code for it</p>
<pre><code>public class EverNoteOauthGenerator {
public static void main(String[] args) throws EDAMUserException, EDAMSystemException, TException {
Class<? extends EvernoteApi> pro... | 2 | 1,211 |
Ngrx store manage multiple lists of objects | <p>I'm developing Angular 2 application together with <code>ngrx</code>. I have several questions of how implement store based on my current project requirements.</p>
<p>To be more specific let's say I have two list of users on my website. The first list contains <code>Active users</code> and another list contains the ... | 2 | 1,531 |
How to print dynamic content in Django template | <p>I am new to python and django, Ian using paramiko module to get server cpu utilisation and I want to render that output in my html template. I can print output for a single server in html .</p>
<p>But I am not able to print multiple servers output in html template.</p>
<p>Example:-
I have 100 servers I want to g... | 2 | 1,273 |
Geb Reporter / Extension to retrieve Test Status | <p>I am attempting to replace some custom java selenium extensions by utilizing <a href="http://www.gebish.org/" rel="nofollow">geb</a>. I have hit a bit of a brick wall when I attempt to utilize a grid in the cloud (i.e. <a href="https://saucelabs.com" rel="nofollow">SauceLabs</a>). When my tests complete, it'd be nic... | 2 | 1,228 |
How do I add column sort functionality to my table? | <p>I have tried now for a couple of hours to add sort functionality on a react-virtualized table, but can't get my head around it... here is the <a href="https://bvaughn.github.io/react-virtualized/#/components/Table" rel="nofollow noreferrer">example</a> and <a href="https://github.com/bvaughn/react-virtualized/blob/m... | 2 | 2,699 |
How to build a jar for Mac OS X 10.6 from windows? | <p>I have some problem with my java application, I did build it with Eclipse under Win7 (64bit): it does not work on Snow Leopard 10.6.8. The error is: <code>"The JAR file .... could not be launched".</code></p>
<p>I have checked if Java was installed on Mac and yes, there is JRE with the 64 bit option first to execut... | 2 | 1,311 |
@login_required flask trouble. No user_loader has been installed for this LoginManager | <p>I have created separate Blueprints for separate modules of my project.
I am having trouble with @login_required decorator.
I read a very similar <a href="https://stackoverflow.com/questions/28575234/login-required-trouble-in-flask-app">question</a> but it couldn't help me.</p>
<p>The model.py file is as following:<... | 2 | 2,143 |
Spring Boot v2.5.2 - CORS policy - "No 'Access-Control-Allow-Origin' header is present on the requested resource" | <p>I have a front application with Vue JS and I'm using axios to call my Spring Boot API, using Spring Security.</p>
<p>Vue is running on <code>http://localhost:8081</code>.
API is running on <code>http://localhost:8080</code></p>
<p>I have set my Spring Boot application as followed:</p>
<p><strong>application.properti... | 2 | 6,083 |
How to resolve proxy error in reading & writing to HDFS using Python? | <p>I have a HDFS to which I want to read and write using a Python script.</p>
<pre><code>import requests
import json
import os
import kerberos
import sys
node = os.getenv("namenode").split(",")
print (node)
local_file_path = sys.argv[1]
remote_file_path = sys.argv[2]
read_or_write = sys.argv[3]
print (local_file_pat... | 2 | 5,663 |
unable to install R packages depending on rtracklayer R3.4.0 | <p>I have updated R to R3.4.0 on my mac. Unfortunately now I can't install any bioconductor packages which depends on the <code>rtracklayer</code>.</p>
<p>I have <code>Bioc version 3.5</code> and <code>R version 3.4.0</code>
I have installed the latest versions of <code>BiocInstaller</code> (v. 1.26.0).
There are no p... | 2 | 2,325 |
Bootstrap (actually JQuery) DatePicker does not hide on blur in Wicket modal | <p>I have a wicket bootstrap <code>DateTextField</code> on a panel inside modal. When datepicker is shown from click, datepicker is attached to the root page, not the modal.</p>
<p>That causes a problem: without adding some z-index to datepicker, I cannot see it on top of modal.</p>
<p>When I blur from the picker, it... | 2 | 1,582 |
Lighting and OpenGL ES | <p>I'm working on getting a simple lighting right on my OpenGL ES iPhone scene. I'm displaying a simple object centered on the origin, and using an arcball to rotate it by touching the screen. All this works nicely, except I try to add one fixed light (fixed w.r.t. eye position) and it is badly screwed: the whole objec... | 2 | 1,533 |
Django - Multiple permissions in a view | <p>I want to create a permission for a view that would verify that the user is either the owner of a shop or an admin. I have already created two permissions which work well when called separately which checks for one that the user is admin and for the other that the user is the owner of the shop. I would now like to m... | 2 | 1,025 |
Generics - ClassCastException while iterating a ArrayList | <p>Following is my code. I am querying the user_group table and getting the result in a List. I want to iterate the List. But getting the exception as follows.</p>
<pre><code> List<Group> list= empDAO.getStudentList();
for(Group o :list){
System.out.println("NAME :"+ o.getFirstName());
}
</cod... | 2 | 1,460 |
c++ ListView - Cannot insert new items after using ListView_DeleteAllItems | <p>I have a ListView control with 4 columns that is initialized in the WM_CREATE proc.</p>
<pre><code> hListView1 = CreateWindowEx(WS_EX_CLIENTEDGE, WC_LISTVIEW, NULL, WS_CHILD|WS_VSCROLL|WS_HSCROLL|WS_VISIBLE|LVS_REPORT|LVS_SHOWSELALWAYS, 230, 20, 300, 250, hwnd, (HMENU)ID_EDIT1, GetModuleHandle(NULL), NULL);
... | 2 | 1,060 |
Netty ping pong with a POJO | <p>Why doesn't the client receive the POJO which the server sends?</p>
<p>this <a href="http://seeallhearall.blogspot.ca/2012/05/netty-tutorial-part-1-introduction-to.html" rel="nofollow">blog sample</a> is a bit difficult for me to follow.</p>
<p>I realize it's a lot of code, but I don't know how to make slim this d... | 2 | 4,265 |
$("form").submit(function() { Not working in Firefox | <pre><code> $("form").submit(function() {
if ($("#content") != null) {
$("#content").replaceWith('<div id="page-loader" class="fade in"><span class="spinner"></span><span class="spinner-text center">We are running as fast as our little ninja feet can go...</span><... | 2 | 2,194 |
Karma and Jasmine injected service test with Angular 7 - StaticInjectorError(DynamicTestModule)[I18n -> InjectionToken TranslationsFormat] | <p>This isn't a dupe of <a href="https://stackoverflow.com/questions/46740037/ngx-translate-no-provider-for-injectiontoken-documenttoken">ngx-translate - No provider for InjectionToken DocumentToken</a></p>
<p>.... or <a href="https://stackoverflow.com/questions/49128781/angular5-ng-test-staticinjectorerror-from-custo... | 2 | 1,976 |
Java Get ALL elements from a multiselect Box | <p>I have a multi-select Box and I'm doing some javascript to sort the order of the elements in the box. I want to submit the <strong>whole</strong> array after sorting back to the Java and not just the select items. How can I achieve this?</p>
<p>JSP:</p>
<pre><code><script type="text/javascript">
$(do... | 2 | 1,181 |
How does angular still render a image if I use src instead of ng-src? | <p>As per angular docs and their explanation we should use <code>ng-src</code> instead of <code>src</code> in an image tag where the image url is an angular expression. </p>
<p>e.g. <code><img ng-src="{{country.flagURL}}" width="100"></code> </p>
<p>But in my case if I use <code>src</code>, the browser still ... | 2 | 1,225 |
Multiple exceptions: Unable to start activity, Unable to instantiate fragment, Error inflating class | <p>I'm brand new to Kotlin and I'm following a tutorial. Running my app causes it to crash on runtime. I have three fragments, and one main activity, in a bottom navigation bar app. My goal is really just to run the app successfully so I can try out Room databases, data binding and such concepts. I searched for possibl... | 2 | 4,733 |
Angular AOT - UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: #): TypeError: Cannot read property 'request' of undefined | <p>I am using <code>@ngtools/webpack</code> as my Angular CLI for adding AOT Compilation to my Angular 5 app. As is no surprise to anyone, it has been a <a href="https://stackoverflow.com/questions/51451556/lazy-loaded-modules-with-aot-typeerror-is-not-a-function-when-served-from/51535824">long journey</a> for me alrea... | 2 | 5,846 |
DataService : OnStartProcessingRequest not called | <p>I've created a WCF DataService and for this service I require some custom authentication through the use of HTTP Headers. So i've written special functions that validate this information or throw an 403 page in the user's face when he's not allowed to see it.</p>
<p>To make it easy for myself, I tried to overwrite ... | 2 | 1,562 |
Django's bulk_create() | <p>I've done some reading about <a href="https://docs.djangoproject.com/en/stable/ref/models/querysets/#bulk-create" rel="nofollow noreferrer">Django's bulk_create()</a> and I'm currently trying to implement it but it's not functioning as I would expect. Originally my code didn't use bulk_create and it took about 33 se... | 2 | 6,511 |
Primefaces picklist - java.lang.NullPointerException org.primefaces.component.picklist.PickListRenderer.encodeOptions(PickListRenderer.java:233) | <p>I am using picklist with POJO and getting null pointer exception. Can anyone guide me in this</p>
<p><strong>XHTML(picklist inside dialog)</strong></p>
<pre><code>p:pickList converter="#{pickListConverter}" value="#{rewardsOfferBean.selectedEOffer.members}" var="member" itemLabel="#{member.firstName} #{member.last... | 2 | 1,873 |
How to authenticate user using phone number and OTP instead of password in Laravel API? | <p>I'm building an API for a mobile app where login is achieved through OTP sen via SMS to mobile phone devices.
The user can login after he enters his phone number and an OTP code sent to his device.</p>
<p>What am I trying to do?
I'm trying to use otp code to authenticate users without passwords.</p>
<p>How to disabl... | 2 | 1,091 |
Unable to locate Spring NamespaceHandler for XML schema namespace [http://www.springframework.org/schema/tx].....Prease | <p>I am trying
MY pom.xml</p>
<pre><code><modelVersion>4.0.0</modelVersion>
<groupId>org.springframework.samples</groupId>
<artifactId>NOCMatrixServer</artifactId>
<version>0.0.1-SNAPSHOT</version>
<properties>
<!-- Generic properties -->
<java.v... | 2 | 4,920 |
How to create a navigation bar in xaml, which can scale with different screen resolutions? | <pre><code><Grid
Width="auto">
<Grid.RowDefinitions>
<RowDefinition Height="100"/>
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*"/>
<ColumnDefinition Width="*"/>
<ColumnDefinition Width="*"/>
... | 2 | 1,124 |
spring, Jackson, Fasterxml Annotations not work | <p>I'm using jackson and fasterxml. But i can annotate anything an there's no reaction on the annotation. The java Object should be parse to a json object an then with the springresttemplate it should be posted.
I always get a JsonMappingException, which says that i have a null object reference. But the code is annotat... | 2 | 2,811 |
Optimizing linear access to arrays with pre-fetching and cache in C | <p>disclosure: I've tried similar question on programmers.stack, but that place is nowhere near activity stack is. </p>
<p><strong>Intro</strong></p>
<p>I tend to work with lots of large images. They also come in sequences of more than one and have to be processed and played back repeatedly. Sometimes I use GPU, some... | 2 | 10,678 |
SystemVerilog assigning values to generated blocks | <p>So I've used generate statements to make some oscillators in a testbench that I've been working on.</p>
<p>I also have an array of reals called OSC_PER where each element in the array is the period in ns for the oscillator.</p>
<p>I've been trying to make my testbench work such that I give it a parameter (number o... | 2 | 1,076 |
Caliburn.micro and a usercontrol click handler | <p>I have created a very simple user control, an ImageButton</p>
<pre><code><UserControl x:Class="SampleApp.Controls.ImageButton"
Name="ImageButtonControl"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
... | 2 | 1,627 |
How to not resize the background image on a Stack (Flutter) | <p>Alternative title: How to resize just some containers at selecting textfield?</p>
<p>I have a login screen that is composed of a Stack pile in the body, it has 3 containers, one with the background image, one with a logo, and after that, the container with the two textfields of the username and the login button, i ... | 2 | 3,029 |
Different Text Rendering Methods Don't Produce The One I Want | <p>I am looking for a text rendering method where a graphics object is initialized from a bitmap, text is drawn on it and the text looks like the first line in the attached image.</p>
<p>Can someone please explain a method that will do this? I'm not fully understanding why none of the following methods can reproduce i... | 2 | 1,852 |
How to replace "fetch" with "ajax" method in javascript? | <p>I'm trying to wrap my head around ajax now that this is using fetch to retreive the data.
The syntax is the same roughly, but was curious as to what it would look like.</p>
<hr>
<p></p>
<pre><code><head>
<link rel="stylesheet" href="style.css">
</head>
<body>
<div id="searchCo... | 2 | 1,872 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.