title
stringlengths
13
150
body
stringlengths
749
64.2k
label
int64
0
3
token_count
int64
1.02k
28.5k
Flash as3 spinning wheel
<p>I am trying to create a spinning wheel with text on it. I have created the wheel and it is populating perfectly based on the colors that I supply to it. Now I am trying to add text to each of the parts of the wheel but am running into some problems. I cannot seem to get the text to display properly within each of th...
2
1,954
jQuery DatePicker inline highlight certain dates
<p>My problem is that the calendar is rendering before the JSON response is sent to the browser. In other words when we get to the array search my array is empty. How would I fix this?</p> <p>UPDATED: I gave up on trying to request more dates on month change, so now I just get about 6 months worth of events on my firs...
2
1,779
Foreach loop in PHP - looping through an array of results, displaying them in a single table row in HTML?
<p>I have a table of orders that I am querying for totals, and I want to display them all by quarter. Here is the query:</p> <pre class="lang-sql prettyprint-override"><code>SELECT shipping_number, SUM(qty) AS qty, SUM(cost) AS cost, QUARTER( TIME ) AS quarter FROM order_items WHERE 1 GROUP BY quarter, shipping_numbe...
2
1,076
I want to fetch & show only a text status update, how could I specify this in my script?
<p>Dear fellow programmers,</p> <p>I am working on my B&amp;B's website www.bordemundo.com and would like to include my very latest facebook pages status update in the header of my website. </p> <p>As I am not a crack when it comes to JQuery I ran Google and edited a script which works just fine. I managed to get rid...
2
1,888
Get Firestore documents with a field that is equal to a particular string in flutter
<p>I am trying to get documents in a collection that have a particular field that equals a particular string. I am building a POS and I want to get all the sales for a particular city.</p> <pre><code>final FirebaseFirestore _firestore = FirebaseFirestore.instance; final CollectionReference _mainCollection = _firestore....
2
1,500
Unable to create an object of type 'GameContext'
<p>I have created an asp.net core project, And also i have created one ClassLibrary and i have joined them to one solution. I write my way step by step :</p> <p>1-<code>dotnet new sln</code> 2-<code>dotnet new mvc -o GameShop</code> 3-<code>dotnet new classlib -o GameShop.Data</code> Then i created a class in GameShop....
2
1,998
Java mail runnable jar not running
<p>I am developing a monitoring program, which sends periodic emails. Every thing went fine until I tried to make it a runnable jar. The mailing part is working fine in eclipse and I am able to send email. But as soon as I make it a runnable jar the program never sends email.</p> <p>What am I doing wrong?</p> <pre><...
2
2,432
Offers / experiences not visible on Publish instance using contexthub for personalization on AEM 6.2
<p>I’m using AEM’s default targeting to add an experience for a user. I’m using “gender equals male” as a simple trait to try the sample text to show up.</p> <p>I’ve setup to create an experience for logged in users to see different TEXT based on their gender (as an example). And on Publishing the content and login in...
2
1,224
Highlighting changing text in a java swing jtextcomponent
<p>I am trying to highlight some code in a JEditorPane like this:</p> <pre><code>import javax.swing.JEditorPane; import javax.swing.JFrame; import javax.swing.text.DefaultHighlighter; import javax.swing.text.Highlighter; public class Driver { public static void main(String[] args) { try { ...
2
1,373
Filling stalls within an Array ( Big Java Ex 7.22)
<p>For Some background here is the problem statement.</p> <blockquote> <p>It is a well-researched fact that men in a restroom generally prefer to maximize their distance from already occupied stalls, by occupying the middle of the longest sequence of unoccupied places. For example, consider the situation where ten stal...
2
1,674
How I can sort a ListView about a LinkButton
<p>I use a ListView in my ASP.Net Application with the Columns </p> <p><code>[Lastname] [Firstname] [telephonenumber][Department][eMail]</code> and </p> <p>My ListView built in LayoutTemplate, ItemTemplate and AlternatingItemTemplate.</p> <p>Now I want that if I <strong>click</strong> on The Headertext Lastname or F...
2
2,354
Unit testing play controller actions that have json parsers
<p>I have a controller action that I would like to test however I am getting the error below. I feel like there is something small that I could be missing but can't quite figure out what it is.I wrote out some small code to help illustrate the problem. </p> <p>Abit of more context, I would like to be able to supply mo...
2
1,050
Reverse-engineering a HID handshake by examining bytes over USB
<p>I'm trying to extract real-time data from a <a href="http://inkling.wacom.eu/" rel="nofollow">Wacom Inkling</a></p> <p>Roel Janssen has already examined the packets <a href="https://github.com/roelj/inklingreader/blob/master/src/usb/online-mode.c#L113-L138" rel="nofollow">here</a>:</p> <pre><code>// Some kind of h...
2
8,784
create nested collapsable gridview dynamically
<p>I'm trying to build a dynamic nested collapsable gridview for a project in college.</p> <p>I read <a href="http://csharpdotnetfreak.blogspot.com/2012/06/nested-gridview-example-in-aspnet.html" rel="nofollow">this article</a> which helped me a bit, but I'm still stuck.</p> <p>the two relevant tables in my sql serve...
2
3,139
Jenkins start-up fails after pointing to ssl cert and key
<ul> <li>Jenkins 2.73.3</li> <li>Java(TM) SE Runtime Environment (build 1.8.0_151-b12) Java HotSpot(TM) 64-Bit Server VM (build 25.151-b12, mixed mode)</li> <li>Red Hat Enterprise Linux Server release 7.4 (Maipo)</li> </ul> <p>The SSL cert and keys:</p> <pre><code>[root@l5109p ssl]# ls -lrt /etc/security/ssl/ -rw-r--...
2
1,550
PHP Curl and API
<p>maybe this question was answered before but, I tested everything what i found on a web, and couldn't make it work... I have to form this kind of request with PHP. </p> <ul> <li>curl ­X POST "<a href="https://page.com/login/CODE" rel="nofollow noreferrer">https://page.com/login/CODE</a>" \ </li> <li>­H "Accept: appl...
2
1,219
Display placemark name in openstreetmap from an external KML file using Openlayers
<p>I am trying to load a KML file of a particular state and display the counties with its name .I am using the following code .</p> <pre><code> map = new OpenLayers.Map({ div: "map_canvas", allOverlays: true }); var osm = new OpenLayers.Layer.OSM(); var styleMap = new O...
2
5,187
difference: maven assembly:assembly versus assembly:single goals?
<p>I'm trying to build an alexa-app, with some annotations driven dependency injection (dagger 2) code. The <a href="https://github.com/amzn/alexa-skills-kit-java" rel="nofollow noreferrer">alexa-sample-skills-test</a> gives example pom and instructs to use the following command to build a jar with dependencies.</p> <...
2
4,762
Teradata gets division wrong?
<p>I have a coworker that doesn't want to include null rows in a percentile rank. The default Teradata function seems to just treat null as the lowest number in the set, so I decided to do the math manually. I started using the below query to test out my equation</p> <pre><code>drop table tmp; create multiset volatil...
2
1,046
API key is invalid Yandex Translate
<p>I use Yandex-transleyt, and upon request receive an answer "API key is invalid." It just received the keys. Council on the format of the query, this topic does not help (<a href="https://stackoverflow.com/questions/25878518/yandex-api-translator-error-401-api-key-is-invalid">Yandex API Translator error - 401 API key...
2
1,278
About React, Suspense, lazyLoad and preloading/rendering elements
<p>I am studying the <code>&lt;Suspense&gt;</code> and <code>React.lazy()</code> concepts, and I would like to better understand what happens in order to add some logic into an existing app.</p> <p>Let's start with the definitions:</p> <blockquote> <p>The React.lazy function lets you <strong>render</strong> a dynam...
2
1,037
java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{}: java.lang.ClassNotFoundException:
<p>I got a crash report earlier from acra and this is the stack trace:</p> <pre><code> java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.PACKAGENAME/com.PACKAGENAME.Timetable}: java.lang.ClassNotFoundException: com.PACKAGENAME.Timetable at android.app.ActivityThread.performLaunchActivit...
2
1,279
CSS table cell overflow is ignored by FF & Opera
<p>I have a three rows CSS table, which is nested in a fixed size div. The table has three rows, the height of first two rows is defined by the contents (I can't give any explicit sizes) and the last row simply takes what's left. The last row has a single child, which is a div, having loads of child <code>divs</code> w...
2
1,376
Using Arraylists to store passwords in Java GUI
<p>I'm in my first computer programming class and my assignment is to create a program that will allow a user to reserve an airline ticket. This is my first time working with Java GUI and I've so far been successful, except I can't get my program to recognize the entered password. I've pasted my code below. Can someone...
2
2,075
Contacting loki from fluentbit output plugin
<p>I am collecting logs from a kubernetes cluster using fluentbit, having an output that connect to loki to send them there.</p> <p>This is my loki configuration at fluentbit configmap file</p> <p>Since loki is deployed at <code>loki</code> namespace, and fluentbit at <code>fluentbit</code> namespace I am using to cont...
2
1,350
Spring transaction/entity manager don't compensate for stale connections (on websphere + openJPA)?
<p>The goal is to have a J2EE application running on a WebsphereApplicationServer 7, which accesses a JDBC datasource (DB2) via OpenJPA 2.0. On most of our testservers, my code is working fine; however, we have one testserver where the EntityManager aborts / does not get initialized properly because of a stale connecti...
2
3,066
When implementing a system call, how do you expose the system call number to userland?
<p>I'm fiddling with system calls. I've added two new ones and verified they work using calls to <code>syscall</code>.</p> <p>I would like the syscall numbers to be in a header so that userspace does not have to know the syscall number explicitly. </p> <p>In <code>arch/x86/syscalls/syscall_64.tbl</code> I have:</p> ...
2
1,254
Nav Drawer Menu Android - Group of items listview
<p>I'm trying to do a navigator drawer menu in android and until now I did it: <img src="https://i.stack.imgur.com/Wvi1R.jpg" alt="enter image description here"></p> <p>But I want like a group of items like this edited image on paint: <img src="https://i.stack.imgur.com/kT78u.jpg" alt="enter image description here"></...
2
2,934
shared preferences problem
<p>I am having a problem putting a variable to shared preferences. I am getting a contacts id,name and number from the contact picker then saving them to a shared preference so that i can use them in another activity to put in a database but every time i go to get them in that other activity it gives me the phone numbe...
2
1,570
Boost-log linker error
<p>i've downloaded and builded Boost 1.55 from source. I'm trying to use Boost-log. In basic case (<a href="http://boost-log.sourceforge.net/libs/log/doc/html)/log/tutorial.html#log.tutorial.trivial" rel="nofollow">http://boost-log.sourceforge.net/libs/log/doc/html)/log/tutorial.html#log.tutorial.trivial</a> it's worki...
2
1,179
componentDidCatch is not called on throw
<p>I've tried to use error boundaries to handle errors in my app, but for some reason the componentDidCatch is not called when an error is thrown. I've simplified my app to the example from the <a href="https://reactjs.org/blog/2017/07/26/error-handling-in-react-16.html" rel="nofollow noreferrer">react documentation</a...
2
1,676
Selenium: driver.get_cookies() returns incomplete list of cookies
<p>The cookies returned are as follows:</p> <pre><code>[ { &quot;domain&quot;: &quot;www.carid.com&quot;, &quot;name&quot;: &quot;uxatc&quot;, &quot;value&quot;: &quot;%13%18%07%13%0D%07%13J%07%14J%07%0DJ%07%13%14%07%13I%07%12%13%0F%09%0E%1E%07%13%1F%1D%1A%17%08%1E%07%14%0F%1D%1A%17%08%1E%07...
2
1,930
Android: Activity lifecycle and Singleton
<p>I'm experiencing strange behaviors and <code>NullPointerException</code> (sometimes) with a <code>Singleton</code> pattern using in an <code>Activity</code>.</p> <p>The activity in manifest (declared the orientation landscape):</p> <pre><code>&lt;activity android:name="com.lux.game.MainActivity" android:scre...
2
1,502
PrimeFaces 3.0.M4 <p:cellEditor> NullPointerException
<p>Here is my page that works:</p> <pre><code>&lt;html xmlns:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html" xmlns:p="http://primefaces.org/ui"&gt; &lt;f:view contentType="text/html"&gt; &lt;h:head&gt; &lt;/h:head&gt; &lt;h:body&gt; &lt;h:form&gt; &lt;p:dataTable value="#{testBean.t...
2
2,224
cakephp jshelper chained select
<p>I've been working on this problem for a few days now with no luck. I'm trying to implement a simple ajax call in CakePHP 2.0 that will populate a select list based on the selection of another select list. In my database I have vehicle makes and vehicle models. The models have a make_id field. When a user selects...
2
1,168
Redis pod failing
<p>I have redis DB setup running on my minikube cluster. I have shutdown my minikube and started after 3 days and I can see my redis pod is failing to come up with below error from pod log</p> <pre><code>Bad file format reading the append only file: make a backup of your AOF file, then use ./redis-check-aof --fix &lt;f...
2
2,628
codeception laravel seeResponseContainsJson don't match
<p>I've got frim the server this response :</p> <blockquote> <p>)]}', {"success":0,"errors":{"error":["Invalid username or password."]}}</p> </blockquote> <p>and I'm not able to do work seeResponseContainsJson I've tried with:</p> <pre><code>public function invalidUserShouldBe200AndJsonTest(AcceptanceTester $I) ...
2
1,942
Could not find a base address that matches scheme net.tcp for the endpoint with binding NetTcpBinding
<p>I have a service with a basichttp binding and I am trying to add a net.tcp binding to it. here is how the config looks like: </p> <pre><code>&lt;services&gt; &lt;service behaviorConfiguration="ServiceBehavior" name="Some.L.E.S.BusinessService"&gt; &lt;endpoint address="" binding="basicHttpBinding" b...
2
1,863
How to upload form with image file in it, AngularJS spring
<p>I have this form</p> <pre><code>&lt;div class="row"&gt; &lt;h1 class="page-header"&gt; Create &lt;/h1&gt; &lt;form ng-submit="create()", enctype="multipart/form-data"&gt; &lt;div class="form-group"&gt; &lt;label&gt;Name:&lt;/label&gt; &lt;input type="text" ng-model="subforum.name" class="for...
2
1,161
Can't resolve type declarations despite having found the type declarations
<p>When I run <code>tsc</code> on my project, it reports</p> <pre><code>src/app/home-behavior.ts(8,30): error TS7016: Could not find a declaration file for module 'jqueryui'. 'C:/myProjectPath/src/lib/jquery-ui/jquery-ui.js' implicitly has an 'any' type. Try `npm install @types/jqueryui` if it exists or add a new decl...
2
1,040
Prevent overlapping while positioning element at height of another
<p>Inside a long text document there are some &quot;special words&quot; to which I want to display notes/annotations on the left. Each note should be <strong>as close as possible</strong> to the level of the word it is refering to.</p> <p>The HTML for this is organised in a table. Each paragraph is one table row, consi...
2
1,359
How to send html gmail message through javascript gapi?
<p>I am trying to send email message using JavaScript Gmail API, but I cannot find how to do it.</p> <p>Well, I have code to send normal email message, but all html is displayed like text.</p> <p>Here is code: </p> <pre><code>var email = "From: me\r\nTo: "+to+ "\r\nBcc: " +bcc+ "\r\nSubject: "+subject+"\r\n\r\nbody...
2
1,024
Collecting places using Python and Google Places API
<p>I want to collect the places around my city, Pekanbaru, with latlong (0.507068, 101.447777) and I will convert it to the dataset. Dataset (it contains <em>place_name, place_id, lat, long and type</em> columns).</p> <p>Below is the script that I tried.</p> <pre><code>import json import urllib.request as url_req imp...
2
1,305
TypeError: Cannot read property 'xxx' of undefined jQuery
<p>I am trying to send a post request from site to server which includes user input data. I am getting TypeError: Cannot read property 'vehicle' of undefined as a response here.</p> <p>HTML and script data:</p> <pre><code>&lt;!DOCTYPE html&gt; &lt;html lang="en"&gt; &lt;head&gt; &lt;meta charset="UTF-8"&g...
2
1,580
Python datetime: format string %-m (%#m) unexpected behaviour
<p>I am trying to format a date in format like '1/1/18' to a datetime object. I think a <a href="https://www.programiz.com/python-programming/datetime/strptime" rel="nofollow noreferrer">proper format string would be '%-m/%-d/%-y'</a> (or '%#m/%#d/%#y' for Windows), but I couldn't confirm it with the <a href="https://d...
2
1,344
How to handle connection issues with kafka using the python kafka library?
<p>I have a serverless function that's trying to send some data to kafka. Sometimes it works and sometimes the connection just drop and the data is lost.</p> <p>The reason for this is that the library for kafka is not raising the exception but it's adding error logs instead. So i cannot add my piece of code in a <code...
2
1,095
Creating a tic tac toe board through the use of a two dimensional array
<p>In this code, I try to create a two dimensional array that represents a tic tac toe board (with user input) but no matter what I enter in "TicTacLine", the program always brings up "Have you never played Tic Tac Toe before ? It's okay if you haven't, but just FYI, it plays with x's and o's.", which is the message I ...
2
1,462
How to use a Google Maps intent to select a location
<p>I am creating an app in which a user can create events that are happening on campus. I would like to have a way for a user to select a location on a map on a button push. The button would open an Google Maps intent which the user could then place a marker or drag one to their desired location. Once selected the coor...
2
1,951
Scraping part of a Wikipedia Infobox
<p>I'm using Python 2.7, <code>requests</code> &amp; BeautifulSoup to scrape approximately 50 Wikipedia pages. I've created a column in my dataframe that has partial URL's that relate to the name of each song (these have been verified previously and I'm getting response code 200 when testing against all of them). </p...
2
1,381
Adding parallax effect with fullPage's plugin
<p>I'm trying to add a parallax effect to a page i'm creating with vertical slides.</p> <p>This is what I have so far:<a href="https://i.stack.imgur.com/svafH.gif" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/svafH.gif" alt="enter image description here"></a></p> <p>And this is what I'm trying to re-...
2
1,058
Wordpress search order results
<p>Don't know what I'm doing wrong here.</p> <p>I have a working search function for a property search which I can use to search custom fields. I want to order the search results by price asc and desc using a dropdown filter at the top of the search results.</p> <p>I have a search.php into which I have placed this co...
2
1,216
OpenGL multiple Framebuffer chaining and post processing
<p>I have three different framebuffer objects for three different steps:</p> <pre><code>GLuint fbo1; // Step1: draw initial scene GLuint fbo2; // Step2: apply lens effect shader GLuint fbo3; // Step3: final smoothing </code></pre> <p>I want to draw my initial scene as a texture attached to fbo1. Then apply a l...
2
1,897
how to share images using view pager
<pre><code>public class EyeLinerActivity extends Activity { int position; private ShareActionProvider provider; ELImageAdapter adapter; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R...
2
2,324
Jenkins + Git + Artifactory Release Staging
<p>I'm trying out Jenkins release staging functionality with the Artifactory plugin:</p> <p>Here is a summary of what is happening. Everything is correct except for the error on the last item:</p> <ul> <li>Changes the version in gradle.properties from 1.0.1-SNAPSHOT to 1.0.1</li> <li>Builds successfully.</li> <li>Dep...
2
1,435
C# MVC: displaying list items with ajax
<p>I'm trying to display list items with AJAX. First, when you go into the page, you will see the first item of the list. After clicking "Next", then AJAX will refresh its div with the next item in the list.</p> <p><strong>Controller</strong></p> <pre><code>public ActionResult Index() { if (Request.IsAjax...
2
1,459
Find out which uses-permission a SmartPhone supports
<p>I'm doing a little android app that has to run on several Huawei U8180 (A budget 2.2 Android device).</p> <p>I've published the app on Google Play and even though the console shows that the model is supported by the app, it just doesn't appear on the Play Store app or, when trying to install the app via Browser, it...
2
2,816
Jruby: using Pry with JRuby (and JRubyFx)
<p><strong>What is the correct way to use Pry gem with JRuby and JRubyFx on windows?</strong> </p> <p>I am using the JRubyFx (a JavaFX JRuby binding - <a href="https://github.com/jruby/jrubyfx" rel="nofollow">https://github.com/jruby/jrubyfx</a>) and for my test I am using this <a href="https://github.com/jruby/jrubyf...
2
2,608
Mongodb C# integration with null fields for some record
<p>This is my json file.</p> <pre><code>{"_id":{"$oid":"569c6f31f633b10994233f16"},"Name":"jawad","Salary":"1000"} {"_id":{"$oid":"569c7044f633b126c825e880"},"Name":"noor","Salary":"1000"} {"_id":{"$oid":"569c97df47c0e25eb3af5928"},"Name":"jawad","Salary":5000.0} {"_id":{"$oid":"569ca7a9f633b11ba42ffecc"},"Name":"m...
2
1,684
JAX-RS security - principal not persisting
<p>First the code:</p> <p>Application setting class:</p> <pre><code> @ApplicationPath("/rest") public class ApplicationConfig extends Application { } </code></pre> <p>JAX-RS resource class:</p> <pre><code> @Path("/test") @RequestScoped public class TestWS { @POST @Path("/login...
2
2,892
Android Studio native breakpoints not being hit
<p>I have a large Android project with lots of native and Java code. The Java code debugs fine. All breakpoints are being hit.</p> <p>The native debugger connects, but breakpoints are never hit. I am using ndk-build.</p> <p>In my gradle file I have declared the following:</p> <pre><code>buildTypes { release { ...
2
1,421
How to drag and drop on click of element?
<p>I am working on jquery drag and drop. I have some images in my sidebar.user can drag the images in from sidebar and can drop then in dropable div.drag and drp is working fine. But now i need that when user will click on any (image/item) in sidebar then that image will be dropped in dropable div automatically. i have...
2
3,148
Scope claim is null when requesting web api from Angular 4 SPA
<p>I am trying to protect my web api using Azure B2C AD and consume the web api using an Angular 4 SPA. However, for some reason the scope claim is always null even though other claims are working just fine.</p> <p>I am using the MSAL library version 0.1.6 in the Angular app and have been following this guide: <a href...
2
3,165
Returning JSON Objects from jeJSrsey Rest Service
<p>I have a rest service which returns JSONObjects and JSONArrays</p> <p>I m trying to return </p> <p>import org.codehaus.jettison.json.JSONArray; import org.codehaus.jettison.json.JSONObject;</p> <p>from my Rest service. </p> <p>ex : </p> <pre><code> @Path("/SubgraphIds") @GET @Produces(MediaType.APPLICAT...
2
1,259
Java Android Spinner onItemSelected
<p>The problem Im having is with the onItemSelected method. Whenever I try to change a Views value, Example: <code>TextView</code>, <code>EditView</code> it throws an error. </p> <p>What Im trying to do is get the when I click on something on the spinner it will display something on the text (anything currently). I ho...
2
1,557
how save data to database after fetching data from server using room in kotlin coroutines?
<p>I am developing news app I want to save data to database after fetching data from server using room but I am just confused I have followed tutorial but their logics is different how can I save data properly so that after getting data from server and I can save data to database?</p> <p>below my SportNewsDatabase.kt<...
2
1,489
Regex with multiple lines and HTML tags
<p>I'm writing a script that should open 10 text files in turn (they are source codes from different webpages). I then want the script to go through and replace any instances of <code>&lt;br /&gt;</code> with <code>\n</code>. I then want it to delete the whole header, essentially. In any case, the document always start...
2
1,765
cannot convert html file to dompdf using phpword, PDF rendering library or library path has not been defined
<p>I dont know why my program cannot find the path in it <br>it keeps showing the <br></p> <pre><code>Fatal error: Uncaught exception 'PhpOffice\PhpWord\Exception\Exception' with message 'PDF rendering library or library path has not been defined.' in C:\xampp\htdocs\TESTproject\vendor\phpoffice\phpword\src\PhpWord\W...
2
1,247
HighChart with datetime on a-axis
<p>I don't know where I am making an error in this code.<br />What I need to do is to have a HighCharts drawing with the values from the data base. The values could change at anytime.<br /> - The x-axis should be labeled like " Nov 30 " as the last point down to " Oct 30 " as the first point, that means 30 days ( I wan...
2
2,131
Win32: IProgressDialog will not disappear until you mouse over it
<p>i'm using the <a href="http://msdn.microsoft.com/en-us/library/bb775248(VS.85).aspx" rel="nofollow noreferrer">Win32 progress dialog</a>. The damnest thing is that when i call:</p> <pre><code>progressDialog.StopProgressDialog(); </code></pre> <p>it doesn't disappear. It stays on screen until the user moves her mou...
2
1,493
Using React TransitionGroup, GSAP, and MobX to Re-Render the Same Component
<p>I have a survey-like React application that is rendering various questions to the screen using a variety of UI components. </p> <p>However, the nature of the survey is that many questions re-render using the exact same component. For instance, an "A / B Selector" or a "Checklist." </p> <p>What I'd like to achieve ...
2
1,272
Excluding transitive dependency more than one level
<p>I have this pom.xml</p> <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt; &lt;project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"&gt; &lt;modelVersion&gt;...
2
4,129
Caused by: java.lang.NoClassDefFoundError : when class exists under tomcat/lib?
<p>I have two wars both using one specific jar (<code>ehcache-core.jar</code>). I did put the jar under <code>&lt;Tomcat_Home&gt;\lib</code>. But when I start the server, my application throws below error where class exists under <code>ehcache-core.jar</code></p> <pre><code>Initialization of bean failed; nested excep...
2
5,210
mvn clean install in arch linux produces many errors
<p>I am using Arch Linux and jdk version 9 and apache Maven 3.5.2</p> <p>I followed this link <a href="https://console.bluemix.net/docs/runtimes/liberty/getting-started.html#getting-started-tutorial" rel="nofollow noreferrer">https://console.bluemix.net/docs/runtimes/liberty/getting-started.html#getting-started-tutori...
2
4,785
jQuery resizable is not working inside of Angular JS
<p>I created a dynamically resizable div as can be seen in this <a href="https://jsfiddle.net/18k3umpp/3/" rel="nofollow">JSFiddle</a>, but when I tried to put this code into my AngularJS project it doesn't work. NOTE: I have added the jQuery UI CSS. The only error message I receive is when I resize the page, here's wh...
2
1,846
Assertion error when testing async function with mocha and chaiAsPromised
<p>So i am trying to test that my async function throws an error when I stub <code>s3GetObject = Promise.promisify(s3.getObject.bind(s3))</code> to be rejected with <code>blah</code> however i am getting that my function is not async and it does not throw an error.</p> <p>below is my <code>main.js</code> file with the...
2
1,082
Django Official Tutorial Part 1 index out of bound error
<p>I started learning Django recently and am having a strange problem with the tutorial. Everything was going fine until I started playing with the interactive shell and then I got an error whenever I tried to call all the objects in one of the tables.</p> <p>I am using Django 1.1, Python 2.5 on MacOs X.</p> <p>For t...
2
1,078
Formatting SQL Result Within Width of Column
<p>I have another question for SQL wizards.</p> <p>I am using SSMS 2014 and have a query that returns the column titles of a table rolled up into row of a column based off the column field containing a Y or an N. If the column has a Y it should show up in the list and if it contains a N it should be left out of the li...
2
1,106
Efficient way of calculating average value of connections in igraph?
<p>I'm working with a fairly large graph in igraph R. (~5 million vertices, 40 million edges).</p> <p>I want to create a new attribute for each vertex which is the average value of an attribute of each of their connections. </p> <p>For example:</p> <p>Person A has an X value of 10, they're connected to persons B, C ...
2
1,422
Java JLabel Height with multiple lines
<p>Hi I've got a problem in the code below ( in method "append(String str)" mostly). I want to show messages received in HTML format (so I need to use JLabel). Without setting tac.preferredSize here is what I get: <img src="https://i.stack.imgur.com/zT9Vo.png" alt="enter image description here"></p> <p><strong>BUT it...
2
1,860
trouble with recursive element in xsd schema
<p>I'm trying to create an xsd schema that will validate a map with an unknown depth of nodes.</p> <p>(In the schema below, i would like mapnode to contain, among other elements, more mapnodes.)</p> <p>This requires recursion that starts below the root node. </p> <p>Neither of the two methods described here seem to ...
2
4,570
Emit click events by coords x, y fabric js
<p>I started to develop the project using three.js and fabric.js, where i can move and transform texture on the 3d model. I found coords on model and sync it with coords on canvas fabric js. But i don`t know how to simulate click event and get full manage this clicked objects. I found the stackoverflow topics that demo...
2
2,676
Spark application cannot run successfully on EMR with YARN
<p>My spark application run perfectly on client mode with master <code>local[*]</code> on EMR and yarn mode too locally</p> <p>Spark submit command:</p> <pre><code>spark-submit --deploy-mode cluster --master yarn \ --num-executors 3 --executor-cores 1 --executor-memory 2G \ --conf spark.driver.memory=4G --cla...
2
1,504
AWS CloudSearch cannot upload documents
<p>I am new to AWS and CloudSearch. I have written a very simple app which is to upload docx document (already use cs-import-document to convert to JSON format) to my seach domain.</p> <p>Code is very straightforward as this:</p> <pre><code>using (var searchdomainclient = new AmazonCloudSearchDomainClient("http://sea...
2
1,312
Programming multiple devices parallelly using Vivado
<p>We have a setup where two Xilinx FPGA devices are individually connected to a computer. We use Vivado Tcl Console to program the FPGAs in our automation environment. I am able to successfully program the two devices one after the other. However, I am trying to reduce the programming time by launching two vivado inst...
2
1,541
Eclipse error: java.lang.reflect.InvocationTargetException and other errors
<p>So I keep running into this problem whenever I compile my code and i'm not sure why. Any sort of explanation would be great as to why i'm running into these errors.</p> <pre><code>Exception in Application start method java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Na...
2
1,058
asp.net core 2.2 redirects to login after successful sign in
<ul> <li>I updated my visual studio 2017 to the latest 15.9.5.</li> </ul> <p>I have created an out the box asp.net core 2.2 web mvc project with individual user accounts. I set the db up (update-database from package manager console) and ran the site in IIS Express. All good to this point. Registered a user and could ...
2
1,076
How to save content of RichTextBox in BlockUIContainer, to RTF file?
<p>I made two richtexbox, one small richtexbox nested in a big richtextbox by using BlockUIContainer, see XAML file below. </p> <pre><code> &lt;RichTextBox IsDocumentEnabled="True" x:Name="first" HorizontalAlignment="Left" Height="174" Margin="120,136,0,0" VerticalAlignment="Top" Width="254" TextChanged="fir...
2
1,322
Swap items in a sequence
<p>I am trying to write a heap sort algorithm using XSLT .But struggling to swap the values of the variable used for storing the tokenized values. I have created method heapify for comparing the values and swap the larger value to the current index. Anyone please help direct me to swap the values of the parent list.</p...
2
1,391
Map with MapBox not loading on heroku
<p>I have an issue with heroku. My map not appear in production but works in development.</p> <p>My map in JS:</p> <pre><code>var ready; ready = function() { L.mapbox.accessToken = 'pk.eyJ1IjoiYmxhY2t5IiwiYSI6IjA4NWJjZDNiNDQ0MTg3YjVmZTNkM2NkMWQ3MmM4ZjU4In0.SDQh56AZPCbIL2rVs4eAkQ'; $('.map').each(function() { ...
2
1,062
How do I fill a grid with ImageButtons programmatically?
<p>I'm new to Android development so I've been working on a chess app in order to teach myself. However, I am now stuck. Essentially, I need a good way to draw an 8x8 grid of ImageButtons such that:</p> <ol> <li>The buttons fill the entire grid</li> <li>Grid space is evenly distributed among the buttons</li> <li>There...
2
1,114
TensorFlow: ImportError: cannot import name 'dragon4_positional'
<p>I get the following error when trying to use tensorflow</p> <blockquote> <p>importError Traceback (most recent call last) in () ----> 1 import tensorflow as tf</p> <p>~\Anaconda3\lib\site-packages\tensorflow__init__.py in () 22 23 # pylint: disable=wildcard-i...
2
1,314
Laravel Authentication - User can not login even the credentials are right and exactly the same from the database
<p>I'm creating a new project and after creating all the needed modules for the authentication of the system, I cannot log in and go to the right page and it always redirects to login page even though the login credentials are right and exactly the same from the database. Here are the codes. Please help me to know exac...
2
5,015
Spring mvc 3 with tiles 2 gives 400 bad request
<p>I'm trying to add Apache Tiles to a simple Spring MVC webapp I'm playing with and I can't seem to get it to work (it worked without Tiles). Any request I make gives back 400 bad request, nothing appears in the log (even set to DEBUG) so I'm not sure where to start debbuging. As far as I can tell the Controller mappe...
2
3,066
Discord.JS Purge.js command issue
<p>Ok so my bot got rebuilt with a somewhat different code. </p> <p>I'm using a somewhat more simplified <code>fs</code> command and events handler. My command works as intended. </p> <p>But I'm wanting to add the amount pruned into the fields for the richEmbed and it keeps erroring out.</p> <p>Here is my <code>purg...
2
1,513
How to use "django-autocomplete-light" in inline form
<p>I would like to use an inline model form with a 'django-autocomplete-light field'. I'm a little bit desperate also, because I don't know 'javascript' well. This is a picture of my form. At first glance, it works as desired:</p> <p><a href="https://i.stack.imgur.com/CjC1W.png" rel="nofollow noreferrer"><img src="ht...
2
1,285
Spring Data JPA findById() throwing ClassCastException
<p>I have a method that is using <code>findById()</code> method of Spring Data JPA. However, this method is returning <code>ClassCastException</code> on line number 1 of the getSupportedKey() method where I am calling findById():</p> <pre><code>MySupportedKey cannot be cast to java.util.Optional private MySupportedKe...
2
1,774
Extjs: prevent modal window from losing focus
<p>In an hybrid rails/sencha app, i defined a class that displays a small iframe inside an <strong>Ext.window.Window</strong> component. </p> <p>I would like this window to close when pressing the <strong>ESC</strong> button, a default behaviour when setting <code>modal: true</code> However, once i click inside the lo...
2
1,171
Dragging a textarea
<p><strong>Code in Question:</strong></p> <pre><code> textArea.addMouseListener(new MouseAdapter() { public void mousePressed(MouseEvent e) { posX = e.getX(); posY = e.getY(); } }); textArea.addMouseMotionListener(new MouseAdapter() { public void mouseDragged(...
2
1,851
Failed to add VM resource to Azure DevOps Environment
<p>I followed the <a href="https://docs.microsoft.com/en-us/azure/devops/pipelines/process/environments-virtual-machines?view=azure-devops" rel="nofollow noreferrer">steps</a> to add a VM resource to an environment but got an error when running the script. I searched the error message but couldn't find anything.</p> <p...
2
1,134
How do you make a circle shaped button in p5.js?
<p>I am making a p5.js project. In it I am generating a list (with 8 elements) and setting them to 1/0. Each one represents a bit (1,2,4,8,16,32,64,128) and if the element is 1, I add the index of the bit array. </p> <p>For example <code>i = 3</code>, <code>states[i] = 1</code>, <code>bit[i] = 8</code> so I add 8 to a...
2
1,116