title
stringlengths
13
150
body
stringlengths
749
64.2k
label
int64
0
3
token_count
int64
1.02k
28.5k
Apply filter on multi dimensional array and return filtered data along with parent
<p>I have multidimensional array as provided on the code snippet , i want to filter that array with the value of innermost array and then return that value along with parent . For example </p> <p>From </p> <pre><code>const nodes = [ { value: 'Documents', label: 'Documents', children: [ ...
3
1,459
how to add objects in NSMUtableArray using for loop
<p>Hi i am beginner in ios in my project i have implemented horizontal TableList</p> <p>ok everything is fine and i could able to create horizontal TableList loading static data </p> <p>but i want load data now from array list for this i have tried below code but it showing exception [__NSArrayI objectAtIndex:]: i...
3
1,445
Problems with refresh div with Jquery (append) and variables
<p>After i have recovery a date with a datePicker, i would like to post the news attributs of a object in a special div in my JSP. </p> <p>The problem is that all the page is reloaded in my div. </p> <p>This is a part of my scprit about the Jquery and Ajax. I want to show the attribut of "Mission" :</p> <pre><code>$...
3
1,390
How to return values based on an id array in AngularJS
<p>This problem is really hard to replicate because it seems almost random, but here is a basic example of what I am trying to do, I think i'm not doing it the best way in AngularJS which is why I am running into problems.</p> <p><strong>index.html</strong></p> <pre><code>&lt;!doctype html&gt; &lt;html ng-app="test"&...
3
1,062
UI is not updated when value of ObservableCollection Changes
<p>I have a window called MainWindow.xaml and a Page called Tiles.xaml.</p> <p>Both Window and Page shares the same ViewModel called MainWindowViewModel.cs</p> <p>Here is the MainWindowViewModel.cs</p> <pre><code>public class MainWindowViewModel : MainViewModel { public MainWindowViewModel() { ERP_Li...
3
2,825
How to use gluUnProject in python/pyglet properly?
<p>I am trying to get <code>gluUnProject</code> to work in pyglet to get the mouse position relative to the background (which gets moved via <code>glTranslatef</code> and <code>glScalef</code>). This it what I have and while it gives me a position it is not the correct one: </p> <pre><code>def mouse_unproject(x,y): ...
3
6,792
C# - Dynamically accessing a list of Microsft Access database files (.mdb) and opening them to search for data
<p>I'm writing a program where I have a somewhat large number of .mdb files and I need to be able to connect to each file and search through them and check user data against the values in the database. I don't want to hard code each connection because the databases contain firewall info and rules for specific locations...
3
1,196
SQL Server query joining a table with the results of another query
<p>I'm working with a datatable containing incident tickets (<code>dbo.IncidentDimvw</code> referenced in the first variable declaration) </p> <p>I'm trying to produce a query that will enumerate every date from the earliest ticket, until present day, along with the numbers of tickets "opened" and "closed" on each da...
3
1,606
PHP How can I optimise a script?
<p><br /> This script seems to me too long. Is there any way to optimize it? <br/> </p> <pre><code>function delteg($string){ $keyp=0; $out=""; for ($i=0; $i&lt;strlen($string); $i++) { if ($string[$i]=="&lt;"): $keyp=1; endif; if ($keyp==0): $out.=$string...
3
1,189
Can this sql code be made more efficient?
<p>I have following piece of sql, whilst it is functioning as expected, it is a bit slow to return results (by slow I'm talking about 10 seconds to return 1000 results from a months date range). Is it possible for it to be made more efficient and/or quicker? Just to add these are the following indexes I have on the tab...
3
2,154
How to sum properties of elements in an object-array?
<p>I have this array, and I want to sum property (<code>y</code>) of the array elements when <code>x</code> matches certain criteria. For example, if &quot;x&quot; has the same string value between &quot;/&quot; and &quot;?&quot; as another object then add their &quot;y&quot; property together.</p> <pre><code>const da...
3
1,567
Many-to-Many models association, matrix table with additional fields
<p>My database is structured with 3 tables: <strong>Product</strong>, <strong>Operation</strong> and a <em>junction table</em> <strong>Product_Operation</strong> for manage many to many relationship.</p> <p>The junction table is defined with more than two columns, in that each 'association' has additional information s...
3
1,248
Why cancelAnimationFrame () doesn't stop animation on MouseDown event?
<p>Why <strong>cancelAnimationFrame ()</strong> doesn't stop animation on <strong>MouseDown event</strong>? But animation stops triggered by a second <strong>click</strong>. What could be the problem? And is there a way, after premature stopping the <strong>animation</strong>, to <strong>return</strong> the current &q...
3
1,794
File too large Failed to flush events
<p>I am trying to train a network. And the training breaks with an error saying that the file is too large and failed to flush events (tf.summary). When I checked file was actually 4GB+</p> <pre><code>2021-08-08 15:16:44.725004: W tensorflow/core/framework/op_kernel.cc:1767] OP_REQUIRES failed at summary_kernels.cc:142...
3
1,937
How to update my view in Drupal 8 without going back to the first page?
<p>I'm trying to refresh my View in Drupal 8 without reloading the page with this code :</p> <pre><code>(function ($, Drupal) { 'use strict'; setInterval(function() { $('.view-message-activity-stream-timeline-public').trigger('RefreshView'); }, 10000); })(jQuery, Drupal); </code></pre> <p>My module :</p>...
3
1,136
Ajax Div Refreshing Too Fast
<p>I have a form that posts to a script via ajax, the script inserts the form data into a database and using ajax i the refresh the div on the original page which then shows the form as well as a list of records in the database (from the form input)</p> <p>I hope that makes sense. </p> <p>My issue is that sometimes, ...
3
1,120
Onchange function is not working using mvc?
<p>In edit registration form country drop down list is loaded from the database, but it does not enable state drop down list onchange function is not working.</p> <pre><code>@Html.DropDownList("CountryEdit", null, Model.CountryName, new { @class = "select2-arrow" }) </code></pre> <p>State Bind:</p> <pre><code>&lt;s...
3
1,203
Removing automatic inline style
<p>I'm trying to have a table row hide until a radio button is clicked. I've tried <code>display:none;</code> but that didn't work. So when I checked out the code in my developer tools I saw that the tr has a <code>style="display: table-row;</code> which I never added and none of the other tr has it.</p> <p>I'm not su...
3
1,236
Calling a secure adapter returns Response Error 401
<p>I am trying to call a secure adapter in my watch kit application. But my requests fails with the following error message in output window in Xcode.</p> <pre><code>Request url is http://:10080/UProject/adapters/MyAdapter/getMyBalance 2015-12-28 21:49:29.222 My WatchKit 1 Extension[59266:1304116] [DEBUG] [WL_AFHTTPRe...
3
1,768
404 error on running the spring mvc application
<p>I have a simple spring mvc, security and tiles application which is working, but it was not loading css and js file. I have added <code>&lt;mvc:resources mapping="/resources/**" location="/resources/" /&gt;</code> in <code>*-servlet.xml</code> file. In source I could see that JS and css are getting loaded but, actua...
3
1,979
Alexa is not recognizing my intents
<p>Alexa isn't recognizing my intents that have slots. Alexa recognizes all of my intents that don't have slots, but not the ones that have slots. For example, Alexa recognizes "view chores", but not "view chore {chore}". This only happens when running on an actual device,not the simulator. Why is this happening?</p> ...
3
13,318
How to add an array of a model to another model in node js using sequelize while using a JOIN query
<p>So I am moving an application from JAVA to Nodejs. One of the DB schema is divided into Source and Facts. Each source can have multiple facts, and each fact is assigned to a single source. Now in JAVA when I run the following query:</p> <pre><code>SELECT SRC.SRC_ID, SRC.SRC_NM, FACTS.FACT_ID, FACT_NM, FACT_VAL FRO...
3
1,837
Validate Form Data With Combination of Client Values and Ajax
<p>I have spent quite a lot of time trying to figure this out myself but am new to using jquery and ajax and it is probably something simple...</p> <p>I have a quote request form that I want to submit and I want to validate the details before submission. Some of this can be done in simple javascript and that part is w...
3
1,268
Validate before creating objects and create multiple models data through one serializer
<p>I created multiple models related to an applicant</p> <pre><code>class Applicant(models.Model): app_no = models.CharField(max_length=20, unique=True) class ApplicantBasicDetails(models.Model): applicant = models.ForeignKey(Applicant, on_delete=models.CASCADE) f_name = models.CharField(max_length=255, bl...
3
1,186
Why isn't indexTZ() working and changing the time?
<p>I have an xts object with timezone in "GMT", from what I've seen throughout this website I can use <code>indexTZ()</code> to change the time zone. I have tried every trick possible, first specifying "GMT" then changing it to "IST". Specifying "IST" when I first convert the timestamps to Date Time format: <code>DF$Da...
3
1,782
Webhook Payload Result is null in Dialogflow but not in Postman or Locally
<p>I am <strong>failing to send over my personal banking data via a flask webhook from the Nordigen API to Dialogflow via fulfilment as only null is being received within the Dialogflow payload</strong>:</p> <pre><code>{ &quot;fulfillmentText&quot;: &quot;Your text response&quot;, &quot;fulfillmentMessages&quot;: [...
3
4,341
Laravel FedEx Integration
<p>I was able to generate</p> <p>Api keys, passwords, url of fedex account and moved to production</p> <p>however I am receiving an error</p> <p><a href="https://i.stack.imgur.com/nAHsH.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/nAHsH.png" alt="enter image description here" /></a></p> <p>Here's ...
3
2,973
Why do I have NPE when using Mock annotation
<p>I'm figuring out how to work with Mockito and Junit and now testing some snippets. I don't understand why I have NPE in the following code after Mock annotation:</p> <pre><code>@RunWith(MockitoJUnitRunner.class) public class MockitoTest{ @Test public void whenNotUseMockAnnotation() { List mockList = ...
3
2,724
How to add new Users into SQL server database through JAVA GUI
<p>I am creating a GUI through Eclipse and am using Java; and the application connects to an SQL server database. I managed to add new users directly using Microsoft SQL server with their respective securables or restrictions. </p> <p>However, I would like to add new users through the GUI itself and be able to determi...
3
1,667
Directive generate directive field dynamically does not compile
<p>I have created basic <strong>HTML</strong> field generator directive called <strong>field</strong> as like below</p> <pre><code>app.directive('field',function(){ return { restrict : "E", scope : { fielddata : '=' }, link : function(scope,elem,at...
3
1,876
2 part responsive HTML & CSS navigation with dropdown menus
<p>I am trying to create a responsive HTML and CSS navigation menu with 2 parts &amp; some dropdown menus.</p> <p>I have looked at lots of youtube videos, but could not seem to find a responsive template for the 2 part for the navigation menu.</p> <p>The top part of the navigation has 2 dropdown menus and 2 standard ...
3
3,331
Excel code crashes after a couple of uses, opening a connection to Access
<p>We have an Excel 2016 quoting tool that uses VBA code to compare the product codes entered against an Access database and then update another sheet with the details needed for our CRM system.<br /> This is an interim solution until a more permanent one becomes available.</p> <p>We can capture 5 quotes, generate the ...
3
1,639
Why doesn't the users IP address output in my text file when they input the wrong login details?
<p>I'm having trouble outputting to the to the text file the users IP address when they input the wrong login credentials, in my login form script. How can I also fix this? <a href="https://i.stack.imgur.com/6FlsX.png" rel="nofollow noreferrer">Error at the bottom of the screenshot.</a> GitHub repo <a href="https://git...
3
4,672
How can I combine these 3 queries to achieve my desired, formatted, result
<p>I have 3 queries that run at the same time in order to get 3 different lists of profiles. It's cacheable data for the same page, so I'd like to do it all in a single query. This is my single biggest hurdle when using Postgres. Can someone help me begin understanding the process of combining queries and formatting?</...
3
2,973
How to select next 5 items using jQuery
<p>I'm using Bootstrap 3's carousel to implement a thumbnail scroller for results in my page.</p> <p>I have the following code:</p> <pre><code>&lt;script&gt; $('#myCarousel').carousel({ interval: 10000 }) $('.carousel .item').each(function() { var next = $(this).next(); if (!next.length) { next =...
3
1,310
How do you make weight appear on matrix by using nx.to_numpy_matrix?
<p>I am making SNA network graph using networkx librabry from python. I used a lesmis.gml data(lesmiserable data) and the data is like this</p> <p><code>graph [ node [ id 0 label &quot;Myriel&quot; ] node [ id 1 label &quot;Napoleon&quot; ] node [ id 2 label &quot;MlleBaptistine&quot; ] node [ id 3 label &quot;MmeMaglo...
3
3,968
Is there a R function for AES mapping to plot the mean of X variable instead of sum?
<p>Hi I would like to ask for the aes mapping, if I want to have the mean of wages based on age group but I do not want to adjust the data table, is there a function I can call in the ggplot to have the mean wages based on their age group?</p> <pre><code> ab_final &lt;- ab %&gt;% group_by(agegroup,haveKids,educationL...
3
4,419
Zend Framework 11.1: Form_Customer not found in
<p>First of all, I know there are a few quite similar questions here on stackoverflow about that form problem but none of them could actually help me so I'm giving it a try myself. I've been stuck with this for the past 10 hours and I'm really desesperate right now.</p> <p>So, let's start with my directory structure:<...
3
1,495
How can I change this ggplot code so that it works with my imported excel data?
<p>I am using this code and I am trying to implement my dataset AAPL which I have already imported into R from excel:</p> <pre><code>library(ggplot2) library(quantmod) draw_candles &lt;- function(df, title_param, alpha_param = 1){ df$change &lt;- ifelse(df$Close &gt; df$Open, &quot;up&quot;, ifelse(df$Close &lt; d...
3
3,473
offsetX returns weird values when the mouse hovers over "position:absolute;" elements
<p>I have been trying to build a video player, when I came across this problem. The controls of my video player are inside a element and I translated them to be right at the bottom part of my video. I then made a progress bar which when the user clicks, it fills upto the click and then the user can move his mouse (whi...
3
1,169
Why I can't change or swipe tab on my TabLayout in Android?
<p><a href="https://i.stack.imgur.com/GeHal.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/GeHal.png" alt="enter image description here"></a></p> <p>I want to make a screen like the picture above. so if I select a tab in the TabLayout, then it will change some variable before making request to serv...
3
5,903
How to use this true/false flag to make switching radio buttons disable other radio buttons effects
<p>Ive tried following this: </p> <pre><code>var changed = function() { if (document.getElementById('wolf').checked) { wolfActive = true; turtleActive = false; lizardActive = false; } else if (document.getElementById('lizard').checked) { lizardActive = true; ...
3
2,838
Getting JSON to display on a page using JavaScript
<p><strong>I don't know why the code in the snippet below returns this error within the 'generateSkillData' function:</strong></p> <pre><code>Uncaught TypeError: Cannot read property 'forEach' of undefined at generateSkillData (script.js:54) at loadingDone (script.js:45) at XMLHttpRequest.request.onload (s...
3
1,288
Vuetify how to override sass variable for pagination component
<p>I am having some issue while modifying the existing sass variables inside my vue application. I have gone through a few SO questions where there are good amount of information on overriding the existing sass variables but nothing seems be working for me. I am pretty sure I am doing some thing wrong.</p> <p>I have ...
3
1,469
different mysql select statement but sleep long time
<p>I used flask+SQLAlchemy, and in teardown_appcontext I have called db.session.remove().But there are different select statement which slept long time until wait_timeout closed it, and connection pool can not recycle it with error 'sqlalchemy.exc.TimeoutError: QueuePool limit of size 1 overflow 0 reached, connection t...
3
5,233
Cannot start MonoGame from SSH, but can from GUI
<p>So i would like to start a game from my SSH terminal. </p> <p>Its really wierd, when i do it directly from my linux GUI, it works. But when im connected from distance using a SSH client, it just crash. Seems like it has something to do with my display drivers.</p> <pre><code>Unhandled Exception: System.TypeInitial...
3
1,785
Returning a value of a column as null or empty when a value of other column in the same table is 1
<p>I am working on an SQL Query which has some joins which results certain number of rows and columns. I am trying to return the results in such a way that when a value in particular column of a row is 1 then some other value in the same row but different column should be returned as Empty value.</p> <p>My SQL Query i...
3
1,094
Can't make TCP client code work without USB cable attached
<p>I'm having a bit of trouble in getting a very simple TCP client working on my HTC Titan w/ Windows Phone 7.5. </p> <p>When the USB cable is attached to the phone, the TCP client works like a charm, but as soon as the cable is unplugged, the client is unable to connect to a TCP server running on my development machi...
3
1,270
JavaScript array.map always returning the last item
<p>I have an array of objects, objects look like this:</p> <pre><code>interface IDog{ id: number; name: string; summary: string; wikiLink: string; imageLink: string; imageAlt: string; } </code></pre> <p>I have this function:</p> <pre><code> private processDog(dogs: IDog[]) { return dogs.map((dog) =&gt; {...
3
1,174
javascript Multiple or Reset countdown function
<p>I want to reset countdown timer in javascript every time I click start. if the countdown is done counting then it is ok, but if the countdown still counting and then I click start again, it will show 2 countdown in the same place(not reset) </p> <p><a href="https://jsfiddle.net/riyadiari/216uzpm8/41/" rel="nofollow...
3
1,037
Configure eclipse with c++11
<p>First of all, I have already checked different solutions:</p> <p><a href="https://stackoverflow.com/questions/17274032/c-threads-stdsystem-error-operation-not-permitted">Threads std::system_error</a></p> <p><a href="https://stackoverflow.com/questions/21129735/g-4-8-1-c-threads-stdsystem-error-operation-not-permit...
3
1,283
Passing an xpath expression to an xpath result
<p>I'm struggling to understand parts of the lxml library for python.</p> <p>Take the following html file, <em>sample.html</em>.</p> <pre><code>&lt;div class="team"&gt; &lt;ul class="team-members"&gt; &lt;li class="team-member"&gt; &lt;span class="team-member-name"&gt;John Doe&lt;/span&gt;...
3
1,110
function not stopping
<p>I'm creating a program to input product that asks for <code>itemName,size,amount,and hour+minute</code> </p> <p>everything so far looks good, but when I compile and chose menu "1" which is adding item by pushing the data inputted, it ran <code>del()</code> function even though i haven't called it yet and cout <code...
3
3,685
The correct way to use decorators when logging services in Angular
<p>I have two services one is an Auth service and the other is an Analytics service and they exist in different libraries. The analytics service is used to do event logging. One obvious way I could use it to log the <code>auth.service</code> is injecting the analytics service in the auth service but I'd don't want to u...
3
2,347
Swift LayoutConstraint breaks on keyboard frame change
<p>I have a simple ViewController with a <code>UITextView</code> inside of a <code>UIStackView</code>. I've also stored an <code>NSLayoutConstraint</code> which is the bottom anchor of the stackView.</p> <p>When the textView becomes first responder or resigns from first responder, two <code>Notification</code>s get tri...
3
1,034
How to deserialize JSON object of multiple key value entries to custom struct in Rust
<p>I am trying to deserialize a set of unknown key-value style labels from JSON into my struct.</p> <p>This is my current implementation of parsing the JSON:</p> <pre class="lang-rust prettyprint-override"><code>use std::collections::HashMap; use serde::{Serialize, Deserialize}; use anyhow::Result; #[derive(Debug, Clo...
3
1,154
PyImport_Import segmentation fault after reading in TSV with C++
<p>I am using C++ as a wrapper around a Python module. First, I read in a TSV file, cast it as a numpy array, import my Python module, and then pass the numpy array to Python for further analysis. When I first wrote the program, I was testing everything using a randomly generated array, and it worked well. However, onc...
3
1,333
MySQL, Problem using CONCAT in stored procedure
<p><strong>I am having a problem using CONCAT() in a MySQL procedure.</strong></p> <p>I am using MySQL version: 8.0.22</p> <p>From the command line, CONCAT works for the following two scenarios. So, it appears to me that I should be able to use one of these formats in a procedure.</p> <pre><code>root@localhost [mdy_ex...
3
1,320
Communication between filter component and table component in livewire
<p>I have a component that I want to split into two parts, a filtering part and a table part. Now I know I need to somehow use the livewire events, but I am not sure how to create my functions in order to make the query work.</p> <pre><code>public function render() { $stations = Station::query() ...
3
2,443
Dropping Nulls and Slicing from Pivoted Table in Pandas
<p>I'm having trouble slicing my pivoted data frame so that I get results above a certain threshold. I'm trying to filter out results that fall below a minimum value. My data frame looks like so:</p> <pre><code> Qty ...
3
2,080
Running macro on multiple tabs
<p>The file we receive from contractors is always in the same format and needs to be reformatted. Files can vary in the number of tabs, but nomenclature is always the same. The macro built ran previously for the active sheet. I've added the looping part to do it for all tabs. Our goal is to run the macro on every tab p...
3
5,423
Assignment problem with 2 workers per job
<p><strong>Problem setup</strong></p> <p>Currently we are working at dispatching problem for a food-tech startup (e-grocery). We have jobs (orders to be delivered) and workers (couriers/packers/universal) The problem is to to assign orders to workers efficiently. At first step we've decided to optimise CTE (click-to-ea...
3
3,668
onClick event won't fire
<p>Sorry for somewhat of a duplicate question, but the valid answers I've seen on other posts match exactly what I've tried and I'm a bit lost. I'm simply trying to get the onClick event for my button to fire. It doesn't fire, and zero of the code in my handleClickNewQuote method executes.</p> <p>I'm sure you can te...
3
1,071
exception during child actor message processing doesn't get logged if parent actor is stopped
<p>Consider below code sample. Here parent actor (ActorA) sends message to child actor (ActorB) and then stops self. Child actor picks up the message and then throws exception. I was expecting some exception logging by actor system but there is no exception logging (see sample output 1).</p> <p>I understand this is ha...
3
1,085
Listview open new activity
<p>I just created this listview and some activities that need to start when clicking one of the listview items. When I click the first Listview item it should start "ABActivity", instead of starting the activity the app crashes. Can some tell me how to fix this problem?</p> <p>Here is my MainActivity file:</p> <pre><...
3
1,299
What is required to make this treemap plot work?
<p>Been trying to get treemap to work but the output is blank and not sure why. If I take an example from the web and place it into my code the the output works fine - but when I try to use my data it does not output.</p> <p>The sample code is..</p> <pre><code>library(plotly) labels = c(&quot;A1&quot;, &quot;A2&quot;,...
3
1,234
Why is referencing sheet by index still implicity referencing referencing by activesheet
<p>I Have the below code which formats a sheet. There are multiple sheets in this workbook so i only want to take actions on the first one. However if i have any sheet other than the first activated such as the second the code throws a 1004 error. I am not sure why as i am specifying and defining the target worksheet.<...
3
1,222
Why am I getting an assertion error when there should be a match JUnit?
<p>The problem is that the test not be recognizing the car object even though they are identical. I am getting a <code>java.lang.assertion</code> error. Are they of the wrong type or is this from another error? Please comment if more code is required.</p> <p>The error: <img src="https://i.stack.imgur.com/DmBvb.png" alt...
3
4,351
devtools::check() completes with no errors, warnings or messages, travis build fails (devtools::dev_package_deps)
<p>Devtools installs successfully. Then it does something weird.</p> <p>I ran devtools::check() again as a sanity check. Then I tried clearing the build cache (<a href="https://stackoverflow.com/questions/55208794/trouble-installing-r-packages-with-devtools-on-travis">as suggested here</a>) from a successful build y...
3
1,864
Multi Tcp server can only handle one connection
<p>i'm working on a tcp server that can handle many clients. Its written in c# async and callbacks. So i'm finished but the server can only handle one connection... Somewehre contains an error but after 3 days of search i don't know where. i will paste the code. Funny: The client doesn't throw any errors. The server sh...
3
1,230
Laravel 5.6 Clicking activation link only redirect to homepage
<p>I am working on Laravel 5.6 of email activation and password forget. I successfully send the email after the registration or clicking the forgot password button after entering user's email. However, the website will redirect to the homepage(127.0.0.1:8000) instead of doing the activation or reset pw action once the ...
3
1,109
Making a 4 section CSS fixed navbar, running into layout issues
<p>I'm trying to make a fixed navbar at the top of my webpage, it's all pure HTML and CSS for now. The problem comes as a result of the fact that I want a button on the left side to open up a sidebar for navigation on mobile. I want to position the three navbar items in the center of the navbar, evenly spaced from each...
3
2,790
How do I remove the crosses over my tiles?
<p>you were really helpful last night. Run in to another small problem: <a href="https://gyazo.com/53c9dc4cbc321db74665865b27adb812" rel="nofollow noreferrer">https://gyazo.com/53c9dc4cbc321db74665865b27adb812</a> Not sure if you can see the image clearly enough but there's a cross going through the tile that was styli...
3
9,163
Download websites web pages in parallel
<p>I have the following code and it works fine when I loop through one by one using <code>foreach</code>, but when I change it to use <code>Parallel.ForEach</code> I'm getting errors. Trying to figure out how I can correct this. FYI the <code>dParms</code> list contain unique id's.</p> <p>The error I'm getting is</p> <...
3
1,119
inaccurate percentages in expss table
<p>I'm analyzing some survey data and using <code>expss</code> to create tables.</p> <p>One of our questions is about brand awareness. I have 3 types of brands: BrandA is a brand that a large subset of the sample sees, BrandB is a brand that a smaller (mutually exclusive!) subset of the sample sees, and BrandC is a br...
3
1,060
API C# Post Message
<p>I try to make an post message and save the data into posgres SQL. I get my Information in JSON then it comes to my C# Controller:</p> <pre><code>[HttpPost()] public IActionResult Update([FromBody]Person person) { ObjectResult result = null; try { if (person.Save() == 1) result = new ObjectResult...
3
3,423
Caused by: android.view.InflateException: Binary XML file line #11: Error inflating class ImageButton
<pre><code>E/AndroidRuntime: FATAL EXCEPTION: main Process: com.example.chinnachary.ccflash, PID: 7713 java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.chinnachary.ccflash/com.example.chinnachary.ccflash.MainActivity}: android.view.InflateException: Bina...
3
4,183
PyCrypto Signature Verfication failing with other languages
<p>I have been trying to do signature generation to send the encrypted message to server. But server is not able to verify the signature. Similarly, I am not able to verify the signature sent by server.</p> <p>My code is in python2.7 and I am using PyCrypto library. Server-side code is in .NET.</p> <p>I feel somethin...
3
1,221
FlexImages Justified grid image size on mobile
<p>I'm using FlexImages jquery plugin for Justified grid. It works great. Only issue i have is i want the images to be 100% width on mobile (view port 550px or less)</p> <p>jQuery Fleximage plugin: <a href="https://goodies.pixabay.com/jquery/flex-images/demo.html" rel="nofollow noreferrer">https://goodies.pixabay.com/...
3
1,375
Get Excel Information with Java
<p>I need some help here as I am stuck...</p> <p>Well the background is this...</p> <p>I am making a flex application and one service of this is, to read an excel file and put it into a database...</p> <p>I do know how to retrieve the info but there are some details that got me stuck...</p> <p>Here there are:</p> ...
3
3,338
Migrating One Android JSON App Into a simple app in Android
<p>I have created 2 java based apps for android which are both working independantly.</p> <p>The first, a simple app with a few text field and boxes with onClick features to switch between pages,</p> <p>the second a JSON list (yes thats all thats in the app)</p> <p>I am trying to put the JSON list app in the middle ...
3
9,189
springfox-swagger2 in spring3 MVC project
<p>I am currently using <strong>Spring3 MVC</strong>. <br/></p> <p>Below is my project <strong>pom.xml</strong> information.</p> <pre><code>&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt; &lt;project xmlns=&quot;http://maven.apache.org/POM/4.0.0&quot; xmlns:xsi=&quot;http://www.w3.org/2001/XML...
3
3,332
Displaying a NavigationBar, inside a NavigationView, inside a TabView, after a NavigationLink. SwiftUI
<p>I'm making an App in which user needs to Log In and after that take me to a TabView in which I have 3 different views (Navigation Views).</p> <p>The problem is after I Log In, and use a NavigationLink to send me to the TabView, to display me the 3 different views, in which I have NavigationBarTitles; it also create...
3
1,131
Laravel and MySQL timestamp value changes with mysqld configuration
<p>I have MySQL and Laravel on my local server, with default configuration and my timezone is GMT+2. </p> <h2>Test 1</h2> <p>I don't touch anything in the MySQL configuration and I try something on my database :</p> <pre><code>SELECT CURRENT_TIMESTAMP, UTC_TIMESTAMP; </code></pre> <p>Results:</p> <pre><code>CURRE...
3
1,107
Benefit of using Set Based Query over RBAR Query
<p>At first, I am apologizing for my bad English.</p> <p>The problem is--</p> <p>In my Database, I have a table consisting of 307763 rows. Everyday I need to process each row.To Process the rows I write a SQL query to SELECT, INSERT and UPDATE in the database.Execution time for the query is <strong>30 minutes</stron...
3
2,295
AngularJS Failing to Load JSON?
<p>I'm working on my portfolio for my personal website and I have my projects listed in a JSON document as shown below (Small sample):</p> <pre><code>{ "projects":[ { "title":"CONTACTS LIST", "language":"Ruby", "description":"A simple, generic contacts list which is crea...
3
3,511
same content is shown multiple time
<p>I am trying to develop filter system using reactjs and rest api. There are two filtering option one is no of room and another is type of property. I have used onChange event whenever user selects say property type home then only spaces with property home type will be listed and if user again selects number of room a...
3
2,776
wxpython Update panel new items
<p>Dear wxPython experts,</p> <p>I am a newbie in wxPython...</p> <p>I try to change a panel content according to wx.ListCtrl entries. It does not work perfectly : at the change, the panel content is overlapped by the previous content, and I would like to clear the panel before inserting the new content.</p> <p>Who ...
3
4,211
Python Tkinter TypeError: 'int' object is not callable
<p>I am trying to take user input from main.py and then use that information to produce an output on runAnalytics. The problem that I am running into is that sometimes, the user input will produce a value of None (maybe null, I don't know) when the dividen_yield is not available and then my whole program will stop. It ...
3
1,057
401 Unauthorized error when making axios request
<p>I am using axios to make different GET and POST requests to a third-party API that requires a username and password login to access the data. I have tried several approaches to make this work but I keep getting this error in the console.</p> <pre><code>data: '&lt;!DOCTYPE HTML PUBLIC &quot;-//IETF//DTD HTML 2.0//EN&...
3
1,065
How can I change the whole QImage pixel value using a color map?
<p>I'm looking for a way to change the value of the pixel by another one. My idea is to change a greyscale colour into a colour image using predefined colour maps like inferno found in csv format here (<a href="http://www.kennethmoreland.com/color-advice/" rel="nofollow noreferrer">http://www.kennethmoreland.com/color-...
3
2,704
how to avoid For loop to calculate new varaible by group
<p>I hope someone here could help me. I am trying to learn R coding for my work. </p> <p>I am following the growth of plants ( called Ecotype) over the time, they are Treated with Mock or a bacteria Xcc. I have 2 diffrent experiements (done at different time) and after image processing i get the Area. </p> <p>I wo...
3
2,241
Yii2 dropDownList -Cannot insert data into database
<p>Hi I add the dropdownlist to my _form before that i can still insert and submit data into database , but when I replaced my input with dropdownlist. everything is ok but when I click submit button no error displayed but no data inserted to database.How Can I fix this? Help me pleasee guys.. Thank you soo much.. in a...
3
1,717
g++ linker cannot find symbols that are apparently exported
<p>I am trying to compile mod_tile, but it fails after upgrading from Mapnik 2.2 to 3.0 (I checked that only 3.0 versions of the packages exist).</p> <p>During linking there are now undefined references. The linker command is</p> <pre><code>g++ -I/usr/include -I/usr/include/mapnik/agg -I/usr/include/mapnik -I/usr/inc...
3
1,475
Error on sqlite database creation - Android
<p>I am trying to add a new column to my sqlite database. I have previously added an extra column (email) and have had no problem at all. Below is my DbHelper class for creation.</p> <pre><code>public class DbHelper extends SQLiteOpenHelper { public static String DATABASE_NAME="userdata"; public static final String TA...
3
2,335
How can I set rule on Form as first char should not be number?
<p>I'm stuck in Form elements. The rule is ; first char of your password should not be number. It should start with any of letter. </p> <p>Basicially here is my code ; </p> <p>I defined all CLASSES ( password[0] element should not be number ) : </p> <pre><code>const form = document.getElementById('form'); const use...
3
2,306
Braces missing return statements?
<p>I'm currently writing a program where I have a string of methods all set up basically identical. If they're given i = 1, they'll return the price of the product times the quantity ordered. Otherwise, they simply returned the quantity ordered. Whenever I attempt to compile it, however, the compiler says that the brac...
3
8,230
What's the memory overhead of a plist file with an array of dictionaries?
<p>I'm trying to load some data from a plist file. It contains an NSArray of NSDictionaries with very few data each (a very short string and a number). The problem is that it has about 8000 entries. The plist file itself is about 900 kB when stored as XML and about 350 kB when stored as binary, but apparently when it g...
3
1,616
Get Radio Input Value On Button Click Javascript
<p>I Have an HTML Form. There Are 4 Questions. 3 Questions Radio, 1 Questions Text.</p> <p>There Is A Production That Will Go To the Next Step When All The Buttons Are Clicked. But the Values Selected on the Radio Button Do Not Come to Me. The Form is Working With Webhook and Needs to Send Data to Integromat.</p> <p>Ho...
3
1,669
Degrees of freedom ezANOVA after sphericity correction
<p>I've set up an ANOVA with the function <code>ezANOVA</code> from the package <code>ez</code>. There are sphericity corrections and I see different p-values because of the different degrees of freedom. But how can I see the new degrees of freedom?</p> <p>This is an output from a predefined ANOVA:</p> <pre><code>$A...
3
1,143