title
stringlengths
13
150
body
stringlengths
749
64.2k
label
int64
0
3
token_count
int64
1.02k
28.5k
"Attempt to create two animations for cell" Crash on ios
<p>Here is my first post on stackoverflow. Any of your help will be greatly appreciated! </p> <p>I am totally new to ios development. As a practice, I am trying to develop a simple app that keeps track of diffrent items in my lab. Each item has a to-one relationship to its location and each location has a to-many rela...
1
1,066
django template - displaying images in table
<p>I can't get images (or image links) to display on template. Everything else is working on the template but the image "render_thumbnail", which is defined in a custom model method. What am I doing wrong? -btw the render_thumbnail works on another template when I am working only with the Images table, and am display...
1
1,990
Android development: "R cannot be resolved", but in only one context within the class
<p>I'm following along fairly closely in my code with Lauren Darcy's Teach Yourself Android Application Development in 24 Hours. I've hit a snag with "R cannot be resolved." on one line:</p> <pre><code>final View layout=inflater.inflate(R.layout.password_dialog, (ViewGroup) findViewById(R.id.root)); </code></pre> <p>...
1
4,165
Java - Generics vs Casting Objects
<p>I have a class <code>Data&lt;T&gt;</code></p> <p>with a generic attribute</p> <pre><code>private T value; </code></pre> <p>is there nicer way to do the following?<br> ie returning the generic type in different forms?</p> <pre><code>public List&lt;String&gt; getValues() { if (value.getClass() != ArrayList.cla...
1
1,131
Can't create JVM Unrecognized option: --module-path
<p>I'm working to get a maven project with scenebuilder fxml on intellij. I followed this tutoriel : <a href="https://openjfx.io/openjfx-docs/#install-javafx" rel="nofollow noreferrer">https://openjfx.io/openjfx-docs/#install-javafx</a> But at the end, when I try to javafx:run I got this error</p> <pre><code>[INFO] [...
1
1,181
Cordova splash screen not loading in android nor iOS
<p>I'm using VS 2015 and Cordova CLI 6.1.1. I can't get spash screen to work nor for Android, nor for iOS. The icon is displaying fine in Android, but not in iOS. Here's my config.xml:</p> <pre><code> &lt;?xml version="1.0" encoding="UTF-8" standalone="yes"?&gt; &lt;widget id="hr.studio.whatever.dev" version="1.0.4...
1
3,462
JSON Deserialization C#
<p>I'm trying to parse out some information I've retrieved from RottenTomatoes that's in a JSON format</p> <pre><code>{ "cast": [ { "id": "162655641", "name": "Tom Hanks", "characters": [ "Woody" ] }, { "id": "16265...
1
1,146
java.lang.AssertionError: expected:<200> but was:<404> in jersey restful services unit test
<p>I have this class <strong>JerseySpringSuiteTest.java</strong>:</p> <pre><code>@RunWith(Suite.class) @Suite.SuiteClasses({ ProductTest.class }) public class JerseySpringSuiteTest { public static JerseyTest jerseyTest; @BeforeClass public static void init() { jerseyTest = new JerseyTest(new WebAp...
1
2,157
Magento custom search form
<p>I am trying to create custom search functionality in Magento 1.9. Instead of writing it from scratch, I want to piggy back the default search functionality and add in custom filters. First I copied the form.min template and replaced with drop downs that I want to use.</p> <p>form.custom.phtml:</p> <pre><code>&lt;?...
1
1,292
Issue with Hibernate EHCache program
<p>I am learning how to configure Hibernate with EHCache but facing some issues with it.</p> <p>I have below details in my `hibernate.cfg.xml file:</p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;!DOCTYPE hibernate-configuration PUBLIC "-//Hibernate/Hibernate Configuration DTD 3.0//EN" "http://hiberna...
1
1,708
How to integrate a Linq to Entity query that queries multiple entities in a repository and send data to View?
<p>I'm learning MVC, the repository pattern and EF and I need some advice as to how best to integrate a method which contains a query that queries multiple entities into the repository. </p> <p>At the moment, I have created a repository class which implements an interface and uses an instance of DbContext to retrieve ...
1
2,256
Webpack can't fix CSS override issue and bundle <style> elements in <head>
<p>In my app, lets say I have two JS pages A and B, and each import a different stylesheet (<code>import '../style/&lt;A or B.css&gt;'</code>).<br> Both stylesheets have identical classnames but but different properties. </p> <p>I run <code>yarn run dev ==&gt; dev: webpack-dev-server --inline --hot ==&gt; webpack -p<...
1
1,156
SendGrid is not sending an email
<p>I have been following this tutorial: <a href="http://www.asp.net/mvc/overview/security/create-an-aspnet-mvc-5-web-app-with-email-confirmation-and-password-reset" rel="nofollow">http://www.asp.net/mvc/overview/security/create-an-aspnet-mvc-5-web-app-with-email-confirmation-and-password-reset</a> . I have gone through...
1
1,786
Composer install\update authentication fails
<p>When I'm trying to install dependency from my private repository, I'm getting the following error:</p> <pre><code>&gt; php.exe composer.phar update Loading composer repositories with package information [RuntimeException] Failed to clone https://my.sta...
1
1,401
Flask pagination combined with query
<p>I'm currently trying to build a small flask app in python which takes in a csv via pandas and paginates the results. I've already finished the process of importing the dataset with pandas, converting it to a list of dictionaries and paginating the results into a table using flask_paginate. </p> <p>Now, I'd like to ...
1
2,026
`tkinter._test()` buttons are invisible when using pipenv
<p>I'm learning Tkinter right now and trying to work through my first issue, but finding Google hasn't been helpful.</p> <p>I'm running this code on Mac OS X 10.15.1 (Catalina)</p> <p>I'm using Python 3.7 and my code looks like so (lots of boilerplate per PEP8 standards):</p> <pre><code>""" Experiments in tkinter ""...
1
1,130
7-zip an in-use file
<p>We are running a number of Apache Tomcat servers. A good portion of the logs rollover as they should based on the hour or at the end of the day. However, there are still a number that remain locked by Apache Tomcat, or web services.</p> <p>Have actually logged this as a bug at - <a href="http://sourceforge.net/p/...
1
1,135
Split Spark dataframe and calculate average based on one column value
<p>I have two dataframes, the first dataframe <code>classRecord</code> has 10 different entries like the following: </p> <pre><code>Class, Calculation first, Average Second, Sum Third, Average </code></pre> <p>Second dataframe <code>studentRecord</code> has around 50K entries like the following: </p> <pre><code>...
1
1,064
Give Gridview cell font colour according to condition
<p>How can I give colour to gridview's cell text according to condition. I have a below gridview and I am taking data in gridview by code behind.</p> <pre><code> &lt;asp:GridView ID="GridView3" runat="server" AllowPaging="true" PageSize="5" AutoGenerateColumns="false" Width="100%" OnPageIndexChanging="GridView3_Pa...
1
1,218
Using Retrofit 2 but, have Expected BEGIN_OBJECT but was STRING at line 1 column 1 path $
<p>I make <a href="https://api.flickr.com/services/rest/?method=flickr.photos.getRecent&amp;api_key=eab3aa7d564989fd69048ec505e3e271&amp;format=json&amp;nojsoncallback=1" rel="nofollow">request</a> get photos from Flickr, using Retrofit 2.</p> <p>I create a class for parsing it:</p> <pre><code> public class Flickr...
1
1,624
Password text Field
<p>I am doing a project for class where I would like to create a little password login in Android Studio. I want to create something simple and I know how to do it on Java but I don't know how I would go about doing it in this application. I basically want to get up a password box and a button. On down of the button I ...
1
1,038
Python Splinter (SeleniumHQ) how to take a screenshot of many webpages? [Connection refused]
<p>I want to take a screenshot of many webpages, I wrote this:</p> <pre><code>from splinter.browser import Browser import urllib2 from urllib2 import URLError urls = ['http://ubuntu.com/', 'http://xubuntu.org/'] try : browser = Browser('firefox') for i in range(0, len(urls)) : browser.visit(urls[i])...
1
1,159
How can I allow numeric only in Swal Sweetalert
<p>I wanted to know how could I allow only numeric on this part.</p> <pre><code> { title: "Dollar Amount?", text: "How much is your Dollar Question worth?", inputPlaceholder: "Enter Amount" } </code></pre> <p>I'm using a Sweetalert plugin . It's been bugging me for days and I'm just new to front-end, I...
1
1,046
MySQL Syntax error in UNION ALL
<p>I have a query that uses multiple UNION ALL. I'm getting a syntax error and I can't find it. I think it has to do with using multiple unions. I'm only using MySQL. Any help is appreciated.</p> <p>ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server ver...
1
3,191
Struggling with saving data to database in ASP.NET MVC with Entity Framework
<p>I am just starting to learn C# &amp; ASP.NET MVC framework and I am trying to build a shopping cart functionality. This is my (add to cart method) that I think should work but does not. It adds an item to the cart but whenever I add another item the previous one is gone. Do anyone know why my database saving is not ...
1
1,530
Spring Jaxb2RootElementHttpMessageConverter not working with jaxb annotations
<p>I have spring set up to use: Jaxb2RootElementHttpMessageConverter as the message converter to convert an object to xml. In my rest service when a response is generated it does not adhere to the JAXB annotations i have provided on the model classes. <br />:</p> <p>BaseResponse:</p> <pre><code>@XmlRootElement(name="...
1
2,077
How to implement a queue of serial network calls then processing in RxSwift?
<p>I'm working on an app where I want to achieve the following using RxSwift and RxCocoa</p> <ol> <li>Download JSON containing url to X number of files</li> <li>Download file 1, process file 1</li> <li>Download file 2, process file 2</li> <li>Download file 3, process file 3</li> </ol> <p>... etc</p> <p>The key here ...
1
1,385
NPM issue deploying a nodejs instance using AWS codedeploy
<p>I am currently trying to automate deployment of a nodejs application to an EC2 instance via Github and AWS Codedeploy. I have followed the instructions from <a href="http://docs.aws.amazon.com/codedeploy/latest/userguide/welcome.html" rel="noreferrer">here</a> as closely as possible, but I have hit a snag with my A...
1
1,087
How can i write information text to a log file with colors?
<p>Today im writing the logging to a text file log:</p> <pre><code>/*---------------------------------------------------------------- * Module Name : Logger * Description : A logger * Author : Danny * Date : 10/02/2010 * Revision : 1.00 * ------------------------------------------------------...
1
1,883
Why is Facebook OAuth Dialog using outdated permissions list for my app?
<p>I've removed 20+ permissions from Facebook for our app, yet for the life of me I cannot get Facebook OAuth Dialog requests to reflect the new reduced permissions list. It continues to ask for <em>more</em> permissions than I'm asking for, regardless of what I pass in.</p> <p>I've tried with my accounts that were pr...
1
4,786
C# Binary Search Tree Problem
<p>I have programmed a binary search tree with method Add(). But it is not working. When I add number to the tree, root is still empty. Why?</p> <p>EDIT: Code on pastebin, here I am havig some problems with displaying <a href="http://pastebin.com/jvP0WwhR" rel="nofollow">http://pastebin.com/jvP0WwhR</a></p> <pre><cod...
1
1,805
FlywaySqlException: Unable to insert row for version `11` in Schema History table `schema_version`: Field `version_rank` doesn't have a default value
<p>I'm getting this error when running my Spring Boot app with a new migration. It has worked for 10 migrations so far. The field does indeed not have a default value. There shouldn't be a need for a default because Flyway should be inserting the value 11 in that field. </p> <pre><code>Caused by: org.flywaydb.core.int...
1
1,614
No mapping exists from object type DataTable to a known managed provider native type
<p>I am trying to pass a datatable as a parameter into a sql stored procedure.</p> <p>I have a helper class that executes the code for me:</p> <p>Helper class method I am using:</p> <pre><code>public int ExecNonQueryProc(string proc, params object[] args) { using (SqlCommand cmd = CreateCommand(proc, CommandType...
1
1,102
Initialize slf4j with log4j2.xml
<p>I want to use slf4j over log4j. I added the following dependencies in my pom.xml (I used 1.7.25 for slf4j and 2.10.0 for log4j2):</p> <pre><code>&lt;dependencies&gt; &lt;dependency&gt; &lt;groupId&gt;org.slf4j&lt;/groupId&gt; &lt;artifactId&gt;slf4j-api&lt;/artifactId&gt; &lt;version&gt;...
1
2,474
PySide2 Cannot Find Qt_5.15
<p>This Friday my PySide2 installation stopped working inside an Ubuntu 18.04 container (based on nvidia/opengl:1.0-glvnd-runtime-ubuntu18.04). I now get the following error:</p> <pre><code>python3 -c "from PySide2 import QtWidgets" Traceback (most recent call last): File "&lt;string&gt;", line 1, in &lt;module&gt; ...
1
1,274
<thead> and <th> not match width of table
<p>If you look at all of my <code>&lt;th&gt;</code> tags in the <code>&lt;thead&gt;</code> tag in the table, you can see if each has its own class: col1, col2, col3, col4... col9 I also have a <code>&lt;thead&gt;</code> in the table.</p> <p>Now everything in the css is fine for the table except for my table headings....
1
1,919
No route matches [GET] "/signout"
<p>I saw a few postings related to this topic, but the given solutions did not really clarify things for me ...</p> <p>So, I am working on a rails (version 3.2.2) application that followed the setup from Michael Hartl's Ruby on Rails tutorial. The application has a signout link, which worked well until recently, when ...
1
3,324
c sockets - not receiving all sent data
<p>I'm having some problems with two programs I wrote, a server and a client. To keep it easy and chronological, I first wrote the server and tested it with both telnet and netcat and everything works fine (except for a difference in the return value of read() / recv(), as it looks like the normal telnet program adds a...
1
2,265
AVCaptureVideoPreviewLayer orientation on rotation
<p>Simple question, how do I change AVCaptureVideoPreviewLayer orientation when iPhone is rotated from portrait to landscape mode and vice versa. </p> <p>I know this question has been asked many times and I am not the first one to run into it but I have tried every available solution that I could google or find but it...
1
1,633
Kafka consumer groups and partitions
<p>I'm having trouble to grasp the relationship behind partitions and customer groups.</p> <p>The ideas by themselves are pretty clears, each message that's pushed to a topic gets replicated to all of it's partitions, right? That way, if two different clients connect to two different partitions of the same topic then ...
1
1,078
Error Installing ADFS 3.0
<p>i'm trying to install ADFS on a new installation of a Win Server 2012R2 and I get an error in the post-deployment configuration. The Domain Controller is a Win Server 2008R2. Please someone help me, i've been trying to solve this for 3 days.</p> <p>The error says:</p> <blockquote> <p>Schema verification failed f...
1
3,676
Reading Config File in AWS Glue
<p>I have created a Glue Dev Endpoint to test my code before deploying to AWS Glue. Below, you will find a screen shot of the project architecture. <a href="https://i.stack.imgur.com/QNhuU.png" rel="nofollow noreferrer">Project layout</a> in gluelibrary/ there is config.ini I am able to successfully debug the code and ...
1
1,120
Add Colour Gradient to Circular Progress Bar iOS
<p>I am having difficulty adding a colour gradient to my circular progress bar</p> <p><a href="https://i.stack.imgur.com/aDyEN.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/aDyEN.png" alt="enter image description here"></a></p> <p>My setup:</p> <ol> <li>Storyboard: ViewController with an empty v...
1
1,294
Poco::Net::HTTPClientSession json data Content-Type not received
<p>So I am developing a server side Nodejs/expressjs app and a clientside c++/Poco app. I've managed to create a session between where the server is hosted and client. However, any time i try to send my JSON payload, express.js shows req.body as empty.</p> <p>Google didn't reveal much besides that Content-Type was lik...
1
1,141
Google Apps Script: reload page after submit form
<p>I finally am at the finals steps of my app and there's just one thing I cannot figure out how to write: I'm using an iframe to load a page in Google Apps Script in which I have a form.</p> <p>I'm able to write data in a Google Spreadsheet and I get a successful message if data are correctly inserted. The only thing...
1
2,096
How to style vue-bootstrap-datetimepicker by changing the width and inserting icons in it?
<p>I have two date pickers objects from the package <a href="https://www.npmjs.com/package/vue-bootstrap-datetimepicker" rel="nofollow noreferrer">vue-bootstrap-datetimepicker</a>. They work perfectly in terms of functionality but I would like to make some changes to their appearence. I have the following code that is ...
1
1,142
Inserting time section in date field using oracle
<p>I have a procedure in oracle:</p> <pre><code>CREATE OR REPLACE PROCEDURE ONE ( p_GUID IN ONE.GUID%TYPE, p_START_DATE IN ONE.START_DATE%TYPE, p_END_DATE IN ONE.END_DATE%TYPE, p_RETURN OUT INTEGER ) AS BEGIN INSERT INTO ONETABLE (GUID, START_DATE, END_DATE) VALUES (p_GUID, to_date(p_STA...
1
1,260
Live Binding Events in jQuery UI Widget Factory using this._on()
<p>I am currently developing a cascading tree menu. When a tree item is expanded it creates new <code>&lt;div&gt;</code>'s below it that may also be expanded. I can get the first set of <code>&lt;div&gt;</code>'s to bind and thus expand, but I can't seem to get the newly created div's to bind automatically using the "t...
1
3,093
Verilog HDL, User Input from an FPGA
<p>I am currently working on a project in Verilog HDL with an FPGA obtained from my school (I am running Quartus II vers. 10.1 and 11.0 (I've tried both)). I am getting a very bizarre bug that I cannot figure out for the life of me.</p> <p>I am developing a Morse Code program which detects dots and dashes, and then ou...
1
1,201
MAC OS X Yosemite Apache localhost/~username/ not working
<p>I recently upgraded to MAC OS X Yosemite and my apache config to point <code>localhost/~username/</code> to <code>~/Sites</code> are not working.</p> <p>Tried to follow this tutorial: <a href="https://discussions.apple.com/docs/DOC-3083" rel="nofollow">https://discussions.apple.com/docs/DOC-3083</a></p> <p>My file...
1
7,153
SearchInfo always coming out null
<p>I'm having trouble setting up the search view in the action bar.</p> <p>I followed the developer site, but it doesn't work. I get the feeling that I am missing something.</p> <p>When I run my code, it always outputs "failed to get searchable info" (MainActivity.setupSearchView()).</p> <p>MainActivity.java</p> <p...
1
1,461
Insert a new worksheet into a spreadsheet document OpenXml
<p>What im trying to do is create multiple worksheets within a work book using datasets the code i have to create a sheet data object from a data set is:</p> <pre><code> public static SheetData CreateDataSheet(DataSet ds) { var xlSheetData = new SheetData(); if (ds.Tables.Count &gt; 0 &amp;&...
1
1,943
I can't use AlertDialog in onMessageReceived
<p>I try to use AlertDialog in onMessageReceived, but I have this error.</p> <pre><code>05-04 11:27:40.038 30721-31424/com.xxx.xxx E/AndroidRuntime: FATAL EXCEPTION: pool-4-thread-1 Process: com.xxx.xxx, PID: 30721 ...
1
2,535
Customizing the 'back' arrow color in Actionmode with appcompat-v7
<p>My main theme is based on <code>Theme.AppCompat.Light</code> as follows:</p> <pre><code>&lt;style name="core" parent="Theme.AppCompat.Light" &gt; &lt;!-- Material, Yo!--&gt; &lt;item name="colorPrimary"&gt;@color/theme_main_color&lt;/item&gt; &lt;item name="colorPrimaryDark"&gt;@color/deep_purple&lt;/it...
1
1,529
Hibernate :Cannot add or update a child row: a foreign key constraint fails
<p>i have this issue :</p> <blockquote> <p>Cannot add or update a child row: a foreign key constraint fails (<code>bytecodete</code>.<code>company_links</code>, CONSTRAINT <code>FK_company_links_1</code> FOREIGN KEY (<code>id</code>) REFERENCES <code>company</code> (<code>idUser</code>) ON DELETE CASCADE ...
1
1,699
How To Toggle The cell Colour And Text In A TStringGrid On And Off
<p>I am running Lazarus v0.9.30 (32 bit compiler).</p> <p>I have a TForm with a standard TStringGrid on it. The grid has the following properties set. RowCount = 5, ColumnCount = 5, FixedCols = 0, FixedRows = 0.</p> <p>I Googled some <a href="http://www.festra.com/wwwboard/messages/12892.html" rel="nofollow">code</...
1
1,241
Flask HTML Template to fill in MySQL records
<p>How can I fill in {{ }} in HTML with values from a MySQL DB. The app is written in Flask, Python version 2.7.13. Flask 0.12.2</p> <p>when browsing to <a href="http://127.0.0.1:5000/emp" rel="nofollow noreferrer">http://127.0.0.1:5000/emp</a> I only get the hard coded HTML tags.</p> <p><strong>I would like to disp...
1
1,726
django middleware error with middleware takes no argument
<p>I have been encountering this error since and I have checked Django docs and search many sites through google but still don't get the solution to this error, thanks in advance. this error comes whenever I want run server </p> <pre class="lang-py prettyprint-override"><code>from datetime import timedelta from dja...
1
2,023
How to add a key to the table
<p>Getting this error:- Playing with react and react-table for the first time. Using this code:-</p> <pre><code>render() { const itemData = this.state.itemData; const columns = [{ Header: 'ID', Cell: props =&gt; &lt;span key={props.value}&gt;{props.value}&lt;/span&gt;, ...
1
1,141
How to plot the Eigenvalues when solving matrix coupled differential equations in PYTHON?
<p>Lets say we have three complex matrices and a system of coupled differential equations with these matrices. </p> <pre><code>import numpy, scipy from numpy import (real,imag,matrix,linspace,array) from scipy.integrate import odeint import matplotlib.pyplot as plt def system(x,t): a1= x[0];a3= x[1];a5= x[2];a7...
1
1,188
[Symfony 5]Confirmation message after logout
<p>On Symfony 5, using the built-in login system, it seems impossible to add a confirmation message after logout. I have followed strictly the steps described on <a href="https://symfony.com/doc/current/security.html#logging-out" rel="nofollow noreferrer">the official website</a>. Unfortunately, the method logout insid...
1
1,202
Spring - JPA -m@Transactional not committing data in DB
<p>I have seen many questions but all of their solution still not clear. here is my set up my Spring Context file</p> <pre><code> &lt;?xml version="1.0" encoding="UTF-8"?&gt; &lt;beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:context="http://ww...
1
2,674
Different grouping for same elements by orders in HANA SQL
<p>I have a table like this:</p> <pre><code> NanoTime Sensor Key Rank 15,899,129,832,916 Gyroscope i 1 15,899,132,632,874 Gyroscope i 2 15,899,152,377,999 Gyroscope i 3 15,900,080,214,835 Gyroscope o 1 15,900,092,388,626 Gyroscope o 2 15,900,112,529,...
1
1,050
Parsing a chemical formula from a string in C#?
<p>I am trying to parse a chemical formula (in the format, for example: <code>Al2O3</code> or <code>O3</code> or <code>C</code> or <code>C11H22O12</code>) in C# from a string. It works fine unless there is only one atom of a particular element (e.g. the oxygen atom in <code>H2O</code>). How can I fix that problem, and ...
1
1,223
Matlab VLFEAT -multiple matching
<p>I am performing SIFT matching with VLFEAT in Matlab. </p> <p>A single match is simple to display: I followed <a href="http://www.vlfeat.org/overview/sift.html" rel="noreferrer">the tutorial.</a> </p> <p><strong>Update 1:</strong> (extracting the problem from my needs)</p> <p>Next, I consider 4 different views of ...
1
2,407
Vue component with height of 100% changes height on v-if re-render
<p>I have a Vue component, which has the class "tab-body-wrapper" whose purpose is to display the "slot" for whichever tab is currently active.</p> <p><strong><em>After troubleshooting, it appears that this ".tab-body-wrapper" component, which I have set a height of 100% in my CSS, reduces in height during the v-if re...
1
1,224
Error deploying MyFaces CODI + Weld + JSF in Apache Tomcat 7
<p>I'm new using JSF and I noticed that the JSF doesn't provide some useful annotations, like @ViewAccessScoped (CODI). For use the CODI, I need to use the CDI dependency, so I configured my project with Weld.</p> <p>Then, <strong><em>JSF + Weld + Tomcat 7 works fine</em></strong>, changing annotations scope to Weld a...
1
8,555
How to wait for a process executed by proc_open() in php?
<p><strong>please after reading this question , do not say that it is copied.I have already searched on web but none of the solution worked for me.</strong></p> <p><strong>What i am doing :-></strong><br> I am taking a source file (say .c) through php by running apache server on local host.I am saving that file in "/...
1
1,132
High Charts not working
<p>I followed <a href="http://jsfiddle.net/highcharts/kh5jY/" rel="nofollow">this link</a> to draw the bar graphs using HighCharts Charting library.</p> <p>It works on <code>jsfiddle</code> but when I try to build a HTML file out of this code, it does not shows any thing.</p> <p>Here is my html file.</p> <pre><code>...
1
1,271
How to populate dataframe from dictionary in loop
<p>I am trying to perform entity analysis on text and I want to put the results in a dataframe. Currently the results are not stored in a dictionary, nor in a Dataframe. The results are extracted with two functions.</p> <p>df:</p> <pre><code>ID title cur_working pos_arg neg_arg ...
1
1,556
Android List View Row margins
<p>I was trying to create a simple list view that has some padding for each row.</p> <p>I did it in a really simple way, but I'm not sure if it is the right™ way to do it.</p> <p>This is what I got (code is below). As you can see when you tap a row, it is fully highlighted, and I want (if possible) to highlight only ...
1
1,406
d3pie.Js Pie chart error to get the script started
<p>I am trying to work with d3pie script but for some reason the script dosent run </p> <p>This is my html </p> <pre><code>&lt;html&gt; &lt;head&gt; &lt;script type="text/javascript" src="./d3/d3.min.js"&gt;&lt;/script&gt; &lt;script type="text/javascript" src="./d3pie.min.js"&gt;&lt;/script&gt; &lt;scrip...
1
1,565
Retrofit - parsing json without SerializedName
<p>I have an external web service that returns unnamed <code>json</code> like this;</p> <pre><code>[ { "page": 1, "pages": 1, "per_page": "310", "total": 304 }, [ { "id": "ABW", "iso2Code": "AW", "name": "Aruba", "region": { "id": "LCN", "iso2code": "ZJ...
1
1,281
IllegalArgumentException for dataSource in Spring application
<p>I am trying to deploy a simple spring app. It takes a username(from a jsp), insets the value into a db and displays a greeting on a new jsp page saying <code>hello!, [username]</code>.</p> <p>My environment is:</p> <ul> <li>OS: windows xp professional</li> <li>Db: MS access (this is just for trying things out at ...
1
1,502
How to fix javax.net.ssl.SSLHandshakeException even though i have already added the certificate
<p>I am working on a script to control my lights and because I'm lazy the communication is via email (works decently fast I know because it used to run on python but I'm writing it in java for some separate reasons) know the issue is I keep getting a <code>javax.net.ssl.SSLHandshakeException</code> error and I tried th...
1
2,428
ASP.NET MVC3: 2 forms on page, submit triggers the wrong one
<p>I have 2 forms on the same page. One is a form in a partial view which is rendered via a child action we'll call this PodForm. The second is rendered by the current action.</p> <p>So my code looks a little like this (please ignore names etc, this is example code):</p> <p>Form.cshtml</p> <pre><code>@model MyProjec...
1
1,140
How to fix "com.android.Volley.TimeoutError" in android while trying to perform a registration activity
<p>I am using wamp server as my localhost and I have an app that I want to capture user's particulars during registration. Notwithstanding, the app runs fine on my mobile phone but when I fill the the editText and click my registration button I get this error "Registration Errorcom.android.Volley.TimeoutError". </p> <...
1
3,294
how to use angular-ui modal templateURL with node/express routing
<p>I'm somewhat confused as to why I get this error. I have a hunch it's with the templateURL and I have tried a few things but to no avail. I have read the documentation and scoured a bunch of SO posts but none of them helped much. I want to use Express/Node to serve up the pages and I have a feeling that's why my tem...
1
1,052
Simple Firebird Query
<p>I am trying to do a while loop in Firebird to execute all the values from an SP using FlameRobin tool. However this is not working. Any suggestion?</p> <pre><code>declare i int = 0; while ( i &lt;= 2 ) do BEGIN SELECT p.SOD_AUTO_KEY, p.CURRENCY_CODE, p.SO_CATEGORY_CODE, p.SO_NUMBER, p.INVC_NUMBER, p.ENTRY_DATE,...
1
2,238
Checkbox click event not triggered in android listview with checkbox
<p>I am trying to implement an android listview with checkbox. However, I am unable to get the click event for my checkbox. </p> <p>I can make the code work if I put the checkbox listener on the adapter class. However I need the information at the main class instead. </p> <p>Using the main class, I can get the event ...
1
2,400
How to create a TfrxChartView in code?
<p>I'm using Fast Reports 4.13.1. I need to display a number of charts on my summary band, and I'm trying to dynamically create them in <code>OnBeforePrint</code> event handler of the band. The problem is, while the charts are created correctly, the series don't show the data I'm adding to them. Here's my <code>OnBefor...
1
1,145
How to refresh a table without creating a separate jsp?
<p>I have a table and one search fields, based on what is entered in the search fields the contents of the table are refreshed and if nothing is entered in the search fields the full table is loaded. Here when the user clicks on Go button the ajax call is made.</p> <p>Currently, I have two jsp as below:</p> <p><stron...
1
2,381
Help with updating access database using Update(dataTable)
<p>I have looked all over the place but I cant seem to get this to work.</p> <p>I am trying to update an Access database from a DataGridView. The loading of the database to the grid works fine. I used the instructions described in <a href="http://www.switchonthecode.com/tutorials/csharp-tutorial-binding-a-datagridvie...
1
1,311
Issue import vendor file in cakephp
<p>I'm trying to import a non cake php file into a view. I copied the file into the Vendors folder and then added the following line to my code:</p> <pre><code>&lt;?php App::import('Vendor', 'sitecommon'); ?&gt; </code></pre> <p>But this gives me the following error message:</p> <pre><code>Fatal error: Cannot redecl...
1
4,346
Python Multiprocessing, TypeError
<p>I am new to multiprocessing and I need your help.</p> <p>I have four variables that each of them can take up to 4 values (integers or floats) and I stored all of them in a list called <code>par=[A, B, C, D]</code>. (see below)</p> <p>I have created a list of possible combinations with <code>par = itertools.product(*...
1
1,608
Laravel 5.4 set locale in session
<p>Update. I would like to know how to set locale in session. </p> <p>my language picker isnt' input type, but just text. here is blade fragment - this is language picker:</p> <pre><code>&lt;div class = "col-lg-5 col-md-5" id = "lang"&gt; &lt;ul id = "lang_menu"&gt; &lt;li class = "language active"&gt;La...
1
1,156
Bootstrap 5 Accordion is not working properly when placed in collapsed div
<p>I am working on the below code. Why is the Accordion not working properly when placed in collapsed div? As you can see opening Accordion #2 is not closing previously opened accordion:</p> <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false"> <div class="snippet-code"> <pre ...
1
2,062
java.lang.NullPointerException: Cannot invoke "service" because "this.contentService" is null
<p>Hey When i am making a get request to my spring microservice i am recieving this error and same from my other microservices as well i am sorry i am new with microservices and spring i think its something related to my jwt filter can someone help me with this</p> <pre><code>2021-10-21 21:10:31.006 ERROR 10252 --- [ni...
1
8,520
Azure AD - Check for security group membership - (Node.js, passport, Azure Web App)
<p>We are trying to set up an authentication/authorization-process with the following requirements:</p> <ul> <li>Authentication: Done by Azure AD.</li> <li>Authorization: Only members of a specific security groups should be allowed to access the app.</li> </ul> <p>While the authentication part seems to work without p...
1
1,441
creating Access db with ADOX
<p>I'm trying to create an Access database consisting of two tables. I'm getting System.Runtime.InteropServices.COMException on line 88 inside the following method. The exception occurs when I try to append a table to the Catalog object. Could someone please explain what's wrong and how to fix this?</p> <pre><code>...
1
1,136
style.display="none" not working
<p>I am trying to do a simple if statement in javascript. The script will determine the visibility of a <code>div</code> based on the option selected in a <code>select</code>.</p> <p>If I select any option, it will act like I selected "Custom" and display the <code>div</code>. But if I then select "This Month" or "Pas...
1
4,628
Cannot read property 'top' of undefined - jQuery
<p>I'm getting the following error in Chrome dev console.</p> <pre><code>Uncaught TypeError: Cannot read property 'top' of undefined jquery.tools.min.js:19 c jquery.tools.min.js:19 a.extend.show jquery.tools.min.js:...
1
2,074
Kubernetes: Failed to get GCE GCECloudProvider with error <nil>
<p>I have set up a custom kubernetes cluster on GCE using kubeadm. I am trying to use StatefulSets with persistent storage.</p> <p>I have the following configuration:</p> <pre><code>kind: StorageClass apiVersion: storage.k8s.io/v1 metadata: name: gce-slow provisioner: kubernetes.io/gce-pd parameters: type: pd-sta...
1
1,792
CoreScanner (Motorola) Events not being triggered C#
<p>I am attempting to a simple windows form application, where the users scans a barcode then the application decodes the barcode, then inserts an row into a database. A basic track application. I picked up a Motorola scanner and downloaded the SDK for windows development. I read though "APPENDIX A WRITE SIMPLE APPLICA...
1
1,609
How to capture R Shiny text input of variable name for analysis
<p>Newbie to R and working through simple R Shiny examples for learning purposes. The following program enables user to upload a delimited data file, at which point head() displays first few rows. I also want to allow use to input in a text input the name of a variable in the file to generate a frequency. How can i cap...
1
1,353
backbone view render not creating
<p>Just beginning with backbone and after few hours can't seem to get even a view render working correctly. I've included all appropriate JavaScript files in HTML. Here is my script:</p> <pre class="lang-js prettyprint-override"><code>(function($) { // MODELS var Paper = Backbone.Model.extend ({ defaults : { ...
1
1,175
XPathReader error: java.lang.String cannot be cast to org.w3c.dom.Node
<p>I am trying to parse data from XML that has been obtained from a <code>Clob</code> type. For some reason, I am getting this exception... I can't figure out why. I have obtained the Clob from an oracle database column that contains an <code>XMLType</code> value, that is the XML. I have successfully extracted the XML ...
1
1,074
Enabling or disabling validation upon context
<p><strong>Introduction</strong></p> <p>I have two <code>TextBox</code> in my view, each binded to some properties in my view-model (<code>Property1</code>, <code>Property2</code>). </p> <p><code>TextBox</code> are alternatively enabled upon some boolean, and properties, are validated using <code>IDataErrorInfo</cod...
1
1,342
CGridView with relations, ID filter doesn't work `Integrity constraint violation`
<p>I'm trying to make a cgridview that can filter data from relations table. This is my first time with CGridView and I just can't get it to work. Help is appreciated. I have 2 problems. first: i have managed to get a dropdown filter of my users (avtor, relation in Novica), but when I choose one, it always returns this...
1
2,578
Django 2: Multiple slugs in url
<p>I am currently following a django tutorial by <a href="https://www.youtube.com/watch?v=NqHX4eF2tw8" rel="nofollow noreferrer">sentdex</a>. The tutorial is making a clone of <a href="https://pythonprogramming.net/" rel="nofollow noreferrer">https://pythonprogramming.net/</a>. In the tutorial he uses only one slug in ...
1
1,546