title
stringlengths
13
150
body
stringlengths
749
64.2k
label
int64
0
3
token_count
int64
1.02k
28.5k
No response from varnish docker container
<p>I'm tying to run varnish on <a href="https://github.com/laradock/laradock" rel="nofollow noreferrer">Laradock</a>. I took varnish configuration from <a href="https://hub.docker.com/_/varnish" rel="nofollow noreferrer">docker hub</a>.</p> <p>The problem is that there is no even 503 error and no logs in the varnish l...
2
2,220
Unable to set instance attributes in Python signal handler
<p>I have the following code</p> <pre><code>def signal_handler(self,signum,frame): self.kill_received = True print "signal received",signum self.condition.set() def mainFunc(self): while not self.kill_received: * do something * </code></pre> <p>It has been observed ...
2
1,113
Partial work being done twice (ThreadPool.QueueUserWorkItem)
<p>I have created a newsletter system that allows me to specify which members should receive the newsletter. I then loop through the list of members that meet the criteria and for each member, I generate a personalized message and send them the email asynchronously .</p> <p>When I send out the email, I am using <code>...
2
1,436
squid transparent proxy (intercept) + router
<p>there is already a configured transparent proxy squid-3.5.27, there is an EdgeOSEdgeRouter router</p> <p>I want to make a circuit</p> <p>all computers on the network -> router -> squid</p> <p>squid - 109.0.0.110 router - 109.0.0.1 test Windows - 109.0.0.8</p> <p>configuration squid.conf, version - squid-3.5.27</...
2
3,664
MVVM Commands - How to move selected item form one listbox to another
<p>I found some great helper class for handle commands. It was found on some msdn blog.</p> <p>Here is it:</p> <pre class="lang-cs prettyprint-override"><code>public class DelegateCommand : ICommand { #region Constructors /// &lt;summary&gt; /// Constructor /// &lt;/summary&gt; public Delegat...
2
6,920
Swift - Add UIImageView as subview of UIWebView scrollView and scaling
<p>I have a <code>UIWebView</code> and I have successfully added a <code>UIImage</code> view to the <code>UIWebView</code>’s <code>scrollView</code> like so:</p> <pre><code>let localUrl = String(format:"%@/%@", PDFFilePath, fileNameGroup) let url = NSURL.fileURLWithPath(localUrl) panRecognizer = UITap...
2
1,297
Hadoop Cluster SetUp : Data Node Not Working on Slave Machine
<p>I am trying to run hadoop over two machines. below mentioned is my core-site.xml file.</p> <p>10.0.x.y is working as my master machine and 10.0.x.y1 is working as slave.</p> <pre><code>&lt;configuration&gt; &lt;property&gt; &lt;name&gt;fs.default.name&lt;/name&gt; &lt;value&gt;hdfs://10.0.x.y:5...
2
1,813
Why is CORS working for API requests but not media files (e.g. mp4, webm) on my Nginx config?
<p>I have set up an Nginx server on Ubuntu that serves up two website. One is a Wordpress delivering its API content, the other is a frontend app consuming the API using Axios.</p> <p>I can query and read the JSON content from the API, and inspecting the response headers matches that of my CORS config. But on Chrome, ...
2
1,838
How to make an image of a complete scrolling view in android
<p>How to take screenshot of a complete scrolling view in android? I found a lot of questions in stackoverflow but nothing solved my problem.</p> <pre><code>private void SaveImage(Bitmap finalBitmap) { String root = Environment.getExternalStorageDirectory().toString(); File myDir = new File(root + "/saved_ima...
2
1,069
Azure SDK 1.7 Storage Emulator - Queue Storage won't start - using Storage Client with dev env custom ports
<p>Problem: Azure Storage Emulator could start Blob and Table storage, but Queue Storage would fail to start, showing an error dialog: "File is in use by another Process" found resolution to that issue, but now I'm having issues with my development environment storage client. Here's what I've done...</p> <p>port 100...
2
1,947
How to debug Ngrok not starting via node module?
<p>I'm developing an app that uses Ngrok for dev. Running ngrok from console works:</p> <pre><code>ngrok http 3011 </code></pre> <p>shows the &quot;console UI&quot; indicating that the tunnel is up and giving me the url to use.</p> <p>Now I'm trying to setup things so that developers don't need to copy-paste urls etc. ...
2
4,004
UISwitch added to UITableViewCell multiple times when scrolling UITableView - Swift
<p>I'm making a event-menu with UITableView in swift, the majority of it is done programatically, and for some of the options in the event-menu I would like to receive a boolean value (or yes/no) from the user - so a switch would work perfect. I am adding the switch via <code>cell.accessoryView</code>based on the cell ...
2
1,297
Jboss EAP 6.4 - Websocket 500 internal server error
<p>=== Java Console log ===</p> <pre><code>JBWEB000236: Servlet.service() for servlet default threw exception: java.lang.IllegalStateException: JBWEB000034: Cannot upgrade from HTTP/1.1 without IO events </code></pre> <p>=== HTML Code ===</p> <pre class="lang-html prettyprint-override"><code>&lt;body&gt; &lt;div...
2
2,707
jQuery Ajax POST Request SubDomain
<p>I'm having problems with an Ajax Request between SubDomains.</p> <p>The PHP Script that handle the request is located at <code>account.domain.com/login</code></p> <p>And i have many other SubDomains, the Ajax request can be called in every SubDomain.</p> <p>Here is the Javascript currently i have:</p> <pre><code...
2
1,132
Null Pointer Exception while using Reflection
<p>I'm following a tutorial for Selenium - Keyword Driven Framework <a href="http://toolsqa.com/selenium-webdriver/keyword-driven-framework/java-reflection-class/" rel="nofollow noreferrer">here</a>. I'm not very familiar with the the Reflection API. (I'm a beginner to Java as well)</p> <p>When I execute my main class...
2
1,487
SpringSource: loading properties PropertyPlaceholderConfigurer bean
<p>I'm using Spring Tool Suite Version: 3.0.0.RELEASE</p> <p>I want to load my own .properties files to use in my application, so I tried using PropertyPlaceholderConfigurer </p> <p>Here is my servlet-context.xml code:</p> <pre><code> &lt;?xml version="1.0" encoding="UTF-8"?&gt; &lt;beans:beans xmlns="http://www...
2
2,748
join() or append to the end of a URL with jquery or javascript in Shopify Framework
<p>I would like to add &quot;+20-30&quot; to the end of my URL below when clicking a button.</p> <p>Currently I have: mydomain.com/collections/mens/white</p> <p>I would like my URL to be mydomain.com/collections/mens/white+20-30</p> <pre><code> &lt;div class=&quot;clearfix filter&quot;&gt; {% assign tags ...
2
1,098
Selectpdf - cannot remove top margin on page
<p>I am using <code>SelectPdf</code>, and when configuring my converter to convert the string to a pdf, my pdf keeps ending up generating some margin on the top of the page.</p> <p><strong>My converter:</strong></p> <pre><code>private Stream ConvertToPdf(string data) { HtmlToPdf converter = new HtmlToPdf(); ...
2
3,883
Symfony 3 - The CSRF token is invalid ONLY when submitting with AJAX
<p>After looking around I could not find a solution to this. I am getting error below ONLY when submitting thru Ajax. Meaning that I have beforehand submitted the form in the regular Symfony fashion without an issue. </p> <blockquote> <p>The CSRF token is invalid. Please try to resubmit the form.</p> </blockquote> ...
2
2,879
Fluent Nhibernate and Web api error
<p>I have an error. You can see my codes and exception message below.</p> <p>User Class </p> <pre><code>public class User { public virtual int ID { get; set; } public virtual string UserName { get; set; } public virtual string PassWord { get; set; } public virtual DateTime AddedD...
2
1,957
Haskell and mutable structures' performance
<p>I was studying the answers given in <a href="https://stackoverflow.com/questions/2915137/optimizing-haskell-code">Optimizing Haskell code</a> and noticed that using a small input would indeed result in a faster Haskell run compared to Python.</p> <p>But as the dataset grew in size, Python took the lead. Using a has...
2
4,253
An unhandled exception occurred: Object prototype may only be an Object or null: undefined
<p>When I run <code>ng serve</code> in my terminal I get this error. I tried installing the latest CLI and compiler but it did not work. </p> <pre><code>An unhandled exception occurred: Object prototype may only be an Object or null: undefined </code></pre> <p>This is my package.json</p> <pre><code> { "name": "...
2
1,587
In nested recyclerview, child recyclerview's GridLayoutManager.getChildCount() gives total item count
<p>I am using a <code>RecyclerView</code> inside <code>SwipeRefreshLayout</code>.The <code>RecyclerView</code> has another 2 <code>RecyclerView</code> (for now; it may increase). In my second <code>RecyclerView</code> i am trying to implement infinite scrolling. But my <code>RecyclerView.getItemCount()</code> and <code...
2
1,639
Error when a trait is used as a type but not when used as a bound in a where clause
<p>It seems that the Rust compiler has different behaviour on <code>where</code> clauses.</p> <pre><code>mod sub { use std::mem; static mut FF : *const Foo = &amp;NopFoo; pub trait Foo: Send + Sync { fn foo(&amp;self); } pub struct NopFoo; impl Foo for NopFoo { fn foo(&amp;se...
2
1,781
Find the largest subset of a set of numbers such that the sum of any 2 numbers is not divisible by a given number
<p>I'm trying to solve the Hackerrank problem <a href="https://www.hackerrank.com/challenges/non-divisible-subset?h_r=next-challenge&amp;h_v=zen" rel="nofollow noreferrer">Non-Divisible Subset</a> stated below:</p> <p><a href="https://i.stack.imgur.com/LYyCy.png" rel="nofollow noreferrer"><img src="https://i.stack.img...
2
1,225
mysqli_num_rows() expects parameter 1 to be mysqli_result geolocation
<p>I really don't know what i'm doing wrong. I want to count the rows in my query. My id's started from 1 to ... step 1, so the biggest number is the last record. I only want to let the script run on the last record of de DB. So here is my code.</p> <pre><code>public function saveLongLan() { define("MAPS_H...
2
2,586
Problem with C++ compiler on macOS (building cmake project)
<p>I have a 16inch MacBook pro with latest updates (macOS Catalina 10.15.2 (19C57)), the latest version of XCode and Command line tools for macOS (the tools being installed in the usual path /Library/Developer/CommandLineTools/).. Not sure if this is relevant to my issue or not, but I also have the latest version of Je...
2
2,395
why i got [object object ]
<p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false"> <div class="snippet-code"> <pre class="snippet-code-js lang-js prettyprint-override"><code>import React, { Component } from "react"; import { Button, View ,Text ,StyleSheet, FlatList, ScrollView} from "react-native"; import...
2
2,656
Dynamic array allocation in fortran90
<p>I am writing a generic subroutine in fortran90 that will read in a column of data (real values). The subroutine should first check to see that the file exists and can be opened, then it determines the number of elements (Array_Size) in the column by reading the number of lines until end of file. Next the subroutin...
2
1,450
keyboard not coming up
<p>I am using google form inside a webview in my application, it worked perfectly until i saw it this morning the keyboard is not coming up for the user input. </p> <pre><code>import android.app.Activity; import android.os.Bundle; import android.view.View; import android.webkit.WebSettings; import android.webkit.WebVi...
2
1,253
C# Foreach loop in constructor iterating once
<p>I'm in process of making custom JSON file editor. In order to better manage the data I want to create a tree. Default JToken and JObject are too complicated to me in order to use them to manage data. That's why I want to convert JObject that is created from input file to a tree.</p> <p>The basic principle of my cod...
2
1,049
Logging time incorrect in my custom Log4j2 XML configuration file Java
<p>I am new to log4j2. Previously I am using log4j. The reason I am migrating into part 2 is for Asynchronous logging. After searching Internet I am able to write a configuration file that actually creates two log files "Errors.log" and "Messages.log". Now the problem is : I would be communicating with Servers that are...
2
1,177
UwAmp : Mysql server not starting
<p>Mysql Server stop working after 2 seconds (fresh install of uwamp)</p> <p>Uwamp version 3.1 started with Administrator rights on windows 8.1 pro 64 bits.</p> <p>Here is the Mysql log :</p> <pre><code>2016-05-05T21:13:23.906126Z 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit...
2
1,046
Multiple notifications in different places shiny app
<p>I made a simple example to show my problem, which is:</p> <ul> <li>how to set notifications at different places independently of each others (let's say I want each notification to be displayed at the top right and left, respectively)</li> </ul> <p>```</p> <pre><code>library(shiny) ui &lt;- fluidPage( # ta...
2
1,312
tippy plugin cannot show multiple tooltips with HTML content
<p>I have a tippy plugin initialized this way:</p> <pre><code>tippy('.tooltip_commands', { delay: 100, arrow: true, arrowType: 'round', size: 'large', duration: 500, animation: 'scale', ...
2
1,135
Deploy many apps through ONE release process via Azure DevOps
<p>I need to deploy <strong>many</strong> similar apps to the same environments with Azure DevOps.</p> <p>What are some ways to share and maintain the release process for these apps....<br /> to avoid updating every app's Release process when it changes?</p> <p><strong>Background</strong></p> <ol> <li>I have dozens ...
2
1,323
Android Studio giving me Rendering Problems "You need to use a Theme.AppCompat theme (or descendant with the design library"
<p>Picture below: (Android Studio won't even let me copy the text)</p> <p><img src="https://i.stack.imgur.com/ViZG2.png" alt="error screenshot"></p> <p>I made another app before this and it worked well. I then made a new project and started getting errors like this one for no reason, then I made this project and I CA...
2
1,307
ASP.NET MVC: How to use linq lambda expression with a ViewModel to get data?
<p>How to use a linq expression to use a ViewModel to get data from from one of it's domain models? When I try to get the inv_mast_uid that is associated to the item_id the user enters, I only get a 0 and not a unique integer like 10345. I do get all other necessary data from the ViewModel.</p> <p>Here is an imaging ...
2
2,312
Pop up Arabic/Urdu custom keyboard on Edittext Issue
<p>I am working on app where i use <strong>Urdu Custom Keyboard</strong> its work fine but the problem is that when i type any-word e.g. (سلام), cursor become not works at mid character for example cut/copy/paste or deleting (ا) character from the mid from word are not work. i uses rough technique just appending charac...
2
1,232
Unable to build the image using the OpenShift build service: Timeout: request did not complete within 1m0s
<p>I'm trying to build Syndesis with the following command: </p> <p><code>syndesis build -m s2i -i -d -f -c --clean-cache</code></p> <p>But after building most of the projects, I got a final error:</p> <blockquote> <p>[ERROR] Failed to execute goal io.fabric8:fabric8-maven-plugin:3.5.38:build (exec) on project s...
2
1,790
JS FullCalendar Day & Event Double Click Functions
<p>I have seen several solutions for handling these actions but the majority deal with versions older than V4.</p> <p>I would like to add functions that handle double clicking on a day, and double clicking on an event.</p> <p>Below is my current setup <strong>without</strong> the sections handling these events.</p> ...
2
1,870
Orchard Custom MembershipService and UserService
<p>I am creating a new module to authenticate users against a custom MembershipService. I have made copies of the MembershipService and UserService from the Orchard.Users module and added the OrchardSuppressDependency attribute to each. I also created a custom data access service and injected this into each. My firs...
2
1,108
Display data of an associative array in a table with d3.js
<p>I am trying to display data of an an associative array in a table with d3.js But i can't get the individual values in the table.</p> <p>This is part of my array:</p> <pre><code> var twitterDays = [ { 0: { 0: 0, 1: 0, 2: 0, 3: 0, 4: 0, 5: 0, ...
2
2,227
java.util.ConcurrentModificationException when iterating over a hashmap with struts iterator
<p>I am trying to use a hashmap to populate textfields in a jsp and bring back the modified values in the action class through the same hashmap i used to populate. In spite of many different approaches, i am failing to do so. I tried sending back an object list but i failed in that too(see <a href="https://stackoverflo...
2
1,364
Simple Hello world with PegDown?
<p>I am recently learning the Java MarkDown library called PegDown. It seems to have many powerful features on top of a pure MarkDown parser. However I have the above exception when I run the following code:</p> <p>The error occurs at the line <code>PegDownProcessor pegDown = new PegDownProcessor();</code></p> <p>```...
2
1,937
Spring security csrf not working with spring-session
<p>I'm using spring-session version 1.0.0.M1 and I have configured it to use the <code>MapSessionRepository</code>: sessionFilterChainReg.addMappingForServletNames(EnumSet.of(DispatcherType.REQUEST), false, dispatcherServletReg.getName());</p> <pre><code>@Bean(name = {"defaultSessionFilter", "sessionFilter"}) ...
2
1,210
Laravel elastic search not giving contains or like match
<p>I wanted to have elasticsearch implemented for all my laravel search queries. I have the latest Laravel and latest elasticsearch installed using brew.</p> <p><code>curl http://localhost:9200/</code> gives,</p> <pre><code>{ "name" : "_SFvSGk", "cluster_name" : "elasticsearch_an398690", "cluster_uuid" : "xBi3a...
2
1,968
CSHTML rendering text only - static page?
<p>This is a continuation of my previous question (<a href="https://stackoverflow.com/questions/18193735/cshtml-pages-will-not-render">.CSHTML pages will not render</a>), but I am no longer getting a 500 error, thus the new post. My pages are now just rendering plain text / html (regardless of what I do).<br /></p> <p...
2
1,156
Django , password dont match error message not displaying. Customised UserAuth app
<p>I am having issues with an error being "not raised" within a register form page. It seems to pulling the form again but without "passwords do not matched" message.</p> <p>my form handler code</p> <pre><code>from django import forms from accounts.models import User class RegistrationForm(forms.ModelForm): ""...
2
1,063
Pseudo-Class:focus-within does not work correctly
<p>I use the <strong>pseudo-class:focus-within</strong> on my menu to show the sub-menu on click, but it shows it for a second, and then the sub-menu disappears. There is no problem when I use pseudo-class: hover, I just have the problem with focus-within.</p> <blockquote> <p><strong>li class=&quot;has-sub-menu&quot;</...
2
1,161
Function in fortran, passing array in, receiving array out
<p>I have this function, depicted below. It passes in two vectors with three values each, and should pass out one vector with three values as well. I call the function like this:</p> <pre><code>Fr = Flux(W(:,i),W(:,i+1)) </code></pre> <p>What I have realized through messing around with the code, trying pure fu...
2
1,393
Ng serve throwing @angular/core/core has no exported member 'ɵɵFactoryDeclaration'
<p>I'm getting errors stating that <em><strong>angular/core/core has no exported member 'ɵɵFactoryDeclaration'</strong></em> while I ran <code>ng serve</code> on angular9 project. The error I am getting is</p> <pre><code>ERROR in node_modules/angular-google-tag-manager/lib/angular-google-tag-manager.service.d.ts:18:21 ...
2
6,229
Angular CanDeactivate Guard is triggering recursively and failing to navigate to the component
<p>Requirement: Showing a confirmation modal to the user when navigating to different component(UsersComponent) from the current component(ProductsComponent).If user prefers to leave, I have to navigate to some other component(SalesComponent) rather than UsersComponent.</p> <p>To achieve the above am returning a Subjec...
2
1,045
Update SQLite Database
<p>I have a SQLite database set up from this tutorial changing it around to my own project: <a href="http://www.androidhive.info/2011/11/android-sqlite-database-tutorial/" rel="nofollow">http://www.androidhive.info/2011/11/android-sqlite-database-tutorial/</a></p> <p>However the tutorial does not mention how to update...
2
1,127
Deserialize JSON object/map as generic Collection with Jackson
<p>I have JSON maps like this:</p> <pre><code>"things": {"foo": {"name": "foo", ...}, "bar": {"name": "bar", ...}} </code></pre> <p>I want to deserialize them as if they were arrays:</p> <pre><code>"things": [{"name": "foo", ...}, {"name": "bar", ...}] </code></pre> <p>(to match XML/JAXB deserialization behavior):<...
2
1,370
NoSuchBeanDefinitionException: No qualifying bean of type [org.springframework.security.authentication.AuthenticationManager] found for dependency
<p>I am trying to load applicationContext.xml manually which removing previous autowired if i do not load the applicationContext.xml previous code works fine. </p> <pre><code>Error : Request processing failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name...
2
1,368
How to capture image with AVFoundation framework?
<p>I have following code to open the camera in UIView ,that is working right now.</p> <p>But i have two buttons like in this <a href="http://postimg.org/image/7hzbggtl9/" rel="nofollow">screen shot</a> one for capturing photo and another one for upload photo from library.</p> <p>How do i capture photo without going ...
2
2,173
Translating Pytorch program into Keras: different results
<p>I have translated a pytorch program into keras.</p> <p>A working Pytorch program:</p> <pre><code>import numpy as np import cv2 import torch import torch.nn as nn from skimage import segmentation np.random.seed(1) torch.manual_seed(1) fi = "in.jpg" class MyNet(nn.Module): def __init__(self, n_inChannel, n_...
2
2,566
React Konva - Performance of large number of nodes
<p>I am trying to draw large number of nodes in React Konva based on this <a href="https://konvajs.org/docs/sandbox/20000_Nodes.html" rel="nofollow noreferrer">performance demo</a>.</p> <p>My code:</p> <pre><code> const ZoomTest = (props) =&gt; { let width = window.innerWidth; let height = window.innerHeight; con...
2
1,277
Android openGL ES 2.0 scene scrolling
<p>I'm working on a simple game for android using openGL es 2.0. Game will be in 2D, something like old supermario, where player can move left-right/up-down but no depth. </p> <p>Level will be larger than screen, so graphics will have to scroll. Here is where the problem comes. I don't know where/when to stop scrollin...
2
1,630
How to populate a select box with the selected values of another select box
<p>I have a multiselect <code>select</code> box whose values are something like Object_1, Object_2... Object_10. When I click a button after selecting values, I can write selected values below, but I want to populate another select box with those selected values.</p> <p>Here is my code for the select box:</p> <pre><c...
2
2,150
MaxScript for picking an object name in 3ds Max
<p>Hello fellow Stack Overflow members! First of all, thanks for spending your time reading this question.</p> <p>I'm learning Maxscript so I can do some quick and sofisticated facial rig. My script is 99% done. The only problem is that right now the script has hard coded the name of the target object to be rigged ("M...
2
1,280
How to Bind an Image from an ObservableCollection to View
<p>I would like to bind a specific image from an OservableCollection to my View. I am attempting to use LINQ for this, and I believe I am getting the correct image, although the View does not show anything. So far what I have is as follows:</p> <p>ImagePage.xaml</p> <pre><code>&lt;Image x:Name="photo" Grid.Row="0" So...
2
2,508
symfony validation constraint ClassNotFoundException
<p>My custom constraint class is not found and I don't know where is the problem.<br /> this is the error</p> <blockquote> <p>Attempted to load class "CompanyTransferConstraint" from namespace "FM\FMBundle\Validator\Constraints". Did you forget a "use" statement for another namespace? 500 Internal Server Error -...
2
1,322
nested element inheriting parent Div's margin in ie7
<p>Trying to figure out why in IE7, the nested input element is taking on the margin of the parent div. So in essense the margin is being doubled.</p> <pre><code> &lt;style&gt; &lt;!-- h1.redsubhead{font-size:14px;} .accountInfo,.loginInfo{-moz-border-radius: 6px 6px 6px 6px;background: #EBFBFF; border:...
2
1,489
Execution failed for task for ':app:transformClassesWithMultidexlistForDebug'
<p>hi when i compile my project the error below shows up Execution failed for task for ':app:transformClassesWithMultidexlistForDebug'.</p> <p><code>java.io.IOException: Can't write [C:\Users\user\app\app\build\intermediates\multi-dex\debug\componentClasses.jar] (Can't read [C:\Users\user\.gradle\caches\transforms-1...
2
1,270
Flask, SAP UI5 and MVC
<p>I want to build a Python-Flask Application and use SAPUI5. I tried to build this small Application in Flask: <a href="https://sapui5.hana.ondemand.com/1.60.1/#/sample/sap.m.tutorial.walkthrough.05/preview" rel="nofollow noreferrer">https://sapui5.hana.ondemand.com/1.60.1/#/sample/sap.m.tutorial.walkthrough.05/previe...
2
1,585
how to temporarily pause drawing updates of a realtime data chart
<p>I would like a “Pause” the chart's series updates to do some job (like i have a button when i click it will suspend the chart update and then when I click resume button, it will update all suspended point in series.</p> <p>I know about </p> <pre><code>chart1.Series.SuspendUpdates(); </code></pre> <p>but it does n...
2
2,263
selectBooleanCheckBox does not work seperatly in p:dialog
<p>I have button that when I click on it, the dialog appear and in that dialog , I have <code>p:selectBooleanCheckBox</code> and <code>h:outputlable</code>. </p> <p>The first problem is when p:dialog appear I can not choose <code>p:selectBooleanCheckBox</code> separately. It means that when I click on one of them...
2
6,068
IIS Application Initialization call causing 0x80070032 error in event log
<p>I have set up application initialization requests for my Web API application such that when the application pool recycles certain endpoints are hit in order to load Entity Framework etc into the new process. I can see these requests succeeding in my API log:</p> <blockquote> <p>636603400963248247T16P14184 26/04/2...
2
1,092
Shopify line items using webhook when order updated
<p>I am using shopify webhook to update my sql server's 'qty' field when order updated, below is my php code </p> <pre><code>?php $xmlData = fopen('php://input' , 'rb'); while (!feof($xmlData)) { $xmlString .= fread($xmlData, 4096); } fclose($xmlData); $xml = new SimplexmlElement($xmlString); file_put_contents('o...
2
4,121
Caused by: android.view.InflateException: Binary XML file line #7: Error inflating class fragment
<p>I am new to android programming and google map v2.I am trying to draw a route using google map v2 in my android app. The problem is , whenever i run the code it gives inflate exception. I am not being able to figure it out what is causing this problem. I am following this website <a href="http://wptrafficanalyzer.i...
2
6,658
Umbraco Cannot render a macro when there is no current PublishedContentRequest
<p>Hope you can help me.I encountered that error upon calling a view from my umbraco razor page using RenderMvcController. It's seems it can't render my created macro inside a layout page.</p> <p>Line 4: } Line 5:<br> Line 6: @Umbraco.RenderMacro("ExternalRedirect") Line 7:<br> Line 8: </p> <p>Source File: c:\Work...
2
1,525
R package DT cannot be installed
<p>In order to use the following command in RStudio</p> <pre><code>DT::datatable(Result, rownames = FALSE) </code></pre> <p>the package DT needs to be installed. Without it the following error occurs:</p> <pre><code>Error in loadNameSpace(name) : there is no package called 'DT' Calls: &lt;Anonymous&gt; ... tryCatch -&g...
2
1,687
Inserting multiple image files array into a database
<p>I am creating a stock form which includes up to 20 image files. When uploading the images to the server i need to change the name and also insert them into a database so that it will work on the websites carousel. The name changes OK aswell as the upload to the servers folder. The problem I seem to be having is that...
2
3,841
JavaFx Text fields are not updating on GUI
<p>I am trying to code a memory visualizer that will update a graph with current memory statistics and have a numerical representation just to the side of it. I have an update method that runs in a thread and should update every second. </p> <p>The issue is that none of it updates on the GUI, and in fact I believe the...
2
2,107
Yes/No checkbutton for bool attribute in a GUI to manage a list of objects
<p>For this gui I have five objects: Full name, Contact info, Desired Language, Difficulty level, and Experience with the language. My design for this assignment is that it's a simple 'Foreign Language Bookstore Request Manager' in which I can add, edit and delete requests for foreign language books. </p> <p>I want th...
2
3,376
i want to disable my custom validation in edit action in asp.net mvc
<p><b>Model</b></p> <pre><code>public partial class MemberModel { [Key] public int MemberID { get; set; } [Required] [Unique_Member] [StringLength(255)] [Display(Name = "First Name")] public string FirstName { get; set; } [Required] [Uniq...
2
2,496
Can't get the download link of file (Google Drive APi, PHP)
<p>I have created a page on php language that contains list of files, stored in a folder and button "Submit". After clicking on the button, the file is upload in Google Drive. I want to make that after a successful download of the file in Google Drive, a link appeared for downloading this file, but I can not do it.</p>...
2
3,148
I get android.content.res.Resources$NotFoundException: Resource ID #0x0 when I try to parse a layout
<p>I created an activity and inside this activity I have different fragments. In a fragment I want to check if user is logged in, if is logged in display a layout if it's not logged in display another.</p> <p>here is what I did, can you please look over?</p> <pre><code>public class MyProfileFragment extends Fragment ...
2
1,261
C# -- Windows Server 2012 installing Features and Roles using Powershell
<p>I have written an application that installs Windows Roles and Features using the Powershell API. It works just fine in Windows 2008 R2, but nothing happens in Windows 2012; the program just moves on as if everything happened just fine, but nothing is installed.</p> <p>I've tried making the program .NET v4.5 (it wa...
2
1,056
core data child/parent save exception
<p>I got crash (probably while parent moc saved:</p> <p>this is how moc's created (parent):</p> <pre><code> if (_managedObjectContextInMemoryForDynamicInformation) return _managedObjectContextInMemoryForDynamicInformation; NSPersistentStoreCoordinator *coordinator = [self persistentStoreCoordinatorInMemoryForDy...
2
2,545
WPF two way binding not working on CheckBox and List<string>
<p>Even after reviewing a multitude of solution proposals I cannot get a simple two way binding in xaml to work. I have a Window, a dataContext and an App. Problem is that:</p> <p>a) while the App constructor runs, the Window (initialized and <code>.Show</code>-ed in the same constructor) shows up, but is not updated ...
2
2,745
gwt: Cause of this Umbrella Exception?
<p>In my project i am using gwt and the libary gwt-connectors 2.4.. The following Code throws an NullPointer-Exception, and it would be great if someone can help me to find the reason for this exception! How can i solve that?</p> <pre><code>public class Projekt implements EntryPoint { private RootPanel rootPanel;...
2
3,930
disabled textbox causes errors in PHP page when trying to update table in mysql
<p>I'm caught in a set of twisting codes. I've a table in a form which consists of all the information from one table say emp_info. I am not including all the mysql query and db connection but just suppose this table has fetched information from emp_info table from my database. Example:</p> <pre><code>&lt;table align=...
2
3,758
app works on simulator but not on iPhone
<p>I have developed and iPhone app and it seems to work fine on the simulator 5.0. However, when I tried to test it on the real device, an iphone w/ ios 5, it's not working. The app launched but all I see was a black screen.</p> <p>Here's the crash log I found in the Device Log Sorry I am pretty new to this.. I am not...
2
3,329
Android Volley Memory Leaks
<p>I use google's volley library and I have been battling memory leaks in my apps for weaks now. I have done soo much research and tried soo much already but now I just do not know what to do. This is a sample code:</p> <p>SplashActivity.java</p> <pre><code>public class SplashActivity extends AppCompatActivity { ...
2
1,451
tomcat 7 + jersey + hibernate 4.5.1 - NameNotFoundException - tried everything
<p>Thanks in advance for any help. I'm at my wit's end with this one. I've got everything setup (I think properly) but nothing works. So posting here in the hopes that someone can help.</p> <p>POM.xml:</p> <pre><code> &lt;project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSch...
2
11,834
Send Email with data (ASP.NET mvc)
<p>I need to make sending Email by button click.</p> <p>I make Model for Email</p> <pre><code>public class MailModel { public string From { get; set; } public string To { get; set; } public string Subject { get; set; } public string Body { get; set; } public bool IsShowAlert { get; set; } } </code...
2
2,576
Need a workaround to access ReadOnlySpan<T> inside a function that returns an IEnumerable
<p>while dealing with native code interop I decided it was the time to learn and try new Span features of the C# language. Although with many trials, everything was going perfectly fine until I come to the final stage of my very long function for which I insert below just a minimal reproducible sample:</p> <pre><code> ...
2
1,395
"TypeError: Cannot read property 'name' of undefined" error after Angular page refresh
<p>Sorry if this is a simple problem, I am a newbie to angular and trying to integrate it as a front end for a basic rails blog app. I am a bit stuck on a problem that I think is related to angular promises, but not sure. I am getting the following error in the console after a page refresh:</p> <pre><code>TypeError: C...
2
1,174
phpmyadmin: Cannot login with a user who is not root (Access denied for user + PHP was built without openssl extension, can't send password encrypted)
<h1>Problem</h1> <p>I cannot login to phpmyadmin with a user who is not the root-user.</p> <h1>Description</h1> <p>I installed a Webserver with XAMPP, a MySQL-Server 8.0.12 with the Community-Installer and phpMyAdmin 4.8.2 (PHP 7.2.8).</p> <p><strong>Logging in to phpmyadmin with the root-user works fine.</strong><...
2
1,278
Append Geocode Result to Infowindow Content
<p>I want to ask how to append/display the geocode result into infowindow content. In this case, i have multiple marker. I try by using a div on infowindow content and update the div content after getting the geocode result (using callback), but it not works. How to solve this,,,</p> <pre><code>&lt;html&gt; &lt;head&g...
2
2,823
Loop in python for moving averages based on condition
<p>i have 5 weeks sales data of product and store combination. Out of the 5 weeks , first three of them can be on promotions. Either 1st is on promotion, or 2nd or 3rd or all three or none of them are on promotions. so in total 8 conditions will be there. now i want to calculate a moving average kind of thing in pytho...
2
4,967
Getting null in nested elements when deserializing xml
<p>I'm deserializing my xml which is string, into my classes. Problem is that part of nested child elements or their attributes return null.</p> <p>Here is my deserialize function:</p> <pre><code>public static T DeSerialize&lt;T&gt;(this string xml) { XmlSerializer serializer = new XmlSerializer(typeof(T)); u...
2
1,984
How to improve performance of query with two inner joins?
<p>I have 3 tables :</p> <pre><code>CREATE TABLE `t_event` ( `id` int(10) NOT NULL auto_increment, `title` varchar(100) NOT NULL, `kind` int(10) NOT NULL, `type` int(10) NOT NULL, `short_desc` varchar(500) default NULL, `long_desc` varchar(1500) default NULL, `location` int(10) NOT NULL, `price` decima...
2
2,471
Using graphql union return an array with some empty objects
<p>I'm using graphql union - <code>union FolderOrFile = Folder | File</code>. When I query for only folders I get array containing folder objects with empty objects that are basically the file objects.</p> <p>TypeDefs</p> <pre><code>const typeDefs = gql` union FolderOrFile = Folder | File type Folder { ...
2
1,356
Convert NSURLConnection to NSURLSessionUploadTask example
<p>Hi everyone and thanks in advance for any help providing in understanding in how to convert some NSURLConnection code into the newer NSURLSession. What I am trying to do is to make a POST request to a server, and send a photo base 64 encoded for the key "photo".</p> <p>Below I have an working example written in NSU...
2
1,453
Google Script: forEach to Array
<p>I'm trying to push the returned values from forEach to an array. </p> <p>Right now results are returned individually in the Logger like</p> <p><code>result 1 result 2</code></p> <p>That's what I want, I just don't know how to get those results back to a single array that I can use outside of the <code>forEach</c...
2
1,230
Post method is not sending my data in api call
<p>Hi I'm new to swift and I made following api call o send data but it's not sending and I got following response.</p> <h2>Sent data</h2> <pre><code>firstName=gggg&amp;lastName=ggg&amp;username=fgg&amp;password=ghh&amp;email=ggg@gg.com&amp;latitude=25.0710693470323&amp;longitude=55.143004052641 </code></pre> <h2>re...
2
1,261