title stringlengths 13 150 | body stringlengths 749 64.2k | label int64 0 3 | token_count int64 1.02k 28.5k |
|---|---|---|---|
Using angular pipe globally | <p>I am working on Ionic project with angular, I need to use pipe for almost all my pages but I am getting errors:</p>
<h1>Logic</h1>
<ol>
<li>If I use <code>declarations</code> in one of my pages pipe works just fine</li>
<li>If I add same <code>declarations</code> in another page it returns error that
this pipe has... | 2 | 1,311 |
Laravel 5.3 and Vue Webpack setup | <p>Hello I am getting JS errors in app.js. Basically it is not liking require('./bootstrap'); and gives the error:</p>
<pre><code>all.js:50750 Uncaught ReferenceError: require is not defined
</code></pre>
<p>My app.js:</p>
<pre><code>/**
* First we will load all of this project's JavaScript dependencies which
* in... | 2 | 3,074 |
Press and Drag in One Click? | <p>I have a program where I am creating a JLabel on a click and then dragging that to another portion of the interface. </p>
<p>What I want is to click somewhere in the JPanel, have it drop a JLabel there, and then drag another JLabel all in the same click. </p>
<p>I am able to do this, but it takes multiple clic... | 2 | 1,167 |
Posting multiple checkboxes using PHP and sending to an email | <p>I am fairly new with using PHP. I have a form that I am using to send a contact form form a webpage to an email address. </p>
<p>I am having trouble passing multiple checkboxes styled with a comma. For example, if the user picks checkbox1 and checkbox4, the code will be styled: checkbox1, , , checkbox4. I don't wan... | 2 | 5,672 |
Error when building image from requirement.txt in docker | <p>I am trying to build a Docker application that uses Python's gensim library, version 3.8.3, which is being installed via pip from a requirements.txt file.</p>
<p>However, Docker seems to have trouble while trying to do
RUN pip install -r requirements.txt</p>
<p>My Requirement.txt for reference -</p>
<pre><code>boto=... | 2 | 5,301 |
Webpack error after upgrading to Angular 10 | <p>I just performed an upgrade from Angular 6 to Angular 10 for our application. I have gone through various component and module TypeScript files, and have fixed any imports that became outdated, and weren't mapping correctly.</p>
<p>I kept getting an error when I would run ng serve that would say the following:</p>
<... | 2 | 3,533 |
AWS AppSync Subscription fails during handshake | <p>I'm trying to set up a graphql subscription but I'm getting the error:</p>
<pre><code>Unhandled GraphQL subscription error Error: Error during subscription handshake
</code></pre>
<p>I'm using AWS Cognito User Pools for the authorisation.</p>
<p>To create the Subscription I'm using: </p>
<pre><code>this.subscrip... | 2 | 1,250 |
How to create a countdown clock with CSS | <p>I saw <a href="http://dyn.com/blog/how-to-create-a-countdown-clock-with-css3/" rel="nofollow noreferrer">this article</a> on how to create a CSS countdown timer. It seemed interesting to me, so I tried to follow the instructions and get it to work. Here's what I came up with.
It doesn't look right and unfortunately ... | 2 | 1,463 |
In bootbox prompt how to increase the size of text area | <pre><code>bootbox.dialog({
size:large,
title: 'Reasons for Rejection?',
closeButton: true,
message:
'<div align="center"> ' +
'<textarea cols="10" id="tarea" rows="10"></textarea> ' +
'</div> ',
className: "medium",
buttons: {
cancel: {
la... | 2 | 1,111 |
CSS Unknown Distortions happening only on iOS in Angular Application | <p>A several month mystery has yet to be solved and I am hoping someone has seen this before and knows how to fix it. Using the Angular framework to build a PWA, I am encountering an issue with how CSS images and CSS transformations are causing distortions and apparitions which effectively means the app can't be releas... | 2 | 1,078 |
JUnit, Spring (SpringJUnit4ClassRunner) and Spring wiring is not working properly (tried running from Eclipse and command line Maven)? | <p>I am encountering an issue where a bean that I am attempting to wire via a spring config is not working? The bean accessor is showing up as null during a check within my test case (but I do observe in the logs that the setter is actually setting it to a valid value. Could really use some help...</p>
<p>Here is th... | 2 | 2,045 |
ZK How to sort a listbox with multiple components in a listcell | <p>In below listbox, i have listcell that contains both "Select" and "Label" component. Hence even the listheader applied sort="auto", it not actually worked. Any way </p>
<pre><code><listbox id="idResultListBox" checkmark="true" vflex="1" >
<listhead>
<listh... | 2 | 1,387 |
Vim error `undefined symbol: PyUnicodeUCS2_AsWideChar` after installing YouCompleteMe | <p>I'm trying to install <a href="https://github.com/Valloric/YouCompleteMe" rel="nofollow">YouCompleteMe</a> for Vim 7.4 with included patches 1-712 on Ubuntu 15.10.</p>
<p>I have compiled YouCompleteMe by <a href="https://github.com/Valloric/YouCompleteMe#full-installation-guide" rel="nofollow">hand</a> since I enco... | 2 | 1,239 |
No such file or directory @ rb_sysopen, Working code as below in body | <pre><code>#!/usr/bin/env ruby
require 'roo'
require 'pathname'
Dir.glob("**/*.xlsx") do |file|
xlsx = Roo::Spreadsheet.open(file)
bookname = xlsx.column(1)
chapter_number_array = xlsx.column(2).uniq
chapter_number_array.each do |chapter|
book_name = bookname[1] if bookname
chapter_number =... | 2 | 1,144 |
Decompiler tools modify the source code for .class file in java | <p>I used <strong>DJ JAVA DECOMPILER</strong> tool to get back the <strong>source code</strong> from <strong>.class file</strong> in java. What the source file it generated was having <strong>different code</strong> than what i coded earlier in the <strong>original source program</strong>.</p>
<p>What my doubt is:</p>... | 2 | 1,191 |
MockMVC returned empty body | <p>When I mock passing valid id, the test run successful, but when I pass invalid id, the returns return 404, which was expected, but there are no response, and when I normal Http Request, it returns response body with message not found and status 404. What am I doing wrong here?</p>
<pre><code>@RunWith(MockitoJUnitRu... | 2 | 2,935 |
Ionic 2 - Error while installing node_modules with npm install? | <p>I've installed latest <a href="https://nodejs.org/dist/v8.1.0/node-v8.1.0-x64.msi" rel="nofollow noreferrer">Node JS ( v 8.1.0 )</a>, Ionic and Cordova then tried to install <code>node_modules</code> using <code>npm install</code> command in ionic demo tab project created using <code>ionic start myApp tabs</code> an... | 2 | 3,390 |
SQL insert multiple rows, foreach | <p>I'm trying to <code>insert</code> multiple <code>rows</code> into my DB dependening how many iterations of an array are returned.</p>
<p>The insert is working, but doenst insert more than 1 row, regardless of whats in the array.</p>
<pre><code>function createOrder(){
$CustomerID = $_SESSION['CustomerID'];
$Ba... | 2 | 1,288 |
find specific nodes in d3js tree | <p>I am trying to find specific nodes on the tree layout. I found this example on plunkr:</p>
<pre><code>function collapse(d) {
if (d.children) {
d._children = d.children;
d._children.forEach(function(d1){d1.parent = d; collapse(d1);});
d.children = null;
}}
function find(d, name) {
if (d.name == name){
while... | 2 | 4,103 |
Placing Modals in Child Components in Vue.js | <h1>Background</h1>
<p>Typically, when using modals within Vue.js components, it is the norm to create a reusable <code>modal</code> component, and then control the state of this component using events from child components.</p>
<p>For example, consider the following code:</p>
<h2><code>App.vue</code></h2>
<pre><co... | 2 | 1,126 |
IntelliJ community maven pom.xml error suggesting cucumber jar version conflicts | <p>I get this version conflict error in my maven pom.xml file:</p>
<p><strong>Could not resolve version conflict among [io.cucumber:cucumber-core:jar:6.11.0 -> io.cucumber:messages:jar:15.0.0, io.cucumber:cucumber-core:jar:6.11.0 -> io.cucumber:html-formatter:jar:13.0.0 -> io.cucumber:messages:jar:[15.0.0,16.0... | 2 | 5,665 |
In ARCore, how do I best place a triangle in my world near a Pose, that I can use for ray intersection? | <p>I'm working with ARCore in Android Studio using java and am trying to implement ray intersection with an object.
I started with Google's provided sample (as found here: <a href="https://developers.google.com/ar/develop/java/getting-started" rel="nofollow noreferrer">https://developers.google.com/ar/develop/java/gett... | 2 | 2,275 |
Show all lines in GenomicRange package output | <p>I am working with GenomicRange R package. I have an input file like this:</p>
<pre><code>dvex108056 + 87 206
dvex108056 + 87 226
dvex108056 - 101 240
dvex108056 - 104 240
dvex108056 - 59 188
dvex108056 - 68 197
dvex108056 - 70 208
dvex108056 - 75 211
dvex108056 - 78 217
dvex108056 - 79 218
dvex108056 - 84 223
dvex... | 2 | 1,509 |
TypeError: Cannot read property 'name' of undefined Node | <p>I'm trying to update user info with mongoose function and got these errors in postman : </p>
<pre><code> TypeError: Cannot read property 'name' of undefined
at router.put (/Users/wailin/Documents/Projects/Node/meanauthapp/routes/usersRoute.js:86:23)
at Layer.handle [as handle_request] (/Users/wai... | 2 | 1,618 |
How should I adjust the orientation of the image captured and uploaded from smart devices using jQuery/PHP? | <p>I'm using <strong>PHP, jQuery, AJAX, HTMl5, Bootstrap framework(v.3.3.0)</strong> for my website.</p>
<p>I'm allowing user to capture photo using device's camera and upload the same to the server. </p>
<p>The issue I'm facing is when I upload such captured image the orientation of image saved on server changes. Th... | 2 | 1,377 |
Can someone get this custom AlertDialog to actually work? | <p>I asked another question about custom AlertDialog <a href="https://stackoverflow.com/questions/7825720/extending-alertdialogs-in-android-where-to-find-examples-how-to-get-title-and">here</a>.</p>
<p>Then I clicked my way to this custom AlertDialog (found <a href="http://www.devdaily.com/java/jwarehouse/apps-for-and... | 2 | 1,065 |
Bundle inside Intent from Native cpp application using Binder | <p>I'm trying to call an intent from native cpp code.
Basically, from what i've understand, i have to compose a Parcel to match the exact deserialization sequence from frameworks/base/core/java/android/app/ActivityManagerNative.java ; case BROADCAST_INTENT_TRANSACTION.</p>
<p>The progress so far is that i've received ... | 2 | 1,725 |
selectable RecyclerView performance issues | <p>I am currently trying to achieve an app to edit weekly timeframes.
Like mechanical timers for sockets, but in my case for every weekday.</p>
<p><a href="https://i.stack.imgur.com/S8kfh.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/S8kfh.png" alt="enter image description here"></a></p>
<p>The g... | 2 | 8,428 |
Angular JS 500 Internal Server error | <p>I've been trying to solve this issue but unable to. On a click of this button btnVerifyWhoYouAre I get this 500 internal server error. Am I doing something wrong here?</p>
<p>This is my Angularjs file:</p>
<pre><code>var myApp = angular.module('ValidateSecureEmailApp', ['ui.mask', 'ui.event', 'ui.validate'])
.conf... | 2 | 1,314 |
I'm getting Invocation of init method failed; nested exception is java.lang.IllegalArgumentException on Repository class method Invocation | <p>I'm getting following exception while starting my service</p>
<p>... org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'levelDetailsService': Unsatisfied dependency expressed through field 'storeRepo'; nested exception is org.springframework.beans.factory.BeanCreationExc... | 2 | 1,485 |
I encounter this NoNullAllowedException when I try to add a new row to my data table in Visual Studio 2013 for Desktop | <p>Can someone help me with this</p>
<p>An unhandled exception of type 'System.Data.NoNullAllowedException' occurred in System.Data.dll Additional information: Column 'TrainingSessionIndex' does not allow nulls.</p>
<p>I get this at 'Add a new row to the Operator table.
<code>rw = TestdbDataSet1.Ta... | 2 | 1,382 |
Angularjs ajax request in Symfony2 and Doctrine json response with relationships | <p>I am trying to work with Symfony2, Doctrine and Angujarjs. There is no problem with Symfony2 or Doctrine but I have issues using an ajax request with angularjs. Either it doesn't load anything and I did make a mistake while loading the json (json comes from Symfony and its working) or if it's working, but the json d... | 2 | 1,762 |
Lumen JWT Auth always return 401 in other route after login success | <p>I have lumen + jwt restapi with custom users table (ex : pengguna) with nomor as primary key and tgl_lahir as password..there is no problem with api/login and it's generate a token but when i try with other route such as api/buku, the return always 401 unauthorized although the authorization header contains valid to... | 2 | 1,181 |
Using dynamically added widgets in PyQt/Pyside | <p>I have modified the answer given <a href="https://stackoverflow.com/questions/8651742/dynamically-adding-and-removing-widgets-in-pyqt">here</a> as written below. The code is basically creating pushbuttons with a counter as pushButton_0, pushButton_1..
Here, I know that when I press to <code>self.addButton</code> I a... | 2 | 1,040 |
Sending two different emails at the same time using JavaMail API | <p>I'm using JavaMail API to notify the administrator when there's <a href="https://stackoverflow.com/questions/32687280/how-to-get-notified-by-mail-when-rows-are-inserted-into-table">data insertion in database</a> </p>
<p>This works fine. The admin receives the notification of data entry.</p>
<p>However, I also need... | 2 | 2,077 |
RestSharp unable to cast object when awaiting for response | <p>Using RestSharp I'm building an API to perform CRUD operations given a datatype/object.</p>
<p>My <strong><code>CrudAbstract</code></strong> class is generic and has the following:</p>
<pre><code>public virtual async Task<keyType> Post(dto item)
{
try
{
var request = await _client.GetRequestA... | 2 | 1,407 |
Serialize form not working and its not sending any data using jQuery | <p>I have a bootstrap modal. Inside that modal I have a form. I would like to submit that form and my submit ajax code is outside of the modal. </p>
<p>The problem is when i click submit, i cant see any data being passed when using serialise. </p>
<p>I move the script inside the modal but again it didn't worked. </p>... | 2 | 2,536 |
Safari asks permission multiple times with geolocation | <p>I've been working on this: <a href="http://davidcool.com/feeds" rel="nofollow">http://davidcool.com/feeds</a></p>
<p>Its works fine in all browsers except for Safari. Sometimes Safari will ask for geolocation permission in an endless loop, sometimes it will ask just once like it's supposed to, most of the time it a... | 2 | 1,533 |
Groovy unable to resolve class in CloudHub | <p>Have the following errors for the following scripts in a Mule flow when I run the application in CloudHub. When I run it on Anypoint studio, there's no issues. </p>
<p>I checked the deployed application archive file and in the classes folder is the compiled company.cloudtools.util.Utilities class. I am not sure ... | 2 | 1,053 |
Insert Variable Into SQL Query Visual Studio 2010 | <p>I have a SQL query that looks like this;</p>
<pre><code>Dim query As String = "SELECT ID, " & Environment.NewLine & _
"month_of_sale, " & Environment.NewLine & _
"client_last_name, " & Environment.NewLine & _
"client_first_nam... | 2 | 1,871 |
How to fine tune BERT on Squad2.0 | <p>I am really new to BERT and I would like to fine tune BERT base model on Google Colab. Basically I set up using GPU, downloaded data and try to call python run_squad.py</p>
<pre><code>!git clone https://github.com/google-research/bert.git
!wget https://storage.googleapis.com/bert_models/2018_10_18/uncased_L-12_H-7... | 2 | 2,050 |
Could not resolve placeholder 'com.ohadr.auth-flows.endpoints.accountActivatedEndpointUrl' in string value "" | <p>I'm developing the same code from the <a href="https://github.com/OhadR/Authentication-Flows" rel="nofollow">https://github.com/OhadR/Authentication-Flows</a> (basically looking for Spring MVC application to reset the password or forgot password or lock password functionality)</p>
<p>After research I find this URL ... | 2 | 4,968 |
Distributed OSGi: Read timed out | <p>I am building a distributed application using Distributed OSGi and Zookeeper. The application should run on Felix and Equinox. I register my services as JAX-WS webservices using <code>BundleContext.registerService(...)</code> and query them with a <code>ServiceTracker<S,T></code>. So all service handling is do... | 2 | 1,500 |
Packaging Java SE application with weld into executable Jar | <p>I Got the following exception while trying to run JAVA SE executable jar from command line:</p>
<pre><code>Exception in thread "main" org.jboss.weld.exceptions.DeploymentException: java.lang.Internand
at org.jboss.weld.executor.AbstractExecutorServices.checkForExceptions(AbstractExec
at org.jboss.weld.execu... | 2 | 2,869 |
Javascript - Login with Facebook, display user's profile picture after logged in successfully | <p>I am making a Facebook Quiz app. Which lets the user log in with Facebook. I'm trying to display User's profile picture automatically without having to click on "Get Info" but really it kept crashing the code and it the login button stops working. Currently, it works. The user logs in then to display the profile pic... | 2 | 1,376 |
AngularJS - Multiple Directive Instances making XHR call multiple times | <p>I have an Angularjs directive 'ExampleDirective' which has the controller 'ExampleController'. The controller defines two Promise objects where each Promise object makes an Http GET request and returns the response.</p>
<p>In the directive, we get the response data from the promise objects and process them to rende... | 2 | 1,071 |
validating repeating element groups with schema | <p>I am having great difficulties trying to make my xml validate against my schema.
The following error occurs:</p>
<pre><code> Element 'date': This element is not expected. Expected is ( race ).
Element 'date': This element is not expected. Expected is ( race ).
Element 'date': This element is not expected. Expecte... | 2 | 3,072 |
Error while scrolling custom ListView | <p>I am creating app in which i am displaying data in custom ListView......the data is coming from XMLHandler. but, when i scroll the list it gives null pointer error.....</p>
<p>There are six items coming from xmlHandler at a time only 3 items are displayed on the screen....but, when i scroll getView() is supposed to... | 2 | 3,147 |
MVC and AngularJS Routing - 403.14 - Forbidden | <p>I am having problems getting one of my Angular routes to work in my application. Basically I have an MVC application that also uses a couple of SPAs.</p>
<p>The MVC routing is as follows;</p>
<pre><code>namespace IMR
{
public class RouteConfig
{
public static void RegisterRoutes(RouteCollection ro... | 2 | 1,520 |
Vue.js Asp.NET core Form validation | <p>I am currently learning vuejs with asp .net core right now.
I am doing some form validation and adding some error messages.</p>
<p>The error messages are from the Server side here is my sample code:</p>
<pre><code> [HttpPost]
public async Task<IActionResult> AddUser([FromBody] UserModel user)
{
... | 2 | 1,482 |
How can I retrieve the values from window of class "ThunderRT6ListBox" using user32.dll in c# | <p>I am trying to retrieve information from extern desktop aplication in Windows.</p>
<p>I know how extract the text from Textboxes (class "Edit") but I don't know how extract the values from controls with class name "ThunderRT6ListBox" and "ThunderRT6ComboBox". How can I do that?</p>
<p>I have this code to extract t... | 2 | 1,322 |
How to debug Castle Windsor installation/registration exception | <p>My team tried some time ago to start using to Castle Windsor (3.2.0) for IoC goodness. Our trial runs on development boxes went peachy, but when we tried to run the code on the production server, it failed with the following exception</p>
<pre><code>Application: XXXX
Framework Version: v4.0.30319
Description: The... | 2 | 1,293 |
Run Console application On server(IIS 7 & Windows Server 2003) | <p>I Have Created a Console Application Using C# .net and it's working fine on my local system but when i am copying bin folder to Server and running .exe file noting happens(a black screen Comes and Disappear in a second) I have checked on Sql Server Profiler Everything working fine I Have Used Try Catch Block to chec... | 2 | 2,696 |
Take the first line of the every partition | <p>I have this query : </p>
<pre><code>select ROW_NUMBER() OVER ( PARTITION BY codtiers ORDER BY case when isnull(cumulapport, 0) > isnull(cumulretrait, 0) then cumulapport
else cumulretrait
end DESC ) AS classement,
codTiers
from dbo.TiersComptesLocal
group by codT... | 2 | 3,766 |
Animation not triggering after press on ImageView, but working fine after press on TextView | <p>In an Activity I have three Views (among others): a TextView, an ImageView, and a LinearLayout--the latter I call <code>controlsView</code>. There is a method (call it <code>toggleControls()</code> to toggle the visibility of <code>controlsView</code> with an animation. The animation is fairly simple and is created... | 2 | 1,139 |
Gridview Row Events not firing in UserControl | <p>I've got a pretty strange problem with my usercontrols that I'm working with. I'm coding some user controls to be used in a DotNetNuke module.</p>
<p>Basically I have a UserControl on my page that holds some controls and then there is a Placeholder where I am loading in a UserControl that has a GridView placed in i... | 2 | 2,570 |
How to bounce child view controller's UICollectionView when the child view controller is presented? | <p>I want to present a child view controller by dropping it from top to the bottom. The child view controller is a UICollectionViewController with several cells in it. I can use the iOS7 UIViewControllerContextTransitioning for the dropping down view controller transition. But if I want only the collection view to boun... | 2 | 1,141 |
Symfony vichuploader in form collection | <p>Hi I have an entity Product who containt (OneToMany) Documentation.
In Documentation i have a file, i use vichuploader to download it but i have a problem, when save my form i have an error who say me the filename is null (doctrine error). Is it possible to embed a vichuploader field on form collection ?
If somebo... | 2 | 4,260 |
Passing struct to _beginThreadEx() function produces unintended output | <p>I'm trying to learn the "proper" way of passing multiple parameters to a _beginThreadEx function. Could use some help.</p>
<p>In function myThread.</p>
<p>I keep getting either a 1, or 3, or 5 appended to the output of *x->value</p>
<p>Also... if I place</p>
<pre><code>cout << "die: " << random_num ... | 2 | 1,341 |
SharpPcap - Getting information from packet | <p>I'm trying to get information from packets, like GET/POST requests using SharpPcap and PacketDotNet. I looked different information here on stackoverflow, but I have encoding problems. Information from packets isn't shown properly in every taken Encoding system.</p>
<p>My code below:</p>
<pre><code>using System.Te... | 2 | 1,575 |
Waiting on Interlocked == 0? | <p>Disclaimer: My C# isn't even close to as good as my C++</p>
<p>I am trying to learn how to do async sockets in C# in order to write a test app for a component of mine. My former attempts using TcpClient ended in failure and you can read the outstanding questions on that here:</p>
<p><a href="https://stackoverflow.... | 2 | 9,679 |
Can't go on to the next page using post request | <p>I've written a script in python to get different links leading to different articles from a webpage. Upon running my script I can get them flawlessly. However, the problem I'm facing is that the article links traverse multiple pages as they are of big numbers to fit within a single page. if I click on the next page ... | 2 | 1,955 |
Wrong gcc generated assembly ordering, results in performance hit | <p>I have got the following code, which copies data from memory to DMA buffer:</p>
<pre><code>for (; likely(l > 0); l-=128)
{
__m256i m0 = _mm256_load_si256( (__m256i*) (src) );
__m256i m1 = _mm256_load_si256( (__m256i*) (src+32) );
__m256i m2 = _mm256_load_si256( (__m256i*) (src+64) );
__m256i m3 =... | 2 | 1,677 |
Vue.js & Firebase 'User' info | <p>I'm developing an app using Vue.js and Firebase.</p>
<p>I've managed to get the login working using email/password, and can successfully store the firebase.auth() user info in the Vue.js state under state.currentUser .</p>
<p>However, as per the Firebase guidelines, I have more information stored under a '/users' ... | 2 | 1,120 |
How to get data from table which add row at client side? | <p>I have a table includes 2 columns.
And have a button "Add Row" to allow the user to add new row with 2 text boxes dynamically (by using jJvascript in order to increase the performance without post back at server).</p>
<p>I wish to retrieve all the values keyed by the user and save to database.</p>
<p>My problem is... | 2 | 1,119 |
how to Combine two tables column in oracle? | <pre>
Table 1:
CURRENCY CODE ER GUARANTOR ID G AMOUNT
USD 1.2986 117 750
AED 4.76976 117 5750
ZAR 11.4717 117 234
INR 70.676 117 1243
AMD 526.5823 117 500000
EUR 1 117 12435
ALL 139.63197 117 200... | 2 | 1,042 |
ERROR: No OpenCL platforms found, check OpenCL installation | <p>I tried to run Matlab program on gpu (CentOS 7.3).
This Matlab use <a href="http://caffe.berkeleyvision.org/" rel="nofollow noreferrer">caffe</a>.</p>
<p>When I run it from the command line with:</p>
<pre><code>matlab -nodisplay -r "demo, quit"
</code></pre>
<p>it run okay. </p>
<p>When I run it with LSF command... | 2 | 4,359 |
How to print a array specific value from multidimensional arrays in php | <p>Below is my array which i have printed:-</p>
<p>I want only the <code>product_image</code> from the array in loop</p>
<pre><code> Array
(
[0] => Array
(
[product_option_id] => 247
[product_id] => 66
[product_option_value] => Array
(
... | 2 | 1,513 |
Undefined Property in Class Inheritance? | <p>I just started to learn OOP PHP, and i've been done some exercises, and i got a problem with inheritance classes that return these errors:</p>
<pre><code>Notice: Undefined property: HtmlEmailer::$recipients in C:\xampp\htdocs\class.htmlemailer.php on line 10
Warning: Invalid argument supplied for foreach() in C:\x... | 2 | 1,189 |
UIWebView webViewDidStartLoad not called | <p>I post this message because i haven't found any answer.</p>
<p>I send a request to my <code>UIWebView</code>, <code>webViewDidStartLoad</code> is not called. I need to use the method reload, and then it will work. By the way the <code>shouldStartLoadWithRequest</code> is called then twice.</p>
<p>If i'm using a te... | 2 | 1,033 |
Active class not changing to items for navbar in bootstrap | <p>I have this navbar from bootstrap which is supposed to add active class on nav-item or on anchor element on click, but while inspecting it in browser its not changing states, I don't understand why.</p>
<p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
<div class="snipp... | 2 | 1,087 |
NotificationExtenderService not firing handleNotificationReceived | <p>I am extending <code>NotificationExtenderService</code> inside a Java class as per OneSignal documentation here <a href="https://documentation.onesignal.com/v3.0/docs/android-customizations" rel="nofollow noreferrer">One signal doc</a>, but I realized that returning true prevents the notification from showing. Perfe... | 2 | 1,338 |
Deserialize multiple JSON records in C# | <p>I have the following string of Json records:</p>
<pre><code>{
"records":[
{
"PK":"1_1_8",
"ID":"8",
"DeviceID":"1",
"RootID":"1",
"CustName":"test1",
"CustSurname":"test2",
"Address":"Nisou 1",
"City":"",
"ZipCode":"",
... | 2 | 1,610 |
How to change input filed border color into red. When fields are empty | <p>Here I have written a code for validating form input fields in Vue. And it is working fine when input fields are empty the form is not navigating to the next step. My issue is that while the field is empty, and the user tries to navigate to the next step, the input field border color should change in red. If one fie... | 2 | 1,407 |
Detect when requestAlwaysAuthorization not called iOS 14 | <p>I am trying to request user's location using multi step process; However, when calling <code>requestAlwaysAuthorization</code> if it is not executed I would like to move to show a message.</p>
<p>let me explain better by showing my flow</p>
<p>Here is my current flow</p>
<ol>
<li>Request <code>While in use</code>
<u... | 2 | 2,175 |
Web service asp.net POST method | <p>Based on this tutorial (<a href="http://www.codeproject.com/Articles/405189/How-to-access-SQL-database-from-an-iPhone-app-Via" rel="nofollow">http://www.codeproject.com/Articles/405189/How-to-access-SQL-database-from-an-iPhone-app-Via</a>)</p>
<p>I try to do a WebServices in asp.net.
the GET method works... but the... | 2 | 1,612 |
MVC Modal Window DataBinding | <p>I have an object of type</p>
<pre><code>public class Customer
{
public int Id { get; set; }
public string Name { get; set; }
public List<Person> Personel { get; set; }
public List<Address> Addresses { get; set; }
}
</code></pre>
<p>where</p>
<pre><code>public class Person
{
public ... | 2 | 2,156 |
How to refresh D3 tree, even though data has not changed? | <p>I have faced a problem with D3 tree - (only in Safari) when on top of one tree new one is opened in modal window and then closed all nodes become black (they are images originally).</p>
<p>As a workaround I have thought to completely redraw tree as soon as modal window is closed. But I can not make D3 think that d... | 2 | 3,526 |
Getting Random android.database.sqlite.SQLiteBlobTooBigException | <p>I am using Room in my app as a Single Source of Truth, so everything that comes from the backend I save in my room database, which then returns a Flowable that fires an event every time the data changes. This is my PlacesDAO:</p>
<pre><code> @Dao
abstract class PlacesDao {
@Query("select * from places wher... | 2 | 3,065 |
A cleaner way of "transforming" Cursors in Pojo(s) | <p>I do a lot of apps that use SQLite and very often cannot design the database, because I have to use the Schema defined by the customer.</p>
<p>Obviously :-P the UX/UI designer does not care about the underlying data...she/he has to be cool!</p>
<p>So I, not infrequently, have to use a lot of <code>INNER JOIN</code... | 2 | 2,286 |
Python lottery game | <p>This is one of my first projects done entirely on my own without any tutorial and I am sure it is a little sloppy. Right now, I cannot figure out why my payout is always output as the payout for a 'box' type bet. I also haven't completely figured out how to represent the box type bets for 5 digit numbers, so that ... | 2 | 3,451 |
How to enumerate over an ALAssetsGroup in Swift | <p>I tried my best, but i got stuck in here. I wanted to import all photos from iPhone camera album. So i come up with this ALAssestsLibrary API.</p>
<pre><code> photoLibrary.enumerateGroupsWithTypes(ALAssetsGroupType(ALAssetsGroupSavedPhotos), usingBlock: { group in
if group != nil
{
}
... | 2 | 1,222 |
Polymer CSS ::content selector not working | <p>I haven't used Polymer since version 0.5 so I decided to give it a shot again. I've been having some trouble with the :host and ::content selectors, especially given I found that the :host selector only works when my style tag is placed outside the tag.</p>
<p>Anyway, my problem is that I cannot get the host selec... | 2 | 1,102 |
How to form query string? | <p>I am using the grid source code from this website:</p>
<p><a href="http://gridmvc.azurewebsites.net/" rel="nofollow noreferrer">http://gridmvc.azurewebsites.net/</a></p>
<p>but I don't understand how the query string is formed for his custom columns. On the link I have provided there is an edit column, if you hove... | 2 | 1,897 |
OpenCL buffer allocation and mapping best practice | <p>I am a little confused as to whether my code using OpenCL mapped buffers are correct.</p>
<p>I have two examples, one using CL_MEM_USE_HOST_PTR and one using CL_MEM_ALLOC_HOST_PTR. Both work and run on my local machine and OpenCL devices but I am interested in whether this is the correct way of doing the mapping, a... | 2 | 1,241 |
Java - Read XML and leave all entities alone | <p>I want to read XHTML files using SAX or StAX, whatever works best.
But I don't want entities to be resolved, replaced or anything like that.
Ideally they should just remain as they are.
I don't want to use DTDs.</p>
<p>Here's an (executable, using Scala 2.8.x) example:</p>
<pre><code>import javax.xml.stream._
impo... | 2 | 1,105 |
Use pivotal cloud foundry redis and rabbitmq service using as vcap service in spring boot application | <p>I am able to use REDIS and RABBITMQ services which is on pivotal.While binding services I am able to get the Credentials and using that credentials in my application.properties for spring boot project. </p>
<p>But this configuration that I am using is hard-coded in application.Properties
To Make this configuration ... | 2 | 2,394 |
how to show error message on delete in jqgrid? | <p>hiii to all, i am using jqgrid, and want to display error message if the user wants to delete the truck record which is in use, i have to display a error message truck in use..
here is my jqgrid:-</p>
<pre><code> jQuery(document).ready(function () {
var grid = jQuery("#TrucksGrid141");
grid.jq... | 2 | 3,986 |
How do I fill data in a JTable? | <p>I am trying to update my table, but it is not working. The table does not show up until the entire program calling it is done. How can I change this? Upon opening the window, I would like to fill the <code>JTable</code> with data. If I stop the execution of the code, the table is filled with data. Do I need a thread... | 2 | 1,544 |
Rollup with React vendor splitting | <p>I'm experimenting with using Rollup as a React toolset. I've got a working prototype when I can use lazy loading in react. I'm just working with just ES6 Modules, I'll integrate SystemJS for older browsers later. My question is regarding the rollup setup. It seems crazy to treat <code>react</code> and <code>react-do... | 2 | 1,758 |
Bundle a typescript library to one .js file and one .d.ts | <p>I'm developing a library to use in the webbrowser using TypeScript.</p>
<p>I'm writing separate typescript files as modules using "system" as --module, for example this is the main file:</p>
<pre class="lang-typescript prettyprint-override"><code>/// <reference path="../typings/tsd.d.ts" />
/// <reference... | 2 | 2,329 |
Compiled lambda expressions used as property getters and setters: wrong benchmarking method or wrong lambda expression construction? | <p>Hi I was trying out using (cached) compiled lambda expressions for properties access, for sure I got a result much better (i.e. faster) than when using PropertyInfo.GetValue()/SetValue() method calls. However, I feel it's still really far getting close to the "native" properties speed. Is it the benchmarki... | 2 | 3,315 |
Creating UICollectionView programmatically | <p>I am learning how to create a UICollectionView programmatically. I want to create a grid of pictures collected from the user in another part of the app.
Will this sample code help me accomplish this? Also, how do I configure the data to emit the image I want? My source code is below.</p>
<p>UICollectionView:</p>
<... | 2 | 1,342 |
Receive "InvalidIndexError: Reindexing only valid with uniquely valued Index objects" when attempting to fill NaN with values from other rows | <p>I am working with one data frame in pandas only. This error does not occur when I perform the following on a subset of this data frame (6 rows with NaN in some). And it does exactly what I needed done. In this case all the NaN in the 'Season' column got filled out properly.</p>
<p>Before:
<a href="https://i.stack... | 2 | 1,138 |
Angular 5 Cannot find a differ supporting object '[object Object]' of type 'object'. NgFor only supports binding to Iterables such as Arrays | <p>I have a list group which gets data from a rest service using HttpClient Post method.</p>
<p>I get "Cannot find a differ supporting object error" intermittently. But when I refresh the browser the data is displayed and if I try to switch between compoenents, I can still see the data. But after 10 mins or so if I cl... | 2 | 1,272 |
How to Deserialize string using Newtonsoft.Json library into custom object using C# | <p>I have a .NET 3.5 project. In ajax call I create json object like this:</p>
<pre><code>var jsonAOData = JSON.stringify(aoData);
...
data: "{jsonAOData : '" + jsonAOData + "'}"
...
</code></pre>
<p>then I pass it to a code behind WebMethod</p>
<pre><code>[WebMethod]
[ScriptMethod(ResponseFormat = ResponseFormat.Js... | 2 | 2,393 |
EF inheritance with table splitting | <p>I'm trying to map two different EF models to the same table SharedTable, let us call them EntityA and EntityB. I made them both extend a base Entity called BaseEntity.</p>
<p>EntityA is defined only with SharedTable fields, EntityB has fields in SharedTable and EntityBTable.</p>
<pre><code> modelBuilder.Ent... | 2 | 1,190 |
How to count the number of "correct" and "incorrect" responses | <p>I'm new to coding and am creating a windows form application in C#. I was having difficulties figuring out how to track the number of <code>correct</code> and <code>incorrect</code> responses. When a button is clicked, if the response is <code>correct</code> a label says correct. I want a different label to count th... | 2 | 1,165 |
Advantage Database Server: slow stored procedure performance | <p>I have a question about a performance of stored procedures in the ADS. I created a simple database with the following structure:</p>
<pre><code>CREATE TABLE MainTable
(
Id INTEGER PRIMARY KEY,
Name VARCHAR(50),
Value INTEGER
);
CREATE UNIQUE INDEX MainTableName_UIX ON MainTable ( Name );
CREATE TABLE ... | 2 | 3,911 |
Receiving Unicast and Multicast on the Same Socket in C++ | <p>I need to receive both unicast and multicast UDP on the same socket and port at a specific IP. Based on other questions asked here, this should be possible. I can set all the options and bind successfully, but I cannot receive any traffic. It just stays blocked at <code>read()</code> call.</p>
<p>I have tried many d... | 2 | 1,205 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.