title
stringlengths
13
150
body
stringlengths
749
64.2k
label
int64
0
3
token_count
int64
1.02k
28.5k
Joomla different default page based on URL for microsites
<p>I am building a template right now for a client that wants to have multiple microsites and one master site under one instance of joomla. I'm building it in Joomla, because that is what I know, so please don't suggest another CMS, and yes I know Drupal supports this inherently! So here is the skinny. Right now my tem...
2
1,177
How to handle Form-Based Authentication login (j_security_check) after session-timeout
<p>a question regarding the handling of login to a web/application server (WildFly 9.0.2) after a session-timeout.</p> <p>Scenario:</p> <p>I have a simple Web Application with a login page using Form-Based Authentication (action: j_security_check) and container managed login.</p> <p>This works as expected:</p> <ol>...
2
1,118
Show list of possible valid xml element values
<p>I have following Xml schema.</p> <pre><code>&lt;xs:schema attributeFormDefault="unqualified" elementFormDefault="qualified" xmlns:xs="http://www.w3.org/2001/XMLSchema"&gt; &lt;xs:simpleType name="type"&gt; &lt;xs:restriction base="xs:string"&gt; &lt;xs:enumeration value="Type 1" /&gt; &lt;xs:enu...
2
1,077
dagger.internal.codegen.ComponentProcessor was unable to process this interface because not all of its dependencies could be resolved
<p>I've been trying to setup dagger in a multimodule project. My setup is the following:</p> <pre><code>@Singleton @Component(modules = [AndroidSupportInjectionModule::class, NetworkModule::class, MovieListActivityModule::class, DetailActivityModule::class]) interface AppComponent { @Component.Builder interfa...
2
1,615
Apache poi converter is not showing the table borders lines after converting
<p>I am having an issue when using Apache POI to create a DOC file, then convert to PDF.</p> <p>Using Apache POI to create a DOC file works well, it outputs a DOC with text, tables, imagery and shaded headers without problems. If I use IText to create the PDF this also works.</p> <p>I am trying to reduce development ...
2
1,758
FATAL EXCEPTION: AsyncTask, receiving json
<p>Im doing some database work in my app, i want to pull all the locations from my web database and show it in my listview in the app. Ive created the "API" where the respons is Json.</p> <p>The link where the json is: <a href="http://000100023.host56.com/db_all.php" rel="nofollow">http://000100023.host56.com/db_all.p...
2
6,219
Calculating expectation for a custom distribution in Mathematica
<p>This question builds on the great answers I got on an earlier question:</p> <p><a href="https://stackoverflow.com/questions/5583456/can-one-extend-the-functionality-of-pdf-cdf-finddistributionparameters-etc-in-m">Can one extend the functionality of PDF, CDF, FindDistributionParameters etc in Mathematica?</a></p> <...
2
1,072
Memory leak when initializing @ObservedObject inside View
<p>I have a <code>ViewModel</code> class that is an <code>ObservableObject</code> and I initialize it when initializing its corresponding view. It seems that if I have any bindings to the <code>ViewModel</code> inside the view, the <code>ViewModel</code> is leaked.</p> <p>For example, if I show said view inside a shee...
2
1,251
Calculate time difference between entries in a file using python
<p>I have csv file with the data formatted like this <code>date,time,event,user,net</code> . I need to go through each line of this file, and if event == start, continue till it reach the line with event == end for the same user and net, then calculate the time difference between the two events. I have this code:</...
2
1,535
how to create a soap request for client saaj of given xml
<p>I am new to <code>SOAP</code>. I want to create a <code>soap</code> request of given below <code>xml</code>.</p> <p><strong>xml</strong></p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XM...
2
1,666
SwiftyCam capture session is not running
<p>I have created my camera view following the demo project on GitHub from <a href="http://github.com/Awalz/SwiftyCam" rel="noreferrer">SwiftyCam</a> Everything lays out correctly and is going well; however, when the camera button is pushed I get a message in the console saying "[SwiftyCam]: Cannot take photo. Capture ...
2
4,676
How to prevent continuous autosaveInPlace with continuously updates value binding option
<p>Continuously updates value binding option triggers continuous autosaveInPlace attempts (for every single char you type).</p> <p>Hello everyone, this is my first question here!</p> <p>I hope I will ask it correctly… :)</p> <p>I’m trying to add Lion’s autosave mechanism to my core data document-based application. I...
2
1,269
nginx reverse proxy to wordpress docker container hangs with HTTP 301 error
<p>I’m trying to use nginx as a reverse proxy for multiple docker containers running wordpress. The nginx instance and docker are running on Ubuntu 16.04.3 server. I have been testing this out on my local dev environment with Vagrant using a separate Ubuntu box for nginx and another for docker. The vagrant configura...
2
3,893
Error setup powerline for bash shell on Yosemite
<p>I would like to use <em>powerline</em> with <em>bash</em> (not <em>zsh</em> if possible) but I have faced some errors, below are steps I have been through</p> <p>I recently install <em>python</em> using <em>homebrew</em></p> <p>I have also executed <code>brew linkapps python</code></p> <p>I have installed <em>pow...
2
2,204
How do you plot a CostSensitiveClassifier tree in R?
<p>In this case I'm using the RWeka package and J48 within the Cost Sensitive Classifier function. I know with the package "party" I can plot a normal J48 tree, but not sure how to get a plot with the CSC output.</p> <pre><code>library(RWeka) csc &lt;- CostSensitiveClassifier(Species ~ ., data = iris, control = Weka...
2
2,266
writing file using File.WriteAllBytes giving error while accessing file created by this function
<p>I have used the following code and it works fine. But sometimes it throws an exception:</p> <pre><code>Message :- The process cannot access the file 'DownloadDB\client\user\filename.db' because it is being used by another process. Stack Trace :- at System.IO.File.InternalDelete(String path, Boolean checkHost) a...
2
1,251
How to add 0.001 L2 weight decay for each layer in CNN?
<p>I am trying to implement this paper for sound classification: <a href="https://raw.githubusercontent.com/karoldvl/paper-2015-esc-convnet/master/Poster/MLSP2015-poster-page-1.gif" rel="nofollow noreferrer">https://raw.githubusercontent.com/karoldvl/paper-2015-esc-convnet/master/Poster/MLSP2015-poster-page-1.gif</a> <...
2
1,218
What is the correct way to create a Java package from command line? (trouble with Maven)
<p><strong>[ SOLVED ] - but still looking for explanation. Please see bottom of question</strong></p> <hr> <p>I don't have much experience with command line or with Maven. I'm working on a tutorial from a book. It state I should create a java file</p> <pre><code>src/main/java/com/effectivemaven/chapter01/ExampleActi...
2
2,268
Microsoft's jQuery Validate Unobtrusive makes other validators skip validation
<p>I'm using unobtrusive validation in an MVC3 application. For one form, I need to do some pretty complex validation. Therefore, I figured I could use the regular jQuery validate plugin. When using a custom validation script and a reference to <code>jQuery.validate.unobtrusive.js</code> is included in the page, the cu...
2
1,363
Heroku + Node.js (express) - Application Error
<p>I'm writing a basic Node.js HTTP request&amp;response application following a step-by-step tutorial.</p> <p>After deploying to Heroku if I visit the URL I get an "Application Error".</p> <p>It has already happened the same. I waited some time, deleted the Heroku app, pushed the Heroku app back and it was working f...
2
4,692
Intuition behind using backtracking (and not DFS)
<p>I am solving <a href="https://leetcode.com/problems/word-search/description/" rel="nofollow noreferrer">Word Search</a> question on LeetCode.com:</p> <blockquote> <p>Given a 2D board and a word, find if the word exists in the grid.</p> <p>The word can be constructed from letters of sequentially adjacent cell, where ...
2
1,139
bash: git_prompt: command not found
<p>I'm getting this Annoying <code>git_prompt: command not found</code> error. I got a new Mac, and I'm trying to use my old <code>.bash_profile</code> into the new computer. I used <a href="https://github.com/thoughtbot/laptop" rel="nofollow noreferrer">Thoughtbot's laptop</a> configuration which worked well last time...
2
3,039
How to Store a User-defined Class Object in Sql Server 2008 using C#?
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="https://stackoverflow.com/questions/4057748/save-byte-into-a-sql-server-database-from-c-sharp">Save byte[] into a SQL Server database from C#</a> </p> </blockquote> <p>I have a class named <strong>LeaveDetails.cs</strong></p> <pre><code>using Sy...
2
1,047
How to easily swap Maven settings profiles?
<p>At my company we use a Nexus server to fetch the artifacts. Which is fine. But sometimes I want to use Maven at home too, where I cannot access the company Nexus. Is there an easy way to swap Maven settings profiles? And is it easily swappable with <code>m2eclipse</code>? </p> <p>At the moment I'm using the followi...
2
1,993
How do I run Beam Python pipelines using Flink deployed on Kubernetes?
<p>Does anybody know how to run Beam Python pipelines with Flink when Flink is running as pods in Kubernetes?</p> <p>I have successfully managed to run a Beam Python pipeline using the Portable runner and the job service pointing to a local Flink server running in Docker containers. </p> <p>I was able to achieve that...
2
3,000
http error 405 method not allowed error with web.API
<p>I know I am not the first one to come across this, but I have tried all the suggested fixes and still can not get it to work. I want to use the DELETE and PUT verbs with my web.API services and DNN 7.</p> <p>Here is my code for the service:</p> <pre><code> routeManager.MapHttpRoute(moduleName, "deleteproduct",...
2
1,288
Wpf performance : Reduce lags when using animations
<p>I have a few questions related to performance issue in <code>Windows Presentation Foundation</code>. I hope experts on SO can help me a bit. I am a student and always open to learning.Anyways,let's get started.</p> <p><strong>1 • Animations over PERFORMANCE</strong></p> <p>In my wpf app,i have a lot of storyboards...
2
2,149
React Material UI - Responsive CardMedia
<p>Currently, I am trying to build a gallery using React Material UI (with <a href="https://material-ui.com/components/cards/" rel="nofollow noreferrer">Card</a>, ...). I have some issues to make the gallery responsive, as I might have different cover sizes :</p> <p><a href="https://i.stack.imgur.com/2n6vf.png" rel="no...
2
3,194
Problems with Nativescript UI RadListView
<p>I'm having trouble initializing a RadListView from data that works with a regular ListView. i have an observable array that should output items in the listview, and when using regular old ListView, it works fine. Id like to take advantage of the out of the box swiping functions in RadListView, but Im getting a verbo...
2
3,697
Python ScikitLearn GridSearchCV issues with TFIDF - JobLibValueError?
<p>so I have a corpus of words I'm running TFIDF on and then trying to classify using Logistic Regression and GridSearch.</p> <p>But I'm getting a huge error when I run the GridSearch.. the error is this (it's longer, but I just copy and pasted a little bit):</p> <pre><code>An unexpected error occurred while tokenizi...
2
2,910
Asp.net Web Site Administration Tool using wrong database
<p>I have an ASP.Net web-forms application that uses membership functionality. I have created the required database using the aspnet_regsql.exe tool on a <strong>remote</strong> server. Now, if I use the Web Site Administration Tool to define roles, I experience the following things:</p> <ul> <li>I can see the users ...
2
1,037
xmlhttprequest on google chrome, sometimes return net::connection_reset error
<p>i've been tasked create a xhr post request to websocket server,</p> <p>however whenever chrome is used, it returns net::ERR_CONNECTION_RESET 50% of the time. </p> <p>this does not occurs on other browser as tested on safari, firefox, and microsoft edge.</p> <pre><code>function doPost(url, data) { promisePost...
2
1,304
Lumen PHPUNIT not using the .env.testing
<p>I am having an issue in Lumen with testing. I have my <code>phpunit.xml</code> as such:</p> <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt; &lt;phpunit backupGlobals="false" backupStaticAttributes="false" bootstrap="vendor/autoload.php" colors="true" convertErrorsToExcept...
2
1,989
The parameter CacheSubnetGroupName must be provided and must not be blank
<p>I use the module, <a href="https://github.com/cloudposse/terraform-aws-elasticache-redis" rel="nofollow noreferrer">https://github.com/cloudposse/terraform-aws-elasticache-redis</a> to provision elasticache redis. Below are the errors when I run terraform apply. I have no clue of these errors.</p> <p>Terraform versi...
2
3,004
why is my application throwing finalizer exception in android?
<p>i have an application in which there is constantly this exception being thrown...</p> <pre><code>04-25 18:47:38.024: INFO/dalvikvm(10290): Uncaught exception thrown by finalizer (will be discarded): 04-25 18:47:38.035: INFO/dalvikvm(10290): Ljava/lang/IllegalStateException;: Finalizing cursor android.database.sqlit...
2
4,404
delayed_job queue not being processed on Heroku
<p>I'm running a Rails 3 app with delayed_job. The issue I've come across is that though the app is correctly adding jobs to the queue, they are never being processed.</p> <p><strong>My Class</strong></p> <pre><code>class User &lt; ActiveRecord::Base after_create :send_welcome_email private def send_welcome...
2
1,125
DigestValue of the xml document in php
<p>Could anyone please help me how to accomplish the correct DigestValue in the XML document? I have some XML examples from the creator, but somehow I cannot generate the same SHA256 hash in PHP.</p> <p>The documentation says that the &lt;soap:Body&gt; should be hashed using SHA256 algorithm. Well, from what I underst...
2
4,762
How do I stop Symfony 2 checkbox from returning null
<p>On my Symfony 2 form I have 2 checkboxes. The documentation states </p> <blockquote> <p>"if the box is checked, the field will be set to true, if the box is unchecked, the value will be set to false"</p> </blockquote> <p>which is what I'd like to happen but when the checkbox is unchecked I'm actually getting n...
2
1,348
How to find a collection with mongoose
<p>I use mongoose and express library to call API to get mongodb data.</p> <p>This code i use API can get the data as well if i give up to use <code>Schema</code></p> <pre><code>const Driver = require('../models/driver'); const mongoose = require('mongoose'); // If i don't use Schema by using connection can get colle...
2
1,292
How to add a click event for images in Pygame?
<p>I have the following code. Which basically gets all the images from the folder apps and the subfolders of it. My problem is that I am trying to add a click event to all of the images to do the same thing. Basically "<code>exec("apps/" + apps[app_count] + "/app.py"</code>)"</p> <pre><code># -*- coding: utf-8 -*- fro...
2
1,250
My Select query is not working in Spring MVC 3 using MySql Database
<p>My DAO Class:</p> <pre><code>public boolean RetreiveId(UserBean userBean){ boolean userExists = false; /* Provide table name and column name carefully in the sql query below. * here i have a table "userbean" with two column's * "userId" and "password" both of varchar2 type. */ S...
2
1,054
How to use the DependencyProperties of a Blend Behavior during its initialization?
<p>Here I have a simple Blend Behavior. It has a single <code>DependencyProperty</code> which I want to do something with during initialization in <code>OnAttached</code>. But I can't because the behavior appears to be attached before it is even initialized!</p> <p>Usage:</p> <pre class="lang-xml prettyprint-override...
2
1,029
Apache Zeppelin - Zeppelin tutorial failed to create interpreter - Connection refused
<p>I am trying to test Zeppelin 0.6.2 with a Spark 2.0.1 installed in a Windows Server 2012. </p> <p>I started the Spark master and tested the Spark Shell. Then I configured the following in the conf\zeppeling-env.cmd file:</p> <p><code>set SPARK_HOME=C:\spark-2.0.1-bin-hadoop2.7</code></p> <p><code>set MASTER=spark...
2
1,993
Texture Transparency in OpenGL
<p>I am making a texture in my environment that excludes all white pixels. I read in a ppm file and the fourth value is always set to 0 if it is a white pixel. Everything seems to be in order, I have set up my view correctly and so forth. The texture image is visible with my current code, however the image as a whole i...
2
1,302
Zoom To Point Not Working As Expected
<p>I'm trying to implement a simple "zoom to point" functionality in WinForms. When the mouse is at the same point and the mouse wheel is scrolled in/out, it works great. When the mouse position is <em>changed</em> between scrolls, it jumps to that position and is very wonky. Here's the code for the control that you ca...
2
1,429
Saxon: convert xdmNode to org.w3c.dom.Node
<p>I would like to convert a xdmNode to a dom Node. I have found the following partial solution:</p> <pre><code>Processor proc = new Processor(false); XPathCompiler xpath = proc.newXPathCompiler(); Document doc = DocumentUtilities.createEventCountsTestDocument(); XdmNode xdmNode = proc.newDocumentBuilder().wrap(doc); ...
2
1,025
Rails Image Not Showing Up With Paperclip
<p>I am trying to get an avatar to show up on my main page. I am using Paperclip to do this. However, whenever I try to show the image I get this:</p> <p><img src="https://i.stack.imgur.com/Pgndc.png" alt="enter image description here"></p> <p>This is what my code looks like:</p> <p><strong>View:</strong> </p>...
2
2,501
AWS API request rate limits
<p><em>Update</em>: Keep-alive wasn't set on the AWS client. My fix was</p> <pre><code>var aws = require('aws-sdk'); aws.config.httpOptions.agent = new https.Agent({ keepAlive: true }); </code></pre> <p>I finally managed to debug it by using the Node <code>--prof</code> flag. Then using the <a href="https://www.npm...
2
1,082
Can I alter the typesafeEnumMemberName generated bij cxf-xjc-plugin?
<p>I'm generating java class files using org.apache.cxf:cxf-xjc-plugin from an xsd. I'm using the global binding <code>typesafeEnumMemberName="generateName"</code> so the plugin generates member names for the enum class when the plugin cannot create a valid Java identifier for a member of the enumeration.</p> <p>My qu...
2
1,095
Time measure UDP socket C
<p>I´m trying to obtain the performance in a Client (PC i7 3.4 GHz Kubuntu 15.04) - Server (RaspberryPi 700 Mhz Raspbian Jessie) architecture with sockets, measuring the spent time sending and receiving with at least microseconds precision.</p> <p>Concretely, I have a client (PC) that makes 100 times:</p> <ul> <li>S...
2
9,285
VS2015 Coded UI Cross Browser with Chrome error "Value cannot be null"
<p>When running a Coded UI test against Chrome, the cross browser console appears and the chrome browser pops up (but does not display web page), but then I get an exception: </p> <blockquote> <p><strong>System.ArgumentNullException: Value cannot be null. Parameter name: windowHandle</strong> Test method SFS.Test...
2
1,115
android push notification opens the browser
<p>I'm following the tutorial below for Google Push Notifications. The tutorial uses WAMP but i've got it to work with a SQL Server. Everything works fine. I can generate a message from the php file on the server and the message is delivered to the registered phones.</p> <p>The problem i have is the message is a URL t...
2
2,284
two components with the same id can't be added to the application
<p>Hello I am having problems with 2 popupcontrol extenders. They are used in conjuction with a webservice to display the detail information from a database. Each extender gets information a from 2 different tables. The extenders both work fine except when they have run across a row that has the same primary key num...
2
3,330
How to get enum value in angular js with a response data
<p>I have a problem, I confused to get enum value in angular js. Oke, I have table list, the column 'Criteria Type' there are two values from mysql : 'C' is Cost and 'B' is Benefit. But my table list just display "C" or "B". So, how can i get/make enum value by initial string 'C' to be Cost and 'B' to be benefit? Here ...
2
3,160
o.s.boot.SpringApplication : Application run failed with CommandLineRunner exception
<p>I am building some Spring boot application and with the main class I am implementing CommandLineRunner and so the code I want to get executed is present in the overrided run() method. I know similar question is present on stackoverflow but the solution's mentioned over there are not solving my issue's. This is appl...
2
3,063
ASP.Net MVC: Passing view model to partial view
<p>I've read a bunch of posts here on SO re: this and still don't get it.</p> <p>I have a view with a partial view paging control in it that needs access to the same model as the parent view.</p> <p>Parent View:</p> <pre><code>model IEnumerable&lt;Models.ExchangeBrowseViewModel&gt; @{ ViewBag.Title = metaExchang...
2
1,450
Made a socket in C++ in winsock and connected to google and am getting some garbage at the end of the response
<p>I made a simple web browser and I'm able to connect to Google on the page <code>www.google.com/?gws_rd=ssl</code> and I get all the http information like <code>Cache-Control:</code>, <code>Content-Type:</code> etc but the last part after that stuff comes out as garbage, here's what it gives me: </p> <pre><code>HTTP...
2
3,163
Custom UITableViewCell with canBecomeFirstResponder YES won't deselect when offscreen
<p>I recently happend to find some interesting bug in UITableView regarding selection and deselection functionality. (m.b. it's not a bug per se, but I find this situation very abnormous).</p> <p>Prehistory: I was trying to create some custom TableViewCell class that will be able to use UIDatePicker to pick some date ...
2
1,044
How to implement correct doubleclick-to-edit in TableView
<p><strong>Problem</strong> </p> <p>The TableView seems to go into edit mode as soon as you click on an already selected cell. This is unwanted and inconsistent behavior, because the selection changes if you click outside of the current selection. It doesn't change when you click inside the current selection. </p> <p...
2
3,183
How to use JFileChooser to display image in a JFrame or JPanel
<p>I have created a program that can change the format of an image. Everything is working, but when I open an image through JFileChooser I am getting <code>java.lang.ClassCastException</code>. Please can somebody help me. I think I am making a mistake when using the file chooser. I am beginner, please can somebody hel...
2
3,553
Browser cache persists when using Varnish
<p>I think this seems related to Varnish. </p> <p>After I log out, user status should change. But it didn't. I have use "CTRL + F5" to force cache refreshing. </p> <p>So I am little confused. I forced refreshing of the browser cache or Varnish cache. </p> <p>If Varnish is caching the correct page ( user is not logge...
2
3,957
Vue.js - How to add components inside rendered HTML
<p>I need to format a Wordpress-based website editor from being fully pre-rendered to being rendered through Vue.JS. The editor's backend (done in PHP) sends me the HTML of the elements on the page. I want to render the page with Vue.js templates/components, with the HTML from the backend, for each element. It would lo...
2
1,285
Logger output to TextArea in JavaFX
<p>I have a GUI window with a <code>JavaFX</code> <code>TextArea</code> where I would like to output all logger output (info, debug, error, etc.) in real time (similar to the console output from an IDE when running the project).</p> <p>I've had a look at <a href="https://stackoverflow.com/questions/39247784/redirectin...
2
3,513
to crop the rgb image based on the pixel value
<p>I am having an rgb image and I want to crop it from all sides. i have tried the below code on gray scale image it works but for RGB image it doesn't. My code is:</p> <pre><code> import cv2 import numpy as np import glob,os from PIL import Image inputdir = &quot;/Users/sripdeep/Desktop/Projec...
2
1,079
PBS Communication Error: Nodes can not communicate
<p>I successfully installed the pbs server, started the services and can view the nodes using pbsnodes command. The queue is showing in qstat -q command properly. After I submit a test job, the followings come up in my sched_log, server_log and in the mom node mom_log files:</p> <p>sched_log:</p> <pre><code>08/16/201...
2
1,337
Pass Arrays from PHP file to JS file
<p>I would like to pass an array I have in my PHP file to another file that is written in java script. This is my array:</p> <pre><code>$pictures = array( "1" =&gt; array("caption" =&gt; "1920x1200px", "tag" =&gt; "wallpaper", "link" =&gt; "#"), ); </code></pre> <p>And in my java script file this is the place where I...
2
1,049
Dropdown menu links show on Focus
<p>Can't seem to get the dropdown links to show (on focus) on when tabbing with the keyboard. Tried a couple different styles, but no luck. Any help would be appreciated.</p> <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false"> <div class="snippet-code"> <pre class="snippet-...
2
1,292
How to backup and restore in c#.net
<p>I developed a windows C# .net application and I use Sqlserver database. I created database in a special user named <em>admin</em>. And now I want to backup and restore database.</p> <p>So I am successful in backing up but I get error while restoring</p> <pre><code> private void pictureBox6_Click(object sender, Eve...
2
1,751
ReactJS + Redux, getting error "Failed prop type: Right-hand side of 'instanceof' is not callable"
<p>I'm helping develop a web app in React and we're using Redux for global state control.</p> <p>What I don't understand is why are we getting these warnings on the browser console? What is needed to make it go away? It looks like something's wrong when declaring the prop types but I can't figure out how to do it prop...
2
1,128
Changing layout/frame in response to a button press
<p>I'm trying to make a little game on Java using the Swing components (Boggle-type game). The way I have it set up right now, it basically opens up to the game right away - but I want to have a start up window with two buttons - "Tutorial" and "Play". I already have the functionality (my Tutorial button just opens a n...
2
1,177
Minimum surface area for a given volume of prism with edges of integer length
<p>If I have some <code>int volume</code>, how would I go about writing a method that returns <code>length</code>, <code>width</code>, and <code>height</code> (all ints) so that <code>length*width*height&gt;=volume</code> and <code>2(width*length+height*length+height*width)</code> is as small as possible?</p> <p>Basic...
2
1,551
How to run multiple async tasks in one worker thread?
<ul> <li>Environment <ul> <li>Windows 7</li> <li>Visual Studio Professional 2013</li> <li>C#</li> </ul></li> </ul> <p>I'm working on an app which communicates with a device, a regulated power supply, which controls output voltage to set or get voltage to or from it. For example, if the current voltage is 0V and 10V i...
2
1,171
d3.js Throbbing marker points on a map
<p><img src="https://i.stack.imgur.com/MVaxr.jpg" alt="enter image description here"><img src="https://i.stack.imgur.com/uidXq.jpg" alt="enter image description here"></p> <p>I'm building an application that will plot markers on a map - and have alarm rings animating smoothly from the markers.</p> <p>The markers will...
2
1,688
ion-nav-view with nested ion-nav-view not working
<p>I have a strange problem with <code>ion-nav-view</code> nesting. When I load the application in a browser, I can see the URL is getting changed to <code>/app/menu</code>, but no contents from <code>menu.html</code> appear on the page. The page is blank.</p> <p>Following is the code snippet</p> <p><strong>index.htm...
2
1,123
Re-structure n-level array with parent/child relation (PHP)
<p>I want to restructure an array and some of the solutions on stuckoverflow helped me to make it "proper" for the 1-st level items, but you'll notice the array is n-level deep.</p> <p>The method <strong>restructure()</strong> is not used recursively (it should be). It's probably wrong alltogether, and have no idea ho...
2
2,372
Bind ObservableCollection to ListView
<p>I am having some trouble to bind my collection to my listview. I have tried a lot of different approaches from others on here for binding, and also followed <a href="http://msdn.microsoft.com/en-us/library/ms748365.aspx" rel="nofollow">this tutorial</a> at first. I made it to work but it was not the way I wanted.</p...
2
1,039
Pandas DataFrame grouped box plot from aggregated results
<p>I want to draw box plot, but I don't have raw data but aggregated results in Pandas DataFrame. </p> <p>Is it still possible to draw box plot from the aggregated results? </p> <p>If not, what is the closest plot that I can get, to plot the min, max, mean, median, std-dev etc. I know I can plot them using line chart...
2
2,651
Unused JS massive amounts even though code splitting and using react.lazy
<p>I am not sure how to address this. If you have any ideas, please let me know. As the image shows, these are bundles from main app, and vendors js files. They both show massive unused js for both. They are mostly third party vendors and such, but I don't know how one would go about removing the unused portions.</p> <...
2
2,851
Multi-valued Database (UniVerse) -- SM (MV) vs SM (VS) and ASSOC()
<p>I have a question taken from pg 16 of <a href="ftp://ftp.software.ibm.com/software/data/u2/pubs/whitepapers/nested_rdbms.pdf" rel="nofollow noreferrer">IBM's Nested Relational Database White Paper</a>, I'm confused why in the below <code>CREATE</code> command they use MV/MS/MS rather than MV/MV/MS, when both <code>O...
2
1,414
Is there a good way to check if segments overlap in a PathFigure in WPF?
<p>I'm working on a control in WPF to draw area shapes using the different segment types (arc, bezier, line segment) and want to keep them from creating area shapes that are complex. That is to say shapes where the edges overlap.</p> <p>I am working with a <code>PathGeometry</code> generated by a converter, but after...
2
1,381
fetching data from mysql db and display on android
<p>I have to develop one android example.</p> <p>Its performs the fetching data from mysql database and display on android application.</p> <p>I have used below webservice code:</p> <pre><code>public class EditProfile { public String customerData(String Username,String Password,String Firstname,String Lastname,Strin...
2
1,220
Updating Multiple NCurses Windows
<p>I apologize in advance for a complicated question.</p> <p>I am using NCurses with Python 3 to make a terminal dashboard. This dashboard has two parts: a logging section and a dictionary display section</p> <p><a href="https://i.stack.imgur.com/QdZxq.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.co...
2
1,211
How to open any type of file from recycler view adapter class?
<p>What i'm trying to do is when the file is successfully downloaded it should be automatically opened from the file path but now here the problem is that i need to fire the path from my recycler view adapter class when i try to do that it generates an exception Take a look at my adapter class: Here i'm using a class w...
2
2,486
Creating markers with onClickListener that opens AlertDialog dynamically
<p>I'm trying to add markers to the map dynamically, getting the data from JSON, and that part is working, I can add multiple marker in multiple places, but when I click on the marker I want that a alert dialog opens, this alert dialog must contain some information regarding that marker, but right now the information I...
2
1,042
Better way to show/hide multiple divs?
<p>I have 8 links that all need to show a div on click. I want only 1 div to show at a time so when click on a new link the div that is currently displayed gets hidden and a new one gets displayed. So far I have a jQuery solution that works but it's ugly. Is there an easier/more correct way to accomplish what I want...
2
2,639
How to make a dynamic website depending on subdomain?
<hr /> <p>I'm going to try to explain my problem as clear as possible, feel free to ask me more precision if you didn't understand what I meant and forgive my mistakes, English is not my mother tongue.</p> <hr /> <h2>My goal</h2> <p>I have a website, <a href="http://www.mywebsite.com" rel="nofollow noreferrer">www.mywe...
2
1,156
Sharing cookies between 2 .NET Core Applications DataProtectionProvider
<p>I am trying to share the authentication cookie between three web applications set up under single website in IIS. The first two are both .NET Core 2.1 applications and Im struggling to even get them to share it. My problem is the same as </p> <p><a href="https://stackoverflow.com/questions/49328660/sharing-cookies...
2
1,058
Building Tensorflow with Bazel: Executing genrule //tensorflow:tensorflow_python_api_gen failed (Exit 1): bash failed: error executing command
<p>I try to build TensorFlow source on Raspberry Pi 3, but got some build error. Did I miss to install any python module?</p> <p><strong>The below is the ERROR log:</strong></p> <pre><code>ERROR: /home/pi/tf/tensorflow/tensorflow/tensorflow/BUILD:581:1: Executing genrule //tensorflow:tensorflow_python_api_gen failed ...
2
5,328
JAXB: unmarshal from XML subtree?
<p>My JAVA program uses an internal class hierarchy which resembles GPX 1.1, but is not identical. since rewriting it to conform 1:1 to GPX is a huge effort, I'd like to change it bit by bit, i.e. reading the <code>&lt;metadata&gt;</code> subtree into the Class <code>MetadataType</code> as generated with xjc from <a hr...
2
1,796
How to filter a RecyclerView, within a fragment, which is within a ViewPager
<p>I want to use a SearchView to Filter my RecylerView,(the RecyclerView) which is within a fragment, which is within a ViewPager, the ViewPager is within a custom layout, and this custom layout is included in the main activity layout.</p> <p>I have implemented the filtering logic in the RecyclerView adapter.</p> <p>...
2
2,903
AWS Lambda function returns error from API Gateway, but not when invoked directly
<p>I have a simple Lambda function which writes items to a DynamoDB table. username is partition key, createDateTime is sort key. </p> <p>Invoking this function from Lambda itself successfully inserts items into the table. However when called through API Gateway, I'm receiving the following error </p> <pre><code>{ ...
2
1,114
Keep Bootstrap 2.3.2 dropdown menu open while opening a modal
<p>I know there are some posts around discussing how to keep a Bootstrap menu open when clicked, but my scenario is a bit different, and I can't find a working solution yet.</p> <p>What I need is: to keep the dropdown menu open when an item in that menu is clicked to show a modal. My markup looks like this:</p> <pre>...
2
1,069
I can't read a sector from a CD-ROM in x86 assembly
<p>I'm trying to load the second stage bootloader from my ISOSYS bootloader for my OS32 operating system, but I can't seem to do it. CF seems to always be set. This is to be booted from a CD/DVD and I'm using Debian GNU/Linux 7.6 (Wheezy)</p> <p>Here's isosys.asm:</p> <pre><code>;=====================================...
2
1,428
YouTube API not loading consistently
<p>For the college I work for I am trying to get a youtube video to auto play in the banner of the webpage. The API is not loading every time properly. I am not sure what I could do to try to fix this. </p> <p>I have tried:</p> <ul> <li><p>Moving the adding of the youtube API script to only when the DOM is ready. </p...
2
2,514
For each file in a directory in a Makefile
<p>I have this project structure:</p> <pre><code>/project | |____/bin | | |____/obj | | |____/include | | | |____aaa.h | | | |____bbb.h | | | |____ccc.h | | |____/src | | | |____aaa.c | | | |____bbb.c ...
2
1,317
Unable to scroll div within fixed div
<p>I'm experiencing problems with a menu containing a parent container which spreads over the entire site and a div with the actual content. Everything is okay as long as the device screen is big enough. But especially with mobile devices its not possible to show the entire content.</p> <p>I've created a jsfiddle at <...
2
1,088
C plugin system: dlopen fails
<p>as a continuation to this post <a href="https://stackoverflow.com/questions/36797376/c-pluginsystem-symbol-lookup-error?noredirect=1#comment61173064_36797376">C pluginsystem: symbol lookup error</a>, I am still writing my plugin system and encounter new bugs.</p> <p>To recap what the plugins are, the program consis...
2
1,076
python: Deleting NaN-Values in an array with objects
<p>I am kinda new to python, but I want to read some data out of a file with python. And my Problem is that there are NaN-Values in the data and I am unable to delete them. It would be also an idea to replace them with a zero.</p> <p>My data looks like this:</p> <pre><code>&gt;&gt;&gt; data array(['123.6', 'NaN' , '1...
2
3,947
create a Grok filter for a specific date pattern in logstash
<p>I am trying to use ELK stack to store old logs. ** This is not a duplicate question. Please read below for details. ** I want to parse timestamp from my message which looks like below:</p> <blockquote> <p>Apr 1 04:01:04 i-b73lj53l journal: 152.17.62.1 - - [31/Mar/2017:20:01:04 +0000] "GET /api/people/5913b19b31b0...
2
1,335
Slow performance on scroll with flutter charts
<p>I have a <code>DraggableScrollableSheet</code> with a <code>ListView</code>, and inside that some flutter charts. When the draggable scrollable sheet go from <code>minChildSize</code> to <code>maxChildSize</code> the charts are constantly rebuilt, so it's laggy and with poor performance.</p> <p>In <a href="https://...
2
5,651